/* ══════════════════════════════════════════════════════════════
   Jake Lee — AI Automation · main.css
   Tokens derived from Peregrine Leadership brand extraction
   (OasiS: projects/Design-Studio/brand/jake-site-tokens.md)
   Contrast decisions precomputed there — coral is FILL ONLY,
   CTA = coral fill + ink text.
   ══════════════════════════════════════════════════════════════ */

:root {
  --ink:        #0e0e0e;
  --char:       #272727;
  --char-2:     #3e3e3e;
  --bone:       #f6f6f6;
  --bone-2:     #efedeb;
  --paper:      #fdfcfb;
  --teal:       #3e8296;
  --azure:      #00b2ff;
  --azure-deep: #1ca3dc;
  --ice:        #eaf6ff;
  --ice-soft:   #7fd4ff;
  --glow:       rgba(0, 178, 255, 0.35);
  --slate:      #4a5464;
  --mist:       #b9c4cc;

  --hairline-dark:  rgba(14, 14, 14, 0.08);
  --hairline-light: rgba(246, 246, 246, 0.14);

  --font: "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --taupe: #5d514f;
  --fog:   #bfc6cc;  /* the arctic atmosphere (hero/journey) */
  --fog-2: #e9edef;  /* fog panel sections */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 68px;
}

/* ── Reset-lite ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--char);
  background: var(--bone);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }
img, svg, video, canvas { display: block; max-width: 100%; }
::selection { background: var(--azure); color: var(--ink); }

/* ── Utilities ──────────────────────────────────────────────── */
.container { max-width: 1200px; margin-inline: auto; padding-inline: clamp(20px, 4vw, 40px); }

.label {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
}

.accent {
  font-style: normal;
  color: var(--ink);
  background-image: linear-gradient(90deg, var(--azure), var(--teal));
  background-repeat: no-repeat;
  background-size: 100% 0.085em;
  background-position: 0 94%;
}

/* Dad's actual pairing (Squarespace panel, 2026-07-15):
   Inter Tight headings/UI · Georgia body prose */
.hero-sub, .sec-sub, .card-body, .stage-body, .process-note,
.faq-a, .op-body > p:not(.op-quote), .cta-sub, .foot-brand p {
  font-family: var(--serif);
  line-height: 1.7;
}
.op-quote { font-family: var(--serif); }

.skip-link {
  position: fixed; top: -60px; left: 16px; z-index: 200;
  background: var(--ink); color: var(--bone);
  padding: 12px 18px; border-radius: 8px; text-decoration: none;
  transition: top 0.2s ease-out;
}
.skip-link:focus { top: 12px; }

/* Fog panels (formerly dark sections) — the site never leaves the light */
.dark {
  background: linear-gradient(180deg, var(--fog-2) 0%, #f2f4f5 100%);
  color: var(--char);
}

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 13px 26px;
  border-radius: 999px; border: 1px solid transparent;
  font-family: var(--font); font-size: 15px; font-weight: 600; line-height: 1;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color 0.2s ease-out, border-color 0.2s ease-out,
              color 0.2s ease-out, transform 0.2s var(--ease-out);
  will-change: transform;
}
.btn-primary { background: var(--ink); color: var(--bone); box-shadow: 0 0 0 rgba(0, 178, 255, 0); }
.btn-primary:hover { background: #000000; transform: translateY(-1px); box-shadow: 0 8px 30px var(--glow); }
.btn-ghost { border-color: rgba(14, 14, 14, 0.3); color: var(--char); background: rgba(255, 255, 255, 0.35); }
.btn-ghost:hover { border-color: rgba(14, 14, 14, 0.6); transform: translateY(-1px); background: rgba(255, 255, 255, 0.6); }

/* ── Nav ────────────────────────────────────────────────────── */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  color: var(--char);
  transition: background-color 0.25s ease-out, color 0.25s ease-out,
              box-shadow 0.25s ease-out;
}
.nav-inner { display: flex; align-items: center; gap: 28px; height: var(--nav-h); }
.nav-logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 17px; letter-spacing: -0.01em;
  text-decoration: none; margin-right: auto;
}
.nav-logo .mark { color: var(--teal); }
.nav-links { display: flex; gap: 24px; }
.nav-links a {
  font-size: 14.5px; font-weight: 500; text-decoration: none;
  padding: 10px 2px; opacity: 0.85; transition: opacity 0.15s ease-out;
}
.nav-links a:hover { opacity: 1; }
.nav-cta { min-height: 44px; padding: 11px 20px; font-size: 14px; }

.site-nav.scrolled {
  /* solid frosted fill, NO backdrop-filter: a live blur re-samples the
     scrubbing film + snow canvases every frame and flickers grey/black/
     white on the GPU compositor. An opaque bar can't flicker — there's
     nothing behind it left to sample. (Jake, 2026-07-17) */
  background: rgba(243, 245, 246, 0.97);
  box-shadow: 0 1px 0 var(--hairline-dark);
}

.menu-btn {
  display: none;
  width: 48px; height: 48px; padding: 0; margin-right: -8px;
  background: none; border: none; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 6px;
}
.menu-btn span {
  width: 22px; height: 2px; background: currentColor; border-radius: 2px;
  transition: transform 0.25s var(--ease-out), opacity 0.2s;
}
body.menu-open .menu-btn span:first-child { transform: translateY(4px) rotate(45deg); }
body.menu-open .menu-btn span:last-child { transform: translateY(-4px) rotate(-45deg); }

.menu-panel {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(238, 241, 243, 0.97); color: var(--char);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  padding: calc(var(--nav-h) + 24px) 28px 40px;
}
.menu-links { display: flex; flex-direction: column; gap: 8px; }
.menu-links a {
  font-size: 28px; font-weight: 700; letter-spacing: -0.02em;
  text-decoration: none; padding: 10px 0;
}
.menu-links .btn { font-size: 16px; margin-top: 20px; align-self: flex-start; }

@media (max-width: 820px) {
  .nav-links, .nav-cta { display: none; }
  .menu-btn { display: flex; }
  body.menu-open .site-nav { background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* ── The Journey (scroll-scrubbed hero) ─────────────────────── */
.journey { position: relative; background: var(--fog); }
.journey-track { position: relative; height: 1080vh; }
.journey-view {
  position: sticky; top: 0;
  height: 100svh; min-height: 640px;
  overflow: hidden;
}
#hero-3d, #hero-canvas, .hero-video {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; object-fit: cover;
}
.hero3d #hero-canvas { display: none; }
/* the rendered journey (Higgsfield frames) rides above the live canvases */
#hero-scrub {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%;
  opacity: 0; transition: opacity 0.7s ease-out;
}
html.scrubbed #hero-scrub { opacity: 1; }
html.scrubbed #hero-3d, html.scrubbed #hero-canvas { opacity: 0; transition: opacity 0.7s ease-out; }
/* the world layer (js/world.js) rides the same two slots.
   While it's booting, the 3D loading scene stays invisible (it kept
   reading as a glitchy "wrong image" before the film arrived) — it
   still renders underneath as the live fallback, and world:fail
   removes .worlding so it can reappear. */
html.worlding #hero-3d, html.worlding #hero-canvas { opacity: 0; }
#world-film {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%;
  opacity: 0; transition: opacity 0.7s ease-out;
}
html.scrubbed #world-film { opacity: 1; }
#world-weather {
  position: fixed; inset: 0; z-index: 5;
  width: 100vw; height: 100vh;
  pointer-events: none;
  /* `screen` is here purely for the LOOK — white weather reads as light over the
     icy scene. It is NOT a bug workaround.
     (History: the "particles invisible in Chrome, fine in Safari" bug was long
     blamed on a hardware-overlay handoff failure — the "ProduceOverlay /
     Invalid mailbox" spam in chrome://gpu. That was a red herring; the log noise
     is unrelated. Real cause was a premultiplied-alpha mismatch in js/world.js,
     fixed 2026-07-23. Don't reach for blend modes to fix compositing here.) */
  mix-blend-mode: screen;
}
.hero-video { opacity: 0; transition: opacity 0.9s ease-out; }
.hero-video.show { opacity: 1; }
.hero-shade {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(70% 42% at 74% 10%, rgba(255, 255, 255, 0.55), transparent 68%),
    radial-gradient(58% 26% at 50% 92%, rgba(0, 178, 255, 0.08), transparent 74%),
    linear-gradient(to bottom, rgba(233, 237, 239, 0.25), rgba(191, 198, 204, 0) 26%, rgba(233, 237, 239, 0.9) 97%);
}
/* dusk falls as the bird lands: the film's end fades toward the night
   world below, so the journey hands off instead of hard-cutting */
.hero-dusk {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  opacity: 0;
  background: linear-gradient(to bottom, rgba(10, 14, 18, 0) 34%, rgba(10, 14, 18, 0.55) 72%, #0a0e12 100%);
}
/* Static fallback (reduced motion / no JS): fog gradient, no canvas */
.journey.static #hero-canvas { display: none; }
.journey.static .journey-view {
  background:
    radial-gradient(900px 540px at 68% 24%, rgba(255, 255, 255, 0.65), transparent 62%),
    radial-gradient(760px 480px at 24% 80%, rgba(62, 130, 150, 0.14), transparent 66%),
    linear-gradient(170deg, #cdd3d8 0%, var(--fog) 55%, #b4bcc3 100%);
}
.beat {
  transition: opacity 0.55s ease-out, transform 0.55s var(--ease-out), visibility 0s linear 0.55s;
  visibility: hidden;
}
.beat.on {
  visibility: visible;
  transition: opacity 0.55s ease-out, transform 0.55s var(--ease-out), visibility 0s;
}
.beat:not(.on) { opacity: 0; pointer-events: none; }
.hero-inner {
  position: absolute; inset: 0; z-index: 2;
  display: grid; align-content: center; gap: 26px; justify-items: start;
  padding-top: var(--nav-h);
}
.hero-inner:not(.on) { transform: translateY(-34px); }
.hero-label {
  color: #fff; font-weight: 700; font-size: 13px;
  -webkit-text-stroke: 0.7px rgba(14, 20, 24, 0.8);
  paint-order: stroke fill;
  text-shadow:
    0 0 1.5px rgba(10, 14, 18, 0.9), 0 0 1.5px rgba(10, 14, 18, 0.9),
    0 1px 5px rgba(10, 14, 18, 0.6);
}

.anno {
  position: absolute; z-index: 2;
  top: 50%; transform: translateY(-50%);
  width: min(400px, 84vw);
  background: rgba(255, 255, 255, 0.6);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border: 1px solid rgba(14, 14, 14, 0.09);
  border-radius: 14px;
  padding: 24px 26px 22px;
  display: grid; gap: 10px;
  box-shadow: 0 24px 60px -30px rgba(14, 14, 14, 0.35);
}
.anno:not(.on) { transform: translateY(calc(-50% + 30px)); }
.anno-r { right: clamp(20px, 7vw, 110px); }
.anno-l { left: clamp(20px, 7vw, 110px); }
.anno-label {
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--teal);
}
.anno-title { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; color: var(--ink); }
.anno-body { font-family: var(--serif); font-size: 15px; line-height: 1.65; color: var(--slate); }
.anno-link {
  font-family: var(--mono); font-size: 12.5px; font-weight: 500;
  color: var(--azure-deep); text-underline-offset: 4px;
}

/* the closing statement over the summit landing (end of film) */
.hero-end {
  position: absolute; inset: 0; z-index: 2;
  display: grid; align-content: center; justify-items: center;
  gap: 14px; text-align: center; padding: var(--nav-h) 24px 0;
  pointer-events: none;
}
.hero-end:not(.on) { transform: translateY(22px); }
.he-quote {
  font-size: clamp(1.9rem, 5.4vw, 3.9rem); font-weight: 800;
  letter-spacing: -0.02em; line-height: 1.05; color: #fff;
  max-width: 16ch;
  -webkit-text-stroke: 1px rgba(14, 20, 24, 0.8);
  paint-order: stroke fill;
  text-shadow:
    0 0 2px rgba(10, 14, 18, 0.9), 0 0 2px rgba(10, 14, 18, 0.9),
    0 2px 10px rgba(10, 14, 18, 0.65), 0 4px 30px rgba(10, 14, 18, 0.5);
}
.he-sub {
  font-family: var(--mono); font-size: 13px; font-weight: 500;
  letter-spacing: 0.14em; color: #fff;
  -webkit-text-stroke: 0.6px rgba(14, 20, 24, 0.8);
  paint-order: stroke fill;
  text-shadow: 0 0 1.5px rgba(10, 14, 18, 0.9), 0 1px 5px rgba(10, 14, 18, 0.6);
}

.hud-status {
  position: absolute; z-index: 2;
  bottom: 22px; right: clamp(20px, 4vw, 40px);
  font-family: var(--mono); font-size: 12.5px; font-weight: 700; letter-spacing: 0.08em;
  color: #fff;
  -webkit-text-stroke: 0.6px rgba(14, 20, 24, 0.8);
  paint-order: stroke fill;
  text-shadow: 0 0 1.5px rgba(10, 14, 18, 0.9), 0 1px 5px rgba(10, 14, 18, 0.6);
}

.hero-title, .cta-band .sec-title {
  font-size: clamp(2.05rem, 8.8vw, 5.4rem);
  font-weight: 800; letter-spacing: -0.03em; line-height: 1.04;
}
.line { display: block; overflow: hidden; padding-block: 0.04em; }
.line-inner { display: inline-block; transform: translateY(112%); transition: transform 0.85s var(--ease-out); }
.loaded .line:nth-child(1) .line-inner { transition-delay: 0.05s; }
.loaded .line:nth-child(2) .line-inner { transition-delay: 0.16s; }
.loaded .line:nth-child(3) .line-inner { transition-delay: 0.27s; }
.loaded .hero-inner .line-inner, .in .line-inner { transform: translateY(0); }

.hero-title { color: var(--ink); }
.hero-sub { max-width: 580px; font-size: clamp(16px, 1.9vw, 18px); color: var(--char-2); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.chip {
  font-family: var(--mono);
  font-size: 11.5px; font-weight: 500; letter-spacing: 0.02em;
  color: var(--char-2); border: 1px solid rgba(14, 14, 14, 0.18);
  background: rgba(255, 255, 255, 0.3);
  padding: 7px 13px; border-radius: 999px;
}

.scroll-cue {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  z-index: 2; width: 1px; height: 44px; overflow: hidden;
}
.scroll-cue span {
  display: block; width: 1px; height: 100%;
  background: linear-gradient(to bottom, transparent, rgba(39, 39, 39, 0.6));
  animation: cue 2.2s var(--ease-out) infinite;
}
@keyframes cue { 0% { transform: translateY(-100%); } 60% { transform: translateY(0); } 100% { transform: translateY(100%); } }

/* ── Site-wide particle snow (js/snow.js) ──────────────────── */
#snow {
  position: fixed; inset: 0; z-index: 5;
  width: 100vw; height: 100vh;
  pointer-events: none;
}

/* ── HUD callouts: white mono floating on the footage (igloo) ─ */
.callout {
  position: absolute; z-index: 2;
  background: none; border: 0; cursor: pointer;
  text-align: left; padding: 14px;
  font-family: var(--mono); color: #fff;
  text-shadow:
    0 0 1.5px rgba(10, 14, 18, 0.95), 0 0 1.5px rgba(10, 14, 18, 0.95),
    0 1px 4px rgba(10, 14, 18, 0.7), 0 2px 20px rgba(10, 14, 18, 0.5);
  display: flex; flex-direction: column; gap: 8px;
}
.co-r { right: clamp(20px, 9vw, 150px); top: 38%; }
.co-l { left: clamp(20px, 9vw, 150px); top: 42%; }
.callout:not(.on) { transform: translateY(24px); }
.co-label { font-size: 12.5px; font-weight: 500; letter-spacing: 0.1em; opacity: 0.95; }
.co-title {
  font-size: clamp(20px, 2.4vw, 30px); font-weight: 700; letter-spacing: 0.12em;
  -webkit-text-stroke: 1px rgba(14, 20, 24, 0.85);
  paint-order: stroke fill;
  text-shadow:
    0 0 2px rgba(10, 14, 18, 0.9), 0 0 2px rgba(10, 14, 18, 0.9),
    0 2px 6px rgba(10, 14, 18, 0.7), 0 4px 26px rgba(10, 14, 18, 0.55);
}
.co-cta {
  font-size: 12.5px; font-weight: 500; letter-spacing: 0.12em; color: var(--ice-soft);
  border-bottom: 1px solid rgba(127, 212, 255, 0.6);
  align-self: flex-start; padding-bottom: 2px;
}
.callout:hover .co-cta { color: #fff; border-color: #fff; }
.callout:focus-visible { outline: 2px solid var(--azure); outline-offset: 4px; }
.co-tether {
  position: absolute; top: 50%; width: clamp(40px, 6vw, 110px); height: 1px;
  background: linear-gradient(90deg, rgba(255,255,255,0.75), rgba(255,255,255,0));
}
.co-r .co-tether { right: 100%; transform: scaleX(-1); }
.co-l .co-tether { left: 100%; }

/* ── The explore panels: dark terminal takeovers ───────────── */
.panel {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(10, 14, 18, 0.9);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  opacity: 0; pointer-events: none; transition: opacity 0.35s ease-out;
  overflow-y: auto;
}
.panel.open { opacity: 1; pointer-events: auto; }
.panel-inner {
  max-width: 640px; margin: 0 auto;
  padding: clamp(70px, 12vh, 130px) 28px 80px;
  font-family: var(--mono); color: #dfe7ec;
}
.panel-close {
  position: fixed; top: 20px; right: 22px;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff; font-size: 16px; cursor: pointer;
}
.panel-close:hover { background: rgba(255, 255, 255, 0.2); }
.panel-close:focus-visible { outline: 2px solid var(--azure); outline-offset: 2px; }
.pn-head { font-size: 12px; letter-spacing: 0.14em; color: #8fa3af; margin-bottom: 34px; }
.pn-title { font-size: clamp(17px, 2.2vw, 22px); letter-spacing: 0.1em; color: #fff; margin-bottom: 18px; }
.pn-body { font-size: 13.5px; line-height: 1.85; letter-spacing: 0.02em; margin-bottom: 16px; max-width: 56ch; }
.pn-note { font-size: 12px; letter-spacing: 0.06em; color: var(--ice-soft); margin-bottom: 8px; }
.pn-links { font-size: 12px; letter-spacing: 0.14em; color: #8fa3af; margin: 34px 0 12px; }
.pn-linkrow { display: flex; gap: 26px; flex-wrap: wrap; }
.pn-link {
  font-size: 13px; letter-spacing: 0.08em; color: #fff;
  text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  padding: 6px 0;
}
.pn-link:hover { color: var(--ice-soft); border-color: var(--ice-soft); }
.pn-carousel { position: relative; min-height: 190px; }
.panel .spec-card { position: absolute; inset: 0; opacity: 0; transform: translateX(22px); transition: opacity 0.4s ease-out, transform 0.4s var(--ease-out); pointer-events: none; }
.panel .spec-card.cur { opacity: 1; transform: translateX(0); pointer-events: auto; }
.panel .station-nav { display: flex; align-items: center; gap: 14px; margin-top: 8px; }
.panel .st-btn {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3); background: rgba(255, 255, 255, 0.06);
  font-size: 22px; line-height: 1; color: #fff; cursor: pointer;
}
.panel .st-btn:hover { background: rgba(255, 255, 255, 0.85); color: var(--ink); }
.panel .st-btn:focus-visible { outline: 2px solid var(--azure); outline-offset: 2px; }
.panel .st-count { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.08em; color: #8fa3af; }
body.panel-open { overflow: hidden; }
html.shot .panel { transition: none; }

/* ── The river stop: spec station (arrow-through systems) ──── */
.station {
  position: absolute; top: 50%; transform: translateY(-50%);
  right: clamp(20px, 7vw, 110px);
  z-index: 2; width: min(400px, calc(100vw - 48px));
  padding: 22px 24px 18px;
  background: rgba(255, 255, 255, 0.62);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border: 1px solid rgba(14, 14, 14, 0.1); border-radius: 14px;
  box-shadow: 0 18px 50px rgba(14, 14, 14, 0.08);
}
.station:not(.on) { transform: translateY(calc(-50% + 30px)); }
.station-view { position: relative; min-height: 168px; margin-top: 10px; }
.spec-card {
  position: absolute; inset: 0;
  opacity: 0; transform: translateX(22px);
  transition: opacity 0.4s ease-out, transform 0.4s var(--ease-out);
  pointer-events: none;
}
.spec-card.cur { opacity: 1; transform: translateX(0); pointer-events: auto; }
.spec-note { font-family: var(--mono); font-size: 11px; letter-spacing: 0.05em; color: var(--teal); margin-top: 10px; }
.station-nav { display: flex; align-items: center; gap: 14px; margin-top: 6px; }
.st-btn {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(14, 14, 14, 0.22); background: rgba(255, 255, 255, 0.5);
  font-size: 22px; line-height: 1; color: var(--ink); cursor: pointer;
  transition: background 0.2s ease-out, transform 0.2s var(--ease-out);
}
.st-btn:hover { background: var(--ink); color: var(--bone); }
.st-btn:focus-visible { outline: 2px solid var(--azure); outline-offset: 2px; }
.st-count { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.08em; color: var(--slate); }

/* ── The medallion: liquid glass logo riding the climb ─────── */
.medallion {
  position: absolute; z-index: 2;
  right: clamp(24px, 12vw, 180px); top: 34%;
  width: 108px; height: 108px;
  display: grid; place-items: center;
  color: var(--ink); text-decoration: none;
}
.medallion:not(.on) { transform: translateY(26px); }
.med-blob {
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 55% at 32% 28%, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.25) 60%),
    radial-gradient(80% 80% at 70% 75%, rgba(127, 212, 255, 0.35), rgba(255, 255, 255, 0.1));
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: inset 0 1px 8px rgba(255, 255, 255, 0.8), 0 14px 38px rgba(14, 14, 14, 0.12);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-radius: 46% 54% 52% 48% / 52% 46% 54% 48%;
  animation: blob 7s ease-in-out infinite alternate;
}
@keyframes blob {
  0%   { border-radius: 46% 54% 52% 48% / 52% 46% 54% 48%; }
  50%  { border-radius: 54% 46% 48% 52% / 46% 54% 48% 52%; }
  100% { border-radius: 48% 52% 46% 54% / 54% 48% 52% 46%; }
}
.med-glyph {
  position: absolute; width: 42px; height: 42px;
  opacity: 0; transform: scale(0.7); filter: blur(7px);
  transition: opacity 0.55s ease-out, transform 0.55s var(--ease-out), filter 0.55s ease-out;
}
.med-glyph.cur { opacity: 1; transform: scale(1); filter: blur(0); }
.med-label {
  position: absolute; bottom: -32px; left: 50%; transform: translateX(-50%);
  font-family: var(--mono); font-size: 14px; font-weight: 700; letter-spacing: 0.1em;
  color: #fff; white-space: nowrap;
  -webkit-text-stroke: 0.8px rgba(14, 20, 24, 0.85);
  paint-order: stroke fill;
  text-shadow:
    0 0 1.5px rgba(10, 14, 18, 0.95), 0 0 1.5px rgba(10, 14, 18, 0.95),
    0 1px 5px rgba(10, 14, 18, 0.7), 0 2px 18px rgba(10, 14, 18, 0.5);
}
.medallion:hover .med-blob { border-radius: 50%; }
.medallion:focus-visible { outline: 2px solid var(--azure); outline-offset: 6px; border-radius: 50%; }

/* ── Sound toggle (the dive audio; off by default) ─────────── */
.snd {
  position: fixed; right: 18px; bottom: 16px; z-index: 60;
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.08em; color: var(--char);
  /* solid frosted fill, NO backdrop-filter (same flicker fix as the nav:
     the live blur re-samples the always-animating snow canvas behind it) */
  background: rgba(247, 249, 250, 0.95);
  border: 1px solid rgba(14, 14, 14, 0.14); border-radius: 999px;
  padding: 12px 16px; min-height: 44px; cursor: pointer;
  transition: background 0.25s var(--ease-out), color 0.25s var(--ease-out);
}
.snd:hover { background: rgba(255, 255, 255, 0.85); }
.snd[aria-pressed="true"] { background: var(--ink); color: var(--bone); border-color: var(--ink); }
.snd:focus-visible { outline: 2px solid var(--azure); outline-offset: 2px; }
html.shot .snd { display: none; }

/* ══ THE WORLD, ALL THE WAY DOWN ══════════════════════════════
   Below the fold the site stays inside the film's Pacific
   Northwest world: sections sit on real frames from the journey
   (assets/world/ — stable copies, re-extraction-proof) under a
   dusk scrim, content floats in dark glass, mono decodes carry
   the terminal language down. Jake 2026-07-17: "PNW world". */
.world {
  position: relative;
  color: #dfe7ec;
  background-size: cover;
  background-position: center;
}
.world::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(90% 60% at 50% 0%, rgba(10, 14, 18, 0.5), transparent 70%),
    linear-gradient(180deg, rgba(10, 14, 18, 0.88) 0%, rgba(12, 17, 22, 0.8) 45%, rgba(10, 14, 18, 0.9) 100%);
}
.world > .container { position: relative; }
/* the descent's biomes, in order down the page */
#systems.world  { background-image: url("../assets/world/w-river.jpg"); }
#process.world  { background-image: url("../assets/world/w-estuary.jpg"); }
#about.world    { background-image: url("../assets/world/w-coast.jpg"); }
#faq.world      { background-image: url("../assets/world/w-seastacks.jpg"); }
#contact.world  { background-image: url("../assets/world/w-ocean.jpg"); }

.world .label { color: var(--ice-soft); }
.world .sec-title { color: #fff; }
.world .sec-sub { color: #b7c6cf; }
.world .accent { color: #fff; }
.world .btn-ghost {
  border-color: rgba(255, 255, 255, 0.35); color: #fff;
  background: rgba(255, 255, 255, 0.07);
}
.world .btn-ghost:hover { border-color: rgba(255, 255, 255, 0.75); background: rgba(255, 255, 255, 0.15); }

/* ── Proof strip: mono status line out of the journey ───────── */
.proof {
  background: #0a0e12;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.proof-items {
  display: flex; flex-wrap: wrap; gap: 12px 40px;
  padding-block: 20px; justify-content: space-between;
}
.proof-item {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono);
  font-size: 12.5px; font-weight: 500; letter-spacing: 0.06em;
  color: #b7c6cf;
}
.proof-item .check { color: var(--ice-soft); flex: none; width: 14px; height: 14px; }

/* ── Sections ───────────────────────────────────────────────── */
/* Every section holds at least one full screen, content centered, so the
   scroll rhythm is even (Jake: "some sections are on screen way shorter
   than others — it should be an equal spread"). Measured before: about
   653px vs systems 1531px = a 2.3x spread; the short ones whipped past.
   min-height is a FLOOR only — taller content still grows past it. */
.section, .cta-band { min-height: 100svh; display: grid; align-content: center; }
.section { padding-block: clamp(84px, 11vw, 148px); }
.section.alt { background: var(--bone-2); }
.sec-head { display: grid; gap: 16px; max-width: 760px; margin-bottom: clamp(40px, 6vw, 64px); }
.sec-title { font-size: clamp(2rem, 4.4vw, 3.25rem); font-weight: 700; letter-spacing: -0.025em; line-height: 1.08; }
.sec-sub { font-size: 17px; color: var(--slate); max-width: 62ch; }

/* ── Cards (Systems): dark glass modules over the river ─────── */
.cards { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1060px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: rgba(13, 18, 22, 0.6);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 24px 26px 24px;
  display: grid; gap: 13px; align-content: start;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s ease-out, border-color 0.25s ease-out;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(127, 212, 255, 0.45);
  box-shadow: 0 18px 44px -16px rgba(0, 0, 0, 0.6), 0 0 30px -10px var(--glow);
}
.mod-head {
  font-family: var(--mono);
  font-size: 11px; font-weight: 500; letter-spacing: 0.14em;
  color: #8fa3af;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 10px; margin-bottom: 2px;
}
.card-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: rgba(127, 212, 255, 0.1); color: var(--ice-soft);
  display: grid; place-items: center;
}
.card-title { font-size: 17.5px; font-weight: 600; letter-spacing: -0.01em; color: #fff; }
.card-body { font-size: 15px; color: #b7c6cf; line-height: 1.6; }
.card-note { font-family: var(--mono); font-size: 12px; font-weight: 500; color: var(--ice-soft); letter-spacing: 0.03em; }

/* ── THE LIVE WIRE: the intake system, running in-page ──────── */
.wire {
  margin-top: clamp(40px, 6vw, 64px);
  background: rgba(13, 18, 22, 0.66);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid rgba(127, 212, 255, 0.28);
  border-radius: 12px;
  padding: 26px 28px 28px;
  display: grid; gap: 14px;
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.65), 0 0 46px -18px var(--glow);
}
.wire-title { font-size: clamp(20px, 2.4vw, 26px); font-weight: 700; letter-spacing: -0.015em; color: #fff; }
.wire-sub { font-family: var(--serif); font-size: 15px; line-height: 1.65; color: #b7c6cf; max-width: 64ch; }
.wire-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.wire-chip {
  font-family: var(--mono); font-size: 11.5px; font-weight: 500; letter-spacing: 0.02em;
  color: #dfe7ec; text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.22); border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  padding: 8px 14px; cursor: pointer;
  transition: border-color 0.2s ease-out, background 0.2s ease-out;
}
.wire-chip:hover { border-color: rgba(127, 212, 255, 0.7); background: rgba(127, 212, 255, 0.1); }
.wire-chip:focus-visible { outline: 2px solid var(--azure); outline-offset: 2px; }
.wire-form {
  display: flex; align-items: center; gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 8px;
  background: rgba(6, 9, 12, 0.6);
  padding: 4px 6px 4px 14px;
}
.wire-prompt { font-family: var(--mono); font-size: 14px; color: var(--ice-soft); }
.wire-input {
  flex: 1; min-width: 0; border: 0; background: none;
  font-family: var(--mono); font-size: 13.5px; color: #fff;
  padding: 12px 0; outline: none;
}
.wire-input::placeholder { color: #66788299; }
.wire-send {
  font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.08em;
  color: var(--ink); background: var(--ice-soft);
  border: 0; border-radius: 6px; padding: 10px 18px; cursor: pointer;
  transition: background 0.2s ease-out;
}
.wire-send:hover { background: #fff; }
.wire-send:focus-visible { outline: 2px solid var(--azure); outline-offset: 2px; }
.wire-log { display: grid; gap: 7px; font-family: var(--mono); min-height: 0; }
.wire-log:not(:empty) { padding-top: 6px; }
.wire-line { font-size: 12.5px; letter-spacing: 0.03em; line-height: 1.7; }
.wire-echo { color: #8fa3af; }
.wire-sys { color: var(--ice-soft); }
.wire-reply {
  color: #dfe7ec; font-size: 13px; max-width: 62ch;
  border-left: 2px solid rgba(127, 212, 255, 0.5);
  padding: 8px 0 8px 14px; margin-top: 4px;
  min-height: 1.7em;
}
.wire-done { color: #8fa3af; margin-top: 4px; }

/* ── Process stages: the climb ──────────────────────────────── */
.stages { display: grid; }
.stage {
  display: grid; gap: 10px 36px;
  grid-template-columns: 1fr;
  padding-block: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}
@media (min-width: 900px) {
  .stage { grid-template-columns: 110px 300px 1fr; padding-block: 38px; }
}
.stage-num {
  font-size: clamp(40px, 5vw, 60px); font-weight: 800; line-height: 0.9;
  letter-spacing: -0.03em; color: rgba(234, 246, 255, 0.14);
}
.stage-head { display: grid; gap: 6px; align-content: start; }
.stage-name { font-size: 20px; font-weight: 600; letter-spacing: -0.015em; color: #fff; }
.stage-price { font-family: var(--mono); font-size: 12.5px; font-weight: 500; letter-spacing: 0.04em; color: var(--ice-soft); }
.stage-body { font-size: 15.5px; color: #b7c6cf; max-width: 64ch; align-self: start; }
.stage-note { display: block; margin-top: 8px; font-size: 14px; color: var(--ice-soft); font-weight: 500; }
.process-note {
  margin-top: 34px; padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 15.5px; color: #c9d4db; max-width: 72ch;
}

/* ── Operator: at rest by the river ─────────────────────────── */
.operator .sec-head { margin-bottom: 0; }
.op-grid { display: grid; gap: 48px; align-items: start; }
@media (min-width: 980px) { .op-grid { grid-template-columns: 1fr 1.15fr; gap: 72px; } }
.op-body { display: grid; gap: 20px; align-content: start; }
.op-quote {
  font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 700;
  letter-spacing: -0.02em; line-height: 1.15; color: #fff;
}
.op-quote .quote-bar {
  display: inline-block; width: 0.45em; height: 0.14em;
  background: linear-gradient(90deg, var(--ice-soft), var(--azure));
  border-radius: 2px; vertical-align: baseline;
}
.op-body > p:not(.op-quote) { font-size: 16.5px; color: #b7c6cf; max-width: 58ch; }
.op-body a { color: var(--ice-soft); text-decoration-color: rgba(127, 212, 255, 0.4); text-underline-offset: 3px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.fact {
  font-family: var(--mono);
  font-size: 11.5px; font-weight: 500; color: #dfe7ec;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(13, 18, 22, 0.45);
  padding: 7px 13px; border-radius: 999px;
}

/* ── FAQ: terminal Q/A on the soar ──────────────────────────── */
.faq-wrap { max-width: 860px; }
.faq-list { border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
.faq-item { border-top: 1px solid rgba(255, 255, 255, 0.14); }
.faq-q {
  display: flex; align-items: center; justify-content: flex-start; gap: 12px;
  padding: 22px 2px; cursor: pointer;
  font-size: 17px; font-weight: 600; letter-spacing: -0.01em; color: #fff;
  list-style: none;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q::before {
  content: "//";
  font-family: var(--mono); font-size: 13px; font-weight: 500;
  color: var(--ice-soft);
}
.faq-icon { flex: none; margin-left: auto; color: var(--ice-soft); transition: transform 0.25s var(--ease-out); }
.faq-item[open] .faq-icon { transform: rotate(45deg); }
.faq-a {
  padding: 0 2px 24px; font-size: 15.5px; color: #b7c6cf; max-width: 68ch;
  animation: faq-in 0.45s var(--ease-out);
}
@keyframes faq-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── CTA band: the summit, where the loop closes ────────────── */
.cta-band { padding-block: clamp(96px, 13vw, 170px); }
.cta-band .sec-title { color: #fff; }
.cta-inner { display: grid; gap: 26px; justify-items: start; max-width: 860px; }
.cta-sub { font-size: 17px; color: #c9d4db; max-width: 54ch; }

/* ── Footer: night at basecamp ──────────────────────────────── */
.site-footer { border-top: 1px solid rgba(255, 255, 255, 0.08); padding-block: 44px; background: #0a0e12; color: #b7c6cf; }
.foot-grid { display: grid; gap: 28px; }
@media (min-width: 820px) { .foot-grid { grid-template-columns: 1.2fr 1fr 1fr; gap: 40px; } }
.foot-brand { display: grid; gap: 14px; }
.foot-brand .mark { color: var(--ice-soft); }
.foot-brand p { font-size: 14.5px; color: #8fa3af; max-width: 34ch; }
.foot-brand .foot-name { font-size: 13px; color: #6f828d; font-style: italic; max-width: 38ch; }
.foot-contact, .foot-meta { display: grid; gap: 8px; align-content: start; font-family: var(--mono); font-size: 12.5px; color: #8fa3af; }
.foot-contact a, .foot-meta a { color: #dfe7ec; text-decoration-color: rgba(255, 255, 255, 0.25); text-underline-offset: 3px; }
.foot-contact a:hover, .foot-meta a:hover { text-decoration-color: var(--ice-soft); }

/* ── Reveal animation ───────────────────────────────────────── */
[data-reveal] {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.7s ease-out var(--d, 0ms), transform 0.7s var(--ease-out) var(--d, 0ms);
}
[data-reveal].in { opacity: 1; transform: translateY(0); }

/* Split lines inside data-reveal wait for .in (handled above via .in .line-inner) */

/* ── No-JS: everything visible ──────────────────────────────── */
html:not(.js) [data-reveal] { opacity: 1; transform: none; transition: none; }
html:not(.js) .line-inner { transform: none; transition: none; }
html:not(.js) #hero-canvas { display: none; }
html:not(.js) .menu-btn { display: none; }

/* ── Reduced motion: full honor ─────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .line-inner { transform: none; }
  .scroll-cue { display: none; }
  .card:hover, .btn:hover { transform: none; }
  .grain { animation: none; }
  .cursor-ring { display: none; }
  /* journey collapses to a plain hero; annotations live in the sections below */
  .journey-track { height: auto; }
  .journey-view { position: relative; }
  .anno, .hud-status { display: none; }
  .hero-inner { opacity: 1 !important; transform: none !important; pointer-events: auto !important; }
}

/* Capture helper: plain-hero layout for full-page overview shots */
html.shot-flat .journey-track { height: auto; }
html.shot-flat .journey-view { position: relative; height: 720px; min-height: 0; }
html.shot-flat .anno { display: none; }

/* ── Boot sequence (first visit per tab; skippable) ─────────── */
#boot {
  position: fixed; inset: 0; z-index: 150;
  background: #0a0e12;
  display: grid; place-items: center;
  opacity: 1; transition: opacity 0.7s ease-out;
}
#boot.done { opacity: 0; pointer-events: none; }
#boot[hidden] { display: none; }
.boot-lines { display: grid; gap: 12px; }
.b-line {
  font-family: var(--mono); font-size: 13px; font-weight: 500;
  letter-spacing: 0.12em; color: #dfe7ec;
  opacity: 0; transition: opacity 0.3s ease-out;
}
.b-line.on { opacity: 1; }
.b-line.b-dim { color: #8fa3af; }
.boot-bar {
  width: 240px; height: 1px; margin-top: 6px;
  background: rgba(255, 255, 255, 0.14);
}
#boot-fill {
  display: block; height: 100%; width: 0%;
  background: var(--ice-soft);
  transition: width 0.3s ease-out;
}

/* ── Grain overlay ──────────────────────────────────────────── */
.grain {
  position: fixed; inset: -60%;
  z-index: 110; pointer-events: none;
  opacity: 0.055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 850ms steps(4) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-2.5%, 1.8%); }
  50% { transform: translate(1.6%, -2.2%); }
  75% { transform: translate(-1.2%, -1.4%); }
  100% { transform: translate(2%, 2.4%); }
}

/* ── Cursor ring (fine pointers only) ───────────────────────── */
.cursor-ring {
  position: fixed; top: 0; left: 0;
  width: 30px; height: 30px;
  border: 1px solid rgba(0, 178, 255, 0.6);
  border-radius: 50%;
  z-index: 140; pointer-events: none;
  opacity: 0;
  transition: width 0.25s var(--ease-out), height 0.25s var(--ease-out),
              opacity 0.3s ease-out, border-color 0.25s ease-out;
}
.cursor-ring.on { opacity: 1; }
.cursor-ring.hot { width: 48px; height: 48px; border-color: rgba(234, 246, 255, 0.9); }
.cursor-tag {
  position: absolute; left: calc(100% + 10px); top: 50%;
  transform: translateY(-50%);
  font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: 0.1em;
  color: #fff; white-space: nowrap;
  -webkit-text-stroke: 0.6px rgba(14, 20, 24, 0.85);
  paint-order: stroke fill;
  text-shadow: 0 0 1.5px rgba(10, 14, 18, 0.9), 0 1px 5px rgba(10, 14, 18, 0.6);
  opacity: 0; transition: opacity 0.2s ease-out;
}
.cursor-ring.say .cursor-tag { opacity: 1; }
@media (pointer: coarse) { .cursor-ring { display: none; } }

/* ── Capture mode (?shot) — deterministic screenshots ───────── */
html.shot *, html.shot *::before, html.shot *::after {
  transition: none !important;
  animation: none !important;
}
html.shot [data-reveal] { opacity: 1; transform: none; }
html.shot .line-inner { transform: none; }

/* ── Print ──────────────────────────────────────────────────── */
@media print {
  .site-nav, .menu-panel, #hero-canvas, .hero-shade, .scroll-cue { display: none; }
  .dark { background: none; color: #000; }
}
