/* ============================================================
   RACKA — racka.com.br
   Sistema visual: ver DESIGN.md
   ============================================================ */

/* ---------- Fontes (self-hosted, subset latin) ---------- */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("../assets/fonts/archivo-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Fragment Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/fragment-mono-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Pacifico";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/pacifico-latin.woff2") format("woff2");
}

/* ---------- Tokens ---------- */
:root {
  --ink-950: oklch(0.155 0.004 80);   /* ≈ #0a0a0a */
  --ink-900: oklch(0.225 0.006 80);
  --ink: oklch(0.20 0.008 80);        /* texto sobre claro */
  --ink-soft: oklch(0.42 0.01 80);
  --paper: oklch(0.955 0.008 90);     /* ≈ #f2efea */
  --paper-2: oklch(0.93 0.011 88);
  --mist: oklch(0.80 0.012 85);       /* texto secundário no escuro */
  --mist-dim: oklch(0.62 0.01 85);
  --orange: oklch(0.665 0.235 34);    /* ≈ #ff4700 */
  --orange-hot: oklch(0.60 0.23 33);
  --orange-ink: oklch(0.53 0.20 36);  /* AA sobre paper em texto pequeno */
  --lilac: oklch(0.76 0.095 295);
  --white: oklch(0.985 0.002 90);

  --font-sans: "Archivo", system-ui, -apple-system, sans-serif;
  --font-mono: "Fragment Mono", ui-monospace, monospace;
  --font-script: "Pacifico", cursive;

  --container: 1200px;
  --gutter: clamp(20px, 5vw, 56px);
  --section-y: clamp(88px, 11vw, 152px);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* z-scale semântica */
  --z-decor: 1;
  --z-content: 2;
  --z-header: 10;
  --z-menu: 20;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--ink-950);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
ul[class], ol[class] { list-style: none; padding: 0; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.05; text-wrap: balance; }
p { text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute; z-index: var(--z-menu);
  left: var(--gutter); top: -100px;
  padding: 10px 18px;
  background: var(--orange); color: var(--white);
  font-family: var(--font-mono); font-size: 0.8125rem; text-transform: uppercase;
  letter-spacing: 0.08em; text-decoration: none;
  transition: top 0.2s var(--ease-out);
}
.skip-link:focus-visible { top: 12px; }

/* ---------- Tipos compartilhados ---------- */
.kicker {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange-ink);
  margin-bottom: clamp(16px, 2.5vw, 28px);
}
.kicker--dark { color: var(--orange); }

.section-title {
  font-size: clamp(1.85rem, 3.3vw, 2.8rem);
  font-weight: 860;
  font-stretch: 92%;
  text-transform: uppercase;
  letter-spacing: -0.015em;
  max-width: 14ch;
}

.section-lead {
  max-width: 44ch;
  color: var(--ink-soft);
  margin-top: clamp(18px, 2.5vw, 26px);
}

.stroke {
  display: block;
  width: 64px; height: 5px;
  background: var(--lilac);
  border-radius: 3px;
  margin-top: clamp(18px, 2.5vw, 26px);
}

.section { padding-block: var(--section-y); }
.section--paper { background: var(--paper); color: var(--ink); }
.section--paper2 { background: var(--paper-2); color: var(--ink); }

/* ---------- Botões e links ---------- */
.btn {
  display: inline-flex; align-items: stretch;
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1;
}
.btn__label {
  display: inline-flex; align-items: center;
  background: var(--white); color: var(--ink-950);
  padding: 0 20px; height: 46px;
}
.btn__square {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px;
  background: var(--orange); color: var(--white);
}
.btn__square svg { transition: translate 0.35s var(--ease-out); }
.btn:hover .btn__square svg,
.btn:focus-visible .btn__square svg { translate: 4px 0; }
.btn:hover .btn__square { background: var(--orange-hot); }
.btn--big .btn__label { height: 58px; padding-inline: 28px; font-size: 0.875rem; }
.btn--big .btn__square { width: 58px; height: 58px; }

.arrow-link {
  display: inline-flex; align-items: center; gap: 12px;
  margin-top: clamp(28px, 4vw, 44px);
  padding-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--white);
  border-bottom: 1px solid oklch(1 0 0 / 0.3);
  transition: color 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
}
.arrow-link svg { transition: translate 0.35s var(--ease-out); }
.arrow-link:hover, .arrow-link:focus-visible { color: var(--orange); border-color: var(--orange); }
.arrow-link:hover svg, .arrow-link:focus-visible svg { translate: 5px 0; }
.arrow-link--ink { color: var(--ink); border-color: oklch(0.2 0.008 80 / 0.35); }
.arrow-link--ink:hover, .arrow-link--ink:focus-visible { color: var(--orange-ink); border-color: var(--orange-ink); }

/* ---------- Header ---------- */
.site-header {
  position: absolute; inset: 0 0 auto 0;
  z-index: var(--z-header);
  padding-top: clamp(18px, 3vw, 30px);
}
.header-row { display: flex; align-items: center; gap: clamp(20px, 4vw, 56px); }
.brand { flex-shrink: 0; }
.brand img { width: clamp(88px, 9vw, 112px); height: auto; }

.site-nav { margin-inline: auto; }
.site-nav ul { list-style: none; padding: 0; display: flex; gap: clamp(20px, 3.5vw, 48px); }
.site-nav a {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: oklch(1 0 0 / 0.72);
  padding-block: 8px;
  transition: color 0.25s var(--ease-out);
}
.site-nav a:hover, .site-nav a:focus-visible { color: var(--white); }
.site-nav a[aria-current] {
  color: var(--white);
  border-bottom: 2px solid var(--orange);
}
.nav-cta--mobile { display: none; }

.nav-toggle {
  display: none;
  flex-direction: column; gap: 7px;
  justify-content: center; align-items: center;
  width: 46px; height: 46px;
  background: none; border: 1px solid oklch(1 0 0 / 0.3);
  cursor: pointer;
}
.nav-toggle__bar {
  width: 20px; height: 2px; background: var(--white);
  transition: rotate 0.3s var(--ease-out), translate 0.3s var(--ease-out);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:first-of-type { rotate: 45deg; translate: 0 4.5px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:last-of-type { rotate: -45deg; translate: 0 -4.5px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--ink-950);
  color: var(--white);
  overflow: hidden;
  padding-top: clamp(120px, 16vh, 170px);
  padding-bottom: clamp(72px, 9vw, 120px);
}
.hud-corner {
  position: absolute; width: 22px; height: 22px;
  border: 1px solid oklch(1 0 0 / 0.28);
  z-index: var(--z-decor);
}
.hud-corner--tl { top: 96px; left: 28px; border-width: 1px 0 0 1px; }
.hud-corner--tr { top: 96px; right: 28px; border-width: 1px 1px 0 0; }
.hud-corner--bl { bottom: 28px; left: 28px; border-width: 0 0 1px 1px; }
.hud-corner--br { bottom: 28px; right: 28px; border-width: 0 1px 1px 0; }

.hero-grid {
  position: relative; z-index: var(--z-content);
  display: grid;
  grid-template-columns: auto minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
}

.hero-rail {
  align-self: stretch;
  display: flex; flex-direction: column; align-items: flex-start;
  gap: 40px;
  padding-top: 8px;
  color: var(--mist-dim);
}
.hero-rail__index {
  font-family: var(--font-mono); font-size: 0.8125rem;
  color: var(--mist);
  display: flex; flex-direction: column; gap: 8px;
}
.hero-rail__index i { display: block; width: 34px; height: 2px; background: var(--orange); }
.hero-rail__label {
  font-family: var(--font-mono); font-size: 0.625rem;
  letter-spacing: 0.18em; text-transform: uppercase;
  line-height: 2;
  margin-top: auto;
}

.hero-title {
  font-size: clamp(2.5rem, 5.4vw, 4.25rem);
  font-weight: 900;
  font-stretch: 90%;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 0.98;
}
.hero-title__line { display: block; }
.hero-title__line--accent { color: var(--orange); }
.hero-lead {
  margin-top: clamp(22px, 3vw, 32px);
  max-width: 34ch;
  color: var(--mist);
}

/* palco do carneiro */
.hero-stage {
  position: relative;
  justify-self: center;
  width: min(100%, 460px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}
.hero-rings {
  position: absolute; inset: 50% auto auto 50%;
  translate: -50% -50%;
  width: 148%; aspect-ratio: 1;
  color: oklch(1 0 0 / 0.35);
  z-index: var(--z-decor);
  pointer-events: none;
}
.hero-rings svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-rings__solid { animation: spin 90s linear infinite; }
.hero-rings__dotted { animation: spin 60s linear infinite reverse; color: oklch(1 0 0 / 0.5); }
.hero-rings__spark {
  position: absolute; width: 10px; height: 10px; border-radius: 50%;
  background: var(--white);
  box-shadow: 0 0 18px 4px oklch(1 0 0 / 0.55);
}
.hero-rings__spark--a { top: 11%; right: 20%; }
.hero-rings__spark--b { bottom: 16%; left: 17%; width: 7px; height: 7px; }
@keyframes spin { to { rotate: 360deg; } }

.hero-ram {
  position: relative;
  z-index: calc(var(--z-content) + 1);
  width: 76%;
  height: auto;
  filter: drop-shadow(0 0 56px oklch(1 0 0 / 0.14));
}

/* esconde os pontos dos anéis que cruzam o rosto do carneiro
   (mesma cor do fundo, invisível por si só) */
.hero-ram-mask {
  position: absolute;
  left: 50%; top: 50%;
  translate: -50% -50%;
  width: 84%; height: 54%;
  border-radius: 50%;
  background: var(--ink-950);
  z-index: var(--z-content);
}

/* retângulo laranja: abaixo do logo, vazando pela borda direita da página
   (o overflow do .hero corta na largura da viewport) */
.hero-block {
  position: absolute;
  left: auto; right: -50vw; top: 88%;
  width: 78vw; height: clamp(60px, 16%, 92px);
  background: var(--orange);
  z-index: var(--z-content);
}

.dot-grid { width: 76px; color: oklch(1 0 0 / 0.4); }
.dot-grid--hero { position: absolute; top: -8%; right: -6%; z-index: var(--z-decor); }

/* ---------- Sobre ---------- */
.sobre-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr) minmax(0, 1fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}

.stats {
  display: flex; flex-direction: column;
}
.stat {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: baseline;
  padding-block: clamp(20px, 2.6vw, 30px);
  border-top: 1px solid oklch(0.2 0.008 80 / 0.16);
}
.stat:last-child { border-bottom: 1px solid oklch(0.2 0.008 80 / 0.16); }
.stat dd {
  order: -1;
  font-size: clamp(2.5rem, 3.6vw, 3.25rem);
  font-weight: 840;
  letter-spacing: -0.02em;
  line-height: 1;
  min-width: 2.4ch;
}
.stat dt {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  line-height: 1.7;
  max-width: 18ch;
}

/* composição de etiquetas (Nanotect) */
.tags-stage {
  position: relative;
  height: clamp(320px, 34vw, 420px);
}
.tag-card {
  position: absolute;
  width: clamp(120px, 12.5vw, 156px);
  height: clamp(240px, 25vw, 310px);
  border-radius: 18px;
  box-shadow: 0 24px 48px -18px oklch(0.2 0.008 80 / 0.35);
}
.tag-card--dark {
  background: oklch(0.32 0.006 80);
  left: 4%; top: 12%;
  rotate: -9deg;
  padding: 18px 14px;
  display: flex; flex-direction: column;
}
.tag-card__mono {
  font-family: var(--font-mono); font-size: 0.5625rem;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: oklch(1 0 0 / 0.65);
}
.tag-card__mono--foot { margin-top: auto; }
.tag-card__slot {
  margin: 26px auto 0;
  width: 10px; height: 46%;
  border-radius: 6px;
  background: oklch(0.24 0.005 80);
  border: 1px solid oklch(1 0 0 / 0.12);
}
.tag-card--orange {
  background: var(--orange);
  left: 33%; top: 2%;
  rotate: 3deg;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.tag-card__vert {
  writing-mode: vertical-rl;
  rotate: 180deg;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--white);
  max-height: 88%;
  text-align: center;
}
.tag-card--light {
  background: var(--white);
  left: 62%; top: 14%;
  rotate: 11deg;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid oklch(0.2 0.008 80 / 0.1);
}
.tag-card__brand {
  writing-mode: vertical-rl;
  rotate: 180deg;
  font-weight: 760;
  font-size: clamp(1.375rem, 2vw, 1.75rem);
  letter-spacing: -0.01em;
}
.tag-card__bracket {
  position: absolute; width: 26px; height: 26px;
  border: 3px solid var(--ink);
}
.tag-card__bracket--t { top: 14px; right: 14px; border-width: 3px 3px 0 0; }
.tag-card__bracket--b { bottom: 14px; left: 14px; border-width: 0 0 3px 3px; }

/* ---------- Viela ---------- */
.viela-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(48px, 7vw, 104px);
  align-items: center;
}
.viela-title {
  font-size: clamp(3.25rem, 8.5vw, 6rem);
  font-weight: 900;
  font-stretch: 90%;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}
.viela-title a {
  color: var(--orange);
  text-decoration: none;
  transition: color 0.3s var(--ease-out);
}
.viela-title a:hover, .viela-title a:focus-visible { color: var(--orange-hot); }

.viela-features {
  margin-top: clamp(30px, 4vw, 44px);
  display: flex; flex-direction: column;
  gap: clamp(20px, 2.6vw, 28px);
}
.viela-features li { display: flex; gap: 18px; align-items: flex-start; }
.viela-features__icon {
  flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px;
  border: 1px solid oklch(0.2 0.008 80 / 0.25);
  border-radius: 50%;
  color: var(--orange-ink);
}
.viela-features h3 {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.viela-features p { color: var(--ink-soft); font-size: 0.9375rem; margin-top: 4px; max-width: 40ch; }

/* palco do phone */
.viela-stage {
  position: relative;
  justify-self: center;
  padding: clamp(36px, 5vw, 60px);
}
.phone {
  position: relative; z-index: var(--z-content);
  display: block;
  width: clamp(230px, 24vw, 292px);
  aspect-ratio: 9 / 18.6;
  padding: 12px;
  border-radius: 44px;
  background: oklch(0.19 0.005 80);
  box-shadow:
    0 40px 80px -30px oklch(0.2 0.01 60 / 0.55),
    inset 0 0 0 2px oklch(0.32 0.005 80);
  rotate: 6deg;
  transition: rotate 0.5s var(--ease-out), translate 0.5s var(--ease-out);
}
.phone:hover, .phone:focus-visible { rotate: 3.5deg; translate: 0 -6px; }
.phone__screen {
  position: relative;
  display: block; width: 100%; height: 100%;
  border-radius: 33px;
  overflow: hidden;
  background: #FFC98F;
}
.phone__screen::before {
  content: "";
  position: absolute; top: 10px; left: 50%; translate: -50% 0;
  width: 38%; height: 22px; border-radius: 12px;
  background: oklch(0.19 0.005 80);
  z-index: 3;
}
.phone__scene { position: absolute; inset: 0; width: 100%; height: 100%; }
.phone__status {
  position: absolute; top: 14px; left: 22px; z-index: 3;
  font-family: var(--font-mono); font-size: 0.625rem;
  color: oklch(0.35 0.05 50);
}
.phone__brand {
  position: absolute; top: 15%; width: 100%; text-align: center; z-index: 2;
  font-family: var(--font-script);
  font-size: clamp(2.25rem, 3.4vw, 2.75rem);
  color: oklch(0.55 0.21 38);
  text-shadow: 0 2px 0 oklch(1 0 0 / 0.35);
}
.phone__tag {
  position: absolute; top: 31%; width: 100%; text-align: center; z-index: 2;
  font-size: 0.8125rem; line-height: 1.5;
  color: oklch(0.34 0.06 45);
  font-weight: 500;
}
.phone__pill {
  position: absolute; bottom: 26px; left: 50%; translate: -50% 0; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px;
  white-space: nowrap;
  padding: 9px 16px;
  border-radius: 999px;
  background: oklch(0.97 0.01 85 / 0.92);
  color: oklch(0.35 0.06 45);
  font-family: var(--font-mono); font-size: 0.625rem;
  letter-spacing: 0.1em; text-transform: uppercase;
}

.squiggle { position: absolute; width: clamp(140px, 16vw, 210px); color: var(--orange); z-index: var(--z-decor); }
.squiggle--a { top: 2%; left: -8%; }
.squiggle--b { bottom: 6%; right: -10%; }
.blob {
  position: absolute; z-index: var(--z-decor);
  background: var(--lilac);
  width: clamp(56px, 6vw, 84px); height: clamp(38px, 4vw, 56px);
  border-radius: 58% 42% 55% 45% / 60% 48% 52% 40%;
}
.blob--a { top: 18%; right: -4%; }
.blob--b { bottom: 14%; left: -6%; rotate: 40deg; }
.sun-doodle {
  position: absolute; bottom: 2%; left: 22%;
  width: 44px; color: var(--orange); z-index: var(--z-decor);
}

/* ---------- Tecnologia ---------- */
.tech-head { max-width: 640px; }
.tech-pillars {
  margin-top: clamp(48px, 6vw, 80px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  border-top: 1px solid oklch(0.2 0.008 80 / 0.16);
}
.tech-pillars li {
  display: flex; flex-direction: column; align-items: center; gap: 20px;
  text-align: center;
  padding: clamp(28px, 3.4vw, 44px) 18px;
  border-inline-start: 1px solid oklch(0.2 0.008 80 / 0.16);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.7;
}
.tech-pillars li:first-child { border-inline-start: 0; }
.tech-pillars__icon { color: var(--ink); }

/* ---------- CTA ---------- */
.cta {
  position: relative;
  background: var(--ink-950);
  color: var(--white);
  padding-block: var(--section-y);
  overflow: hidden;
}
.dot-grid--cta { position: absolute; top: 48px; right: 8%; }
.cta-row {
  position: relative; z-index: var(--z-content);
  display: flex; flex-wrap: wrap;
  align-items: center; justify-content: space-between;
  gap: clamp(28px, 5vw, 56px);
}
.cta-title {
  font-size: clamp(2.25rem, 5.4vw, 4rem);
  font-weight: 900;
  font-stretch: 90%;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  max-width: 14ch;
}
.cta-title span { display: block; color: var(--orange); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink-950);
  color: var(--mist);
  border-top: 1px solid oklch(1 0 0 / 0.1);
  padding-top: clamp(56px, 7vw, 88px);
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) repeat(2, minmax(0, 0.8fr)) auto;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}
.footer-brand img { width: 122px; }
.footer-brand p { margin-top: 20px; max-width: 24ch; font-size: 0.9375rem; color: var(--mist-dim); }

.footer-col h3 {
  font-family: var(--font-mono);
  font-size: 0.6875rem; font-weight: 400;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--mist-dim);
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col li { font-size: 0.9375rem; }
.footer-col a { text-decoration: none; transition: color 0.25s var(--ease-out); }
.footer-col a:hover, .footer-col a:focus-visible { color: var(--orange); }

.footer-seal { text-align: center; }
.footer-seal__ring {
  display: inline-flex; align-items: center; justify-content: center;
  width: 96px; height: 96px;
  border: 1px solid oklch(1 0 0 / 0.25);
  border-radius: 50%;
}
.footer-seal__est {
  display: block; margin-top: 12px;
  font-family: var(--font-mono); font-size: 0.625rem;
  letter-spacing: 0.18em; text-transform: uppercase;
  line-height: 1.9;
  color: var(--mist-dim);
}

.footer-legal {
  margin-top: clamp(48px, 6vw, 72px);
  padding-block: 26px;
  border-top: 1px solid oklch(1 0 0 / 0.1);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--mist-dim);
}

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  /* .will-reveal é aplicada via JS apenas a elementos abaixo da dobra;
     sem JS (ou sem IntersectionObserver) nada fica oculto. */
  .will-reveal {
    opacity: 0;
    translate: 0 28px;
    transition: opacity 0.7s var(--ease-out), translate 0.7s var(--ease-out);
  }
  .will-reveal.in { opacity: 1; translate: 0 0; }

  [data-stagger].will-reveal > * {
    opacity: 0;
    translate: 0 20px;
    transition: opacity 0.6s var(--ease-out), translate 0.6s var(--ease-out);
    transition-delay: calc(var(--i, 0) * 90ms);
  }
  [data-stagger].will-reveal.in > * { opacity: 1; translate: 0 0; }

  /* entrada do hero no load (não depende de scroll) */
  .js .hero-title__line,
  .js .hero-copy .stroke,
  .js .hero-lead,
  .js .hero-copy .arrow-link {
    animation: rise 0.9s var(--ease-out) both;
  }
  .js .hero-title__line:nth-child(2) { animation-delay: 90ms; }
  .js .hero-title__line:nth-child(3) { animation-delay: 180ms; }
  .js .hero-copy .stroke { animation-delay: 260ms; }
  .js .hero-lead { animation-delay: 330ms; }
  .js .hero-copy .arrow-link { animation-delay: 420ms; }
  .js .hero-stage { animation: fadeIn 1.1s var(--ease-out) 200ms both; }

  @keyframes rise {
    from { opacity: 0; translate: 0 34px; }
    to { opacity: 1; translate: 0 0; }
  }
  @keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }
}

@media print {
  .will-reveal, [data-stagger].will-reveal > * { opacity: 1 !important; translate: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-rings__solid, .hero-rings__dotted { animation: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ---------- Responsivo ---------- */
@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
  .hero-rail { display: none; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .hero { padding-top: 132px; }
  .hero-grid { grid-template-columns: 1fr; gap: 72px; }
  .hero-stage { width: min(78%, 400px); }
  .hero-block { left: -6%; }
  .dot-grid--hero { right: -4%; top: -10%; }

  .sobre-grid { grid-template-columns: 1fr; gap: 56px; }
  .stats { max-width: 460px; }
  .tags-stage { max-width: 520px; width: 100%; }

  .viela-grid { grid-template-columns: 1fr; gap: 64px; }
  .viela-stage { justify-self: start; margin-inline: auto; }

  /* nav mobile */
  .site-nav {
    position: fixed; inset: 0;
    z-index: var(--z-menu);
    background: var(--ink-950);
    display: none;
    flex-direction: column;
    justify-content: center; align-items: center;
    gap: 48px;
    padding: 40px;
  }
  .site-nav.open { display: flex; }
  .site-nav ul { flex-direction: column; align-items: center; gap: 28px; }
  .site-nav a { font-size: 1.0625rem; }
  .nav-cta { display: none; }
  .nav-cta--mobile { display: inline-flex; }
  .nav-toggle { display: flex; position: relative; z-index: calc(var(--z-menu) + 1); margin-left: auto; }
  .header-row { justify-content: space-between; }
  .site-nav ul, .site-nav .btn { margin: 0; }

  body.menu-open { overflow: hidden; }
}

@media (max-width: 560px) {
  .hud--corners { display: none; }
  .hero-stage { width: min(88%, 340px); }
  .hero-rings { width: 128%; }
  .stat dd { min-width: 2ch; }
  .tags-stage { height: 300px; }
  .tag-card { width: 108px; height: 216px; }
  .tech-pillars { grid-template-columns: 1fr 1fr; border-top: 0; }
  .tech-pillars li { border-inline-start: 0; border-top: 1px solid oklch(0.2 0.008 80 / 0.16); }
  .cta-row { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-seal { text-align: left; }
}
