/* ============================================================
   KAIROS ASCENT — main.css  (v3 — richer ink world)
   Brand: navy #0d1f3c / cream #f0eee6 / gold #c9952a
   Type:  Bricolage Grotesque (display/UI) / Source Serif 4 (body)
   Night-sky navy + paper-map cream. Hand-drawn ink SVG motifs:
   moon, constellations, contours, compass, clouds, flight trail.
   Blogger-forward: no build step, vanilla CSS.
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --navy: #0d1f3c;
  --navy-deep: #091830;
  --cream: #f0eee6;
  --gold: #c9952a;
  --gold-soft: rgba(201, 149, 42, 0.35);

  /* Theme vars — dark (night) by default, body.light = paper */
  --bg: var(--navy);
  --tx: var(--cream);
  --dim: rgba(240, 238, 230, 0.66);
  --line: rgba(240, 238, 230, 0.18);
  --ink: var(--cream);          /* stroke colour for drawn SVGs */

  --font-display: 'Bricolage Grotesque', 'Trebuchet MS', sans-serif;
  --font-serif: 'Source Serif 4', Georgia, serif;

  --nav-h: 84px;
  --sect-pad: clamp(6rem, 13vh, 10.5rem);
}

/* Day theme. The second selector is the pre-paint bridge: the head script can
   only set an attribute on <html> before <body> exists, so it stamps
   data-theme="day" and this maps it onto the same vars, preventing a colour
   flash before main.js adds body.light. */
body.light,
html[data-theme="day"] body {
  --bg: var(--cream);
  --tx: var(--navy);
  --dim: rgba(13, 31, 60, 0.66);
  --line: rgba(13, 31, 60, 0.18);
  --ink: var(--navy);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scrollbar-color: var(--gold) var(--navy-deep); scrollbar-width: thin; }

html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  background: var(--bg);
  color: var(--tx);
  font-family: var(--font-serif);
  font-size: 1.05rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color 0.9s ease, color 0.9s ease;
}

img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; cursor: pointer; }
button { cursor: pointer; font: inherit; color: inherit; background: none; border: 0; }

::selection { background: var(--gold); color: var(--navy); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed; top: 8px; left: 8px; z-index: 2000;
  background: var(--gold); color: var(--navy);
  font-family: var(--font-display); font-weight: 600; font-size: 0.9rem;
  padding: 0.55em 1.1em; border-radius: 999px;
  transform: translateY(-300%);
  transition: transform 0.2s ease;
}
.skip-link:focus { transform: none; }

/* ---------- Layout ---------- */
.container {
  width: min(100% - clamp(2.6rem, 7vw, 7rem), 1200px);
  margin-inline: auto;
}

.section { padding-block: var(--sect-pad); position: relative; }
.services, .process { overflow: hidden; }
.section .container { position: relative; z-index: 2; }

.sect-label {
  font-family: var(--font-serif); font-style: italic;
  font-size: 1.05rem; color: var(--gold);
  margin-bottom: 1rem;
}
.sect-head { margin-bottom: clamp(2.6rem, 7vh, 4.5rem); }
.sect-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.1rem, 4.8vw, 3.8rem);
  line-height: 1.04; letter-spacing: -0.02em;
}

.accent-serif { font-family: var(--font-serif); font-style: italic; color: var(--gold); }

/* ---------- Drawn-ink SVG bits ---------- */
.ink-draw { fill: none; stroke: var(--ink); stroke-width: 3; transition: stroke 0.9s ease; }
.gold-draw { stroke: var(--gold); }
.gold-fill { fill: var(--gold); }
.dashed { stroke-dasharray: 2 8; stroke-linecap: round; }

/* Sketch sparkle stars (hand-placed) */
.star { position: absolute; width: 18px; height: 18px; pointer-events: none; z-index: 1; }
.star path { fill: rgba(240, 238, 230, 0.35); }
.star.gold path { fill: rgba(201, 149, 42, 0.8); }

/* Star-field dots (JS-injected) */
.sky {
  position: absolute; inset: 0; z-index: 0;
  pointer-events: none; overflow: hidden;
}
.star2 { position: absolute; border-radius: 50%; background: currentColor; }

/* Shooting stars */
.shoot {
  position: absolute; top: 16%; right: 6%;
  width: 130px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, rgba(240, 238, 230, 0), rgba(240, 238, 230, 0.85));
  transform: rotate(-30deg); opacity: 0;
  animation: shoot 9s ease-in infinite;
  animation-delay: 2.5s;
}
.shoot2 { top: 34%; right: 34%; width: 90px; animation-delay: 6.5s; animation-duration: 11s; }
.shoot3 { top: 22%; right: 20%; animation-delay: 4s; animation-duration: 10s; }
@keyframes shoot {
  0%, 92% { opacity: 0; transform: translate3d(0, 0, 0) rotate(-30deg); }
  94% { opacity: 0.9; }
  100% { opacity: 0; transform: translate3d(-320px, 190px, 0) rotate(-30deg); }
}

/* Moon */
.moon {
  position: absolute; top: 11%; left: 40%;
  width: clamp(58px, 7vw, 92px); height: auto;
  z-index: 1; pointer-events: none;
}
.moon path { stroke: rgba(240, 238, 230, 0.55); stroke-width: 3; stroke-linecap: round; fill: none; }
.moon .moon-tick { stroke: rgba(201, 149, 42, 0.7); stroke-width: 2.5; }

/* Constellations */
.constellation { position: absolute; z-index: 1; pointer-events: none; }
.constellation polyline { stroke: rgba(240, 238, 230, 0.28); stroke-width: 1.5; fill: none; }
.constellation circle { fill: rgba(240, 238, 230, 0.55); }
.con-a { top: 56%; left: 50%; width: clamp(120px, 13vw, 180px); }
.con-b { top: 16%; left: 10%; width: clamp(130px, 14vw, 190px); }

/* Contour rings (map altitude lines) */
.contours { position: absolute; z-index: 0; pointer-events: none; }
.contours path { stroke: var(--ink); stroke-width: 2; fill: none; opacity: 0.08; transition: stroke 0.9s ease; }
.contours-hero { bottom: -46px; left: -36px; width: clamp(220px, 26vw, 330px); }
.contours-svc { bottom: -30px; right: -40px; width: clamp(220px, 24vw, 310px); }

/* Compass rose */
.compass {
  position: absolute; top: clamp(4rem, 9vh, 7rem); right: 5%;
  width: clamp(72px, 9vw, 112px); height: auto;
  z-index: 1; pointer-events: none; opacity: 0.55;
}
.compass circle, .compass path { stroke: var(--ink); stroke-width: 2; fill: none; transition: stroke 0.9s ease; }
.compass .compass-n { fill: var(--gold); stroke: none; }

/* Cloud doodles */
.cloud { position: absolute; z-index: 0; pointer-events: none; }
.cloud path { stroke: var(--ink); stroke-width: 2.5; stroke-linecap: round; fill: none; opacity: 0.16; transition: stroke 0.9s ease; }
.cloud-a { top: 27%; right: 16%; width: clamp(90px, 9vw, 130px); }
.cloud-b { bottom: 30%; left: 10%; width: clamp(70px, 7vw, 100px); }
.cloud-c { top: 16%; right: 9%; width: clamp(80px, 8vw, 115px); }

/* Map crosses (spot heights) */
.mapx { position: absolute; width: 14px; height: 14px; z-index: 0; pointer-events: none; }
.mapx path { stroke: var(--ink); stroke-width: 2; stroke-linecap: round; opacity: 0.2; transition: stroke 0.9s ease; }
.mapx-a { top: 19%; left: 31%; }
.mapx-b { top: 54%; right: 7%; }
.mapx-c { bottom: 13%; left: 42%; }
.mapx-d { bottom: 22%; right: 20%; }

/* ---------- Intro sting ---------- */
.intro {
  position: fixed; inset: 0; z-index: 3000;
  background: var(--navy); overflow: hidden;
  opacity: 1; transform: scale(1);
  transition: opacity 1.15s cubic-bezier(.22, 1, .36, 1), transform 1.3s cubic-bezier(.22, 1, .36, 1);
  will-change: opacity, transform;
}
.intro.is-hidden { opacity: 0; transform: scale(1.045); pointer-events: none; }
.intro-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  background: var(--navy);
}
.intro-skip, .intro-sound {
  position: absolute; z-index: 2;
  border: 1px solid rgba(240, 238, 230, 0.28);
  background: rgba(9, 24, 48, 0.4); backdrop-filter: blur(6px);
  color: var(--cream, #f0eee6); cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease, opacity 0.4s ease;
}
.intro-skip:hover, .intro-sound:hover {
  background: rgba(9, 24, 48, 0.65); border-color: rgba(240, 238, 230, 0.5);
}
.intro-skip {
  right: clamp(1rem, 3vw, 2rem); bottom: clamp(1rem, 3vh, 2rem);
  padding: 0.7em 1.3em; border-radius: 999px;
  font-family: var(--font-display); font-weight: 600; font-size: 0.85rem;
  letter-spacing: 0.01em;
}
.intro-sound {
  left: clamp(1rem, 3vw, 2rem); bottom: clamp(1rem, 3vh, 2rem);
  width: 42px; height: 42px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.intro-sound svg { width: 20px; height: 20px; }
.intro-sound path, .intro-sound line { stroke: currentColor; stroke-width: 1.6; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.intro-sound path:first-child { fill: currentColor; stroke: none; }
.intro-sound .snd-mute { opacity: 0; }
.intro-sound[aria-pressed="false"] .snd-wave { opacity: 0; }
.intro-sound[aria-pressed="false"] .snd-mute { opacity: 1; }

@media (max-width: 767px) {
  .intro-skip { padding: 0.6em 1.1em; font-size: 0.8rem; }
  .intro-sound { width: 38px; height: 38px; }
}
@media (prefers-reduced-motion: reduce) {
  .intro { display: none; }
}

/* ---------- Progress bar (small screens) ---------- */
.progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px;
  z-index: 1400; display: none; pointer-events: none;
}
.progress-fill {
  display: block; height: 100%; background: var(--gold);
  transform: scaleX(0); transform-origin: left center;
}

/* ---------- Altitude rail (desktop) ---------- */
.alt-rail {
  position: fixed; top: calc(var(--nav-h) + 10px); right: 26px; bottom: 84px;
  width: 20px; z-index: 700; pointer-events: none;
}
.alt-rail-line {
  position: absolute; top: 0; bottom: 0; left: 50%; width: 1px; margin-left: -0.5px;
  background-image: repeating-linear-gradient(to bottom, var(--line) 0 4px, transparent 4px 12px);
}
.alt-rail-dot {
  position: absolute; bottom: 0; left: 50%;
  width: 11px; height: 11px; margin-left: -5.5px; margin-bottom: -5.5px;
  border-radius: 50%; background: var(--gold);
  box-shadow: 0 0 0 4px var(--gold-soft);
}
.alt-rail-read {
  position: absolute; bottom: -34px; right: -8px;
  font-family: var(--font-serif); font-style: italic;
  font-size: 0.85rem; color: var(--gold); white-space: nowrap;
}

/* ---------- Header ---------- */
.site-head {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h);
  transition: transform 0.45s cubic-bezier(0.33, 1, 0.68, 1), background-color 0.4s ease, box-shadow 0.4s ease;
}
.site-head.hidden { transform: translateY(-102%); }
.site-head.scrolled { background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(10px); }
@supports not (background: color-mix(in srgb, red 50%, blue)) {
  .site-head.scrolled { background: var(--bg); }
}

.head-inner { height: var(--nav-h); display: flex; align-items: center; gap: clamp(1.2rem, 3vw, 2.6rem); }

.brand { display: inline-flex; align-items: center; }
.brand-logo { width: auto; height: 58px; }
.brand-fallback {
  font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; letter-spacing: -0.01em;
}

.head-nav { display: flex; gap: clamp(1.3rem, 2.6vw, 2.4rem); margin-left: auto; }
.head-nav a {
  font-family: var(--font-display); font-weight: 600; font-size: 0.95rem;
  color: var(--dim); padding: 0.4em 0; position: relative;
  transition: color 0.25s ease;
}
.head-nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0.1em;
  height: 2px; border-radius: 2px; background: var(--gold);
  transition: right 0.3s cubic-bezier(0.33, 1, 0.68, 1);
}
.head-nav a:hover { color: var(--tx); }
.head-nav a:hover::after { right: 0; }
.head-nav a.is-active, .head-nav [aria-current="page"] { color: var(--tx); }
.head-nav a.is-active::after, .head-nav [aria-current="page"]::after { right: 0; }

/* Services dropdown */
.nav-group { position: relative; display: flex; align-items: center; }
.nav-group > a { display: inline-flex; align-items: center; gap: 0.4em; }
.nav-caret {
  width: 10px; height: 7px; flex: none;
  transition: transform 0.28s cubic-bezier(0.33, 1, 0.68, 1);
}
.nav-group:hover .nav-caret, .nav-group:focus-within .nav-caret { transform: rotate(180deg); }
.nav-menu {
  position: absolute; top: 100%; left: -1rem; min-width: 12rem;
  display: flex; flex-direction: column; gap: 0.1rem;
  padding: 0.7rem 0.4rem; margin-top: 0.55rem;
  background: var(--bg); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity 0.26s ease, transform 0.26s cubic-bezier(0.33, 1, 0.68, 1), visibility 0.26s;
}
.nav-group:hover .nav-menu, .nav-group:focus-within .nav-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.nav-menu a { padding: 0.45em 0.8em; border-radius: 8px; white-space: nowrap; }
.nav-menu a::after { display: none; }
.nav-menu a:hover { color: var(--gold); background: color-mix(in srgb, var(--gold) 12%, transparent); }

/* Mobile sub-items */
.mobile-menu-nav .mm-sub {
  font-size: 1.4rem; padding-left: 1.1rem; opacity: 0.78;
  border-left: 1px solid var(--line);
}
.mobile-menu-nav [aria-current="page"] { color: var(--gold); }

.menu-btn {
  display: none; width: 48px; height: 48px; margin-left: auto;
  flex-direction: column; align-items: center; justify-content: center; gap: 7px;
}
.menu-btn span {
  display: block; width: 26px; height: 2.5px; border-radius: 2px; background: var(--tx);
  transition: transform 0.35s cubic-bezier(0.33, 1, 0.68, 1), background-color 0.3s ease;
}
.menu-btn.open span:first-child { transform: translateY(4.7px) rotate(45deg); background: var(--gold); }
.menu-btn.open span:last-child { transform: translateY(-4.7px) rotate(-45deg); background: var(--gold); }

/* ---------- Mobile menu ---------- */
.mobile-menu {
  position: fixed; inset: 0; z-index: 900;
  background: var(--navy-deep); color: var(--cream);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--nav-h) + 5vh) clamp(1.8rem, 8vw, 3rem) 7vh;
  visibility: hidden; opacity: 0;
  transition: opacity 0.4s ease, visibility 0s linear 0.4s;
}
.mobile-menu.open { visibility: visible; opacity: 1; transition-delay: 0s; }

.mobile-menu-nav { display: flex; flex-direction: column; gap: 0.9rem; }
.mobile-menu-nav a {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.1rem, 9vw, 3.2rem); letter-spacing: -0.02em;
  color: var(--cream);
  opacity: 0; transform: translateY(22px);
  transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.33, 1, 0.68, 1), color 0.25s ease;
}
.mobile-menu-nav a:hover { color: var(--gold); }
.mobile-menu.open .mobile-menu-nav a { opacity: 1; transform: none; }
.mobile-menu.open .mobile-menu-nav a:nth-child(1) { transition-delay: 0.08s; }
.mobile-menu.open .mobile-menu-nav a:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu.open .mobile-menu-nav a:nth-child(3) { transition-delay: 0.22s; }
.mobile-menu.open .mobile-menu-nav a:nth-child(4) { transition-delay: 0.29s; }

.mobile-menu-foot { display: flex; flex-direction: column; gap: 1.3rem; align-items: flex-start; }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 0.85em 1.8em;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem;
  border: 2px solid transparent; border-radius: 999px;
  transition: transform 0.25s cubic-bezier(0.33, 1, 0.68, 1),
              box-shadow 0.25s ease, background-color 0.25s ease,
              color 0.25s ease, border-color 0.25s ease;
  will-change: transform;
}
.btn:active { transform: scale(0.97); }

.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -10px var(--gold-soft); }

.btn-ghost { border-color: var(--line); color: var(--tx); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }

.btn-small { min-height: 44px; padding: 0.55em 1.3em; font-size: 0.92rem; }
.btn-big { min-height: 62px; padding: 1em 2.4em; font-size: 1.12rem; }

.quiet-link {
  font-family: var(--font-serif); font-size: 1rem; color: var(--dim);
  border-bottom: 1px solid var(--line); padding-bottom: 0.15em;
  transition: color 0.25s ease, border-color 0.25s ease;
}
.quiet-link:hover { color: var(--gold); border-color: var(--gold); }

.arrow-link {
  display: inline-flex; align-items: center; gap: 0.45em;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem;
  color: var(--gold); margin-top: 1.3rem; min-height: 44px;
}
.arrow-link::after { content: "\2192"; transition: transform 0.25s cubic-bezier(0.33, 1, 0.68, 1); }
.arrow-link:hover::after { transform: translateX(5px); }

/* ---------- Underline / circle sketches ---------- */
.uline { position: relative; white-space: nowrap; color: var(--gold); }
.uline svg {
  position: absolute; left: -2%; right: -2%; bottom: -0.24em;
  width: 104%; height: 0.42em; overflow: visible;
}
.uline svg path { stroke-width: 4; }
.uline-plain { color: inherit; }

.circled { position: relative; white-space: nowrap; color: var(--gold); }
.circled svg {
  position: absolute; left: 50%; top: 50%;
  width: 130%; height: 200%; min-width: 4.2em;
  transform: translate(-50%, -50%);
  overflow: visible; pointer-events: none;
}
.circled svg path { stroke-width: 3; }

/* ---------- Hero ---------- */
.hero {
  min-height: 100dvh;
  display: flex; align-items: center;
  padding-top: var(--nav-h);
  position: relative; overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(120% 95% at 50% 38%, rgba(0, 0, 0, 0) 52%, rgba(5, 13, 27, 0.5) 100%);
}

.flight { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.flight path { stroke: var(--gold); stroke-width: 3; opacity: 0.8; }

.hero-plane {
  position: absolute; top: 0; left: 0; z-index: 3;
  width: 36px; height: 36px; margin: -18px 0 0 -18px;
  pointer-events: none; opacity: 0;
}
.hero-plane svg { width: 100%; height: 100%; overflow: visible; }
.plane-body { stroke: var(--ink); stroke-width: 2.5; fill: var(--gold); stroke-linejoin: round; transition: stroke 0.9s ease; }
.plane-fold { stroke: var(--ink); stroke-width: 2.5; transition: stroke 0.9s ease; }

.hero-flyers-wrap {
  position: absolute; right: clamp(8%, 13vw, 17%); top: 15%;
  z-index: 2; pointer-events: none;
}
.hero-flyers {
  width: clamp(210px, 26vw, 380px); height: auto;
  filter: drop-shadow(0 22px 40px rgba(0, 0, 0, 0.4));
}

.hero-inner { position: relative; z-index: 5; }

.defn { margin-bottom: clamp(1.6rem, 4vh, 2.6rem); max-width: 34ch; }
.defn-word {
  font-family: var(--font-serif); font-style: italic; font-weight: 600;
  font-size: 1.15rem; color: var(--gold);
}
.defn-meta { font-weight: 400; font-size: 0.95rem; color: var(--dim); }
.defn-sense { font-size: 1rem; color: var(--dim); }

.hero-title {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2.9rem, 7.6vw, 6.6rem);
  line-height: 1.04; letter-spacing: -0.025em;
  margin-bottom: clamp(1.4rem, 4vh, 2.2rem);
  max-width: 12ch;
}
.hero-title .accent-serif { font-weight: 600; padding-right: 0.06em; }
.hero-title .uline svg { bottom: -0.08em; height: 0.3em; }

.hero-sub {
  font-size: clamp(1.05rem, 1.5vw, 1.22rem);
  color: var(--dim); max-width: 52ch;
  margin-bottom: clamp(1.9rem, 4.5vh, 3rem);
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }

.anim [data-hero] { opacity: 0; }

.hero-cue {
  position: absolute; left: 50%; bottom: 1.5rem; z-index: 5;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.55rem;
}
.cue-line {
  display: block; width: 1px; height: 36px;
  background-image: repeating-linear-gradient(to bottom, var(--line) 0 4px, transparent 4px 10px);
}
.cue-text { font-family: var(--font-serif); font-style: italic; font-size: 0.85rem; color: var(--dim); }

/* ---------- Truth quote ---------- */
.truth { padding-block: clamp(4.5rem, 10vh, 8rem) var(--sect-pad); }
.truth .star-f { top: 16%; right: 18%; width: 14px; }
.truth .star-k { top: 60%; right: 8%; width: 18px; }

.quote { max-width: none; }
.quote p {
  font-family: var(--font-serif); font-weight: 400;
  font-size: clamp(1.7rem, 3.6vw, 2.9rem);
  line-height: 1.32;
  max-width: 26ch;
}
.quote-by { margin-top: 1.6rem; font-style: italic; color: var(--dim); }

/* ---------- Services — the map ---------- */
.route {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 0;
}
.route path {
  stroke: var(--ink); opacity: 0.3;
  stroke-width: 2.5; stroke-linecap: round;
  stroke-dasharray: 0.1 12;
  vector-effect: non-scaling-stroke;
  transition: stroke 0.9s ease;
}

.traveler {
  position: absolute; top: 0; left: 0; z-index: 1;
  width: 34px; height: 34px; margin: -17px 0 0 -17px;
  pointer-events: none; opacity: 0;
}
.traveler svg { width: 100%; height: 100%; overflow: visible; }

.svc-rows { display: flex; flex-direction: column; gap: clamp(4.5rem, 11vh, 8rem); }

.svc {
  display: flex; align-items: flex-start; gap: clamp(1.4rem, 3.5vw, 2.8rem);
  max-width: 620px;
}
.svc-alt { margin-left: auto; }

.svc-icon { flex: 0 0 auto; width: clamp(56px, 7vw, 76px); height: auto; margin-top: 0.4rem; }
.svc-icon .ink-draw { stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

.svc-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  line-height: 1.08; letter-spacing: -0.02em;
  margin-bottom: 0.7rem;
}
.svc-body p { color: var(--dim); max-width: 46ch; }

/* ---------- Process — flight plan ---------- */
.plan { position: relative; padding-left: 76px; }

.plan-route {
  position: absolute; left: 0; top: 0;
  width: 56px; height: 100%;
  pointer-events: none;
}
.plan-route path {
  stroke: var(--ink); opacity: 0.3;
  stroke-width: 2.5; stroke-linecap: round;
  stroke-dasharray: 0.1 12;
  vector-effect: non-scaling-stroke;
  transition: stroke 0.9s ease;
}

.steps { display: flex; flex-direction: column; gap: clamp(3.6rem, 9vh, 6rem); }

.step { position: relative; max-width: 48ch; }
.step-dot {
  position: absolute; left: -55px; top: 0.5em;
  width: 13px; height: 13px; border-radius: 50%;
  background: var(--gold); border: 2.5px solid var(--ink);
  transition: border-color 0.9s ease;
}
.step-when {
  font-family: var(--font-serif); font-style: italic;
  font-size: 1rem; color: var(--gold); margin-bottom: 0.25rem;
}
.step-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2.1rem); letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
}
.step-body { color: var(--dim); }

/* ---------- Why — plain answers ---------- */
.why .star-g { top: 18%; right: 10%; width: 13px; }
.why .star-h { bottom: 20%; left: 6%; width: 17px; }

.answers { display: flex; flex-direction: column; gap: clamp(1.8rem, 4.5vh, 2.8rem); max-width: none; }
.answers li {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 2.4vw, 1.8rem);
  line-height: 1.45;
  max-width: 32ch;
}

/* ---------- CTA ---------- */
.cta { min-height: 92dvh; display: flex; align-items: center; overflow: hidden; }
.cta::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(120% 95% at 50% 45%, rgba(0, 0, 0, 0) 52%, rgba(5, 13, 27, 0.5) 100%);
}

.cta-flyers-wrap {
  position: absolute; right: clamp(4%, 8vw, 11%); top: 16%;
  z-index: 1; pointer-events: none;
  transform: rotate(-6deg);
}
.cta-flyers {
  width: clamp(120px, 15vw, 210px); height: auto;
  filter: drop-shadow(0 16px 30px rgba(0, 0, 0, 0.4));
}

.cta-title {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(3.2rem, 9.2vw, 7.8rem);
  line-height: 1.02; letter-spacing: -0.025em;
  margin-bottom: 1.1rem;
}
.cta-title .uline svg { bottom: -0.06em; height: 0.28em; }
.cta-sub { font-size: clamp(1.3rem, 2.4vw, 1.9rem); margin-bottom: clamp(2rem, 5vh, 3.2rem); }

.cta-actions { display: flex; flex-direction: column; gap: 1.8rem; align-items: flex-start; }
.cta-links { display: flex; flex-wrap: wrap; gap: 1.8rem; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding-block: clamp(3rem, 7vh, 5rem) 2rem; }

.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1.2fr;
  gap: clamp(2rem, 5vw, 4rem);
  margin-bottom: clamp(2.6rem, 6vh, 4rem);
}
.footer-brand .brand-logo { height: 74px; }
.footer-tag { margin-top: 1.1rem; font-size: 1.15rem; }

.footer-head {
  display: block;
  font-family: var(--font-display); font-weight: 700; font-size: 0.95rem;
  color: var(--tx); margin-bottom: 1rem;
}
.footer-col { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col a, .footer-col span {
  font-family: var(--font-serif); font-size: 1rem; color: var(--dim);
  width: fit-content; padding-block: 0.18em;
  transition: color 0.25s ease;
}
.footer-col a:hover { color: var(--gold); }

.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1rem;
  border-top: 1px solid var(--line); padding-top: 1.6rem;
  font-family: var(--font-serif); font-size: 0.92rem; color: var(--dim);
}
.footer-top { display: inline-flex; align-items: center; gap: 0.55em; }
.footer-plane { width: 20px; height: 20px; flex: 0 0 auto; }

/* ---------- Reveal defaults ---------- */
.anim [data-reveal] { opacity: 0; transform: translateY(30px); }

/* ---------- Responsive ---------- */
@media (max-width: 1023px) {
  .alt-rail { display: none; }
  .progress { display: block; }
}

@media (max-width: 860px) {
  .head-nav, .head-cta { display: none; }
  .menu-btn { display: flex; }
}

@media (max-width: 767px) {
  :root { --nav-h: 68px; --sect-pad: clamp(4.5rem, 11vh, 7rem); }
  .brand-logo { height: 48px; }
  .footer-brand .brand-logo { height: 60px; }
  .route, .traveler, .compass, .contours, .cloud, .mapx,
  .constellation, .cta-flyers-wrap { display: none; }
  .moon { top: 9%; left: auto; right: 44%; width: 52px; }
  .flight path { opacity: 0.6; }
  .hero-flyers-wrap { right: 3%; top: 10%; }
  .hero-flyers { width: clamp(120px, 34vw, 170px); }
  .hero-title { max-width: none; }
  .hero-cue { display: none; }
  .svc { flex-direction: column; gap: 1.1rem; }
  .svc-alt { margin-left: 0; }
  .plan { padding-left: 54px; }
  .plan-route { width: 40px; }
  .step-dot { left: -44px; }
  .footer-grid { grid-template-columns: 1fr; gap: 2.2rem; }
  .btn-big { width: 100%; }
  .cta-links { flex-direction: column; gap: 1rem; }
}

/* ============================================================
   INNER PAGE COMPONENTS
   Shared by service / about / contact / blog / 404 pages.
   Built on the same tokens + ink language as the homepage.
   ============================================================ */

/* Breadcrumbs */
.crumbs {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.5em;
  font-family: var(--font-display); font-size: 0.85rem; color: var(--dim);
  margin-bottom: clamp(1.2rem, 3vh, 2rem);
}
.crumbs a { border-bottom: 1px solid transparent; transition: color 0.25s, border-color 0.25s; }
.crumbs a:hover { color: var(--gold); border-bottom-color: var(--gold-soft); }
.crumbs .sep { opacity: 0.5; }
.crumbs [aria-current="page"] { color: var(--tx); }

/* Inner-page hero — shorter than the homepage takeoff */
.page-hero {
  position: relative; overflow: hidden;
  padding-top: calc(var(--nav-h) + clamp(3rem, 9vh, 6.5rem));
  padding-bottom: clamp(3rem, 8vh, 6rem);
}
.page-hero-inner { position: relative; z-index: 5; max-width: 62rem; }
.page-title {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2.4rem, 6vw, 4.9rem); line-height: 1.05;
  letter-spacing: -0.025em; margin-bottom: clamp(1rem, 2.5vh, 1.6rem);
}
.page-lede {
  font-size: clamp(1.08rem, 1.5vw, 1.3rem); color: var(--dim);
  max-width: 46rem; margin-bottom: clamp(1.6rem, 4vh, 2.6rem);
}

/* Generic prose column */
.prose { max-width: 44rem; }
.prose p { margin-bottom: 1.1em; color: var(--dim); }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--tx); font-weight: 600; }
.prose h3 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.3rem, 2.4vw, 1.8rem); color: var(--tx);
  margin: 2em 0 0.6em;
}

/* Two-column split */
.split {
  display: grid; gap: clamp(2rem, 5vw, 4.5rem);
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 900px) { .split { grid-template-columns: 1.05fr 0.95fr; } }
.split-sticky { position: sticky; top: calc(var(--nav-h) + 2rem); }

/* Pillar / deliverable grid */
.pillars {
  display: grid; gap: clamp(1.4rem, 3vw, 2.4rem);
  grid-template-columns: repeat(auto-fit, minmax(15.5rem, 1fr));
}
.pillar {
  padding: clamp(1.4rem, 2.6vw, 2rem);
  border: 1px solid var(--line); border-radius: 18px;
  background: color-mix(in srgb, var(--tx) 3%, transparent);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.4s ease, background 0.4s ease;
}
.pillar:hover {
  transform: translateY(-5px);
  border-color: var(--gold-soft);
  background: color-mix(in srgb, var(--gold) 6%, transparent);
}
.pillar-num {
  font-family: var(--font-serif); font-style: italic;
  color: var(--gold); font-size: 1.05rem; margin-bottom: 0.6rem; display: block;
}
.pillar h3 {
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.22rem; margin-bottom: 0.5rem;
}
.pillar p { color: var(--dim); font-size: 0.99rem; }

/* Checklist with drawn ticks */
.checklist { display: flex; flex-direction: column; gap: 0.9rem; }
.checklist li { display: flex; gap: 0.85rem; align-items: flex-start; color: var(--dim); }
.checklist svg { width: 20px; height: 20px; flex: none; margin-top: 0.28em; }
.checklist svg path { stroke: var(--gold); stroke-width: 2.2; fill: none; stroke-linecap: round; stroke-linejoin: round; }

/* FAQ — native <details>, keyboard accessible for free */
.faq { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: clamp(1.1rem, 2.4vh, 1.6rem) 0; cursor: pointer; list-style: none;
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.03rem, 1.8vw, 1.22rem);
  transition: color 0.25s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--gold); }
.faq-sign { position: relative; width: 16px; height: 16px; flex: none; }
.faq-sign::before, .faq-sign::after {
  content: ""; position: absolute; background: var(--gold); border-radius: 2px;
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}
.faq-sign::before { inset: 7px 0; height: 2px; }
.faq-sign::after { inset: 0 7px; width: 2px; }
.faq-item[open] .faq-sign::after { transform: scaleY(0); }
.faq-answer { overflow: hidden; }
.faq-answer p { padding-bottom: clamp(1.1rem, 2.4vh, 1.6rem); color: var(--dim); max-width: 44rem; }

/* Closing CTA band */
.cta-band {
  position: relative; overflow: hidden;
  padding-block: clamp(4rem, 10vh, 7.5rem);
  border-top: 1px solid var(--line);
}
.cta-band-inner { position: relative; z-index: 2; max-width: 44rem; }
.cta-band h2 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2rem, 4.6vw, 3.4rem); line-height: 1.08;
  margin-bottom: 1rem; letter-spacing: -0.02em;
}
.cta-band p { color: var(--dim); margin-bottom: clamp(1.5rem, 3.5vh, 2.2rem); }

/* Article/blog cards */
.card-grid {
  display: grid; gap: clamp(1.5rem, 3vw, 2.4rem);
  grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
}
.card {
  display: flex; flex-direction: column; gap: 0.7rem;
  padding: clamp(1.3rem, 2.4vw, 1.9rem);
  border: 1px solid var(--line); border-radius: 18px;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.4s ease;
}
.card:hover { transform: translateY(-6px); border-color: var(--gold-soft); }
.card-meta { font-family: var(--font-display); font-size: 0.82rem; color: var(--gold); }
.card h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; line-height: 1.3; }
.card p { color: var(--dim); font-size: 0.98rem; }

/* Contact form */
.form-grid { display: grid; gap: 1.2rem; max-width: 34rem; }
.field { display: flex; flex-direction: column; gap: 0.45rem; }
.field label { font-family: var(--font-display); font-weight: 600; font-size: 0.9rem; }
.field input, .field textarea, .field select {
  width: 100%; padding: 0.85em 1em;
  background: color-mix(in srgb, var(--tx) 4%, transparent);
  border: 1px solid var(--line); border-radius: 12px;
  color: var(--tx); font: inherit; font-size: 1rem;
  transition: border-color 0.28s ease, background 0.28s ease;
}
.field textarea { min-height: 8.5rem; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--gold);
  background: color-mix(in srgb, var(--gold) 7%, transparent);
}
.field-note { font-size: 0.86rem; color: var(--dim); }

/* 404 */
.lost { text-align: center; padding-block: clamp(5rem, 16vh, 11rem); }
.lost .page-hero-inner { margin-inline: auto; }
.lost-code {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(4.5rem, 17vw, 11rem); line-height: 0.9;
  color: var(--gold); letter-spacing: -0.04em;
}

@media (max-width: 767px) {
  .split-sticky { position: static; }
}

/* ============================================================
   PHASE 3 — motion + effects layer
   Vanilla reimplementations of the react-bits / magicui refs.
   Night = navy + galaxy + meteors. Day = cream, decor hidden.
   ============================================================ */

/* ---------- Global particle canvas (Particles ref) ---------- */
.galaxy {
  position: fixed; inset: 0; z-index: 0;
  width: 100%; height: 100%;
  pointer-events: none; display: block;
}
/* Night-sky-specific decor stays night-only; the particle canvas now runs in
   BOTH themes (recoloured in JS) so Day isn't visually sparse. */
body.light .sky,
body.light .shoot,
body.light .meteor-layer { display: none !important; }
/* content must sit above the canvas */
.site-head, main, .footer, .alt-rail, .progress { position: relative; z-index: 1; }
.site-head { z-index: 1000; }

/* ---------- Meteors (magicui/meteors ref) ---------- */
.meteor-layer {
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none; overflow: hidden;
}
.meteor {
  position: absolute; top: -6%;
  width: 2px; height: 2px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 1px rgba(201,149,42,0.25);
}
.meteor::before {
  content: ""; position: absolute; top: 50%; right: 0;
  width: 120px; height: 1px; transform: translateY(-50%);
  background: linear-gradient(90deg, rgba(201,149,42,0.7), transparent);
}
@keyframes meteor-fall {
  0%   { opacity: 0; transform: translate3d(0,0,0) rotate(38deg); }
  8%   { opacity: 1; }
  100% { opacity: 0; transform: translate3d(-52vw, 118vh, 0) rotate(38deg); }
}

/* ---------- Theme toggle (magicui/animated-theme-toggler ref) ---------- */
.theme-toggle {
  width: 42px; height: 42px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); color: var(--tx);
  transition: border-color 0.25s ease, color 0.25s ease, transform 0.4s cubic-bezier(0.22,1,0.36,1);
  flex: none;
}
.theme-toggle:hover { border-color: var(--gold); color: var(--gold); transform: rotate(-18deg); }
.theme-toggle svg { width: 20px; height: 20px; overflow: visible; }
.tt-sun, .tt-rays { transition: opacity 0.3s ease, transform 0.45s cubic-bezier(0.22,1,0.36,1); transform-origin: center; }
.tt-moon { transition: opacity 0.3s ease, transform 0.45s cubic-bezier(0.22,1,0.36,1); transform-origin: center; }
/* default (night): show moon, hide sun */
.theme-toggle .tt-sun  { opacity: 0; transform: scale(0.3); }
.theme-toggle .tt-rays { opacity: 0; transform: scale(0.3); }
.theme-toggle .tt-moon { opacity: 1; transform: scale(1); }
body.light .theme-toggle .tt-sun  { opacity: 1; transform: scale(1); }
body.light .theme-toggle .tt-rays { opacity: 1; transform: scale(1); }
body.light .theme-toggle .tt-moon { opacity: 0; transform: scale(0.3) rotate(60deg); }

/* Theme circle-wipe (View Transitions). Only fires while html.theme-vt is set,
   so it never collides with the page-navigation transition. */
html.theme-vt::view-transition-old(root) { animation: none; z-index: 1; }
html.theme-vt::view-transition-new(root) {
  animation: theme-wipe 0.55s cubic-bezier(0.4, 0, 0.2, 1) both; z-index: 2;
}
@keyframes theme-wipe {
  from { clip-path: circle(0% at var(--wipe-x, 50%) var(--wipe-y, 0%)); }
  to   { clip-path: circle(150% at var(--wipe-x, 50%) var(--wipe-y, 0%)); }
}

/* ---------- Glare sheen (react-bits/GlareHover ref) ---------- */
.btn, .card-grid .card, .pillars .pillar {
  position: relative; overflow: hidden; isolation: isolate;
}
.btn::after, .card-grid .card::after, .pillars .pillar::after {
  content: ""; position: absolute; inset: -1px; z-index: 1;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 32%, rgba(255,255,255,0.16) 48%, rgba(255,255,255,0.16) 52%, transparent 68%);
  transform: translateX(-130%); transition: transform 0.7s cubic-bezier(0.22,1,0.36,1);
}
.btn:hover::after, .btn:focus-visible::after,
.card-grid .card:hover::after,
.pillars .pillar:hover::after, .pillars .pillar:focus-within::after { transform: translateX(130%); }

/* ---------- Interactive gold button (magicui/interactive-hover-button ref) ---------- */
.btn-gold {
  position: relative; overflow: hidden; isolation: isolate;
  background: linear-gradient(120deg, var(--gold) 0 50%, #e6b449 50% 100%);
  background-size: 220% 100%; background-position: 0% 0;
  transition: transform 0.25s cubic-bezier(0.33,1,0.68,1), box-shadow 0.25s ease, background-position 0.55s cubic-bezier(0.22,1,0.36,1);
}
.btn-gold:hover { background-position: 100% 0; }
.btn-gold .btn-label { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 0.5em; transition: transform 0.4s cubic-bezier(0.22,1,0.36,1); }
.btn-gold .btn-arrow { width: 0; opacity: 0; overflow: hidden; transition: width 0.4s cubic-bezier(0.22,1,0.36,1), opacity 0.3s ease; }
.btn-gold:hover .btn-arrow { width: 1em; opacity: 1; }

/* ---------- Expanding panels (image ref — replaces the "AI-looking" pillars) ----------
   Desktop: horizontal flex, hovered/focused panel grows, siblings collapse.
   Mobile: scroll-snap carousel. No markup change — restyles .pillars/.pillar. */
@media (min-width: 860px) {
  .pillars {
    display: flex; gap: 1rem; grid-template-columns: none;
    height: clamp(24rem, 42vh, 30rem);
  }
  .pillar {
    flex: 1 1 0; min-width: 0; position: relative; overflow: hidden;
    display: flex; flex-direction: column; justify-content: flex-end;
    cursor: default;
    transition: flex-grow 0.55s cubic-bezier(0.22,1,0.36,1),
                border-color 0.4s ease, background 0.4s ease;
  }
  .pillars:hover .pillar { flex-grow: 0.6; }
  .pillar:hover, .pillar:focus-within, .pillar.is-open { flex-grow: 2.4; }
  .pillar .pillar-num { transition: color 0.4s ease; }
  .pillar h3 { font-size: clamp(1.15rem, 1.5vw, 1.45rem); transition: transform 0.5s cubic-bezier(0.22,1,0.36,1); }
  .pillar p {
    opacity: 0; max-height: 0; transform: translateY(12px);
    transition: opacity 0.45s ease, max-height 0.55s ease, transform 0.5s cubic-bezier(0.22,1,0.36,1);
    margin-top: 0.8rem;
  }
  .pillar:hover p, .pillar:focus-within p, .pillar.is-open p {
    opacity: 1; max-height: 12rem; transform: translateY(0);
  }
}
@media (max-width: 859px) {
  .pillars {
    display: flex; grid-template-columns: none;
    gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory;
    scroll-padding: 0 1.2rem; margin-inline: calc(-1 * var(--gutter, 1.2rem));
    padding-inline: var(--gutter, 1.2rem); padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
  }
  .pillars::-webkit-scrollbar { display: none; }
  .pillar {
    flex: 0 0 82%; scroll-snap-align: center; min-height: 17rem;
  }
}

/* ---------- Tilted cards (react-bits/TiltedCard ref) — blog grid ---------- */
.card-grid { perspective: 1000px; }
.card {
  transform-style: preserve-3d; will-change: transform;
  transition: transform 0.35s cubic-bezier(0.22,1,0.36,1), border-color 0.4s ease, box-shadow 0.4s ease;
}
.card:hover { box-shadow: 0 26px 50px -24px rgba(0,0,0,0.6); }
.card > * { transform: translateZ(28px); }

/* ---------- Morphing text (magicui/morphing-text ref) ---------- */
.morph {
  position: relative; display: inline-block; vertical-align: bottom;
  min-height: 1.2em; color: var(--gold);
  font-family: var(--font-serif); font-style: italic;
}
.morph-track { position: relative; display: inline-grid; }
.morph-word {
  grid-area: 1 / 1; white-space: nowrap;
  opacity: 0; filter: blur(9px); transform: translateY(4px);
  transition: opacity 0.5s ease, filter 0.5s ease, transform 0.5s ease;
}
.morph-word.is-on { opacity: 1; filter: blur(0); transform: translateY(0); }
.sect-morph { font-size: clamp(1.05rem, 1.6vw, 1.35rem); color: var(--dim); margin-top: 0.7rem; }
.sect-morph .morph { font-weight: 600; }

/* ---------- Footer legal links ---------- */
.footer-legal { display: inline-flex; flex-wrap: wrap; gap: 0.4rem 1rem; }
.footer-legal a { color: var(--dim); font-size: 0.85rem; transition: color 0.25s ease; }
.footer-legal a:hover { color: var(--gold); }
.footer-legal [aria-current="page"] { color: var(--tx); }

/* ---------- Cookie consent banner ---------- */
.cookie-bar {
  position: fixed; z-index: 2500; left: 50%; bottom: clamp(1rem, 3vh, 2rem);
  transform: translate(-50%, 140%);
  width: min(38rem, calc(100vw - 2rem));
  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.4rem;
  padding: clamp(1rem, 2.2vw, 1.4rem) clamp(1.2rem, 2.5vw, 1.8rem);
  background: var(--navy-deep); color: var(--cream);
  border: 1px solid rgba(240,238,230,0.16); border-radius: 16px;
  box-shadow: 0 24px 60px -20px rgba(0,0,0,0.6);
  transition: transform 0.6s cubic-bezier(0.22,1,0.36,1); opacity: 0.98;
}
body.light .cookie-bar { background: var(--navy); color: var(--cream); }
.cookie-bar.is-in { transform: translate(-50%, 0); }
.cookie-bar p { font-size: 0.92rem; line-height: 1.5; flex: 1 1 16rem; margin: 0; color: rgba(240,238,230,0.82); }
.cookie-bar p a { color: var(--gold); border-bottom: 1px solid var(--gold-soft); }
.cookie-bar-actions { display: flex; gap: 0.6rem; flex: none; }
.cookie-bar .btn { min-height: 42px; padding: 0.5em 1.2em; font-size: 0.9rem; }
.cookie-btn-decline {
  background: transparent; border: 1px solid rgba(240,238,230,0.28); color: var(--cream); border-radius: 999px;
}
.cookie-btn-decline:hover { border-color: var(--gold); color: var(--gold); }
@media (max-width: 560px) { .cookie-bar-actions { width: 100%; } .cookie-bar-actions .btn { flex: 1; } }

/* ---------- Cross-document page transitions ----------
   Native View Transitions: no router, no library, no SPA. Browsers without
   support (Firefox today) just navigate normally — nothing breaks. */
@view-transition { navigation: auto; }

/* Chrome that should persist across navigation rather than cross-fade */
.site-head { view-transition-name: site-head; }
.alt-rail  { view-transition-name: alt-rail; }
.footer    { view-transition-name: site-footer; }

::view-transition-group(site-head),
::view-transition-group(alt-rail),
::view-transition-group(site-footer) { animation-duration: 0.01ms; }

::view-transition-old(root) {
  animation: vt-out 0.34s cubic-bezier(0.4, 0, 1, 1) both;
}
::view-transition-new(root) {
  animation: vt-in 0.46s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes vt-out { to { opacity: 0; transform: translateY(-14px); } }
@keyframes vt-in  { from { opacity: 0; transform: translateY(20px); } }

@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .anim [data-hero], .anim [data-reveal] { opacity: 1; transform: none; }
  .hero-plane, .traveler, .shoot { opacity: 0 !important; animation: none !important; }
  /* Phase 3: kill the new motion, keep static state legible */
  .galaxy, .meteor-layer { display: none !important; }
  .glare-host::after { display: none !important; }
  .card > * { transform: none !important; }
  .card { transform: none !important; }
  .pillar p { opacity: 1 !important; max-height: none !important; transform: none !important; }
  .morph-word { opacity: 0; }
  .morph-word.is-on { opacity: 1; filter: none; transform: none; }
}

/* ---------- Print / save-as-PDF ----------
   Scroll reveals leave everything below the fold at opacity 0, so without this
   a printed page is mostly blank. Force the revealed state and drop the moving
   parts, which only print as smudges. */
@media print {
  html, body { background: var(--navy); }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }

  /* reveal everything the scroll triggers would have shown */
  .anim [data-hero], .anim [data-reveal],
  [data-hero], [data-reveal] { opacity: 1 !important; transform: none !important; }
  .uline svg path, .circled svg path, .ink-draw, .gold-fill,
  .route path, .path-draw {
    stroke-dashoffset: 0 !important; opacity: 1 !important;
  }

  /* floating chrome and moving parts */
  .site-head, .alt-rail, .progress, .mobile-menu, .skip-link,
  .shoot, .hero-plane, .traveler, .scroll-cue { display: none !important; }
  .sky, .moon, .constellation, .contours, .cloud, .mapx, .compass, .flight {
    display: none !important;
  }

  /* hero: viewport height means nothing on paper, and the absolute flyers
     collide with the copy once the column narrows */
  .hero { min-height: 0 !important; padding: 2.5cm 0 2cm !important; }
  .hero-flyers-wrap, .cta-flyers-wrap { position: static !important; display: none !important; }
  .hero-title, .defn, .hero-sub { max-width: none !important; }

  .section { padding-block: 1.6cm !important; }
  section { break-inside: avoid-page; page-break-inside: avoid; }
  h1, h2, h3 { break-after: avoid-page; page-break-after: avoid; }
}
