/* ════════════════════════════════════════════════════════════
   PSYDON · Mythological Sacred Futurism
   Palette and type locked per PSYDON brand kit
   ════════════════════════════════════════════════════════════ */

@font-face {
  font-family: 'Metamorphous';
  src: url('assets/fonts/Metamorphous-Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}

:root {
  --void: #0D1824;
  --void-deep: #080F16;
  --ivory: #F4F1E8;
  --ivory-dim: rgba(244, 241, 232, 0.66);
  --ivory-faint: rgba(244, 241, 232, 0.55);
  --gold: #C8A86B;
  --gold-line: rgba(200, 168, 107, 0.22);
  --solar: #D9822B;
  --rust: #B87333;
  --cyan: #00F5D4;
  --magenta: #FF006E;
  --purple: #9D4EDD;
  --crimson: #A3272D;
  --seafoam: #5D8C88;
  --gunmetal: #4A4E69;
  --slate: #2D2D44;

  --font-display: 'Metamorphous', 'Georgia', serif;
  --font-sub: 'Rajdhani', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --maxw: 1240px;
}

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

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

html:not(.lenis) { scroll-behavior: smooth; }

body {
  background-color: var(--void);
  background-image:
    radial-gradient(1100px 760px at 85% -8%, rgba(93, 140, 136, 0.10), transparent 62%),
    radial-gradient(900px 700px at 8% 24%, rgba(157, 78, 221, 0.06), transparent 60%),
    radial-gradient(1000px 900px at 50% 110%, rgba(217, 130, 43, 0.05), transparent 55%);
  color: var(--ivory);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

::selection { background: var(--gold); color: var(--void-deep); }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--void-deep); }
::-webkit-scrollbar-thumb { background: var(--slate); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--gunmetal); }

section { scroll-margin-top: 90px; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* ── film grain ─────────────────────────────────────────────── */
.grain {
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  pointer-events: none;
  z-index: 2000;
  opacity: 0.055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain-shift 1.2s steps(4) infinite;
}
@keyframes grain-shift {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-1.5%, 1%); }
  50% { transform: translate(1%, -1.5%); }
  75% { transform: translate(-1%, -1%); }
  100% { transform: translate(0, 0); }
}

/* ── shared type ────────────────────────────────────────────── */
.display {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.08;
  background: linear-gradient(180deg, #F8F5EC 25%, #D8CBA8 110%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.mono { font-family: var(--font-mono); }

.kicker {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.38em;
  color: var(--cyan);
  text-shadow: 0 0 18px rgba(0, 245, 212, 0.35);
  margin-bottom: 20px;
}

.lede {
  font-size: 1.13rem;
  color: var(--ivory-dim);
  max-width: 54ch;
  margin-top: 26px;
}

.body-lg {
  font-size: 1.05rem;
  color: var(--ivory-dim);
  max-width: 62ch;
  margin-top: 22px;
}
.body-lg.centered { margin-left: auto; margin-right: auto; }

.star { color: var(--solar); }

/* ── buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  font-family: var(--font-sub);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 15px 30px;
  border-radius: 3px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, color 0.25s ease, background 0.25s ease;
  cursor: pointer;
}
.btn-primary {
  background: var(--cyan);
  color: var(--void-deep);
  box-shadow: 0 0 26px rgba(0, 245, 212, 0.28), 0 6px 22px rgba(0, 0, 0, 0.45);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 44px rgba(0, 245, 212, 0.5), 0 10px 28px rgba(0, 0, 0, 0.5);
}
.btn-ghost {
  border: 1px solid var(--gold-line);
  color: var(--ivory);
  background: rgba(244, 241, 232, 0.02);
}
.btn-ghost:hover {
  border-color: rgba(0, 245, 212, 0.55);
  color: var(--cyan);
  transform: translateY(-2px);
}
.btn-sm { padding: 10px 20px; font-size: 0.78rem; }
.btn.wide { width: 100%; text-align: center; }

.cta-row { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 36px; }
.cta-row.centered { justify-content: center; }

/* ── reveal on scroll ───────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.85s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.85s cubic-bezier(0.2, 0.7, 0.2, 1); }
.reveal.in { opacity: 1; transform: translateY(0); }
.d1 { transition-delay: 0.12s; }
.d2 { transition-delay: 0.24s; }
.d3 { transition-delay: 0.36s; }
.d4 { transition-delay: 0.48s; }

/* ── nav ────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: background 0.4s ease, border-color 0.4s ease, backdrop-filter 0.4s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(8, 15, 22, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--gold-line);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.wordmark {
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: 0.22em;
  color: var(--ivory);
  display: flex;
  align-items: center;
  gap: 10px;
}
.wordmark-halo {
  width: 26px; height: 26px;
  color: var(--gold);
  filter: drop-shadow(0 0 6px rgba(200, 168, 107, 0.5));
  animation: spin-slow 24s linear infinite;
}
@keyframes spin-slow { to { transform: rotate(360deg); } }
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a:not(.btn) {
  font-family: var(--font-sub);
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ivory-dim);
  transition: color 0.25s ease, text-shadow 0.25s ease;
}
.nav-links a:not(.btn):hover {
  color: var(--cyan);
  text-shadow: 0 0 14px rgba(0, 245, 212, 0.5);
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  width: 40px; height: 40px;
  position: relative;
  z-index: 1100;
  cursor: pointer;
}
.nav-toggle span {
  position: absolute;
  left: 8px; right: 8px;
  height: 2px;
  background: var(--ivory);
  transition: transform 0.3s ease, top 0.3s ease;
}
.nav-toggle span:first-child { top: 15px; }
.nav-toggle span:last-child { top: 24px; }
.nav.open .nav-toggle span:first-child { top: 19px; transform: rotate(45deg); }
.nav.open .nav-toggle span:last-child { top: 19px; transform: rotate(-45deg); }

/* ── hero ───────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 150px 32px 90px;
  overflow: hidden;
}
.hero-geometry {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  pointer-events: none;
}
.geo-rings {
  width: min(92vmin, 760px);
  color: rgba(200, 168, 107, 0.10);
  margin-right: -12%;
  animation: spin-slow 140s linear infinite;
}
.hero-inner {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 72px;
  align-items: center;
  width: 100%;
}
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.5rem); margin-top: 8px; }
.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 38px;
}
.hero-chips li {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ivory-dim);
  border: 1px solid rgba(244, 241, 232, 0.16);
  border-radius: 999px;
  padding: 7px 14px;
  background: rgba(244, 241, 232, 0.02);
}

.hero-art { position: relative; }
.halo-ring {
  position: absolute;
  top: -9%; right: -14%;
  width: 115%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(200, 168, 107, 0.35);
  box-shadow: 0 0 80px rgba(217, 130, 43, 0.10), inset 0 0 60px rgba(217, 130, 43, 0.06);
  animation: spin-slow 70s linear infinite;
  pointer-events: none;
}
.halo-ring::after {
  content: '✦';
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--solar);
  font-size: 1.1rem;
  text-shadow: 0 0 16px rgba(217, 130, 43, 0.8);
}

.art-frame {
  position: relative;
  border: 1px solid rgba(200, 168, 107, 0.3);
  background: var(--void-deep);
  overflow: hidden;
}
.art-frame::after {
  content: '';
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(200, 168, 107, 0.35);
  pointer-events: none;
}
.art-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 62%, rgba(8, 15, 22, 0.5) 100%);
  pointer-events: none;
  z-index: 1;
}
.art-frame img {
  width: 100%;
  height: auto; /* cancel the height presentational attribute: prevents vertical stretching */
  filter: saturate(0.95) contrast(1.04);
}
.art-caption {
  margin-top: 14px;
  text-align: center;
  font-size: 0.64rem;
  letter-spacing: 0.3em;
  color: var(--ivory-faint);
}
.corner-label {
  position: absolute;
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  color: var(--ivory-faint);
}
.corner-label.tl { top: -26px; left: 2px; }
.corner-label.tr { top: -26px; right: 2px; }

.scroll-cue {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  color: var(--ivory-faint);
  animation: bob 2.4s ease-in-out infinite;
}
@keyframes bob {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}

/* ── ticker ─────────────────────────────────────────────────── */
.ticker {
  border-top: 1px solid var(--gold-line);
  border-bottom: 1px solid var(--gold-line);
  background: rgba(244, 241, 232, 0.025);
  overflow: hidden;
  padding: 15px 0;
}
.ticker-track {
  display: inline-flex;
  white-space: nowrap;
  animation: marquee 42s linear infinite;
}
.ticker-track span {
  font-family: var(--font-sub);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.32em;
  color: var(--ivory-dim);
}
.ticker-track i {
  color: var(--solar);
  font-style: normal;
  padding: 0 20px;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ── sections ───────────────────────────────────────────────── */
.section {
  padding: 130px 32px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.section-head { text-align: center; margin-bottom: 72px; }
.section-head .display { font-size: clamp(2rem, 4.6vw, 3.3rem); }
h2.display { font-size: clamp(1.9rem, 4.2vw, 3.1rem); }

/* ── arsenal ────────────────────────────────────────────────── */
.arsenal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.arsenal-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 40px 30px 32px;
  background: linear-gradient(165deg, rgba(244, 241, 232, 0.04), rgba(244, 241, 232, 0.012));
  border: 1px solid var(--gold-line);
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
.arsenal-card:hover {
  transform: translateY(-7px);
  border-color: rgba(0, 245, 212, 0.45);
  box-shadow: 0 26px 52px rgba(0, 0, 0, 0.5), 0 0 40px rgba(0, 245, 212, 0.07);
}
.arsenal-card .index {
  position: absolute;
  top: 26px; right: 26px;
  font-size: 0.78rem;
  color: rgba(200, 168, 107, 0.55);
}
.arsenal-card h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.55rem;
  color: var(--ivory);
}
.arsenal-card .tagline {
  font-size: 0.62rem;
  letter-spacing: 0.26em;
  color: var(--solar);
}
.arsenal-card p:not(.tagline) {
  font-size: 0.95rem;
  color: var(--ivory-dim);
  flex: 1;
}
.card-cta {
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  color: var(--cyan);
}
.card-cta i { font-style: normal; display: inline-block; transition: transform 0.3s ease; }
.arsenal-card:hover .card-cta i { transform: translateX(6px); }

/* ── splits / side art ──────────────────────────────────────── */
.split {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 72px;
  align-items: start;
}
.split.flip { grid-template-columns: 1.15fr 0.85fr; }
.side-art { position: relative; }
.split-copy h2 { margin-top: 6px; }

/* ── clone features ─────────────────────────────────────────── */
.feature-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px 30px;
  margin-top: 46px;
}
.feature-list li {
  display: flex;
  flex-direction: column;
  gap: 7px;
  border-top: 1px solid var(--gold-line);
  padding-top: 16px;
}
.f-title {
  font-family: var(--font-sub);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}
.feature-list li span:not(.f-title) {
  font-size: 0.9rem;
  color: var(--ivory-dim);
}

/* ── demos ──────────────────────────────────────────────────── */
.demo-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  margin-top: 80px;
}
.phone, .voice-card {
  display: flex;
  flex-direction: column;
  background: rgba(8, 15, 22, 0.85);
  border: 1px solid rgba(244, 241, 232, 0.12);
  border-radius: 12px;
  overflow: hidden;
  min-height: 470px;
}
.phone-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 18px;
  border-bottom: 1px solid rgba(244, 241, 232, 0.08);
  font-size: 0.64rem;
  letter-spacing: 0.2em;
  color: var(--ivory-dim);
}
.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dot.live {
  background: var(--cyan);
  box-shadow: 0 0 10px rgba(0, 245, 212, 0.9);
  animation: pulse 1.8s ease-in-out infinite;
}
.dot.live.amber {
  background: var(--solar);
  box-shadow: 0 0 10px rgba(217, 130, 43, 0.9);
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}
.phone-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  padding: 22px 18px;
  overflow: hidden;
}
.msg {
  max-width: 80%;
  padding: 11px 15px;
  border-radius: 14px;
  font-size: 0.9rem;
  line-height: 1.45;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.msg.show { opacity: 1; transform: translateY(0); }
.msg.lead {
  align-self: flex-start;
  background: rgba(244, 241, 232, 0.09);
  border-bottom-left-radius: 4px;
  color: var(--ivory);
}
.msg.clone {
  align-self: flex-end;
  background: rgba(0, 245, 212, 0.11);
  border: 1px solid rgba(0, 245, 212, 0.22);
  border-bottom-right-radius: 4px;
  color: #DFFCF6;
}
.msg.sys {
  align-self: center;
  background: none;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  color: var(--gold);
  padding: 4px 0;
}
.msg.typing { padding: 13px 16px; }
.msg.typing i {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(244, 241, 232, 0.6);
  margin-right: 4px;
  animation: t-bounce 1.1s ease-in-out infinite;
}
.msg.typing i:nth-child(2) { animation-delay: 0.15s; }
.msg.typing i:nth-child(3) { animation-delay: 0.3s; margin-right: 0; }
@keyframes t-bounce {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-5px); }
}
.phone-foot {
  padding: 11px 18px;
  border-top: 1px solid rgba(244, 241, 232, 0.08);
  font-size: 0.58rem;
  letter-spacing: 0.24em;
  color: var(--ivory-faint);
}

.wave {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 30px 26px 10px;
  min-height: 150px;
}
.wave .bar {
  width: 5px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--cyan), var(--seafoam));
  animation: wavebob var(--d, 0.9s) ease-in-out var(--del, 0s) infinite alternate;
}
@keyframes wavebob {
  from { transform: scaleY(0.25); }
  to { transform: scaleY(1); }
}
.voice-line {
  padding: 6px 26px 0;
  font-size: 0.84rem;
  color: var(--ivory-dim);
  min-height: 4.2em;
}
.caret { color: var(--cyan); animation: pulse 1s step-end infinite; }
.voice-meta {
  display: flex;
  justify-content: space-between;
  padding: 15px 26px;
  border-top: 1px solid rgba(244, 241, 232, 0.08);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  color: var(--ivory-faint);
}

.icp-strip {
  margin-top: 64px;
  text-align: center;
  font-size: 0.68rem;
  letter-spacing: 0.26em;
  line-height: 2.2;
  color: var(--ivory-dim);
}
.icp-strip i { color: var(--solar); font-style: normal; padding: 0 8px; }

/* ── quote band ─────────────────────────────────────────────── */
.quote-band {
  position: relative;
  padding: 150px 32px;
  text-align: center;
}
.quote-band::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: min(70vmin, 540px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(200, 168, 107, 0.16);
  pointer-events: none;
}
.quote-band p {
  font-size: clamp(1.7rem, 3.8vw, 2.9rem);
  max-width: 28ch;
  margin: 0 auto;
}

/* ── integrations ───────────────────────────────────────────── */
.agent-cards {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 46px;
}
.agent-card {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  border: 1px solid var(--gold-line);
  border-left: 2px solid var(--solar);
  background: linear-gradient(165deg, rgba(244, 241, 232, 0.035), rgba(244, 241, 232, 0.01));
  padding: 26px 28px;
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.agent-body { flex: 1; min-width: 0; }
.agent-portrait {
  position: relative;
  flex: 0 0 122px;
  height: 178px;
  overflow: hidden;
  border: 1px solid rgba(200, 168, 107, 0.4);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5), 0 0 22px rgba(217, 130, 43, 0.1);
  animation: float-idle 7s ease-in-out infinite;
}
.agent-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.04);
}
.p-oracle img { object-position: center 72%; }
.p-castellan img { object-position: center 70%; }
.p-herald img { object-position: center 72%; }
.agent-card:nth-of-type(2) .agent-portrait { animation-delay: 1.4s; }
.agent-card:nth-of-type(3) .agent-portrait { animation-delay: 2.8s; }
@keyframes float-idle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}
.agent-card:hover { transform: translateX(6px); border-left-color: var(--cyan); }
.agent-card h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.3rem;
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
}
.agent-card .role {
  font-size: 0.6rem;
  letter-spacing: 0.26em;
  color: var(--cyan);
}
.agent-card p:not(.replaces) {
  margin-top: 10px;
  font-size: 0.93rem;
  color: var(--ivory-dim);
}
.replaces {
  margin-top: 12px;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  color: rgba(217, 130, 43, 0.9);
}

.savings {
  margin-top: 48px;
  border: 1px solid var(--gold-line);
  padding: 30px 32px;
  background: rgba(8, 15, 22, 0.5);
}
.savings > .mono {
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  color: var(--ivory-faint);
}
.savings-num {
  font-size: clamp(2.6rem, 5vw, 3.6rem);
  margin: 10px 0 6px;
}
.savings-num .approx {
  font-size: 0.5em;
  color: var(--ivory-faint);
  -webkit-text-fill-color: var(--ivory-faint);
  margin-right: 6px;
}
.savings-note { font-size: 0.92rem; color: var(--ivory-dim); }

.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 90px;
}
.process li {
  border-top: 2px solid rgba(200, 168, 107, 0.4);
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.process .step {
  font-size: 0.66rem;
  letter-spacing: 0.24em;
  color: var(--gold);
}
.process li span:not(.step) { font-size: 0.88rem; color: var(--ivory-dim); }

/* ── growth lab ─────────────────────────────────────────────── */
.lab { position: relative; }
.lab-bg {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  overflow: hidden;
  pointer-events: none;
}
.lab-bg img {
  width: 100%;
  height: 112%;
  object-fit: cover;
  object-position: center 20%;
  opacity: 0.13;
  filter: saturate(0.85);
}
.lab-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--void) 0%, rgba(13, 24, 36, 0.35) 28%, rgba(13, 24, 36, 0.35) 72%, var(--void) 100%);
}
.lab > :not(.lab-bg) { position: relative; z-index: 1; }

.lab-grid {
  display: grid;
  grid-template-columns: 0.82fr 1.25fr 0.93fr;
  gap: 44px;
  align-items: start;
}
.roadmap {
  position: relative;
  padding-left: 34px;
}
.roadmap::before {
  content: '';
  position: absolute;
  left: 4px; top: 8px; bottom: 8px;
  width: 1px;
  background: linear-gradient(180deg, var(--gold), rgba(200, 168, 107, 0.05));
  transform: scaleY(var(--draw, 1));
  transform-origin: top center;
}
.roadmap li { position: relative; padding-bottom: 38px; }
.roadmap li:last-child { padding-bottom: 0; }
.roadmap li::before {
  content: '';
  position: absolute;
  left: -34px; top: 5px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 14px rgba(200, 168, 107, 0.7);
}
.roadmap .rank {
  font-size: 0.62rem;
  letter-spacing: 0.26em;
  color: var(--cyan);
}
.roadmap h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.32rem;
  margin: 7px 0 6px;
}
.roadmap p { font-size: 0.9rem; color: var(--ivory-dim); max-width: 48ch; }

.price-card {
  position: sticky;
  top: 110px;
  border: 1px solid rgba(0, 245, 212, 0.3);
  background: linear-gradient(170deg, rgba(0, 245, 212, 0.055), rgba(157, 78, 221, 0.045));
  padding: 34px 30px;
}
.price-card > .mono {
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  color: var(--gold);
}
.price {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin: 18px 0 12px;
}
.price .was {
  font-size: 1.6rem;
  text-decoration: line-through;
  text-decoration-color: var(--crimson);
  text-decoration-thickness: 2px;
  background: none;
  -webkit-text-fill-color: var(--ivory-faint);
}
.price .now {
  font-size: 3.6rem;
  background: none;
  -webkit-text-fill-color: var(--cyan);
  text-shadow: 0 0 34px rgba(0, 245, 212, 0.4);
}
.price .per { font-size: 0.78rem; letter-spacing: 0.2em; color: var(--ivory-dim); }
.price-note { font-size: 0.86rem; color: var(--ivory-dim); }
.includes { margin: 22px 0 10px; }
.includes li {
  position: relative;
  padding: 9px 0 9px 26px;
  font-size: 0.9rem;
  color: var(--ivory-dim);
  border-bottom: 1px solid rgba(244, 241, 232, 0.07);
}
.includes li::before {
  content: '✦';
  position: absolute;
  left: 0;
  color: var(--solar);
  font-size: 0.78rem;
}

/* ── the order ──────────────────────────────────────────────── */
.order {
  position: relative;
  max-width: none;
  overflow: hidden;
  padding: 150px 32px;
}
.order-bg { position: absolute; inset: 0; }
.order-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.18;
  filter: saturate(0.85);
}
.order-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--void) 0%, rgba(13, 24, 36, 0.55) 45%, var(--void) 100%);
}
.order-inner {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
.criteria {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 38px;
}
.criteria li {
  font-size: 0.64rem;
  letter-spacing: 0.2em;
  color: var(--gold);
  border: 1px solid rgba(200, 168, 107, 0.35);
  background: rgba(8, 15, 22, 0.65);
  padding: 9px 16px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
  margin-top: 76px;
}
.stats dt {
  font-size: 0.6rem;
  letter-spacing: 0.24em;
  color: var(--ivory-faint);
  margin-bottom: 10px;
}
.stats dd {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  color: var(--ivory);
  text-shadow: 0 0 30px rgba(0, 245, 212, 0.18);
}

/* ── faq ────────────────────────────────────────────────────── */
.faq-grid {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 72px;
  align-items: start;
}
.faq details {
  border-bottom: 1px solid var(--gold-line);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 36px 20px 0;
  font-family: var(--font-sub);
  font-weight: 600;
  font-size: 1.08rem;
  letter-spacing: 0.05em;
  position: relative;
  transition: color 0.25s ease;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  position: absolute;
  right: 4px; top: 50%;
  transform: translateY(-50%);
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}
.faq details[open] summary { color: var(--cyan); }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p {
  padding: 0 0 22px;
  font-size: 0.93rem;
  color: var(--ivory-dim);
  max-width: 58ch;
}
.faq h2 { margin-bottom: 26px; }

/* ── final cta ──────────────────────────────────────────────── */
.final-cta {
  position: relative;
  padding: 190px 32px;
  text-align: center;
  overflow: hidden;
}
.final-bg { position: absolute; inset: 0; }
.final-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 30%;
  opacity: 0.32;
}
.final-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--void) 2%, rgba(13, 24, 36, 0.45) 50%, var(--void) 98%);
}
.final-inner { position: relative; max-width: 820px; margin: 0 auto; }
.final-inner h2 { font-size: clamp(2.2rem, 5.4vw, 3.8rem); }
.final-inner .body-lg { margin-left: auto; margin-right: auto; }
.final-inner .cta-row { margin-top: 44px; }

/* ── footer ─────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--gold-line);
  padding: 70px 32px 44px;
  background: var(--void-deep);
}
.footer-inner { max-width: var(--maxw); margin: 0 auto; }
.footer-brand { text-align: center; }
.wordmark-foot {
  font-size: 2.1rem;
  letter-spacing: 0.34em;
  margin-left: 0.34em; /* visually recenter tracked caps */
}
.footer-brand .mono {
  margin-top: 10px;
  font-size: 0.6rem;
  letter-spacing: 0.32em;
  color: var(--ivory-faint);
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-top: 36px;
}
.footer-links a {
  font-family: var(--font-sub);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ivory-dim);
  transition: color 0.25s ease;
}
.footer-links a:hover { color: var(--cyan); }
.footer-line {
  margin-top: 44px;
  text-align: center;
  font-size: 0.6rem;
  letter-spacing: 0.26em;
  color: var(--ivory-faint);
}
.footer-line i { color: var(--solar); font-style: normal; padding: 0 10px; }

/* ── responsive ─────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .lab-grid { grid-template-columns: 1fr; }
  .lab-grid .side-art { max-width: 440px; margin: 0 auto; }
  .price-card { position: static; max-width: 520px; margin: 0 auto; }
  .split, .split.flip { grid-template-columns: 1fr; gap: 56px; }
  .split .side-art { order: 2; max-width: 520px; margin: 0 auto; }
  .hero-inner { grid-template-columns: 1fr; gap: 64px; }
  .hero-art { max-width: 480px; margin: 0 auto; }
  .demo-row { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; gap: 56px; }
  .faq-grid .side-art { max-width: 440px; margin: 0 auto; }
}

@media (max-width: 900px) {
  .arsenal-grid { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; gap: 40px 26px; }
  .feature-list { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background: rgba(8, 15, 22, 0.97);
    flex-direction: column;
    justify-content: center;
    gap: 36px;
    transform: translateY(-102%);
    visibility: hidden;
    transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1), visibility 0s linear 0.45s;
  }
  .nav.open .nav-links { transform: translateY(0); visibility: visible; transition-delay: 0s; }
  .nav-links a:not(.btn) { font-size: 1.2rem; }
}

@media (max-width: 560px) {
  .section { padding: 90px 22px; }
  .hero { padding: 130px 22px 80px; }
  .process { grid-template-columns: 1fr; }
  .corner-label { display: none; }
  .quote-band { padding: 110px 22px; }
  .final-cta { padding: 140px 22px; }
  .order { padding: 110px 22px; }
}

/* ── reduced motion ─────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
  .scanlines { display: none; }
}

/* ════════════════════════════════════════════════════════════
   IMMERSION LAYER · gate, descent, preloader, atmosphere
   ════════════════════════════════════════════════════════════ */

/* layering: dust above body bg, content above dust, overlays on top */
#dust { position: fixed; inset: 0; z-index: 1; pointer-events: none; }
main, .footer { position: relative; z-index: 2; }

.scanlines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1900;
  background: repeating-linear-gradient(to bottom, transparent 0 3px, rgba(0, 0, 0, 0.09) 3px 4px);
  mix-blend-mode: multiply;
  opacity: 0.55;
}

.scramble-glyph { color: rgba(200, 168, 107, 0.55); }

/* image-level film grain: the poster texture lives ON the art */
.art-grain {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 220px 220px;
  opacity: 0.3;
  mix-blend-mode: overlay;
  animation: grain-dance 0.85s steps(3) infinite;
}
@keyframes grain-dance {
  0%, 100% { background-position: 0 0; }
  33% { background-position: 42px -30px; }
  66% { background-position: -34px 38px; }
}

html.is-loading body { overflow: hidden; }
html:not(.js) .reveal { opacity: 1; transform: none; }

/* nav stays sealed until the intro completes */
html.immersive:not(.intro-done) .nav { opacity: 0; pointer-events: none; visibility: hidden; }

.gate-door,
[data-depth] { will-change: transform; }
.descent-figwrap { will-change: transform, filter; }

/* ── preloader ──────────────────────────────────────────────── */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 4000;
  background: var(--void-deep);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 26px;
}
html:not(.immersive) .preloader { display: none; }
.preloader-sigil {
  width: 88px;
  color: var(--gold);
  filter: drop-shadow(0 0 12px rgba(200, 168, 107, 0.5));
  animation: spin-slow 14s linear infinite;
}
.preloader-line {
  font-size: 0.62rem;
  letter-spacing: 0.34em;
  color: var(--ivory-dim);
}

/* ── the gate ───────────────────────────────────────────────── */
.gate {
  position: relative;
  height: 100vh;
  overflow: hidden;
  background: var(--void-deep);
}
.gate-behind {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gate-burst {
  position: absolute;
  inset: -20%;
  background: radial-gradient(circle at 50% 50%, rgba(217, 130, 43, 0.5), rgba(200, 168, 107, 0.16) 32%, transparent 64%);
  opacity: 0.1;
}
.gate-sigil { position: relative; text-align: center; }
.gate-halo {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -56%);
  width: min(58vmin, 560px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(200, 168, 107, 0.45);
  box-shadow: 0 0 70px rgba(217, 130, 43, 0.22), inset 0 0 50px rgba(217, 130, 43, 0.08);
  animation: spin-slow 70s linear infinite;
  pointer-events: none;
}
.gate-halo::after {
  content: '✦';
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  color: var(--solar);
  font-size: 1.1rem;
  text-shadow: 0 0 16px rgba(217, 130, 43, 0.8);
}
.gate-wordmark {
  position: relative;
  font-size: clamp(3rem, 9vw, 6.4rem);
  letter-spacing: 0.3em;
  margin-left: 0.3em;
}
html.immersive .gate-wordmark { opacity: 0.25; }
.gate-line {
  position: relative;
  margin-top: 28px;
  font-size: 0.68rem;
  letter-spacing: 0.44em;
  color: var(--gold);
}
html.immersive .gate-line { opacity: 0; }

.gate-doors {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  perspective: 1300px;
}
.gate-door {
  position: relative;
  width: 50%;
  height: 100%;
  overflow: hidden;
  background: var(--void-deep);
  backface-visibility: hidden;
}
.gate-door.left { transform-origin: left center; }
.gate-door.right { transform-origin: right center; }
.gate-door img {
  position: absolute;
  top: 0;
  width: 200%;
  max-width: none; /* beat the global img clamp: each door holds the full-viewport image */
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  filter: saturate(0.92);
}
.gate-door.left img { left: 0; }
.gate-door.right img { left: -100%; }
.gate-door::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 15, 22, 0.42) 0%, transparent 30%, transparent 62%, rgba(8, 15, 22, 0.6) 100%);
  pointer-events: none;
}
.door-edge {
  position: absolute;
  top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, transparent, rgba(200, 168, 107, 0.85), transparent);
  z-index: 2;
  opacity: 0;
}
html:not(.immersive) .door-edge { opacity: 1; }
.gate-door.left .door-edge { right: 0; }
.gate-door.right .door-edge { left: 0; }

.gate-seam {
  position: absolute;
  left: 50%; top: 7%; bottom: 7%;
  width: 2px;
  z-index: 3;
  transform: translateX(-50%);
  background: linear-gradient(180deg, transparent, rgba(217, 130, 43, 0.9), transparent);
  box-shadow: 0 0 26px rgba(217, 130, 43, 0.8);
}
.gate-hud {
  position: absolute;
  z-index: 4;
  font-size: 0.6rem;
  letter-spacing: 0.26em;
  color: var(--ivory-faint);
}
html.immersive .gate-hud { opacity: 0; }
.gate-hud.tl { top: 26px; left: 30px; }
.gate-hud.tr { top: 26px; right: 30px; }
.gate-hud.bl { bottom: 26px; left: 30px; }
.gate-hint {
  position: absolute;
  z-index: 4;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.62rem;
  letter-spacing: 0.34em;
  color: var(--gold);
  opacity: 0;
  animation: bob 2.4s ease-in-out infinite;
}

/* static fallback: no pin, the gate is a title plate */
html:not(.immersive) .gate { height: 86vh; }
html:not(.immersive) .gate-doors,
html:not(.immersive) .gate-seam,
html:not(.immersive) .gate-hint { display: none; }
html:not(.immersive) .gate-burst { opacity: 0.6; }

/* ── oracle descent ─────────────────────────────────────────── */
.descent { position: relative; background: transparent; }
.descent-stage {
  position: relative;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.descent-veil {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 26%, rgba(8, 15, 22, 0) 22%, rgba(4, 8, 12, 0.92) 78%);
  opacity: 0;
  pointer-events: none;
}
.descent-rays {
  position: absolute;
  top: -8%;
  left: 50%;
  transform: translateX(-50%);
  width: 150vmin;
  aspect-ratio: 1;
  background: repeating-conic-gradient(from -8deg at 50% 0%, rgba(217, 130, 43, 0.14) 0deg 3deg, transparent 3deg 13deg);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, black 18%, transparent 68%);
  mask-image: radial-gradient(ellipse at 50% 0%, black 18%, transparent 68%);
  opacity: 0;
  pointer-events: none;
}
.descent-arches { position: absolute; inset: 0; pointer-events: none; }
.arch {
  position: absolute;
  left: 50%;
  bottom: 4%;
  transform: translateX(-50%);
  border: 1px solid rgba(200, 168, 107, 0.55);
  border-bottom: none;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  opacity: 0.12;
}
.arch.a1 { width: 92vmin; height: 64vmin; }
.arch.a2 { width: 66vmin; height: 46vmin; }
.arch.a3 { width: 42vmin; height: 30vmin; }
.descent-figwrap {
  position: relative;
  z-index: 2;
  width: clamp(230px, 30vh, 400px);
  aspect-ratio: 1696 / 2528;
  filter: drop-shadow(0 0 60px rgba(217, 130, 43, 0.25)) drop-shadow(0 30px 50px rgba(0, 0, 0, 0.55));
}
.descent-figwrap .m-canvas { opacity: 1; transition: none; }
.descent-lines { position: absolute; inset-inline: 0; bottom: 17%; z-index: 3; pointer-events: none; }
.d-line {
  position: absolute;
  inset-inline: 24px;
  text-align: center;
  font-size: 0.78rem;
  letter-spacing: 0.3em;
  color: var(--ivory);
  text-shadow: 0 0 18px rgba(0, 0, 0, 0.9);
}
html.immersive .d-line { opacity: 0; }
.descent-arrival {
  position: absolute;
  inset-inline: 24px;
  bottom: 9%;
  z-index: 3;
  text-align: center;
}
html.immersive .descent-arrival { opacity: 0; }
.descent-arrival h2 { font-size: clamp(1.8rem, 4.4vw, 3rem); }
.descent-arrival .body-lg { margin: 14px auto 0; }
.descent-cue {
  margin-top: 20px;
  font-size: 0.6rem;
  letter-spacing: 0.34em;
  color: var(--ivory-faint);
  animation: bob 2.4s ease-in-out infinite;
  display: inline-block;
}
.descent-hud {
  position: absolute;
  top: 96px;
  z-index: 3;
  font-size: 0.6rem;
  letter-spacing: 0.26em;
  color: var(--ivory-faint);
}
.descent-hud b { color: var(--gold); font-weight: 400; }
.descent-hud.hl { left: 30px; }
.descent-hud.hr { right: 30px; }

/* static fallback: a simple shrine, no choreography */
html:not(.immersive) .descent-stage { height: auto; padding: 110px 24px; flex-direction: column; gap: 36px; }
html:not(.immersive) .descent-lines,
html:not(.immersive) .descent-arches,
html:not(.immersive) .descent-hud,
html:not(.immersive) .descent-cue { display: none; }
html:not(.immersive) .descent-arrival { position: static; }
html:not(.immersive) .descent-rays { opacity: 0.35; }
html:not(.immersive) .descent-veil { opacity: 0.4; }

/* ── roadmap ignition (immersive only) ──────────────────────── */
html.immersive .roadmap li::before {
  opacity: 0.18;
  box-shadow: none;
  transition: opacity 0.6s ease, box-shadow 0.6s ease;
}
html.immersive .roadmap li.lit::before {
  opacity: 1;
  box-shadow: 0 0 14px rgba(200, 168, 107, 0.7);
}

/* ── return to the gate ─────────────────────────────────────── */
.gate-return {
  background: none;
  border: none;
  margin-top: 38px;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.3em;
  color: var(--ivory-faint);
  cursor: pointer;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}
.gate-return:hover { color: var(--cyan); text-shadow: 0 0 14px rgba(0, 245, 212, 0.5); }

/* ── living 3D scenes: full-bleed backgrounds, copy in front ── */
.has-scene { position: relative; max-width: none; }
.has-scene > .fg {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin: 0 auto;
}
.scene3d {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
/* tall sections: the scene rides with you (viewport-pinned), copy scrolls over it */
.has-scene > .scene3d {
  position: sticky;
  top: 0;
  inset: auto;
  display: block;
  width: 100%;
  height: 100vh;
  margin-bottom: -100vh;
}
.scene-under {
  position: absolute;
  inset: -4%;
  background-size: cover;
  background-position: center 30%;
  filter: blur(16px) brightness(0.4) saturate(0.7);
}
.scene3d .m-canvas { opacity: 0; transition: opacity 1.4s ease; }
.scene3d.live .m-canvas { opacity: 1; }
.scene-veil { position: absolute; inset: 0; }
.scene-veil.v-left {
  background:
    linear-gradient(90deg, var(--void) 4%, rgba(13, 24, 36, 0.82) 30%, rgba(13, 24, 36, 0.12) 62%, rgba(13, 24, 36, 0.45) 100%),
    linear-gradient(180deg, rgba(13, 24, 36, 0.65) 0%, transparent 22%, transparent 72%, var(--void) 100%);
}
.scene-veil.v-right {
  background:
    linear-gradient(270deg, var(--void) 4%, rgba(13, 24, 36, 0.82) 30%, rgba(13, 24, 36, 0.12) 62%, rgba(13, 24, 36, 0.45) 100%),
    linear-gradient(180deg, rgba(13, 24, 36, 0.65) 0%, transparent 22%, transparent 72%, var(--void) 100%);
}
.scene-veil.v-center {
  background:
    radial-gradient(ellipse at 50% 22%, rgba(13, 24, 36, 0.78) 0%, rgba(13, 24, 36, 0.3) 40%, transparent 64%),
    linear-gradient(180deg, rgba(13, 24, 36, 0.7) 0%, transparent 24%, transparent 64%, var(--void) 96%);
}
.scene-caption {
  position: absolute;
  bottom: 26px;
  right: 30px;
  font-size: 0.6rem;
  letter-spacing: 0.26em;
  color: var(--ivory-faint);
}

/* ── poster mode: mobile / touch shows static renders (no live 3D) ── */
.descent-poster { display: none; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
html.poster-mode .scene-under {
  inset: 0;
  filter: blur(4px) brightness(0.48) saturate(0.82);
  background-position: center 22%;
}
html.poster-mode .scene-veil {
  background:
    linear-gradient(180deg, rgba(13, 24, 36, 0.9) 0%, rgba(13, 24, 36, 0.5) 30%, rgba(13, 24, 36, 0.46) 62%, var(--void) 100%) !important;
}
html.poster-mode .scene-caption { display: none; }
html.poster-mode .descent-figwrap .m-canvas { display: none; }
html.poster-mode .descent-poster { display: block; }
/* mobile: copy always visible regardless of the scroll-reveal observer */
html.poster-mode .reveal { opacity: 1; transform: none; transition: none; }

.hero-inner.hero-fg {
  display: block;
  position: relative;
  z-index: 1;
}
.hero-fg .hero-copy { max-width: 640px; }
.hero-fg h1 { text-shadow: 0 6px 44px rgba(0, 0, 0, 0.6); }
.hero-fg .lede { text-shadow: 0 2px 18px rgba(0, 0, 0, 0.7); }

.fg-narrow { max-width: 640px; }
.fg-narrow.right { margin-left: auto; }
.fg-narrow .section-head { text-align: left; margin-bottom: 48px; }
.fg-narrow .section-head .body-lg { margin-left: 0; }
.fg-narrow .feature-list { grid-template-columns: 1fr 1fr; max-width: none; margin: 0; }
.fg-narrow .feature-list li span:not(.f-title) { text-shadow: 0 2px 14px rgba(0, 0, 0, 0.7); }

.integrations .agent-card {
  background: linear-gradient(165deg, rgba(8, 15, 22, 0.88), rgba(8, 15, 22, 0.72));
}
.clone .demo-row { margin-top: 96px; }

@media (max-width: 900px) {
  .fg-narrow { max-width: none; }
  .fg-narrow .feature-list { grid-template-columns: 1fr; }
  .scene-caption { display: none; }
}

/* ── monoliths: centered 3D idols that descend on scroll ────── */
.hero-inner.centered {
  display: block;
  max-width: 900px;
  text-align: center;
}
.hero-inner.centered .lede,
.hero-inner.centered .hero-chips { margin-left: auto; margin-right: auto; }
.hero-inner.centered .cta-row,
.hero-inner.centered .hero-chips { justify-content: center; }

.monolith {
  position: relative;
  margin: 76px auto 0;
  max-width: min(440px, 78vw);
  perspective: 1200px;
}
.monolith-stage { position: relative; transform-style: preserve-3d; will-change: transform; }
.monolith-tilt { transform-style: preserve-3d; will-change: transform; }
.monolith-slab {
  position: relative;
  transform-style: preserve-3d;
  border: 1px solid rgba(200, 168, 107, 0.4);
  background: var(--void-deep);
  box-shadow: 0 46px 100px rgba(0, 0, 0, 0.62), 0 0 70px rgba(217, 130, 43, 0.08);
}
.monolith-slab img {
  width: 100%;
  height: auto;
  display: block;
  filter: saturate(0.97) contrast(1.03);
}
.m-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 16%, rgba(217, 130, 43, 0.18), transparent 56%);
  mix-blend-mode: screen;
  pointer-events: none;
}
.m-frame { position: absolute; pointer-events: none; border: 1px solid rgba(200, 168, 107, 0.5); }
.m-frame.f1 { inset: -16px; transform: translateZ(48px); }
.m-frame.f2 { inset: -34px; border-color: rgba(200, 168, 107, 0.2); transform: translateZ(96px); }
.m-halo {
  position: absolute;
  top: 50%; left: 50%;
  width: 132%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(200, 168, 107, 0.22);
  box-shadow: 0 0 90px rgba(217, 130, 43, 0.1);
  transform: translate(-50%, -50%) translateZ(-90px);
  pointer-events: none;
}
.m-shadow {
  position: absolute;
  left: 50%;
  bottom: -38px;
  width: 72%;
  height: 30px;
  background: radial-gradient(ellipse, rgba(0, 0, 0, 0.6), transparent 70%);
  filter: blur(7px);
  transform: translateX(-50%);
  pointer-events: none;
}
.monolith .art-caption { margin-top: 48px; }
.m-canvas {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  opacity: 0;
  transition: opacity 1s ease;
  pointer-events: none;
}
.monolith-slab.live .m-canvas,
.descent-figwrap.live .m-canvas { opacity: 1; }
.monolith-slab.live > img,
.descent-figwrap.live > img {
  opacity: 0.28;
  filter: saturate(0.7) brightness(0.75) blur(1px);
  transition: opacity 1s ease, filter 1s ease;
}

.centered-col { max-width: 830px; margin: 0 auto; }
.clone .feature-list { max-width: 1000px; margin: 84px auto 0; }

@media (max-width: 560px) {
  .monolith { max-width: 86vw; margin-top: 60px; }
  .m-frame.f2 { display: none; }
}

/* ── immersion: small screens ───────────────────────────────── */
@media (max-width: 768px) {
  .scanlines { display: none; }
  .art-grain { animation: none; }
  .agent-portrait { flex-basis: 88px; height: 126px; }
  .agent-card { gap: 16px; }
  .gate-hud { font-size: 0.52rem; }
  .gate-wordmark { letter-spacing: 0.22em; margin-left: 0.22em; }
  .descent-figwrap { width: clamp(190px, 44vw, 280px); }
  .d-line { font-size: 0.6rem; letter-spacing: 0.2em; }
  .descent-hud { top: 88px; }
  .descent-hud.hl { left: 18px; }
  .descent-hud.hr { right: 18px; }
}
