/*
  Eximius Tecnologia - estilos do website institucional.
  Mobile-first. Tokens em :root; componentes na ordem em que aparecem.
  Referências: docs/DESIGN_SYSTEM.md, docs/ARCHITECTURAL_GRID.md,
  docs/TYPOGRAPHY_SYSTEM.md, docs/LIGHTING_SYSTEM.md e docs/MOTION_SYSTEM.md
*/

@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/inter-tight-latin-wght-normal.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: "Geist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/geist-latin-wght-normal.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: "Geist Mono";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/geist-mono-latin-wght-normal.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;
}

/* ---------- Tokens ---------- */

:root {
  color-scheme: dark;

  /* Cor */
  --bg: #050505;
  --surface: #0b0b0c;
  --line: rgb(255 255 255 / 0.1);
  --line-strong: rgb(255 255 255 / 0.2);
  --text: #f5f5f5;
  --text-secondary: #b4b4b4;
  --text-muted: #9a9a9a;
  --prose: #cfcfcf;
  --accent: #ff5a1f;
  --accent-soft: rgb(255 90 31 / 0.18);
  --on-light: #0a0a0a;

  /* Tipografia */
  --font-display: "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-text: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

  /* O título principal também cede à altura da janela: em telas baixas
     (celular deitado, desktop de pouca altura) ele não domina a dobra. */
  --fs-display: clamp(2.25rem, min(1rem + 6.2vw, 0.5rem + 11.5vh), 7.25rem);
  --fs-title: clamp(2rem, 1.35rem + 2.9vw, 3.75rem);
  --fs-page: clamp(2.25rem, 1.5rem + 3.8vw, 4.5rem);
  --fs-heading: clamp(1.25rem, 1.16rem + 0.4vw, 1.5rem);
  --fs-lead: clamp(1.125rem, 1.08rem + 0.2vw, 1.25rem);
  --fs-body: clamp(1rem, 0.955rem + 0.2vw, 1.125rem);
  --fs-small: 0.9375rem;
  --fs-meta: 0.75rem;

  --lh-body: 1.65;
  --lh-lead: 1.55;
  --measure: 62ch;

  --weight-display: 650;
  --weight-title: 620;
  --weight-heading: 600;

  /* Malha arquitetônica (docs/ARCHITECTURAL_GRID.md): 4 colunas no
     celular, 8 no tablet, 12 no desktop. */
  --cols: 4;
  --gap: 1rem;
  --gutter: 1.25rem;
  --container: 84rem;
  --section-space: clamp(5rem, 4rem + 6vw, 10rem);
  --block-space: clamp(3rem, 2.4rem + 3vw, 5.5rem);
  --header-h: 4rem;
  --radius: 2px;

  /* Luz (docs/LIGHTING_SYSTEM.md): temperatura de cada fonte. */
  --light-ambient: 222 230 246;
  --light-key: 255 240 230;
  --light-rim: 255 228 212;
  --light-ember: 255 90 31;

  /* Movimento */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --dur-fast: 0.18s;
  --dur: 0.32s;
  --dur-slow: 0.8s;
  /* Curva e duração das transições de luz entre atos. */
  --ease-cine: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur-light: 1.8s;
}

@media (min-width: 48rem) {
  :root {
    --cols: 8;
    --gap: 1.5rem;
    --gutter: clamp(2rem, 5vw, 3rem);
  }
}

@media (min-width: 64rem) {
  :root {
    --cols: 12;
    --gap: clamp(1.5rem, 2.2vw, 2rem);
    --gutter: clamp(2.5rem, 4vw, 4rem);
  }
}

@media (prefers-contrast: more) {
  :root {
    --line: rgb(255 255 255 / 0.3);
    --line-strong: rgb(255 255 255 / 0.5);
    --text-secondary: #d9d9d9;
    --text-muted: #c2c2c2;
    --prose: #ebebeb;
  }
}

/* ---------- Base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1.5rem);
}

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-text);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img,
svg,
canvas {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

button {
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

address {
  font-style: normal;
}

/* Componentes com display próprio não podem anular o atributo hidden. */
[hidden] {
  display: none !important;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-kerning: normal;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

::selection {
  background: var(--accent);
  color: var(--on-light);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: 0.75rem;
  left: 50%;
  z-index: 100;
  padding: 0.75rem 1.125rem;
  border-radius: var(--radius);
  background: var(--text);
  color: var(--on-light);
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
  transform: translate(-50%, calc(-100% - 1rem));
}

.skip-link:focus {
  transform: translate(-50%, 0);
}

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.nowrap {
  white-space: nowrap;
}

/* ---------- Luz ---------- */

/* Campo luminoso contínuo: três fontes em camadas fixas atrás do conteúdo.
   Cada camada é um gradiente estático; entre os atos mudam apenas
   transform e opacity (docs/LIGHTING_SYSTEM.md). O texto nunca é coberto. */
.light {
  /* Celular: composição vertical, centrada. */
  --ax: 50vw;
  --ay: 12vh;
  --ao: 1;
  --kx: 50vw;
  --ky: 30vh;
  --ko: 0.55;
  --kf: 1;
  --ex: 50vw;
  --ey: 112vh;
  --eo: 0;
  --asx: 0.9;
  --asy: 1.5;
  --ksx: 0.62;
  --ksy: 1.05;
  --esx: 0.7;
  --esy: 0.6;

  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  contain: strict;
}

.light__ambient,
.light__key,
.light__ember {
  position: absolute;
  top: -20rem;
  left: -20rem;
  width: 40rem;
  height: 40rem;
  will-change: transform, opacity;
}

.light__ambient {
  background: radial-gradient(closest-side, rgb(var(--light-ambient) / 0.07), rgb(var(--light-ambient) / 0.025) 55%, transparent);
  opacity: var(--ao);
  transform: translate3d(var(--ax), var(--ay), 0) scale(var(--asx), var(--asy));
}

.light__key {
  background: radial-gradient(closest-side, rgb(var(--light-key) / 0.085), rgb(var(--light-key) / 0.03) 50%, transparent);
  opacity: var(--ko);
  transform: translate3d(var(--kx), var(--ky), 0) scale(calc(var(--ksx) * var(--kf)), calc(var(--ksy) * var(--kf)));
}

.light__ember {
  background: radial-gradient(closest-side, rgb(var(--light-ember) / 0.2), rgb(var(--light-ember) / 0.05) 55%, transparent);
  opacity: var(--eo);
  transform: translate3d(var(--ex), var(--ey), 0) scale(var(--esx), var(--esy));
}

@media (min-width: 48rem) {
  /* Tablet: a luz passa a ter direção horizontal, com extensão contida. */
  .light {
    --ax: 68vw;
    --kx: 24vw;
    --asx: 1.7;
    --asy: 1.3;
    --ksx: 1.15;
    --ksy: 0.9;
    --esx: 1.2;
    --esy: 0.6;
  }
}

@media (min-width: 64rem) {
  /* Desktop: composição horizontal ampla. */
  .light {
    --asx: 2.6;
    --asy: 1.5;
    --ksx: 1.8;
    --ksy: 1.1;
    --esx: 1.9;
    --esy: 0.7;
  }
}

.accent {
  color: var(--accent);
}

/* Microtipografia: metadados, rótulos e índices. */
.meta,
.label,
.eyebrow,
.footer-title {
  font-family: var(--font-mono);
  font-size: var(--fs-meta);
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-transform: uppercase;
}

.meta,
.label,
.footer-title {
  color: var(--text-muted);
}

/* Rótulo com o sinal Ember: um ponto quadrado que indica atividade. */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-secondary);
}

.eyebrow::before {
  content: "";
  flex: none;
  width: 0.4375rem;
  height: 0.4375rem;
  background: var(--accent);
}

.eyebrow__index {
  order: -1;
  color: var(--text-muted);
}

.link {
  background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 1px no-repeat,
    linear-gradient(var(--line-strong), var(--line-strong)) 0 100% / 100% 1px no-repeat;
  padding-bottom: 0.125em;
  transition: background-size var(--dur) var(--ease-out);
}

.link:hover {
  background-size: 100% 1px, 100% 1px;
}

/* ---------- Marca ---------- */

.mark {
  fill: currentColor;
}

.mark__bar {
  fill: var(--accent);
  transition: transform var(--dur) var(--ease-out);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  min-height: 2.75rem;
}

.brand:hover .mark__bar {
  transform: translateX(1.5px);
}

.brand__mark {
  display: none;
  width: 1.375rem;
  height: 1.375rem;
}

.brand__word {
  margin-right: -0.22em;
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  line-height: 1;
}

@media (min-width: 22.5rem) {
  .brand__mark {
    display: block;
  }
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgb(5 5 5 / 0.78);
  -webkit-backdrop-filter: saturate(1.4) blur(16px);
  backdrop-filter: saturate(1.4) blur(16px);
}

@supports (animation-timeline: scroll()) {
  .site-header {
    animation: header-settle linear both;
    animation-timeline: scroll(root);
    animation-range: 0 6rem;
  }

  @keyframes header-settle {
    from {
      border-bottom-color: transparent;
      background-color: rgb(5 5 5 / 0);
    }
  }
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: var(--header-h);
}

.nav {
  display: flex;
  gap: clamp(1rem, 4vw, 2.25rem);
}

.nav a {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--text-secondary);
  font-size: var(--fs-small);
  font-weight: 500;
  transition: color var(--dur-fast) var(--ease);
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.5rem;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease-out);
}

.nav a:hover,
.nav a.is-active {
  color: var(--text);
}

.nav a:hover::after,
.nav a.is-active::after {
  transform: scaleX(1);
}

/* ---------- Botões ---------- */

.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 3.25rem;
  padding: 0 1.375rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: var(--fs-small);
  font-weight: 500;
  letter-spacing: -0.005em;
  line-height: 1;
  white-space: nowrap;
  transition: background-color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease),
    color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}

.button:active {
  transform: scale(0.98);
}

.button__icon {
  width: 1.125rem;
  height: 1.125rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: square;
  transition: transform var(--dur) var(--ease-out);
}

.button:hover .button__icon {
  transform: translateX(4px);
}

/* A borda inferior acende em Ember no hover: o sinal de atividade. */
.button::after {
  content: "";
  position: absolute;
  left: -1px;
  right: -1px;
  bottom: -1px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease-out);
}

.button:hover::after,
.button:focus-visible::after {
  transform: scaleX(1);
}

.button--primary {
  background: var(--text);
  color: var(--on-light);
}

.button--primary:hover {
  background: #fff;
}

.button--ghost {
  border-color: var(--line-strong);
  background: rgb(5 5 5 / 0.4);
  color: var(--text);
}

.button--ghost:hover {
  border-color: rgb(255 255 255 / 0.4);
  background: rgb(255 255 255 / 0.05);
}

/* ---------- Hero ---------- */

.hero {
  /* Eixo vertical da composição: posição horizontal do ponto de fuga. */
  --axis: 50%;
  --art-w: max(100vw, 44rem);
  --floor: 3.75rem;
  --beam: 2.75rem;
  --mark: 2.5rem;
  --fade: 14rem;
  /* A linha do horizonte fica 21,3% da largura da arte acima de sua base. */
  --vp: 0.213;

  display: flex;
  flex-direction: column;
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
}

.hero__main {
  position: relative;
  isolation: isolate;
  display: flex;
  flex: 1;
  flex-direction: column;
  overflow: hidden;
}

.hero__stage,
.hero__depth {
  position: absolute;
  inset: 0;
}

.hero__stage {
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.hero__art {
  position: absolute;
  left: var(--axis);
  bottom: calc(var(--floor) - var(--art-w) * var(--vp));
  width: var(--art-w);
  max-width: none;
  height: auto;
  translate: calc(-50% + var(--px, 0) * -8px) calc(var(--py, 0) * -5px);
  transform-origin: 50% 65.9%;
  -webkit-mask-image: linear-gradient(to top, #000 calc(34% + 3rem), transparent calc(34% + var(--fade)));
  mask-image: linear-gradient(to top, #000 calc(34% + 3rem), transparent calc(34% + var(--fade)));
}

.hero__field {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  translate: calc(var(--px, 0) * -8px) calc(var(--py, 0) * -5px);
}

.hero__glow {
  position: absolute;
  left: var(--axis);
  bottom: var(--floor);
  width: min(64rem, 150vw);
  height: 13rem;
  background: radial-gradient(closest-side, rgb(255 90 31 / 0.34), rgb(255 90 31 / 0.1) 55%, transparent);
  translate: calc(-50% + var(--px, 0) * 6px) 50%;
}

.hero__horizon {
  position: absolute;
  left: var(--axis);
  bottom: var(--floor);
  width: min(72rem, 170vw);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgb(255 90 31 / 0.55) 30%, #ffd9c9 50%, rgb(255 90 31 / 0.55) 70%, transparent);
  translate: -50% 0;
}

.hero__horizon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 16rem;
  height: 2.25rem;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgb(255 214 196 / 0.55), transparent);
  translate: -50% -50%;
}

/* A haste do "E" desce como um feixe até o horizonte. */
.hero__beam {
  position: absolute;
  left: var(--axis);
  bottom: var(--floor);
  width: 1px;
  height: var(--beam);
  background: linear-gradient(to top, #ffd9c9, rgb(255 255 255 / 0.35));
  transform-origin: bottom;
  /* Centro da haste do "E": 1,75/24 da largura do monograma. */
  translate: calc(var(--mark) * 0.0729 - 0.5px) 0;
}

.hero__mark {
  position: absolute;
  left: var(--axis);
  bottom: calc(var(--floor) + var(--beam));
  width: var(--mark);
  height: var(--mark);
  overflow: visible;
  fill: var(--text);
  /* Alinha a borda esquerda da haste do "E" ao eixo e apoia o símbolo no feixe. */
  translate: calc(var(--mark) * -0.1667) calc(var(--mark) * 0.1667);
}

.hero__mark-stem,
.hero__mark-arm,
.hero__mark-bar {
  transform-box: fill-box;
}

.hero__mark-stem {
  transform-origin: bottom;
}

.hero__mark-arm {
  transform-origin: left;
}

.hero__mark-bar {
  fill: var(--accent);
}

.hero__content {
  padding-top: clamp(2rem, 5.5vh, 5rem);
  padding-bottom: calc(var(--floor) + var(--beam) + var(--mark) + 1.75rem);
}

.hero__title {
  margin-top: clamp(1.25rem, 3vh, 2rem);
  font-size: var(--fs-display);
  font-weight: var(--weight-display);
  letter-spacing: -0.03em;
  /* Em telas estreitas as linhas quebram: mais entrelinha evita que
     descendentes toquem as ascendentes da linha seguinte. */
  line-height: 1.02;
  text-wrap: wrap;
}

/* Quebra de arte do título: duas linhas quando a largura permite. */
.line {
  display: block;
}

.hero__aside {
  max-width: 32em;
  margin-top: clamp(1.5rem, 4.5vh, 3.25rem);
}

.hero__lead {
  color: var(--text-secondary);
  font-size: var(--fs-lead);
  line-height: var(--lh-lead);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: clamp(1.5rem, 4vh, 2.25rem);
}

/* Em telas estreitas os botões empilham com a mesma largura. */
.hero__actions .button {
  flex: 1 1 auto;
}

.hero__foot {
  border-top: 1px solid var(--line);
}

.hero__foot-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 1rem;
  min-height: 3.5rem;
  padding-block: 0.375rem;
}

/* Em telas estreitas o país sai para o local caber ao lado do controle. */
.hero__foot-country {
  display: none;
}

.motion-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  min-height: 2.75rem;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: var(--fs-meta);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color var(--dur-fast) var(--ease);
}

.motion-toggle:hover {
  color: var(--text);
}

/* Ícone de pausa (duas barras) que vira "reproduzir" (triângulo). */
.motion-toggle__icon {
  width: 0.5rem;
  height: 0.625rem;
  border-inline: 0.1875rem solid var(--accent);
}

.motion-toggle[aria-pressed="true"] .motion-toggle__icon {
  width: 0;
  height: 0;
  border-block: 0.3125rem solid transparent;
  border-inline: 0.5rem solid var(--accent);
  border-inline-end-width: 0;
}

@media (min-width: 40rem) {
  .hero__foot-country {
    display: inline;
  }

  .hero__actions .button {
    flex: none;
  }
}

@media (min-width: 48rem) {
  .hero {
    /* Tablet: o eixo é o início da quarta coluna de oito. */
    --axis: calc(50% - min(100% - 2 * var(--gutter), var(--container)) / 8 + var(--gap) * 3 / 8);
    --art-w: max(120vw, 60rem);
    --fade: 20rem;
  }

  .hero__title {
    line-height: 0.96;
  }

  .hero__aside {
    max-width: none;
    margin-left: calc((100% + var(--gap)) * 3 / 8);
  }
}

@media (min-width: 64rem) {
  .hero {
    /* Desktop: o eixo é o início da oitava coluna de doze. */
    --axis: calc(50% + min(100% - 2 * var(--gutter), var(--container)) / 12 + var(--gap) * 7 / 12);
    --art-w: max(125vw, 84rem);
    --floor: clamp(4rem, 8vh, 6rem);
    --beam: 4rem;
    --mark: 3rem;
    --fade: 22rem;
  }

  .hero__content {
    padding-bottom: calc(var(--floor) + var(--beam) + var(--mark) + 2rem);
  }

  /* O texto de apoio alinha-se ao eixo: a oitava coluna de doze. */
  .hero__aside {
    max-width: 30rem;
    margin-left: calc((100% + var(--gap)) * 7 / 12);
  }
}

/* Janelas baixas (celular deitado, desktop de pouca altura): a cena
   encolhe para que título, texto e ações caibam com folga. */
@media (max-height: 34rem) {
  .hero {
    --floor: 2.5rem;
    --beam: 1.75rem;
    --mark: 2rem;
    --fade: 10rem;
  }

  .hero__content {
    padding-top: 1.75rem;
  }
}

/* ---------- Seções ---------- */

.section {
  padding-top: var(--section-space);
}

.section:last-of-type {
  padding-bottom: var(--section-space);
}

.section-head {
  position: relative;
  padding-top: 1.5rem;
}

/* Fio superior da seção e, sobre ele, a luz de recorte (rim light), que
   acende enquanto a seção é o ato em leitura. */
.section-head::before,
.section-head::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--line-strong);
  transform-origin: left;
}

.section-head::after {
  background: linear-gradient(90deg, rgb(var(--light-rim) / 0.75), rgb(var(--light-rim) / 0.3) 22%, transparent 62%);
}

.section-title {
  max-width: 21ch;
  margin-top: 1.5rem;
  font-size: var(--fs-title);
  font-weight: var(--weight-title);
  letter-spacing: -0.022em;
  line-height: 1.04;
}

.section-lead {
  max-width: 32em;
  margin-top: 1.5rem;
  color: var(--text-secondary);
  font-size: var(--fs-lead);
  line-height: var(--lh-lead);
}

.section-body {
  margin-top: var(--block-space);
}

@media (min-width: 48rem) {
  .section-title {
    margin-top: 2rem;
  }
}

@media (min-width: 64rem) {
  /* Proporção editorial 25:75: rótulo em três colunas, conteúdo em nove. */
  .section-head {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--gap);
    padding-top: 2rem;
  }

  .section-head > .eyebrow {
    grid-column: 1 / span 3;
    align-self: start;
    margin-top: 0.75em;
  }

  .section-title,
  .section-lead {
    grid-column: 4 / -1;
  }

  .section-title {
    margin-top: 0;
  }

  .section-body {
    margin-left: calc((100% + var(--gap)) * 3 / 12);
  }
}

/* ---------- Sobre ---------- */

/* Princípios: linhas de uma ficha, com o texto no eixo da composição. */
.principles {
  display: grid;
  border-bottom: 1px solid var(--line);
}

.principle {
  padding-block: 1.75rem 2rem;
  border-top: 1px solid var(--line);
}

.principle__icon {
  width: 1.75rem;
  height: 1.75rem;
  fill: none;
  stroke: var(--text);
  stroke-width: 1.25;
  stroke-linecap: square;
}

.icon-accent {
  fill: var(--accent);
  stroke: none;
}

.icon-accent-stroke {
  stroke: var(--accent);
}

.principle h3,
.area h3 {
  font-size: var(--fs-heading);
  font-weight: var(--weight-heading);
  letter-spacing: -0.015em;
  line-height: 1.2;
}

.principle h3 {
  margin-top: 1.25rem;
}

.principle p,
.area p {
  max-width: 32em;
  margin-top: 0.75rem;
  color: var(--text-secondary);
}

@media (min-width: 48rem) {
  .principle {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    column-gap: var(--gap);
    align-items: start;
    padding-block: 2rem 2.25rem;
  }

  .principle__icon {
    grid-column: 1;
  }

  .principle h3 {
    grid-column: 2 / span 3;
    margin-top: 0.0625rem;
  }

  .principle p {
    grid-column: 5 / -1;
    margin-top: 0;
  }
}

@media (min-width: 64rem) {
  .principle {
    grid-template-columns: repeat(9, minmax(0, 1fr));
  }
}

.definition__term {
  margin-top: 1rem;
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 2.4rem + 4.6vw, 6rem);
  font-weight: var(--weight-display);
  letter-spacing: -0.04em;
  line-height: 1;
}

/* A barra destacada do monograma, repetida sob o verbete. */
.definition__term::after {
  content: "";
  display: block;
  width: 2.5rem;
  height: 0.3125rem;
  margin-top: 1.5rem;
  background: var(--accent);
}

.definition__text {
  max-width: 22em;
  margin-top: 1.5rem;
  color: var(--text-secondary);
  font-size: var(--fs-lead);
  line-height: var(--lh-lead);
}

.definition__text em {
  color: var(--text);
  font-style: normal;
  font-weight: 500;
}

.definition__class {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: var(--fs-meta);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (min-width: 64rem) {
  /* O verbete ocupa a largura do conteúdo: termo à esquerda e
     definição a partir da oitava coluna, o mesmo eixo do hero. */
  .definition dl {
    display: grid;
    grid-template-columns: repeat(9, minmax(0, 1fr));
    align-items: end;
    gap: 0 var(--gap);
  }

  .definition__term {
    grid-column: 1 / span 4;
  }

  .definition__text {
    grid-column: 5 / -1;
    margin-top: 0;
  }
}

/* ---------- Áreas de atuação ---------- */

.areas {
  display: grid;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

/* Cada área é um contêiner: a composição interna responde à largura do
   próprio cartão, não à da janela. */
.area {
  position: relative;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  container-type: inline-size;
}

/* Luz que acompanha o ponteiro (--mx e --my são definidos por main.js). */
.area::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(22rem circle at var(--mx, 50%) var(--my, 0%), rgb(255 255 255 / 0.06), transparent 65%);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur) var(--ease);
}

.area:hover::before {
  opacity: 1;
}

/* Luz de recorte na aresta superior do cartão iluminado. */
.area::after {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgb(var(--light-rim) / 0.6) 30%, rgb(var(--light-rim) / 0.6) 50%, transparent 85%);
  pointer-events: none;
}

.area__visual {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 10;
  padding: 1.25rem;
  border-bottom: 1px solid var(--line);
  /* Malha de pontos: papel técnico. */
  background: radial-gradient(rgb(255 255 255 / 0.09) 1px, transparent 1px) 50% 50% / 1.25rem 1.25rem;
}

/* Iluminação contextual do diagrama: luz principal de cima, Ember de baixo. */
.area__visual::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(70% 75% at 50% 0%, rgb(var(--light-key) / 0.075), transparent 70%),
    radial-gradient(55% 60% at 50% 100%, rgb(var(--light-ember) / 0.1), transparent 70%);
}

.area__visual svg {
  width: 100%;
  max-width: 24rem;
  height: auto;
  overflow: visible;
}

.area__text {
  padding: 1.5rem 1.5rem 2rem;
}

.area__index {
  display: block;
  margin-bottom: 1rem;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: var(--fs-meta);
  font-weight: 500;
  letter-spacing: 0.08em;
}

/* Cartão largo (coluna única em telas médias): diagrama ao lado do texto. */
@container (min-width: 36rem) {
  .area__inner {
    display: grid;
    grid-template-columns: 5fr 7fr;
  }

  .area__visual {
    aspect-ratio: auto;
    min-height: 13rem;
    border-right: 1px solid var(--line);
    border-bottom: 0;
  }

  .area__text {
    align-self: center;
    padding: 1.75rem 2rem;
  }
}

@media (min-width: 48rem) {
  .areas {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .area__text {
    padding: 1.75rem 1.75rem 2.25rem;
  }
}

/* Ilustrações: primitivas compartilhadas. */
.v-line,
.v-line-faint,
.v-line-strong,
.v-line-dashed {
  fill: none;
  stroke: rgb(255 255 255 / 0.3);
  stroke-width: 1;
}

.v-line-faint {
  stroke: rgb(255 255 255 / 0.14);
}

.v-line-strong {
  stroke: rgb(255 255 255 / 0.5);
}

.v-line-dashed {
  stroke-dasharray: 2 5;
}

.v-surface {
  fill: var(--bg);
}

.v-fill {
  fill: rgb(255 255 255 / 0.62);
}

.v-fill-solid {
  fill: var(--text);
}

.v-dim {
  fill: rgb(255 255 255 / 0.18);
}

.v-accent,
.v-node-accent {
  fill: var(--accent);
}

.v-node {
  fill: var(--bg);
  stroke: rgb(255 255 255 / 0.55);
  stroke-width: 1;
}

.v-code,
.v-progress,
.v-layer,
.v-ping,
.v-spin {
  transform-box: fill-box;
}

.v-code,
.v-progress {
  transform-origin: left;
}

.v-ping,
.v-spin {
  transform-origin: center;
}

.v-ping {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1;
  opacity: 0;
}

/* Pulso: um traço curto que percorre o caminho (pathLength="100"). */
.v-pulse {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.5;
  stroke-dasharray: 8 100;
  stroke-dashoffset: -46;
}

/* Viajante orbital: traço de comprimento mínimo com ponta redonda vira um ponto. */
.v-traveler {
  fill: none;
  stroke: var(--accent);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 0.01 100;
  stroke-dashoffset: -8;
}

.v-traveler--2 {
  stroke: var(--text);
  stroke-width: 4;
  stroke-dashoffset: -30;
}

/* ---------- Contato ---------- */

/* O halo de convergência é mais largo que o endereço; a seção o contém. */
.section--contact {
  overflow: hidden;
}

.contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2rem;
  container-type: inline-size;
}

/* O endereço ocupa uma única linha em qualquer largura: o corpo é
   calculado a partir da largura do próprio bloco de contato (cqi). */
.contact-email {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: flex-end;
  gap: 0.25em;
  max-width: 100%;
  padding-bottom: 0.25em;
  background: linear-gradient(var(--line-strong), var(--line-strong)) 0 100% / 100% 1px no-repeat;
  font-family: var(--font-display);
  font-size: var(--fs-heading);
  font-size: clamp(1rem, 6.55cqi, 4rem);
  font-weight: var(--weight-heading);
  letter-spacing: -0.03em;
  line-height: 1.1;
  white-space: nowrap;
}

.contact-email::before,
.contact-email::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
}

/* Convergência: a luz Ember concentra-se sob o endereço. */
.contact-email::before {
  z-index: -1;
  left: -12%;
  right: -12%;
  bottom: -2.75rem;
  height: 5.5rem;
  background: radial-gradient(closest-side, rgb(var(--light-ember) / 0.2), rgb(var(--light-ember) / 0.05) 60%, transparent);
  pointer-events: none;
}

.contact-email::after {
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease-out);
}

.contact-email:hover::after,
.contact-email:focus-visible::after {
  transform: scaleX(1);
}

.contact-email__icon {
  flex: none;
  width: 0.8em;
  height: 0.8em;
  margin-bottom: 0.1em;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.5;
  stroke-linecap: square;
  transition: transform var(--dur) var(--ease-out);
}

.contact-email:hover .contact-email__icon {
  transform: translate(0.1em, -0.1em);
}

.copy-button__icons {
  position: relative;
  width: 1.125rem;
  height: 1.125rem;
}

.copy-button__icons svg {
  position: absolute;
  inset: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: square;
  transition: opacity var(--dur-fast) var(--ease), transform var(--dur) var(--ease-out);
}

.copy-button__done {
  stroke: var(--accent);
  opacity: 0;
  transform: scale(0.6);
}

.copy-button[data-state="done"] {
  border-color: var(--accent);
}

.copy-button[data-state="done"] .copy-button__icon {
  opacity: 0;
  transform: scale(0.6);
}

.copy-button[data-state="done"] .copy-button__done {
  opacity: 1;
  transform: none;
}

/* ---------- Footer ---------- */

.site-footer {
  overflow: hidden;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  gap: 2.5rem 2rem;
  padding-block: clamp(3rem, 6vw, 5rem);
}

.footer-brand p {
  max-width: 22rem;
  margin-top: 1rem;
  color: var(--text-secondary);
  font-size: var(--fs-small);
}

.footer-title {
  margin-bottom: 0.75rem;
}

.footer-list a,
.footer-bottom__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.25rem;
  color: var(--text-secondary);
  font-size: var(--fs-small);
  overflow-wrap: anywhere;
  transition: color var(--dur-fast) var(--ease);
}

.footer-list a:hover,
.footer-list a[aria-current="page"],
.footer-bottom__link:hover {
  color: var(--text);
}

.footer-list a {
  background: linear-gradient(var(--accent), var(--accent)) 0 calc(100% - 0.375rem) / 0 1px no-repeat;
  transition: color var(--dur-fast) var(--ease), background-size var(--dur) var(--ease-out);
}

.footer-list a:hover {
  background-size: 100% 1px;
}

.footer-address {
  color: var(--text-secondary);
  font-size: var(--fs-small);
  line-height: 1.7;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-block: 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: var(--fs-meta);
  letter-spacing: 0.04em;
}

.footer-bottom__link {
  font-size: inherit;
}

.footer-bottom__link svg {
  width: 0.875rem;
  height: 0.875rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: square;
  transition: transform var(--dur) var(--ease-out);
}

.footer-bottom__link:hover svg {
  transform: translateY(-3px);
}

/* Wordmark monumental, iluminado por baixo como o horizonte do hero.
   --mx e --my acompanham o ponteiro (main.js). */
.footer-wordmark {
  margin-top: clamp(1rem, 3vw, 2.5rem);
  margin-bottom: 0.06em;
  background: radial-gradient(34vw circle at var(--mx, 50%) var(--my, 118%), var(--accent), rgb(255 90 31 / 0.38) 38%, rgb(255 255 255 / 0.075) 72%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-family: var(--font-display);
  font-size: min(23.9vw, 22rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 0.8;
  text-align: center;
  white-space: nowrap;
  user-select: none;
}

.site-footer--compact .footer-bottom {
  border-top: 0;
}

/* Razão social e CNPJ: lado a lado ou empilhados, sem separador órfão. */
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.25rem;
}

.footer-bottom__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

@media (min-width: 40rem) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 48rem) {
  .footer-grid {
    grid-template-columns: repeat(8, minmax(0, 1fr));
    column-gap: var(--gap);
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-col {
    grid-column: span 2;
  }

  .footer-col--wide {
    grid-column: span 4;
  }
}

@media (min-width: 64rem) {
  /* Rodapé na mesma malha: marca no trilho, colunas a partir da quarta,
     institucional no eixo (oitava coluna). */
  .footer-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }

  .footer-brand {
    grid-column: 1 / span 3;
  }

  .footer-col {
    grid-column: 4 / span 4;
  }

  .footer-col--wide {
    grid-column: 8 / span 3;
  }

  .footer-col:last-child {
    grid-column: 11 / span 2;
  }
}

/* ---------- Páginas de texto (privacidade e termos) ---------- */

.page-head {
  padding-block: clamp(3rem, 8vw, 6.5rem) clamp(2.5rem, 5vw, 4rem);
  border-bottom: 1px solid var(--line);
}

.page-title {
  margin-top: 1.5rem;
  font-size: var(--fs-page);
  font-weight: var(--weight-display);
  letter-spacing: -0.035em;
  line-height: 0.98;
}

.page-meta {
  margin-top: 1.5rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: var(--fs-meta);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.page-body {
  padding-block: clamp(2.5rem, 6vw, 5rem) var(--section-space);
}

.toc {
  display: none;
}

.prose {
  max-width: 36em;
  color: var(--prose);
  line-height: 1.7;
}

.prose > p:first-child {
  color: var(--text);
  font-size: var(--fs-lead);
  line-height: var(--lh-lead);
}

.prose h2 {
  margin-top: 3.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--text);
  font-size: var(--fs-heading);
  font-weight: var(--weight-heading);
  letter-spacing: -0.015em;
  line-height: 1.2;
}

.prose h2 + p,
.prose h2 + ul {
  margin-top: 1rem;
}

.prose p + p,
.prose p + ul,
.prose ul + p {
  margin-top: 1rem;
}

.prose ul {
  display: grid;
  gap: 0.5rem;
}

.prose li {
  position: relative;
  padding-left: 1.5rem;
}

.prose li::before {
  content: "";
  position: absolute;
  left: 0.125rem;
  top: 0.72em;
  width: 0.3125rem;
  height: 0.3125rem;
  background: var(--accent);
}

.prose strong {
  color: var(--text);
  font-weight: 600;
}

.prose a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
  transition: text-decoration-color var(--dur-fast) var(--ease);
}

.prose a:hover {
  text-decoration-color: var(--accent);
}

@media (min-width: 64rem) {
  .page-body {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--gap);
    align-items: start;
  }

  .toc {
    position: sticky;
    top: calc(var(--header-h) + 2rem);
    display: block;
    grid-column: 1 / span 3;
  }

  .prose {
    grid-column: 4 / -1;
  }

  .toc ol {
    display: grid;
    margin-top: 1rem;
    border-top: 1px solid var(--line);
  }

  .toc a {
    display: block;
    padding-block: 0.5625rem;
    border-bottom: 1px solid var(--line);
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.4;
    transition: color var(--dur-fast) var(--ease), padding-left var(--dur) var(--ease-out);
  }

  .toc a:hover {
    padding-left: 0.375rem;
    color: var(--text);
  }
}

/* ---------- Página 404 ---------- */

.not-found {
  display: grid;
  align-items: center;
  min-height: 72vh;
  padding-block: var(--section-space);
}

.not-found__code {
  color: rgb(255 255 255 / 0.1);
  font-family: var(--font-display);
  font-size: clamp(6rem, 3rem + 16vw, 15rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.85;
}

.not-found .page-title {
  margin-top: 2rem;
}

.not-found .section-lead {
  margin-bottom: 2.25rem;
}

/* ---------- Movimento ---------- */

/* Hierarquia (docs/MOTION_SYSTEM.md): arquitetura e tipografia ficam
   estáveis; o movimento acontece na luz, na geometria e na interação.
   Nenhuma regra abaixo oculta ou desloca texto. */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }

  /* Coreografia do hero: só as camadas decorativas, em até 2,4 s.
     Título, texto e botões estão disponíveis desde o primeiro quadro. */
  .light {
    animation: fade 0.9s var(--ease-cine) both;
  }

  .hero__art {
    animation: converge 1.7s var(--ease-out) 0.15s both;
  }

  .hero__horizon {
    animation: ignite 1s var(--ease-out) 0.8s both;
  }

  .hero__glow {
    animation: fade 1.1s var(--ease-cine) 0.9s both, breathe 9s ease-in-out 2.4s infinite alternate;
  }

  .hero__beam {
    animation: beam-rise 0.4s var(--ease-out) 1.3s both;
  }

  .hero__mark-stem {
    animation: grow-y 0.35s var(--ease-out) 1.5s both;
  }

  .hero__mark-arm {
    animation: grow-x 0.35s var(--ease-out) 1.75s both;
  }

  .hero__mark-bar {
    animation: bar-in 0.35s var(--ease-out) 2s both;
  }

  /* Luz por ato: main.js informa o ato em leitura em html[data-act].
     Só mudam transform e opacity de camadas já pintadas. */
  .light__ambient,
  .light__key,
  .light__ember {
    transition: transform var(--dur-light) var(--ease-cine), opacity var(--dur-light) var(--ease-cine);
  }

  /* Ato 01, propósito: a cena do hero é a fonte de luz. */
  html[data-act="1"] .light {
    --ay: 14vh;
    --ky: 62vh;
    --ko: 0;
  }

  /* Ato 02, identidade: luz principal suave e estável. */
  html[data-act="2"] .light {
    --ay: 36vh;
    --ky: 30vh;
    --ko: 1;
  }

  /* Ato 03, capacidade: a luz desloca-se para os diagramas. */
  html[data-act="3"] .light {
    --ay: 50vh;
    --ky: 48vh;
    --ko: 0.85;
    --ey: 106vh;
    --eo: 0.45;
  }

  /* Ato 04, conexão: as fontes convergem e a luz principal se concentra. */
  html[data-act="4"] .light {
    --ay: 54vh;
    --ky: 56vh;
    --ko: 1;
    --kf: 0.64;
    --ey: 84vh;
    --eo: 0.6;
  }

  /* Ato 05, epílogo: o Ember sobe sob o wordmark e a cena estabiliza. */
  html[data-act="5"] .light {
    --ay: 34vh;
    --ky: 86vh;
    --ko: 0;
    --ey: 102vh;
    --eo: 1;
  }

  @media (min-width: 48rem) {
    html[data-act="1"] .light {
      --ax: 64vw;
    }

    html[data-act="2"] .light {
      --ax: 36vw;
      --kx: 20vw;
    }

    html[data-act="3"] .light {
      --ax: 56vw;
      --kx: 66vw;
      --ex: 88vw;
    }

    html[data-act="4"] .light {
      --ax: 50vw;
      --kx: 48vw;
      --ex: 48vw;
    }

    html[data-act="5"] .light {
      --ax: 50vw;
      --kx: 50vw;
    }
  }

  /* Fio e luz de recorte de cada seção. A classe "js" só existe quando
     main.js está ativo; sem ela, a composição completa permanece visível. */
  html.js .section-head::before {
    transform: scaleX(0);
    transition: transform 1.2s var(--ease-out);
  }

  html.js .section-head.is-in::before {
    transform: none;
  }

  .section-head::after {
    transition: opacity var(--dur-light) var(--ease-cine), transform var(--dur-light) var(--ease-cine);
  }

  html.js .section:not(.is-current) .section-head::after {
    opacity: 0;
    transform: scaleX(0.4);
  }

  /* Iluminação contextual: o diagrama no centro da leitura acende. */
  .area::after,
  .area__visual::before,
  .area__visual svg {
    transition: opacity var(--dur-light) var(--ease-cine);
  }

  html.js .area:not(.is-lit)::after,
  html.js .area:not(.is-lit) .area__visual::before {
    opacity: 0;
  }

  html.js .area:not(.is-lit) .area__visual svg {
    opacity: 0.55;
  }

  /* Convergência no contato. */
  .contact-email::before {
    transition: opacity var(--dur-light) var(--ease-cine), transform 2.4s var(--ease-cine);
  }

  html.js .section:not(.is-current) .contact-email::before {
    opacity: 0;
    transform: scaleX(1.7);
  }

  /* Diagramas: a composição estática é completa; a animação apenas
     percorre a estrutura com luz, enquanto o diagrama está visível. */
  html.js .is-live .v-code {
    animation: v-lit 8s var(--ease-in-out) infinite backwards;
  }

  html.js .is-live .v-code--2 {
    animation-delay: 0.5s;
  }

  html.js .is-live .v-code--3 {
    animation-delay: 1s;
  }

  html.js .is-live .v-code--4 {
    animation-delay: 1.5s;
  }

  html.js .is-live .v-code--5 {
    animation-delay: 2s;
  }

  html.js .is-live .v-code--6 {
    animation-delay: 2.5s;
  }

  html.js .is-live .v-progress {
    animation: v-progress 8s var(--ease-in-out) infinite;
  }

  html.js .is-live .v-layer path {
    animation: v-edge 9s var(--ease-in-out) infinite backwards;
  }

  html.js .is-live .v-layer--2 path {
    animation-delay: 1.4s;
  }

  html.js .is-live .v-layer--1 path {
    animation-delay: 2.8s;
  }

  html.js .is-live .v-pulse {
    animation: v-pulse 4.5s linear infinite;
  }

  html.js .is-live .v-pulse--2 {
    animation-delay: 1.5s;
  }

  html.js .is-live .v-pulse--3 {
    animation-delay: 3s;
  }

  html.js .is-live .v-ping {
    animation: v-ping 4.5s var(--ease-out) 3.9s infinite;
  }

  html.js .is-live .v-ping--core {
    animation-duration: 6s;
    animation-delay: 0s;
  }

  html.js .is-live .v-spin {
    animation: v-spin 90s linear infinite;
  }

  html.js .is-live .v-traveler {
    animation: v-orbit 20s linear infinite;
  }

  html.js .is-live .v-traveler--2 {
    animation-duration: 32s;
  }

  /* Controle "Pausar animações": congela o movimento decorativo contínuo. */
  html[data-motion="paused"] .hero__glow,
  html[data-motion="paused"] .area__visual * {
    animation-play-state: paused !important;
  }

  @keyframes fade {
    from {
      opacity: 0;
    }
  }

  @keyframes converge {
    from {
      opacity: 0;
      scale: 1.12;
    }
  }

  @keyframes beam-rise {
    from {
      transform: scaleY(0);
    }
  }

  @keyframes grow-y {
    from {
      transform: scaleY(0);
    }
  }

  @keyframes grow-x {
    from {
      transform: scaleX(0);
    }
  }

  @keyframes bar-in {
    from {
      opacity: 0;
      transform: translateX(7px);
    }
  }

  @keyframes ignite {
    from {
      opacity: 0;
      scale: 0.04 1;
    }
  }

  @keyframes breathe {
    to {
      opacity: 0.74;
    }
  }

  /* Luz que percorre uma estrutura: repousa atenuada e acende por um trecho. */
  @keyframes v-lit {
    0%,
    34%,
    100% {
      opacity: 0.42;
    }

    8%,
    20% {
      opacity: 1;
    }
  }

  @keyframes v-edge {
    0%,
    40%,
    100% {
      stroke-opacity: 0.5;
    }

    12%,
    24% {
      stroke-opacity: 1;
    }
  }

  @keyframes v-progress {
    from {
      transform: scaleX(0);
    }

    34%,
    to {
      transform: none;
    }
  }

  @keyframes v-pulse {
    from {
      stroke-dashoffset: 8;
    }

    62%,
    to {
      stroke-dashoffset: -100;
    }
  }

  @keyframes v-ping {
    0% {
      opacity: 0.8;
      transform: scale(1);
    }

    30%,
    100% {
      opacity: 0;
      transform: scale(3);
    }
  }

  @keyframes v-spin {
    to {
      transform: rotate(360deg);
    }
  }

  @keyframes v-orbit {
    from {
      stroke-dashoffset: 0;
    }

    to {
      stroke-dashoffset: -100;
    }
  }

  /* Efeitos ligados à rolagem, onde há suporte nativo; o visitante
     controla o ritmo. */
  @supports (animation-timeline: view()) {
    .hero__depth {
      animation: depth linear both;
      animation-timeline: scroll(root);
      animation-range: 0 100vh;
    }

    /* Epílogo: o wordmark ergue-se enquanto entra na janela. */
    .footer-wordmark {
      animation: wordmark-rise linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 70%;
    }

    @keyframes depth {
      to {
        translate: 0 4.5rem;
      }
    }

    @keyframes wordmark-rise {
      from {
        opacity: 0.2;
        translate: 0 24%;
      }
    }
  }

  /* Sem suporte a animações ligadas à rolagem: mesma revelação, uma única
     vez, quando o wordmark entra na janela. */
  @supports not (animation-timeline: view()) {
    html.js .footer-wordmark {
      opacity: 0.2;
      translate: 0 24%;
      transition: opacity 1.6s var(--ease-cine), translate 1.6s var(--ease-cine);
    }

    html.js .footer-wordmark.is-in {
      opacity: 1;
      translate: none;
    }
  }
}

/* ---------- Acessibilidade e impressão ---------- */

@media (forced-colors: active) {
  .not-found__code {
    color: CanvasText;
  }

  .eyebrow::before,
  .prose li::before,
  .definition__term::after {
    background: CanvasText;
  }

  .footer-wordmark,
  .hero__stage,
  .light {
    display: none;
  }
}

@media print {
  :root {
    color-scheme: light;
  }

  body {
    background: #fff;
    color: #000;
  }

  .light,
  .skip-link,
  .site-header nav,
  .hero__stage,
  .hero__foot,
  .area__visual,
  .toc,
  .copy-button,
  .motion-toggle,
  .footer-bottom__link,
  .footer-wordmark {
    display: none;
  }

  .site-header {
    position: static;
    background: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .hero {
    min-height: 0;
  }

  .hero__content {
    padding-bottom: 2rem;
  }

  .hero__lead,
  .section-lead,
  .principle p,
  .area p,
  .definition__text,
  .prose,
  .prose > p:first-child,
  .prose h2,
  .prose strong,
  .page-meta,
  .footer-bottom,
  .footer-brand p,
  .footer-list a,
  .footer-address,
  .meta,
  .eyebrow {
    color: #000;
  }
}
