/* Cubic Blue — Space Abyss + Raised Glass system (spec §7 v3.2)
   Display: Fraunces · Body/UI: Satoshi · Mono: fine print + stratum tags only
   Glow discipline: accent glow on .q-danger, .s-root, and primary buttons ONLY. */
:root {
  --void-0: #0a1019;
  --void-1: #0e1623;
  --panel-solid: #0a101a;
  --ink: #eaf2f9;
  --ink-dim: #93a7ba;
  --accent: #00e6f6;
  --accent-soft: #7ce6ee;
  --edge: rgba(170, 215, 255, 0.16);
  --edge-lit: rgba(220, 245, 255, 0.34);
  --glass-hi: rgba(130, 170, 210, 0.09);
  --glass-lo: rgba(6, 10, 18, 0.45);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Satoshi", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --radius: 18px;
  --lift: 0 30px 60px -30px rgba(0, 0, 0, 0.85), 0 6px 18px -6px rgba(0, 0, 0, 0.5);
  --specular: inset 0 1px 0 rgba(235, 250, 255, 0.14);
}

@font-face { font-family: "Satoshi"; src: url("../fonts/Satoshi-Regular.otf") format("opentype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("../fonts/Satoshi-Medium.otf") format("opentype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("../fonts/Satoshi-Bold.otf") format("opentype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("../fonts/Fraunces-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("../fonts/Fraunces-600-italic.woff2") format("woff2"); font-weight: 600; font-style: italic; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/JetBrainsMono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/JetBrainsMono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--void-0);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* The abyss: fixed nebula + sparse starfield behind everything */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(ellipse 50% 38% at 10% -6%, rgba(255, 190, 122, 0.05), transparent 58%),
    radial-gradient(ellipse 75% 55% at 18% -12%, rgba(0, 170, 215, 0.075), transparent 60%),
    radial-gradient(ellipse 60% 45% at 92% 28%, rgba(45, 95, 185, 0.055), transparent 60%),
    radial-gradient(ellipse 70% 55% at 35% 115%, rgba(0, 140, 200, 0.05), transparent 60%),
    radial-gradient(1px 1px at 42px 64px, rgba(220, 240, 255, 0.40), transparent),
    radial-gradient(1px 1px at 188px 224px, rgba(220, 240, 255, 0.28), transparent),
    radial-gradient(1.4px 1.4px at 322px 122px, rgba(220, 240, 255, 0.42), transparent),
    radial-gradient(1px 1px at 84px 308px, rgba(220, 240, 255, 0.22), transparent),
    radial-gradient(1px 1px at 262px 388px, rgba(220, 240, 255, 0.32), transparent),
    radial-gradient(1.2px 1.2px at 460px 230px, rgba(220, 240, 255, 0.35), transparent);
  background-size: 100% 100%, 100% 100%, 100% 100%, 100% 100%, 420px 420px, 560px 560px, 660px 660px, 480px 480px, 720px 720px, 820px 820px;
  background-repeat: no-repeat, no-repeat, no-repeat, no-repeat, repeat, repeat, repeat, repeat, repeat, repeat;
}
/* Vignette: corners fall away, center plane reads nearer */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 120% 90% at 50% 45%, transparent 52%, rgba(0, 0, 0, 0.5) 100%);
}
.site-header, main, .site-footer { position: relative; z-index: 1; }

.container { max-width: 1080px; margin: 0 auto; padding: 0 28px; }
p { margin: 0 0 1em; }
a { color: inherit; }

/* Typography */
h1, h2 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.01em; line-height: 1.06; margin: 0 0 0.45em; }
h1 { font-size: clamp(2.6rem, 5.8vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4vw, 3.1rem); }
h3 { font-family: var(--sans); font-weight: 700; font-size: 1.08rem; margin: 0 0 0.4em; }
h1 em, h2 em, .pull em { font-style: italic; color: var(--accent-soft); }
.pull {
  font-family: var(--serif); font-weight: 600; text-align: center;
  font-size: clamp(1.5rem, 2.8vw, 2.2rem); line-height: 1.25;
  max-width: 21em; margin: 2.8rem auto 0;
}
.section-lead { color: var(--ink-dim); max-width: 36em; font-size: 1.1rem; }
.muted-line { color: var(--ink-dim); }

/* Raised glass surface — cut-ice slabs (spec §7.2 + §7.4a)
   One key light, upper-left: lit top/left facets, shaded lower-right, prismatic sheen across the face */
.glass-card {
  position: relative;
  background: linear-gradient(160deg, rgba(150, 192, 226, 0.10), rgba(20, 30, 48, 0.36) 36%, var(--glass-lo));
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  box-shadow:
    inset 0 1px 0 rgba(240, 250, 255, 0.18),
    inset 1px 0 0 rgba(205, 235, 255, 0.07),
    inset -1px -1px 0 rgba(0, 0, 0, 0.28),
    var(--lift);
}
.glass-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgb(220 245 255 / var(--glint, 0)), transparent 62%),
    linear-gradient(115deg, transparent 18%, rgba(215, 242, 255, 0.05) 36%, rgba(255, 255, 255, 0.02) 44%, transparent 58%);
}
@supports (backdrop-filter: blur(14px)) or (-webkit-backdrop-filter: blur(14px)) {
  .glass-card { -webkit-backdrop-filter: blur(14px) saturate(1.15); backdrop-filter: blur(14px) saturate(1.15); }
}
@supports not (backdrop-filter: blur(14px)) {
  .glass-card { background: linear-gradient(160deg, rgba(150, 192, 226, 0.08), var(--panel-solid) 45%); }
}

/* Engraved ornament rule — hairline + ice diamond (spec §7.4a) */
.ornament { display: flex; align-items: center; gap: 12px; margin-bottom: 1.7rem; }
.ornament::before, .ornament::after { content: ""; height: 1px; width: 64px; }
.ornament::before { background: linear-gradient(90deg, transparent, rgba(170, 215, 255, 0.45)); }
.ornament::after { background: linear-gradient(90deg, rgba(170, 215, 255, 0.45), transparent); }
.ornament span { width: 7px; height: 7px; transform: rotate(45deg); border: 1px solid rgba(190, 228, 255, 0.55); box-shadow: 0 0 8px rgba(0, 230, 246, 0.18); }

/* Buttons — strongest bevels on the page (spec §7.3) */
.btn {
  display: inline-block; font-family: var(--sans); font-weight: 700; font-size: 0.98rem;
  color: #02262b;
  background: linear-gradient(180deg, #66f0fa 0%, #1fd9e9 48%, #0bc0d4 100%);
  border: 0; border-radius: 999px; padding: 0.85em 1.9em;
  text-decoration: none; cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    inset 0 -2px 0 rgba(2, 40, 48, 0.35),
    0 12px 28px -10px rgba(0, 217, 233, 0.45),
    0 3px 8px rgba(0, 0, 0, 0.4);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    inset 0 -2px 0 rgba(2, 40, 48, 0.35),
    0 18px 36px -10px rgba(0, 217, 233, 0.55),
    0 4px 10px rgba(0, 0, 0, 0.4);
}
.btn:active {
  transform: translateY(1px);
  box-shadow: inset 0 2px 6px rgba(2, 40, 48, 0.45), 0 2px 6px rgba(0, 0, 0, 0.4);
}
.btn-lg { padding: 1.05em 2.4em; font-size: 1.05rem; }
.btn-sm { padding: 0.55em 1.3em; font-size: 0.88rem; }
.btn-ghost {
  background: linear-gradient(165deg, rgba(130, 170, 210, 0.1), rgba(10, 16, 26, 0.4));
  color: var(--ink);
  border: 1px solid var(--edge-lit);
  box-shadow: inset 0 1px 0 rgba(235, 250, 255, 0.12), 0 6px 16px -6px rgba(0, 0, 0, 0.6);
}
.btn-ghost:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(235, 250, 255, 0.12), 0 10px 22px -8px rgba(0, 0, 0, 0.7); }

/* Header — frosted glass UI moment */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(4, 7, 12, 0.82);
  border-bottom: 1px solid var(--edge);
  box-shadow: 0 8px 24px -12px rgba(0, 0, 0, 0.7);
}
@supports (backdrop-filter: blur(14px)) {
  .site-header { backdrop-filter: blur(14px) saturate(1.2); background: rgba(4, 7, 12, 0.55); }
}
.header-inner { display: flex; align-items: center; gap: 28px; padding: 14px 28px; max-width: 1240px; margin: 0 auto; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { height: 34px; width: auto; display: block; }
.site-nav { margin-left: auto; display: flex; gap: 26px; }
.site-nav a { color: var(--ink-dim); text-decoration: none; font-size: 0.94rem; font-weight: 500; }
.site-nav a:hover { color: var(--ink); }

/* Hero */
.hero { position: relative; padding: 130px 0 110px; overflow: hidden; }
.hero-video {
  height: clamp(560px, 56.25vw, calc(100svh - 64px));
  min-height: 560px;
  padding: 0;
  overflow: visible;
}
.hero-video::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 126px;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 0%, rgba(10, 16, 25, 0.94) 76%, var(--void-0) 100%);
}
.hero-inner { position: relative; z-index: 2; max-width: 880px; }
.hero-copy {
  position: relative;
  margin-top: 0;
  padding-top: 96px;
  text-align: center;
}
.hero-copy .hero-inner { margin-left: auto; margin-right: auto; }
.hero-copy .hero-sub,
.hero-copy .trust-line { margin-left: auto; margin-right: auto; }
.hero-bridge-cta {
  position: absolute;
  left: 50%;
  bottom: 0;
  z-index: 4;
  transform: translate(-50%, 50%);
  white-space: nowrap;
}
/* Header horizon: a far landscape that dissolves into the abyss below */
.hero-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-position: center top; background-size: cover; background-repeat: no-repeat;
  opacity: 0.78;
  /* Dissolve the photo itself to transparent at the bottom so the SAME page
     background (nebula + vignette + void) shows through on both sides of the
     seam — no hardcoded fill color to mismatch the next section. */
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 42%, transparent 74%);
  mask-image: linear-gradient(180deg, #000 0%, #000 42%, transparent 74%);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  /* Left-darken for headline legibility + a top veil — both masked to fade out
     before the bottom so they never paint a tint over the seam. */
  background:
    linear-gradient(90deg, rgba(3, 5, 8, 0.84), rgba(3, 5, 8, 0.42) 52%, rgba(3, 5, 8, 0.14) 86%),
    linear-gradient(180deg, rgba(3, 5, 8, 0.4) 0%, rgba(3, 5, 8, 0.28) 36%, transparent 70%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 46%, transparent 76%);
  mask-image: linear-gradient(180deg, #000 0%, #000 46%, transparent 76%);
}
/* Header-2 variant: its hero is the glowing brand-glyph monument — keep that
   identity legible (it's the whole point of the A/B) instead of crushing it to
   match header 1. Lighter veil, less left-darken, glyph stays lit. */
.hero-bg--glyph { opacity: 0.92; }
.hero-bg--glyph::after {
  background:
    linear-gradient(90deg, rgba(3, 5, 8, 0.6), rgba(3, 5, 8, 0.2) 50%, transparent 82%),
    linear-gradient(180deg, transparent 0%, rgba(3, 5, 8, 0.18) 42%, transparent 72%);
}
.hero-bg--video video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
}
.hero-bg--video {
  opacity: 1;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 93%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 93%, transparent 100%);
}
.hero-bg--video::after {
  background:
    linear-gradient(180deg, rgba(3, 5, 8, 0.18) 0%, transparent 34%, transparent 100%);
  -webkit-mask-image: none;
  mask-image: none;
}
.hero-bg--video::after { z-index: 1; pointer-events: none; }
.hero-sub { max-width: 36em; color: var(--ink-dim); font-size: 1.18rem; margin: 1.4rem 0 1.2rem; }
.hero-actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-bottom: 2rem; }
.trust-line { color: var(--ink-dim); font-size: 0.95rem; max-width: 40em; }
.trust-line strong { color: var(--ink); font-weight: 700; }
/* Ambient drift glows — dissolve them before the bottom too, or the bottom-left
   orb bleeds a cyan tint across the seam that the next section doesn't have. */
.void-field {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 42%, transparent 74%);
  mask-image: linear-gradient(180deg, #000 0%, #000 42%, transparent 74%);
}
.void-field i {
  position: absolute; display: block; border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 230, 246, 0.05), transparent 65%);
  animation: drift 36s ease-in-out infinite alternate;
}
.void-field i:nth-child(1) { width: 56vw; height: 56vw; top: -30vw; right: -14vw; }
.void-field i:nth-child(2) { width: 34vw; height: 34vw; bottom: -18vw; left: -8vw; animation-duration: 44s; }
@keyframes drift { to { transform: translate3d(3vw, 2vh, 0) scale(1.06); } }
.film-slot { max-width: 860px; margin: 3rem 0 0; }
.film-poster {
  width: 100%; aspect-ratio: 16/9; border-radius: var(--radius);
  border: 1px solid var(--edge); cursor: pointer; display: grid; place-items: center;
  background: linear-gradient(165deg, var(--glass-hi), var(--glass-lo)) center/cover no-repeat;
  box-shadow: var(--specular), var(--lift);
}
.play-bevel {
  width: 78px; height: 78px; border-radius: 50%; display: grid; place-items: center;
  font-size: 1.4rem; color: #02262b;
  background: linear-gradient(180deg, #66f0fa, #0bc0d4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), inset 0 -2px 0 rgba(2, 40, 48, 0.35), 0 12px 28px -8px rgba(0, 217, 233, 0.4);
}
.film-slot video { width: 100%; border-radius: var(--radius); }

/* Sections — separation by space, not rules */
.section { padding: 105px 0; }
.section-tight { padding: 70px 0; }

/* Fit — two raised cards with gate checks */
.fit-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin: 2.4rem 0 1.8rem; }
.fit-cards .card { padding: 34px 32px; font-size: 1.14rem; }
.card p:last-child { margin-bottom: 0; }
.x-chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 3px 13px; margin: 0 3px;
  border: 1px solid var(--edge); border-radius: 999px;
  font-size: 0.87rem; white-space: nowrap;
}
.x-chip::before { content: "✕"; font-size: 0.72rem; color: rgba(255, 190, 122, 0.75); }

/* Quadrant — separated tiles; Unknown-Unknowns is glow object #1 */
.quadrant { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 2.6rem; }
.q-tile { padding: 30px 30px 26px; }
.q-tile h3 { font-family: var(--serif); font-weight: 600; font-size: 1.35rem; }
.q-tile p { color: var(--ink-dim); margin: 0; font-size: 0.98rem; }
.q-danger {
  border-color: rgba(0, 230, 246, 0.45);
  background:
    radial-gradient(130% 130% at 85% 115%, rgba(0, 230, 246, 0.10), transparent 60%),
    linear-gradient(165deg, var(--glass-hi), rgba(20, 30, 48, 0.38) 38%, var(--glass-lo));
  box-shadow:
    var(--specular),
    var(--lift),
    0 0 44px -8px rgba(0, 230, 246, 0.30),
    inset 0 0 30px rgba(0, 230, 246, 0.05);
}
.q-danger h3 { font-style: italic; color: var(--accent-soft); }
.q-danger p { color: var(--ink); }
/* the two glow objects breathe — slow, reduced-motion-gated (spec §7.4a) */
.q-danger::after, .s-root::after {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none;
  box-shadow: 0 0 54px -10px rgba(0, 230, 246, 0.32);
  opacity: 0.55;
  animation: breathe 7s ease-in-out infinite alternate;
}
@keyframes breathe { to { opacity: 1; } }
/* fog-reveal: Unknown-Unknowns enters dimmed and ignites in view (spec §7.4b-4) */
html.js .q-danger { filter: saturate(0.25) brightness(0.7); transition: filter 1.4s ease 0.35s; }
html.js .q-danger.in { filter: none; }
html.js .q-danger:not(.in)::after { animation: none; opacity: 0; }

/* Strata — the descent; root cause is glow object #2 */
.strata { position: relative; margin-top: 3rem; display: grid; justify-items: center; }
.strata::before {
  content: ""; position: absolute; top: 12px; bottom: 12px; left: 50%; width: 1px; z-index: 0;
  background: linear-gradient(rgba(0, 230, 246, 0.0), rgba(0, 230, 246, 0.45));
}
.stratum { position: relative; z-index: 1; width: 100%; padding: 26px 32px 22px; }
.stratum p { margin: 0; font-size: 1.06rem; }
.stratum-tag {
  font-family: var(--mono); font-size: 0.7rem; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-dim);
  display: block; margin-bottom: 10px;
}
.s-surface p { font-family: var(--serif); font-size: 1.35rem; }
.s-symptom {
  width: 86%; margin-top: 28px;
  background: linear-gradient(165deg, rgba(130, 170, 210, 0.06), rgba(10, 16, 26, 0.5));
  box-shadow: var(--specular), 0 18px 38px -22px rgba(0, 0, 0, 0.8);
}
.s-symptom p { color: var(--ink-dim); }
.s-root {
  width: 72%; margin-top: 28px;
  border-color: rgba(0, 230, 246, 0.45);
  background:
    radial-gradient(120% 140% at 50% 130%, rgba(0, 230, 246, 0.10), transparent 60%),
    linear-gradient(165deg, rgba(130, 170, 210, 0.05), rgba(6, 10, 18, 0.6));
  box-shadow:
    var(--specular),
    0 14px 30px -18px rgba(0, 0, 0, 0.8),
    0 0 44px -8px rgba(0, 230, 246, 0.30),
    inset 0 0 30px rgba(0, 230, 246, 0.05);
}
.s-root .stratum-tag { color: var(--accent); }
.s-root p em { color: var(--accent-soft); }
/* the descending "why" — a light probes down the drop-line (spec §7.4b-3) */
.strata::after {
  content: ""; position: absolute; left: 50%; top: 0; z-index: 0;
  width: 5px; height: 5px; margin-left: -2px; border-radius: 50%;
  background: rgba(0, 230, 246, 0.9);
  box-shadow: 0 0 12px 3px rgba(0, 230, 246, 0.45);
  animation: descend 5.5s ease-in-out infinite;
}
@keyframes descend {
  0% { top: 2%; opacity: 0; }
  12% { opacity: 1; }
  72% { opacity: 1; }
  88% { top: 96%; opacity: 0; }
  100% { top: 96%; opacity: 0; }
}
/* staggered descent reveal */
html.js .strata .reveal:nth-child(2) { transition-delay: 0.15s; }
html.js .strata .reveal:nth-child(3) { transition-delay: 0.3s; }

/* Control bento — four raised cards with glyphs */
.bento { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 2.6rem; }
.bento .card { padding: 34px 32px; }
.bento h3 { font-family: var(--serif); font-weight: 600; font-size: 1.3rem; }
.bento p { color: var(--ink-dim); margin: 0; }
.glyph { display: inline-flex; color: var(--accent); margin-bottom: 16px; }

/* Testimonials */
.testimonial { margin: 0 0 26px; padding: 40px 42px 32px; }
.testimonial.featured blockquote > p:first-child { font-family: var(--serif); font-size: 1.45rem; line-height: 1.35; color: var(--ink); }
.testimonial.featured blockquote > p:first-child::first-letter {
  font-family: var(--serif); font-style: italic; font-weight: 600;
  font-size: 2.9em; float: left; line-height: 0.8;
  padding: 0.06em 0.14em 0 0; color: var(--accent-soft);
}
.testimonial blockquote { margin: 0; font-size: 1.02rem; color: var(--ink-dim); }
.testimonial blockquote p { color: inherit; }
.testimonial figcaption { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--edge); font-size: 0.9rem; color: var(--ink-dim); }
.testimonial figcaption strong { color: var(--ink); font-weight: 700; }
.testimonial-row { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
mark.hl {
  background: linear-gradient(180deg, transparent 58%, rgba(0, 230, 246, 0.16) 58%);
  color: var(--ink); padding: 0 2px;
}
details summary { cursor: pointer; color: var(--accent-soft); font-weight: 500; font-size: 0.94rem; margin: 0.6em 0 0.9em; list-style: none; }
details summary::after { content: " +"; }
details[open] summary::after { content: " –"; }

/* Process rail — a living journey: path + traveling pulse + node ignition (spec §7.4b-2) */
.rail { list-style: none; position: relative; display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; padding: 0; margin: 2.6rem 0 0; }
.rail::before {
  content: ""; position: absolute; left: 1%; right: 1%; top: 34px; height: 1px; z-index: 0;
  background: linear-gradient(90deg, transparent, rgba(170, 215, 255, 0.3) 8%, rgba(170, 215, 255, 0.3) 92%, transparent);
}
.rail::after {
  content: ""; position: absolute; top: 33px; left: 0; z-index: 0;
  width: 52px; height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, transparent, rgba(0, 230, 246, 0.85), transparent);
  filter: drop-shadow(0 0 6px rgba(0, 230, 246, 0.55));
  animation: railpulse 9s linear infinite;
}
@keyframes railpulse {
  0% { left: -4%; opacity: 0; }
  6% { opacity: 1; }
  88% { opacity: 1; }
  100% { left: 102%; opacity: 0; }
}
.rail li { position: relative; z-index: 1; padding: 22px 18px; display: grid; gap: 10px; align-content: start; animation: nodeignite 9s linear infinite; }
.rail li:nth-child(1) { animation-delay: 0.5s; }
.rail li:nth-child(2) { animation-delay: 2.0s; }
.rail li:nth-child(3) { animation-delay: 3.5s; }
.rail li:nth-child(4) { animation-delay: 5.0s; }
.rail li:nth-child(5) { animation-delay: 6.5s; }
.rail li:nth-child(6) { animation-delay: 8.0s; }
@keyframes nodeignite {
  0%, 9%, 100% { border-color: var(--edge); }
  3.5% { border-color: rgba(0, 230, 246, 0.55); }
}
.rail b { font-family: var(--serif); font-style: italic; font-weight: 600; font-size: 1.45rem; color: var(--accent-soft); line-height: 1; }
.rail span { font-size: 0.94rem; color: var(--ink-dim); line-height: 1.4; }
/* the journey ends at booking */
.rail-next { position: relative; text-align: center; padding-top: 44px; }
.rail-next::before {
  content: ""; position: absolute; left: 50%; top: 0; width: 1px; height: 34px;
  background: linear-gradient(rgba(170, 215, 255, 0.3), rgba(0, 230, 246, 0.5));
}

/* Qualifier */
.qualifier { max-width: 720px; margin: 2.6rem auto 0; padding: 48px 44px; text-align: center; border-color: var(--edge-lit); }
.q-ask { font-family: var(--serif); font-weight: 600; font-size: 1.65rem; line-height: 1.25; }
.q-ask strong { color: var(--accent-soft); font-style: italic; font-weight: 600; }
.q-helper { color: var(--ink-dim); font-size: 0.97rem; max-width: 32em; margin: 0.9em auto 0; }
.q-actions { display: flex; gap: 14px; justify-content: center; margin-top: 2rem; flex-wrap: wrap; }
#q-downsell h3 { font-family: var(--serif); font-size: 1.5rem; }
#q-downsell .btn { margin: 0.6rem 0 1.4rem; }
#q-back { display: block; margin: 0 auto; }

/* Footer */
/* No border line — the footer dissolves out of the abyss seamlessly. The section
   is sized to the art's aspect (~1.79:1 → 56vw tall at full width) so the WHOLE
   footer image is encompassed, not a cropped band; content sits at the bottom. */
/* Transparent background (NOT a solid void fill) so the footer shows the same
   nebula + vignette + void as the section above — the dissolve then blends to an
   identical color on both sides of the seam. */
.site-footer {
  position: relative; background: transparent; overflow: hidden;
  min-height: 56vw; margin-top: 0; padding: 0 0 54px;
  display: flex; align-items: flex-end;
}
.footer-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-position: center center; background-size: cover; background-repeat: no-repeat;
  opacity: 0.95;
  /* Dissolve the photo's top into the page background so it emerges seamlessly
     out of the section above (also hides the empty sky at the top of the art). */
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 17%, #000 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 17%, #000 100%);
}
/* No opaque top fill — transparent at the top so the page background shows
   through and matches the section above; soft floor darken keeps text legible. */
.footer-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg,
    transparent 0%,
    transparent 24%,
    rgba(10, 16, 25, 0.04) 32%,
    rgba(10, 16, 25, 0.04) 60%,
    rgba(10, 16, 25, 0.46) 86%,
    rgba(10, 16, 25, 0.74) 100%);
}
.footer-inner { position: relative; z-index: 1; display: grid; gap: 20px; justify-items: center; text-align: center; }
.site-footer .brand img { height: 28px; width: auto; }
.site-footer nav { display: flex; gap: 24px; flex-wrap: wrap; justify-content: center; }
.site-footer a { color: var(--ink-dim); text-decoration: none; font-size: 0.92rem; }
.site-footer a:hover { color: var(--ink); }
.fine { color: var(--ink-dim); font-size: 0.8rem; margin: 0; font-family: var(--mono); letter-spacing: 0.06em; }

/* Mobile sticky Book pill (spec §7.4b-7)
   Centered fade — no transform, so the mobile .btn transform:none
   override in additions.css can't knock it off its hide/show path. */
.book-pill {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 18px; z-index: 60;
  width: fit-content;
  margin: 0 auto;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.book-pill.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Legal pages */
.prose { max-width: 700px; margin: 0 auto; padding: 80px 28px; }
.prose h1 { font-size: 2.4rem; }
.prose, .prose p { color: var(--ink-dim); }
.prose h1, .prose strong { color: var(--ink); }

/* Reveal on scroll — hidden state only when JS is running */
html.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
html.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .void-field i { animation: none; }
  .q-danger::after, .s-root::after { animation: none; opacity: 0.8; }
  html.js .q-danger { filter: none; transition: none; }
  html.js .q-danger:not(.in)::after { opacity: 0.8; }
  .rail::after, .strata::after { animation: none; opacity: 0; }
  .rail li { animation: none; }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .btn:hover, .btn-ghost:hover { transition: none; transform: none; }
}

@media (max-width: 880px) {
  .site-nav { display: none; }
  .fit-cards, .quadrant, .bento, .testimonial-row { grid-template-columns: 1fr; }
  .rail { grid-template-columns: 1fr 1fr; }
  .rail::before, .rail::after { display: none; }
  .book-pill { display: inline-block; }
  .x-chip { margin: 2px 3px; }
  .section { padding: 70px 0; }
  .hero { padding: 84px 0 64px; }
  .hero-video {
    height: 68svh;
    min-height: 430px;
    padding: 0;
  }
  .hero-copy { padding-top: 82px; }
  .hero-bg--video video { object-position: center center; }
  .qualifier { padding: 34px 22px; }
  .testimonial { padding: 28px 24px 24px; }
  .stratum { padding: 22px 22px 18px; }
  .s-symptom { width: 92%; }
  .s-root { width: 84%; }
  .brand img { height: 30px; }
}

/* Sub-page CTA band (Services/Approach/About) */
.page-cta { text-align: center; }
.page-cta .ornament,
.page-cta .section-lead { margin-left: auto; margin-right: auto; }
.page-cta .section-lead { margin-bottom: 1.6rem; }

/* FAQ list */
.faq { display: grid; gap: 16px; max-width: 760px; margin-top: 2.4rem; }
.faq-item { padding: 28px 30px; }
.faq-item h3 { font-family: var(--serif); font-weight: 600; font-size: 1.25rem; color: var(--ink); margin: 0 0 0.5em; }
.faq-item p { color: var(--ink-dim); margin: 0; }
.faq-item p + p { margin-top: 0.7em; }

/* Alt-page hero: sized to the header art's own aspect (~1.8:1 → 56vw tall at full
   width) so the WHOLE image shows with no hard crop — the glyph and scene stay
   intact, the bottom just dissolves into the abyss. Headline centered over the
   darker left side. (Home hero stays content-tall and is unaffected.) */
.hero--page { min-height: 56vw; display: flex; align-items: center; }
.hero--page .hero-inner { width: 100%; }
.hero--page .hero-bg { background-position: center center; }
@media (max-width: 880px) {
  .hero--page { min-height: 74vh; }
  .hero--page .hero-bg { background-position: center top; }
}
