/* NefroQuest · Atlas Vivo do Néfron
   Direção: atlas clínico iluminado × códice de RPG. */

:root {
  --night: #070a13;
  --night-rgb: 7, 10, 19;
  --cortex: #111a2e;
  --cortex-2: #192843;
  --parchment: #efe6d2;
  --paper-dim: #c9c4b8;
  --mist: #aab7c9;
  --haze: #7f8fa8;
  --gold: #d6a94a;
  --gold-bright: #f1cf7a;
  --gold-rgb: 214, 169, 74;
  --cyan: #57bfc8;
  --cyan-bright: #91dfe3;
  --cyan-rgb: 87, 191, 200;
  --clinical: #69bde7;
  --clinical-rgb: 105, 189, 231;
  --readable: #8c9cb6;
  --violet: #8050a6;
  --violet-rgb: 128, 80, 166;
  --danger: #ef8491;
  --ok: #6bd4a7;
  --shell: min(1200px, calc(100vw - 48px));
  --narrow: min(820px, calc(100vw - 48px));
  --display: "Alegreya", Georgia, serif;
  --body: "Source Sans 3", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --chapter-space-top: 1.25rem;
  --chapter-space-bottom: 4rem;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

body {
  min-width: 320px;
  overflow-x: hidden;
  background: var(--night);
  color: var(--parchment);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  border: 1px solid rgba(var(--gold-rgb), .08);
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, summary { font: inherit; }
em { font-family: var(--display); font-style: italic; }
::selection { background: rgba(var(--cyan-rgb), .28); color: #fff; }

.skip-link {
  position: fixed;
  left: 1rem;
  top: .75rem;
  z-index: 999;
  transform: translateY(-180%);
  padding: .7rem 1rem;
  border-radius: 4px;
  background: var(--gold-bright);
  color: var(--night);
  font-weight: 700;
  transition: transform .2s ease;
}
.skip-link:focus { transform: translateY(0); }

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

.ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.ambient::after {
  content: "";
  position: absolute;
  top: 42vh;
  left: 38vw;
  width: min(34vw, 520px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--clinical);
  filter: blur(110px);
  opacity: .075;
}
.ambient-grid {
  position: absolute;
  inset: 0;
  opacity: .12;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, #000 0, transparent 85%);
}
.ambient-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .18;
}
.ambient-glow--cyan {
  width: 42vw;
  height: 42vw;
  right: -18vw;
  top: 14vh;
  background: var(--cyan);
}
.ambient-glow--gold {
  width: 32vw;
  height: 32vw;
  left: -18vw;
  top: 65vh;
  background: var(--gold);
  opacity: .1;
}
.ambient-grain {
  position: absolute;
  inset: 0;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='150'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.85'/%3E%3C/svg%3E");
}

main, .nav, .footer { position: relative; z-index: 1; }

/* Navigation */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 2rem;
  min-height: 76px;
  padding: .85rem max(24px, calc((100vw - 1200px) / 2));
  border-bottom: 1px solid transparent;
  transition: min-height .35s var(--ease), background .35s ease, border-color .35s ease, backdrop-filter .35s ease;
}
.nav.is-stuck {
  min-height: 66px;
  border-bottom-color: rgba(var(--cyan-rgb), .14);
  background: rgba(var(--night-rgb), .82);
  backdrop-filter: blur(18px) saturate(1.15);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: .65rem;
  margin-right: auto;
}
.nav-word {
  font-family: var(--display);
  font-size: 1.25rem;
  font-variant-caps: small-caps;
  font-weight: 700;
  letter-spacing: .13em;
}
.nav-links { display: flex; align-items: center; gap: 1.5rem; }
.nav-links a {
  position: relative;
  padding: .55rem 0;
  color: var(--mist);
  font-size: .88rem;
  font-weight: 600;
  transition: color .2s ease;
}
.nav-links a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: .25rem;
  left: 0;
  height: 1px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s var(--ease);
}
.nav-links a:hover,
.nav-links a[aria-current="true"] { color: var(--parchment); }
.nav-links a:hover::after,
.nav-links a[aria-current="true"]::after { transform: scaleX(1); }
.nav-actions {
  display: flex;
  align-items: center;
  gap: .9rem;
}
.nav-login {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: .55rem .3rem;
  color: var(--mist);
  font-size: .86rem;
  font-weight: 600;
  transition: color .2s ease;
}
.nav-login::after {
  content: "";
  position: absolute;
  right: .3rem;
  bottom: .48rem;
  left: .3rem;
  height: 1px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s var(--ease);
}
.nav-login:hover,
.nav-login:focus-visible { color: var(--parchment); }
.nav-login:hover::after,
.nav-login:focus-visible::after { transform: scaleX(1); }
.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: .6rem 1.15rem;
  border: 1px solid rgba(var(--gold-rgb), .5);
  border-radius: 4px;
  background: rgba(var(--gold-rgb), .08);
  color: var(--gold-bright);
  font-size: .88rem;
  font-weight: 700;
  transition: background .25s ease, color .25s ease, transform .25s ease;
}
.nav-cta:hover { transform: translateY(-1px); background: var(--gold); color: var(--night); }
.nav-progress {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), var(--cyan));
  transform: scaleX(var(--scroll-progress, 0));
  transform-origin: left;
}

/* Shared */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  min-height: 52px;
  padding: .8rem 1.45rem;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  transition: transform .25s var(--ease), box-shadow .25s ease, border-color .25s ease, background .25s ease;
}
.btn svg { transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn-primary {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold) 62%, #a77a28);
  box-shadow: 0 14px 44px -16px rgba(var(--gold-rgb), .8), inset 0 1px 0 rgba(255,255,255,.38);
  color: #171006;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 20px 54px -16px rgba(var(--gold-rgb), .95), inset 0 1px 0 rgba(255,255,255,.42); }
.btn-text {
  padding-right: .45rem;
  padding-left: .45rem;
  border-bottom: 1px solid rgba(var(--cyan-rgb), .38);
  color: var(--parchment);
  font-weight: 600;
}
.btn-text:hover { border-color: var(--cyan); color: var(--cyan-bright); }
.btn-large { min-height: 58px; padding-inline: 1.8rem; }

.eyebrow,
.section-label,
.boss-label {
  color: var(--gold-bright);
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.section-label,
.boss-label { display: flex; align-items: center; gap: .8rem; color: var(--mist); }
.section-label span,
.boss-label span {
  display: inline-grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border: 1px solid rgba(var(--gold-rgb), .36);
  border-radius: 50%;
  color: var(--gold-bright);
  font-family: var(--display);
  font-size: 1rem;
  font-style: italic;
  letter-spacing: 0;
}
.mono-label {
  display: block;
  margin-bottom: .5rem;
  color: var(--cyan-bright);
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.atlas-section { width: var(--shell); margin: 0 auto; padding: var(--chapter-space-top) 0 var(--chapter-space-bottom); }
.section-intro {
  display: grid;
  grid-template-columns: 230px minmax(0, 780px);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}
.section-copy h2,
.oracle h2,
.faq h2,
.finale h2,
.boss h2 {
  font-family: var(--display);
  font-size: clamp(2.65rem, 5.2vw, 5rem);
  font-weight: 500;
  letter-spacing: -.035em;
  line-height: .98;
  text-wrap: balance;
}
.section-copy h2 em,
.oracle h2 em,
.faq h2 em,
.finale h2 em,
.boss h2 em { color: var(--gold-bright); font-weight: 500; }
.section-copy > p,
.oracle-lede,
.faq-intro > p:last-child {
  max-width: 67ch;
  margin-top: 1.35rem;
  color: var(--mist);
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  line-height: 1.72;
}

/* Progressive enhancement: visible by default, animated only when JS is ready. */
.reveal, .reveal-up { opacity: 1; transform: none; }
.motion-ready .reveal:not(.in) { opacity: 0; transform: translateY(18px); }
.motion-ready .reveal-up:not(.in) { opacity: 0; transform: translateY(30px); }
.reveal.in, .reveal-up.in {
  opacity: 1;
  transform: none;
  transition: opacity .85s var(--ease-out) calc(var(--i, 0) * 85ms), transform .85s var(--ease-out) calc(var(--i, 0) * 85ms);
}

/* Hero */
.hero {
  position: relative;
  min-height: max(760px, 100svh);
  overflow: clip;
  border-bottom: 1px solid rgba(var(--cyan-rgb), .1);
  background:
    radial-gradient(65% 90% at 77% 48%, rgba(var(--cyan-rgb), .09), transparent 66%),
    radial-gradient(50% 70% at 16% 26%, rgba(var(--gold-rgb), .07), transparent 68%),
    linear-gradient(180deg, #080b15 0%, var(--night) 100%);
}
.hero-shell {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .65fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  width: var(--shell);
  min-height: max(760px, 100svh);
  margin: 0 auto;
  padding: 8rem 0 6.5rem;
}
.hero-copy { max-width: 770px; }
.hero .eyebrow { margin-bottom: 1.35rem; }
.hero-title {
  margin-bottom: 1.7rem;
  font-family: var(--display);
  font-size: clamp(3.7rem, 7.7vw, 7.5rem);
  font-weight: 500;
  letter-spacing: -.05em;
  line-height: .86;
}
.hero-title span,
.hero-title em { display: block; }
.hero-title em {
  margin-top: .16em;
  color: var(--gold-bright);
  font-weight: 500;
  text-shadow: 0 0 45px rgba(var(--gold-rgb), .16);
}
.hero-sub {
  max-width: 650px;
  margin-bottom: 2rem;
  color: var(--mist);
  font-size: clamp(1.1rem, 1.8vw, 1.28rem);
  line-height: 1.65;
  text-wrap: pretty;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.65rem; }
.hero-trust { display: flex; flex-wrap: wrap; gap: .75rem 1.3rem; list-style: none; }
.hero-trust li { display: flex; align-items: center; gap: .5rem; color: var(--haze); font-size: .84rem; }
.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 10px rgba(107, 212, 167, .55);
}

.hero-atlas {
  position: absolute;
  z-index: 1;
  width: min(48vw, 660px);
  height: min(92vh, 760px);
  right: max(0px, calc((100vw - 1280px) / 2));
  top: 52%;
  color: var(--cyan);
  transform: translateY(-49%);
}
.nephron-map { width: 100%; height: 100%; overflow: visible; }
.nephron-capsule {
  fill: rgba(var(--cyan-rgb), .018);
  stroke: rgba(var(--cyan-rgb), .18);
  stroke-dasharray: 3 8;
}
.nephron-capsule--inner { stroke: rgba(var(--gold-rgb), .14); }
.nephron-shadow,
.nephron-path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.nephron-shadow { stroke: rgba(var(--cyan-rgb), .18); stroke-width: 15; filter: blur(10px); }
.nephron-path {
  stroke: url(#nephron-gradient);
  stroke-width: 2.5;
  stroke-dasharray: 1460;
  stroke-dashoffset: 1460;
  filter: url(#nephron-glow);
  animation: draw-nephron 2.8s var(--ease-out) .25s forwards;
}
@keyframes draw-nephron { to { stroke-dashoffset: 0; } }
.atlas-caption {
  position: absolute;
  right: 2.2rem;
  bottom: 1.2rem;
  color: rgba(201,196,184,.42);
  font-family: var(--mono);
  font-size: .58rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.hero-console {
  position: relative;
  z-index: 4;
  width: min(100%, 370px);
  margin-top: 8.5rem;
  justify-self: end;
  overflow: hidden;
  border: 1px solid rgba(var(--cyan-rgb), .22);
  border-radius: 7px;
  background: rgba(10, 15, 28, .82);
  box-shadow: 0 32px 80px -32px #000, inset 0 1px rgba(255,255,255,.035);
  backdrop-filter: blur(15px);
}
.hero-console::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  background: linear-gradient(var(--gold), var(--cyan));
}
.console-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.15rem .9rem 1.25rem;
  border-bottom: 1px solid rgba(var(--cyan-rgb), .12);
}
.console-head > div { display: grid; gap: .15rem; }
.console-head strong { font-family: var(--display); font-size: 1.2rem; font-weight: 600; }
.console-status { display: flex; align-items: center; gap: .4rem; color: var(--cyan-bright); font-family: var(--mono); font-size: .6rem; letter-spacing: .08em; text-transform: uppercase; }
.console-status i { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 9px var(--ok); }
.console-code { color: var(--haze); font-family: var(--mono); font-size: .62rem; }
.console-meter { height: 2px; background: rgba(255,255,255,.06); }
.console-meter span { display: block; width: 48%; height: 100%; background: linear-gradient(90deg, var(--gold), var(--cyan)); }
.console-steps { list-style: none; }
.console-steps li {
  display: grid;
  grid-template-columns: 30px 1fr 22px;
  gap: .65rem;
  align-items: center;
  min-height: 64px;
  padding: .65rem 1.1rem .65rem 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,.055);
  color: var(--haze);
}
.console-steps li.is-complete,
.console-steps li.is-current { color: var(--parchment); }
.console-steps li.is-current { background: linear-gradient(90deg, rgba(var(--cyan-rgb), .1), transparent); }
.console-index { font-family: var(--mono); font-size: .66rem; color: var(--haze); }
.console-steps b { display: block; font-size: .91rem; font-weight: 700; }
.console-steps small { display: block; margin-top: .08rem; color: var(--haze); font-size: .76rem; }
.console-check { color: var(--ok); }
.console-mark { color: var(--haze); }
.console-pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 5px rgba(var(--cyan-rgb), .1), 0 0 14px var(--cyan); animation: console-pulse 1.8s ease infinite; }
@keyframes console-pulse { 50% { box-shadow: 0 0 0 8px rgba(var(--cyan-rgb), 0), 0 0 18px var(--cyan); } }
.console-foot { display: flex; justify-content: space-between; gap: 1rem; padding: .8rem 1.1rem .8rem 1.25rem; color: var(--haze); font-family: var(--mono); font-size: .59rem; text-transform: uppercase; }
.console-foot strong { color: var(--gold-bright); font-weight: 500; }
/* Proof ledger */
.proof { position: relative; z-index: 3; width: var(--shell); margin: 0 auto; }
.proof-ledger {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-right: 1px solid rgba(var(--cyan-rgb), .14);
  border-bottom: 1px solid rgba(var(--cyan-rgb), .14);
  border-left: 1px solid rgba(var(--cyan-rgb), .14);
  background:
    linear-gradient(115deg,
      rgba(var(--clinical-rgb), .055),
      transparent 36%,
      rgba(var(--gold-rgb), .025)),
    rgba(17,26,46,.5);
}
.proof-item { min-height: 150px; padding: 1.8rem; border-right: 1px solid rgba(var(--cyan-rgb), .14); }
.proof-item:last-child { border-right: 0; }
.proof-item dt { margin-bottom: .35rem; color: var(--gold-bright); font-family: var(--display); font-size: clamp(2.1rem, 4vw, 3.5rem); font-weight: 500; line-height: 1; }
.proof-item dd { color: var(--mist); font-size: .88rem; }
.proof-item--access dt { padding-top: .55rem; color: var(--cyan-bright); font-family: var(--mono); font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; }
.proof-item--access dd { max-width: 15ch; color: var(--parchment); font-family: var(--display); font-size: 1.3rem; line-height: 1.1; }

/* Biblioteca Cinética de Evidências — a escala do acervo antes do método. */
.guideline-archive {
  position: relative;
  z-index: 3;
  padding: clamp(6rem, 9vw, 9rem) 0 clamp(5rem, 8vw, 8rem);
  overflow: hidden;
  border-bottom: 1px solid rgba(var(--cyan-rgb), .1);
  background:
    radial-gradient(55% 80% at 50% 62%, rgba(var(--cyan-rgb), .055), transparent 72%),
    linear-gradient(180deg, rgba(11, 16, 29, .28), rgba(5, 8, 16, .72));
}
.guideline-archive__intro {
  display: grid;
  grid-template-columns: minmax(180px, .42fr) minmax(0, 1fr);
  gap: 1rem clamp(2rem, 7vw, 7rem);
  align-items: end;
  width: var(--shell);
  margin: 0 auto;
}
.guideline-archive__intro .mono-label { grid-row: 1 / span 2; align-self: start; padding-top: .85rem; color: var(--cyan-bright); }
.guideline-archive__intro h2 { max-width: 820px; font-family: var(--display); font-size: clamp(3rem, 5.5vw, 5.8rem); font-weight: 500; letter-spacing: -.04em; line-height: .94; text-wrap: balance; }
.guideline-archive__intro h2 em { color: var(--gold-bright); font-weight: 500; }
.guideline-archive__intro > p:last-child { max-width: 66ch; color: var(--mist); font-size: 1.02rem; line-height: 1.65; }
.guideline-flow {
  --archive-offset: 0px;
  --archive-card-width: 168px;
  position: relative;
  min-height: 390px;
  margin-top: clamp(2.6rem, 5vw, 4.5rem);
  overflow: hidden;
  border-top: 1px solid rgba(var(--cyan-rgb), .12);
  border-bottom: 1px solid rgba(var(--cyan-rgb), .12);
  cursor: ew-resize;
  perspective: 1200px;
  user-select: none;
  -webkit-user-select: none;
}
.guideline-flow::before,
.guideline-flow::after {
  content: "";
  position: absolute;
  z-index: 6;
  top: 0;
  bottom: 0;
  width: min(12vw, 160px);
  pointer-events: none;
}
.guideline-flow::before { left: 0; background: linear-gradient(90deg, var(--night) 8%, transparent); }
.guideline-flow::after { right: 0; background: linear-gradient(-90deg, var(--night) 8%, transparent); }
.guideline-flow__rail { position: absolute; z-index: 0; top: 50%; right: 0; left: 0; height: 1px; background: rgba(var(--cyan-rgb), .12); }
.guideline-flow__rail i { position: absolute; top: -2px; left: 50%; width: 52px; height: 5px; background: linear-gradient(90deg, transparent, var(--gold-bright), transparent); filter: drop-shadow(0 0 8px rgba(var(--gold-rgb), .5)); transform: translateX(-50%); }
.guideline-track {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 1rem;
  width: max-content;
  padding: 2.6rem max(6vw, 48px) 5.4rem;
  transform: translate3d(var(--archive-offset), 0, 0);
  transform-style: preserve-3d;
  will-change: transform;
}
.guideline-cover {
  --cover-rotate: 0deg;
  --cover-scale: 1;
  --cover-y: 0px;
  position: relative;
  display: grid;
  flex: 0 0 168px;
  grid-template-rows: auto 1fr auto auto;
  width: 168px;
  height: 232px;
  padding: .9rem .85rem .8rem;
  overflow: hidden;
  border: 1px solid rgba(var(--cyan-rgb), .22);
  border-color: color-mix(in srgb, var(--cover-accent) 38%, transparent);
  border-radius: 2px;
  outline: none;
  background: #080c16;
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--cover-accent) 12%, #0a0f1c) 0%, #080c16 50%, #050812 100%);
  box-shadow: 0 24px 44px rgba(0,0,0,.38), inset 0 0 0 1px rgba(255,255,255,.018);
  color: var(--parchment);
  transform: translateY(var(--cover-y)) rotateY(var(--cover-rotate)) scale(var(--cover-scale));
  transform-origin: center 88%;
  transform-style: preserve-3d;
  transition: border-color .24s ease, box-shadow .24s ease, opacity .24s ease;
}
.guideline-cover::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: linear-gradient(transparent, var(--cover-accent), transparent); opacity: .82; }
.guideline-cover::after { content: ""; position: absolute; right: .7rem; bottom: .58rem; width: 22px; height: 1px; background: var(--cover-accent); box-shadow: 0 0 8px color-mix(in srgb, var(--cover-accent) 58%, transparent); }
.guideline-cover:hover,
.guideline-cover:focus-visible,
.guideline-cover.is-center { border-color: color-mix(in srgb, var(--cover-accent) 72%, transparent); box-shadow: 0 30px 62px rgba(0,0,0,.5), 0 0 28px color-mix(in srgb, var(--cover-accent) 10%, transparent); }
.guideline-cover:focus-visible { outline: 2px solid var(--cyan-bright); outline-offset: 4px; }
.guideline-cover__meta { display: flex; justify-content: space-between; gap: .5rem; color: var(--cover-accent); font-family: var(--mono); font-size: .48rem; letter-spacing: .12em; text-transform: uppercase; }
.guideline-cover__meta b { font-weight: 500; }
.guideline-cover__meta i { color: var(--haze); font-style: normal; }
.guideline-cover__figure { position: relative; align-self: center; width: 100%; height: 82px; opacity: .78; }
.guideline-cover__figure::before { content: ""; position: absolute; inset: 4px 22px 5px; border: 1px solid color-mix(in srgb, var(--cover-accent) 36%, transparent); border-radius: 50%; transform: rotate(-18deg); }
.guideline-cover__figure::after { content: ""; position: absolute; inset: 15px 12px 17px 36px; border: 1px dashed color-mix(in srgb, var(--cover-accent) 42%, transparent); border-radius: 50%; transform: rotate(24deg); }
.guideline-cover__figure i { position: absolute; z-index: 2; border-radius: 50%; background: var(--cover-accent); box-shadow: 0 0 10px color-mix(in srgb, var(--cover-accent) 70%, transparent); }
.guideline-cover__figure i:nth-child(1) { top: 17px; left: 38px; width: 5px; height: 5px; }
.guideline-cover__figure i:nth-child(2) { top: 45px; left: 76px; width: 3px; height: 3px; }
.guideline-cover__figure i:nth-child(3) { top: 28px; right: 22px; width: 4px; height: 4px; }
.guideline-cover strong { align-self: end; min-height: 2.5em; font-family: var(--display); font-size: 1rem; font-weight: 600; line-height: 1.02; text-wrap: balance; }
.guideline-cover small { min-height: 2.7em; margin-top: .32rem; color: var(--mist); font-size: .58rem; line-height: 1.25; }
.guideline-cover__foot { margin-top: .55rem; padding-top: .45rem; border-top: 1px solid rgba(var(--cyan-rgb), .11); color: var(--haze); font-family: var(--mono); font-size: .5rem; letter-spacing: .06em; text-transform: uppercase; }
.guideline-cover--more {
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  row-gap: .5rem;
  align-content: stretch;
  background: radial-gradient(circle at 50% 38%, rgba(var(--gold-rgb), .12), transparent 42%), #070a13;
  text-align: center;
}
.guideline-cover--more .guideline-cover__meta { position: static; grid-row: 1; align-self: start; }
.guideline-cover--more strong { grid-row: 2; align-self: start; min-height: 0; margin-top: 1.75rem; color: var(--gold-bright); font-size: 1.35rem; line-height: 1.05; }
.guideline-cover--more strong span { display: block; margin-bottom: .14rem; font-size: 2.5rem; line-height: .9; }
.guideline-cover--more small { grid-row: 3; align-self: start; min-height: 0; margin: .7rem auto 0; }
.guideline-cover--more .guideline-cover__foot { grid-row: 4; margin-top: .75rem; }
.guideline-flow__status {
  position: absolute;
  z-index: 7;
  right: max(18px, calc((100vw - var(--shell)) / 2));
  bottom: 1rem;
  left: max(18px, calc((100vw - var(--shell)) / 2));
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: .8rem;
  align-items: center;
  color: var(--haze);
  font-family: var(--mono);
  font-size: .58rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.guideline-flow__status span { color: var(--cyan-bright); }
.guideline-flow__status b { overflow: hidden; color: var(--parchment); font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.guideline-flow__status i { color: var(--gold-bright); font-style: normal; }

@media (max-width: 760px) {
  .guideline-archive__intro { grid-template-columns: 1fr; gap: 1rem; }
  .guideline-archive__intro .mono-label { grid-row: auto; padding-top: 0; }
  .guideline-archive__intro h2 { font-size: clamp(2.7rem, 13vw, 4rem); }
  .guideline-flow { --archive-card-width: 148px; min-height: 340px; overflow-x: auto; cursor: grab; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .guideline-flow::-webkit-scrollbar { display: none; }
  .guideline-flow::before,
  .guideline-flow::after { width: 24px; }
  .guideline-track { padding: 2.2rem max(18px, calc((100vw - var(--archive-card-width)) / 2)) 5rem; transform: none !important; will-change: auto; }
  .guideline-cover { flex-basis: 148px; width: 148px; height: 210px; scroll-snap-align: center; transform: none !important; }
  .guideline-cover__figure { height: 66px; }
  .guideline-cover strong { font-size: .92rem; }
  .guideline-flow__status { grid-template-columns: auto minmax(0, 1fr); }
  .guideline-flow__status i { display: none; }
}

@media (pointer: coarse) {
  .guideline-flow { overflow-x: auto; cursor: grab; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .guideline-flow::-webkit-scrollbar { display: none; }
  .guideline-track { padding-inline: max(18px, calc((100vw - var(--archive-card-width)) / 2)); transform: none !important; will-change: auto; }
  .guideline-cover { scroll-snap-align: center; transform: none !important; }
}

/* Journey */
.journey { padding-top: var(--chapter-space-top); }
.route {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.6rem;
  min-height: 300px;
}
.route-line { position: absolute; inset: 12px 0 auto; width: 100%; height: 190px; overflow: visible; }
.route-line path {
  fill: none;
  stroke: rgba(var(--cyan-rgb), .28);
  stroke-width: 1.5;
  stroke-dasharray: 7 9;
  vector-effect: non-scaling-stroke;
}
.route-step { position: relative; z-index: 2; padding: 0 1rem; }
.route-number { display: block; color: var(--haze); font-family: var(--mono); font-size: .62rem; }
.route-dot {
  display: block;
  width: 13px;
  height: 13px;
  margin: 1.95rem 0 2.15rem;
  border: 3px solid var(--night);
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 1px rgba(var(--gold-rgb), .45), 0 0 22px rgba(var(--gold-rgb), .4);
}
.route-step:nth-of-type(even) .route-dot { margin-top: 4.55rem; background: var(--cyan); box-shadow: 0 0 0 1px rgba(var(--cyan-rgb), .45), 0 0 22px rgba(var(--cyan-rgb), .4); }
.route-verb { margin-bottom: .35rem; color: var(--cyan-bright); font-family: var(--mono); font-size: .68rem; letter-spacing: .13em; text-transform: uppercase; }
.route-step h3 { margin-bottom: .6rem; font-family: var(--display); font-size: 1.55rem; font-weight: 600; line-height: 1.08; }
.route-step > p:last-child { color: var(--mist); font-size: .92rem; line-height: 1.6; }

/* Oracle */
.oracle {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(430px, 1.18fr);
  gap: clamp(3rem, 8vw, 7rem);
  align-items: start;
}
.oracle::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 1.5rem;
  left: calc((100% - 100vw) / 2);
  width: 100vw;
  z-index: -1;
  border-top: 1px solid rgba(var(--cyan-rgb), .09);
  border-bottom: 1px solid rgba(var(--cyan-rgb), .09);
  background: linear-gradient(90deg, transparent, rgba(var(--cyan-rgb), .035), transparent);
}
.oracle-copy .section-label { margin-bottom: 1rem; }
.oracle > .chat { margin-top: 3rem; }
.oracle h2 { font-size: clamp(2.7rem, 4.8vw, 4.8rem); }
.oracle-seal {
  display: grid;
  grid-template-columns: 106px 1fr;
  gap: 1rem;
  align-items: center;
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(var(--gold-rgb), .16);
}
.oracle-seal img {
  width: 106px;
  height: 106px;
  border: 1px solid rgba(var(--cyan-rgb), .25);
  border-radius: 50%;
  object-fit: cover;
  filter: saturate(.86) contrast(1.06);
  box-shadow: 0 0 35px rgba(var(--cyan-rgb), .15);
}
.oracle-seal strong { display: block; font-family: var(--display); font-size: 1.2rem; font-weight: 600; line-height: 1.1; }
.oracle-seal p { margin-top: .35rem; color: var(--haze); font-size: .86rem; }
.oracle-benefits { display: grid; gap: .65rem; margin-top: 1.6rem; list-style: none; }
.oracle-benefits li { display: flex; gap: .75rem; color: var(--mist); font-size: .9rem; }
.oracle-benefits span { color: var(--gold); font-family: var(--mono); font-size: .62rem; padding-top: .2rem; }

.chat {
  overflow: hidden;
  border: 1px solid rgba(var(--cyan-rgb), .2);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(17,26,46,.88), rgba(8,12,23,.92));
  box-shadow: 0 35px 90px -45px #000;
}
.chat-chrome {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .85rem 1rem;
  border-bottom: 1px solid rgba(var(--cyan-rgb), .13);
  color: var(--haze);
  font-family: var(--mono);
  font-size: .6rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.chat-chrome > span:first-child { display: flex; align-items: center; gap: .45rem; }
.chat-chrome i { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.chat-question { margin: 1rem; padding: .9rem 1rem; border-left: 2px solid var(--gold); background: rgba(var(--gold-rgb), .05); }
.chat-tag { display: block; margin-bottom: .3rem; color: var(--gold-bright); font-family: var(--mono); font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; }
.chat-question p { color: var(--mist); font-size: .9rem; }
.chat-question strong { color: var(--danger); }
.chat-bubble {
  margin: .75rem 1rem;
  padding: 1rem 1.05rem;
  border: 1px solid rgba(var(--cyan-rgb), .16);
  border-radius: 4px;
  background: rgba(var(--cyan-rgb), .065);
}
.motion-ready .chat-bubble:not(.show) { opacity: 0; transform: translateY(8px); }
.chat-bubble.show { opacity: 1; transform: none; transition: opacity .55s var(--ease), transform .55s var(--ease); }
.chat-who { display: flex; align-items: center; gap: .5rem; margin-bottom: .5rem; color: var(--cyan-bright); font-family: var(--mono); font-size: .66rem; letter-spacing: .05em; text-transform: uppercase; }
.chat-avatar { display: grid; width: 22px; height: 22px; place-items: center; border-radius: 50%; background: var(--cyan); color: var(--night); }
.chat-bubble p { color: var(--paper-dim); font-size: .93rem; line-height: 1.65; }
.chat-bubble strong { color: var(--gold-bright); }
.chat-cite { display: block; margin-top: .7rem; color: var(--haze); font-size: .75rem; font-style: italic; }
.chat-typing { display: flex; gap: .35rem; margin: .8rem 1rem; }
.chat-typing.hide { display: none; }
.chat-typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); animation: typing 1.25s ease-in-out infinite; }
.chat-typing span:nth-child(2) { animation-delay: .15s; }
.chat-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 50% { transform: translateY(-3px); opacity: .35; } }
.chat-disclaimer { padding: .8rem 1rem; border-top: 1px solid rgba(255,255,255,.06); color: var(--haze); font-family: var(--mono); font-size: .64rem; line-height: 1.5; }

/* Method */
.method-ledger { border-top: 1px solid rgba(var(--cyan-rgb), .16); }
.method-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) 250px;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  min-height: 230px;
  padding: 2.2rem 0;
  border-bottom: 1px solid rgba(var(--cyan-rgb), .16);
}
.method-index { display: grid; gap: .45rem; align-self: start; }
.method-index span { color: var(--haze); font-family: var(--mono); font-size: .62rem; letter-spacing: .1em; }
.method-index b { color: var(--paper-dim); font-family: var(--display); font-size: 1.05rem; font-weight: 600; }
.method-content h3 { margin-bottom: .7rem; font-family: var(--display); font-size: clamp(1.7rem, 3vw, 2.35rem); font-weight: 600; line-height: 1.05; }
.method-content > p:last-child { max-width: 58ch; color: var(--mist); font-size: .96rem; }
.method-visual { position: relative; justify-self: end; width: 230px; height: 145px; }
.method-row--adaptive { align-items: start; }
.method-row--adaptive .method-content { padding-bottom: .25rem; }
.method-row--adaptive .method-visual--irt {
  --irt-user: 62%;
  --irt-next: 70%;
  grid-column: 2 / -1;
  justify-self: stretch;
  width: 100%;
  height: 142px;
  margin-top: -1rem;
  padding: 1rem 1.2rem .85rem;
  overflow: hidden;
  border: 1px solid rgba(var(--cyan-rgb), .22);
  border-radius: 18px;
  background:
    radial-gradient(circle at var(--irt-user) 58%, rgba(var(--gold-rgb), .1), transparent 18%),
    linear-gradient(135deg, rgba(18, 28, 49, .58), rgba(7, 10, 19, .22));
}
.irt-readout { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.irt-readout span,
.irt-readout strong {
  font-family: var(--mono);
  font-size: .57rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.irt-readout span { color: var(--cyan-bright); }
.irt-readout strong { color: var(--gold-bright); font-weight: 500; }
.irt-scale { position: relative; height: 62px; margin: .2rem 0 0; }
.irt-scale::before {
  content: "";
  position: absolute;
  top: 36px;
  right: 0;
  left: 0;
  height: 3px;
  border-radius: 99px;
  background: linear-gradient(90deg, #32536f, #6f795d 48%, #9a7563 72%, #7751a4);
  box-shadow: 0 0 16px rgba(var(--cyan-rgb), .08);
}
.irt-zone {
  position: absolute;
  z-index: 1;
  top: 25px;
  left: 43%;
  width: 30%;
  height: 25px;
  border-radius: 99px;
  background: radial-gradient(ellipse, rgba(var(--gold-rgb), .17), transparent 72%);
}
.irt-next {
  position: absolute;
  z-index: 2;
  top: 27px;
  left: var(--irt-next);
  display: grid;
  justify-items: center;
  color: var(--cyan-bright);
  transform: translateX(-50%);
  transition: left .35s var(--ease-out);
}
.irt-next i { width: 12px; height: 12px; border: 2px solid var(--cyan-bright); border-radius: 50%; background: var(--night); box-shadow: 0 0 12px rgba(var(--cyan-rgb), .45); }
.irt-next small { position: absolute; top: 21px; white-space: nowrap; font-family: var(--mono); font-size: .48rem; letter-spacing: .05em; }
.irt-you {
  position: absolute;
  z-index: 5;
  top: 4px;
  left: var(--irt-user);
  display: grid;
  justify-items: center;
  color: var(--gold-bright);
  font-family: var(--mono);
  font-size: .56rem;
  transform: translateX(-50%);
  transition: left .22s var(--ease-out);
}
.irt-you i { width: 19px; height: 19px; margin-top: 6px; border: 1px solid #ffe59f; border-radius: 50%; background: var(--gold-bright); box-shadow: 0 0 18px rgba(var(--gold-rgb), .7); }
.irt-scale input {
  position: absolute;
  z-index: 6;
  inset: 15px 0 auto;
  width: 100%;
  height: 42px;
  appearance: none;
  -webkit-appearance: none;
  cursor: ew-resize;
  background: transparent;
}
.irt-scale input::-webkit-slider-runnable-track { height: 3px; background: transparent; }
.irt-scale input::-webkit-slider-thumb { width: 28px; height: 28px; margin-top: -12px; border: 0; appearance: none; -webkit-appearance: none; background: transparent; }
.irt-scale input::-moz-range-track { height: 3px; border: 0; background: transparent; }
.irt-scale input::-moz-range-thumb { width: 28px; height: 28px; border: 0; background: transparent; }
.irt-scale:focus-within { filter: drop-shadow(0 0 7px rgba(var(--cyan-rgb), .28)); }
.irt-tick { position: absolute; z-index: 2; top: 31px; width: 12px; height: 12px; border: 2px solid var(--haze); border-radius: 50%; background: var(--night); }
.irt-tick--a { left: 22%; }
.irt-tick--b { left: 86%; }
.irt-labels { display: flex; justify-content: space-between; color: var(--haze); font-family: var(--mono); font-size: .52rem; }
.irt-labels b { color: var(--gold-bright); font-weight: 500; }
.method-visual--orbit { display: grid; place-items: center; }
.method-visual--orbit b { color: var(--paper-dim); font-family: var(--mono); font-size: .62rem; letter-spacing: .12em; }
.orbit { position: absolute; border: 1px solid rgba(var(--cyan-rgb), .28); border-radius: 50%; }
.orbit--a { width: 110px; height: 110px; animation: orbit-spin 14s linear infinite; }
.orbit--b { width: 160px; height: 68px; transform: rotate(-20deg); animation: orbit-spin-b 18s linear infinite; }
.orbit i { position: absolute; top: -4px; left: 50%; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 12px var(--gold); }
@keyframes orbit-spin { to { transform: rotate(360deg); } }
@keyframes orbit-spin-b { to { transform: rotate(340deg); } }
.method-visual--refs { display: grid; align-content: center; gap: .55rem; }
.method-visual--refs span { padding: .5rem .7rem; border-left: 2px solid rgba(var(--cyan-rgb), .5); background: rgba(var(--cyan-rgb), .05); color: var(--mist); font-family: var(--mono); font-size: .6rem; letter-spacing: .1em; }
.method-visual--refs span:nth-child(2) { margin-left: 1.2rem; border-color: rgba(var(--gold-rgb), .65); }
.method-visual--refs i { position: absolute; inset: 10px 0 10px auto; width: 1px; background: linear-gradient(transparent, var(--gold), transparent); }

/* Classes */
.class-gallery { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(var(--cyan-rgb), .16); border-bottom: 1px solid rgba(var(--cyan-rgb), .16); }
.class-profile { padding: 2.4rem clamp(1.3rem, 3vw, 2.4rem) 2.6rem; border-right: 1px solid rgba(var(--cyan-rgb), .16); }
.class-profile:last-child { border-right: 0; }
.class-medallion {
  position: relative;
  width: min(180px, 76%);
  aspect-ratio: 1;
  margin: 0 auto 2rem;
  border: 1px solid rgba(var(--class-color), .45);
  border-radius: 50%;
  box-shadow: 0 0 0 12px rgba(var(--class-color), .035), 0 20px 45px -25px rgba(var(--class-color), .55);
}
.class-medallion::before,
.class-medallion::after { content: ""; position: absolute; z-index: 2; inset: -7px 50% auto auto; width: 13px; height: 13px; border-radius: 50%; background: rgb(var(--class-color)); box-shadow: 0 0 15px rgba(var(--class-color), .6); }
.class-medallion::after { inset: auto auto -7px 50%; }
.class-medallion img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
  filter: grayscale(.7) sepia(.12) saturate(.7) contrast(1.08);
  transition: filter .45s ease, transform .5s var(--ease);
}
.class-profile:hover .class-medallion img,
.class-profile:focus-within .class-medallion img { filter: grayscale(0) saturate(1.08) contrast(1.03); transform: scale(1.035); }
.class-medallion > span { position: absolute; right: -7px; bottom: 12px; z-index: 3; display: grid; width: 35px; height: 35px; place-items: center; border: 1px solid rgba(var(--class-color), .6); border-radius: 50%; background: var(--night); color: rgb(var(--class-color)); font-family: var(--display); font-size: 1rem; font-weight: 700; }
.class-path { margin-bottom: .4rem; color: rgb(var(--class-color)); font-family: var(--mono); font-size: .65rem; letter-spacing: .12em; text-transform: uppercase; }
.class-profile h3 { margin-bottom: .8rem; font-family: var(--display); font-size: clamp(1.55rem, 2.5vw, 2.15rem); font-weight: 600; line-height: 1.05; }
.class-profile > p:not(.class-path) { min-height: 8.4rem; color: var(--mist); font-size: .91rem; line-height: 1.62; }
.class-profile ul { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1.2rem; list-style: none; }
.class-profile li { padding: .3rem .55rem; border: 1px solid rgba(var(--class-color), .25); color: var(--paper-dim); font-family: var(--mono); font-size: .58rem; }

/* Boss */
.boss {
  position: relative;
  display: grid;
  align-items: center;
  min-height: 760px;
  margin-top: clamp(4rem, 8vw, 7rem);
  overflow: hidden;
  border-top: 1px solid rgba(var(--violet-rgb), .3);
  border-bottom: 1px solid rgba(var(--violet-rgb), .3);
  background: #080711;
}
.boss-scene {
  position: absolute;
  inset: 0;
  background-image: url("assets/battle_final.webp");
  background-position: center 30%;
  background-size: cover;
  filter: saturate(.72) brightness(.32) contrast(1.13);
  transform: scale(1.03);
}
.boss-scene::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7,7,15,.96) 0%, rgba(7,7,15,.8) 44%, rgba(7,7,15,.28) 72%, rgba(7,7,15,.58) 100%),
    linear-gradient(180deg, #080711 0%, transparent 18%, transparent 76%, #080711 100%);
}
.boss-corruption {
  position: absolute;
  width: 52vw;
  height: 52vw;
  right: -12vw;
  top: 45%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--violet-rgb), .36), rgba(var(--violet-rgb), .06) 38%, transparent 68%);
  filter: blur(25px);
  transform: translateY(-50%);
}
.boss-character {
  position: absolute;
  z-index: 2;
  width: min(52vw, 720px);
  height: 95%;
  right: max(-4vw, calc((100vw - 1500px) / 2));
  bottom: 0;
  object-fit: contain;
  object-position: center bottom;
  filter: saturate(.82) contrast(1.1) drop-shadow(0 20px 70px rgba(var(--violet-rgb), .42));
  -webkit-mask-image: radial-gradient(ellipse 84% 92% at 64% 50%, #000 48%, rgba(0,0,0,.94) 68%, transparent 100%);
  mask-image: radial-gradient(ellipse 84% 92% at 64% 50%, #000 48%, rgba(0,0,0,.94) 68%, transparent 100%);
}
.boss-copy { position: relative; z-index: 4; width: var(--shell); margin: 0 auto; padding: 8rem 0; }
.boss-copy > * { max-width: 670px; }
.boss-label { margin-bottom: 2rem; }
.boss-label span { border-color: rgba(var(--violet-rgb), .5); color: #c99be9; }
.boss h2 { font-size: clamp(3rem, 6vw, 5.6rem); text-shadow: 0 8px 30px #000; }
.boss h2 em { color: #c99be9; }
.boss-copy > p:not(.boss-label) { margin: 1.4rem 0 2rem; color: var(--mist); font-size: 1.08rem; line-height: 1.7; }

/* FAQ */
.faq { display: grid; grid-template-columns: .72fr 1.28fr; gap: clamp(3rem, 8vw, 7rem); }
.faq-intro .section-label { margin-bottom: 1.25rem; }
.faq h2 { font-size: clamp(2.7rem, 4.6vw, 4.5rem); }
.faq-list { border-top: 1px solid rgba(var(--cyan-rgb), .18); }
.faq details { border-bottom: 1px solid rgba(var(--cyan-rgb), .18); }
.faq summary {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 78px;
  padding: 1.1rem 3.2rem 1.1rem 0;
  color: var(--paper-dim);
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.15;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary span,
.faq summary span::after { position: absolute; width: 15px; height: 1px; background: var(--gold); content: ""; }
.faq summary span { right: .8rem; top: 50%; }
.faq summary span::after { transform: rotate(90deg); transition: transform .25s ease; }
.faq details[open] summary { color: var(--parchment); }
.faq details[open] summary span::after { transform: rotate(0); }
.faq details > p { max-width: 66ch; padding: 0 3rem 1.4rem 0; color: var(--mist); font-size: .95rem; line-height: 1.65; }
.faq details a { color: var(--cyan-bright); text-decoration: underline; text-underline-offset: 3px; }

/* Finale */
.finale {
  position: relative;
  display: grid;
  min-height: 620px;
  place-items: center;
  overflow: hidden;
  border-top: 1px solid rgba(var(--gold-rgb), .12);
  background:
    radial-gradient(55% 72% at 50% 52%, rgba(var(--gold-rgb), .11), transparent 68%),
    linear-gradient(180deg, transparent, rgba(17,26,46,.24));
}
.finale-path { position: absolute; width: min(900px, 90vw); opacity: .36; }
.finale-path svg { width: 100%; overflow: visible; }
.finale-path path { fill: none; stroke: var(--cyan); stroke-width: 1; stroke-dasharray: 6 10; filter: drop-shadow(0 0 8px var(--cyan)); }
.finale-copy { position: relative; z-index: 2; width: var(--narrow); padding: 6rem 0; text-align: center; }
.finale .eyebrow { margin-bottom: 1.5rem; }
.finale h2 { font-size: clamp(3rem, 6vw, 5.6rem); }
.finale-copy > p:not(.eyebrow) { margin: 1.5rem auto 2rem; color: var(--mist); font-size: 1.08rem; }
.finale-note { display: block; margin-top: 1rem; color: var(--haze); font-family: var(--mono); font-size: .63rem; letter-spacing: .04em; }

/* Footer */
.footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem 3rem;
  align-items: center;
  width: var(--shell);
  margin: 0 auto;
  padding: 2.5rem 0 3rem;
  border-top: 1px solid rgba(var(--cyan-rgb), .13);
}
.footer-brand { display: grid; justify-items: start; gap: .38rem; }
.footer-tagline { color: var(--haze); font-size: .78rem; }
.footer-links { display: flex; gap: 1.2rem; color: var(--mist); font-size: .82rem; }
.footer-links a:hover { color: var(--cyan-bright); }
.footer > p { grid-column: 1 / -1; color: var(--haze); font-family: var(--mono); font-size: .6rem; }

/* Responsive */
@media (max-width: 1100px) {
  :root { --chapter-space-top: 1.125rem; --chapter-space-bottom: 3.5rem; }
  .hero-shell { grid-template-columns: minmax(0, 1fr) 340px; }
  .hero-atlas { right: -8vw; opacity: .8; }
  .oracle { gap: 3rem; }
  .oracle::before { top: 0; bottom: 1.25rem; }
  .method-row { grid-template-columns: 110px minmax(0, 1fr) 210px; }
  .method-visual { width: 205px; }
}

@media (max-width: 900px) {
  :root { --shell: min(100% - 36px, 760px); --narrow: min(100% - 36px, 720px); }
  .nav { padding-inline: 18px; }
  .nav-links { display: none; }
  .hero { min-height: auto; }
  .hero-shell { grid-template-columns: 1fr; min-height: auto; padding: 8.5rem 0 5.5rem; }
  .hero-copy { max-width: 720px; }
  .hero-title { max-width: 720px; }
  .hero-atlas { width: 78vw; height: 700px; right: -25vw; top: 27rem; opacity: .34; }
  .hero-console { width: min(100%, 560px); margin-top: 1rem; justify-self: start; }
  .proof-ledger { grid-template-columns: repeat(2, 1fr); }
  .proof-item:nth-child(2) { border-right: 0; }
  .proof-item:nth-child(-n+2) { border-bottom: 1px solid rgba(var(--cyan-rgb), .14); }
  .section-intro { grid-template-columns: 1fr; gap: 1.4rem; }
  .route { grid-template-columns: repeat(2, 1fr); gap: 2.5rem 1.4rem; }
  .route-line { display: none; }
  .route-step { padding: 1.4rem 1.3rem; border-left: 1px solid rgba(var(--cyan-rgb), .25); background: linear-gradient(90deg, rgba(var(--cyan-rgb), .045), transparent); }
  .route-step:nth-of-type(even) .route-dot,
  .route-dot { margin: 1rem 0 1.3rem; }
  .oracle { grid-template-columns: 1fr; }
  .oracle > .chat { margin-top: 0; }
  .oracle-copy { max-width: 680px; }
  .chat { width: 100%; }
  .method-row { grid-template-columns: 90px 1fr; }
  .method-visual { display: none; }
  .class-gallery { grid-template-columns: 1fr; }
  .class-profile { display: grid; grid-template-columns: 175px 1fr; column-gap: 2rem; border-right: 0; border-bottom: 1px solid rgba(var(--cyan-rgb), .16); }
  .class-profile:last-child { border-bottom: 0; }
  .class-medallion { grid-row: 1 / span 5; width: 160px; margin: 0; }
  .class-profile > p:not(.class-path) { min-height: 0; }
  .boss { min-height: 720px; }
  .boss-character { right: -19vw; width: 72vw; opacity: .72; }
  .boss-copy > * { max-width: 58%; }
  .faq { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  :root {
    --shell: calc(100% - 28px);
    --narrow: calc(100% - 28px);
    --chapter-space-top: 1rem;
    --chapter-space-bottom: 3rem;
  }
  body { font-size: 16px; }
  body::before { display: none; }
  .nav { min-height: 64px; padding: .6rem 14px; background: rgba(var(--night-rgb), .7); backdrop-filter: blur(12px); }
  .nav.is-stuck { min-height: 60px; }
  .nav-word { font-size: 1rem; letter-spacing: .09em; }
  .nav-actions { gap: .55rem; }
  .nav-login { min-height: 44px; padding-inline: .2rem; font-size: .78rem; }
  .nav-cta { min-height: 44px; padding: .45rem .75rem; font-size: .78rem; }
  .hero-shell { padding: 7.3rem 0 4.5rem; }
  .hero-title { font-size: clamp(3.35rem, 16vw, 5.1rem); line-height: .89; }
  .hero-sub { font-size: 1.08rem; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .btn-text { border: 1px solid rgba(var(--cyan-rgb), .22); }
  .hero-trust { gap: .65rem 1rem; }
  .hero-atlas { width: 130vw; right: -64vw; top: 27rem; opacity: .28; }
  .hero-console { backdrop-filter: blur(10px); }
  .console-head { padding-inline: 1rem; }
  .console-steps li { padding-inline: 1rem; }
  .console-foot { display: none; }
  .proof-item { min-height: 125px; padding: 1.25rem; }
  .proof-item dt { font-size: 2.35rem; }
  .proof-item--access dt { font-size: .7rem; }
  .proof-item--access dd { font-size: 1.05rem; }
  .oracle::before { top: 0; bottom: .75rem; }
  .oracle-copy .section-label,
  .faq-intro .section-label { margin-bottom: .75rem; }
  .section-copy h2, .oracle h2, .faq h2, .boss h2, .finale h2 { font-size: clamp(2.65rem, 13vw, 4.1rem); }
  .route { grid-template-columns: 1fr; gap: 1rem; }
  .route-step { padding: 1.2rem 1.1rem; }
  .oracle-seal { grid-template-columns: 82px 1fr; }
  .oracle-seal img { width: 82px; height: 82px; }
  .chat-question, .chat-bubble { margin-inline: .7rem; padding: .85rem; }
  .chat-bubble p { font-size: .87rem; }
  .chat-cite { font-size: .68rem; }
  .method-row { grid-template-columns: 1fr; min-height: 0; gap: 1rem; padding: 1.7rem 0; }
  .method-index { grid-template-columns: auto 1fr; align-items: center; }
  .class-profile { display: block; padding: 2.2rem .5rem; }
  .class-medallion { width: 155px; margin: 0 0 1.7rem; }
  .boss { min-height: 760px; align-items: end; }
  .boss-scene { background-position: 42% center; }
  .boss-scene::after { background: linear-gradient(180deg, rgba(7,7,15,.28), rgba(7,7,15,.86) 45%, #080711 93%); }
  .boss-character { width: 105vw; height: 68%; right: -40vw; top: -1rem; bottom: auto; opacity: .72; }
  .boss-copy { padding: 20rem 0 5rem; }
  .boss-copy > * { max-width: 100%; }
  .boss-copy > p:not(.boss-label) { font-size: 1rem; }
  .faq summary { min-height: 72px; font-size: 1.13rem; }
  .finale { min-height: 590px; }
  .finale-copy { padding: 5rem 0 7rem; }
  .footer { grid-template-columns: 1fr; padding-bottom: 3rem; }
  .footer-links { flex-wrap: wrap; }
  .footer > p { grid-column: auto; }
}

@media (max-width: 390px) {
  .nav-word { font-size: .91rem; }
  .nav-actions { gap: .38rem; }
  .nav-login { font-size: .74rem; }
  .nav-cta { padding-inline: .62rem; }
  .hero-title { font-size: 3.25rem; }
}

@media (max-height: 650px) and (min-width: 901px) {
  .hero-shell { padding-top: 6.5rem; padding-bottom: 4rem; }
  .hero-title { font-size: clamp(3.5rem, 7vw, 5.4rem); }
  .hero-console { margin-top: 4rem; transform: scale(.9); transform-origin: right center; }
}

/* Assinatura tipográfica — a marca vive apenas no contraste Nefro / Quest. */
.nav-brand { min-height: 44px; gap: 0; }
.nav-word {
  display: inline-flex;
  align-items: baseline;
  overflow: visible;
  font-variant-caps: normal;
  font-size: 1.5rem;
  letter-spacing: .012em;
  padding-inline-end: 0;
}
.nav-word b { font-weight: 700; }
.nav-word .wordmark-quest {
  display: inline;
  margin-left: .015em;
  color: var(--gold-bright);
  font-size: 1.02em;
  font-style: italic;
  font-weight: 600;
}

/* O conteúdo permanece legível mesmo quando uma captura não dispara o observer. */
.motion-ready .reveal-up:not(.in) { opacity: .94; transform: translateY(16px); }
.motion-ready .section-label.reveal-up:not(.in) { transform: none; }

.hero {
  min-height: max(860px, 100svh);
  background:
    radial-gradient(58% 88% at 78% 44%, rgba(var(--clinical-rgb), .28), transparent 68%),
    radial-gradient(48% 70% at 14% 28%, rgba(var(--gold-rgb), .1), transparent 70%),
    linear-gradient(102deg, #080b15 0%, #080b15 43%, #0b1929 57%, #08111f 100%);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0 -8% 0 43%;
  z-index: 1;
  border-left: 1px solid rgba(var(--cyan-rgb), .2);
  background:
    radial-gradient(circle at 38% 42%, rgba(var(--cyan-rgb), .18), transparent 34%),
    radial-gradient(circle at 68% 68%, rgba(var(--clinical-rgb), .22), transparent 45%),
    linear-gradient(145deg, rgba(14, 43, 69, .76), rgba(7, 15, 28, .08) 76%);
  clip-path: ellipse(72% 70% at 62% 50%);
  pointer-events: none;
}
.hero-shell {
  grid-template-columns: minmax(0, .94fr) minmax(510px, 1.06fr);
  gap: clamp(1rem, 3vw, 3rem);
  min-height: max(860px, 100svh);
  padding-top: 7.4rem;
  padding-bottom: 4.6rem;
}
.hero-copy { position: relative; z-index: 5; max-width: 655px; }
.hero .eyebrow { display: flex; flex-wrap: wrap; gap: .25rem .7rem; }
.hero .eyebrow i { color: var(--cyan-bright); font-style: normal; opacity: .65; }
.hero-sub { max-width: 63ch; }

.hero-lab {
  --flow-x: 0px;
  --flow-y: 0px;
  position: relative;
  z-index: 2;
  align-self: center;
  width: 100%;
  min-height: 720px;
  perspective: 1000px;
  isolation: isolate;
}
.hero-lab::before {
  content: "";
  position: absolute;
  inset: 7% 2% 8% 9%;
  z-index: -1;
  border: 1px solid rgba(var(--cyan-rgb), .08);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--cyan-rgb), .09), transparent 66%);
  box-shadow: inset 0 0 70px rgba(var(--cyan-rgb), .035);
}
.lab-readout {
  position: absolute;
  z-index: 6;
  top: 1rem;
  right: .5rem;
  left: 1.4rem;
  display: flex;
  justify-content: space-between;
  color: var(--haze);
  font-family: var(--mono);
  font-size: .57rem;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.lab-readout span { color: var(--cyan-bright); }
.lab-readout i { font-style: normal; }
.hero-atlas {
  position: absolute;
  z-index: 1;
  top: 1.8rem;
  right: 1.2rem;
  width: min(100%, 585px);
  height: 650px;
  opacity: 1;
  isolation: isolate;
  touch-action: pan-y;
  transform: none;
}
.hero-atlas.is-tracing { cursor: crosshair; }
.nephron-map { position: relative; z-index: 1; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.atlas-grid { opacity: .15; }
.atlas-grid path { fill: none; stroke: var(--cyan); stroke-width: .55; stroke-dasharray: 1 10; }
.nephron-halo { fill: url("#capsule-glow"); }
.nephron-capsule { fill: none; stroke: rgba(var(--gold-rgb), .58); stroke-width: 2.2; }
.nephron-capsule--inner { stroke: rgba(var(--cyan-rgb), .45); stroke-dasharray: 3 9; }
.nephron-shadow { fill: none; stroke: rgba(var(--cyan-rgb), .07); stroke-width: 23; }
.nephron-path,
.nephron-flow,
.nephron-focus path {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.nephron-path { stroke: url("#nephron-gradient"); stroke-width: 3; opacity: .76; filter: drop-shadow(0 0 8px rgba(var(--cyan-rgb), .46)); }
.nephron-flow {
  stroke: #dffcff;
  stroke-width: 2.3;
  stroke-dasharray: 1 16;
  filter: url("#nephron-glow");
  animation: atlas-flow 2.4s linear infinite;
}
.nephron-focus circle,
.nephron-focus path { fill: none; stroke: var(--gold-bright); stroke-width: 5; filter: url("#nephron-glow"); }
.nephron-probe {
  fill: #fff;
  stroke: var(--gold-bright);
  stroke-width: 3;
  filter: url("#nephron-glow");
  animation: probe-breathe 1.8s ease-in-out infinite;
}
.nephron-probe-halo { fill: url("#probe-halo"); opacity: .72; pointer-events: none; }
.atlas-caption { right: 1rem; bottom: .8rem; left: auto; color: rgba(255,255,255,.42); }

.hero-console {
  position: absolute;
  z-index: 4;
  right: 0;
  bottom: 1.4rem;
  width: min(82%, 470px);
  margin: 0;
  overflow: hidden;
  border-color: rgba(var(--cyan-rgb), .35);
  background:
    radial-gradient(circle at 18% 0, rgba(var(--clinical-rgb), .075), transparent 12rem),
    linear-gradient(155deg, rgba(17, 26, 46, .74), rgba(6, 10, 19, .86));
  box-shadow: 0 28px 80px rgba(0,0,0,.46), 0 0 0 1px rgba(var(--gold-rgb), .07);
  backdrop-filter: blur(6px) saturate(1.12);
  -webkit-backdrop-filter: blur(6px) saturate(1.12);
  transform: translateZ(0);
}
.console-meter span { width: var(--stage-progress, 25%); transition: width .5s var(--ease-out); }
.console-steps li {
  cursor: default;
  transition: background .3s ease, color .3s ease, opacity .3s ease;
}
.console-steps li:hover,
.console-steps li:focus-visible,
.console-steps li.is-current { background: linear-gradient(90deg, rgba(var(--cyan-rgb), .12), rgba(var(--gold-rgb), .035)); }
.console-steps li:focus-visible { outline-offset: -3px; }
.console-steps li.is-complete { opacity: .75; }

@keyframes atlas-flow { to { stroke-dashoffset: -68; } }
@keyframes probe-breathe { 50% { r: 7px; opacity: .72; } }

.proof-item dd small {
  display: block;
  margin-top: .28rem;
  color: var(--mist);
  font-family: var(--mono);
  font-size: .58rem;
  letter-spacing: .035em;
}

/* Lúmen Oracular */
.oracle-seal { grid-template-columns: 142px minmax(0, 1fr); align-items: center; }
.oracle-core {
  position: relative;
  display: grid;
  width: 132px;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(var(--cyan-rgb), .28);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--cyan-rgb), .16), rgba(var(--night-rgb), .9) 68%);
  box-shadow: inset 0 0 34px rgba(var(--cyan-rgb), .08), 0 0 45px rgba(var(--cyan-rgb), .08);
  overflow: hidden;
}
.oracle-core::before,
.oracle-core::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px dashed rgba(var(--gold-rgb), .28);
  border-radius: 50%;
  animation: oracle-ring 18s linear infinite;
}
.oracle-core::after { inset: 24px; border-color: rgba(var(--cyan-rgb), .25); animation-direction: reverse; animation-duration: 11s; }
.oracle-core svg { width: 100%; height: 100%; }
.oracle-core__scope,
.oracle-core__ring,
.oracle-core__flow,
.oracle-core__axis { fill: none; vector-effect: non-scaling-stroke; }
.oracle-core__scope { stroke: rgba(var(--gold-rgb), .22); stroke-width: 1; }
.oracle-core__ring { stroke: rgba(var(--cyan-rgb), .28); stroke-width: 1; stroke-dasharray: 2 8; transform-origin: 90px 90px; animation: oracle-ring 13s linear infinite; }
.oracle-core__ring--b { stroke: rgba(var(--gold-rgb), .34); animation-direction: reverse; animation-duration: 8s; }
.oracle-core__flow { stroke: var(--gold-bright); stroke-width: 2.1; stroke-dasharray: 2 10; animation: atlas-flow 2.2s linear infinite; }
.oracle-core__axis { stroke: rgba(255,255,255,.22); stroke-width: 1; }
.oracle-core__particle { fill: var(--gold-bright); filter: drop-shadow(0 0 5px var(--gold)); }
.oracle-core__particle--a { animation: oracle-pulse 2.3s ease-in-out infinite; }
.oracle-core__particle--b { animation: oracle-pulse 2.3s .8s ease-in-out infinite; }
.oracle-core__monogram { position: absolute; color: var(--parchment); font-family: var(--display); font-size: .9rem; letter-spacing: .12em; text-shadow: 0 0 15px var(--cyan); }
.oracle-seal:hover .oracle-core { border-color: rgba(var(--gold-rgb), .48); transform: rotateX(4deg) rotateY(-4deg); }
.oracle-core { transition: border-color .35s ease, transform .55s var(--ease-out); }
.oracle-core.is-thinking .oracle-core__ring { animation-duration: 3.4s; }
.oracle-core.is-answering { box-shadow: inset 0 0 34px rgba(var(--gold-rgb), .12), 0 0 50px rgba(var(--gold-rgb), .18); }

@keyframes oracle-ring { to { transform: rotate(360deg); } }
@keyframes oracle-pulse { 50% { opacity: .35; transform: scale(1.8); transform-origin: center; } }

/* Camadas de evidência: fichas de um atlas, não botões. */
.method-visual--refs { overflow: hidden; padding: .85rem 1rem; }
.method-visual--refs span {
  display: grid;
  gap: .08rem;
  padding: .55rem .7rem;
  transition: transform .55s var(--ease-out), background .35s ease, color .35s ease;
}
.method-visual--refs span small { color: var(--haze); font-family: var(--mono); font-size: .48rem; letter-spacing: .14em; }
.method-visual--refs span b { color: var(--paper-dim); font-family: var(--body); font-size: .78rem; font-weight: 600; letter-spacing: 0; text-transform: none; }
.method-row:hover .method-visual--refs span:nth-child(1),
.method-row:focus-within .method-visual--refs span:nth-child(1) { transform: translateX(-13px); }
.method-row:hover .method-visual--refs span:nth-child(2),
.method-row:focus-within .method-visual--refs span:nth-child(2) { transform: translateX(15px); }
.method-row:hover .method-visual--refs span:nth-child(3),
.method-row:focus-within .method-visual--refs span:nth-child(3) { transform: translateX(-6px); }
.method-visual--refs i { right: auto; left: 0; width: 100%; height: 1px; background: linear-gradient(90deg, transparent, var(--cyan-bright), var(--gold-bright), transparent); opacity: .7; animation: evidence-scan 3.2s ease-in-out infinite; }
@keyframes evidence-scan { 0%, 100% { transform: translateY(12px); opacity: 0; } 50% { transform: translateY(126px); opacity: .85; } }

/* Ascensão pelo Fluxo — a progressão real do jogo vira prova visual. */
.classes .section-intro { margin-bottom: 2.4rem; }
.class-evolution-summary {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: clamp(.8rem, 2vw, 1.5rem);
  align-items: center;
  max-width: 790px;
  margin: 0 0 2.6rem auto;
  padding: 1rem 1.2rem;
  border-top: 1px solid rgba(var(--cyan-rgb), .18);
  border-bottom: 1px solid rgba(var(--cyan-rgb), .18);
  background: linear-gradient(90deg, transparent, rgba(var(--cyan-rgb), .04), transparent);
}
.class-evolution-summary span { display: flex; align-items: baseline; gap: .55rem; }
.class-evolution-summary b { color: var(--gold-bright); font-family: var(--display); font-size: 2rem; font-weight: 500; line-height: 1; }
.class-evolution-summary small { color: var(--mist); font-family: var(--mono); font-size: .57rem; letter-spacing: .055em; text-transform: uppercase; }
.class-evolution-summary > i { width: 3px; height: 3px; border-radius: 50%; background: var(--cyan-bright); box-shadow: 0 0 9px var(--cyan); }

.class-gallery { margin-top: 0; background: linear-gradient(180deg, rgba(var(--cyan-rgb), .018), transparent 42%); }
.class-profile {
  position: relative;
  overflow: hidden;
  padding: 2rem clamp(1.15rem, 2.4vw, 2rem) 2.5rem;
  transition: background .45s ease, transform .45s var(--ease-out);
}
.class-profile::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(70% 34% at 50% 14%, rgba(var(--class-color), .15), transparent 72%);
  opacity: .65;
  transition: opacity .4s ease;
}
.class-profile:hover,
.class-profile:focus-visible { background: rgba(var(--class-color), .04); }
.class-profile:hover::before,
.class-profile:focus-visible::before { opacity: 1; }
.class-profile:focus-visible { outline-offset: -3px; }

.class-evolution {
  position: relative;
  height: 235px;
  margin: 0 -.35rem 1.55rem;
  isolation: isolate;
  perspective: 800px;
}
.class-evolution::before {
  content: "";
  position: absolute;
  inset: 18% 8% 12%;
  z-index: -1;
  border: 1px dashed rgba(var(--class-color), .2);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--class-color), .09), transparent 68%);
}
.evolution-stage {
  position: absolute;
  width: 47%;
  max-width: 168px;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid rgba(var(--class-color), .45);
  border-radius: 10px 10px 4px 4px;
  background: var(--night);
  box-shadow: 0 18px 38px -22px #000, 0 0 0 5px rgba(var(--class-color), .025);
  transform-origin: 50% 100%;
  transition: left .62s var(--ease-out), top .62s var(--ease-out), transform .62s var(--ease-out), opacity .4s ease, filter .4s ease;
}
.evolution-stage img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: filter .45s ease, transform .7s var(--ease-out); }
.evolution-stage figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .4rem;
  min-height: 31px;
  padding: .35rem .5rem;
  background: linear-gradient(90deg, rgba(var(--night-rgb), .95), rgba(var(--night-rgb), .72));
  color: var(--paper-dim);
  font-family: var(--mono);
  text-transform: uppercase;
}
.evolution-stage figcaption b { color: rgb(var(--class-color)); font-size: .64rem; }
.evolution-stage figcaption span { font-size: .48rem; letter-spacing: .08em; }
.evolution-stage--one { z-index: 1; left: 17%; top: 44px; opacity: .58; filter: saturate(.55); transform: rotate(-7deg) scale(.86); }
.evolution-stage--five { z-index: 2; left: 29%; top: 23px; opacity: .78; filter: saturate(.75); transform: rotate(-2deg) scale(.93); }
.evolution-stage--ten { z-index: 3; left: 41%; top: 2px; transform: rotate(4deg); }
.class-profile:hover .evolution-stage--one,
.class-profile:focus-visible .evolution-stage--one { left: 0; top: 25px; opacity: 1; filter: saturate(.9); transform: rotate(-4deg) scale(.91); }
.class-profile:hover .evolution-stage--five,
.class-profile:focus-visible .evolution-stage--five { left: 27%; top: 13px; opacity: 1; filter: saturate(1); transform: rotate(0) scale(.96); }
.class-profile:hover .evolution-stage--ten,
.class-profile:focus-visible .evolution-stage--ten { left: 54%; top: 2px; transform: rotate(4deg) scale(1.02); }
.class-profile:hover .evolution-stage img,
.class-profile:focus-visible .evolution-stage img { filter: contrast(1.03); }
.class-profile:hover .evolution-stage--ten img,
.class-profile:focus-visible .evolution-stage--ten img { transform: scale(1.035); }
.evolution-flow {
  position: absolute;
  right: 4%;
  bottom: 3px;
  left: 4%;
  height: 1px;
  overflow: hidden;
  background: rgba(var(--class-color), .15);
}
.evolution-flow i {
  display: block;
  width: 34%;
  height: 100%;
  background: linear-gradient(90deg, rgb(var(--class-color)), var(--gold-bright));
  box-shadow: 0 0 9px rgba(var(--class-color), .7);
  transition: width .85s var(--ease-out);
}
.class-profile:hover .evolution-flow i,
.class-profile:focus-visible .evolution-flow i { width: 100%; }
.class-profile__body { position: relative; z-index: 2; }
.class-profile h3 { margin-bottom: .62rem; }
.class-mantra { min-height: 3.9rem; color: var(--parchment); font-family: var(--display); font-size: 1.08rem; font-weight: 600; line-height: 1.25; }
.class-detail { min-height: 4.7rem; margin-top: .65rem; color: var(--mist); font-size: .86rem; line-height: 1.55; }
.class-profile ul { margin-top: .9rem; }
.class-journey-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  max-width: 850px;
  margin: 1.6rem auto 0;
  color: var(--haze);
  font-size: .86rem;
  text-align: center;
}
.class-journey-note span { color: var(--gold-bright); }

/* Confronto reconstruído em duas zonas estáveis. */
.boss {
  min-height: 780px;
  overflow: hidden;
  background:
    radial-gradient(58% 88% at 78% 50%, rgba(var(--violet-rgb), .25), transparent 68%),
    linear-gradient(135deg, #080711, #0b0c18 52%, #100a1c);
}
.boss-shell {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(430px, .85fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  width: var(--shell);
  min-height: 780px;
  margin: 0 auto;
}
.boss-copy { z-index: 5; width: auto; margin: 0; padding: 7rem 0; }
.boss-copy > * { max-width: 650px; }
.boss-stage {
  --flow-x: 0px;
  --flow-y: 0px;
  position: relative;
  align-self: stretch;
  min-height: 680px;
  transform: translate3d(var(--flow-x), var(--flow-y), 0);
  transition: transform .24s ease-out;
  isolation: isolate;
}
.boss-stage::before {
  content: "";
  position: absolute;
  inset: 12% -15% 8% -12%;
  z-index: -2;
  background: radial-gradient(circle, rgba(var(--violet-rgb), .28), transparent 65%);
  filter: blur(18px);
}
.boss-portal {
  position: absolute;
  left: 50%;
  top: 49%;
  border: 1px solid rgba(var(--violet-rgb), .48);
  border-radius: 47% 53% 51% 49%;
  transform: translate(-50%, -50%);
  animation: boss-orbit 15s linear infinite;
  animation-play-state: paused;
  z-index: 3;
}
.boss.is-active .boss-portal { animation-play-state: running; }
.boss-portal--outer { width: 590px; max-width: 110%; aspect-ratio: 1; border-style: dashed; }
.boss-portal--middle { width: 470px; max-width: 88%; aspect-ratio: 1; border-color: rgba(var(--cyan-rgb), .24); animation-direction: reverse; animation-duration: 11s; }
.boss-portal--inner { width: 350px; max-width: 68%; aspect-ratio: 1; border-color: rgba(var(--gold-rgb), .25); animation-duration: 8s; }
.boss-current { position: absolute; inset: 5% -5%; z-index: -1; width: 110%; height: 90%; opacity: .38; }
.boss-current path { fill: none; stroke: #c99be9; stroke-width: 1.4; stroke-dasharray: 3 13; animation: atlas-flow 3.2s linear infinite; animation-play-state: paused; }
.boss.is-active .boss-current path { animation-play-state: running; }
.boss-character {
  position: absolute;
  z-index: 1;
  inset: 3% -9% 1%;
  width: 118%;
  height: 96%;
  object-fit: cover;
  object-position: 52% center;
  opacity: .72;
  filter: saturate(.82) contrast(1.13) drop-shadow(0 26px 70px rgba(var(--violet-rgb), .45));
  mix-blend-mode: lighten;
  -webkit-mask-image: radial-gradient(ellipse 76% 72% at 52% 50%, #000 32%, rgba(0,0,0,.94) 52%, transparent 82%);
  mask-image: radial-gradient(ellipse 76% 72% at 52% 50%, #000 32%, rgba(0,0,0,.94) 52%, transparent 82%);
  transform: none;
}
.boss-stage__label {
  position: absolute;
  z-index: 4;
  right: 0;
  bottom: 3.5rem;
  left: 0;
  color: rgba(224,201,242,.65);
  font-family: var(--mono);
  font-size: .56rem;
  letter-spacing: .16em;
  text-align: center;
}
@keyframes boss-orbit { to { transform: translate(-50%, -50%) rotate(360deg); } }

/* Câmara da Filtração — todo o movimento converge para o CTA. */
.finale {
  min-height: 760px;
  isolation: isolate;
  background:
    radial-gradient(42% 58% at 50% 50%, rgba(var(--gold-rgb), .14), transparent 72%),
    radial-gradient(65% 82% at 50% 54%, rgba(var(--cyan-rgb), .07), transparent 74%),
    linear-gradient(180deg, var(--night), #09101d 50%, var(--night));
}
.finale-portal {
  --flow-x: 0px;
  --flow-y: 0px;
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  transform: translate3d(var(--flow-x), var(--flow-y), 0) scale(1.035);
  transition: transform .25s ease-out;
}
.finale-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  border: 1px solid rgba(var(--cyan-rgb), .22);
  border-radius: 49% 51% 46% 54%;
  transform: translate(-50%, -50%);
  animation: portal-orbit 20s linear infinite;
  animation-play-state: paused;
}
.finale.is-active .finale-ring { animation-play-state: running; }
.finale-ring--one { width: min(880px, 82vw); aspect-ratio: 1.45; border-style: dashed; }
.finale-ring--two { width: min(660px, 66vw); aspect-ratio: 1.25; border-color: rgba(var(--gold-rgb), .32); animation-direction: reverse; animation-duration: 14s; }
.finale-ring--three { width: min(430px, 48vw); aspect-ratio: 1; border-color: rgba(var(--cyan-rgb), .35); animation-duration: 9s; }
.finale-path { position: absolute; inset: 14% -4%; width: 108%; height: 72%; opacity: .62; overflow: visible; }
.finale-path__shadow,
.finale-path__flow { fill: none; stroke-linecap: round; }
.finale-path__shadow { stroke: rgba(var(--cyan-rgb), .08); stroke-width: 24; }
.finale-path__flow { stroke: url("#nephron-gradient"); stroke: var(--cyan-bright); stroke-width: 2; stroke-dasharray: 3 17; filter: drop-shadow(0 0 8px var(--cyan)); animation: finale-flow 3.4s linear infinite; animation-play-state: paused; }
.finale.is-active .finale-path__flow { animation-play-state: running; }
.flow-particle {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  padding: .2rem .4rem;
  border: 1px solid rgba(var(--cyan-rgb), .25);
  border-radius: 999px;
  background: rgba(var(--night-rgb), .64);
  color: var(--cyan-bright);
  font-family: var(--mono);
  font-size: .57rem;
  offset-path: ellipse(42% 29% at 50% 50%);
  offset-rotate: 0deg;
  animation: particle-orbit 15s linear infinite;
  animation-play-state: paused;
}
.finale.is-active .flow-particle { animation-play-state: running; }
.flow-particle--b { color: var(--gold-bright); animation-delay: -4s; animation-duration: 18s; }
.flow-particle--c { animation-delay: -8s; animation-duration: 22s; }
.flow-particle--d { color: var(--paper-dim); animation-delay: -12s; animation-duration: 25s; }
.finale-core {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  width: 112px;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(var(--gold-rgb), .45);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--gold-rgb), .14), rgba(var(--night-rgb), .82) 65%);
  box-shadow: 0 0 80px rgba(var(--gold-rgb), .2), inset 0 0 30px rgba(var(--cyan-rgb), .11);
  transform: translate(-50%, -50%);
  transition: transform .6s var(--ease-out), box-shadow .6s ease;
}
.finale-core i { position: absolute; inset: 12px; border: 1px dashed rgba(var(--cyan-rgb), .48); border-radius: 50%; animation: oracle-ring 8s linear infinite; animation-play-state: paused; }
.finale.is-active .finale-core i { animation-play-state: running; }
.finale-core b { color: var(--parchment); font-family: var(--display); font-size: 1.35rem; letter-spacing: .12em; }
.finale-copy { z-index: 4; width: min(900px, calc(100% - 36px)); }
.finale-copy::before { content: ""; position: absolute; z-index: -1; inset: 20% -8%; background: radial-gradient(ellipse, rgba(var(--night-rgb), .84), transparent 70%); filter: blur(8px); }
.finale:hover .finale-core,
.finale:focus-within .finale-core { transform: translate(-50%, -50%) scale(1.13); box-shadow: 0 0 110px rgba(var(--gold-rgb), .3), inset 0 0 38px rgba(var(--cyan-rgb), .18); }
@keyframes portal-orbit { to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes finale-flow { to { stroke-dashoffset: -80; } }
@keyframes particle-orbit { to { offset-distance: 100%; } }

@media (max-width: 1080px) {
  .hero-shell { grid-template-columns: 1fr; max-width: 820px; min-height: auto; padding-top: 8.5rem; padding-bottom: 5.5rem; }
  .hero-copy { max-width: 760px; }
  .hero-lab { width: min(100%, 720px); min-height: 690px; justify-self: center; }
  .hero-atlas { top: 1.8rem; right: 4%; left: auto; width: 600px; max-width: 94%; opacity: 1; transform: none; }
  .boss-shell { grid-template-columns: minmax(0, 1fr) minmax(390px, .8fr); }
}

@media (max-height: 820px) and (min-width: 1081px) {
  .hero-shell { padding-top: 6.4rem; padding-bottom: 3rem; }
  .hero-title { margin-bottom: 1.25rem; font-size: clamp(3.7rem, 6.5vw, 5.9rem); line-height: .89; }
  .hero-sub { margin-bottom: 1.35rem; font-size: 1.05rem; line-height: 1.5; }
  .hero-actions { margin-bottom: 1.15rem; }
  .hero-lab { min-height: 650px; }
  .hero-atlas { top: .8rem; height: 600px; }
  .hero-console { bottom: .2rem; transform: scale(.94); transform-origin: right bottom; }
}

@media (max-width: 900px) {
  .method-row--adaptive .method-visual--irt {
    display: block;
    grid-column: 2;
    width: 100%;
    height: 145px;
    margin-top: .5rem;
  }
  .method-row:last-child .method-visual--refs {
    display: grid;
    grid-column: 2;
    width: 100%;
    height: 150px;
  }
  .boss { min-height: auto; }
  .boss-shell { grid-template-columns: 1fr; min-height: auto; }
  .boss-stage { grid-row: 1; min-height: 520px; }
  .boss-copy { grid-row: 2; padding: 0 0 6rem; }
  .boss-copy > * { max-width: 100%; }
  .boss-portal--outer { width: 540px; }
  .class-evolution-summary { margin-right: auto; }
  .class-profile { display: grid; grid-template-columns: minmax(280px, .82fr) minmax(0, 1fr); gap: 2rem; align-items: center; padding: 2rem; }
  .class-evolution { width: 100%; margin: 0; }
  .class-profile__body { align-self: center; }
  .class-mantra, .class-detail { min-height: 0; }
}

@media (max-width: 760px) {
  .hero-shell { width: var(--shell); padding-top: 7.6rem; }
  .hero-lab { min-height: 650px; }
  .hero-atlas { top: 1.4rem; right: auto; left: -3%; width: 106%; height: 610px; opacity: 1; transform: none; }
  .lab-readout { right: .2rem; left: .2rem; }
  .atlas-caption { display: none; }
  .method-visual--refs { display: grid; grid-column: 2; width: 100%; height: 150px; }
  .boss-stage { min-height: 510px; }
  .boss-portal--outer { width: 520px; }
  .boss-character { width: min(500px, 96vw); height: 96%; }
  .finale { min-height: 680px; }
  .finale-ring--one { width: 110vw; }
  .finale-ring--two { width: 88vw; }
  .finale-ring--three { width: 62vw; }
  .flow-particle { offset-path: ellipse(44% 24% at 50% 50%); }
}

@media (max-width: 640px) {
  .nav-word { font-size: 1.04rem; letter-spacing: .006em; }
  .hero-title { font-size: clamp(3.2rem, 15vw, 4.8rem); }
  .hero .eyebrow { max-width: 36ch; font-size: .64rem; line-height: 1.75; }
  .hero-lab { min-height: 605px; margin-top: .5rem; }
  .hero-atlas { left: -8%; width: 116%; height: 555px; }
  .lab-readout i { display: none; }
  .flow-node-control { width: 48px; height: 48px; margin: -24px 0 0 -24px; }
  .flow-insight,
  .flow-insight.is-left {
    top: auto !important;
    right: 1.8rem;
    bottom: .35rem;
    left: 1.8rem !important;
    width: auto;
    padding: .85rem 0 .15rem;
    text-align: left;
    transform: none;
    border-top: 1px solid rgba(var(--cyan-rgb), .22);
    background: linear-gradient(180deg, rgba(var(--night-rgb), .86), rgba(var(--night-rgb), .48));
  }
  .flow-insight::before,
  .flow-insight::after { display: none; }
  .flow-insight strong { font-size: 1.16rem; }
  .flow-insight small { font-size: .78rem; }
  .method-row--adaptive .method-visual--irt {
    grid-column: 1 / -1;
    height: 158px;
    margin-top: .35rem;
    padding-inline: .8rem;
  }
  .irt-readout { align-items: flex-start; flex-direction: column; gap: .15rem; }
  .irt-scale { margin-top: .05rem; }
  .irt-next small { display: none; }
  .irt-labels { font-size: .48rem; }
  .proof-item dd small { font-size: .51rem; }
  .oracle-seal { grid-template-columns: 100px minmax(0, 1fr); }
  .oracle-core { width: 92px; }
  .oracle-seal strong { font-size: 1.08rem; }
  .method-visual--refs { grid-column: auto; width: min(100%, 310px); }
  .boss-stage { min-height: 430px; }
  .boss-stage__label { bottom: 1.5rem; }
  .boss-copy { padding-bottom: 5rem; }
  .finale-copy { padding-top: 6rem; padding-bottom: 7rem; }
  .finale-core { width: 88px; }
  .flow-particle { font-size: .49rem; }
  .class-evolution-summary { grid-template-columns: repeat(3, 1fr); gap: .5rem; padding-inline: .5rem; }
  .class-evolution-summary span { display: grid; justify-items: center; gap: .2rem; text-align: center; }
  .class-evolution-summary b { font-size: 1.75rem; }
  .class-evolution-summary small { font-size: .625rem; line-height: 1.25; }
  .class-evolution-summary > i { display: none; }
  .class-profile { display: block; padding: 1.7rem .45rem 2.1rem; }
  .class-evolution { height: 170px; margin: 0 0 1.3rem; }
  .class-evolution::before { inset: 7% 12% 7%; }
  .evolution-stage { top: 3px; width: 31%; max-width: none; opacity: 1; filter: none; transform: none; }
  .evolution-stage--one,
  .class-profile:hover .evolution-stage--one,
  .class-profile:focus-visible .evolution-stage--one { left: 0; top: 9px; opacity: 1; filter: none; transform: rotate(-2deg); }
  .evolution-stage--five,
  .class-profile:hover .evolution-stage--five,
  .class-profile:focus-visible .evolution-stage--five { left: 34.5%; top: 4px; opacity: 1; filter: none; transform: none; }
  .evolution-stage--ten,
  .class-profile:hover .evolution-stage--ten,
  .class-profile:focus-visible .evolution-stage--ten { left: 69%; top: 0; transform: rotate(2deg); }
  .evolution-stage figcaption { min-height: 26px; padding: .25rem .35rem; }
  .evolution-stage figcaption span { font-size: .625rem; }
  .evolution-flow { bottom: 0; }
  .class-mantra { min-height: 0; }
  .class-detail { min-height: 0; }
  .class-journey-note { align-items: flex-start; font-size: .78rem; text-align: left; }
}

/* Sistema Lúmen Vivo · identidade compartilhável com o jogo */
:root {
  --nq-lumen: #91dfe3;
  --nq-lumen-deep: #57bfc8;
  --nq-mastery: #f1cf7a;
  --nq-mastery-deep: #d6a94a;
  --nq-corruption: #9b65c5;
  --nq-line-passive: rgba(145, 223, 227, .16);
  --nq-glow-lumen: 0 0 18px rgba(87, 191, 200, .28);
  --nq-glow-mastery: 0 0 20px rgba(214, 169, 74, .34);
}

.hero-shell { grid-template-columns: minmax(0, .9fr) minmax(560px, 1.1fr); }
.hero-lab {
  --flow-x: 0px;
  --flow-y: 0px;
  display: grid;
  grid-template-columns: minmax(300px, 1fr) clamp(240px, 18vw, 272px);
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: .75rem;
  width: 100%;
  min-height: 720px;
  padding: 1rem 0 .35rem;
  perspective: none;
}
.hero-lab::before {
  inset: 5% -2% 12% 3%;
  border-radius: 50% 48% 46% 54%;
  background:
    radial-gradient(circle at 37% 36%, rgba(var(--cyan-rgb), .22), transparent 38%),
    radial-gradient(circle at 74% 62%, rgba(var(--clinical-rgb), .16), transparent 45%),
    radial-gradient(ellipse at 56% 52%, rgba(var(--gold-rgb), .075), transparent 70%);
}
.lab-readout {
  position: relative;
  z-index: 6;
  top: auto;
  right: auto;
  left: auto;
  grid-column: 1 / -1;
  grid-row: 1;
  padding: 0 .2rem .6rem;
  border-bottom: 1px solid rgba(var(--cyan-rgb), .12);
}
.lab-readout span { display: flex; align-items: center; gap: .6rem; }
.lab-readout span::before { content: ""; width: 22px; height: 1px; background: var(--nq-lumen); box-shadow: var(--nq-glow-lumen); }
.hero-atlas {
  position: relative;
  z-index: 1;
  top: auto;
  right: auto;
  left: auto;
  grid-column: 1;
  grid-row: 2;
  width: 100%;
  max-width: none;
  height: 575px;
  overflow: hidden;
  border: 1px solid rgba(var(--cyan-rgb), .28);
  border-radius: 26px 44px 34px 40px;
  background:
    radial-gradient(circle at 72% 18%, rgba(var(--clinical-rgb), .22), transparent 42%),
    radial-gradient(ellipse at 42% 55%, rgba(var(--cyan-rgb), .13), transparent 68%),
    linear-gradient(145deg, rgba(9, 27, 45, .9), rgba(5, 12, 23, .66));
  box-shadow:
    0 1.8rem 4rem rgba(0, 0, 0, .28),
    0 0 3rem rgba(var(--clinical-rgb), .12),
    inset 0 1px rgba(255, 255, 255, .04);
  opacity: 1;
  transform: none;
}
.hero-atlas.is-tracing { cursor: crosshair; }
.nephron-map {
  width: 100%;
  height: 100%;
  transform: none;
  transform-origin: center;
  transition: none;
  will-change: auto;
}
.nephron-shadow,
.nephron-path,
.nephron-progress,
.nephron-flow { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.nephron-shadow { stroke: rgba(var(--cyan-rgb), .055); stroke-width: 18; filter: none; }
.nephron-path { stroke: rgba(var(--cyan-rgb), .24); stroke-width: 8; opacity: 1; filter: none; }
.nephron-progress {
  stroke: url("#nephron-gradient");
  stroke-width: 4.6;
  stroke-dasharray: .02 1;
  filter: url("#nephron-glow");
  transition: stroke-dasharray .18s linear;
}
.nephron-flow { stroke: #e8ffff; stroke-width: 1.35; stroke-dasharray: 1 24; opacity: .72; }
.nephron-flow { animation: none; }
.hero-atlas.is-lumen-pulse .nephron-flow { animation: atlas-flow 1.15s linear 1; }
.lumen-carrier { filter: url("#nephron-glow"); }
.lumen-carrier--cyan { fill: var(--nq-lumen); }
.lumen-carrier--gold { fill: var(--nq-mastery); }
.lumen-chamber {
  color: var(--nq-lumen);
  opacity: .3;
  transition: color .24s ease, opacity .24s ease, filter .24s ease;
}
.lumen-chamber__ring { fill: rgba(var(--night-rgb), .78); stroke: currentColor; stroke-width: 1.4; }
.lumen-chamber__core { fill: var(--night); stroke: currentColor; stroke-width: 1.5; }
.lumen-chamber__sign { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.lumen-chamber.is-active { color: var(--nq-mastery); opacity: 1; filter: drop-shadow(0 0 7px rgba(var(--gold-rgb), .42)); }
.lumen-chamber.is-active .lumen-chamber__core { fill: var(--nq-mastery); }
.nephron-probe { fill: #fff; stroke: var(--nq-mastery); stroke-width: 2.5; }
.nephron-probe-halo { opacity: .48; }
.atlas-caption { right: .8rem; bottom: .7rem; }
.solute-field { pointer-events: none; }
.solute-field__label { fill: rgba(197, 224, 228, .38); font: 7px var(--mono); letter-spacing: 1.2px; }
.solute-tag circle { fill: var(--nq-lumen); opacity: .48; filter: url("#nephron-glow"); }
.solute-tag text { fill: rgba(197, 224, 228, .66); font: 12px var(--mono); letter-spacing: .2px; }

.flow-deck {
  position: relative;
  z-index: 5;
  grid-column: 2;
  grid-row: 2;
  align-self: center;
  display: grid;
  min-height: 408px;
  align-content: center;
  gap: .72rem;
  padding: 1.35rem 1.1rem;
  border: 1px solid rgba(var(--clinical-rgb), .4);
  border-radius: 18px;
  background:
    radial-gradient(circle at 100% 0, rgba(var(--clinical-rgb), .24), transparent 13rem),
    linear-gradient(135deg, rgba(var(--cyan-rgb), .15), rgba(7, 15, 28, .9) 72%);
  box-shadow:
    0 1.3rem 3rem rgba(0, 0, 0, .28),
    inset 0 1px rgba(255, 255, 255, .035);
}
.flow-deck::before {
  content: "";
  position: absolute;
  left: -3px;
  top: 18%;
  width: 5px;
  height: 64%;
  background: linear-gradient(transparent, var(--nq-lumen), var(--nq-mastery), transparent);
  filter: blur(.3px) drop-shadow(0 0 9px rgba(var(--cyan-rgb), .38));
  opacity: .58;
}
.flow-deck__index { display: flex; align-items: center; justify-content: space-between; color: var(--nq-lumen); font-family: var(--mono); font-size: .56rem; letter-spacing: .11em; text-transform: uppercase; }
.flow-deck__index i { color: var(--haze); font-style: normal; }
.mastery-runes { display: grid; grid-template-columns: repeat(4, 1fr); gap: .38rem; }
.mastery-runes i { position: relative; height: 22px; border: 1px solid rgba(var(--cyan-rgb), .16); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); transition: background .4s ease, border-color .4s ease, box-shadow .4s ease; }
[data-flow-stage="0"] .mastery-runes i:nth-child(-n+1),
[data-flow-stage="1"] .mastery-runes i:nth-child(-n+2),
[data-flow-stage="2"] .mastery-runes i:nth-child(-n+3),
[data-flow-stage="3"] .mastery-runes i:nth-child(-n+4) { border-color: rgba(var(--gold-rgb), .65); background: radial-gradient(circle, var(--nq-mastery) 0 18%, rgba(var(--gold-rgb), .16) 22% 100%); box-shadow: var(--nq-glow-mastery); }
.flow-deck > strong { font-family: var(--display); font-size: 1.5rem; font-weight: 600; line-height: 1.04; text-wrap: balance; }
.flow-deck > small { color: var(--mist); font-size: .81rem; line-height: 1.44; }
.flow-deck.is-changing > strong,
.flow-deck.is-changing > small,
.flow-deck.is-changing > .flow-deck__proof { animation: flow-deck-fade .24s ease both; }
@keyframes flow-deck-fade { from { opacity: .18; filter: blur(2px); } to { opacity: 1; filter: none; } }
.flow-deck__proof { display: grid; gap: .18rem; padding-top: .72rem; border-top: 1px solid rgba(var(--cyan-rgb), .13); }
.flow-deck__proof span { color: var(--nq-lumen); font-family: var(--mono); font-size: .5rem; letter-spacing: .04em; text-transform: uppercase; }
.flow-deck__proof b { color: var(--nq-mastery); font-family: var(--mono); font-size: .5rem; font-weight: 500; letter-spacing: .05em; text-transform: uppercase; }
.flow-deck__meter { height: 2px; margin-top: .35rem; overflow: hidden; background: rgba(var(--cyan-rgb), .13); }
.flow-deck__meter i { display: block; width: 25%; height: 100%; background: linear-gradient(90deg, var(--nq-lumen), var(--nq-mastery)); box-shadow: var(--nq-glow-lumen); transition: width .58s var(--ease-out); }
[data-flow-stage="1"] .flow-deck__meter i { width: 50%; }
[data-flow-stage="2"] .flow-deck__meter i { width: 75%; }
[data-flow-stage="3"] .flow-deck__meter i { width: 100%; }

.flow-node-controls {
  position: relative;
  z-index: 6;
  inset: auto;
  grid-column: 1 / -1;
  grid-row: 3;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  pointer-events: auto;
  border-top: 1px solid rgba(var(--cyan-rgb), .14);
  border-bottom: 1px solid rgba(var(--cyan-rgb), .08);
}
.flow-node-control {
  position: relative;
  display: grid;
  grid-template-columns: auto 8px minmax(0, 1fr);
  align-items: center;
  gap: .4rem;
  width: auto;
  height: 62px;
  margin: 0;
  padding: 0 .65rem;
  border: 0;
  border-right: 1px solid rgba(var(--cyan-rgb), .1);
  border-radius: 0;
  background: transparent;
  color: var(--haze);
  cursor: pointer;
  pointer-events: auto;
  transition: color .3s ease, background .3s ease;
}
.flow-node-control:last-child { border-right: 0; }
.flow-node-control::before { display: none; }
.flow-node-control span { position: static; width: auto; height: auto; overflow: visible; color: inherit; font-family: var(--mono); font-size: .58rem; clip-path: none; }
.flow-node-control i { width: 7px; height: 7px; border: 1px solid currentColor; rotate: 45deg; }
.flow-node-control b { overflow: hidden; font-family: var(--mono); font-size: .62rem; font-weight: 500; letter-spacing: .04em; text-overflow: ellipsis; text-transform: uppercase; }
.flow-node-control:hover,
.flow-node-control:focus-visible { color: var(--nq-lumen); background: rgba(var(--cyan-rgb), .1); }
.flow-node-control.is-current {
  color: var(--nq-mastery);
  background: linear-gradient(180deg, rgba(var(--gold-rgb), .2), rgba(var(--clinical-rgb), .06));
  box-shadow: inset 0 3px var(--nq-mastery);
}
.flow-node-control.is-current i { background: currentColor; box-shadow: var(--nq-glow-mastery); }
.hero-atlas.is-paused .nephron-flow,
.hero-atlas.is-paused .nephron-probe,
.hero-atlas.is-paused .lumen-carriers { opacity: 0; }

/* A jornada mantém o texto alinhado; somente a corrente percorre o traçado. */
.route { padding-top: 8.6rem; }
.route-line { top: 0; height: 132px; }
.route-line path { fill: none; }
.route-line .route-bed { stroke: rgba(var(--cyan-rgb), .23); stroke-width: 1.4; stroke-dasharray: 7 11; animation: route-breathe 14s linear infinite; }
.route-line .route-current { stroke: var(--nq-lumen); stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: .035 .965; filter: drop-shadow(0 0 6px var(--nq-lumen)); animation: route-travel 5.8s linear infinite; }
.route-runner { fill: var(--nq-mastery); filter: drop-shadow(0 0 7px var(--nq-mastery)); }
.route-step { min-height: 220px; padding: 0 1.15rem; }
.route-number { position: absolute; top: -7.9rem; left: 1.15rem; }
.route-dot,
.route-step:nth-of-type(even) .route-dot { position: absolute; top: -5.3rem; left: 1.15rem; margin: 0; }
.route-step:nth-of-type(even) .route-dot { top: -2.7rem; }
.route-step h3 { min-height: 3.3rem; }
.route-step:hover .route-dot,
.route-step:focus-within .route-dot { scale: 1.25; box-shadow: 0 0 0 5px rgba(var(--cyan-rgb), .08), 0 0 24px rgba(var(--cyan-rgb), .5); }
@keyframes route-breathe { to { stroke-dashoffset: -180; } }
@keyframes route-travel { to { stroke-dashoffset: -1; } }

/* Espinha de Evidência: uma métrica, três fontes, nenhuma ficha cortada. */
.method-row:last-child { min-height: 245px; }
.method-visual--refs {
  position: relative;
  display: grid;
  width: 292px;
  height: 198px;
  align-content: center;
  gap: 0;
  overflow: visible;
  padding: .65rem .55rem .65rem 1.15rem;
  background: linear-gradient(90deg, rgba(var(--cyan-rgb), .05), transparent 82%);
}
.method-visual--refs span { margin: 0; padding: 0; border: 0; background: none; transform: none !important; }
.method-visual--refs i { position: static; inset: auto; width: auto; height: auto; background: none; opacity: 1; animation: none; }
.method-visual--refs .evidence-item {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 12px 50px minmax(0, 1fr);
  min-height: 56px;
  align-items: center;
  gap: .55rem;
  border-bottom: 1px solid rgba(var(--cyan-rgb), .1);
  margin-left: 0 !important;
}
.method-visual--refs .evidence-item:nth-child(3) { border-bottom: 0; }
.evidence-item > i { width: 7px; height: 7px; border: 1px solid var(--nq-lumen); border-radius: 50%; background: var(--night); box-shadow: var(--nq-glow-lumen); }
.method-visual--refs .evidence-item > b { color: var(--nq-mastery); font-family: var(--display); font-size: 1.55rem; font-weight: 500; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.method-visual--refs .evidence-item > span { display: grid; gap: .02rem; }
.method-visual--refs .evidence-item small { color: var(--paper-dim); font-family: var(--mono); font-size: .52rem; letter-spacing: .1em; text-transform: uppercase; }
.method-visual--refs .evidence-item em { color: var(--haze); font-family: var(--body); font-size: .67rem; font-style: normal; letter-spacing: 0; text-transform: none; }
.method-visual--refs .evidence-current { position: absolute; z-index: 1; top: 23px; bottom: 23px; left: 21px; display: block; width: 1px; background: rgba(var(--cyan-rgb), .13); }
.method-visual--refs .evidence-current i { display: block; width: 100%; height: 44%; background: linear-gradient(transparent, var(--nq-lumen), var(--nq-mastery), transparent); box-shadow: var(--nq-glow-lumen); animation: evidence-descend 3.6s ease-in-out infinite; }
@keyframes evidence-descend { from { translate: 0 -30%; } to { translate: 0 185%; } }

.oracle-core__lumen { position: absolute; inset: 50% auto auto 50%; width: 34px; height: 34px; border: 1px solid rgba(var(--gold-rgb), .7); border-radius: 50% 44% 54% 46%; box-shadow: var(--nq-glow-mastery); translate: -50% -50%; }
.oracle-core__lumen::before { content: ""; position: absolute; inset: 7px; border: 1px dashed var(--nq-lumen); border-radius: inherit; }
.oracle-core__lumen i { position: absolute; inset: 14px; border-radius: 50%; background: var(--nq-mastery); box-shadow: var(--nq-glow-mastery); }
.chat-avatar { position: relative; color: transparent; }
.chat-avatar i { position: absolute; inset: 7px; border: 1px solid var(--nq-lumen); border-radius: 50% 42% 54% 46%; }
.chat-avatar i::after { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: var(--nq-mastery); box-shadow: var(--nq-glow-mastery); }

/* Ruptura do Fluxo: a arte é ambiente, não pôster. */
.boss {
  position: relative;
  min-height: 820px;
  overflow: clip;
  isolation: isolate;
  background: #070811;
}
.boss::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7,8,17,.98) 0%, rgba(7,8,17,.88) 27%, rgba(7,8,17,.32) 51%, rgba(7,8,17,.04) 78%),
    linear-gradient(180deg, rgba(7,8,17,.14), rgba(7,8,17,.04) 62%, rgba(7,8,17,.58));
  pointer-events: none;
}
.boss-backdrop {
  position: absolute;
  z-index: 0;
  inset: -2%;
  width: 104%;
  height: 104%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  opacity: .9;
  transform: translate3d(var(--flow-x, 0), var(--flow-y, 0), 0) scale(1.015);
  transition: transform .9s var(--ease-out);
}
.boss > .boss-current {
  position: absolute;
  z-index: 2;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: .52;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0 36%, rgba(0,0,0,.18) 46%, #000 58%);
  mask-image: linear-gradient(90deg, transparent 0 36%, rgba(0,0,0,.18) 46%, #000 58%);
}
.boss > .boss-current .boss-current__bed,
.boss > .boss-current .boss-current__flow { fill: none; stroke-linecap: round; }
.boss > .boss-current .boss-current__bed { stroke: rgba(var(--cyan-rgb), .12); stroke-width: 10; stroke-dasharray: none; filter: blur(6px); animation: none; }
.boss > .boss-current .boss-current__flow { stroke: url("#boss-flow-gradient"); stroke-width: 2.3; stroke-dasharray: 2 16; filter: drop-shadow(0 0 7px rgba(var(--violet-rgb), .76)); animation: boss-current-pass 4.8s linear infinite; animation-play-state: paused; }
.boss.is-active > .boss-current .boss-current__flow { animation-play-state: running; }
@keyframes boss-current-pass { to { stroke-dashoffset: -180; } }
.boss-shell { position: relative; z-index: 3; grid-template-columns: minmax(0, .86fr) minmax(480px, 1.14fr); min-height: 820px; }
.boss-copy { z-index: 4; align-self: center; width: auto; padding: 7.5rem 0; text-shadow: 0 3px 24px rgba(7,8,17,.9); }
.boss-copy > * { max-width: 650px; }
.boss-stage { position: relative; min-height: 820px; background: none; transform: none; }
.boss-stage::before { display: none; }
.boss-mastery-band {
  position: absolute;
  z-index: 4;
  right: clamp(1rem, 3vw, 3rem);
  bottom: 3.2rem;
  display: grid;
  grid-template-columns: auto auto;
  width: min(420px, 92%);
  align-items: end;
  gap: .15rem 1rem;
  padding: .8rem 0;
  border-top: 1px solid rgba(202,155,233,.32);
  border-bottom: 1px solid rgba(202,155,233,.12);
  color: #d9c0eb;
  font-family: var(--mono);
  text-transform: uppercase;
}
.boss-mastery-band span { font-size: .56rem; letter-spacing: .14em; }
.boss-mastery-band b { color: var(--parchment); font-size: .62rem; font-weight: 500; letter-spacing: .08em; text-align: right; }
.boss-mastery-band > i { grid-column: 1 / -1; height: 3px; overflow: hidden; background: rgba(var(--violet-rgb), .18); }
.boss-mastery-band em { display: block; width: 72%; height: 100%; background: linear-gradient(90deg, var(--nq-lumen), var(--nq-corruption)); box-shadow: 0 0 15px rgba(var(--violet-rgb), .5); }
.boss-stage__label { right: clamp(1rem, 3vw, 3rem); bottom: 1.4rem; left: auto; color: rgba(224,201,242,.55); text-align: right; }

.finale-lumen { position: relative; display: block; width: 44px; height: 44px; border: 1px solid var(--nq-mastery); border-radius: 52% 48% 44% 56%; box-shadow: var(--nq-glow-mastery); }
.finale-lumen::before { content: ""; position: absolute; inset: 8px; border: 1px dashed var(--nq-lumen); border-radius: inherit; }
.finale-lumen b { position: absolute; inset: 18px; border-radius: 50%; background: var(--nq-mastery); box-shadow: var(--nq-glow-mastery); }

@media (max-width: 1080px) {
  .hero::after { inset: 0 -8% 0 45%; }
  .hero-shell { grid-template-columns: 1fr; }
  .hero-lab { grid-template-columns: minmax(390px, 1fr) 258px; width: min(100%, 780px); min-height: 700px; }
  .hero-atlas { width: 100%; height: 555px; }
  .flow-deck { min-height: 420px; }
  .boss-shell { grid-template-columns: minmax(0, .82fr) minmax(420px, 1.18fr); }
}

@media (max-width: 900px) {
  .hero::after {
    inset: 42% -18% -6%;
    border-top: 1px solid rgba(var(--cyan-rgb), .18);
    border-left: 0;
    clip-path: ellipse(78% 66% at 55% 58%);
  }
  .route { padding-top: 0; }
  .route-number,
  .route-dot,
  .route-step:nth-of-type(even) .route-dot { position: static; margin: 0 0 .8rem; }
  .route-step { min-height: 0; }
  .method-row:last-child .method-visual--refs { width: min(100%, 330px); height: 198px; }
  .boss { min-height: 950px; }
  .boss::before { background: linear-gradient(180deg, rgba(7,8,17,.08) 0%, rgba(7,8,17,.15) 40%, rgba(7,8,17,.95) 66%, #070811 100%); }
  .boss-backdrop { inset: 0; width: 100%; height: 62%; object-position: 70% top; transform: translate3d(var(--flow-x, 0), var(--flow-y, 0), 0) scale(1.025); }
  .boss > .boss-current {
    inset: 0 0 auto;
    height: 510px;
    -webkit-mask-image: linear-gradient(180deg, #000 0 82%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 0 82%, transparent 100%);
  }
  .boss-shell { grid-template-columns: 1fr; grid-template-rows: 510px auto; min-height: 950px; }
  .boss-stage { grid-row: 1; min-height: 510px; }
  .boss-copy { grid-row: 2; align-self: start; padding: 1rem 0 6rem; }
  .boss-copy > * { max-width: 690px; }
  .boss-mastery-band { bottom: 2.5rem; }
  .boss-stage__label { bottom: .8rem; }
}

@media (max-width: 760px) {
  html { scroll-padding-top: 64px; }
  .hero-lab { grid-template-columns: 1fr; grid-template-rows: auto auto auto auto; width: 100%; min-height: 0; gap: .4rem; padding-top: .8rem; }
  .lab-readout { grid-row: 1; }
  .hero-atlas { grid-column: 1; grid-row: 2; left: auto; width: 100%; height: 500px; }
  .flow-deck {
    grid-column: 1;
    grid-row: 3;
    min-height: 0;
    align-content: start;
    padding: 1.15rem 1rem 1rem;
    border: 1px solid rgba(var(--clinical-rgb), .36);
    border-radius: 14px;
    background:
      radial-gradient(circle at 100% 0, rgba(var(--clinical-rgb), .2), transparent 12rem),
      linear-gradient(180deg, rgba(var(--cyan-rgb), .13), rgba(7, 15, 28, .82));
  }
  .flow-deck::before { top: -3px; right: 12%; left: 12%; width: auto; height: 5px; background: linear-gradient(90deg, transparent, var(--nq-lumen), var(--nq-mastery), transparent); }
  .flow-deck > strong { max-width: none; }
  .flow-deck > small { max-width: 62ch; }
  .flow-node-controls { grid-column: 1; grid-row: 4; }
  .atlas-caption { display: none; }
  .method-visual--refs { grid-column: 2; }
}

@media (max-width: 640px) {
  .nav .nav-word { padding-inline-end: 0; font-size: 1.08rem; }
  .hero-lab { min-height: 0; margin-top: .8rem; }
  .hero-atlas { left: auto; width: 100%; height: 430px; }
  .boss > .boss-current { height: 430px; }
  .lab-readout i { display: none; }
  .flow-deck { padding-inline: .85rem; }
  .flow-deck > strong { font-size: 1.28rem; }
  .flow-node-control { grid-template-columns: 1fr; justify-items: center; gap: .15rem; height: 60px; padding: .35rem .12rem; text-align: center; }
  .flow-node-control span { font-size: .58rem; }
  .flow-node-control i { width: 6px; height: 6px; }
  .flow-node-control b { max-width: 100%; font-size: .6rem; letter-spacing: 0; }
  .method-row:last-child .method-visual--refs,
  .method-visual--refs { grid-column: 1 / -1; width: 100%; height: 198px; }
  .boss { min-height: 870px; }
  .boss-backdrop { height: 52%; object-position: 72% top; }
  .boss-shell { grid-template-rows: 430px auto; min-height: 870px; }
  .boss-stage { min-height: 430px; }
  .boss-copy { padding: .5rem 0 5rem; }
  .boss-mastery-band { right: 0; bottom: 2.4rem; width: 100%; }
  .boss-stage__label { right: 0; bottom: .8rem; }
}

@media (max-width: 390px) {
  .nav .nav-word { font-size: 1.04rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .motion-ready .reveal,
  .motion-ready .reveal-up,
  .motion-ready .chat-bubble { opacity: 1 !important; transform: none !important; }
  .nephron-path { stroke-dashoffset: 0; }
  .lumen-carriers { display: none; }
  .route-runner { display: none; }
  .route-bed, .route-current, .evidence-current i, .boss-current__flow { animation: none !important; }
  .guideline-flow { overflow-x: auto; scroll-snap-type: x mandatory; }
  .guideline-track { padding-inline: max(18px, calc((100vw - var(--archive-card-width)) / 2)); transform: none !important; will-change: auto; }
  .guideline-cover { scroll-snap-align: center; transform: none !important; }
  .ambient-glow { display: none; }
}

@media (forced-colors: active) {
  .ambient, .hero::after, .hero-atlas { display: none; }
  .hero-lab { grid-template-columns: 1fr; grid-template-rows: auto auto auto; min-height: 0; }
  .flow-deck { grid-column: 1; grid-row: 2; }
  .flow-node-controls { grid-column: 1; grid-row: 3; }
  .btn, .nav-login, .nav-cta, .chat, .hero-console, .class-gallery, .flow-deck, .method-visual--refs { border: 1px solid CanvasText; }
  .solute-field, .boss-backdrop, .boss-current { display: none; }
  .flow-insight,
  .flow-insight.is-left,
  .flow-deck { position: static; width: 100%; padding: 1rem; border: 1px solid CanvasText; transform: none; }
}
