/* =====================================================================
   SINALIZAI — LANDING PAGE
   1. tokens e temas (claro, escuro, alto contraste, tamanho do texto)   2. base   3. nav + recursos de acessibilidade
   4. hero   5. sheet + layout   6. institucional   7. impacto  8. cena   9. mídia   10. informações
   11. libras player   12. marcadores de rolagem   13. reveal   14. alto contraste (ajustes)
   ===================================================================== */

/* Poppins no próprio site (OFL, licença em assets/fonts/OFL.txt). Recortes e unicode-range iguais aos do
   Google Fonts: o latin cobre o português; o latin-ext só baixa se a página mostrar um caractere dele. */
@font-face { font-family: Poppins; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/poppins-400-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Poppins; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/poppins-600-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Poppins; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/poppins-700-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Poppins; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/poppins-400-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Poppins; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/poppins-600-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Poppins; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/poppins-700-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* =====================================================================
   1. TOKENS E TEMAS
   Cores por papel (fundo, superfície, texto, linha, botão cheio…), não por nome: o tema escuro e o alto
   contraste só redefinem os papéis. O <html> recebe data-theme="dark", .hc e data-text (main.js e o
   script inline do <head>, que aplica a escolha salva antes da primeira pintura).
   Marca: navy #171645, azul-claro #74B89E, ciano #74B89E, névoa #f2f6fa.
   ===================================================================== */
:root {
  --navy: #171645;
  --orange: #74B89E;            /* azul-claro do logo (marca e destaques) */
  --cyan: #74B89E;

  /* tema claro (padrão) */
  --bg: #ffffff;                /* folha */
  --surface: #ffffff;           /* campos, cartões, botões claros */
  --mist: #f2f6fa;              /* faixas: cena, mídia */
  --info-bg: #f5f7fa;
  --text: #171645;
  --ink-soft: #4a5472;          /* texto secundário */
  --orange-ink: #366857;        /* azul-claro escurecido para texto acessível: > 5.5:1 no branco */
  --cyan-ink: #366857;          /* texto acessível: > 5.5:1 no branco */
  --ink-rgb: 23 22 69;          /* linhas, hovers, trilhos: rgb(var(--ink-rgb) / alfa) */
  --surface-rgb: 255 255 255;   /* vidros: pílula, rótulos, botões sobre vídeo */
  --shadow-rgb: 23 22 69;
  --line: rgb(var(--ink-rgb) / 0.12);
  --line-strong: rgb(var(--ink-rgb) / 0.22);
  --field-border: #75749c;      /* contorno de campo */
  --placeholder: #5c5a84;
  --inverse-bg: #171645;        /* botões cheios, item atual, opção marcada */
  --inverse-text: #ffffff;
  --inverse-hover: #262464;
  --focus: #366857;
  --hero-ink: #171645;          /* h1 do hero (o mesmo desenho da névoa) */
  --hero-base: #f2f6fa;
  /* cópia em CSS do gradiente da névoa: primeira pintura e fallback nunca chapados */
  --hero-image:
    radial-gradient(55% 60% at 84% 14%, #bdeef9 0%, rgba(189, 238, 249, 0) 75%),
    radial-gradient(30% 40% at 99% 72%, #9fe5f5 0%, rgba(159, 229, 245, 0) 80%),
    radial-gradient(45% 50% at 14% 90%, #c5ebe0 0%, rgba(197, 235, 224, 0) 80%),
    radial-gradient(35% 30% at 64% 100%, #d8f2ea 0%, rgba(216, 242, 234, 0) 80%),
    radial-gradient(35% 40% at 8% 8%, #ffffff 0%, rgba(255, 255, 255, 0) 80%),
    linear-gradient(180deg, #eef8fc 0%, #f2f6fa 45%, #eff8f5 75%, #e8f5f1 100%);

  /* tamanho do texto ("Ampliar texto": 100% → 125% → 150%); títulos grandes crescem menos */
  --ts: 1;
  --tsl: 1;

  --font: Poppins, "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  --gutter: max(clamp(16px, 4vw, 48px), env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
  --nav-space: 84px;                       /* pílula da nav + folga: âncoras param abaixo dela */
  --maxw: 1200px;
  --radius: 20px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* tema escuro: azul escuro do logo profundo, texto claro; o azul-claro do logo ganha destaque no escuro */
html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0c0b24;
  --surface: #14133b;
  --mist: #111033;
  --info-bg: #0f0e2e;
  --text: #eef3fa;              /* 16:1 */
  --ink-soft: #aab2cf;          /* 8.7:1 */
  --orange-ink: #74B89E;        /* 7.3:1 sobre o fundo escuro */
  --cyan-ink: #74B89E;          /* 7.3:1 */
  --ink-rgb: 238 243 250;
  --surface-rgb: 20 19 59;
  --shadow-rgb: 0 0 0;
  --field-border: #7b7eab;      /* 5.3:1 */
  --placeholder: #959bbb;
  --inverse-bg: #eef3fa;
  --inverse-text: #171645;
  --inverse-hover: #ffffff;
  --focus: #74B89E;
  --hero-ink: #eef3fa;
  --hero-base: #111030;
  --hero-image:
    radial-gradient(55% 60% at 84% 14%, #0c4c6b 0%, rgba(12, 76, 107, 0) 75%),
    radial-gradient(30% 40% at 99% 72%, #0a6380 0%, rgba(10, 99, 128, 0) 80%),
    radial-gradient(45% 50% at 14% 90%, #1a4a40 0%, rgba(26, 74, 64, 0) 80%),
    radial-gradient(35% 30% at 64% 100%, #153d35 0%, rgba(21, 61, 53, 0) 80%),
    radial-gradient(35% 40% at 8% 8%, #1f2256 0%, rgba(31, 34, 86, 0) 80%),
    linear-gradient(180deg, #131238 0%, #111030 45%, #0f1c2e 75%, #102b28 100%);
}

/* alto contraste: preto no branco (ou branco no preto, no tema escuro), sem transparências nem degradês */
html.hc {
  --bg: #ffffff; --surface: #ffffff; --mist: #ffffff; --info-bg: #ffffff;
  --text: #000000; --ink-soft: #000000;
  --orange-ink: #1f4739;        /* 7.5:1 */
  --cyan-ink: #1f4739;          /* 7.5:1 */
  --ink-rgb: 0 0 0; --surface-rgb: 255 255 255; --shadow-rgb: 0 0 0;
  --line: #000000; --line-strong: #000000;
  --field-border: #000000; --placeholder: #3b3b3b;
  --inverse-bg: #000000; --inverse-text: #ffffff; --inverse-hover: #333333;
  --focus: #000000;
  --hero-ink: #000000; --hero-base: #ffffff; --hero-image: none;
}
html.hc[data-theme="dark"] {
  --bg: #000000; --surface: #000000; --mist: #000000; --info-bg: #000000;
  --text: #ffffff; --ink-soft: #ffffff;
  --orange-ink: #9ff0d1;        /* 11:1 */
  --cyan-ink: #9ff0d1;
  --ink-rgb: 255 255 255; --surface-rgb: 0 0 0; --shadow-rgb: 0 0 0;
  --line: #ffffff; --line-strong: #ffffff;
  --field-border: #ffffff; --placeholder: #cfcfcf;
  --inverse-bg: #ffffff; --inverse-text: #000000; --inverse-hover: #dddddd;
  --focus: #ffd400;
  --hero-ink: #ffffff; --hero-base: #000000; --hero-image: none;
}

/* tamanho do texto */
html[data-text="1"] { --ts: 1.25; --tsl: 1.1; }
html[data-text="2"] { --ts: 1.5; --tsl: 1.2; }

/* =====================================================================
   2. BASE
   ===================================================================== */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }      /* o atributo hidden sempre vence o display dos componentes */
html {
  color-scheme: light;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: var(--nav-space);
  background: var(--info-bg);              /* overscroll no fim da página */
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
html.motion-paused { scroll-behavior: auto; }
/* barra de rolagem do navegador: continua visível (quem só clica, sem roda nem gesto, depende dela),
   fina e na cor da marca; o polegar tem 4.5:1 sobre o branco */
html { scrollbar-width: thin; scrollbar-color: rgb(var(--ink-rgb) / 0.6) transparent; }
html::-webkit-scrollbar { width: 10px; }
html::-webkit-scrollbar-track { background: transparent; }
html::-webkit-scrollbar-thumb { background: rgb(var(--ink-rgb) / 0.6); border: 3px solid transparent; border-radius: 10px; background-clip: padding-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: calc(clamp(16px, 0.35vw + 14.6px, 18px) * var(--ts));
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Ctext y='24' font-size='22'%3E👆%3C/text%3E%3C/svg%3E") 8 0, auto;
}
html {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Ctext y='24' font-size='22'%3E👆%3C/text%3E%3C/svg%3E") 8 0, auto;
}
img, video, canvas, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
button { font: inherit; }
a, button, [role="button"], label, select, summary { cursor: pointer; }
input, textarea { cursor: text; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
main:focus { outline: none; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

.skip {
  position: fixed; left: 12px; top: 12px; z-index: 100;
  padding: 10px 16px; border-radius: 999px;
  background: var(--inverse-bg); color: var(--inverse-text); font-weight: 600; font-size: calc(14px * var(--ts)); text-decoration: none;
  transform: translateY(-160%); transition: transform 0.2s var(--ease);
}
.skip:focus { transform: none; }

/* =====================================================================
   3. NAV  (pílula fixa, só as três âncoras; seção atual = aria-current)
   ===================================================================== */
.nav {
  position: fixed; z-index: 50; left: 0; right: 0;
  top: calc(env(safe-area-inset-top, 0px) + 14px);
  display: flex; justify-content: center;
  padding-inline: 12px;
  pointer-events: none;
}
.nav__pill {
  pointer-events: auto;
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 2px; padding: 5px;
  border-radius: 999px;
  background: rgb(var(--surface-rgb) / 0.62);
  border: 1px solid rgb(var(--ink-rgb) / 0.08);
  box-shadow: 0 8px 28px -12px rgb(var(--shadow-rgb) / 0.22);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .nav__pill { background: rgb(var(--surface-rgb) / 0.94); }
}
.nav__link {
  padding: 9px 16px; border-radius: 999px;
  font-size: calc(14px * var(--ts)); font-weight: 600; line-height: 1.2; letter-spacing: 0.01em;
  text-decoration: none; white-space: nowrap;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease);
}
.nav__link:hover { background: rgb(var(--ink-rgb) / 0.07); }
.nav__link[aria-current="true"] { background: var(--inverse-bg); color: var(--inverse-text); }
@media (max-width: 440px) {
  .nav { padding-inline: 8px; }
  .nav__link { padding: 9px 9px; font-size: calc(13px * var(--ts)); letter-spacing: 0; }
}
@media (pointer: coarse) { .nav__link { min-height: 44px; display: inline-flex; align-items: center; } }
.nav__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px; }
/* recursos de acessibilidade: botões só de ícone, ao lado das âncoras (no celular, atrás do botão ♿) */
.nav__tools { display: flex; align-items: center; gap: 2px; margin-left: 5px; padding-left: 5px; position: relative; }
.nav__tools::before { content: ""; position: absolute; left: 0; top: 9px; bottom: 9px; width: 1px; background: rgb(var(--ink-rgb) / 0.16); }
.nav__tool {
  position: relative; display: grid; place-items: center; width: 36px; height: 36px; padding: 0;
  border: 0; border-radius: 50%; background: transparent; color: var(--text); cursor: pointer;
  transition: background-color 0.25s, color 0.25s;
}
.nav__tool:hover { background: rgb(var(--ink-rgb) / 0.07); }
.nav__tool[aria-pressed="true"], .nav__tool[aria-expanded="true"], .nav__tool[data-level="1"], .nav__tool[data-level="2"] {
  background: var(--inverse-bg); color: var(--inverse-text);
}
.nav__tool svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.nav__tool .i-fill { fill: currentColor; stroke: none; }
.nav__tool .i-play { display: none; fill: currentColor; stroke: none; }
.nav__tool[aria-pressed="true"] .i-play { display: block; }
.nav__tool[aria-pressed="true"] .i-pause { display: none; }
/* nível do texto: um ou dois pontinhos sob o ícone */
.nav__tool[data-level]::after {
  content: ""; position: absolute; bottom: 4px; left: 50%; width: 3px; height: 3px; border-radius: 50%;
  background: currentColor; opacity: 0; transform: translateX(-50%);
}
.nav__tool[data-level="1"]::after { opacity: 1; }
.nav__tool[data-level="2"]::after { opacity: 1; transform: translateX(calc(-50% - 2.5px)); box-shadow: 5px 0 0 currentColor; }
.nav__more { display: none; margin-left: 4px; }
.nav__a11y .i-info { display: none; }
html:not(.js) .nav__tools, html:not(.js) .nav__more { display: none; }   /* sem JS os botões não fariam nada */
@media (pointer: coarse) { .nav__tool { width: 44px; height: 44px; } }
/* celular / tablet estreito: só o botão ♿ na linha das âncoras; os recursos abrem numa segunda linha da pílula */
@media (max-width: 699px) {
  .nav__more { display: grid; }
  .nav__tools { display: none; width: 100%; justify-content: center; margin: 4px 0 0; padding: 6px 0 0; }
  .nav__tools::before { left: 12px; right: 12px; top: 0; bottom: auto; width: auto; height: 1px; }
  .nav__pill.is-open { border-radius: 28px; }
  .nav__pill.is-open .nav__tools { display: flex; }
  .nav__a11y .i-access { display: none; }
  .nav__a11y .i-info { display: block; }
}
@media (max-width: 359px) {                /* 320px: tudo numa linha só (alvos continuam ≥ 40px) */
  .nav { padding-inline: 6px; }
  .nav__link { padding: 9px 4px; font-size: calc(12px * var(--ts)); letter-spacing: 0; }
  .nav__more { width: 40px; height: 40px; margin-left: 3px; }
}

/* =====================================================================
   4. HERO  (100% da tela; fica "colado" no topo enquanto a folha branca sobe por cima)
   ===================================================================== */
.hero {
  position: sticky; top: 0; z-index: 0;
  height: 100vh;
  height: 100svh;                          /* svh: a barra do navegador móvel não redimensiona a névoa */
  overflow: hidden;
  touch-action: pan-y pinch-zoom;          /* no toque: arrastar na vertical rola a página, na horizontal mexe a névoa; pinça = zoom */
  background-color: var(--hero-base);
  background-image: var(--hero-image);     /* cópia em CSS do gradiente da névoa, por tema */
}
.hero__fog, .hero__sparks { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero__fog { opacity: 0; transition: opacity 0.6s ease; touch-action: pan-y pinch-zoom; }
.hero.fog-ready .hero__fog { opacity: 1; }
.hero__sparks { pointer-events: none; }

/* o h1 é o texto de verdade (leitor de tela, SEO, LCP) e o fallback sem WebGL.
   Antes do JS: centralizado por aproximação. Depois: hero-fog.js calibra posição e tamanho
   para coincidir com a palavra da névoa, e o cruzamento entre os dois é invisível. */
.hero__title {
  position: absolute; left: 50%; top: 50%;
  /* mesma conta da névoa: tinta da palavra = min(1.72 × 0.812 × altura, 0.88 × largura); Poppins 700 "SinalizAI" ≈ 4.29em de tinta */
  transform: translate(-50%, -45.2%);
  margin: 0; padding: 0;
  font-weight: 700; line-height: 1; letter-spacing: 0; white-space: nowrap;
  font-size: min(32.56vh, 20.52vw);
  font-size: min(32.56svh, 20.52vw);
  color: var(--hero-ink);
  opacity: 0.95;
  pointer-events: none;
  transition: opacity 0.6s ease;
}
.hero__run--ai { color: var(--orange); }
.hero.fog-ready .hero__title { opacity: 0; }
.hero.fog-calibrated .hero__title {
  left: var(--fog-title-x); top: var(--fog-title-y);
  font-size: var(--fog-title-size);
  transform: none;
}

.hero__foot {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
  padding: 0 var(--gutter) calc(env(safe-area-inset-bottom, 0px) + clamp(18px, 3.5vh, 36px));
  pointer-events: none;
}
.hero__lead { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.hero .libras-chip { pointer-events: auto; margin-top: 0; }
.hero__tagline { max-width: 30ch; font-size: calc(14px * var(--ts)); line-height: 1.5; color: var(--ink-soft); }
.hero__cue {
  pointer-events: auto;
  display: inline-flex; flex-direction: column; align-items: center; gap: 12px;
  font-size: calc(11px * var(--ts)); font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  text-decoration: none; color: var(--text);
}
.hero__cue i { position: relative; width: 1px; height: 46px; overflow: hidden; background: rgb(var(--ink-rgb) / 0.16); }
.hero__cue i::after {
  content: ""; position: absolute; left: 0; top: -50%; width: 1px; height: 50%;
  background: var(--text);
  animation: cue 2.4s cubic-bezier(0.6, 0, 0.4, 1) 2, cue-rest 0.01s 4.8s forwards;   /* 2 voltas (< 5 s) e para visível */
}
@keyframes cue { to { transform: translateY(300%); } }
@keyframes cue-rest { to { top: 0; } }
.hero.is-covered .hero__cue i::after { animation-play-state: paused; }
.motion-paused .hero__cue i::after { animation: none; top: 0; }
@media (max-width: 520px) {
  .hero__tagline { max-width: 26ch; font-size: calc(13px * var(--ts)); text-wrap: balance; }
  .hero__cue { min-width: 44px; min-height: 56px; justify-content: flex-end; }
  .hero__cue span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}

/* =====================================================================
   5. FOLHA BRANCA + LAYOUT
   ===================================================================== */
.sheet {
  position: relative; z-index: 1;           /* cobre o hero colado; hero-fog.js pausa quando a folha cobre tudo */
  background: var(--bg);
  border-radius: clamp(22px, 3vw, 40px) clamp(22px, 3vw, 40px) 0 0;
  box-shadow: 0 -30px 60px -30px rgb(var(--shadow-rgb) / 0.22);
}
.wrap { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }
.section { padding-block: clamp(88px, 12vw, 168px); }

.eyebrow {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: clamp(20px, 3vw, 32px);
  font-size: calc(13px * var(--ts)); font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-soft);
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }

.display {
  margin: 0; max-width: 15ch;
  font-size: calc(clamp(2.5rem, 2rem + 3.6vw, 6.5rem) * var(--tsl));
  overflow-wrap: break-word; font-weight: 700; line-height: 1.02; letter-spacing: -0.035em;
  text-wrap: balance;
}
.mark {                                    /* sublinhado da marca: azul-claro como traço, texto continua navy */
  background: linear-gradient(var(--orange), var(--orange)) 0 92% / 100% 0.1em no-repeat;
  padding-bottom: 0.02em;
}
.lede {
  max-width: 30ch;
  font-size: calc(clamp(20px, 1.6vw + 12px, 30px) * var(--ts)); line-height: 1.38; letter-spacing: -0.012em;
  text-wrap: pretty;
}
.body { max-width: 56ch; color: var(--ink-soft); text-wrap: pretty; }
html[data-text] :is(.display, .lede, .partners__t, .pillar__t, .demos__t, .cena__kicker, .cena__pt, .cena__gl, .mvv__item p, .mvv__list) {
  overflow-wrap: break-word; hyphens: auto;
}

/* =====================================================================
   6. INSTITUCIONAL
   ===================================================================== */
.inst { padding-bottom: clamp(56px, 7vw, 104px); }
.inst__intro {
  display: grid; gap: 28px 72px;
  margin-top: clamp(40px, 6vw, 80px);
}
@media (min-width: 900px) { .inst__intro { grid-template-columns: 1.15fr 1fr; align-items: start; } }

.mvv {
  display: grid;
  margin-top: clamp(72px, 10vw, 136px);
  border-top: 1px solid var(--line);
}
.mvv__item { padding: 28px 0 32px; border-bottom: 1px solid var(--line); }
.mvv__t {
  margin: 0 0 14px;
  font-size: calc(13px * var(--ts)); font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--orange-ink);
}
.mvv__item p, .mvv__list { font-size: calc(clamp(18px, 0.6vw + 14px, 22px) * var(--ts)); line-height: 1.45; text-wrap: pretty; }
.mvv__list { margin: 0; padding: 0; list-style: none; }
.mvv__list li + li { margin-top: 6px; }
@media (min-width: 820px) {
  .mvv { grid-template-columns: repeat(3, 1fr); }
  .mvv__item { padding: 32px 36px 8px 0; border-bottom: 0; }
  .mvv__item + .mvv__item { padding-left: 36px; border-left: 1px solid var(--line); }
}

.partners { margin-top: clamp(88px, 12vw, 160px); }
.partners__t {
  margin: 0 0 clamp(24px, 3vw, 36px);
  font-size: calc(clamp(24px, 1.6vw + 16px, 38px) * var(--tsl)); font-weight: 600; letter-spacing: -0.02em; line-height: 1.2;
}
.partners__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
@media (min-width: 760px) { .partners__list { grid-template-columns: repeat(3, 1fr); } }
.partner {
  display: flex; flex-direction: column; gap: 8px;
  padding: 24px; border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.partner:hover { border-color: var(--line-strong); box-shadow: 0 14px 40px -24px rgb(var(--shadow-rgb) / 0.35); }
.partner__logo {
  display: flex; flex-direction: column; justify-content: center;
  height: 72px; margin-bottom: 8px;
  color: var(--text);
}
.partner__logo b { font-size: calc(24px * var(--ts)); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
.partner__logo small { font-size: calc(12px * var(--ts)); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }
.partner__logo img { max-height: 48px; width: auto; }
.partner__name { font-weight: 600; text-wrap: balance; }
.partner__role { font-size: calc(15px * var(--ts)); color: var(--ink-soft); }
.partner__src {
  margin-top: auto; padding-top: 10px;
  font-size: calc(14px * var(--ts)); font-weight: 600; color: var(--cyan-ink); text-decoration: none;
}
.partner__src::after { content: " ↗"; content: " ↗" / ""; }
.partner__src:hover { text-decoration: underline; text-underline-offset: 3px; }

.libras-chip {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 24px; padding: 9px 16px 9px 12px;
  border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface);
  font-size: calc(14px * var(--ts)); font-weight: 600; color: var(--text); cursor: pointer;
}
.libras-chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); }
.libras-chip:hover { border-color: var(--text); }
.libras-chip[hidden] { display: none; }

/* =====================================================================
   7. IMPACTO
   ===================================================================== */
.impacto { padding-bottom: 0; }
.impacto__lede { margin-top: clamp(24px, 3vw, 36px); }
.feature {
  display: grid; gap: 40px; align-items: center;
  margin-top: clamp(56px, 8vw, 104px);
}
@media (min-width: 720px) { .feature { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 104px); } }
.feature__aside { width: min(100%, 520px, calc(80svh * 4 / 5)); }
@media (max-width: 719px) {
  .feature__aside { max-width: 380px; margin-inline: auto; }
}
.media__pt { margin-top: 14px; font-size: calc(16px * var(--ts)); line-height: 1.5; color: var(--ink-soft); }   /* o que o avatar sinaliza (WCAG 1.2.1) */

.pillars { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.pillar {
  display: grid; grid-template-columns: 48px 1fr; gap: 6px 12px;
  padding: clamp(24px, 3vw, 36px) 0;
  border-bottom: 1px solid var(--line);
}
.pillar__n {
  grid-row: span 2; padding-top: 0.55em;
  font-size: calc(14px * var(--ts)); font-weight: 600; color: var(--orange-ink); font-variant-numeric: tabular-nums;
}
.pillar__t { margin: 0; font-size: calc(clamp(22px, 1vw + 16px, 30px) * var(--ts)); font-weight: 600; line-height: 1.25; letter-spacing: -0.02em; }
.pillar p { max-width: 44ch; color: var(--ink-soft); }

.demos { padding-block: 0 clamp(88px, 12vw, 168px); }
.demos__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 32px; }
.demos__t { margin: 0; font-size: calc(clamp(24px, 1.6vw + 16px, 38px) * var(--tsl)); font-weight: 600; letter-spacing: -0.02em; }
.demos__grid { list-style: none; margin: clamp(24px, 3vw, 40px) 0 0; padding: 0; display: grid; gap: 20px; }
@media (min-width: 760px) { .demos__grid { grid-template-columns: repeat(3, 1fr); align-items: start; } }
.demo { margin: 0; }
.demo figcaption { margin-top: 14px; font-size: calc(15px * var(--ts)); color: var(--ink-soft); }
.demo figcaption b { display: block; color: var(--text); font-weight: 600; font-size: calc(16px * var(--ts)); }

@media (max-width: 759px) {
  .demo--portrait .media {
    aspect-ratio: 9 / 16;
    max-height: 520px;
    max-width: 320px;
    margin-inline: auto;
    border-radius: calc(var(--radius) + 4px);
    box-shadow: 0 14px 36px -10px rgb(var(--shadow-rgb) / 0.28);
  }
  .demo--portrait figcaption {
    max-width: 320px;
    margin-inline: auto;
  }
}

/* =====================================================================
   8. CENA  (exemplos português -> Libras passando de tempo em tempo)
   ===================================================================== */
.cena {
  margin-block: clamp(96px, 12vw, 168px);
  padding-block: clamp(64px, 9vw, 120px);
  background:
    radial-gradient(40% 70% at 100% 0%, rgba(0, 200, 236, 0.10), transparent 70%),
    radial-gradient(40% 70% at 0% 100%, rgba(255, 122, 89, 0.09), transparent 70%),
    var(--mist);
}
.cena__about {
  max-width: 62ch; margin: calc(-1 * clamp(20px, 3vw, 44px)) 0 clamp(32px, 5vw, 56px);
  font-size: calc(15px * var(--ts)); line-height: 1.55; color: var(--ink-soft);
}
.cena__about dfn { font-style: normal; font-weight: 600; color: var(--text); }
.cena__kicker {
  margin: 0 0 clamp(40px, 6vw, 72px);
  font-size: calc(clamp(22px, 1.6vw + 14px, 36px) * var(--tsl)); font-weight: 600; line-height: 1.25; letter-spacing: -0.02em;
}
.cena__kicker span { color: var(--ink-soft); font-weight: 400; }
.cena__list { list-style: none; margin: 0; padding: 0; }
.cena__item {
  display: grid; gap: 18px 40px; align-items: start; align-content: start;
}
.cena__item + .cena__item { margin-top: 48px; }   /* sem JS: lista simples */
@media (min-width: 860px) {
  .cena__item { grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1fr); }
  .cena__hint { grid-column: 3; }
}
.cena__label {
  display: block; margin-bottom: 12px;
  font-size: calc(12px * var(--ts)); font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft);
}
.cena__pt, .cena__gl { font-size: calc(clamp(26px, 2.4vw + 14px, 50px) * var(--tsl)); line-height: 1.16; letter-spacing: -0.02em; text-wrap: balance; }
.cena__pt { color: var(--ink-soft); }
.cena__gl { color: var(--text); font-weight: 700; letter-spacing: 0; }
.cena__arrow {
  /* alinhada ao meio da 1ª linha: rótulo (12px × 1.6) + margem 12px + meia linha do texto */
  position: relative; width: 56px; height: 2px; margin-top: calc(31.2px + 0.58em);
  background: var(--line-strong);
  font-size: calc(clamp(26px, 2.4vw + 14px, 50px) * var(--tsl));
}
.cena__arrow::after {
  content: ""; position: absolute; right: -1px; top: -5px; width: 10px; height: 10px;
  border-top: 2px solid var(--line-strong); border-right: 2px solid var(--line-strong);
  transform: rotate(45deg);
}
@media (max-width: 859px) { .cena__arrow { width: 2px; height: 28px; margin: 0 0 0 4px; } .cena__arrow::after { right: -5px; top: auto; bottom: -1px; transform: rotate(135deg); } }
.cena__hint { font-size: calc(15px * var(--ts)); font-weight: 600; color: var(--cyan-ink); }
.cena__hint::before {                    /* traço curto (a Poppins não tem "↳") */
  content: ""; display: inline-block; width: 14px; height: 2px; margin: 0 8px 0.28em 0;
  vertical-align: middle; border-radius: 2px; background: currentColor;
}

/* rodando (JS e sem "reduzir movimento"): exemplos empilhados na mesma célula, a altura é a do maior e nada pula.
   Só a opacidade muda: leitores de tela leem a lista inteira, em ordem, sem anúncios a cada troca. */
.cena--rotating .cena__list { display: grid; }
.cena--rotating .cena__item { grid-area: 1 / 1; margin: 0; opacity: 0; transition: opacity 0.35s ease; }
.cena--rotating .cena__item.is-active { opacity: 1; transition: opacity 0.45s ease 0.35s; }
.cena--rotating .cena__item.is-active .tok { animation: tok 0.7s var(--ease) both; animation-delay: calc(0.5s + var(--i, 0) * 0.11s); }
.tok { display: inline-block; }
@keyframes tok { from { opacity: 0; transform: translateY(0.4em); filter: blur(5px); } }

/* =====================================================================
   9. MÍDIA  (vídeos sob demanda; enquanto o arquivo não existe, um placeholder intencional)
   ===================================================================== */
.media { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--mist); isolation: isolate; }
.media--portrait { aspect-ratio: 4 / 5; }
.media--portrait video { object-position: center top; }
.media--wide { aspect-ratio: 16 / 9; }
.media--square { aspect-ratio: 1; }
html:not(.js) [data-media] video { display: none; }
.media video, .media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.6s ease; }
.media.is-loaded video, .media.is-loaded img, .media video[poster] { opacity: 1; }

/* Enquadramento especializado para cada formato de demonstração */
.media--demo-contain { background: #ffffff; }
.media--demo-contain video { object-fit: contain; object-position: center; }

.media--demo-portrait {
  background: radial-gradient(circle at center, #242261 0%, #171645 100%);
}
.media--demo-portrait video {
  object-fit: contain;
  object-position: center;
}

.media__toggle {
  position: absolute; right: 12px; bottom: 12px; z-index: 2;
  display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 0; border-radius: 50%; background: rgb(var(--surface-rgb) / 0.88); color: var(--text); cursor: pointer;
  box-shadow: 0 4px 16px -6px rgb(var(--shadow-rgb) / 0.35);
  transition: transform 0.2s ease, background 0.2s ease;
}
.media__toggle:hover, .media__toggle:focus-visible {
  transform: scale(1.06);
  background: rgb(var(--surface-rgb) / 0.98);
}
.media__toggle[hidden] { display: none; }
.media__toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.media__toggle .i-play { display: none; fill: currentColor; stroke: none; }
.media__toggle[aria-pressed="true"] .i-play { display: block; }
.media__toggle[aria-pressed="true"] .i-pause { display: none; }
.media__ph {
  position: absolute; inset: 0; z-index: -1;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  padding: 16px; text-align: center; font-size: calc(14px * var(--ts)); color: var(--ink-soft);
  background:
    radial-gradient(70% 60% at 85% 10%, rgba(0, 200, 236, 0.16), transparent 70%),
    radial-gradient(70% 60% at 10% 100%, rgba(255, 122, 89, 0.14), transparent 70%),
    var(--mist);
}
.media__ph code { font: 12px/1.4 var(--mono); padding: 4px 8px; border-radius: 6px; background: rgb(var(--surface-rgb) / 0.75); }
.media__play { width: 52px; height: 52px; border: 1.5px solid currentColor; border-radius: 50%; display: grid; place-items: center; opacity: 0.7; }
.media__play::after { content: ""; margin-left: 4px; border-style: solid; border-width: 8px 0 8px 13px; border-color: transparent transparent transparent currentColor; }

/* =====================================================================
   10. INFORMAÇÕES  (página inteira: "Diga olá" gigante, grade, barra final)
   ===================================================================== */
.info {
  --pad: max(clamp(16px, 2vw, 28px), env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
  display: flex; flex-direction: column;
  min-height: 100vh; min-height: 100svh;
  background: var(--info-bg);
  container-type: inline-size;
  scroll-margin-top: calc(-1 * var(--nav-space));   /* o "Diga olá" já reserva espaço para a nav */
}
.info__hello {
  margin: 0;
  /* o topo deixa espaço para a pílula da nav; o tamanho acompanha a largura do container (cqi) */
  padding: max(calc(var(--nav-space) + 12px), 6cqi) var(--pad) 1.6cqi;
  font-size: calc((100cqi - 2 * var(--pad)) * 0.2235);  /* "DIGA OLÁ" ≈ 4.41em de largura: ocupa a linha inteira */
  font-weight: 700; line-height: 0.86; letter-spacing: -0.04em; text-transform: uppercase; text-wrap: balance;
  color: var(--text);
}
.info__grid { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr); border-top: 1px solid var(--line); }
.info__left, .info__right { padding: clamp(24px, 2.4vw, 32px) var(--pad); }
.info__left { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.info__right { display: grid; gap: 28px 32px; align-content: space-between; }
@media (min-width: 640px) { .info__right { grid-template-columns: minmax(0, 1fr) clamp(140px, 16vw, 220px); } }
@media (min-width: 1024px) {
  .info__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .info__left { border-right: 1px solid var(--line); }
}
@media (max-width: 1023px) { .info__right { border-top: 1px solid var(--line); } }
@media (min-width: 1024px) and (max-height: 1000px) {       /* telas mais baixas: o título cede altura para o bloco caber numa tela */
  .info__hello {
    /* espaço da nav + o acento do Á, que sobe ~0.2em acima da linha: some ao espaço da nav, não concorre com ele */
    padding-top: max(calc(var(--nav-space) + 6px), calc(var(--nav-space) - 12px + 0.21em));
    /* entre um mínimo legível e a largura total; no meio, o que sobra da altura depois do formulário e da barra:
       medido pelo main.js (--hello-fit) ou, sem JS, estimado (~620px fixos + 1.07em de linha e acento) */
    font-size: clamp(calc(3vw + 60px), var(--hello-fit, calc((100svh - 620px - 1.6cqi) / 1.07)), calc((100cqi - 2 * var(--pad)) * 0.2235));
  }
}
@media (min-width: 1024px) and (max-height: 820px) {
  .info__left, .info__right { padding-block: 20px; }
  .info__right { row-gap: 20px; }
  .contact__grid { gap: 10px 12px; }
}
@media (max-width: 639px) { .info__media { max-width: 220px; } }

.info__label { display: block; margin: 0 0 16px; line-height: 1.6; font-size: calc(14px * var(--ts)); font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }

.contact { max-width: 600px; }
.contact__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0 16px; }
.contact__req { margin: 0 0 16px; font-size: calc(13px * var(--ts)); color: var(--ink-soft); }
.contact__star { color: var(--orange-ink); font-weight: 700; }
.contact__grid { display: grid; gap: 14px 12px; }
@media (min-width: 520px) {
  .contact__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact__topics, .contact__field--msg { grid-column: 1 / -1; }
}
.contact__field label, .contact__topics legend { display: block; margin-bottom: 6px; padding: 0; font-size: calc(13px * var(--ts)); font-weight: 600; color: var(--ink-soft); }
.contact__opt { font-weight: 400; }
.contact input[type="text"], .contact input[type="email"] {
  width: 100%; height: 52px; padding: 0 16px;
  border: 1px solid var(--field-border);  /* 3.5:1: contorno de campo visível (1.4.11) */
  border-radius: 0; background: var(--surface);
  font: inherit; font-size: calc(16px * var(--ts)); color: var(--text);   /* 16px: o iOS não dá zoom no foco */
}
.contact input::placeholder { color: var(--placeholder); }
.contact input[aria-invalid="true"] { border-color: var(--orange-ink); box-shadow: inset 0 0 0 1px var(--orange-ink); }
.contact__topics { min-width: 0; margin: 0; padding: 0; border: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { position: relative; }
.chip input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; height: 40px; padding: 0 14px;
  border: 1px solid var(--field-border); background: var(--surface);
  font-size: calc(14px * var(--ts)); font-weight: 600; color: var(--text);
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.chip:hover span { border-color: var(--text); }
.chip input:checked + span { background: var(--inverse-bg); border-color: var(--inverse-bg); color: var(--inverse-text); }
.chip input:focus-visible + span { outline: 2px solid var(--cyan-ink); outline-offset: 2px; }
.contact__check {
  grid-column: 1 / -1; display: flex; align-items: flex-start; gap: 10px; width: fit-content;
  font-size: calc(14px * var(--ts)); font-weight: 600; line-height: 1.45; color: var(--text); cursor: pointer;
}
.contact__check input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--inverse-bg); cursor: pointer; }
.contact__err { margin-top: 6px; font-size: calc(14px * var(--ts)); font-weight: 600; color: var(--orange-ink); }
.contact__libras { margin: 0 0 16px; }
.contact__send { display: flex; flex-wrap: wrap; gap: 4px; }
.contact__send input[type="text"] { flex: 1 1 220px; min-width: 0; width: auto; }
.contact__submit {
  flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 20px;
  border: 1px solid transparent;          /* vira contorno visível nas cores forçadas */
  border-radius: 0; background: var(--inverse-bg); color: var(--inverse-text); cursor: pointer;
  font-size: calc(15px * var(--ts)); font-weight: 600; white-space: nowrap; text-decoration: none;
  transition: background-color 0.25s;
}
.contact__submit:hover { background: var(--inverse-hover); }
.contact__submit[aria-disabled="true"] { opacity: 0.6; cursor: progress; }
.contact__submit svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 519px) { .contact__submit { flex: 1 1 100%; } }
.social svg, .libras-player__close svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.contact__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact__note { grid-column: 1 / -1; max-width: 80ch; margin-top: 2px; font-size: calc(13px * var(--ts)); color: var(--ink-soft); }
.contact__msg { margin-top: 6px; font-size: calc(14px * var(--ts)); font-weight: 600; }
.contact__msg:empty { margin-top: 0; }
.contact__note a { color: var(--text); font-weight: 600; text-underline-offset: 3px; }
.contact__msg--error { color: var(--orange-ink); }

.contact--qr { display: flex; flex-direction: column; gap: 18px; }
.contact__desc { margin: 0; font-size: calc(clamp(15px, 0.4vw + 14px, 17px) * var(--ts)); line-height: 1.6; color: var(--ink-soft); max-width: 54ch; }
.contact__card {
  display: flex; flex-direction: row; align-items: center; gap: 28px;
  padding: 24px; background: var(--surface);
  border: 1px solid var(--line-strong); border-radius: 12px;
  box-shadow: 0 10px 30px -10px rgb(var(--shadow-rgb) / 0.1);
  transition: border-color 0.25s, box-shadow 0.25s;
}
.contact__card:hover {
  border-color: var(--cyan-ink);
  box-shadow: 0 14px 36px -10px rgb(var(--shadow-rgb) / 0.16);
}
@media (max-width: 600px) {
  .contact__card { flex-direction: column; align-items: flex-start; padding: 20px; gap: 20px; }
}
.contact__qr-frame {
  flex: none; background: #ffffff; padding: 12px; border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.08); box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
  display: inline-flex; align-items: center; justify-content: center;
}
.contact__qr-img { display: block; width: 170px; height: 170px; object-fit: contain; }
@media (max-width: 420px) {
  .contact__qr-img { width: 140px; height: 140px; }
}
.contact__cta { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.contact__link-btn {
  border-radius: 8px; box-shadow: 0 4px 14px -3px rgb(var(--shadow-rgb) / 0.25);
  transition: background-color 0.25s, transform 0.2s, box-shadow 0.2s;
}
.contact__link-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -4px rgb(var(--shadow-rgb) / 0.35);
}
.contact__url-box { display: flex; flex-direction: column; gap: 4px; font-size: calc(13px * var(--ts)); }
.contact__url-label { font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; font-size: calc(11px * var(--ts)); color: var(--ink-soft); }
.contact__direct-link {
  color: var(--cyan-ink); font-weight: 600; font-size: calc(14px * var(--ts));
  text-decoration: underline; text-underline-offset: 3px; word-break: break-all;
  transition: color 0.2s ease;
}
.contact__direct-link:hover { color: var(--orange-ink); }

.social { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.social a { display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid var(--line-strong); text-decoration: none; transition: background-color 0.25s, color 0.25s; }
.social a:hover { background: var(--inverse-bg); color: var(--inverse-text); }

.info__details address { font-style: normal; color: var(--ink-soft); font-size: calc(16px * var(--ts)); line-height: 1.65; }
.info__details a { color: var(--text); font-weight: 600; text-underline-offset: 3px; overflow-wrap: anywhere; }
.info__media { border-radius: 0; width: 100%; }
@media (min-width: 641px) { html.js .info__right .info__media { width: calc(100% - 24px); } }   /* não encosta nos marcadores */
.wordmark { margin: 0; }

.info__foot { grid-column: 1 / -1; align-self: end; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; }
.info__nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.info__nav a { font-size: calc(clamp(15px, 0.5vw + 11px, 20px) * var(--ts)); font-weight: 700; letter-spacing: -0.01em; text-transform: uppercase; text-decoration: none; }
.info__nav a:hover { color: var(--orange-ink); }
@media (pointer: coarse) { .info__nav { row-gap: 4px; } .info__nav a { padding-block: 9px; } }

.info__bar {
  display: grid; gap: 12px 0; align-items: center;
  padding: 18px var(--pad) calc(18px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line);
}
.info__bar-right { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; font-size: calc(14px * var(--ts)); color: var(--ink-soft); }
@media (min-width: 1024px) { .info__bar { grid-template-columns: 1fr 1fr; } .info__bar-right { padding-left: var(--pad); } }
.wordmark { justify-self: start; font-size: calc(clamp(26px, 1.4vw + 18px, 38px) * var(--tsl)); font-weight: 700; letter-spacing: -0.035em; line-height: 1; text-decoration: none; }
.wordmark span { color: var(--orange); }

/* =====================================================================
   11. PLAYER DE LIBRAS  (opcional; janela modal no canto da tela: o foco fica dentro, Esc fecha)
   ===================================================================== */
.libras-player {
  position: fixed; z-index: 60; inset: auto calc(16px + env(safe-area-inset-right, 0px)) calc(16px + env(safe-area-inset-bottom, 0px)) auto;
  width: clamp(240px, 24vw, 420px); max-width: calc(100vw - 32px); margin: 0; padding: 0;
  border: 0; border-radius: 18px; overflow: hidden; background: var(--navy);
  box-shadow: 0 24px 60px -16px rgb(var(--shadow-rgb) / 0.45);
}
@media (max-width: 600px) { .libras-player { width: min(240px, 62vw); } }
.libras-player::backdrop { background: rgb(var(--shadow-rgb) / 0.35); }
.libras-player video { width: 100%; aspect-ratio: 3 / 4; object-fit: contain; background: var(--navy); }   /* nunca cortar mãos e braços */
.libras-player__close {
  position: absolute; top: 10px; right: 10px;
  display: grid; place-items: center; width: 40px; height: 40px; padding: 0;
  border: 0; border-radius: 50%; background: rgb(var(--surface-rgb) / 0.92); color: var(--text); cursor: pointer;
}

/* =====================================================================
   12. MARCADORES DE ROLAGEM  (ao lado da barra do navegador, que continua visível)
   Trilho fino à direita com um marcador por seção: a linha se preenche conforme a rolagem,
   o marcador da seção atual fica em azul-claro escuro (5:1) e o nome dela aparece por um instante (no desktop).
   É só indicador (aria-hidden, sem clique): a nav do topo e a barra do navegador fazem a navegação.
   ===================================================================== */
html:not(.js) .rail, .rail[hidden] { display: none; }
.rail {
  position: fixed; z-index: 40; top: 50%; right: max(10px, env(safe-area-inset-right, 0px));
  display: grid; gap: 26px; transform: translateY(-50%);
  pointer-events: none;
}
.rail__track {
  position: absolute; left: 50%; top: 12px; bottom: 12px; width: 2px; margin-left: -1px;
  border-radius: 2px; background: rgb(var(--ink-rgb) / 0.14); overflow: hidden;
}
.rail__fill {
  position: absolute; inset: 0; background: var(--text);
  transform: scaleY(var(--p, 0)); transform-origin: top;
}
.rail__dot { position: relative; display: grid; place-items: center; width: 24px; height: 24px; }
.rail__dot::before {
  content: ""; width: 10px; height: 10px; border-radius: 50%;
  border: 2px solid var(--text); background: var(--bg);
  transition: transform 0.35s var(--ease), background-color 0.35s, border-color 0.35s;
}
.rail__dot.is-past::before { background: var(--text); }
.rail__dot.is-current::before { background: var(--orange-ink); border-color: var(--orange-ink); transform: scale(1.3); }
.rail__label {
  position: absolute; right: 30px; top: 50%;
  padding: 5px 11px; border-radius: 999px; white-space: nowrap;
  font-size: calc(12px * var(--ts)); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text);
  background: rgb(var(--surface-rgb) / 0.86); box-shadow: 0 6px 20px -10px rgb(var(--shadow-rgb) / 0.35);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  opacity: 0; transform: translate(6px, -50%);
  transition: opacity 0.25s ease, transform 0.25s var(--ease);
  pointer-events: none;
}
.rail.is-announcing .rail__dot.is-current:not(:nth-child(2)):not(:last-child) .rail__label { opacity: 1; transform: translate(0, -50%); }
@media (max-width: 640px), (pointer: coarse) and (max-height: 500px) {   /* celular (em pé ou deitado): trilho discreto, sem rótulos, só enquanto rola */
  .rail { gap: 20px; right: max(3px, env(safe-area-inset-right, 0px)); opacity: 0; transition: opacity 0.4s ease; }
  .rail.is-scrolling { opacity: 1; transition-duration: 0.15s; }
  .rail__dot { width: 12px; height: 12px; }
  .rail__dot::before { width: 7px; height: 7px; border-width: 1.5px; }
  .rail__track { top: 6px; bottom: 6px; width: 1.5px; margin-left: -0.75px; }
  .rail__label { display: none; }
}
@media (pointer: coarse) and (max-height: 500px) {          /* celular deitado: margens livres do notch e do trilho */
  :root { --gutter: max(clamp(16px, 4vw, 48px), env(safe-area-inset-left, 0px), calc(env(safe-area-inset-right, 0px) + 20px)); }
  .info { --pad: max(clamp(16px, 2vw, 28px), env(safe-area-inset-left, 0px), calc(env(safe-area-inset-right, 0px) + 20px)); }
}

/* =====================================================================
   13. REVEAL  (só com JS; sem JS ou com movimento reduzido, tudo aparece de cara)
   ===================================================================== */
.js .reveal {
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.reveal[data-d="1"] { --d: 1; }                 /* atraso em cascata (atributo, não style="": a CSP não permite estilo inline) */
.reveal[data-d="2"] { --d: 2; }
.js .reveal.is-in { opacity: 1; transform: none; }
.js:not(.lp-ready) .reveal { animation: reveal-failsafe 0s 3s forwards; }
@keyframes reveal-failsafe { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .hero__cue i::after { animation: none; top: 0; }
  .rail__dot::before, .rail__label { transition: none; }
  .cena--rotating .cena__item, .cena--rotating .cena__item.is-active { transition: none; }
  .cena--rotating .cena__item.is-active .tok { animation: none; }
}

/* =====================================================================
   14. ALTO CONTRASTE  (botão ◐ na nav; vale nos dois temas)
   ===================================================================== */
html.hc .nav__pill, html.hc .rail__label, html.hc .media__toggle, html.hc .libras-player__close {
  background: var(--bg); border: 2px solid var(--text); box-shadow: none;
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
html.hc .sheet { box-shadow: none; border-top: 2px solid var(--text); }
html.hc .cena, html.hc .media, html.hc .media__ph { background: var(--mist); }
html.hc .cena { border-block: 2px solid var(--text); }
html.hc .media { outline: 2px solid var(--text); outline-offset: -2px; }
html.hc .media__ph code { background: var(--bg); border: 1px solid var(--text); }
html.hc .partner, html.hc .chip span, html.hc .social a, html.hc .libras-chip { border-color: var(--text); }
html.hc .contact input[type="text"], html.hc .contact input[type="email"] { border-width: 2px; }
html.hc .contact__card, html.hc .contact__qr-frame { border: 2px solid var(--text); box-shadow: none; }
html.hc .contact__link-btn { border: 2px solid var(--text); text-decoration: none !important; }
html.hc .hero__fog, html.hc .hero__sparks { display: none; }            /* a névoa dá lugar ao título sólido */
html.hc .hero .hero__title, html.hc .hero.fog-ready .hero__title { opacity: 1; }
html.hc .hero__run--ai, html.hc .wordmark span { color: var(--orange-ink); }
html.hc .mark { background-image: linear-gradient(var(--orange-ink), var(--orange-ink)); }
html.hc .eyebrow::before { background: var(--orange-ink); }
html.hc .rail__track { background: rgb(var(--ink-rgb) / 0.35); }
html.hc a:not(.nav__link):not(.wordmark):not(.skip):not(.hero__cue) { text-decoration: underline; text-underline-offset: 3px; }
html.hc :focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

/* =====================================================================
   15. CORES FORÇADAS  (alto contraste do Windows): estados que dependiam só de fundo ganham Highlight
   ===================================================================== */
@media (forced-colors: active) {
  .chip input:checked + span,
  .nav__link[aria-current="true"],
  .nav__tool[aria-pressed="true"], .nav__tool[aria-expanded="true"], .nav__tool[data-level="1"], .nav__tool[data-level="2"] {
    forced-color-adjust: none; background: Highlight; color: HighlightText; border-color: Highlight;
  }
  .chip input:focus-visible + span { outline-color: CanvasText; }
  .contact input[aria-invalid="true"] { border-width: 3px; }
  .contact__submit { border-color: ButtonText; }
  .rail { display: none; }
}

/* =====================================================================
   16. PÁGINA DE ACESSIBILIDADE  (acessibilidade.html)
   ===================================================================== */
.page { display: block; }
.page .section { padding-top: calc(var(--nav-space) + clamp(48px, 8vw, 104px)); }
.prose { max-width: 760px; }
.prose .display { max-width: 18ch; }
.prose .lede { max-width: none; margin-top: clamp(24px, 3vw, 36px); }
.prose h2 {
  margin: clamp(40px, 5vw, 64px) 0 12px;
  font-size: calc(clamp(22px, 1vw + 16px, 30px) * var(--ts)); font-weight: 600; line-height: 1.25; letter-spacing: -0.02em;
}
.prose p + p { margin-top: 14px; }
.prose ul { margin: 16px 0 0; padding-left: 1.2em; }
.prose li { margin-top: 10px; padding-left: 4px; }
.prose li::marker { color: var(--orange-ink); }
.prose a { color: var(--text); font-weight: 600; text-underline-offset: 3px; }
.page__meta { margin-top: clamp(40px, 5vw, 64px) !important; font-size: calc(14px * var(--ts)); color: var(--ink-soft); }
.page__foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px;
  padding: 18px var(--gutter) calc(18px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line); background: var(--info-bg);
  font-size: calc(14px * var(--ts)); color: var(--ink-soft);
}
.nav__a11y[aria-current="page"] { background: var(--inverse-bg); color: var(--inverse-text); }
