/* ═══════════════════════════════════════════════════════════════
   NRS — Portfolio · direção editorial cinematográfica (ref. NOVARA)
   ═══════════════════════════════════════════════════════════════ */

:root {
  --bg: #0b0908;
  --bg-2: #121009;
  --ink: #ece5da;
  --ink-dim: #a89f92;
  --ink-faint: #6b645a;
  --ember: #ff5a1f;
  --ember-hot: #ff8a3d;
  --ember-deep: #b3230b;
  --cream: #e9e4dc;
  --cream-ink: #17130f;
  --cream-dim: #6e675e;
  --line: rgba(236, 229, 218, 0.12);
  --line-cream: rgba(23, 19, 15, 0.14);

  --serif: 'Italiana', 'Georgia', serif;
  --cond: 'Oswald', 'Arial Narrow', sans-serif;
  --sans: 'Manrope', 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', 'Consolas', monospace;

  --pad: clamp(1.25rem, 5vw, 5rem);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* âncoras (#trabalhos, #contato…) param abaixo do nav fixo, não atrás dele */
  scroll-padding-top: 5.5rem;
}

/* toque: sem o flash cinza do WebKit — o feedback é o :active de cada peça */
* { -webkit-tap-highlight-color: transparent; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background-color 1s ease; /* costura invisível entre dobras clara/escura */
}
body.claro { background-color: var(--cream); }

/* costura completa: as dobras vizinhas trocam o contraste junto com o fundo */
.sistemas .section-title, .sistemas .kicker, .sistemas-lede,
.pilar-card, .pilar-card h3, .pilar-card p, .pilar-circ,
.sistemas .btn-solid,
.notes .section-title, .notes .kicker, .notes .section-note,
.notes-intro, .notes-pills li {
  transition: color 1s ease, background-color 1s ease, border-color 1s ease;
}
body.claro .sistemas .section-title { color: var(--cream-ink); }
body.claro .sistemas .kicker { color: var(--cream-dim); }
body.claro .sistemas-lede { color: var(--cream-dim); }
body.claro .sistemas-lede em { color: var(--ember-deep); }
body.claro .sistemas .btn-solid {
  background: var(--cream-ink);
  border-color: var(--cream-ink);
  color: var(--cream);
}
body.claro .pilar-card {
  background: rgba(255, 255, 255, .55);
  border-color: rgba(23, 19, 15, .12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .8),
    0 14px 38px rgba(23, 19, 15, .08);
}
body.claro .pilar-card h3 { color: var(--cream-ink); }
body.claro .pilar-card p { color: var(--cream-dim); }
body.claro .pilar-circ { border-color: rgba(23, 19, 15, .25); color: var(--ember-deep); }
body.claro .notes .section-title { color: var(--cream-ink); }
body.claro .notes .kicker { color: var(--cream-dim); }
body.claro .notes .section-note { color: var(--cream-dim); }
body.claro .notes-intro { border-color: rgba(23, 19, 15, .14); background: rgba(23, 19, 15, .03); }
body.claro .notes-pills li { color: var(--cream-dim); border-color: rgba(23, 19, 15, .18); }

::selection { background: var(--ember); color: #0b0908; }

/* barra de scroll escondida (o scroll segue funcionando; o trilho lateral mostra o progresso) */
html { scrollbar-width: none; }
body { -ms-overflow-style: none; }
::-webkit-scrollbar { display: none; }

a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* ícones SVG de traço (nunca emoji) */
.ic {
  width: 1em; height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: inline-block;
  vertical-align: -.14em;
}
.step-arrow .ic { width: 1.15em; height: 1.15em; }

/* ── grain ─────────────────────────────────────────────────── */
.grain {
  position: fixed; inset: -50%;
  width: 200%; height: 200%;
  pointer-events: none;
  z-index: 9000;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain-shift 1.2s steps(3) infinite;
}
@keyframes grain-shift {
  0% { transform: translate(0, 0); }
  33% { transform: translate(-2%, 1%); }
  66% { transform: translate(1%, -2%); }
  100% { transform: translate(0, 0); }
}

/* ── preloader (cortina estilo NOVARA + N matriz) ──────────── */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: #050505;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  padding: 2rem 2.5rem;
}
#preloader.saindo {
  transform: translateY(-100%);
  transition: transform .9s cubic-bezier(.76, 0, .24, 1);
}
#preloader.fora { display: none; }
body.is-loading { overflow: hidden; }
.pre-n {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  height: min(26vh, 40vw);
  aspect-ratio: 18 / 25;
  opacity: .55;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 72% 64% at 50% 50%, #000 45%, transparent 100%);
  mask-image: radial-gradient(ellipse 72% 64% at 50% 50%, #000 45%, transparent 100%);
}
.pre-word { overflow: hidden; }
.pre-word .pre-fio {
  font-size: clamp(1.3rem, 3vw, 2rem);
  transform: translateY(120%);
  animation: pre-rise .8s cubic-bezier(.16, .8, .3, 1) .2s forwards;
}
@keyframes pre-rise { to { transform: translateY(0); } }
.pre-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .5rem;
}
.pre-label {
  font-family: var(--mono);
  font-weight: 300;
  font-size: .62rem;
  letter-spacing: .35em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
#preCount {
  font-family: var(--cond);
  font-weight: 200;
  font-size: clamp(4rem, 10vw, 7.5rem);
  line-height: .9;
  letter-spacing: .02em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
@media (max-width: 640px) {
  #preloader {
    padding: 1.5rem;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    text-align: center;
  }
  .pre-col { align-items: center; }
}

/* ── nav ───────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 2rem;
  /* safe-area: com viewport-fit=cover o nav respeita o notch e as bordas curvas */
  padding: max(1.1rem, env(safe-area-inset-top)) max(var(--pad), env(safe-area-inset-right))
           1.1rem max(var(--pad), env(safe-area-inset-left));
  transition: background .4s ease, backdrop-filter .4s ease, border-color .4s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(11, 9, 8, 0.82);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: .8rem;
  color: var(--ink);
}
.nav-logo { width: 26px; height: 30px; }
.fio {
  font-family: var(--cond);
  font-weight: 200;
  font-size: 1.15rem;
  letter-spacing: .34em;
  display: inline-flex;
  align-items: center;
}
.fio i { font-style: normal; }
.fio-dash {
  width: 22px; height: 1.5px;
  background: var(--ember);
  margin: 0 .55em 0 .28em;
}
.fio-cursor {
  font-family: var(--mono);
  font-weight: 300;
  color: var(--ink-faint);
  margin-left: .18em;
  animation: cursor-blink 2.4s steps(1) infinite;
}
@keyframes cursor-blink { 0%, 60% { opacity: 1; } 61%, 100% { opacity: .2; } }
.nav-brand sup { font-family: var(--mono); font-size: .5em; letter-spacing: 0; color: var(--ember); }
.nav-links {
  display: flex;
  gap: 1.9rem;
  margin-left: auto;
}
.nav-links a {
  font-family: var(--cond);
  font-weight: 400;
  font-size: .72rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--ink-dim);
  transition: color .25s ease;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -5px;
  width: 100%; height: 1px;
  background: var(--ember);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .3s ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-cta {
  font-family: var(--cond);
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  padding: .62rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  transition: background .3s ease, color .3s ease, border-color .3s ease;
}
.nav-cta:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.nav-toggle { display: none; }

/* ── hero ──────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  padding: 6rem var(--pad) 4rem;
}
.hero-silk { position: absolute; inset: 0; overflow: hidden; }
.silk {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .8;
  mix-blend-mode: screen;
  will-change: transform;
}
.silk-a {
  width: 75vmax; height: 42vmax;
  left: -12%; top: 12%;
  background: radial-gradient(ellipse at 30% 50%, var(--ember-deep) 0%, #571103 45%, transparent 70%);
  animation: silk-a 17s ease-in-out infinite alternate;
}
.silk-b {
  width: 60vmax; height: 34vmax;
  right: -18%; top: 30%;
  background: radial-gradient(ellipse at 60% 40%, var(--ember) 0%, #7a1c05 50%, transparent 72%);
  opacity: .55;
  animation: silk-b 23s ease-in-out infinite alternate;
}
.silk-c {
  width: 46vmax; height: 26vmax;
  left: 28%; bottom: -14%;
  background: radial-gradient(ellipse at 50% 50%, var(--ember-hot) 0%, #8c2a08 45%, transparent 70%);
  opacity: .32;
  animation: silk-c 20s ease-in-out infinite alternate;
}
@keyframes silk-a {
  0% { transform: translate(0, 0) rotate(-8deg) scale(1); }
  100% { transform: translate(9%, -7%) rotate(6deg) scale(1.14); }
}
@keyframes silk-b {
  0% { transform: translate(0, 0) rotate(10deg) scale(1.05); }
  100% { transform: translate(-11%, 9%) rotate(-6deg) scale(.95); }
}
@keyframes silk-c {
  0% { transform: translate(0, 0) rotate(0deg) scale(.95); }
  100% { transform: translate(7%, -11%) rotate(12deg) scale(1.12); }
}
.silk-vignette {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 45%, transparent 30%, rgba(11, 9, 8, .55) 75%, rgba(11, 9, 8, .92) 100%),
    linear-gradient(to bottom, rgba(11, 9, 8, .6) 0%, transparent 22%, transparent 70%, var(--bg) 100%);
}

/* N da Matriz respirando como marca d'água do hero */
.hero-n {
  position: absolute;
  left: auto;
  right: clamp(-8rem, -5vw, -2rem);   /* sangra de leve pra fora da borda */
  top: 50%;
  transform: translateY(-52%);
  height: min(88vh, 96%);
  aspect-ratio: 18 / 25;
  z-index: 1;
  opacity: .5;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 75% 66% at 48% 50%, #000 55%, transparent 100%);
  mask-image: radial-gradient(ellipse 75% 66% at 48% 50%, #000 55%, transparent 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 68rem;
}
.hero-eyebrow {
  font-family: var(--cond);
  font-weight: 300;
  font-size: .74rem;
  letter-spacing: .5em;
  text-transform: uppercase;
  color: var(--ink-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  margin-bottom: 2.4rem;
}
.hero-eyebrow .dot {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--ember);
  box-shadow: 0 0 10px var(--ember);
}
.hero-title {
  font-family: var(--cond);
  font-weight: 200;
  font-size: clamp(2.9rem, 8.5vw, 6.6rem);
  line-height: 1.1;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--ink);
  text-shadow: 0 0 70px rgba(255, 90, 31, .2);
  margin-bottom: 1.6rem;
}
.hero-title em {
  font-style: normal;
  color: var(--ember-hot); /* mesma tipografia do título — só a cor muda */
}
.hero-tagline {
  font-size: clamp(.92rem, 1.4vw, 1.05rem);
  font-weight: 300;
  color: var(--ink-dim);
  max-width: 44rem;
  margin: 0 auto 2.8rem;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  font-family: var(--cond);
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  padding: .95rem 2.3rem;
  border-radius: 999px;
  transition: transform .3s cubic-bezier(.2, .9, .3, 1.2), background .3s ease, color .3s ease, border-color .3s ease, box-shadow .3s ease;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
}
.btn-solid {
  background: var(--ink);
  color: var(--bg);
  border: 1px solid var(--ink);
}
.btn-solid:hover {
  background: var(--ember);
  border-color: var(--ember);
  color: #140700;
  transform: translateY(-2px);
  box-shadow: 0 12px 34px rgba(255, 90, 31, .3);
}
.btn-ghost {
  border: 1px solid var(--line);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn-arrow { font-family: var(--sans); transition: transform .3s ease; }
.btn-ghost:hover .btn-arrow { transform: translateX(4px); }
.btn-lg { font-size: .88rem; padding: 1.15rem 2.9rem; }

.hero-foot {
  position: absolute;
  left: var(--pad); right: var(--pad); bottom: 2rem;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
.hero-scroll {
  font-family: var(--cond);
  font-weight: 300;
  font-size: .66rem;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--ink-faint);
  display: flex;
  flex-direction: column;
  gap: .8rem;
}
.scroll-line {
  width: 1px; height: 44px;
  background: linear-gradient(to bottom, var(--ink-faint), transparent);
  position: relative;
  overflow: hidden;
}
.scroll-line::after {
  content: '';
  position: absolute;
  top: -100%; left: 0;
  width: 100%; height: 100%;
  background: var(--ember);
  animation: scroll-drip 2.2s ease-in-out infinite;
}
@keyframes scroll-drip {
  0% { top: -100%; }
  55%, 100% { top: 110%; }
}
.hero-avail {
  font-family: var(--cond);
  font-weight: 300;
  font-size: .66rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--ink-faint);
  text-align: right;
  line-height: 1.9;
}

/* ── entrada do hero ───────────────────────────────────────── */
.reveal-load {
  opacity: 0;
  transform: translateY(26px);
  animation: rise .9s cubic-bezier(.16, .8, .3, 1) forwards;
  animation-delay: var(--d, 0s);
}
@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}

/* ── marquee ───────────────────────────────────────────────── */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 1.05rem 0;
  background: var(--bg);
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 2.4rem;
  width: max-content;
  animation: marquee 30s linear infinite;
}
.marquee-track span {
  font-family: var(--cond);
  font-weight: 300;
  font-size: .78rem;
  letter-spacing: .38em;
  text-transform: uppercase;
  color: var(--ink-dim);
  white-space: nowrap;
}
.marquee-track i { color: var(--ember); font-style: normal; }
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ── seções (base) ─────────────────────────────────────────── */
section { padding: clamp(7rem, 13vw, 12.5rem) var(--pad); } /* respiro largo entre dobras */

.kicker {
  font-family: var(--cond);
  font-weight: 400;
  font-size: .7rem;
  letter-spacing: .4em;
  text-transform: uppercase;
  color: var(--ink-dim);
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.6rem;
}
.kicker .num {
  font-family: var(--mono);
  font-size: .68rem;
  color: var(--ember);
  letter-spacing: .1em;
}
.kicker::after {
  content: '';
  flex: 0 0 56px;
  height: 1px;
  background: var(--line);
}
.kicker-dark { color: var(--cream-dim); }
.kicker-dark::after { background: var(--line-cream); }

.section-head { max-width: 72rem; margin: 0 auto 4rem; }
.section-title {
  font-family: var(--cond);
  font-weight: 500;
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: .015em;
  text-transform: uppercase;
}
.section-note {
  margin-top: 1.6rem;
  color: var(--ink-dim);
  font-weight: 300;
  font-size: .95rem;
}

/* ── trabalhos ─────────────────────────────────────────────── */
.work { background: var(--bg); }
.work-grid {
  max-width: 60rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem) clamp(1.5rem, 3vw, 2.5rem);
}
.case-wide { grid-column: 1 / -1; }

.case-media {
  display: block;
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.case-art {
  position: relative;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: transform .8s cubic-bezier(.2, .8, .2, 1);
}

/* prévia ao vivo do próprio site (iframe em miniatura) */
.case-live {
  position: relative;
  aspect-ratio: 21 / 9;
  overflow: hidden;
  background: #101010;
  transition: transform .8s cubic-bezier(.2, .8, .2, 1);
}
.case-live iframe {
  position: absolute;
  top: 0; left: 0;
  border: 0;
  pointer-events: none;      /* o clique é do card; navegar é na página de detalhe */
  transform-origin: 0 0;
  background: #101010;
}
.case-media:hover .case-live { transform: scale(1.02); }

/* capa em screenshot de página inteira, rolando sozinha (o navegável fica na página do projeto) */
.case-shot-wrap {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #101010;
}
.case-shot-pan {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: auto;
  animation: shot-pan 26s ease-in-out infinite alternate;
}
.case-shot-wrap iframe {
  position: absolute;
  top: 0; left: 0;
  border: 0;
  pointer-events: none;         /* o clique é do card */
  transform-origin: 0 0;
  background: transparent;
  opacity: 0;
  transition: opacity .6s ease;
  z-index: 1;
}
.case-shot-wrap.live-on iframe { opacity: 1; }
.case-shot-wrap.live-on .case-shot-pan { animation-play-state: paused; }
.case-shot-wrap.sem-pan .case-shot-pan { animation: none; } /* primeira dobra estática, sem rolagem */
.case-media:hover .case-shot-pan { animation-play-state: paused; }
@keyframes shot-pan {
  0%, 7%   { top: 0;    transform: translateY(0); }
  93%, 100% { top: 100%; transform: translateY(-100%); }
}
@media (prefers-reduced-motion: reduce) {
  .case-shot-pan { animation: none; }
}
.case-live::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(11, 9, 8, .28), transparent 30%);
  pointer-events: none;
}
.case-wide .case-art { aspect-ratio: 21 / 9; }
.case-media:hover .case-art { transform: scale(1.04); }

.art-glow {
  position: absolute;
  width: 65%; height: 90%;
  border-radius: 50%;
  filter: blur(60px);
  opacity: .85;
  mix-blend-mode: screen;
  transition: transform 1s ease;
}
.case-media:hover .art-glow { transform: scale(1.2) rotate(10deg); }

.art-portaria { background: linear-gradient(135deg, #140b06 0%, #1d0d05 55%, #0b0908 100%); }
.art-portaria .art-glow { background: radial-gradient(ellipse, #ff5a1f 0%, #7a1c05 55%, transparent 75%); }
.art-app { background: linear-gradient(150deg, #0a0d12 0%, #101722 60%, #0b0908 100%); }
.art-app .art-glow { background: radial-gradient(ellipse, #3d7bff 0%, #12234d 55%, transparent 75%); opacity: .6; }
.art-eye { background: linear-gradient(140deg, #0d0a12 0%, #170e22 60%, #0b0908 100%); }
.art-eye .art-glow { background: radial-gradient(ellipse, #a05cff 0%, #2c1250 55%, transparent 75%); opacity: .6; }
.art-hal { background: linear-gradient(145deg, #0c0f0a 0%, #131c10 60%, #0b0908 100%); }
.art-hal .art-glow { background: radial-gradient(ellipse, #7dd95c 0%, #1c3a12 55%, transparent 75%); opacity: .5; }
.art-web { background: linear-gradient(150deg, #12100a 0%, #221c0e 60%, #0b0908 100%); }
.art-web .art-glow { background: radial-gradient(ellipse, #ffc53d 0%, #4d3512 55%, transparent 75%); opacity: .55; }
.art-igreja { background: linear-gradient(150deg, #0a0c14 0%, #141b2e 55%, #0b0908 100%); }
.art-igreja .art-glow { background: radial-gradient(ellipse, #ffd27d 0%, #2a3a6b 55%, transparent 75%); opacity: .6; }
.art-fernanda { background: linear-gradient(150deg, #120a0c 0%, #241016 55%, #0b0908 100%); }
.art-fernanda .art-glow { background: radial-gradient(ellipse, #ff6b7d 0%, #5c1a2a 55%, transparent 75%); opacity: .55; }

.art-mark {
  position: relative;
  z-index: 1;
  font-family: var(--cond);
  font-weight: 200;
  font-size: clamp(2.6rem, 7vw, 5.4rem);
  letter-spacing: .34em;
  margin-right: -.34em;
  color: rgba(236, 229, 218, .92);
  text-shadow: 0 0 44px rgba(0, 0, 0, .5);
}

.case-badge {
  position: absolute;
  top: 1.1rem; left: 1.1rem;
  font-family: var(--cond);
  font-size: .62rem;
  font-weight: 500;
  letter-spacing: .26em;
  text-transform: uppercase;
  background: rgba(11, 9, 8, .65);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  color: var(--ember-hot);
  padding: .45rem 1rem;
  border-radius: 999px;
}

.case-info { padding: 1.6rem .3rem 0; }
.case-meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-weight: 300;
  font-size: .66rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: .7rem;
}
.case-title {
  font-family: var(--cond);
  font-weight: 500;
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-bottom: .7rem;
}
.case-desc {
  color: var(--ink-dim);
  font-weight: 300;
  font-size: .92rem;
  max-width: 46rem;
  margin-bottom: 1.1rem;
}
.case-tags { display: flex; flex-wrap: wrap; gap: .5rem; }
.case-tags li {
  font-family: var(--mono);
  font-weight: 300;
  font-size: .64rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-dim);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .32rem .85rem;
  transition: border-color .3s ease, color .3s ease;
}
.case:hover .case-tags li { border-color: rgba(255, 90, 31, .35); }

/* ── sistemas sob medida (duas colunas estilo "casting to campaign") ── */
.sistemas { background: transparent; } /* o body pinta — costura invisível */
.sistemas-duo {
  max-width: 76rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}
.sistemas-esq {
  position: sticky; /* o título fixa enquanto os cards continuam rolando */
  top: 8rem;
  align-self: start;
}
.sistemas-esq .section-title {
  margin-bottom: 1.6rem;
  font-size: clamp(2.2rem, 4.6vw, 3.6rem); /* um degrau abaixo pro texto quebrar natural na coluna */
  text-wrap: balance;
}
.sistemas-lede {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--ink-dim);
  max-width: 30rem;
  margin-bottom: 2.2rem;
}
.sistemas-lede em {
  font-style: normal;
  color: var(--ember-hot);
  border-bottom: 1px solid rgba(255, 90, 31, .35);
}
.sistemas-cards {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
/* brilhos atrás dos cards — é o que o vidro desfoca */
.sistemas-cards::before {
  content: '';
  position: absolute;
  /* sangra só na vertical: o -10% lateral criava 15px de página fora da tela no
     celular (e jogava o trilho fixo pra fora do viewport). O blur de 46px já
     espalha as manchas pros lados sozinho, sem virar largura de layout. */
  inset: -10% 0;
  background:
    radial-gradient(ellipse 38% 30% at 18% 12%, rgba(255, 90, 31, .11), transparent 65%),
    radial-gradient(ellipse 34% 28% at 85% 48%, rgba(255, 138, 61, .07), transparent 65%),
    radial-gradient(ellipse 40% 30% at 30% 88%, rgba(179, 35, 11, .1), transparent 65%);
  filter: blur(46px); /* dissolve as bordas das manchas */
  pointer-events: none;
}
/* circuito de luz em serpentina entre os cards */
.lap-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
  z-index: 2;
}
.lap-trace {
  fill: none;
  stroke: rgba(255, 90, 31, .1);
  stroke-width: 1;
}
.lap-glow { fill: none; stroke-linecap: round; }
.lap-head { filter: drop-shadow(0 0 7px rgba(255, 138, 61, .9)); }
body.claro .lap-trace { stroke: rgba(179, 35, 11, .14); }
body.claro .lap-glow { stroke: var(--ember-deep); }
body.claro .lap-head { stroke: var(--ember); filter: drop-shadow(0 0 5px rgba(255, 90, 31, .55)); }
.pilar-card {
  position: relative;
  overflow: hidden;
  display: flex;
  gap: 1.4rem;
  align-items: flex-start;
  /* vidro: translúcido + blur do que está atrás + reflexos */
  background: rgba(236, 229, 218, .05);
  backdrop-filter: blur(16px) saturate(1.25);
  -webkit-backdrop-filter: blur(16px) saturate(1.25);
  border: 1px solid rgba(236, 229, 218, .12);
  border-radius: 16px;
  padding: 1.6rem 1.8rem;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .1),
    inset 0 -1px 0 rgba(0, 0, 0, .2),
    0 14px 38px rgba(0, 0, 0, .3);
  transition: transform .4s ease, border-color .4s ease, background .4s ease;
}
.pilar-card::before {
  /* reflexo diagonal do vidro */
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg,
    rgba(255, 255, 255, .1) 0%,
    rgba(255, 255, 255, .025) 24%,
    transparent 40%,
    transparent 70%,
    rgba(255, 255, 255, .05) 100%);
  pointer-events: none;
}
.pilar-card > * { position: relative; z-index: 1; }
.pilar-card:hover {
  transform: translateY(-4px);
  border-color: rgba(236, 229, 218, .24);
  background: rgba(236, 229, 218, .08);
}
body.claro .pilar-card:hover { border-color: rgba(23, 19, 15, .3); background: rgba(255, 255, 255, .75); }
.pilar-circ {
  flex: 0 0 auto;
  width: 46px; height: 46px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .06em;
  color: var(--ember-hot);
}
.pilar-card h3 {
  font-family: var(--cond);
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-bottom: .55rem;
}
.pilar-card p {
  font-weight: 300;
  font-size: .88rem;
  color: var(--ink-dim);
  line-height: 1.7;
  max-width: 34rem;
}

/* ── processo (seção clara — espelho do strip 01→06) ───────── */
.process {
  background: transparent; /* o body cruza pro creme quando esta dobra chega */
  color: var(--cream-ink);
}
.process .section-title { color: var(--cream-ink); }
.process .section-note { color: var(--cream-dim); }
.process .kicker .num { color: var(--ember-deep); }

/* lista de etapas no estilo da dobra #workflow do NOVARA:
   linha ativa acende no scroll + trilho lateral de progresso */
.flow {
  max-width: 76rem;
  margin: 0 auto;
}
.flow-list { display: flex; flex-direction: column; }
.flow-step {
  display: grid;
  grid-template-columns: 3.2rem 150px 1fr auto;
  gap: clamp(1rem, 2.5vw, 2rem);
  align-items: center;
  padding: 1.4rem 1.2rem;
  border-top: 1px solid var(--line-cream);
  border-radius: 14px;
  transition: background .5s ease;
}
.flow-step:first-child { border-top: 0; }
.flow-step.ativo {
  background: linear-gradient(100deg, rgba(255, 90, 31, .1) 0%, rgba(255, 90, 31, .03) 45%, transparent 75%);
}
.flow-num {
  font-family: var(--mono);
  font-weight: 300;
  font-size: .72rem;
  letter-spacing: .18em;
  color: var(--cream-dim);
  transition: color .4s ease;
}
.flow-step.ativo .flow-num { color: var(--ember-deep); }
.flow-thumb {
  width: 150px;
  aspect-ratio: 16 / 10;
  background: #fdfcfa;
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(23, 19, 15, .1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .5s cubic-bezier(.2, .8, .2, 1), box-shadow .5s ease;
}
.flow-step.ativo .flow-thumb {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 16px 36px rgba(23, 19, 15, .16);
}
.fscene { width: 100%; height: 100%; display: block; }
.flow-thumb { overflow: hidden; }
.flow-step.ativo .fscene { filter: saturate(1.25); }
.flow-body h3 {
  font-family: var(--cond);
  font-weight: 500;
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: .4rem;
}
.flow-body p {
  font-weight: 300;
  font-size: .86rem;
  line-height: 1.6;
  color: var(--cream-dim);
  max-width: 30rem;
}
.flow-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .45rem;
  max-width: 15rem;
}
.flow-tags li {
  font-family: var(--sans);
  font-weight: 400;
  font-size: .68rem;
  color: var(--cream-dim);
  border: 1px solid var(--line-cream);
  background: rgba(253, 252, 250, .6);
  border-radius: 999px;
  padding: .3rem .8rem;
  transition: border-color .4s ease, color .4s ease;
}
.flow-step.ativo .flow-tags li { border-color: rgba(179, 35, 11, .3); color: var(--cream-ink); }
/* trilho global de seção (borda direita, estilo NOVARA) —
   mix-blend-mode: difference inverte sozinho na dobra clara */
.secao-rail {
  position: fixed;
  right: 1.4rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 600;
  display: flex;
  align-items: center;
  gap: .9rem;
  mix-blend-mode: difference;
  pointer-events: none;
  opacity: .55; /* presença discreta */
  transition: opacity .5s ease;
}
.secao-rail.oculto { opacity: 0; }
.secao-rail span {
  font-family: var(--mono);
  font-weight: 300;
  font-size: .54rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: #fff;
  white-space: nowrap;
}
.secao-rail i {
  position: relative;
  width: 2px; height: 64px;
  background: rgba(255, 255, 255, .22);
  overflow: hidden;
}
.secao-rail i b {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 0%;
  background: #fff;
  transition: height .15s linear; /* preenche fluido com o progresso da página */
}

/* ── notas técnicas (janela de app estilo NOVARA) ──────────── */
.notes { background: transparent; } /* o body volta pro carvão aqui */
.notes-duo {
  max-width: 78rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(17rem, .8fr) 1.8fr;
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: stretch;
}
.notes-intro {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: clamp(1.5rem, 3vw, 2.4rem);
  background: rgba(236, 229, 218, .02);
  display: flex;
  flex-direction: column;
}
.notes-intro .section-title {
  margin-bottom: 0;
  font-size: clamp(1.9rem, 3.2vw, 3rem); /* menor que o padrão: precisa caber no cartão */
  overflow-wrap: anywhere;
}
.notes-intro .section-note { margin-top: 1.2rem; font-size: .88rem; }
.notes-pills { margin-top: auto; padding-top: 1.6rem; }

.notes-app {
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: #0d0b09;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .4);
}
.notes-app-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .8rem 1.2rem;
  border-bottom: 1px solid var(--line);
  background: rgba(236, 229, 218, .03);
}
.notes-app-label {
  font-family: var(--mono);
  font-weight: 300;
  font-size: .62rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.notes-app-body {
  display: grid;
  grid-template-columns: 15rem 1fr;
}
.notes-side {
  border-right: 1px solid var(--line);
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.notes-side-label {
  font-family: var(--mono);
  font-weight: 300;
  font-size: .6rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.notes-nav { display: flex; flex-direction: column; gap: .5rem; }
.notes-nav button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .6rem;
  font-family: var(--sans);
  font-weight: 400;
  font-size: .78rem;
  text-align: left;
  color: var(--ink-dim);
  background: rgba(236, 229, 218, .04);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: .6rem .85rem;
  cursor: pointer;
  transition: background .3s ease, color .3s ease, border-color .3s ease;
}
.notes-nav button span {
  font-family: var(--mono);
  font-size: .62rem;
  color: var(--ink-faint);
}
.notes-nav button:hover { color: var(--ink); border-color: rgba(236, 229, 218, .25); }
.notes-nav button.on {
  background: var(--ink);
  color: var(--cream-ink);
  border-color: var(--ink);
  font-weight: 600;
}
.notes-nav button.on span { color: var(--cream-dim); }
.notes-avail {
  border: 1px solid rgba(255, 90, 31, .25);
  border-radius: 12px;
  padding: .9rem;
  background: rgba(255, 90, 31, .04);
}
.notes-avail-label {
  font-family: var(--mono);
  font-weight: 300;
  font-size: .58rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: .7rem;
}
.notes-avail-bar {
  display: block;
  height: 5px;
  border-radius: 999px;
  background: rgba(236, 229, 218, .12);
  overflow: hidden;
  margin-bottom: .7rem;
}
.notes-avail-bar b {
  display: block;
  width: 82%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--ember-deep), var(--ember-hot));
}
.notes-avail-txt {
  font-weight: 300;
  font-size: .72rem;
  color: var(--ink-dim);
  line-height: 1.55;
}
.notes-main { padding: 1.2rem; display: flex; flex-direction: column; gap: 1.2rem; }
.notes-feature {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 1.2rem;
  align-items: stretch;
}
.notes-feature .note-art { margin-bottom: 0; aspect-ratio: auto; min-height: 240px; }
.notes-feature-info {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
}
.notes-feature-info .note-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.nota-atual {
  font-family: var(--mono);
  font-size: .58rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.notes-feature-info .note-desc {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: .9rem;
  background: rgba(236, 229, 218, .03);
  margin: .4rem 0 1rem;
}
.notes-cta {
  margin-top: auto;
  font-family: var(--cond);
  font-weight: 500;
  font-size: .74rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  transition: color .3s ease;
}
.notes-cta:hover { color: var(--ember-hot); }
.notes-strip {
  border: 1px solid rgba(255, 90, 31, .28);
  border-radius: 12px;
  padding: 1rem 1.2rem;
}
.notes-strip-label {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-weight: 300;
  font-size: .6rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: .9rem;
}
.notes-strip-label span:first-child {
  font-family: var(--cond);
  font-weight: 500;
  font-size: .82rem;
  color: var(--ink);
  letter-spacing: .14em;
}
.notes-strip-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .8rem;
}
.strip-thumb {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  background: none;
  aspect-ratio: 4 / 3;
  transition: border-color .3s ease, transform .3s ease;
}
.strip-thumb i { display: block; width: 100%; height: 100%; margin: 0; border-radius: 0; }
.strip-thumb i.note-art { aspect-ratio: auto; margin-bottom: 0; }
.strip-thumb:hover { transform: translateY(-3px); }
.strip-thumb.on { border-color: var(--ember-hot); }
.strip-book {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  background: var(--ink);
  color: var(--cream-ink);
  border-radius: 10px;
  font-family: var(--cond);
  font-weight: 500;
  font-size: .95rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  transition: background .3s ease, transform .3s ease;
}
.strip-book:hover { background: var(--ember-hot); transform: translateY(-3px); }
.note-art {
  aspect-ratio: 16 / 10;
  border-radius: 9px;
  margin-bottom: 1.3rem;
  position: relative;
  overflow: hidden;
}
.note-art::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(11, 9, 8, .55), transparent 55%);
}
.note-art-a { background: radial-gradient(circle at 25% 35%, #3d2413 0%, #1a1009 55%, #0e0b08 100%); }
.note-art-a::before {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(105deg, transparent 0 26px, rgba(255, 138, 61, .12) 26px 27px);
}
.note-art-b { background: radial-gradient(circle at 70% 30%, #46180a 0%, #200d06 55%, #0e0908 100%); }
.note-art-b::before {
  content: '';
  position: absolute; inset: 0;
  background: repeating-radial-gradient(circle at 70% 30%, transparent 0 22px, rgba(255, 90, 31, .16) 22px 23px);
}
.note-art-c { background: radial-gradient(circle at 40% 70%, #2c1c10 0%, #170f09 60%, #0d0a08 100%); }
.note-art-c::before {
  content: '';
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(0deg, transparent 0 30px, rgba(236, 229, 218, .07) 30px 31px),
    repeating-linear-gradient(90deg, transparent 0 30px, rgba(236, 229, 218, .07) 30px 31px);
}
.note-meta {
  font-family: var(--mono);
  font-weight: 300;
  font-size: .64rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ember-hot);
  margin-bottom: .6rem;
}
.note-title {
  font-family: var(--cond);
  font-weight: 500;
  font-size: 1.15rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-bottom: .55rem;
}
.note-desc {
  font-weight: 300;
  font-size: .85rem;
  color: var(--ink-dim);
}

/* ── sobre (spread de revista estilo NOVARA #product) ──────── */
.about { background: var(--bg); }
.about-bento {
  max-width: 78rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr .82fr .8fr;
  gap: 1.2rem;
}
.ab-card {
  background: #0e0c0a;
  border: 1px solid rgba(236, 229, 218, .07);
  border-radius: 18px;
  overflow: hidden;
}
.ab-main { padding: clamp(1.6rem, 3vw, 2.6rem); display: flex; flex-direction: column; }
.ab-kicker {
  font-family: var(--mono);
  font-weight: 300;
  font-size: .62rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--ember-hot);
  margin-bottom: 1.4rem;
}
.ab-kicker span { color: var(--ink-faint); margin-right: .5em; }
.ab-title {
  font-family: var(--cond);
  font-weight: 500;
  font-size: clamp(2.2rem, 4.2vw, 3.6rem);
  line-height: .98;
  letter-spacing: .01em;
  text-transform: uppercase;
  margin-bottom: 1.6rem;
}
.ab-desc {
  color: var(--ink-dim);
  font-weight: 300;
  font-size: .94rem;
  max-width: 30rem;
  margin-bottom: 1.8rem;
}
.ab-stats {
  margin-top: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}
.ab-num {
  font-family: var(--cond);
  font-weight: 500;
  font-size: 1.9rem;
  line-height: 1;
  color: var(--ink);
}
.ab-lab {
  font-family: var(--mono);
  font-weight: 300;
  font-size: .58rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: .5rem;
  line-height: 1.7;
}
.ab-cover {
  position: relative;
  min-height: 420px;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(255, 90, 31, .18), transparent 65%),
    linear-gradient(160deg, #171310 0%, #0d0b09 70%);
}
.ab-cover-n {
  position: absolute;
  left: 50%; top: 44%;
  transform: translate(-50%, -50%);
  height: 62%;
  aspect-ratio: 18 / 25;
  opacity: .8;
}
.ab-cap { position: absolute; left: 1.3rem; bottom: 1.2rem; z-index: 1; }
.ab-cap-k {
  font-family: var(--mono);
  font-weight: 300;
  font-size: .58rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--ember-hot);
  margin-bottom: .35rem;
}
.ab-cap-t {
  font-family: var(--cond);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--ink);
  text-shadow: 0 2px 14px rgba(0, 0, 0, .6);
}
.ab-cover-side {
  position: absolute;
  right: 1.2rem; bottom: 1.35rem;
  font-family: var(--mono);
  font-weight: 300;
  font-size: .6rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.ab-col { display: flex; flex-direction: column; gap: 1.2rem; }
.ab-perfil { padding: 1.5rem; flex: 0 0 auto; }
.ab-perfil h3 {
  font-family: var(--cond);
  font-weight: 500;
  font-size: 1.5rem;
  line-height: 1.05;
  letter-spacing: .03em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}
.ab-destaque {
  position: relative;
  flex: 1;
  min-height: 200px;
  display: block;
}
.ab-destaque img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform .8s cubic-bezier(.2, .8, .2, 1);
}
.ab-destaque::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11, 9, 8, .72), transparent 55%);
}
.ab-destaque:hover img { transform: scale(1.05); }
.ab-destaque .ab-cap { z-index: 2; }
.ab-row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.ab-mini { padding: 1.5rem; }
.ab-mini h3 {
  font-family: var(--cond);
  font-weight: 500;
  font-size: 1.3rem;
  letter-spacing: .03em;
  text-transform: uppercase;
  margin-bottom: .6rem;
}
.ab-mini p {
  color: var(--ink-dim);
  font-weight: 300;
  font-size: .86rem;
  line-height: 1.65;
}

/* ── contato ───────────────────────────────────────────────── */
/* ═══════════ 06 · DEPOIMENTOS ═══════════
   Porte do #testimonials-cinematic do NOVARA. A seção é uma pista ALTA (310vh)
   e o palco fica preso (sticky) ocupando a tela: o título é revelado por
   clip-path com um cursor correndo atrás, e os cards atravessam de baixo pra
   cima amarrados à rolagem. Toda a animação vive no js/main.js (GSAP). */
.depo {
  position: relative;
  height: 310vh;
  background: transparent; /* o body pinta — costura invisível */
  border-top: 1px solid rgba(236, 229, 218, .07);
}
.depo-palco {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.depo-titulo-wrap {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 94vw;
  max-width: 1320px;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.depo-titulo {
  font-family: var(--cond);
  font-weight: 200;
  font-size: clamp(3.4rem, 12.6vw, 12rem);
  line-height: .85;
  /* o clip-path da revelação recorta na CAIXA do elemento, e o line-height .85
     deixa a caixa mais baixa que os glifos do Oswald — a base das letras ficava
     raspada. O respiro vertical alarga só a área de recorte, sem mexer no ritmo
     do título (o line-height segue .85). */
  padding: .16em 0;
  letter-spacing: .02em;
  text-align: center;
  white-space: nowrap;
  color: var(--ink);
  user-select: none;
  /* estado inicial: escondido. O GSAP abre a fresta conforme a rolagem. */
  clip-path: inset(0 100% 0 0);
}
.depo-cursor {
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--ember);
  box-shadow: 0 0 18px rgba(255, 90, 31, .8);
  opacity: 0;
}
.depo-campo {
  position: relative;
  z-index: 2;
  width: min(1160px, 100%);
  height: 100vh;
  pointer-events: none;
}
/* mesmo vidro dos cards de Sistemas, pra dobra não destoar da casa */
.depo-card {
  position: absolute;
  top: 58%;
  width: min(430px, 90vw);
  padding: 1.6rem 1.7rem;
  pointer-events: auto;
  /* base OPACA + o véu de vidro da casa por cima. Translúcido como os cards de
     Sistemas, o título gigante atrás vazava através da fala e as duas camadas de
     texto se atropelavam — no NOVARA o card também é quase sólido. */
  background:
    linear-gradient(rgba(236, 229, 218, .05), rgba(236, 229, 218, .05)),
    rgba(13, 11, 10, .92);
  backdrop-filter: blur(16px) saturate(1.25);
  -webkit-backdrop-filter: blur(16px) saturate(1.25);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .1),
    inset 0 -1px 0 rgba(0, 0, 0, .2),
    0 18px 44px rgba(0, 0, 0, .42);
  opacity: 0; /* o GSAP assume; sem JS a dobra fica limpa em vez de empilhada */
}
/* fallback: sem GSAP ou com reduced-motion o palco solta, a pista encolhe e os
   cards viram uma grade estática — dobra legível em vez de pilha sobreposta */
.depo-estatico { height: auto; padding: clamp(6rem, 11vw, 10rem) var(--pad); }
.depo-estatico .depo-palco { position: static; height: auto; display: block; overflow: visible; }
.depo-estatico .depo-titulo-wrap { position: static; transform: none; width: auto; margin-bottom: 3.4rem; }
.depo-estatico .depo-cursor { display: none; }
.depo-estatico .depo-campo {
  height: auto;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 1.2rem;
}
.depo-estatico .depo-card { position: static; width: auto; opacity: 1; }

.depo-fala {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
}
.depo-pe {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.6rem;
  padding-top: .9rem;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: .58rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

.contact {
  position: relative;
  background: var(--bg-2);
  overflow: hidden;
  padding-bottom: 0;
}
.contact-inner {
  max-width: 72rem;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  padding-bottom: clamp(4rem, 8vw, 7rem);
}
.contact-duo {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}
.contact-title {
  font-family: var(--cond);
  font-weight: 400;
  font-size: clamp(2.1rem, 5.5vw, 4.2rem);
  line-height: 1.06;
  text-transform: uppercase;
  letter-spacing: .015em;
  margin-bottom: 1.8rem;
}
.contact-title em {
  font-style: normal;
  color: var(--ember-hot); /* mesma tipografia do título — só a cor muda */
}
.contact-note {
  color: var(--ink-dim);
  font-weight: 300;
  font-size: .95rem;
  max-width: 26rem;
}
.contact-dir {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.8rem;
}
.contact-links { display: flex; gap: 2.2rem; }
.contact-links a {
  font-family: var(--cond);
  font-weight: 300;
  font-size: .72rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--ink-dim);
  border-bottom: 1px solid transparent;
  padding-bottom: .25rem;
  transition: color .3s ease, border-color .3s ease;
}
.contact-links a:hover { color: var(--ink); border-color: var(--ember); }

.footer-mark {
  font-family: var(--cond);
  font-weight: 200;
  font-size: clamp(9rem, 26vw, 24rem);
  line-height: .72;
  letter-spacing: .14em;
  display: flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  -webkit-text-stroke: 1px rgba(236, 229, 218, .16);
  user-select: none;
  transform: translateY(16%);
}
.footer-mark { position: relative; }
.footer-mark span:last-of-type { margin-right: -.14em; } /* mata o respiro do letter-spacing após o S */
.footer-mark .fm-dash {
  width: .52em;
  height: .05em;
  background: rgba(255, 90, 31, .45);
  margin: 0 .1em;
  transform: translateY(-.04em);
  flex: 0 0 auto;
}
.footer-mark .fm-cursor {
  /* absoluto: não desloca a centralização do conjunto */
  position: absolute;
  right: -.42em;
  bottom: .04em;
  font-family: var(--mono);
  font-style: normal;
  font-size: .5em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 90, 31, .5);
  animation: cursor-blink 2.4s steps(1) infinite;
}

.footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .6rem;
  padding: 1.4rem 0 1.6rem;
  margin: 0 calc(var(--pad) * -1);
  padding-left: var(--pad);
  padding-right: var(--pad);
  background: var(--bg);
  font-family: var(--mono);
  font-weight: 300;
  font-size: .64rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* ── página de detalhe do projeto ──────────────────────────── */
.detail {
  max-width: 72rem;
  margin: 0 auto;
  padding: 7.5rem var(--pad) 4rem;
}
.crumb {
  font-family: var(--mono);
  font-weight: 300;
  font-size: .68rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 1.8rem;
}
.crumb a { color: var(--ink-dim); transition: color .25s ease; }
.crumb a:hover { color: var(--ember-hot); }
.crumb span { margin: 0 .5rem; }
.crumb em { font-style: normal; color: var(--ink-faint); }

.detail-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.detail-head h1 {
  font-family: var(--cond);
  font-weight: 300;
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  line-height: 1.05;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: .9rem;
}
.detail-byline {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  flex-wrap: wrap;
}
.fio-sm { font-size: .82rem; letter-spacing: .3em; color: var(--ink-dim); }
.fio-sm .fio-dash { width: 14px; }
.status-pill {
  font-family: var(--cond);
  font-size: .62rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ember-hot);
  border: 1px solid rgba(255, 90, 31, .35);
  border-radius: 999px;
  padding: .32rem .9rem;
}
.detail-periodo {
  font-family: var(--mono);
  font-weight: 300;
  font-size: .66rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.detail-actions { display: flex; gap: .8rem; flex-wrap: wrap; }

.detail-preview { margin-bottom: 3.5rem; }
.browser {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: #0e0c0a;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
}
.browser-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .65rem 1rem;
  border-bottom: 1px solid var(--line);
  background: rgba(236, 229, 218, .03);
}
.b-dots { display: flex; gap: 6px; }
.b-dots i {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: rgba(236, 229, 218, .16);
}
.b-dots i:first-child { background: rgba(255, 90, 31, .55); }
.b-url {
  flex: 1;
  text-align: center;
  font-family: var(--mono);
  font-weight: 300;
  font-size: .66rem;
  letter-spacing: .12em;
  color: var(--ink-dim);
  background: rgba(11, 9, 8, .55);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .32rem 1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.b-open {
  font-family: var(--cond);
  font-size: .64rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-dim);
  transition: color .25s ease;
  white-space: nowrap;
}
.b-open:hover { color: var(--ember-hot); }
.browser-body { position: relative; }
.browser-body iframe {
  display: block;
  width: 100%;
  height: clamp(440px, 68vh, 780px);
  border: 0;
  background: #101010;
}
/* desktop: o iframe renderiza em 1440px (versão web REAL) e é escalado pra caber */
.browser-body.ao-vivo {
  height: clamp(440px, 68vh, 780px);
  overflow: hidden;
}
.browser-body.ao-vivo iframe {
  position: absolute;
  top: 0; left: 0;
  transform-origin: 0 0;
  height: auto;
}
.browser-body .case-art { aspect-ratio: 21 / 9; border-radius: 0; }
.browser-body .case-shot-wrap { aspect-ratio: 21 / 9; border-radius: 0; }
.detail-dominio {
  font-family: var(--mono);
  font-weight: 300;
  font-size: .66rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  text-align: center;
  margin-top: .9rem;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
  margin-bottom: 4.5rem;
}
.detail-main section { margin-bottom: 2.8rem; padding: 0; }
.detail-h2 {
  font-family: var(--cond);
  font-weight: 500;
  font-size: 1.1rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  padding-bottom: .7rem;
  border-bottom: 1px solid var(--line);
}
.detail-lede {
  font-size: 1.08rem;
  font-weight: 300;
  color: var(--ink);
  line-height: 1.7;
}
.detail-text {
  color: var(--ink-dim);
  font-weight: 300;
  font-size: .94rem;
  margin-bottom: 1.4rem;
}
.detail-features { display: flex; flex-direction: column; gap: .9rem; margin-bottom: 1.4rem; }
.detail-features li {
  color: var(--ink-dim);
  font-weight: 300;
  font-size: .92rem;
  line-height: 1.65;
  padding-left: 1.3rem;
  position: relative;
}
.detail-features li::before {
  content: '';
  position: absolute;
  left: 0; top: .62em;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--ember);
}
.detail-features strong { color: var(--ink); font-weight: 500; }
.detail-fecho { margin-bottom: 0; }

.detail-side { display: flex; flex-direction: column; gap: 1.2rem; position: sticky; top: 6rem; }
.side-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.3rem 1.4rem;
  background: rgba(236, 229, 218, .02);
}
.side-card h3 {
  font-family: var(--cond);
  font-weight: 500;
  font-size: .72rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: .9rem;
}
.side-ficha { display: flex; flex-direction: column; gap: .8rem; }
.side-ficha div { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.side-ficha dt {
  font-family: var(--mono);
  font-weight: 300;
  font-size: .64rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.side-ficha dd { font-size: .82rem; font-weight: 400; color: var(--ink); text-align: right; }
.autor-nome { font-weight: 500; font-size: .95rem; margin-bottom: .2rem; }
.autor-cargo { font-weight: 300; font-size: .8rem; color: var(--ink-dim); margin-bottom: .9rem; }
.autor-link {
  font-family: var(--cond);
  font-size: .68rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ember-hot);
  transition: color .25s ease;
}
.autor-link:hover { color: var(--ink); }

.detail-more { padding: 0; }
.detail-more-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1.6rem;
}
.more-all {
  font-family: var(--cond);
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-dim);
  transition: color .25s ease;
}
.more-all:hover { color: var(--ember-hot); }
.more-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}
.more-card { display: block; }
.more-card .case-art { aspect-ratio: 16 / 10; border-radius: 10px; border: 1px solid var(--line); }
.more-card .art-mark { font-size: 1.9rem; }
.more-card:hover .case-art { transform: scale(1.03); }
.more-meta {
  font-family: var(--mono);
  font-weight: 300;
  font-size: .6rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: .8rem 0 .2rem;
}
.more-title {
  font-family: var(--cond);
  font-weight: 400;
  font-size: .95rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.footer-detail { margin: 0; }

@media (max-width: 960px) {
  .detail-grid { grid-template-columns: 1fr; }
  .detail-side { position: static; }
  .more-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-preview .case-art { aspect-ratio: 16 / 9; }
}

/* ── reveal on scroll ──────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity .9s cubic-bezier(.16, .8, .3, 1), transform .9s cubic-bezier(.16, .8, .3, 1);
  transition-delay: var(--d, 0s);
}
.reveal.in { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .silk, .marquee-track, .grain, .scroll-line::after { animation: none !important; }
  .reveal, .reveal-load { opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ── responsivo ────────────────────────────────────────────── */
@media (max-width: 960px) {
  .work-grid { grid-template-columns: 1fr; }
  .sistemas-duo { grid-template-columns: 1fr; }
  .sistemas-esq { position: static; }
  .notes-duo { grid-template-columns: 1fr; }
  .notes-app-body { grid-template-columns: 1fr; }
  .notes-side { border-right: 0; border-bottom: 1px solid var(--line); }
  .notes-feature { grid-template-columns: 1fr; }
  .notes-feature .note-art { min-height: 170px; }
  .notes-strip-row { grid-template-columns: repeat(2, 1fr); }
  .flow-step { grid-template-columns: 2.4rem 110px 1fr; }
  .flow-thumb { width: 110px; }
  .flow-tags { grid-column: 3; justify-content: flex-start; max-width: none; }
  .process-line { flex-direction: column; gap: 2rem; }
  .step-arrow { transform: rotate(90deg); padding: 0; align-self: flex-start; margin-left: .2rem; }
  .about-bento { grid-template-columns: 1fr; }
  .ab-row { grid-template-columns: 1fr; }
  .ab-cover { min-height: 320px; }
}

@media (max-width: 760px) {
  /* título dos depoimentos vira marca-d'água: no estreito os cards passam por
     cima dele e os dois textos brigavam pela leitura (ver js/main.js) */
  .depo-titulo { opacity: .14; }

  .nav { gap: 1rem; }
  .nav-links {
    position: fixed;
    inset: 0;
    background: rgba(11, 9, 8, .97);
    backdrop-filter: blur(18px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.2rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity .35s ease;
    z-index: -1;
  }
  .nav-links.open { opacity: 1; pointer-events: auto; z-index: 999; }
  .nav-links a { font-size: 1rem; }
  .nav-cta { display: none; }
  .nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-left: auto;
    background: none;
    border: none;
    cursor: pointer;
    padding: .5rem;
    z-index: 1001;
  }
  .nav-toggle span {
    width: 26px; height: 1.5px;
    background: var(--ink);
    transition: transform .3s ease;
  }
  .nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

  .br-desk { display: none; }
  .case-wide .case-art { aspect-ratio: 16 / 9; }
  .case-shot-wrap { aspect-ratio: 16 / 9; }
  /* alinhado à esquerda como o resto da dobra — centralizar destoava */
  .contact-links { flex-wrap: wrap; justify-content: flex-start; gap: .4rem 1.6rem; }
  .footer { flex-direction: column; text-align: center; }

  /* polish mobile */
  .hero { padding-top: 5rem; padding-bottom: 3rem; }
  .hero-eyebrow {
    font-size: .58rem;
    letter-spacing: .26em;
    gap: .6rem;
    flex-wrap: wrap;
    margin-bottom: 1.8rem;
  }
  .hero-title { letter-spacing: .05em; line-height: 1.14; }
  .hero-tagline { font-size: .88rem; margin-bottom: 2.2rem; }
  .hero-actions { flex-direction: column; align-items: stretch; max-width: 18rem; margin: 0 auto; }
  .btn { justify-content: center; }
  .silk { filter: blur(46px); }           /* alivia a GPU do celular */
  .hero-n { left: 50%; right: auto; height: 72vh; opacity: .42; transform: translate(-50%, -55%); }
  .marquee-track span { font-size: .66rem; letter-spacing: .3em; }
  .case-info { padding-top: 1.1rem; }
  .case-title { font-size: 1.4rem; }
  .ab-stats { gap: .8rem; }
  .contact-title { font-size: clamp(1.8rem, 8.5vw, 2.6rem); }
  .contact-duo { grid-template-columns: 1fr; gap: 2rem; }
  .detail { padding-top: 6rem; }
  .detail-head { align-items: stretch; }
  .detail-actions { width: 100%; }
  .detail-actions .btn { flex: 1; justify-content: center; }
  .more-grid { gap: .9rem; }
  .side-card { padding: 1.1rem 1.2rem; }
  .browser-body iframe { height: 62vh; }
  .browser-bar { gap: .7rem; }
}

/* ═══════════════════════════════════════════════════════════════
   POLISH MOBILE — passe de acabamento (auditoria em 390×844)
   ═══════════════════════════════════════════════════════════════ */

/* ── prévia dos cases: o screenshot é 1280×14240 (1:11). Rolando dentro
   de uma janela 16/9 ele mostrava ~5% — um zoom em texto do meio do site.
   Sem iframe vivo (só ≥960), o card ancora no TOPO: aparece o hero do
   site, que é o que comunica "este é o site". ─────────────────── */
@media (max-width: 959px) {
  .case-shot-pan {
    animation: none;
    height: 100%;
    object-fit: cover;
    object-position: 50% 0;
  }
}

/* ── sem cursor: hover não "gruda" no toque; o feedback vira :active ── */
@media (hover: none) {
  .pilar-card:hover,
  .strip-thumb:hover,
  .strip-book:hover,
  .case-media:hover .case-art,
  .case-media:hover .case-live,
  .more-card:hover .case-art,
  .ab-destaque:hover img { transform: none; }

  .btn-solid:hover {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--bg);
    transform: none;
    box-shadow: none;
  }
  .btn-ghost:hover { border-color: var(--line); transform: none; }
  .btn:active { transform: scale(.97); }
  .case-media:active .case-shot-pan { opacity: .82; }
}

@media (max-width: 760px) {
  /* ── alvos de toque: mínimo confortável de 44px ─────────────── */
  .nav-toggle {
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 0;
  }
  /* a marca fica por cima do overlay — a identidade não some com o menu aberto */
  .nav-brand { padding: .45rem 0; position: relative; z-index: 1001; }
  .nav-links a { padding: .65rem 1.2rem; }
  .notes-nav button { padding: .8rem .85rem; }
  .notes-cta { min-height: 44px; }
  .contact-links a { min-height: 44px; display: inline-flex; align-items: center; }
  /* mesmos 44px na página de case */
  .crumb a,
  .autor-link,
  .more-all { display: inline-block; padding: .9rem 0; }
  .b-open { display: inline-flex; align-items: center; min-height: 44px; padding-inline: .4rem; }

  /* ── assinatura do rodapé: o mínimo de 9rem estourava 390px e
     amputava o "S" e o cursor na borda ─────────────────────────── */
  .footer-mark { font-size: clamp(3.4rem, 19vw, 9rem); letter-spacing: .1em; }
  .footer-mark .fm-cursor { right: -.34em; }

  /* ── o N atrás do título competia com "Construa algo incrível" ── */
  .hero-n { opacity: .3; height: 64vh; transform: translate(-50%, -58%); }

  /* ── bateria: o grão animado é uma camada de tela cheia recomposta
     3×/s. Parado, o efeito de filme continua idêntico. ──────────── */
  .grain { animation: none; opacity: .045; }
  .pilar-card { backdrop-filter: blur(10px) saturate(1.2); -webkit-backdrop-filter: blur(10px) saturate(1.2); }

  /* ── trilho de seção: volta ao celular em escala menor, colado na
     borda. O mix-blend difference já inverte sozinho na dobra clara. ── */
  /* no celular não há margem lateral vazia: deitado, o rótulo atravessava o
     texto. Na vertical ele vira uma tira fina colada na borda. */
  .secao-rail {
    right: .4rem;
    gap: .45rem;
    opacity: .34;
  }
  .secao-rail span {
    writing-mode: vertical-rl;
    font-size: .44rem;
    letter-spacing: .22em;
  }
  .secao-rail i { width: 1.5px; height: 38px; }

  /* ── rodapé do hero: volta e ocupa o vazio abaixo dos botões ──── */
  .hero-foot {
    bottom: max(1.4rem, env(safe-area-inset-bottom));
    align-items: flex-end;
    gap: 1rem;
  }
  .hero-scroll { font-size: .55rem; letter-spacing: .22em; gap: .6rem; }
  .scroll-line { height: 34px; }
  .hero-avail { font-size: .55rem; letter-spacing: .18em; line-height: 1.7; }

  /* ── safe-area no fim da página (barra de gestos do iPhone) ───── */
  .footer { padding-bottom: max(1.6rem, env(safe-area-inset-bottom)); }
  .nav-links { padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom); }
}

/* ── Direção: em 390px o grid de 3 colunas espremia o texto em ~140px
   (quebra a cada 3 palavras) e deixava o "001" boiando no vazio.
   Vira: número + título na mesma linha, texto solto, cena embaixo. ── */
@media (max-width: 620px) {
  .flow-step {
    grid-template-columns: 2.8rem 1fr;
    gap: .5rem 1rem;
    align-items: start;
    padding: 1.6rem 1rem;
  }
  .flow-num { grid-column: 1; grid-row: 1; padding-top: .2em; }
  .flow-body { grid-column: 2; grid-row: 1; }
  .flow-body p { max-width: none; margin-top: .5rem; }
  .flow-tags {
    grid-column: 2; grid-row: 2;
    justify-content: flex-start;
    max-width: none;
    margin-top: .3rem;
  }
  .flow-thumb {
    grid-column: 2; grid-row: 3;
    width: 100%;
    max-width: 15rem;
    margin-top: .7rem;
  }
}

/* ── telas estreitas de verdade (≤380px: iPhone SE/mini) ───────── */
@media (max-width: 380px) {
  .hero-title { font-size: 2.5rem; }
  .hero-eyebrow { font-size: .54rem; letter-spacing: .2em; }
  .notes-strip-row { grid-template-columns: repeat(2, 1fr); }
  .ab-stats { grid-template-columns: repeat(3, 1fr); gap: .5rem; }
  .ab-num { font-size: 1.5rem; }
}

/* ── menu aberto: a página não rola atrás do overlay ───────────── */
body.menu-aberto { overflow: hidden; }
