/* ════════════════════════════════════════════════════════════════════════════
   ERISEN — sistema visual do site institucional (redesign 23/09/2026)
   Direção: cinema + editorial + arquitetura + tecnologia silenciosa.

   Por que um arquivo só: antes cada página carregava 150–600 linhas de CSS inline,
   com os mesmos tokens redeclarados e divergindo (ouro numa, esmeralda noutra).
   Aqui ficam os TOKENS e os COMPONENTES; a composição é de cada página.
   Mesmos tokens, composições diferentes (Brief, regra 15).

   Dois universos, um sistema:
   · STUDIO  — escuro, fotográfico, serifa editorial. O que o mercado vê.
   · SYSTEMS — papel claro, grotesca + mono, linha técnica. O que organiza a operação.
   A troca de fundo (tema "papel") é o que separa os universos sem inventar cor nova.

   NÃO usar aqui: gradiente em texto, glow, neon, blob, partícula, glassmorphism.
   ════════════════════════════════════════════════════════════════════════════ */

/* ── FACES ────────────────────────────────────────────────────────────────────
   MONO: antes `--f-mono` era so uma pilha de sistema (ui-monospace, Cascadia
   Mono, SF Mono, Menlo, Consolas). Medido em 23/09/2026 com o CDP do Chromium:
   887 elementos e 10.717 glifos do site renderizavam em **Cascadia Mono**, a
   fonte do terminal do Windows — e mudariam de desenho em cada aparelho do
   visitante. A camada mono e a assinatura da marca aqui (claquete, ficha de
   case, etiqueta de setor, numero de etapa, rodape): tem de ser fonte servida.
   IBM Plex Mono e a mesma ja usada em erickantunes.com.br — um sistema
   tipografico para as duas casas. Peso 500 cobre ate 700 para nao haver
   negrito sintetico nos rotulos.

   SINAIS: os subsets 'latin' cobrem U+2191 ↑ e U+2193 ↓ mas NAO cobrem
   U+2192 →, U+2190 ←, U+2194 ↔, U+2197 ↗, U+21BA ↺, U+2713 ✓, U+25CB ○,
   U+25CF ● nem U+2715 ✕ — e os nove sao usados aqui como elemento de design.
   Sem esta face, 156 elementos caiam em Segoe UI Semibold e outros em Segoe UI
   / Segoe UI Symbol / Cambria Math / Consolas. Desenhada a partir da propria
   Instrument Sans (tools/build-marks-font.py): o que a familia ja tem sai dela,
   o que falta e a seta girada ou traco no mesmo peso. O unicode-range cobre so
   esses pontos: nenhum outro glifo do site e afetado. */
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/IBMPlexMono-normal-400.woff2) format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500 700; font-display: swap; src: url(/assets/fonts/IBMPlexMono-normal-500.woff2) format('woff2'); }
@font-face { font-family: 'Erisen Marks'; font-style: normal; font-weight: 400; font-display: block; src: url(/assets/fonts/erisen-marks-400.woff2) format('woff2'); unicode-range: U+2190-2194, U+2197, U+21BA, U+2713, U+25CB, U+25CF, U+2715; }
@font-face { font-family: 'Erisen Marks'; font-style: normal; font-weight: 500 900; font-display: block; src: url(/assets/fonts/erisen-marks-600.woff2) format('woff2'); unicode-range: U+2190-2194, U+2197, U+21BA, U+2713, U+25CB, U+25CF, U+2715; }

:root {
  /* superfícies — preto neutro (sem viés roxo), grafite em 3 degraus */
  --ink-0: #0A0A0B;
  --ink-1: #111113;
  --ink-2: #18181B;
  --ink-3: #222226;

  /* texto sobre escuro — branco de papel, não branco de tela */
  --paper: #ECE9E2;
  --paper-2: #B7B3AA;   /* 9.6:1 sobre --ink-0 */
  --paper-3: #8C8981;   /* 5.6:1 sobre --ink-0 — mínimo para texto pequeno */

  /* tema claro (Systems, trechos técnicos) */
  --sheet: #E8E6E0;
  --sheet-2: #DEDBD3;
  --graphite: #17171A;
  --graphite-2: #4A4843;  /* 8.0:1 sobre --sheet */
  --graphite-3: #6B6862;  /* 4.9:1 sobre --sheet */

  /* assinatura de luz — violeta-azulado frio, usado como luz e não como tinta.
     Regra de dose: linha de 1px, rótulo pequeno, foco, um ponto. Nunca fundo grande. */
  --signal: #AEB5F4;      /* 10.2:1 sobre --ink-0 */
  --signal-deep: #4B53A8; /* 6.3:1 sobre --sheet — versão para o tema claro */

  --rule: rgba(236, 233, 226, 0.11);
  --rule-2: rgba(236, 233, 226, 0.22);

  /* tipografia */
  --f-display: "Erisen Marks", "Fraunces", Georgia, "Times New Roman", serif;
  --f-sans: "Erisen Marks", "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "Erisen Marks", "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* escala tipografica — 6 degraus. Antes eram 15 tamanhos distintos entre 9 e
     16 px (148 declaracoes): diferenca de meio pixel que ninguem enxerga e que
     so mostra que o valor foi digitado componente a componente. Um por papel. */
  --fs-plate: 10px;   /* placa miuda: contador, marca de tempo sobre video */
  --fs-label: 11px;   /* rotulo mono maiusculo padrao (ficha, setor, etapa) */
  --fs-meta: 12.5px;  /* metadado, migalha, marcador pendente */
  --fs-cap: 13.5px;   /* legenda de imagem, nota de rodape */
  --fs-ui: 15px;      /* botao, link, item de lista, celula de tabela */
  --fs-body: 17px;    /* corpo de texto */

  /* grade: 12 colunas no desktop, 4 no celular (relatório §22) */
  --pad: clamp(20px, 4.2vw, 64px);
  --gutter: clamp(14px, 1.6vw, 24px);
  --shell: 1440px;

  /* ritmo vertical */
  --sec: clamp(88px, 10.5vw, 160px);
  --sec-s: clamp(64px, 8vw, 112px);

  /* raio: imagem 0–8px, botão pequeno (relatório §22) */
  --r-img: 4px;
  --r-btn: 3px;

  /* tokens de movimento (relatório §22) */
  --t-fast: 200ms;
  --t-ui: 380ms;
  --t-edit: 850ms;
  --t-special: 1200ms;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-cut: cubic-bezier(0.7, 0, 0.2, 1);

  --hdr-h: 68px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--hdr-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--ink-0);
  color: var(--paper);
  font-family: var(--f-sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--signal); color: var(--ink-0); }

:focus-visible { outline: 1px solid var(--signal); outline-offset: 4px; }
.theme-paper :focus-visible { outline-color: var(--signal-deep); }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--paper); color: var(--ink-0); padding: 10px 14px; border-radius: var(--r-btn);
  font-size: var(--fs-ui); font-weight: 600; transition: top var(--t-fast) var(--ease-out);
}
.skip:focus { top: 12px; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}

/* ── ESTRUTURA ─────────────────────────────────────────────────────────── */
.shell { width: 100%; max-width: var(--shell); margin-inline: auto; padding-inline: var(--pad); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
@media (max-width: 760px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
/* rede de segurança: posicionamento de coluna escrito inline (composição de desktop) não pode
   valer no celular — senão o texto fica recuado ou espremido numa grade de 4 colunas */
@media (max-width: 900px) {
  .grid > [style*="grid-column"], .split > [style*="grid-column"], .head > [style*="grid-column"] { grid-column: 1 / -1 !important; }
}
.sec { padding-block: var(--sec); position: relative; }
.sec--s { padding-block: var(--sec-s); }
/* duas seções seguidas no mesmo fundo não somam o respiro; se o fundo muda, o respiro volta inteiro */
.sec:not([class*="theme-"]) + .sec:not([class*="theme-"]):not(.sec--rule) { padding-top: 0; }
.sec--rule { border-top: 1px solid var(--rule); padding-top: var(--sec-s) !important; }
.bleed { width: 100%; }

.theme-paper {
  background: var(--sheet); color: var(--graphite);
  --rule: rgba(23, 23, 26, 0.12); --rule-2: rgba(23, 23, 26, 0.26);
  color-scheme: light;
}
.theme-paper ::selection { background: var(--graphite); color: var(--sheet); }
.theme-ink1 { background: var(--ink-1); }

/* ── TIPOGRAFIA ────────────────────────────────────────────────────────── */
.label {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-mono); font-size: var(--fs-label); line-height: 1.3;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--paper-3);
}
.label b { color: var(--signal); font-weight: 400; }
.theme-paper .label { color: var(--graphite-3); }
.theme-paper .label b { color: var(--signal-deep); }
.label--rule::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: 0.6; }

.d-xxl, .d-xl, .d-l, .d-m {
  font-family: var(--f-display); font-weight: 400; font-variation-settings: "opsz" 144;
  letter-spacing: -0.012em; text-wrap: balance;
}
.d-xxl { font-size: clamp(2.7rem, 7.4vw, 7.6rem); line-height: 0.98; letter-spacing: -0.022em; }
.d-xl  { font-size: clamp(2.3rem, 5.4vw, 5.4rem); line-height: 1.02; letter-spacing: -0.018em; }
.d-l   { font-size: clamp(1.9rem, 3.9vw, 3.7rem); line-height: 1.06; }
.d-m   { font-size: clamp(1.45rem, 2.3vw, 2.15rem); line-height: 1.14; font-variation-settings: "opsz" 72; }
.d-xxl em, .d-xl em, .d-l em, .d-m em { font-style: italic; font-weight: 300; }

/* grotesca de sistema — títulos do universo Systems */
.g-xl, .g-l, .g-m {
  font-family: var(--f-sans); font-weight: 500; letter-spacing: -0.035em; text-wrap: balance;
}
.g-xl { font-size: clamp(2.4rem, 5.6vw, 5.6rem); line-height: 0.98; }
.g-l  { font-size: clamp(1.9rem, 3.8vw, 3.6rem); line-height: 1.02; }
.g-m  { font-size: clamp(1.3rem, 2vw, 1.9rem); line-height: 1.15; letter-spacing: -0.02em; }

.lede { font-size: clamp(1.05rem, 1.35vw, 1.24rem); line-height: 1.6; color: var(--paper-2); max-width: 54ch; text-wrap: pretty; }
.body { color: var(--paper-2); max-width: 62ch; text-wrap: pretty; }
.body p + p { margin-top: 1em; }
.small { font-size: var(--fs-ui); line-height: 1.6; color: var(--paper-2); }
.theme-paper .lede, .theme-paper .body, .theme-paper .small { color: var(--graphite-2); }
.muted { color: var(--paper-3); }
.theme-paper .muted { color: var(--graphite-3); }
.body a, .small a, .lede a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: var(--rule-2); }
.body a:hover, .small a:hover { text-decoration-color: currentColor; }

/* ── AÇÕES ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 48px; padding: 0 22px; border-radius: var(--r-btn);
  background: var(--paper); color: var(--ink-0);
  font-size: var(--fs-ui); font-weight: 600; letter-spacing: -0.005em;
  transition: background var(--t-fast) var(--ease-out), color var(--t-fast) var(--ease-out), transform var(--t-fast) var(--ease-out);
}
.btn:hover { background: #fff; }
.btn:active { transform: translateY(1px); }
.btn .arr { transition: transform var(--t-ui) var(--ease-out); }
.btn:hover .arr, .lnk:hover .arr { transform: translateX(4px); }
.btn--line { background: transparent; color: var(--paper); box-shadow: inset 0 0 0 1px var(--rule-2); }
.btn--line:hover { background: rgba(236, 233, 226, 0.06); box-shadow: inset 0 0 0 1px var(--paper-3); }
.theme-paper .btn { background: var(--graphite); color: var(--sheet); }
.theme-paper .btn:hover { background: #000; }
.theme-paper .btn--line { background: transparent; color: var(--graphite); box-shadow: inset 0 0 0 1px var(--rule-2); }
.theme-paper .btn--line:hover { background: rgba(23, 23, 26, 0.05); }
.acts { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 480px) { .acts .btn { flex: 1 1 100%; } }

.lnk {
  display: inline-flex; align-items: center; gap: 10px; font-size: var(--fs-ui); font-weight: 500;
  padding-bottom: 3px; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size var(--t-ui) var(--ease-out);
}
.lnk:hover { background-size: 100% 1px; }
.lnk .arr { transition: transform var(--t-ui) var(--ease-out); }

/* ── CABEÇALHO ─────────────────────────────────────────────────────────── */
.hdr {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--hdr-h);
  transition: background var(--t-ui) var(--ease-out), border-color var(--t-ui) var(--ease-out), transform var(--t-ui) var(--ease-out);
  border-bottom: 1px solid transparent;
}
.hdr.is-solid { background: rgba(10, 10, 11, 0.9); border-bottom-color: var(--rule); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.hdr.is-away { transform: translateY(-100%); }
.hdr .shell { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 11px; flex: none; }
.brand img { width: 30px; height: 30px; object-fit: contain; }
.brand span { font-family: var(--f-sans); font-weight: 600; font-size: var(--fs-ui); letter-spacing: 0.01em; }
.brand span i { font-style: normal; color: var(--paper-3); font-weight: 500; }
.nav { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.nav a {
  font-size: var(--fs-ui); color: var(--paper-2); padding-block: 6px;
  background: linear-gradient(var(--paper), var(--paper)) 0 100% / 0 1px no-repeat;
  transition: color var(--t-fast), background-size var(--t-ui) var(--ease-out);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--paper); background-size: 100% 1px; }
.nav .sep { width: 1px; height: 14px; background: var(--rule-2); }
.hdr .btn { min-height: 38px; padding: 0 16px; font-size: var(--fs-cap); }
.menu-btn { display: none; min-height: 40px; padding: 0 2px 0 14px; font-size: var(--fs-ui); font-weight: 500; align-items: center; gap: 10px; margin-left: auto; }
.menu-btn .bars { width: 22px; height: 9px; position: relative; }
.menu-btn .bars::before, .menu-btn .bars::after { content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform var(--t-ui) var(--ease-out), top var(--t-ui) var(--ease-out); }
.menu-btn .bars::before { top: 0; } .menu-btn .bars::after { top: 7.5px; }
.menu-open .menu-btn .bars::before { top: 3.75px; transform: rotate(45deg); }
.menu-open .menu-btn .bars::after { top: 3.75px; transform: rotate(-45deg); }
@media (max-width: 1020px) {
  .nav, .hdr .btn { display: none; }
  .menu-btn { display: inline-flex; }
}

/* menu de tela cheia (celular/tablet) — os dois universos como índice, não como lista de links */
.menu {
  position: fixed; inset: 0; z-index: 45; background: var(--ink-0);
  padding: calc(var(--hdr-h) + 20px) var(--pad) 32px; overflow-y: auto;
  display: flex; flex-direction: column; gap: 34px;
  clip-path: inset(0 0 100% 0); visibility: hidden;
  transition: clip-path var(--t-edit) var(--ease-cut), visibility 0s linear var(--t-edit);
}
.menu-open .menu { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path var(--t-edit) var(--ease-cut), visibility 0s; }
.menu-open { overflow: hidden; }
.menu-open .hdr { background: var(--ink-0); border-bottom-color: var(--rule); }
.menu .primary a { display: block; font-family: var(--f-display); font-size: clamp(2.2rem, 10vw, 3.4rem); line-height: 1.12; font-weight: 400; }
.menu .primary a[aria-current="page"] { font-style: italic; color: var(--paper-2); }
.menu .menu-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.menu .menu-cols a { display: block; font-size: var(--fs-ui); color: var(--paper-2); padding: 5px 0; }
.menu .menu-cols .label { margin-bottom: 8px; }
.menu .foot { margin-top: auto; display: grid; gap: 12px; }

/* ── MÍDIA ─────────────────────────────────────────────────────────────── */
.media { position: relative; overflow: hidden; background: var(--ink-2); border-radius: var(--r-img); }
.media > img, .media > video { width: 100%; height: 100%; object-fit: cover; }
.media--r0 { border-radius: 0; }
.ar-916 { aspect-ratio: 9 / 16; } .ar-45 { aspect-ratio: 4 / 5; } .ar-11 { aspect-ratio: 1; }
.ar-169 { aspect-ratio: 16 / 9; } .ar-219 { aspect-ratio: 21 / 9; } .ar-32 { aspect-ratio: 3 / 2; }
.media figcaption, .cap {
  font-family: var(--f-mono); font-size: var(--fs-label); letter-spacing: 0.1em; text-transform: uppercase; color: var(--paper-3);
}
.media > figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 14px 12px; color: rgba(255, 255, 255, 0.86);
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.72));
}
.cap { display: flex; justify-content: space-between; gap: 12px; margin-top: 10px; }
.theme-paper .cap { color: var(--graphite-3); }

/* botão de som — navegador bloqueia autoplay com áudio, então o som é sempre escolha do visitante */
.snd {
  position: absolute; right: 10px; bottom: 10px; z-index: 3; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(10, 10, 11, 0.62); color: var(--paper);
  box-shadow: inset 0 0 0 1px rgba(236, 233, 226, 0.22); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.snd svg { width: 17px; height: 17px; }
.snd .on { display: none; } .snd[aria-pressed="true"] .on { display: block; } .snd[aria-pressed="true"] .off { display: none; }

/* marcador de pendência — espaço reservado para conteúdo que o dono ainda precisa fornecer.
   Fica VISÍVEL de propósito: não pode ir ao ar sem alguém ver. */
.pendente {
  display: grid; place-content: center; gap: 8px; text-align: center; padding: 28px 20px; min-height: 160px;
  border: 1px dashed rgba(174, 181, 244, 0.55); border-radius: var(--r-img);
  background: repeating-linear-gradient(135deg, rgba(174, 181, 244, 0.05) 0 12px, transparent 12px 24px);
  color: var(--paper-2); font-size: var(--fs-ui); line-height: 1.5;
}
.pendente code { font-family: var(--f-mono); font-size: var(--fs-meta); letter-spacing: 0.08em; color: var(--signal); }
.theme-paper .pendente { border-color: rgba(75, 83, 168, 0.55); color: var(--graphite-2); background: repeating-linear-gradient(135deg, rgba(75, 83, 168, 0.06) 0 12px, transparent 12px 24px); }
.theme-paper .pendente code { color: var(--signal-deep); }
.pendente-inline { font-family: var(--f-mono); font-size: var(--fs-meta); color: var(--signal); border-bottom: 1px dashed currentColor; }
.theme-paper .pendente-inline { color: var(--signal-deep); }

/* ── HERO: TIRA DE FILME (home) ────────────────────────────────────────────
   Os vídeos do acervo são verticais (9:16). Em vez de cortar um vertical para
   caber numa tela deitada, a tela vira uma tira de fotogramas — a linguagem da
   mesa de edição. Cada quadro é um trabalho real, com cliente e categoria. */
.hero-strip {
  position: relative; height: 100svh; min-height: 680px; max-height: 1100px; display: grid; grid-template-rows: minmax(0, 1fr) auto;
  overflow: hidden; background: var(--ink-0); isolation: isolate;
}
/* a tira ocupa a linha de cima e o texto a de baixo: título nunca fica sobre vídeo em movimento */
.strip {
  position: relative; z-index: -2; display: flex; align-items: stretch; overflow: hidden;
  margin-top: calc(var(--hdr-h) + 8px); min-height: 300px;
}
.strip-track {
  display: flex; gap: clamp(8px, 0.9vw, 14px); width: max-content; padding-inline: 6px; height: 100%;
  animation: strip-run 90s linear infinite;
}
.strip-track.is-paused { animation-play-state: paused; }
@keyframes strip-run { to { transform: translateX(-50%); } }
.frame {
  position: relative; flex: none; height: 100%; aspect-ratio: 9 / 16;
  overflow: hidden; background: var(--ink-2); border-radius: 2px;
}
.frame > video, .frame > img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.92) contrast(1.03); }
.frame figcaption {
  position: absolute; left: 10px; right: 10px; top: 9px; display: flex; justify-content: space-between; gap: 8px;
  font-family: var(--f-mono); font-size: var(--fs-plate); letter-spacing: 0.1em; text-transform: uppercase; color: rgba(236, 233, 226, 0.78);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.8);
}
.frame--site .scroller { position: absolute; inset: 0; overflow: hidden; background: #fff; container-type: size; }
.frame--site .scroller img { width: 100%; height: auto; max-width: none; animation: site-scroll 38s var(--ease-cut) infinite alternate; }
@keyframes site-scroll { 0%, 8% { transform: translateY(0); } 92%, 100% { transform: translateY(calc(-100% + 100cqh)); } }
.frame--flow { background: var(--sheet); color: var(--graphite); display: grid; align-content: center; padding: 18px 16px; }
.frame--flow ol { display: grid; gap: 7px; }
.frame--flow li {
  font-family: var(--f-mono); font-size: var(--fs-label); letter-spacing: 0.06em; text-transform: uppercase;
  padding: 9px 10px; box-shadow: inset 0 0 0 1px rgba(23, 23, 26, 0.18); border-radius: 2px; position: relative;
  animation: flow-pulse 7s var(--ease-out) infinite; animation-delay: calc(var(--i) * 1.1s);
}
.frame--flow li + li::before { content: ""; position: absolute; left: 50%; top: -8px; width: 1px; height: 8px; background: rgba(23, 23, 26, 0.3); }
@keyframes flow-pulse { 0%, 100% { background: transparent; } 8%, 22% { background: var(--graphite); color: var(--sheet); } }
/* esfuma só a base da tira, onde ela encontra o título */
.strip::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 38%; pointer-events: none;
  background: linear-gradient(180deg, rgba(10, 10, 11, 0), var(--ink-0));
}
.hero-strip .copy { grid-row: 2; padding-top: clamp(4px, 1vw, 12px); padding-bottom: clamp(24px, 3.4vw, 44px); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: end; }
.hero-strip .copy > .label { grid-column: 1 / -1; margin: -34px 0 18px; }
.hero-strip h1 { grid-column: 1 / span 8; font-size: clamp(2.2rem, 4.5vw, 4.7rem); line-height: 1; letter-spacing: -0.02em; }
.hero-strip .side { grid-column: 9 / span 4; padding-bottom: 6px; }
.hero-strip .lede { font-size: clamp(1rem, 1.15vw, 1.1rem); }
.hero-strip .acts { margin-top: 22px; }
.hero-strip .meta {
  grid-column: 1 / -1; margin-top: clamp(24px, 3vw, 40px); padding-top: 14px; border-top: 1px solid var(--rule);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 28px; align-items: center;
}
@media (max-width: 1020px) {
  .hero-strip h1, .hero-strip .side { grid-column: 1 / -1; }
  .hero-strip .side { margin-top: 20px; }
}
.reel-btn { display: inline-flex; align-items: center; gap: 14px; font-size: var(--fs-ui); font-weight: 500; }
.reel-btn .ring {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  box-shadow: inset 0 0 0 1px var(--rule-2); transition: box-shadow var(--t-ui) var(--ease-out), background var(--t-ui);
}
.reel-btn:hover .ring { box-shadow: inset 0 0 0 1px var(--paper); background: rgba(236, 233, 226, 0.06); }
.reel-btn svg { width: 14px; height: 14px; margin-left: 2px; }
@media (max-width: 760px) {
  .hero-strip { height: auto; min-height: 0; max-height: none; grid-template-rows: auto auto; }
  .strip { height: 46svh; min-height: 260px; max-height: 420px; }
  .hero-strip .copy > .label { margin: 0 0 14px; }
  .hero-strip h1 { font-size: clamp(2rem, 9vw, 2.6rem); line-height: 1.02; }
  /* no celular o CTA vem antes do parágrafo: a ação aparece sem precisar rolar */
  .hero-strip .side { display: flex; flex-direction: column; margin-top: 18px; }
  .hero-strip .side .acts { order: -1; margin-top: 0; margin-bottom: 18px; }
  .hero-strip .meta .label { display: none; }
}

/* ── HERO DE PÁGINA INTERNA ────────────────────────────────────────────── */
.ph { position: relative; padding-top: calc(var(--hdr-h) + clamp(48px, 9vw, 132px)); padding-bottom: clamp(48px, 7vw, 96px); }
.ph .crumbs { margin-bottom: clamp(28px, 4vw, 48px); }
.ph h1 { max-width: 18ch; }
.ph .lede { margin-top: 24px; }
.ph .acts { margin-top: 32px; }

/* hero com mídia de tela cheia (imobiliário, render, institucional) */
.ph-media { position: relative; min-height: 100svh; display: grid; align-items: end; overflow: hidden; isolation: isolate; }
.ph-media > .bg { position: absolute; inset: 0; z-index: -2; }
.ph-media > .bg > video, .ph-media > .bg > img { width: 100%; height: 100%; object-fit: cover; }
.ph-media::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10, 10, 11, 0.62) 0%, rgba(10, 10, 11, 0.05) 28%, rgba(10, 10, 11, 0.25) 55%, rgba(10, 10, 11, 0.92) 88%, var(--ink-0) 100%); }
.ph-media .copy { padding-top: calc(var(--hdr-h) + 40px); padding-bottom: clamp(32px, 6vw, 80px); }
.ph-media h1 { max-width: 17ch; }
/* rótulos pequenos sobre render claro perdiam contraste: sombra suave em vez de faixa escura */
.ph-media .crumbs, .ph-media .label { color: rgba(236, 233, 226, 0.86); text-shadow: 0 1px 14px rgba(0, 0, 0, 0.85), 0 0 2px rgba(0, 0, 0, 0.6); }
.ph-media .lede { margin-top: 22px; color: rgba(236, 233, 226, 0.84); }
.ph-media .acts { margin-top: 30px; }
.ph-media .meta { margin-top: clamp(28px, 4vw, 52px); padding-top: 14px; border-top: 1px solid var(--rule-2); display: flex; flex-wrap: wrap; gap: 10px 32px; }

/* câmera lenta: aproximação contínua, sem efeito de "zoom" perceptível */
.slow-push { animation: slow-push 26s linear infinite alternate; transform-origin: 60% 50%; }
@keyframes slow-push { from { transform: scale(1.02); } to { transform: scale(1.12); } }

.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-family: var(--f-mono); font-size: var(--fs-label); letter-spacing: 0.08em; text-transform: uppercase; color: var(--paper-3); }
.crumbs a:hover { color: var(--paper); }
.crumbs li + li::before { content: "/"; margin-right: 8px; opacity: 0.5; }
.theme-paper .crumbs { color: var(--graphite-3); }
.theme-paper .crumbs a:hover { color: var(--graphite); }

/* ── DECLARAÇÃO (manifesto tipográfico) ────────────────────────────────── */
.statement { font-family: var(--f-display); font-weight: 300; font-variation-settings: "opsz" 144; font-size: clamp(2rem, 5.2vw, 5.2rem); line-height: 1.05; letter-spacing: -0.02em; text-wrap: balance; }
.statement .dim { color: var(--paper-3); }
.statement em { font-style: italic; }

/* ── STUDIO × SYSTEMS ───────────────────────────────────────────────────
   Um bloco grande por universo (relatório §5.3: "não usar seis cards por lado").
   No desktop, o universo sob o ponteiro ganha espaço — é a "transição Studio/Systems". */
.universes { display: flex; min-height: min(92svh, 860px); border-top: 1px solid var(--rule); }
.uni {
  position: relative; flex: 1 1 50%; min-width: 0; overflow: hidden; display: flex; flex-direction: column;
  padding: clamp(28px, 3.4vw, 56px) var(--pad); isolation: isolate;
  transition: flex-grow var(--t-special) var(--ease-out);
}
.uni--studio { color: var(--paper); }
.uni--studio .bg { position: absolute; inset: 0; z-index: -2; }
.uni--studio .bg video { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.9); transition: transform var(--t-special) var(--ease-out); }
.uni--studio::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10, 10, 11, 0.55), rgba(10, 10, 11, 0.1) 35%, rgba(10, 10, 11, 0.86)); }
.uni--systems { background: var(--sheet); color: var(--graphite); }
.uni h2 { margin-top: auto; }
.uni .list { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: var(--fs-ui); }
.uni--studio .list { color: rgba(236, 233, 226, 0.82); }
.uni--systems .list { color: var(--graphite-2); }
.uni .lnk { margin-top: 26px; align-self: flex-start; }
.uni-head { display: flex; justify-content: space-between; gap: 16px; }
@media (hover: hover) and (min-width: 1021px) {
  .universes:hover .uni { flex-grow: 0.78; }
  .universes .uni:hover { flex-grow: 1.22; }
  .uni--studio:hover .bg video { transform: scale(1.03); }
}
@media (max-width: 860px) {
  .universes { flex-direction: column; min-height: 0; }
  .uni { min-height: 78svh; }
  .uni-head > :last-child { display: none; }
}

/* diagrama de fluxo (Systems) — informação andando, não "dashboard bonito" */
.flow { display: grid; gap: 0; margin: clamp(26px, 4vw, 48px) 0 0; max-width: 460px; }
.flow li {
  display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 12px;
  padding: 13px 0; border-top: 1px solid var(--rule); font-size: var(--fs-ui); position: relative;
}
.flow li:last-child { border-bottom: 1px solid var(--rule); }
.flow .n { font-family: var(--f-mono); font-size: var(--fs-label); color: var(--graphite-3); }
.flow .t { font-family: var(--f-mono); font-size: var(--fs-label); color: var(--graphite-3); letter-spacing: 0.06em; }
.flow li::after {
  content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%; background: var(--graphite);
  transform: scaleX(0); transform-origin: left; animation: flow-line 7.5s var(--ease-cut) infinite; animation-delay: calc(var(--i) * 1.25s);
}
@keyframes flow-line { 0% { transform: scaleX(0); } 12% { transform: scaleX(1); } 60% { transform: scaleX(1); opacity: 1; } 75%, 100% { transform: scaleX(1); opacity: 0; } }
.theme-paper .flow li, .uni--systems .flow li { border-color: rgba(23, 23, 26, 0.14); }

/* fluxo horizontal grande (páginas Systems / Apps e CRM) */
.pipeline { display: grid; grid-template-columns: repeat(var(--steps, 5), minmax(0, 1fr)); border-top: 1px solid var(--rule-2); border-bottom: 1px solid var(--rule-2); }
.pipeline > li { position: relative; padding: 22px 18px 26px 0; min-height: 190px; display: flex; flex-direction: column; gap: 10px; }
.pipeline > li + li { padding-left: 18px; border-left: 1px solid var(--rule); }
.pipeline .n { font-family: var(--f-mono); font-size: var(--fs-label); letter-spacing: 0.1em; color: var(--graphite-3); }
.pipeline h3 { font-family: var(--f-sans); font-weight: 500; font-size: clamp(1.1rem, 1.6vw, 1.45rem); letter-spacing: -0.02em; }
.pipeline p { font-size: var(--fs-ui); line-height: 1.55; color: var(--graphite-2); margin-top: auto; }
.pipeline > li::before {
  content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 2px; background: var(--signal-deep);
  transform: scaleX(0); transform-origin: left;
}
.pipeline.is-in > li::before { animation: pipe 8s var(--ease-cut) infinite; animation-delay: calc(var(--i) * 1.4s); }
@keyframes pipe { 0% { transform: scaleX(0); transform-origin: left; } 10% { transform: scaleX(1); transform-origin: left; } 18% { transform: scaleX(1); transform-origin: right; } 28%, 100% { transform: scaleX(0); transform-origin: right; } }
:not(.theme-paper) > .pipeline .n, :not(.theme-paper) > .pipeline p { color: var(--paper-3); }
@media (max-width: 860px) {
  .pipeline { grid-template-columns: 1fr; border-bottom: 0; }
  .pipeline > li { min-height: 0; padding: 18px 0 20px 34px; border-left: 0 !important; border-bottom: 1px solid var(--rule); }
  .pipeline > li + li { padding-left: 34px; }
  .pipeline > li::before { top: 0; bottom: 0; left: 0; right: auto; width: 2px; height: auto; transform: scaleY(0); transform-origin: top; }
  .pipeline.is-in > li::before { animation-name: pipe-v; }
  @keyframes pipe-v { 0% { transform: scaleY(0); transform-origin: top; } 10%, 18% { transform: scaleY(1); } 28%, 100% { transform: scaleY(0); transform-origin: bottom; } }
  .pipeline p { margin-top: 0; }
}

/* ciclo (Mídia digital): CRIATIVO → DISTRIBUIÇÃO → CONVERSA → LEITURA → NOVO CRIATIVO */
.cycle { position: relative; width: min(100%, 560px); aspect-ratio: 1; margin-inline: auto; }
.cycle svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.cycle .orbit { fill: none; stroke: var(--rule-2); stroke-width: 1; }
.cycle .runner { fill: none; stroke: var(--signal); stroke-width: 1.5; stroke-linecap: round; stroke-dasharray: 60 1000; animation: orbit 10s linear infinite; }
@keyframes orbit { to { stroke-dashoffset: -1060; } }
.cycle .node {
  position: absolute; transform: translate(-50%, -50%); text-align: center; width: 150px;
  font-family: var(--f-mono); font-size: var(--fs-label); letter-spacing: 0.1em; text-transform: uppercase; color: var(--paper-2);
}
.cycle .node b { display: block; font-family: var(--f-display); font-weight: 400; font-size: 1.35rem; letter-spacing: -0.01em; text-transform: none; color: var(--paper); margin-top: 4px; }
.cycle .node.is-on b { color: var(--signal); }
.cycle .core { position: absolute; inset: 30%; display: grid; place-content: center; text-align: center; }
@media (max-width: 560px) { .cycle .node { width: 110px; font-size: var(--fs-plate); } .cycle .node b { font-size: 1.05rem; } }

/* ── CASES ─────────────────────────────────────────────────────────────
   Três ou quatro projetos grandes em vez de mural de miniaturas (Brief, regra 13). */
.cases { display: grid; gap: clamp(88px, 11vw, 168px); }
.case { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: end; }
.case .shots { grid-column: 1 / span 8; display: grid; grid-template-columns: repeat(var(--shots, 2), minmax(0, 1fr)); gap: var(--gutter); align-items: end; }
.case .shots .media:first-child { transform: translateY(0); }
.case .shots .media:nth-child(2) { margin-bottom: clamp(24px, 6vw, 96px); }
.case .txt { grid-column: 9 / span 4; padding-bottom: 8px; }
.case--flip .shots { grid-column: 5 / span 8; grid-row: 1; }
.case--flip .txt { grid-column: 1 / span 4; grid-row: 1; }
.case .num { font-family: var(--f-mono); font-size: var(--fs-label); letter-spacing: 0.12em; color: var(--paper-3); }
.case h3 { margin-top: 14px; }
.case .body { margin-top: 16px; font-size: var(--fs-ui); }
.case dl { margin-top: 24px; display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; font-size: var(--fs-ui); border-top: 1px solid var(--rule); padding-top: 16px; }
.case dt { font-family: var(--f-mono); font-size: var(--fs-label); letter-spacing: 0.1em; text-transform: uppercase; color: var(--paper-3); padding-top: 3px; }
.case dd { color: var(--paper-2); }
.case .lnk { margin-top: 26px; }
@media (max-width: 900px) {
  .case, .case--flip { grid-template-columns: 1fr; row-gap: 28px; }
  .case .shots, .case--flip .shots, .case .txt, .case--flip .txt { grid-column: 1 / -1; grid-row: auto; }
  .case .shots .media:nth-child(2) { margin-bottom: 40px; }
}
@media (max-width: 480px) {
  .case .shots { grid-template-columns: repeat(var(--shots, 2), minmax(0, 1fr)); gap: 10px; }
}

/* ── ÍNDICE (lista editorial de serviços — sem caixas) ─────────────────── */
.index { border-top: 1px solid var(--rule-2); }
.index li { border-bottom: 1px solid var(--rule); }
.index a, .index .row {
  display: grid; grid-template-columns: 56px minmax(0, 1.1fr) minmax(0, 1.4fr) 28px; gap: 20px; align-items: baseline;
  padding: 24px 0; position: relative;
}
.index .n { font-family: var(--f-mono); font-size: var(--fs-label); color: var(--paper-3); letter-spacing: 0.08em; }
.index h3 { font-family: var(--f-display); font-weight: 400; font-size: clamp(1.4rem, 2.4vw, 2.2rem); line-height: 1.1; letter-spacing: -0.012em; font-variation-settings: "opsz" 96; transition: transform var(--t-ui) var(--ease-out); }
.index p { color: var(--paper-2); font-size: var(--fs-ui); line-height: 1.55; }
.index .arr { justify-self: end; color: var(--paper-3); transition: transform var(--t-ui) var(--ease-out), color var(--t-fast); }
.index a:hover h3 { transform: translateX(10px); }
.index a:hover .arr { transform: translateX(4px); color: var(--paper); }
.index--sys h3 { font-family: var(--f-sans); font-weight: 500; letter-spacing: -0.03em; }
.theme-paper .index .n, .theme-paper .index .arr { color: var(--graphite-3); }
.theme-paper .index p { color: var(--graphite-2); }
.theme-paper .index a:hover .arr { color: var(--graphite); }
/* prévia de vídeo que segue o ponteiro no índice (só desktop; nada essencial depende dela) */
.index-peek { position: fixed; z-index: 30; width: 200px; aspect-ratio: 9 / 16; pointer-events: none; overflow: hidden; border-radius: 3px; opacity: 0; transform: translate(-50%, -50%) scale(0.92); transition: opacity var(--t-ui) var(--ease-out), transform var(--t-ui) var(--ease-out); left: 0; top: 0; }
.index-peek.is-on { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.index-peek video, .index-peek img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 760px) {
  .index a, .index .row { grid-template-columns: 34px minmax(0, 1fr) 20px; gap: 6px 12px; padding: 20px 0; }
  .index p { grid-column: 2 / 3; grid-row: 2; font-size: var(--fs-ui); }
  .index .arr { grid-column: 3; grid-row: 1; }
}

/* ── LINHA DO TEMPO (processo) ─────────────────────────────────────────── */
.timeline { display: grid; grid-template-columns: repeat(var(--steps, 4), minmax(0, 1fr)); gap: var(--gutter); position: relative; padding-top: 36px; }
.timeline::before { content: ""; position: absolute; top: 6px; left: 0; right: 0; height: 1px; background: var(--rule-2); transform: scaleX(var(--p, 0)); transform-origin: left; transition: transform var(--t-special) var(--ease-out); }
.timeline.is-in { --p: 1; }
.timeline li { position: relative; }
.timeline li::before { content: ""; position: absolute; top: -34px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--ink-0); box-shadow: inset 0 0 0 1px var(--paper-2); }
.theme-paper .timeline li::before { background: var(--sheet); box-shadow: inset 0 0 0 1px var(--graphite-2); }
.timeline .n { font-family: var(--f-mono); font-size: var(--fs-label); letter-spacing: 0.1em; color: var(--paper-3); }
.timeline h3 { font-family: var(--f-display); font-weight: 400; font-size: 1.45rem; margin-top: 8px; font-variation-settings: "opsz" 72; }
.timeline p { color: var(--paper-2); font-size: var(--fs-ui); margin-top: 8px; line-height: 1.55; }
.theme-paper .timeline h3 { font-family: var(--f-sans); font-weight: 500; letter-spacing: -0.02em; }
.theme-paper .timeline p { color: var(--graphite-2); }
.theme-paper .timeline .n { color: var(--graphite-3); }
@media (max-width: 860px) {
  .timeline { grid-template-columns: 1fr; padding-top: 0; padding-left: 28px; gap: 26px; }
  .timeline::before { top: 0; bottom: 0; left: 4px; right: auto; width: 1px; height: auto; transform: scaleY(var(--p, 0)); transform-origin: top; }
  .timeline li::before { top: 6px; left: -28px; }
}

/* ── CITAÇÃO ───────────────────────────────────────────────────────────── */
.quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gutter); }
.quote { border-top: 1px solid var(--rule-2); padding-top: 22px; display: flex; flex-direction: column; gap: 22px; }
.quote blockquote { font-family: var(--f-display); font-weight: 300; font-size: clamp(1.2rem, 1.7vw, 1.55rem); line-height: 1.3; letter-spacing: -0.008em; font-variation-settings: "opsz" 72; }
.quote figcaption { margin-top: auto; display: flex; align-items: center; gap: 14px; font-size: var(--fs-ui); }
.quote figcaption b { display: block; font-weight: 600; }
.quote figcaption span { color: var(--paper-3); }
.quote .logo { width: 64px; height: 36px; object-fit: contain; background: #F2F0EB; border-radius: 2px; padding: 5px 7px; flex: none; }
.quote--big blockquote { font-size: clamp(1.6rem, 3.4vw, 3rem); line-height: 1.16; }
.quotes--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 900px) { .quotes, .quotes--2 { grid-template-columns: 1fr; gap: 44px; } }

/* ── NÚMEROS ───────────────────────────────────────────────────────────── */
.stats { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); border-top: 1px solid var(--rule-2); }
.stat { padding: 22px 20px 6px 0; }
.stat + .stat { padding-left: 20px; border-left: 1px solid var(--rule); }
.stat b { display: block; font-family: var(--f-display); font-weight: 300; font-size: clamp(2.6rem, 5.4vw, 5rem); line-height: 1; letter-spacing: -0.03em; font-variation-settings: "opsz" 144; }
.stat span { display: block; margin-top: 10px; font-family: var(--f-mono); font-size: var(--fs-label); letter-spacing: 0.1em; text-transform: uppercase; color: var(--paper-3); }
@media (max-width: 560px) { .stat + .stat { padding-left: 12px; } .stat { padding-right: 8px; } .stat span { font-size: var(--fs-plate); } }

/* ── LOGOS (fila estática — prova de apoio, não protagonista) ──────────── */
.logos { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.logos img { height: 52px; width: 124px; object-fit: contain; background: #F2F0EB; padding: 9px 14px; border-radius: 2px; opacity: 0.86; transition: opacity var(--t-fast); }
.logos img:hover { opacity: 1; }
@media (max-width: 480px) { .logos { display: grid; grid-template-columns: repeat(3, 1fr); } .logos img { width: 100%; } }

/* ── FAIXA HORIZONTAL (setores, formatos) ──────────────────────────────── */
.rail { display: flex; gap: var(--gutter); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-inline: var(--pad); margin-inline: calc(var(--pad) * -1); overscroll-behavior-x: contain; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; flex: none; }
.rail-ctrl { display: flex; gap: 8px; }
.rail-ctrl button { width: 42px; height: 42px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--rule-2); display: grid; place-items: center; transition: background var(--t-fast); }
.rail-ctrl button:hover { background: rgba(236, 233, 226, 0.08); }
.theme-paper .rail-ctrl button:hover { background: rgba(23, 23, 26, 0.06); }
.rail-ctrl svg { width: 16px; height: 16px; }
.sector { width: clamp(250px, 26vw, 360px); }
.sector .media { aspect-ratio: 4 / 5; }
.sector h3 { font-family: var(--f-display); font-weight: 400; font-size: 1.6rem; margin-top: 16px; letter-spacing: -0.01em; }
.sector p { color: var(--paper-2); font-size: var(--fs-ui); margin-top: 6px; line-height: 1.55; }
.sector--type { border-top: 1px solid var(--rule-2); padding-top: 18px; width: clamp(230px, 22vw, 300px); }
.sector--type h3 { margin-top: 0; font-size: clamp(1.8rem, 2.6vw, 2.4rem); }

/* ── TABELA EDITORIAL (tipos, especificações) ──────────────────────────── */
.spec { border-top: 1px solid var(--rule-2); }
.spec .r { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, 1fr); gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
.spec .r.h { font-family: var(--f-mono); font-size: var(--fs-label); letter-spacing: 0.1em; text-transform: uppercase; color: var(--paper-3); padding: 12px 0; }
.spec .r b { font-family: var(--f-display); font-weight: 400; font-size: 1.3rem; letter-spacing: -0.01em; }
.spec .r span { color: var(--paper-2); font-size: var(--fs-ui); }
.spec .r i { display: none; font-style: normal; font-family: var(--f-mono); font-size: var(--fs-label); letter-spacing: 0.1em; text-transform: uppercase; color: var(--paper-3); margin-bottom: 3px; }
@media (max-width: 760px) {
  .spec .r { grid-template-columns: 1fr; gap: 8px; }
  .spec .r.h { display: none; }
  .spec .r i { display: block; }
}

/* ── ACORDEÃO (details nativo — funciona sem JS e com teclado) ─────────── */
.acc { border-top: 1px solid var(--rule-2); }
.acc details { border-bottom: 1px solid var(--rule); }
.acc summary {
  list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr 24px; gap: 20px; align-items: center;
  padding: 22px 0; font-family: var(--f-display); font-weight: 400; font-size: clamp(1.1rem, 1.6vw, 1.4rem); line-height: 1.3; font-variation-settings: "opsz" 48;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: ""; width: 14px; height: 14px; justify-self: end; background: linear-gradient(currentColor, currentColor) center / 14px 1px no-repeat, linear-gradient(currentColor, currentColor) center / 1px 14px no-repeat; transition: transform var(--t-ui) var(--ease-out); }
.acc details[open] summary::after { transform: rotate(45deg); }
.acc details > div, .acc details > p { padding: 0 44px 24px 0; color: var(--paper-2); max-width: 70ch; }
.theme-paper .acc details > div, .theme-paper .acc details > p { color: var(--graphite-2); }
.theme-paper .acc summary { font-family: var(--f-sans); font-weight: 500; letter-spacing: -0.015em; }

/* ── NAVEGADOR (sites reais rolando) ───────────────────────────────────── */
.browser { border-radius: 6px; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px var(--rule-2), 0 40px 90px rgba(0, 0, 0, 0.45); }
.browser .bar { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; background: #1A1A1D; }
.browser .bar i { width: 9px; height: 9px; border-radius: 50%; background: #3A3A3F; }
.browser .bar span { margin-left: 12px; font-family: var(--f-mono); font-size: var(--fs-label); color: var(--paper-3); }
.browser .screen { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.browser .screen img { width: 100%; height: auto; }
.browser .screen.is-rolling img { animation: page-scroll var(--dur, 30s) var(--ease-cut) infinite alternate; }
@keyframes page-scroll { 0%, 6% { transform: translateY(0); } 94%, 100% { transform: translateY(var(--travel, -80%)); } }
.phone { width: 100%; max-width: 260px; aspect-ratio: 9 / 19.5; border-radius: 30px; padding: 9px; background: #1A1A1D; box-shadow: 0 0 0 1px var(--rule-2), 0 30px 70px rgba(0, 0, 0, 0.5); }
.phone .screen { width: 100%; height: 100%; border-radius: 22px; overflow: hidden; background: #fff; position: relative; }
.phone .screen img { width: 100%; height: auto; }

/* ── ANTES / DEPOIS (controle é um range nativo: teclado e leitor de tela funcionam) ── */
.ba { position: relative; overflow: hidden; border-radius: var(--r-img); --x: 50%; user-select: none; }
.ba img { width: 100%; height: 100%; object-fit: cover; }
.ba .after { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--x)); }
.ba .handle { position: absolute; top: 0; bottom: 0; left: var(--x); width: 1px; background: var(--paper); pointer-events: none; }
.ba .handle::after { content: ""; position: absolute; top: 50%; left: 50%; width: 40px; height: 40px; border-radius: 50%; transform: translate(-50%, -50%); background: rgba(10, 10, 11, 0.6); box-shadow: inset 0 0 0 1px var(--paper); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.ba input[type="range"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.ba input[type="range"]:focus-visible + .handle::after { box-shadow: inset 0 0 0 1px var(--paper), 0 0 0 3px var(--signal); }
.ba .tag { position: absolute; top: 12px; font-family: var(--f-mono); font-size: var(--fs-label); letter-spacing: 0.1em; text-transform: uppercase; padding: 5px 8px; background: rgba(10, 10, 11, 0.62); border-radius: 2px; }
.ba .tag--a { left: 12px; } .ba .tag--b { right: 12px; }

/* ── EQUIPE ────────────────────────────────────────────────────────────── */
.team { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gutter); }
.person .media { aspect-ratio: 4 / 5; }
.person .media img { object-position: 50% 22%; }
.person h3 { font-family: var(--f-display); font-weight: 400; font-size: 1.6rem; margin-top: 16px; letter-spacing: -0.01em; }
.person p { color: var(--paper-2); font-size: var(--fs-ui); margin-top: 4px; }
@media (max-width: 560px) { .team { gap: 12px; } .person h3 { font-size: 1.25rem; } .person p { font-size: var(--fs-cap); } }

/* ── FILTROS + GRADE DE TRABALHOS ──────────────────────────────────────── */
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters button {
  min-height: 38px; padding: 0 14px; border-radius: var(--r-btn); box-shadow: inset 0 0 0 1px var(--rule-2);
  font-size: var(--fs-cap); color: var(--paper-2); transition: background var(--t-fast), color var(--t-fast), box-shadow var(--t-fast);
}
.filters button:hover { color: var(--paper); box-shadow: inset 0 0 0 1px var(--paper-3); }
.filters button[aria-pressed="true"] { background: var(--paper); color: var(--ink-0); box-shadow: none; }
.filters button span { font-family: var(--f-mono); font-size: var(--fs-label); margin-left: 6px; opacity: 0.7; }
.works { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gutter); align-items: start; }
.work { position: relative; }
.work .media { cursor: pointer; }
.work .media:focus-visible { outline: 1px solid var(--signal); outline-offset: 3px; }
.work.is-wide { grid-column: span 2; }
.work h3 { font-size: var(--fs-ui); font-weight: 600; margin-top: 12px; line-height: 1.35; }
.work p { font-size: var(--fs-ui); color: var(--paper-2); margin-top: 3px; line-height: 1.5; }
/* a ficha do trabalho e mono/etiqueta (regra `.media figcaption, .cap`);
   sem esta linha o seletor `.work p` acima, mais especifico por vir depois,
   promovia a legenda a tamanho de corpo — a 390 px isso empurrava a pagina
   11 px para fora (medido em /portfolio/ e /imobiliario/portfolio/). */
.work .cap { margin-top: 12px; font-size: var(--fs-label); }
.work[hidden] { display: none; }
.work .play-ico { position: absolute; left: 12px; top: 12px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: rgba(10, 10, 11, 0.55); opacity: 0; transition: opacity var(--t-fast); }
.work .media:hover .play-ico, .work .media:focus-visible .play-ico { opacity: 1; }
.work .play-ico svg { width: 11px; height: 11px; margin-left: 2px; }
@media (max-width: 1100px) { .works { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .works { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 10px; } .work.is-wide { grid-column: 1 / -1; } }

/* ── PLAYER (showreel e vídeo ampliado) ────────────────────────────────── */
.player { position: fixed; inset: 0; z-index: 80; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(6, 6, 7, 0.96); color: var(--paper); }
.player::backdrop { background: rgba(6, 6, 7, 0.9); }
.player[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.player .top, .player .bot { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px var(--pad); }
.player .stage { position: relative; min-height: 0; overflow: hidden; display: grid; place-items: center; padding: 0 var(--pad); }
.player video { position: absolute; inset: 0; margin: auto; max-height: 100%; max-width: calc(100% - 2 * var(--pad)); width: auto; height: 100%; object-fit: contain; background: #000; border-radius: 2px; }
.player .x { width: 44px; height: 44px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--rule-2); display: grid; place-items: center; }
.player .x svg { width: 16px; height: 16px; }
.player .chapters { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; flex: 1; }
.player .chapters button { flex: none; font-size: var(--fs-meta); padding: 8px 12px; border-radius: var(--r-btn); color: var(--paper-2); box-shadow: inset 0 0 0 1px var(--rule); position: relative; overflow: hidden; }
.player .chapters button[aria-current="true"] { color: var(--paper); box-shadow: inset 0 0 0 1px var(--paper-3); }
.player .chapters button .bar { position: absolute; left: 0; bottom: 0; height: 2px; background: var(--signal); width: 0; }
.player .ctl { display: flex; gap: 8px; flex: none; }
.player .ctl button { width: 42px; height: 42px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--rule-2); display: grid; place-items: center; }
.player .ctl svg { width: 15px; height: 15px; }
.player .note { font-family: var(--f-mono); font-size: var(--fs-label); letter-spacing: 0.08em; color: var(--paper-3); text-transform: uppercase; }
@media (max-width: 640px) { .player .bot { flex-direction: column-reverse; align-items: stretch; } .player .ctl { justify-content: center; } }

/* ── CTA FINAL ─────────────────────────────────────────────────────────── */
.end { position: relative; overflow: hidden; isolation: isolate; padding-block: clamp(120px, 16vw, 240px); border-top: 1px solid var(--rule); }
.end .bg { position: absolute; inset: 0; z-index: -2; opacity: 0.42; }
.end .bg video, .end .bg img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.35); }
.end::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at 30% 60%, rgba(10, 10, 11, 0.35), rgba(10, 10, 11, 0.94) 70%); }
.end h2 { max-width: 15ch; }
.end .lede { margin-top: 22px; }
.end .acts { margin-top: 34px; }
.end .direct { margin-top: 26px; font-size: var(--fs-ui); color: var(--paper-2); }
.end .direct a { color: var(--paper); text-decoration: underline; text-decoration-color: var(--rule-2); text-underline-offset: 3px; }

/* ── RODAPÉ ────────────────────────────────────────────────────────────── */
.ftr { border-top: 1px solid var(--rule); padding-top: clamp(56px, 7vw, 96px); padding-bottom: 28px; background: var(--ink-0); color: var(--paper); }
.ftr .top { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 36px var(--gutter); }
.ftr .claim { font-family: var(--f-display); font-weight: 300; font-size: clamp(1.4rem, 2.2vw, 2rem); line-height: 1.15; max-width: 16ch; font-variation-settings: "opsz" 96; letter-spacing: -0.01em; }
.ftr h2 { font-family: var(--f-mono); font-weight: 400; font-size: var(--fs-label); letter-spacing: 0.12em; text-transform: uppercase; color: var(--paper-3); margin-bottom: 14px; }
.ftr li a, .ftr li span { display: inline-block; font-size: var(--fs-ui); color: var(--paper-2); padding: 4px 0; }
.ftr li a:hover { color: var(--paper); }
.ftr li [aria-current="page"] { color: var(--paper); }
.ftr .base { margin-top: clamp(48px, 6vw, 88px); padding-top: 18px; border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; font-family: var(--f-mono); font-size: var(--fs-label); letter-spacing: 0.06em; color: var(--paper-3); }
.ftr .base a:hover { color: var(--paper); }
@media (max-width: 960px) { .ftr .top { grid-template-columns: 1fr 1fr; } .ftr .top > :first-child { grid-column: 1 / -1; } }

/* barra fixa de contato no celular (as páginas internas já tinham; agora é uma linha, não um botão flutuante) */
.mbar { display: none; }
@media (max-width: 760px) {
  .mbar {
    position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 8px 8px 8px 16px; background: rgba(17, 17, 19, 0.94); border-radius: 6px; box-shadow: inset 0 0 0 1px var(--rule-2), 0 18px 40px rgba(0, 0, 0, 0.5);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    transform: translateY(140%); transition: transform var(--t-ui) var(--ease-out);
  }
  .mbar.is-on { transform: none; }
  .mbar span { font-size: var(--fs-cap); color: var(--paper-2); line-height: 1.3; }
  .mbar .btn { min-height: 40px; padding: 0 14px; font-size: var(--fs-ui); flex: none; }
  .ftr { padding-bottom: 96px; }
}

/* ── BLOCOS DE COMPOSIÇÃO REUTILIZÁVEIS ────────────────────────────────── */
.head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 20px; margin-bottom: clamp(40px, 5.5vw, 80px); align-items: end; }
.head > .label { grid-column: 1 / -1; }
.head > h2 { grid-column: 1 / span 8; }
.head > .lede, .head > .body, .head > .side { grid-column: 9 / span 4; }
.head--stack > h2, .head--stack > .lede, .head--stack > .body { grid-column: 1 / span 9; }
@media (max-width: 900px) { .head > h2, .head > .lede, .head > .body, .head > .side { grid-column: 1 / -1; } }

.split { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 36px; align-items: center; }
.split > .a { grid-column: 1 / span 6; }
.split > .b { grid-column: 8 / span 5; }
.split--rev > .a { grid-column: 7 / span 6; grid-row: 1; }
.split--rev > .b { grid-column: 1 / span 5; grid-row: 1; }
.split--top { align-items: start; }
@media (max-width: 900px) { .split > .a, .split > .b, .split--rev > .a, .split--rev > .b { grid-column: 1 / -1; grid-row: auto; } }

/* cena grande: mídia de ponta a ponta com texto sobreposto (três públicos do imobiliário, objetivos) */
.scene { position: relative; min-height: min(88svh, 820px); display: grid; align-items: end; overflow: hidden; isolation: isolate; border-top: 1px solid var(--rule); }
.scene > .bg { position: absolute; inset: 0; z-index: -2; }
.scene > .bg img, .scene > .bg video { width: 100%; height: 100%; object-fit: cover; }
.scene::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(10, 10, 11, 0.9) 0%, rgba(10, 10, 11, 0.55) 42%, rgba(10, 10, 11, 0.05) 75%); }
.scene--r::after { background: linear-gradient(270deg, rgba(10, 10, 11, 0.9) 0%, rgba(10, 10, 11, 0.55) 42%, rgba(10, 10, 11, 0.05) 75%); }
.scene .copy { padding-block: clamp(40px, 7vw, 96px); max-width: 560px; }
.scene--r .copy { margin-left: auto; }
.scene .copy .body { margin-top: 16px; color: rgba(236, 233, 226, 0.84); }
.scene .copy h2, .scene .copy h3 { margin-top: 14px; }
@media (max-width: 760px) {
  .scene { min-height: 0; display: block; }
  .scene > .bg { position: relative; aspect-ratio: 4 / 5; }
  .scene::after { display: none; }
  .scene .copy { padding-block: 26px 44px; }
}

/* colunas de texto soltas (em vez de card) */
.cols { display: grid; grid-template-columns: repeat(var(--c, 3), minmax(0, 1fr)); gap: clamp(28px, 3vw, 48px) var(--gutter); }
.cols > * { border-top: 1px solid var(--rule-2); padding-top: 18px; }
.cols h3 { font-family: var(--f-display); font-weight: 400; font-size: clamp(1.2rem, 1.6vw, 1.45rem); line-height: 1.2; letter-spacing: -0.008em; font-variation-settings: "opsz" 48; }
.cols p { color: var(--paper-2); font-size: var(--fs-ui); margin-top: 10px; line-height: 1.6; }
.cols .n { display: block; font-family: var(--f-mono); font-size: var(--fs-label); letter-spacing: 0.1em; color: var(--paper-3); margin-bottom: 12px; }
.theme-paper .cols h3 { font-family: var(--f-sans); font-weight: 500; letter-spacing: -0.02em; }
.theme-paper .cols p { color: var(--graphite-2); }
.theme-paper .cols .n { color: var(--graphite-3); }
@media (max-width: 900px) { .cols { --c: 2 !important; } }
@media (max-width: 560px) { .cols { --c: 1 !important; } }

/* lista com marcador de traço */
.dash li { position: relative; padding-left: 22px; margin-top: 8px; color: var(--paper-2); }
.dash li::before { content: ""; position: absolute; left: 0; top: 0.8em; width: 11px; height: 1px; background: currentColor; }
.theme-paper .dash li { color: var(--graphite-2); }

/* galeria editorial grande (render, imobiliário) */
.gallery { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gutter); }
.gallery .g-a { grid-column: 1 / -1; }
.gallery .g-b { grid-column: 1 / span 7; }
.gallery .g-c { grid-column: 8 / span 5; }
.gallery .g-d { grid-column: 1 / span 5; }
.gallery .g-e { grid-column: 6 / span 7; }
.gallery .g-half { grid-column: span 6; }
@media (max-width: 760px) { .gallery > * { grid-column: 1 / -1 !important; } }

/* close de material: recorte ampliado de uma imagem real — o "detalhe" sai do próprio render */
.detail { position: relative; overflow: hidden; border-radius: var(--r-img); aspect-ratio: 3 / 4; background: var(--ink-2); }
.detail img { position: absolute; width: var(--z, 300%); max-width: none; height: auto; left: var(--x, 0); top: var(--y, 0); }
.detail figcaption { position: absolute; left: 12px; bottom: 10px; font-family: var(--f-mono); font-size: var(--fs-label); letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255, 255, 255, 0.9); text-shadow: 0 1px 8px rgba(0, 0, 0, 0.7); }

/* ── MOVIMENTO ─────────────────────────────────────────────────────────────
   Tipos diferentes para funções diferentes (Brief, regra 7: "não o mesmo fade-up"):
   · [data-m="mask"]  → revelação de projeto por recorte (clip-path)
   · [data-m="words"] → título entra palavra a palavra, por máscara
   · [data-m="fade"]  → texto de apoio: só opacidade, sem deslocamento
   · [data-m="rise"]  → bloco sobe pouco (reservado para linhas de lista)
   · [data-m="draw"]  → linhas de processo se desenham (via .is-in)
   Tudo só acontece com JS ativo (.js no <html>) e sem pedido de menos movimento. */
.js [data-m="mask"] { clip-path: inset(12% 8% 12% 8%); transition: clip-path var(--t-special) var(--ease-out); }
.js [data-m="mask"] > img, .js [data-m="mask"] > video { transform: scale(1.12); transition: transform 1.6s var(--ease-out); }
.js [data-m="mask"].is-in { clip-path: inset(0 0 0 0); }
.js [data-m="mask"].is-in > img, .js [data-m="mask"].is-in > video { transform: none; }
.js [data-m="fade"] { opacity: 0; transition: opacity var(--t-edit) var(--ease-out); }
.js [data-m="fade"].is-in { opacity: 1; }
.js [data-m="rise"] > * { opacity: 0; transform: translateY(14px); transition: opacity var(--t-edit) var(--ease-out), transform var(--t-edit) var(--ease-out); transition-delay: calc(var(--k, 0) * 70ms); }
.js [data-m="rise"].is-in > * { opacity: 1; transform: none; }
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.w > span { display: inline-block; }
.js [data-m="words"] .w > span { transform: translateY(105%); transition: transform var(--t-edit) var(--ease-out); transition-delay: calc(var(--k, 0) * 45ms + 80ms); }
.js [data-m="words"].is-in .w > span { transform: none; }

/* movimento ligado à rolagem (CSS puro onde o navegador suporta; nos outros, fica parado) */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .scroll-scale { animation: scroll-scale linear both; animation-timeline: view(); animation-range: entry 0% cover 55%; }
    @keyframes scroll-scale { from { transform: scale(1.14); } to { transform: scale(1); } }
    .scroll-drift { animation: scroll-drift linear both; animation-timeline: view(); animation-range: cover 0% cover 100%; }
    @keyframes scroll-drift { from { transform: translateY(-6%); } to { transform: translateY(6%); } }
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; transition-delay: 0s !important; }
  .strip-track, .slow-push, .browser .screen.is-rolling img, .frame--site .scroller img { animation: none !important; }
  .js [data-m] , .js [data-m] * { clip-path: none !important; opacity: 1 !important; transform: none !important; }
}

/* ── POLISH V3 (23/09/2026) — DEMONSTRAÇÕES E SINAL ───────────────────────
   A assinatura de motion da Erisen é SIGNAL / PIPELINE: uma linha de luz fria
   que atravessa a peça e muda o estado dela. Os três componentes abaixo são
   variações disso, e só isso:
   · .ba[data-scrub]  → a rolagem arrasta a linha do antes/depois (wireframe → render)
   · .seq             → uma linha de varredura troca o estado (humano → clone, dia → noite)
   · .sig             → um ponto percorre o fluxo e acende cada estação (Systems)
   Sem JS: tudo aparece estático e legível. Menos movimento: nada anda sozinho. */

/* rótulo de demonstração: ESTADO → ESTADO, em mono, a seta é o único acento */
.demo-k { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-family: var(--f-mono); font-size: var(--fs-label); letter-spacing: 0.12em; text-transform: uppercase; color: var(--paper-3); }
.demo-k b { font-weight: 400; color: var(--paper); }
.demo-k i { font-style: normal; color: var(--signal); }
.theme-paper .demo-k { color: var(--graphite-3); }
.theme-paper .demo-k b { color: var(--graphite); }
.theme-paper .demo-k i { color: var(--signal-deep); }

/* antes/depois arrastado pela rolagem: a linha vira sinal enquanto a página conduz */
.ba[data-scrub] .handle { transition: background var(--t-ui) var(--ease-out); }
.ba[data-scrub].is-driven .handle { background: var(--signal); }
.ba[data-scrub].is-driven .handle::after { opacity: 0; }
.ba .handle::after { transition: opacity var(--t-ui) var(--ease-out); }

/* SEQUÊNCIA — estados empilhados; a varredura revela o próximo da esquerda para a direita */
.seq-stage { position: relative; overflow: hidden; border-radius: var(--r-img); background: var(--ink-2); }
.seq-f { position: absolute; inset: 0; margin: 0; }
.seq-f > img, .seq-f > video, .seq-f > picture, .seq-f > picture img { width: 100%; height: 100%; object-fit: cover; }
.seq-f > figcaption { position: absolute; left: 12px; top: 12px; z-index: 2; font-family: var(--f-mono); font-size: var(--fs-label); letter-spacing: 0.1em; text-transform: uppercase; padding: 5px 8px; background: rgba(10, 10, 11, 0.62); border-radius: 2px; color: var(--paper); }
.js .seq-f { clip-path: inset(0 100% 0 0); z-index: 1; }
.js .seq-f.is-on { clip-path: inset(0); z-index: 3; transition: clip-path var(--t-special) var(--ease-cut); }
.js .seq-f.was-on { clip-path: inset(0); z-index: 2; }
.js .seq-f.is-on::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 1px; background: var(--signal); z-index: 3; opacity: 0; animation: seq-scan var(--t-special) var(--ease-cut); }
@keyframes seq-scan { 0% { left: 0; opacity: 1; } 88% { opacity: 1; } 100% { left: 100%; opacity: 0; } }
.seq-ctl { display: flex; flex-wrap: wrap; gap: 0; margin-top: 12px; border-top: 1px solid var(--rule-2); }
.seq-ctl button { flex: 1 1 0; min-width: 0; display: grid; gap: 2px; text-align: left; padding: 10px 12px 4px 0; min-height: 44px; color: var(--paper-3); position: relative; transition: color var(--t-fast); }
.seq-ctl button + button { padding-left: 12px; border-left: 1px solid var(--rule); }
.seq-ctl button span { font-family: var(--f-mono); font-size: var(--fs-label); letter-spacing: 0.1em; }
.seq-ctl button b { font-weight: 500; font-size: var(--fs-ui); color: inherit; }
.seq-ctl button::before { content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 1px; background: var(--signal); transform: scaleX(0); transform-origin: left; transition: transform var(--t-edit) var(--ease-out); }
.seq-ctl button[aria-pressed="true"] { color: var(--paper); }
.seq-ctl button[aria-pressed="true"]::before { transform: none; }
.seq-ctl button:hover { color: var(--paper-2); }
html:not(.js) .seq-ctl { display: none; }
/* sem JS: os estados ficam lado a lado, na ordem, legíveis */
html:not(.js) .seq-stage { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 3px; aspect-ratio: auto !important; }
html:not(.js) .seq-f { position: relative; aspect-ratio: var(--seq-ar, 16 / 9); }
@media (max-width: 560px) { .seq-ctl button b { font-size: var(--fs-cap); } }

/* SINAL (Systems) — o fluxo físico com as estações nomeadas; um ponto percorre a linha
   conforme a rolagem e acende cada estação quando passa. A linha fica em 56,4% da altura
   da imagem, que é onde a luz corre na foto; as estações estão nos x medidos da foto. */
.sig { position: relative; margin: 0; border-radius: var(--r-img); overflow: hidden; background: var(--ink-0); color: var(--paper); }
.sig picture, .sig img { display: block; width: 100%; height: auto; }
.sig-line { position: absolute; left: 10.6%; right: 12%; top: 56.4%; height: 1px; background: rgba(174, 181, 244, 0.28); pointer-events: none; }
.sig-line::before { content: ""; position: absolute; left: 0; top: 0; height: 1px; width: calc(var(--p, 0) * 100%); background: var(--signal); }
.sig-dot { position: absolute; top: -3px; left: calc(var(--p, 0) * 100%); width: 7px; height: 7px; margin-left: -3px; border-radius: 50%; background: var(--signal); }
.sig-st { position: absolute; inset: 0; pointer-events: none; }
.sig-st li { position: absolute; left: var(--x); top: 75%; transform: translateX(-50%); display: grid; justify-items: center; gap: 2px; text-align: center; white-space: nowrap; color: var(--paper-3); transition: color var(--t-ui) var(--ease-out); }
.sig-st li span { font-family: var(--f-mono); font-size: var(--fs-plate); letter-spacing: 0.12em; }
.sig-st li b { font-weight: 500; font-size: var(--fs-ui); letter-spacing: -0.01em; }
.sig-st li.is-lit { color: var(--paper); }
.sig-st li.is-lit span { color: var(--signal); }
.sig-cap { position: absolute; left: 16px; right: 16px; top: 14px; display: flex; justify-content: space-between; gap: 12px; font-family: var(--f-mono); font-size: var(--fs-label); letter-spacing: 0.1em; text-transform: uppercase; color: var(--paper-3); }
.sig-cap b { font-weight: 400; color: var(--signal); }
@media (max-width: 760px) { .sig-st { display: none; } .sig-cap span:last-child { display: none; } }
@media (prefers-reduced-motion: reduce) { .sig-dot { display: none; } }
html:not(.js) .sig { --p: 1; }
html:not(.js) .sig-st li { color: var(--paper); }

/* lista do fluxo ligada ao sinal: a etapa acende quando o ponto passa (em vez do laço de 8 s) */
.pipeline--sig > li::before { animation: none !important; transition: transform var(--t-edit) var(--ease-out); }
.pipeline--sig > li.is-lit::before { transform: scaleX(1); }
@media (max-width: 860px) { .pipeline--sig > li.is-lit::before { transform: scaleY(1); } }
html:not(.js) .pipeline--sig > li::before { transform: scaleX(1); }

/* divulgação progressiva: a visão geral primeiro, o detalhe sob demanda */
.more-btn { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; min-height: 44px; font-family: var(--f-mono); font-size: var(--fs-label); letter-spacing: 0.1em; text-transform: uppercase; color: var(--paper-2); }
.more-btn::before { content: ""; width: 12px; height: 12px; flex: none; background: linear-gradient(currentColor, currentColor) center / 12px 1px no-repeat, linear-gradient(currentColor, currentColor) center / 1px 12px no-repeat; transition: transform var(--t-ui) var(--ease-out); }
.more-btn[aria-expanded="true"]::before { transform: rotate(45deg); }
.more-btn:hover { color: var(--paper); }
.theme-paper .more-btn { color: var(--graphite-2); }
.theme-paper .more-btn:hover { color: var(--graphite); }
html:not(.js) .more-btn { display: none; }
.js [data-more]:not(.is-open) [data-more-hide] { display: none; }
details.more { border-top: 1px solid var(--rule-2); margin-top: clamp(28px, 3vw, 44px); }
.theme-paper details.more { border-top-color: rgba(23, 23, 26, 0.18); }
details.more > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; min-height: 52px; font-family: var(--f-mono); font-size: var(--fs-label); letter-spacing: 0.1em; text-transform: uppercase; color: var(--paper-2); }
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary::before { content: ""; width: 12px; height: 12px; flex: none; background: linear-gradient(currentColor, currentColor) center / 12px 1px no-repeat, linear-gradient(currentColor, currentColor) center / 1px 12px no-repeat; transition: transform var(--t-ui) var(--ease-out); }
details.more[open] > summary::before { transform: rotate(45deg); }
details.more > summary:hover { color: var(--paper); }
.theme-paper details.more > summary { color: var(--graphite-2); }
.theme-paper details.more > summary:hover { color: var(--graphite); }
details.more > .more-body { padding: 8px 0 12px; }

/* capa de case (V3): uma moldura para os três cases — mesma proporção, mesmo tratamento */
.cover { display: block; width: 100%; height: 100%; }
.cover img { width: 100%; height: 100%; object-fit: cover; }
