/* ==========================================================================
   KRYO sections v2 — cinematic scroll-story
   hero (aurora + engagement pass) · marquee · story chapters · interstitial ·
   horizontal how · who · pricing · trust · faq · contact · footer · HUD
   Mobile-first / no-JS: everything stacks and reads top-to-bottom; JS adds
   .story--pinned and .how--h for the pinned desktop scenes.
   ========================================================================== */

.section-head .microlabel {
  display: block;
  margin-bottom: var(--space-3);
}

/* --- Hero ------------------------------------------------------------------ */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: calc(100vh - var(--nav-h));
  min-height: calc(100svh - var(--nav-h));
  padding-block: var(--space-7) calc(var(--hud-h) + var(--space-8));
  overflow: clip;
  background: linear-gradient(180deg, #0b1030 0%, var(--ink-900) 78%);
}

/* will-change only on the big, continuously-moving layers. Cards carry
   data-depth too, but they travel a few percent of their own height — the hint
   is not worth a permanent compositing layer each. */
.hero [data-depth],
.section-glow {
  will-change: transform;
}

/* Viewport-sized, not hero-sized: hero height depends on text metrics, and a
   font swap changing it would count the whole sky as a layout shift. */
.hero-sky {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100vh;
  height: 100svh;
  z-index: 0;
}

.aurora {
  position: absolute;
  border-radius: var(--radius-full);
  mix-blend-mode: screen;
}

.aurora--a {
  width: clamp(420px, 62vw, 900px);
  aspect-ratio: 1;
  top: -28%;
  left: -14%;
  background: radial-gradient(circle, var(--aurora-cyan) 0%, transparent 62%);
  animation: aurora-a 16s var(--ease-in-out) infinite alternate;
}

.aurora--b {
  width: clamp(400px, 56vw, 860px);
  aspect-ratio: 1;
  top: -6%;
  right: -16%;
  background: radial-gradient(circle, var(--aurora-violet) 0%, transparent 64%);
  animation: aurora-b 20s var(--ease-in-out) infinite alternate;
}

.aurora--c {
  width: clamp(480px, 72vw, 1100px);
  aspect-ratio: 1;
  bottom: -52%;
  left: 12%;
  background: radial-gradient(circle, var(--aurora-blue) 0%, transparent 66%);
  animation: aurora-c 24s var(--ease-in-out) infinite alternate;
}

@keyframes aurora-a { from { translate: 0 0; } to { translate: 4% 6%; } }
@keyframes aurora-b { from { translate: 0 0; } to { translate: -5% 4%; } }
@keyframes aurora-c { from { translate: 0 0; } to { translate: 3% -5%; } }

.hero-grid {
  position: absolute;
  inset: -20%;
  -webkit-mask-image: radial-gradient(ellipse 72% 62% at 50% 32%, #000 22%, transparent 74%);
  mask-image: radial-gradient(ellipse 72% 62% at 50% 32%, #000 22%, transparent 74%);
}

/* grounds the aurora into the black page below */
.hero-haze {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 46%, var(--ink-900) 97%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  align-items: center;
  gap: var(--space-8);
}

/* grid items must be allowed to shrink below content min-width,
   or the 1fr track blows out past the container on narrow screens */
.hero-inner > * {
  min-width: 0;
}

@media (min-width: 960px) {
  .hero-inner {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

.hero-kicker {
  margin-bottom: var(--space-5);
  color: var(--cyan-300);
}

.hero-title {
  margin-bottom: var(--space-5);
  font-size: clamp(2.5rem, 1.4rem + 3.4vw, 4.1rem);
  line-height: 1.05;
}

/* Narrow phones: below ~380px the clamp floor stops scaling but the column keeps
   shrinking, so the longest unbreakable phrase in an H1 ("penetration testing")
   overflows and the line wraps — turning the designed 4 lines into 5. Two steps
   down, each measured against the real column width at that viewport. */
@media (max-width: 379px) {
  .hero-title {
    font-size: 2.2rem;
  }
}

/* Ultra-narrow screens (Galaxy Fold cover, 280px): the serif "pentester's"
   needs a slightly smaller floor to fit. */
@media (max-width: 339px) {
  .hero-title {
    font-size: 2.1rem;
  }
}

.ht-line {
  display: block;
}

.hero-lead {
  max-width: 34rem;
  margin-bottom: var(--space-6);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}

.hero-note {
  letter-spacing: 0.02em;
}

/* Phones: the consent bar is position:fixed over the bottom of the first
   viewport, and the hero is taller than that viewport, so bottom padding cannot
   move the CTAs — only removing vertical rhythm above them can. Paired with the
   .consent-bar tightening in components.css; neither alone clears 360px. */
@media (max-width: 719px) {
  .hero {
    padding-block: var(--space-4) calc(var(--hud-h) + var(--space-6));
  }

  .hero-kicker {
    margin-bottom: var(--space-2);
  }

  .hero-title {
    margin-bottom: var(--space-3);
  }

  .hero-lead {
    margin-bottom: var(--space-4);
  }

  .hero-cta {
    gap: var(--space-3);
  }
}

/* --- Engagement pass (boarding-pass homage, decorative) --------------------- */
.pass {
  justify-self: end;
  width: min(400px, 100%);
  padding: var(--space-5);
  position: relative;
  background: linear-gradient(165deg, rgba(24, 33, 66, 0.92), rgba(8, 12, 26, 0.94));
  border: 1px solid var(--glass-border-hover);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-3), 0 0 42px rgba(106, 227, 255, 0.10);
}

.pass-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--glass-border);
}

.pass-title {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.78rem;
  letter-spacing: 0.09em;
  color: var(--cyan-300);
}

.pass-mark {
  width: 16px;
  height: 16px;
  color: var(--cyan-400);
  flex: none;
}

.pass-stamp {
  padding: 4px 9px;
  border-radius: 5px;
  background: var(--cyan-400);
  color: var(--text-on-accent);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.pass-route {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding-block: var(--space-5);
}

.pass-node .microlabel {
  display: block;
  margin-bottom: var(--space-1);
  font-size: 0.66rem;
}

.pass-node strong {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1.15;
  letter-spacing: 0.02em;
  color: var(--text-hi);
}

.pass-node--dest strong {
  color: var(--cyan-400);
}

.pass-path {
  flex: 1;
  min-width: 0; /* let the SVG shrink below its intrinsic width on tiny screens */
  height: 24px;
  color: var(--cyan-400);
  opacity: 0.85;
}

.pass-rows {
  border-top: 1px dashed var(--glass-border-hover);
  padding-top: var(--space-4);
}

.pass-rows li {
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  padding-block: 5px;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--text-low);
}

.pass-rows .pass-val {
  color: var(--text-mid);
  text-align: right;
}

.pass-barcode {
  height: 32px;
  margin-top: var(--space-4);
  border-radius: 2px;
  background: repeating-linear-gradient(90deg,
    rgba(234, 242, 255, 0.75) 0 2px, transparent 2px 5px,
    rgba(234, 242, 255, 0.40) 5px 6px, transparent 6px 11px);
  opacity: 0.5;
}

@media (max-width: 959px) {
  .pass {
    justify-self: start;
  }
}

/* --- Marquee ------------------------------------------------------------------ */
.marquee {
  overflow: hidden;
  padding-block: var(--space-5);
  border-block: 1px solid var(--ink-700);
  background: var(--ink-950);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 30s linear infinite;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-chunk {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 3.4vw, 3rem);
  letter-spacing: -0.01em;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(234, 242, 255, 0.55);
  padding-right: 0.5em;
}

.marquee-chunk i {
  font-style: normal;
  color: var(--cyan-400);
  -webkit-text-stroke: 0;
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* --- Story (three chapters; pinned + scrubbed on desktop via JS) ------------- */
.story {
  position: relative;
  background: var(--ink-950);
  padding-top: var(--section-pad);
}

.story-label {
  padding-bottom: var(--space-6);
}

.story-stage {
  position: relative;
}

.chapters {
  position: relative;
}

.chapter {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: var(--space-8);
  min-height: 62vh;
}

.chapter-tag {
  margin-bottom: var(--space-4);
}

.chapter-title {
  font-size: var(--step-6);
  line-height: 1.02;
  letter-spacing: -0.02em;
  max-width: 11em;
}

.chapter-facts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6) var(--space-8);
  margin-top: var(--space-6);
}

.fact {
  max-width: 340px;
}

.fact--wide {
  max-width: 580px;
}

.fact-num {
  display: block;
  margin-bottom: var(--space-2);
  font-size: var(--step-4);
  line-height: 1.05;
  color: var(--cyan-400);
  font-variant-numeric: tabular-nums;
}

.fact p {
  font-size: 0.98rem;
  color: var(--text-mid);
}

.fact-src {
  display: block;
  margin-top: var(--space-1);
  font-size: var(--step--1);
  color: var(--text-low);
}

/* The source anchor stays a muted caption rather than taking the global cyan
   link colour — it is an attribution, not a call to action. */
.fact-src a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.fact-src a:hover {
  color: var(--text-mid);
}

/* chapter progress rail — only meaningful in the pinned scene */
.story-rail {
  display: none;
}

.story--pinned .story-rail {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  position: absolute;
  right: var(--gutter);
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
}

.story-rail li {
  color: rgba(157, 176, 206, 0.32);
  transition: color var(--dur-base) var(--ease-out);
}

.story-rail li.is-active {
  color: var(--cyan-400);
}

/* pinned mode: chapters stack in place, timeline cross-fades them */
.story--pinned .story-stage {
  height: 100vh;
  height: 100svh;
}

.story--pinned .chapters {
  height: 100%;
}

.story--pinned .chapter {
  position: absolute;
  inset: 0;
  min-height: 0;
  padding-block: 0;
  padding-right: var(--space-8);
}

/* --- Interstitial ---------------------------------------------------------------- */
.interstitial {
  position: relative;
  min-height: 66vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-5);
  padding-block: var(--space-9);
  text-align: center;
  overflow: clip;
  background: var(--ink-900);
}

.interstitial-frost {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 34% 46% at 20% 50%, rgba(106, 227, 255, 0.10), transparent 70%),
    radial-gradient(ellipse 34% 46% at 80% 50%, rgba(139, 108, 255, 0.10), transparent 70%),
    radial-gradient(ellipse 40% 52% at 50% 55%, rgba(62, 123, 255, 0.12), transparent 72%);
}

.interstitial-line {
  position: relative;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step-6);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--text-hi);
  max-width: none;
  /* The section is full-bleed with overflow: clip. Without a gutter the longer
     lines (e.g. automation) sit flush against both viewport edges and the italic
     serif overhang gets shaved off. Balance keeps the wrap from stranding a
     single word on line two. */
  padding-inline: var(--gutter);
  text-wrap: balance;
}

/* Solid color, not gradient-clip: SplitText transforms the char boxes and
   background-clip:text does not travel with them. */
.interstitial-line .serif-it {
  color: var(--cyan-300);
}

.interstitial-sub {
  position: relative;
  color: var(--text-mid);
  max-width: 44rem;
}

/* --- How (vertical stack by default; JS pins + slides horizontally) ---------- */
.how {
  position: relative;
  background: var(--ink-950);
  padding-block: var(--section-pad);
  overflow: clip;
}

.how-head {
  margin-bottom: var(--space-7);
}

.how-head .microlabel {
  display: block;
  margin-bottom: var(--space-3);
}

.how-track {
  display: grid;
  gap: var(--space-5);
  width: min(var(--container), 100% - var(--gutter) * 2);
  margin-inline: auto;
}

.panel {
  display: flex;
  flex-direction: column;
  padding: var(--space-7) var(--space-6);
  background: linear-gradient(180deg, var(--ink-800), var(--ink-850));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-2);
}

.panel-num {
  display: block;
  margin-bottom: var(--space-5);
  font-size: var(--step-4);
  line-height: 1;
  color: var(--cyan-400);
}

.panel h3 {
  margin-bottom: var(--space-3);
  font-size: 1.45rem;
}

.panel p {
  color: var(--text-mid);
}

.panel-tag {
  margin-top: auto;
  padding-top: var(--space-5);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--text-low);
}

.panel-tag::before {
  content: "";
  display: block;
  margin-bottom: var(--space-3);
  border-top: 1px dashed var(--ink-600);
}

/* horizontal pinned mode (JS + desktop only) */
.how--h .how-viewport {
  height: 100vh;
  height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.how--h .how-track {
  display: flex;
  gap: var(--space-6);
  width: max-content;
  margin: 0;
  padding-inline: 8vw;
}

.how--h .panel {
  width: min(560px, 68vw);
  min-height: 380px;
  flex: none;
}

/* --- Who ------------------------------------------------------------------------- */
.who {
  background: var(--ink-900);
}

.card--segment {
  padding: var(--space-7) var(--space-6);
}

.card--segment .check-list {
  margin-top: var(--space-5);
}

/* --- Pricing ------------------------------------------------------------------------ */
.pricing-grid {
  display: grid;
  gap: var(--space-6) var(--space-5);
  align-items: stretch;
}

@media (min-width: 960px) {
  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: var(--space-7) var(--space-6) var(--space-6);
  background: linear-gradient(180deg, var(--ink-800), var(--ink-850));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-2);
  transition: border-color var(--dur-base) var(--ease-out);
}

.price-card:hover {
  border-color: var(--glass-border-hover);
}

.price-card h3 {
  font-size: 1.35rem;
}

.price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-2);
  margin-block: var(--space-4) var(--space-2);
}

.price-num {
  font-size: clamp(1.6rem, 1.35rem + 0.8vw, 2rem);
  line-height: 1.1;
  letter-spacing: var(--tracking-tight);
  color: var(--text-hi);
  white-space: nowrap;
}

.price-per {
  font-size: var(--step--1);
  color: var(--text-low);
}

.price-desc {
  margin-bottom: var(--space-4);
  color: var(--text-mid);
}

.price-card .check-list {
  flex-grow: 1;
  margin-bottom: var(--space-6);
}

@property --angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

.price-card--featured {
  background: var(--ink-800);
  box-shadow: var(--shadow-3), var(--glow-sm);
}

/* Animated ring only: masked to a thin frame so it stays a border even
   when the card carries a transform (which would defeat z-index: -1). */
.price-card--featured::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1.5px;
  background: conic-gradient(from var(--angle),
    rgba(106, 227, 255, 0.08),
    var(--cyan-400) 25%,
    rgba(62, 123, 255, 0.7) 50%,
    rgba(106, 227, 255, 0.08) 75%,
    var(--cyan-400));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
  animation: spin-border 7s linear infinite;
}

@keyframes spin-border {
  to { --angle: 360deg; }
}

.price-card--featured .price-num {
  color: var(--cyan-400);
}

.pricing-note {
  margin-top: var(--space-7);
}

/* --- Trust ---------------------------------------------------------------------------- */
.trust-grid {
  gap: var(--space-7) var(--space-8);
}

.trust-item {
  padding-left: var(--space-5);
  border-left: 2px solid var(--ink-600);
}

.trust-item h3 {
  margin-bottom: var(--space-2);
  font-size: 1.25rem;
}

/* --- Contact ------------------------------------------------------------------------------ */
.contact {
  position: relative;
  overflow: clip;
}

.contact::before {
  content: "";
  position: absolute;
  bottom: -40%;
  left: -15%;
  z-index: -1;
  width: clamp(320px, 44vw, 620px);
  aspect-ratio: 1;
  border-radius: var(--radius-full);
  background: radial-gradient(circle,
    rgba(106, 227, 255, 0.14) 0%,
    rgba(106, 227, 255, 0.04) 45%,
    transparent 70%);
}

.contact-inner {
  display: grid;
  gap: var(--space-8);
  align-items: start;
}

@media (min-width: 960px) {
  .contact-inner {
    grid-template-columns: 1fr 1.1fr;
  }
}

.contact-copy .microlabel {
  display: block;
  margin-bottom: var(--space-3);
}

.contact-copy h2 {
  margin-bottom: var(--space-4);
}

.contact-alt {
  margin-top: var(--space-5);
  color: var(--text-mid);
}

.contact-form {
  padding: clamp(var(--space-5), 4vw, var(--space-7));
  background: linear-gradient(180deg, var(--ink-800), var(--ink-850));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-3);
}

.contact-form .btn {
  margin-top: var(--space-2);
}

.form-note {
  margin-top: var(--space-4);
}

/* --- Footer ---------------------------------------------------------------------------------- */
.site-footer {
  position: relative;
  background: var(--ink-950);
  border-top: 1px solid var(--ink-700);
  /* The consent bar overlays the HUD rather than stacking on it, so the space
     to clear is whichever is taller, not their sum. */
  padding-block: var(--space-8) calc(max(var(--hud-h), var(--consent-h)) + var(--space-6));
  overflow: clip;
}

.footer-giant {
  margin: 0 auto var(--space-8);
  display: block;
  width: min(92vw, 68rem);
  height: auto;
  aspect-ratio: 1434.63 / 360;
  fill: none;
  stroke: rgba(106, 227, 255, 0.16);
  stroke-width: 2;
  user-select: none;
}

.footer-inner {
  display: grid;
  gap: var(--space-6);
}

@media (min-width: 720px) {
  .footer-inner {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.footer-brand p {
  margin-top: var(--space-4);
  max-width: 34ch;
}

.footer-nav ul li {
  margin-bottom: var(--space-3);
}

.footer-nav a {
  color: var(--text-mid);
}

.footer-nav a:hover {
  color: var(--cyan-300);
}

.footer-contact a {
  font-size: var(--step-0);
}

.footer-legal {
  margin-top: var(--space-7);
  padding-top: var(--space-5);
  border-top: 1px solid var(--ink-800);
}

/* --- HUD (fixed scroll-telemetry bar) ----------------------------------------------------------- */
.hud {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  height: var(--hud-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-inline: var(--gutter);
  font-size: 0.68rem;
  letter-spacing: 0.09em;
  color: var(--text-low);
  border-top: 1px solid rgba(106, 227, 255, 0.12);
  background: rgba(6, 10, 20, 0.72);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

@supports not (backdrop-filter: blur(1px)) {
  .hud {
    background: rgba(6, 10, 20, 0.95);
  }
}

.hud-cell {
  white-space: nowrap;
}

.hud-left {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.hud-mark {
  width: 13px;
  height: 13px;
  color: var(--cyan-400);
  animation: hud-spin 16s linear infinite;
}

.hud-right {
  color: var(--cyan-400);
  font-variant-numeric: tabular-nums;
}

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

@media (max-width: 719px) {
  .hud-left {
    display: none;
  }
}

/* --- Decorative orbs + simple pages (thanks / 404) ------------------------------------------------ */
.orb {
  position: absolute;
  /* Decorative and aria-hidden, but it still hit-tests: without this it swallowed
     clicks on the brand link underneath it on /thanks.html at every viewport. */
  pointer-events: none;
  width: clamp(320px, 48vw, 680px);
  aspect-ratio: 1;
  border-radius: var(--radius-full);
}

.orb--a {
  top: -12%;
  left: -10%;
  animation: aurora-a 18s var(--ease-in-out) infinite alternate;
  background: radial-gradient(circle,
    rgba(106, 227, 255, 0.26) 0%,
    rgba(106, 227, 255, 0.07) 42%,
    transparent 68%);
}

.orb--b {
  top: 22%;
  right: -14%;
  animation: aurora-c 22s var(--ease-in-out) infinite alternate;
  background: radial-gradient(circle,
    rgba(62, 123, 255, 0.24) 0%,
    rgba(62, 123, 255, 0.06) 45%,
    transparent 70%);
}

/* 404 and thanks load consent.js but have no HUD, so --consent-h alone is the
   space to clear. Centring hides the problem until the content stops fitting:
   below ~375x667 the banner covered their return CTA outright.
   body.page-simple makes body the sticky-footer flex column so .doc-footer
   below renders in-viewport instead of being pushed off by min-height:100svh. */
body.page-simple {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
}

.simple-page {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1;
  padding-block: var(--space-8) calc(var(--space-8) + var(--consent-h));
  overflow: clip;
}

.simple-inner {
  max-width: 640px;
}

.simple-inner .brand {
  margin-bottom: var(--space-7);
}

.simple-inner .eyebrow,
.simple-inner .microlabel {
  display: block;
  margin-bottom: var(--space-4);
}

.simple-inner h1 {
  margin-bottom: var(--space-4);
  font-size: var(--step-4);
}

.simple-inner p {
  margin-bottom: var(--space-6);
}

/* --- Document pages (privacy / terms) --------------------------------------------------------- */
.doc-header {
  position: relative; /* anchors the scroll-progress rail */
  border-bottom: 1px solid var(--ink-700);
  padding-block: var(--space-4);
}

.doc-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.doc-main {
  padding-block: var(--space-8) var(--space-10);
}

.doc-main .container {
  max-width: var(--container-narrow);
}

.doc-main h1 {
  font-size: var(--step-4);
  margin-bottom: var(--space-3);
}

.doc-updated {
  margin-bottom: var(--space-7);
}

.doc-main h2 {
  font-size: 1.35rem;
  margin: var(--space-7) 0 var(--space-3);
}

.doc-main h3 {
  font-size: 1.05rem;
  font-weight: 500;
  margin: var(--space-5) 0 var(--space-2);
}

.doc-main p,
.doc-main li {
  color: var(--text-mid);
  margin-bottom: var(--space-3);
  max-width: 65ch;
}

.doc-main ul,
.doc-main ol {
  padding-left: 1.4rem;
  margin-bottom: var(--space-4);
}

.doc-main ul li {
  list-style: disc;
}

.doc-verify {
  padding: var(--space-4) var(--space-5);
  margin-block: var(--space-5);
  border: 1px solid rgba(255, 184, 107, 0.4);
  border-radius: var(--radius-md);
  background: rgba(255, 184, 107, 0.06);
  color: var(--warn);
  font-size: var(--step--1);
}

/* The legal pages load consent.js but have no HUD, so --consent-h alone is the
   space to clear. Without this the footer's four links sit under the banner. */
.doc-footer {
  border-top: 1px solid var(--ink-700);
  padding-block: var(--space-5) calc(var(--space-5) + var(--consent-h));
}

.doc-footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-5);
}

/* --- Mid-page parallax glow -------------------------------------------------
   Same drifting-aurora language as the hero sky, scaled down for the body of
   the page. main.js moves any [data-depth] against its own section's scroll. */
.section-glow {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: clip;
  pointer-events: none;
}

.section-glow::before {
  content: "";
  position: absolute;
  width: clamp(380px, 58vw, 820px);
  aspect-ratio: 1;
  border-radius: var(--radius-full);
  mix-blend-mode: screen;
  opacity: 0.7;
  background: radial-gradient(circle, var(--aurora-blue) 0%, transparent 64%);
  animation: aurora-b 22s var(--ease-in-out) infinite alternate;
}

.section-glow--left::before  { top: -18%; left: -20%; }
.section-glow--right::before {
  top: 6%;
  right: -22%;
  background: radial-gradient(circle, var(--aurora-violet) 0%, transparent 64%);
  animation-name: aurora-c;
}

/* the glow sits behind a section's own content, which needs its own stacking */
.section--glow {
  position: relative;
  overflow: clip;
}

.section--glow > .container {
  position: relative;
  z-index: 1;
}

/* --- Page sky ---------------------------------------------------------------
   A fixed aurora field behind the whole document, driven by native scroll-timeline
   animation: no JS, no scroll listener, no markup. Two layers move at different
   rates and directions, so the background keeps changing for the entire scroll
   rather than only inside the hero. Transform-only, so it composites.
   Most sections are transparent; .section--alt is thinned slightly to let it read. */
body::before,
body::after {
  content: "";
  position: fixed;
  z-index: -1;
  inset: -25% -20%;
  pointer-events: none;
  background-repeat: no-repeat;
  will-change: transform;
}

body::before {
  opacity: 0.55;
  background-image:
    radial-gradient(38vw 38vw at 14% 22%, var(--aurora-cyan) 0%, transparent 62%),
    radial-gradient(46vw 46vw at 86% 68%, var(--aurora-violet) 0%, transparent 64%);
}

body::after {
  opacity: 0.4;
  background-image:
    radial-gradient(42vw 42vw at 72% 14%, var(--aurora-blue) 0%, transparent 62%),
    radial-gradient(34vw 34vw at 22% 84%, var(--aurora-cyan) 0%, transparent 60%);
}

@supports (animation-timeline: scroll()) {
  body::before {
    animation: page-sky-a linear both;
    animation-timeline: scroll(root block);
  }

  body::after {
    animation: page-sky-b linear both;
    animation-timeline: scroll(root block);
  }
}

@keyframes page-sky-a {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(-6vw, -14vh, 0) scale(1.25); }
}

@keyframes page-sky-b {
  from { transform: translate3d(0, 0, 0) scale(1.15); }
  to   { transform: translate3d(8vw, 18vh, 0) scale(1); }
}

/* thinned so the page sky carries through the alternating bands */
.section--alt {
  background-color: color-mix(in oklab, var(--ink-850) 90%, transparent);
}

@media (prefers-reduced-motion: reduce) {
  body::before,
  body::after { animation: none; }
}
