/* ═══════════════════════════════════════════════════════════════════════════
   RecrutaDireto · NEO — Motores de IA
   Minimalista e fluido: preto absoluto, linhas finas, um único acento cyan.
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  --cy: #00f0ff;
  --cy-deep: #0080ff;
  --mint: #00ffcc;
  --void: #020405;
  --hair: rgba(255, 255, 255, 0.09);
  /* Tipografia: uma família (Geist) com contraste por peso; Geist Mono para rótulos técnicos */
  --f-display: "Geist", ui-sans-serif, system-ui, sans-serif;
  --f-mono: "Geist Mono", ui-monospace, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.7, 0, 0.2, 1);
}

/* Transição fluida entre as páginas NEO (navegadores compatíveis) */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.5s; animation-timing-function: var(--ease); }

html { background: var(--void); scroll-padding-top: 4.5rem; }
body { overflow-x: clip; }
[hidden] { display: none !important; }
::selection { background: var(--cy); color: #001014; }
:focus-visible { outline: 2px solid var(--cy); outline-offset: 4px; border-radius: 6px; }

.skip-link {
  position: fixed; left: 1rem; top: -4rem; z-index: 100; padding: 0.7rem 1.1rem; border-radius: 999px;
  background: var(--cy); color: #001014; font-weight: 600; transition: top 0.2s;
}
.skip-link:focus { top: 1rem; }

#progress {
  position: fixed; inset: 0 0 auto 0; z-index: 80; height: 1px; transform-origin: 0 50%; transform: scaleX(0);
  background: var(--cy); box-shadow: 0 0 10px var(--cy);
}

#cursor {
  position: fixed; left: 0; top: 0; z-index: 90; pointer-events: none; opacity: 0;
  width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%;
  border: 1px solid rgba(0, 240, 255, 0.55);
  transition: width 0.45s var(--ease), height 0.45s var(--ease), margin 0.45s var(--ease), background 0.45s, border-color 0.45s, opacity 0.3s;
}
#cursor.is-hover { width: 68px; height: 68px; margin: -34px 0 0 -34px; background: rgba(0, 240, 255, 0.07); border-color: var(--cy); }

/* ── Barra superior ──────────────────────────────────────────────────────── */
#bar { transition: background 0.5s, backdrop-filter 0.5s, box-shadow 0.5s; }
#bar.is-scrolled {
  background: rgba(2, 4, 5, 0.7); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 1px 0 var(--hair);
}
.logo-cyan {
  filter: brightness(0) invert(1) sepia(100%) saturate(10000%) hue-rotate(130deg) brightness(1.1) drop-shadow(0 0 6px rgba(0, 240, 255, 0.4));
}
#bar-chapter:not(:empty)::before { content: " / "; color: #52525b; }

.icon-btn {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 999px; color: #e4e4e7;
  box-shadow: inset 0 0 0 1px var(--hair); transition: color 0.3s, box-shadow 0.3s;
}
.icon-btn:hover { color: var(--cy); box-shadow: inset 0 0 0 1px rgba(0, 240, 255, 0.5); }
.icon-btn .i-play { display: none; }
.icon-btn[aria-pressed="true"] .i-pause { display: none; }
.icon-btn[aria-pressed="true"] .i-play { display: block; }

.pill-btn, .ghost-btn {
  display: inline-flex; align-items: center; gap: 0.6rem; height: 40px; padding: 0 1.1rem; border-radius: 999px;
  font-size: 0.85rem; font-weight: 600; white-space: nowrap;
  transition: background 0.35s, color 0.35s, box-shadow 0.35s, transform 0.35s var(--ease);
}
.pill-btn { color: #001014; background: var(--cy); box-shadow: 0 0 0 0 rgba(0, 240, 255, 0); }
.pill-btn:hover { box-shadow: 0 10px 40px -8px rgba(0, 240, 255, 0.8); }
.ghost-btn { color: #f4f4f5; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18); }
.ghost-btn:hover { color: var(--cy); box-shadow: inset 0 0 0 1px var(--cy); }
.pill-btn--lg { height: 56px; padding: 0 1.75rem; font-size: 1rem; }

/* ── Tipografia ──────────────────────────────────────────────────────────── */
.kicker {
  display: inline-flex; align-items: center; gap: 0.75rem;
  font-family: var(--f-mono); font-size: 0.7rem; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: #a1a1aa;
}
.kicker::before { content: ""; width: 1.75rem; height: 1px; background: var(--cy); box-shadow: 0 0 8px var(--cy); }
/* Destaque: mesmo Geist, peso ultraleve + gradiente cyan (contraste por peso, não por estilo) */
.hl {
  font-style: normal; font-weight: 200; letter-spacing: -0.045em;
  background: linear-gradient(100deg, #b8fcff 0%, var(--cy) 32%, #00b3ff 68%, var(--cy-deep) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
/* Em títulos divididos por palavra, o gradiente vai em cada palavra (o pai não recorta filhos transformados) */
.hl:has(.sw) { background: none; color: inherit; }
.hl .sw > span {
  background: linear-gradient(100deg, #b8fcff 0%, var(--cy) 32%, #00b3ff 68%, var(--cy-deep) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.display {
  font-family: var(--f-display); font-weight: 600;
  font-size: clamp(3.4rem, 11.4vw, 12rem); line-height: 0.88; letter-spacing: -0.06em;
}
.display .hl { letter-spacing: -0.055em; }
.display .line { display: block; overflow: hidden; padding: 0 0.04em 0.14em 0; margin-bottom: -0.1em; }
.display .line > span { display: inline-block; transition: transform 1.3s var(--ease); }
.js .display .line > span { transform: translateY(108%); }
.js body.is-loaded .display .line > span { transform: none; }
.display .line:nth-child(2) > span { transition-delay: 0.09s; }
.display .line:nth-child(3) > span { transition-delay: 0.18s; }

.display-2 { font-family: var(--f-display); font-weight: 600; font-size: clamp(3rem, 9vw, 9rem); line-height: 0.92; letter-spacing: -0.055em; }
.h2 { font-family: var(--f-display); font-weight: 600; font-size: clamp(2rem, 4.4vw, 4rem); line-height: 1.02; letter-spacing: -0.045em; max-width: 18ch; }

/* Máscara por palavra (data-split) */
.sw { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.12em; margin-bottom: -0.12em; }
.sw > span { display: inline-block; transition: transform 1.1s var(--ease); transition-delay: calc(var(--i, 0) * 45ms); }
.js [data-split]:not(.is-in) .sw > span { transform: translateY(110%); }

/* Revelação genérica */
.js .rv { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1.2s var(--ease); transition-delay: var(--d, 0ms); }
.js .rv.is-in { opacity: 1; transform: none; }

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero-vignette {
  background:
    linear-gradient(90deg, rgba(2, 4, 5, 0.92) 0%, rgba(2, 4, 5, 0.55) 40%, rgba(2, 4, 5, 0) 75%),
    linear-gradient(0deg, var(--void) 0%, rgba(2, 4, 5, 0) 45%),
    linear-gradient(180deg, rgba(2, 4, 5, 0.8) 0%, rgba(2, 4, 5, 0) 25%);
}
.hero-foot { transition: opacity 1s var(--ease) 0.5s; }
.js .hero-foot { opacity: 0; }
.js body.is-loaded .hero-foot { opacity: 1; }

.verbs { display: flex; flex-wrap: wrap; gap: 0.4rem 1.6rem; }
.verbs a {
  position: relative; display: inline-flex; align-items: baseline; gap: 0.45rem; padding: 0.3rem 0;
  font-family: var(--f-mono); font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; color: #d4d4d8;
  transition: color 0.3s;
}
.verbs a span { font-size: 0.62rem; color: var(--cy); }
.verbs a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--cy); transform: scaleX(0); transform-origin: right; transition: transform 0.6s var(--ease); }
.verbs a:hover { color: #fff; }
.verbs a:hover::after { transform: scaleX(1); transform-origin: left; }

/* ── Manifesto ───────────────────────────────────────────────────────────── */
.statement {
  font-family: var(--f-display); font-weight: 300; color: #fafafa;
  font-size: clamp(1.7rem, 3.5vw, 3.25rem); line-height: 1.18; letter-spacing: -0.04em;
}
.statement em { font-style: normal; font-weight: 600; color: var(--cy); text-shadow: 0 0 28px rgba(0, 240, 255, 0.35); }
.statement .w { opacity: 0.14; transition: opacity 0.5s var(--ease); }
.statement .w.on { opacity: 1; }

/* ── Panteão ─────────────────────────────────────────────────────────────── */
.pan { position: relative; border-top: 1px solid var(--hair); padding: 7rem 0 6rem; }
.pan-viewport {
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain;
  /* o snap respeita o mesmo recuo da faixa (senão o 1º card cola na borda) */
  scroll-padding-inline: max(1.25rem, calc((100vw - 76rem) / 2));
}
.pan-viewport::-webkit-scrollbar { display: none; }
.pan-track {
  display: flex; width: max-content; will-change: transform;
  padding-inline: max(1.25rem, calc((100vw - 76rem) / 2));
}
.pan-card { flex: none; width: min(84vw, 25rem); scroll-snap-align: start; border-left: 1px solid var(--hair); }
.pan-card:last-child { border-right: 1px solid var(--hair); }
.pan-link {
  position: relative; display: flex; flex-direction: column; height: 100%; min-height: min(30rem, 54vh); padding: 2rem 2rem 1.75rem; overflow: hidden;
}
.pan-link::before {
  content: ""; position: absolute; inset: 0; z-index: -1; transform: scaleY(0); transform-origin: bottom;
  background: linear-gradient(0deg, rgba(0, 240, 255, 0.1), rgba(0, 240, 255, 0) 70%); transition: transform 0.7s var(--ease);
}
.pan-link:hover::before, .pan-link:focus-visible::before { transform: scaleY(1); }
.pan-link { isolation: isolate; }
.pc-n { font-family: var(--f-mono); font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: #a1a1aa; }
.pc-n b { color: var(--cy); font-weight: 500; margin-right: 0.4rem; }
.pc-name {
  margin-top: 2.5rem; font-family: var(--f-display); font-weight: 600; color: #fff;
  font-size: clamp(2.4rem, 3.6vw, 3.4rem); letter-spacing: -0.045em; line-height: 1; transition: letter-spacing 0.7s var(--ease);
}
.pan-link:hover .pc-name { letter-spacing: -0.01em; }
.pc-full { margin-top: 1rem; font-family: var(--f-mono); font-size: 0.68rem; line-height: 1.7; color: #a1a1aa; }
.pc-desc { margin-top: auto; padding-top: 2rem; font-size: 0.95rem; line-height: 1.65; color: #d4d4d8; }
.pc-metric { margin-top: 1.5rem; display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.6rem; font-size: 0.78rem; color: #a1a1aa; }
.pc-metric b { font-family: var(--f-display); font-size: 1.5rem; font-weight: 500; color: var(--cy); letter-spacing: -0.03em; }
.pc-cta { margin-top: 1.5rem; display: inline-flex; gap: 0.5rem; font-size: 0.85rem; font-weight: 600; color: #fff; }
.pc-cta span { transition: transform 0.5s var(--ease); }
.pan-link:hover .pc-cta span { transform: translateX(6px); }

.ac { transition: color 0.5s, text-shadow 0.5s; transition-delay: calc(var(--k, 0) * 70ms); }
.pan-link:hover .ac, .ch-full.is-in .ac { color: var(--cy); text-shadow: 0 0 12px rgba(0, 240, 255, 0.6); }

.pan-progress > span { display: block; height: 1px; background: var(--hair); overflow: hidden; }
.pan-progress i { display: block; height: 100%; background: var(--cy); transform-origin: 0 50%; transform: scaleX(0); }
.pan:not(.is-pinned) .pan-progress { display: none; }

/* Modo fixado (desktop): o scroll vertical move a faixa na horizontal */
.pan.is-pinned { padding: 0; }
.pan.is-pinned .pan-sticky { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; justify-content: center; padding-top: 4rem; overflow: hidden; }
.pan.is-pinned .pan-viewport { margin-top: clamp(1.5rem, 4vh, 3rem); }
.pan.is-pinned .pan-progress { margin-top: clamp(1.25rem, 3vh, 2.5rem); }
.pan .h2 { max-width: 24ch; }
.pan.is-pinned .pan-viewport { overflow: clip; scroll-snap-type: none; }

/* ── Índice lateral ──────────────────────────────────────────────────────── */
.rail { position: fixed; right: 1.5rem; top: 50%; z-index: 40; transform: translateY(-50%); opacity: 0; pointer-events: none; transition: opacity 0.6s var(--ease); }
.rail.is-visible { opacity: 1; pointer-events: auto; }
.rail ol { display: flex; flex-direction: column; align-items: flex-end; gap: 0.95rem; }
.rail a { display: flex; align-items: center; gap: 0.7rem; padding: 0.15rem 0; font-family: var(--f-mono); font-size: 0.62rem; letter-spacing: 0.16em; color: #a1a1aa; transition: color 0.35s; }
.rail a::after { content: ""; width: 12px; height: 1px; background: currentColor; transition: width 0.5s var(--ease), box-shadow 0.5s; }
.rail .rail-t { opacity: 0; transform: translateX(8px); transition: opacity 0.4s, transform 0.5s var(--ease); }
.rail a:hover, .rail a.is-active { color: var(--cy); }
.rail a:hover .rail-t, .rail a:focus-visible .rail-t { opacity: 1; transform: none; }
.rail a.is-active::after { width: 30px; box-shadow: 0 0 8px var(--cy); }

/* ── Capítulos ───────────────────────────────────────────────────────────── */
.chapter { border-top: 1px solid var(--hair); padding: 7rem 1.25rem; }
.ch-grid { max-width: 76rem; margin-inline: auto; display: grid; grid-template-columns: minmax(0, 1fr); gap: 3.5rem; }
@media (min-width: 768px) { .chapter { padding: 8rem 2.5rem; } }
@media (min-width: 1024px) {
  .chapter { padding: 10rem 2.5rem; }
  .ch-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 6rem; }
  .ch-sticky { position: sticky; top: 7rem; }
}
.ch-n { display: flex; align-items: baseline; gap: 0.9rem; font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.2em; color: var(--cy); }
.ch-n em { font-family: var(--f-display); font-style: normal; font-weight: 300; font-size: 1.5rem; color: #e4e4e7; letter-spacing: -0.035em; }
.ch-name { margin-top: 1.25rem; font-family: var(--f-display); font-weight: 600; color: #fff; font-size: clamp(3rem, 6.6vw, 6.6rem); line-height: 0.92; letter-spacing: -0.055em; }
.ch-full { margin-top: 1.1rem; max-width: 30rem; font-family: var(--f-mono); font-size: 0.74rem; line-height: 1.8; color: #a1a1aa; }
.ch-sub { margin-top: 0.75rem; max-width: 28rem; font-family: var(--f-display); font-weight: 300; font-size: 1.1rem; line-height: 1.45; letter-spacing: -0.02em; color: #d4d4d8; }
.ch-glyph { width: clamp(7rem, 13vw, 12rem); margin-top: 3rem; color: var(--cy); filter: drop-shadow(0 0 14px rgba(0, 240, 255, 0.35)); }
.ch-glyph svg { width: 100%; height: auto; overflow: visible; }
.ch-metric { margin-top: 3rem; max-width: 22rem; padding-top: 1.25rem; border-top: 1px solid var(--hair); }
.ch-metric dt { font-family: var(--f-mono); font-size: 0.64rem; letter-spacing: 0.2em; text-transform: uppercase; color: #a1a1aa; }
.ch-metric dd:not(.ch-metric-note) { margin-top: 0.6rem; font-family: var(--f-display); font-size: 2.4rem; font-weight: 500; color: #fff; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.ch-metric-note { margin-top: 0.5rem; font-size: 0.82rem; color: #a1a1aa; }

/* Glyphs ligados ao progresso do capítulo (--p, 0 → 1, suavizado em JS) */
.g-spin { transform-origin: 100px 100px; transform: rotate(calc(var(--p, 0) * 300deg)); }
.g-lines path { stroke-dasharray: 1; stroke-dashoffset: max(0, calc(1 - var(--p, 0) * 2.2)); }
.g-iris { transform: translateX(calc((var(--p, 0.5) - 0.5) * 40px)); }
.g-draw { stroke-dasharray: 1; stroke-dashoffset: max(0, calc(1 - var(--p, 0) * 1.9)); }
.g-dot { opacity: clamp(0, calc((var(--p, 0) - 0.42) * 8), 1); }
.g-l { transform: translateX(calc((1 - min(1, var(--p, 0) * 1.8)) * -26px)); }
.g-r { transform: translateX(calc((1 - min(1, var(--p, 0) * 1.8)) * 26px)); }
.g-print path { stroke-dasharray: 1; stroke-dashoffset: max(0, calc(1 - var(--p, 0) * 2)); }

.ch-body > * + * { margin-top: 3.75rem; }
.ch-lede { font-family: var(--f-display); font-weight: 400; color: #f4f4f5; font-size: clamp(1.35rem, 2.1vw, 1.85rem); line-height: 1.42; letter-spacing: -0.022em; }
/* "cblock" (e não "block"): o Tailwind já tem a utilidade .block = display:block */
.cblock { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.9rem; padding-top: 1.5rem; border-top: 1px solid var(--hair); }
@media (min-width: 768px) { .cblock { grid-template-columns: 10rem minmax(0, 1fr); gap: 2rem; } }
.block-k { font-family: var(--f-mono); font-size: 0.66rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--cy); padding-top: 0.45rem; }
.cblock p { font-size: 1.04rem; line-height: 1.85; color: #c4c4cc; }
.cblock--guarantee { border-top-color: rgba(0, 240, 255, 0.35); }

.question { position: relative; padding: 0.5rem 0 0.5rem 1.75rem; }
.question::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 1px; background: var(--cy); box-shadow: 0 0 10px var(--cy); transform-origin: top; transform: scaleY(0); transition: transform 1.4s var(--ease) 0.2s; }
.question.is-in::before, html:not(.js) .question::before { transform: scaleY(1); }
.question blockquote p { font-family: var(--f-display); font-weight: 300; color: #fff; font-size: clamp(1.45rem, 2.5vw, 2.2rem); line-height: 1.24; letter-spacing: -0.035em; }
.question figcaption { margin-top: 1.25rem; font-family: var(--f-mono); font-size: 0.64rem; letter-spacing: 0.2em; text-transform: uppercase; color: #a1a1aa; }

/* ── Visualizações ───────────────────────────────────────────────────────── */
.viz { border-radius: 1.25rem; padding: 1.5rem; background: rgba(255, 255, 255, 0.015); box-shadow: inset 0 0 0 1px var(--hair); }
@media (min-width: 768px) { .viz { padding: 2rem; } }
.viz-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem; margin-bottom: 1.75rem; }
.viz-k { font-family: var(--f-mono); font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--cy); }
.viz-note { font-family: var(--f-mono); font-size: 0.6rem; letter-spacing: 0.18em; text-transform: uppercase; color: #a1a1aa; }
.viz-btn { font-family: var(--f-mono); font-size: 0.6rem; letter-spacing: 0.16em; text-transform: uppercase; color: #d4d4d8; padding: 0.45rem 0.8rem; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--hair); transition: color 0.3s, box-shadow 0.3s; }
.viz-btn:hover { color: var(--cy); box-shadow: inset 0 0 0 1px rgba(0, 240, 255, 0.5); }

/* RAVENM — árvores */
.trees { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1px; background: var(--hair); border-radius: 0.9rem; overflow: hidden; }
@media (min-width: 640px) { .trees { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tree { background: #040809; padding: 1.4rem 1.25rem; }
.tree-k { font-family: var(--f-display); font-weight: 600; color: #fff; }
.tree-case { margin-top: 0.3rem; font-size: 0.78rem; color: #a1a1aa; }
.tree-stack { display: flex; flex-direction: column; align-items: flex-start; margin-top: 1.4rem; }
.tnode { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 0.15rem; padding: 0.55rem 0.9rem; border-radius: 0.8rem; font-size: 0.88rem; font-weight: 500; line-height: 1.2; color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2); }
.tnode small { font-family: var(--f-mono); font-size: 0.56rem; letter-spacing: 0.12em; text-transform: uppercase; color: #a1a1aa; }
.tnode.is-cand { color: #001014; background: var(--cy); box-shadow: 0 0 26px -6px var(--cy); }
.tnode.is-cand small { color: rgba(0, 16, 20, 0.7); }
.tlink { position: relative; width: 1px; height: 2.2rem; margin-left: 1.3rem; background: linear-gradient(var(--cy), rgba(0, 240, 255, 0.15)); transform-origin: top; transform: scaleY(0); transition: transform 1s var(--ease) 0.3s; }
.is-in .tlink, html:not(.js) .tlink { transform: scaleY(1); }
.tlink--swap span { position: absolute; left: 0.7rem; top: 50%; transform: translateY(-50%); font-size: 0.9rem; color: var(--mint); }
.tree-w { margin-top: 1.4rem; font-size: 0.8rem; color: #d4d4d8; }
.w-bar { position: relative; display: block; height: 2px; margin-bottom: 0.65rem; background: rgba(255, 255, 255, 0.08); }
.w-bar::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); background: var(--cy); box-shadow: 0 0 8px var(--cy); transform-origin: left; transform: scaleX(0); transition: transform 1.3s var(--ease) 0.5s; }
.is-in .w-bar::after, html:not(.js) .w-bar::after { transform: scaleX(1); }

/* RAVENM — camadas */
.layers { position: relative; padding-left: 1.5rem; border-left: 1px solid var(--hair); }
.layers::before { content: ""; position: absolute; left: -3px; top: 0; width: 5px; height: 5px; border-radius: 50%; background: var(--cy); box-shadow: 0 0 12px 2px var(--cy); animation: fall 4s var(--ease-io) infinite; }
@keyframes fall { 0% { top: 0; opacity: 0; } 10%, 85% { opacity: 1; } 100% { top: 100%; opacity: 0; } }
.layers li { display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); gap: 0.25rem 1rem; padding: 1.25rem 0; border-top: 1px solid var(--hair); }
.layers li:first-child { border-top: 0; }
@media (min-width: 768px) { .layers li { grid-template-columns: 2.5rem 11rem minmax(0, 1fr); } }
.l-n { font-family: var(--f-mono); font-size: 0.7rem; color: var(--cy); padding-top: 0.2rem; }
.l-t { font-family: var(--f-display); font-weight: 500; color: #fff; }
.l-d { grid-column: 2; font-size: 0.92rem; line-height: 1.7; color: #a1a1aa; }
@media (min-width: 768px) { .l-d { grid-column: 3; } }

/* NOCTRA — ranking */
.rank li { display: grid; grid-template-columns: 1.5rem 7.5rem minmax(0, 1fr); align-items: center; gap: 1rem; padding: 0.9rem 0; border-top: 1px solid var(--hair); font-size: 0.9rem; }
.rank li:first-child { border-top: 0; }
.r-pos { font-family: var(--f-mono); color: var(--cy); }
.r-name { color: #fff; }
.r-bar { height: 2px; background: rgba(255, 255, 255, 0.08); }
.r-bar i { display: block; height: 100%; width: var(--w); background: linear-gradient(90deg, var(--cy-deep), var(--cy)); transform-origin: left; transform: scaleX(0); transition: transform 1.3s var(--ease); transition-delay: calc(var(--k, 0) * 140ms + 0.3s); }
.is-in .r-bar i, html:not(.js) .r-bar i { transform: scaleX(1); }
.why { margin-top: 1.5rem; padding: 1.25rem 1.35rem; border-radius: 1rem; background: rgba(0, 240, 255, 0.045); box-shadow: inset 0 0 0 1px rgba(0, 240, 255, 0.22); }
.why-q { font-family: var(--f-mono); font-size: 0.64rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--cy); }
.why-a { margin-top: 0.75rem; min-height: 5.4em; line-height: 1.75; color: #f4f4f5; }
.typing::after { content: "▍"; margin-left: 2px; color: var(--cy); animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* DRACONIA / EKATRON — gráficos */
.chart { display: block; width: 100%; height: auto; overflow: visible; }
.chart .ax { stroke: rgba(255, 255, 255, 0.14); fill: none; }
.chart .band { fill: rgba(255, 255, 255, 0.035); stroke: rgba(255, 255, 255, 0.16); stroke-dasharray: 3 5; }
.chart .threshold { stroke: rgba(255, 255, 255, 0.35); stroke-dasharray: 4 6; fill: none; }
.chart .trend { fill: none; stroke: var(--cy); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; filter: drop-shadow(0 0 6px rgba(0, 240, 255, 0.6)); transition: stroke-dashoffset 2.6s var(--ease) 0.3s; }
.is-in .chart .trend, html:not(.js) .chart .trend { stroke-dashoffset: 0; }
.chart .alert { opacity: 0; transition: opacity 0.8s 2.2s; }
.is-in .chart .alert, html:not(.js) .chart .alert { opacity: 1; }
.chart .pulse { transform-box: fill-box; transform-origin: center; animation: pulse 2s ease-out infinite; }
@keyframes pulse { 0% { transform: scale(0.6); opacity: 1; } 100% { transform: scale(2.2); opacity: 0; } }
.chart-label { fill: #a1a1aa; font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.12em; }
.chart-label--alert { fill: #ff8fa3; }
.chart-label--cy { fill: var(--cy); }
.log { margin-top: 1.25rem; font-family: var(--f-mono); font-size: 0.7rem; letter-spacing: 0.06em; color: #a1a1aa; }

.forces { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1px; margin-top: 1.5rem; background: var(--hair); border-radius: 0.9rem; overflow: hidden; }
@media (min-width: 640px) { .forces { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.forces p { display: flex; gap: 0.9rem; padding: 1.1rem 1.2rem; background: #040809; font-size: 0.9rem; line-height: 1.6; color: #a1a1aa; }
.forces b { color: #fff; font-weight: 500; }
.force-sign { font-family: var(--f-display); font-size: 1.5rem; line-height: 1; color: var(--cy); }

.factors > div { display: grid; grid-template-columns: 4rem minmax(0, 1fr); gap: 1rem; align-items: baseline; padding: 1rem 0; border-top: 1px solid var(--hair); }
.factors dt { font-family: var(--f-mono); font-weight: 500; font-size: 1.05rem; color: var(--cy); line-height: 1; }
.factors dd { color: #d4d4d8; }

.constraints { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1px; background: var(--hair); border-radius: 0.9rem; overflow: hidden; }
@media (min-width: 640px) { .constraints { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.constraints li { display: flex; gap: 0.9rem; align-items: baseline; padding: 1.1rem 1.2rem; background: #040809; color: #f4f4f5; font-size: 0.95rem; }
.constraints span { font-family: var(--f-mono); font-size: 0.64rem; color: var(--cy); }

/* SARGON — interseção ligada ao scroll */
.venn { --q: min(1, max(0, calc((var(--p, 0) - 0.2) * 2.6))); position: relative; aspect-ratio: 16 / 10; }
.venn .c { position: absolute; top: 44%; width: 46%; aspect-ratio: 1; border-radius: 50%; transform-origin: center; mix-blend-mode: screen; }
.venn .c-l { left: 13%; translate: calc((1 - var(--q)) * -24%) -50%; background: radial-gradient(circle at 40% 50%, rgba(0, 128, 255, 0.4), rgba(0, 128, 255, 0.05) 68%, transparent 70%); box-shadow: inset 0 0 0 1px rgba(0, 128, 255, 0.55); }
.venn .c-r { right: 13%; translate: calc((1 - var(--q)) * 24%) -50%; background: radial-gradient(circle at 60% 50%, rgba(0, 255, 204, 0.36), rgba(0, 255, 204, 0.05) 68%, transparent 70%); box-shadow: inset 0 0 0 1px rgba(0, 255, 204, 0.5); }
.venn-mid { position: absolute; left: 50%; top: 44%; translate: -50% -50%; text-align: center; font-size: 0.72rem; color: #d4d4d8; opacity: var(--q); }
.venn-mid span { display: block; font-family: var(--f-display); font-weight: 300; font-size: clamp(1.2rem, 2.4vw, 1.8rem); letter-spacing: -0.035em; color: #fff; }
.venn-l, .venn-r { position: absolute; bottom: 0; max-width: 42%; font-size: 0.76rem; line-height: 1.5; color: #a1a1aa; }
.venn-l b, .venn-r b { display: block; font-family: var(--f-mono); font-size: 0.62rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; }
.venn-l { left: 0; } .venn-l b { color: #4da6ff; }
.venn-r { right: 0; text-align: right; } .venn-r b { color: var(--mint); }

/* ULTRIMIUS — perguntas ao vivo + selo */
.deck { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; align-items: center; }
@media (min-width: 640px) { .deck { grid-template-columns: minmax(0, 1fr) 9rem; } }
.cam { position: relative; display: flex; flex-direction: column; justify-content: space-between; aspect-ratio: 16 / 10; padding: 1.4rem; border-radius: 1rem; overflow: hidden; background: radial-gradient(110% 90% at 50% 10%, #0b2730, #040b0e 60%); box-shadow: inset 0 0 0 1px rgba(0, 240, 255, 0.14); }
.cam .corner { position: absolute; width: 16px; height: 16px; border: 0 solid rgba(0, 240, 255, 0.7); }
.cam .tl { top: 10px; left: 10px; border-top-width: 1px; border-left-width: 1px; }
.cam .tr { top: 10px; right: 10px; border-top-width: 1px; border-right-width: 1px; }
.cam .bl { bottom: 10px; left: 10px; border-bottom-width: 1px; border-left-width: 1px; }
.cam .br { bottom: 10px; right: 10px; border-bottom-width: 1px; border-right-width: 1px; }
.cam-rec { display: flex; align-items: center; gap: 0.5rem; font-family: var(--f-mono); font-size: 0.64rem; letter-spacing: 0.16em; color: #d4d4d8; }
.rec-dot { width: 7px; height: 7px; border-radius: 50%; background: #ff3b5c; box-shadow: 0 0 10px #ff3b5c; animation: blink 1.4s steps(2) infinite; }
.cam-q { font-family: var(--f-display); font-size: clamp(1.05rem, 2vw, 1.45rem); line-height: 1.35; letter-spacing: -0.02em; color: #fff; transition: opacity 0.45s var(--ease), transform 0.6s var(--ease), filter 0.45s; }
.cam-q.is-out { opacity: 0; transform: translateY(10px); filter: blur(6px); }
.cam-foot { font-family: var(--f-mono); font-size: 0.58rem; letter-spacing: 0.16em; text-transform: uppercase; color: #a1a1aa; }
.seal { position: relative; width: 9rem; aspect-ratio: 1; margin-inline: auto; color: var(--cy); }
.seal > svg:first-child { width: 100%; height: 100%; animation: spin 22s linear infinite; }
.seal text { fill: var(--cy); font-family: var(--f-mono); font-size: 8.6px; letter-spacing: 0.22em; }
.seal-lock { position: absolute; left: 50%; top: 50%; width: 2.4rem; height: 2.4rem; translate: -50% -50%; filter: drop-shadow(0 0 10px rgba(0, 240, 255, 0.7)); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Encerramento ────────────────────────────────────────────────────────── */
.outro { border-top: 1px solid var(--hair); }
.proofs li { border-top: 1px solid var(--hair); }
.proofs li:last-child { border-bottom: 1px solid var(--hair); }
.proofs a { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.4rem 1.5rem; align-items: baseline; padding: 1.6rem 0.25rem; }
@media (min-width: 768px) { .proofs a { grid-template-columns: 13rem minmax(0, 1fr) auto; padding: 1.8rem 0.5rem; } }
.proofs a::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(0, 240, 255, 0.09), transparent 80%); transform: scaleX(0); transform-origin: left; transition: transform 0.8s var(--ease); }
.proofs a:hover::before, .proofs a:focus-visible::before { transform: scaleX(1); }
.pf-name { font-family: var(--f-display); font-size: 1.5rem; font-weight: 600; letter-spacing: -0.03em; color: #fff; }
.pf-text { grid-column: 1 / -1; color: #a1a1aa; line-height: 1.6; }
@media (min-width: 768px) { .pf-text { grid-column: auto; } }
.pf-go { grid-row: 1; grid-column: 2; color: var(--cy); transition: transform 0.6s var(--ease); }
@media (min-width: 768px) { .pf-go { grid-column: 3; } }
.proofs a:hover .pf-go { transform: translateX(8px); }

.foot-link { transition: color 0.25s; }
.foot-link:hover { color: var(--cy); }

/* ── Movimento reduzido / pausado ────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  html { scroll-behavior: auto !important; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; transition-delay: 0s !important; }
  .js .rv, .js .display .line > span, .js [data-split] .sw > span, .js .hero-foot { opacity: 1 !important; transform: none !important; }
  .statement .w { opacity: 1; }
  .layers::before { display: none; }
}
.no-motion { scroll-behavior: auto !important; }
.no-motion *, .no-motion *::before, .no-motion *::after { animation-play-state: paused !important; transition-duration: 0.001ms !important; transition-delay: 0s !important; }
.no-motion.js .rv, .no-motion.js .display .line > span, .no-motion.js [data-split] .sw > span, .no-motion.js .hero-foot { opacity: 1 !important; transform: none !important; }
.no-motion .statement .w { opacity: 1; }
.no-motion .layers::before, .no-motion #cursor { display: none; }
