/* =================================================================
   VALOR INDEPENDENT LIVING
   Concept: the site is one day in the Mojave. Scroll = time of day.
   Sky colors, sun, moon, and starfield are driven by main.js.
   Trauma-informed by design: no flashing, no red alerts, no
   targeting imagery, and a Calm mode that stills every animation.
   ================================================================= */

:root {
  /* Sky (overwritten live by JS) */
  --sky-a: #04070f;
  --sky-b: #0a1226;
  --sky-c: #1c1a38;
  --sun-x: 50vw;
  --sun-y: 120vh;
  --sun-o: 0;
  --sun-c: 255, 190, 120;
  --night: 1;

  --gold: #d6ad55;
  --gold-light: #f0d18b;
  --gold-dark: #a8812f;
  --ember: #e0784a;
  --sage: #8fd4b0;
  --ink: #05080f;
  --text: #eef1f7;
  --muted: rgba(232, 236, 245, .74);
  --faint: rgba(232, 236, 245, .5);
  --glass: rgba(8, 13, 26, .38);
  --glass-strong: rgba(8, 13, 26, .64);
  --glass-line: rgba(255, 255, 255, .11);

  --f-display: "Fraunces", Georgia, "Times New Roman", serif;
  --f-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --f-stencil: "Big Shoulders Stencil", "Impact", "Arial Narrow", sans-serif;

  --radius: 20px;
  --radius-lg: 30px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --header-h: 76px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: calc(var(--header-h) + 12px); }
html.smooth:not(.calm) { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg, iframe, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--gold); color: var(--ink); }

h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -.02em;
  margin: 0 0 .5em;
  font-variation-settings: "opsz" 144;
}
h2 { font-size: clamp(2.3rem, 1.4rem + 3.6vw, 4.6rem); }
h2 em, h1 em, h3 em, .manifesto-text em, .big-quote em {
  font-style: italic; font-weight: 300;
  background: linear-gradient(100deg, var(--gold-light), #ffd9a8 45%, var(--ember));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-right: .06em;
}
h3 { font-size: 1.3rem; font-weight: 600; letter-spacing: -.01em; }
p { margin: 0 0 1.1em; }

.container { width: min(1240px, 100% - 3rem); margin-inline: auto; }
.narrow { width: min(860px, 100% - 3rem); }
.center { text-align: center; justify-content: center; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 1000; background: var(--gold); color: var(--ink); padding: .6rem 1rem; border-radius: 8px; font-weight: 700; }
.skip-link:focus { top: 1rem; }
:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 4px; border-radius: 6px; }

/* ---------------- Ambient layers ---------------- */
.sky {
  position: fixed; inset: 0; z-index: -3; overflow: hidden;
  background: linear-gradient(180deg, var(--sky-a) 0%, var(--sky-b) 52%, var(--sky-c) 100%);
}
.sky::after { /* horizon haze */
  content: ""; position: absolute; inset: auto 0 0 0; height: 45vh;
  background: radial-gradient(120% 100% at var(--sun-x) 100%, rgba(var(--sun-c), calc(var(--sun-o) * .28)), transparent 70%);
}
.sky-sun {
  position: absolute; left: var(--sun-x); top: var(--sun-y);
  width: 46vmin; height: 46vmin; margin: -23vmin 0 0 -23vmin; border-radius: 50%;
  opacity: var(--sun-o);
  background: radial-gradient(circle, rgba(255, 246, 225, .55) 0 7%, rgba(var(--sun-c), .32) 15%, rgba(var(--sun-c), .1) 38%, transparent 66%);
  filter: blur(6px);
}
.sky-moon {
  position: absolute; right: max(5vw, 1.5rem); top: calc(16vh + 20px);
  width: clamp(44px, 6vmin, 84px); height: auto;
  opacity: calc(var(--night) * .95);
  filter: drop-shadow(0 0 18px rgba(240, 235, 220, .35));
}
.moon-dark { fill: rgba(190, 200, 230, .07); }
.moon-fill { fill: url(#moonGrad); }
.moon-maria circle { fill: rgba(110, 105, 92, .16); }
#starfield { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -2; pointer-events: none; }
.grain {
  position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------------- Preloader ---------------- */
.preloader { display: none; }
.js .preloader {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; align-content: center; gap: 1.4rem;
  background: #04070f; transition: opacity .9s var(--ease), visibility .9s;
}
.js.loaded .preloader, .js.calm .preloader { opacity: 0; visibility: hidden; }
.pre-mark { width: 74px; height: 74px; }
.pre-mark path { fill: none; stroke: var(--gold-light); stroke-width: 1; stroke-dasharray: 160; stroke-dashoffset: 160; animation: draw 1.4s var(--ease) forwards; }
.pre-mark path + path { animation-delay: .35s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.pre-text { font-family: var(--f-mono); font-size: .78rem; letter-spacing: .3em; color: var(--faint); margin: 0; }
.pre-text span:first-child { color: var(--gold-light); }

/* ---------------- Buttons ---------------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  font-family: var(--f-body); font-weight: 700; font-size: 1rem; letter-spacing: .01em;
  padding: 1rem 1.7rem; border-radius: 999px; border: 1px solid transparent; cursor: pointer;
  transition: transform .5s var(--ease), box-shadow .4s var(--ease), background .3s, color .3s, border-color .3s;
  white-space: nowrap; will-change: transform;
}
.btn svg { width: 18px; height: 18px; transition: transform .4s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn-gold {
  color: var(--ink);
  background: linear-gradient(135deg, #f7e2ad, var(--gold) 50%, var(--gold-dark));
  box-shadow: 0 0 0 1px rgba(255, 230, 170, .35) inset, 0 14px 40px -12px rgba(214, 173, 85, .75);
}
.btn-gold::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.55) 50%, transparent 70%);
  background-size: 250% 100%; background-position: 120% 0; transition: background-position .9s var(--ease);
}
.btn-gold:hover::after { background-position: -20% 0; }
.btn-gold:hover { box-shadow: 0 0 0 1px rgba(255, 230, 170, .5) inset, 0 20px 50px -12px rgba(214, 173, 85, .95); }
.btn-ghost { color: var(--text); border-color: rgba(255,255,255,.25); background: rgba(255,255,255,.04); backdrop-filter: blur(8px); }
.btn-ghost:hover { border-color: var(--gold-light); color: var(--gold-light); }
.btn-sm { padding: .62rem 1.2rem; font-size: .9rem; }
.btn-block { width: 100%; }

/* ---------------- Crisis bar / header ---------------- */
.crisis-bar {
  position: relative; z-index: 101;
  background: rgba(3, 5, 10, .85); color: var(--faint);
  font-size: .8rem; text-align: center; padding: .45rem 1rem; letter-spacing: .02em;
}
.crisis-bar a { color: var(--gold-light); }
.crisis-bar a:hover { text-decoration: underline; }

.site-header { position: sticky; top: 0; z-index: 100; transition: background .5s, backdrop-filter .5s, border-color .5s; border-bottom: 1px solid transparent; }
.site-header.scrolled {
  background: rgba(5, 8, 15, .55);
  backdrop-filter: saturate(150%) blur(18px); -webkit-backdrop-filter: saturate(150%) blur(18px);
  border-bottom-color: var(--glass-line);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.nav-right { display: flex; align-items: center; gap: 1.8rem; }
.brand { display: inline-flex; align-items: center; gap: .75rem; color: var(--gold); }
.brand-mark { width: 38px; height: 38px; filter: drop-shadow(0 0 14px rgba(214, 173, 85, .45)); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--f-display); font-weight: 600; font-size: 1.5rem; color: #fff; letter-spacing: .01em; }
.brand-sub { font-family: var(--f-mono); font-size: .6rem; letter-spacing: .28em; text-transform: uppercase; color: var(--gold-light); margin-top: .35rem; }

.nav-menu { display: flex; align-items: center; gap: 2rem; list-style: none; margin: 0; padding: 0; }
.nav-menu a:not(.btn) { position: relative; display: flex; flex-direction: column; font-weight: 600; font-size: .92rem; color: var(--muted); transition: color .3s; line-height: 1.2; }
.nav-t { font-family: var(--f-mono); font-size: .62rem; letter-spacing: .14em; color: var(--gold); opacity: .7; }
.nav-menu a:not(.btn):hover, .nav-menu a.active { color: #fff; }
.nav-menu a.active .nav-t { opacity: 1; }
.nav-toggle { display: none; background: none; border: 0; padding: .5rem; cursor: pointer; }
.nav-toggle .bar { display: block; width: 26px; height: 2px; background: #fff; margin: 6px 0; border-radius: 2px; transition: transform .4s var(--ease), opacity .3s; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(2) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar:nth-child(3) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(4) { transform: translateY(-8px) rotate(-45deg); }

/* Calm mode switch */
.calm-toggle { display: none; align-items: center; gap: .6rem; background: none; border: 0; padding: .35rem; color: var(--muted); font: 600 .82rem var(--f-body); cursor: pointer; border-radius: 999px; }
.js .calm-toggle { display: inline-flex; }
.calm-toggle:hover { color: #fff; }
.ct-track { position: relative; width: 36px; height: 21px; border-radius: 999px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18); transition: background .3s, border-color .3s; }
.ct-thumb { position: absolute; top: 2px; left: 2px; width: 15px; height: 15px; border-radius: 50%; background: #fff; transition: transform .35s var(--ease), background .3s; }
.calm-toggle[aria-pressed="true"] { color: var(--gold-light); }
.calm-toggle[aria-pressed="true"] .ct-track { background: var(--gold); border-color: var(--gold); }
.calm-toggle[aria-pressed="true"] .ct-thumb { transform: translateX(15px); background: var(--ink); }

/* ---------------- HUD ---------------- */
.hud {
  position: fixed; left: 1.5rem; bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px)); z-index: 80;
  display: flex; align-items: center; gap: .6rem;
  font-family: var(--f-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
  padding: .55rem .95rem; border-radius: 999px;
  background: rgba(5, 8, 15, .45); border: 1px solid var(--glass-line); backdrop-filter: blur(12px);
  opacity: 0; transform: translateY(10px); transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.loaded .hud { opacity: 1; transform: none; }
.hud-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold-light); box-shadow: 0 0 10px rgba(240, 209, 139, .8); animation: glow 6s ease-in-out infinite; }
@keyframes glow { 50% { opacity: .5; transform: scale(.8); } }
.hud-time { color: #fff; font-weight: 600; font-size: .85rem; font-variant-numeric: tabular-nums; }
.hud-hrs { margin-left: -.3rem; }
.hud-sep { width: 1px; height: 12px; background: var(--glass-line); }
.hud-label { color: var(--gold-light); }
.hud-coord { color: var(--faint); padding-left: .6rem; border-left: 1px solid var(--glass-line); }

/* ---------------- Take a breath button ---------------- */
.breathe-btn {
  position: fixed; right: 1.5rem; bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px)); z-index: 85;
  display: none; align-items: center; gap: .65rem;
  padding: .5rem 1.05rem .5rem .55rem; border-radius: 999px;
  border: 1px solid var(--glass-line); background: rgba(5, 8, 15, .5); backdrop-filter: blur(12px);
  color: var(--text); font: 600 .84rem var(--f-body); cursor: pointer;
  opacity: 0; transform: translateY(10px); transition: opacity .8s var(--ease), transform .8s var(--ease), border-color .3s;
}
.js .breathe-btn { display: inline-flex; }
.loaded .breathe-btn { opacity: 1; transform: none; }
.breathe-btn:hover { border-color: rgba(240, 209, 139, .55); }
.bb-orb { width: 24px; height: 24px; border-radius: 50%; background: radial-gradient(circle, var(--gold-light) 0 28%, rgba(240, 209, 139, .28) 55%, transparent 70%); animation: orb 16s ease-in-out infinite; }
@keyframes orb { 0%, 100% { transform: scale(.65); } 25%, 50% { transform: scale(1.1); } 75% { transform: scale(.65); } }

/* ---------------- Shared atoms ---------------- */
.stamp {
  display: inline-flex; align-items: center; gap: .8rem;
  font-family: var(--f-mono); font-size: .76rem; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: var(--gold-light);
  margin-bottom: 1.4rem;
}
.stamp span { padding: .3rem .6rem; border: 1px solid rgba(240, 209, 139, .4); border-radius: 6px; color: #fff; letter-spacing: .14em; }
.stamp.center { display: flex; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .7rem;
  font-family: var(--f-mono); font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-light);
  margin-bottom: 1.6rem;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 12px rgba(214, 173, 85, .7); animation: glow 6s ease-in-out infinite; }

.ghost-time {
  position: absolute; top: 2rem; right: -1vw; z-index: -1; pointer-events: none; user-select: none;
  font-family: var(--f-stencil); font-weight: 800; font-size: clamp(9rem, 26vw, 26rem); line-height: .8; letter-spacing: -.02em;
  color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .09);
  transform: translateY(var(--gy, 0));
}

.ticks { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: .85rem; }
.ticks li { display: flex; gap: .9rem; align-items: baseline; font-weight: 600; }
.ticks li::before { content: ""; flex: 0 0 18px; height: 2px; background: var(--gold); transform: translateY(-5px); }

.spot { position: relative; }
.spot::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(240, 209, 139, .14), transparent 45%);
}
.spot:hover::before { opacity: 1; }

/* ---------------- Sections ---------------- */
.chapter { position: relative; padding: clamp(6rem, 5rem + 6vw, 11rem) 0; overflow-x: clip; isolation: isolate; }
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(3rem, 2rem + 5vw, 7rem); align-items: center; }
.split-copy > p { color: var(--muted); font-size: 1.08rem; }

/* ---------------- HERO ---------------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  margin-top: calc(var(--header-h) * -1); padding: calc(var(--header-h) + 3rem) 0 8rem;
  display: flex; align-items: center; overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 2rem; position: relative; z-index: 2; }
.hero-title { font-size: clamp(3.2rem, 1.6rem + 6.6vw, 7.6rem); font-weight: 400; line-height: .96; letter-spacing: -.035em; margin-bottom: 2rem; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.hero-title .line > span { display: inline-block; }
.hero-title em { font-weight: 300; }
.js .hero-title .line > span { transform: translateY(115%) rotate(4deg); transform-origin: left bottom; transition: transform 1.4s var(--ease); }
.js.loaded .hero-title .line > span { transform: none; }
.js.loaded .hero-title .line:nth-child(2) > span { transition-delay: .12s; }
.js.loaded .hero-title .line:nth-child(3) > span { transition-delay: .24s; }
.js .hero-fade, .js .eyebrow { opacity: 0; transform: translateY(20px); transition: opacity 1.2s var(--ease) .5s, transform 1.2s var(--ease) .5s; }
.js.loaded .hero-fade, .js.loaded .eyebrow { opacity: 1; transform: none; }
.js.loaded .eyebrow { transition-delay: .1s; }
.lead { font-size: clamp(1.08rem, 1rem + .4vw, 1.3rem); color: var(--muted); max-width: 50ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.2rem; }

.live {
  display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .7rem; margin: 2.2rem 0 0;
  font-family: var(--f-mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--faint);
}
.live-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--sage); box-shadow: 0 0 8px var(--sage); }
.live-k { color: var(--muted); }
.live-v { color: #fff; }
.live-v::before { content: "\00B7"; margin-right: .7rem; color: var(--faint); }
.live-v:empty { display: none; }

.emblem-slot { position: relative; aspect-ratio: 1; width: min(100%, 520px); justify-self: center; }
.emblem-fallback { position: absolute; inset: 8%; width: 84%; height: 84%; opacity: 0; filter: drop-shadow(0 0 30px rgba(214, 173, 85, .5)); }
.no-webgl .emblem-fallback { opacity: 1; }

.hero-ridges { position: absolute; left: 0; bottom: 0; width: 100%; height: 34vh; z-index: 1; pointer-events: none; }
.rg { will-change: transform; }
.rg1 { fill: rgba(20, 16, 36, .65); }
.rg2 { fill: rgba(10, 10, 24, .85); }
.rg3 { fill: #05070e; }

.scroll-cue { position: absolute; left: 0; right: 0; margin-inline: auto; width: max-content; bottom: 2.2rem; z-index: 3; display: flex; flex-direction: column; align-items: center; gap: .8rem; }
.cue-line { width: 1px; height: 54px; background: linear-gradient(var(--gold-light), transparent); position: relative; overflow: hidden; }
.cue-line::after { content: ""; position: absolute; left: 0; top: -50%; width: 1px; height: 50%; background: #fff; animation: cue 2.6s var(--ease) infinite; }
@keyframes cue { to { top: 120%; } }
.cue-text { font-family: var(--f-mono); font-size: .66rem; letter-spacing: .3em; text-transform: uppercase; color: var(--faint); }

/* ---------------- MANIFESTO ---------------- */
.manifesto { position: relative; height: 280vh; }
.manifesto-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: center; }
.manifesto-text {
  font-family: var(--f-display); font-weight: 350; font-size: clamp(1.9rem, 1rem + 3.6vw, 4.4rem);
  line-height: 1.12; letter-spacing: -.025em; max-width: 22ch; margin: 0;
}
.manifesto-text .w { opacity: var(--o, .14); transition: opacity .25s linear; }
.manifesto-text em { font-weight: 400; }

/* ---------------- REVEILLE / DOG TAGS ---------------- */
.tag-stage { position: relative; height: 520px; perspective: 1200px; display: grid; place-items: center; }
.tag-chain { position: absolute; top: -10px; left: 50%; width: 320px; height: 280px; transform: translateX(-50%); overflow: visible; }
.tag-chain path { fill: none; stroke: #b9c0c8; stroke-width: 5; stroke-linecap: round; stroke-dasharray: 0 9; opacity: .8; }
.dogtag {
  --rx: 0deg; --ry: 0deg; --sx: 50%; --sy: 50%;
  position: absolute; width: 340px; height: 196px; border-radius: 46px / 52px;
  display: flex; align-items: center; padding: 0 2rem 0 4.6rem;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.06) 0 1px, transparent 1px 3px),
    linear-gradient(135deg, #e7ebef 0%, #9aa3ad 22%, #f4f6f8 45%, #8c949e 70%, #d3d8dd 100%);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.55), inset 0 0 0 5px rgba(120,128,138,.6), inset 0 0 0 7px rgba(255,255,255,.35),
              0 40px 60px -20px rgba(0,0,0,.7), 0 0 80px -10px rgba(240,209,139,.25);
  transform-style: preserve-3d;
}
.tag-front { top: 240px; transform: rotateX(var(--rx)) rotateY(var(--ry)) rotateZ(-6deg); transition: transform .6s var(--ease); z-index: 2; }
.tag-back { top: 196px; transform: rotateZ(14deg) translateX(38px) translateZ(-40px); filter: brightness(.62) saturate(.8); }
.tag-hole { position: absolute; left: 1.4rem; top: 50%; width: 24px; height: 24px; margin-top: -12px; border-radius: 50%; background: radial-gradient(circle, #05080f 55%, #6b737c 62%, #e5e9ec 75%); }
.tag-lines { display: flex; flex-direction: column; gap: .1rem; font-family: var(--f-mono); font-weight: 600; font-size: .86rem; letter-spacing: .08em; color: #59616b; text-shadow: 1px 1px 0 rgba(255,255,255,.75), -1px -1px 0 rgba(0,0,0,.25); }
.tl-big { font-size: 1.35rem; letter-spacing: .2em; color: #474e57; }
.tag-sheen {
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none; mix-blend-mode: overlay;
  background: radial-gradient(260px circle at var(--sx) var(--sy), rgba(255,255,255,.9), transparent 55%),
              linear-gradient(115deg, transparent 30%, rgba(255, 220, 160, .35) 48%, rgba(160, 200, 255, .3) 56%, transparent 70%);
}
.js .tag-front { animation: sway 7s ease-in-out infinite; }
.tag-stage:hover .tag-front { animation-play-state: paused; }
@keyframes sway { 50% { translate: 0 -10px; } }

/* ---------------- STANDARD ISSUE (horizontal) ---------------- */
.issue { position: relative; }
.issue-sticky { padding: clamp(5rem, 4rem + 4vw, 8rem) 0; }
.issue-track { display: flex; gap: 1.4rem; padding-inline: max(1.5rem, calc((100vw - 1240px) / 2)); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.issue-track::-webkit-scrollbar { display: none; }
.issue-intro { flex: 0 0 min(520px, 82vw); padding-right: 2rem; align-self: center; scroll-snap-align: start; }
.issue-intro > p:not(.stamp) { color: var(--muted); font-size: 1.08rem; }
.issue-hint { display: flex; align-items: center; gap: .8rem; font-family: var(--f-mono); font-size: .7rem; letter-spacing: .26em; text-transform: uppercase; color: var(--faint) !important; margin-top: 2rem; }
.issue-hint span { width: 48px; height: 1px; background: var(--gold); animation: hint 2.4s var(--ease) infinite; transform-origin: left; }
.issue-hint b { font-weight: inherit; }
.hint-m { display: none; }
@keyframes hint { 0% { transform: scaleX(0); } 60% { transform: scaleX(1); } 100% { transform: scaleX(1); opacity: 0; } }

.issue-card {
  flex: 0 0 min(340px, 78vw); min-height: 440px; scroll-snap-align: start;
  display: flex; flex-direction: column; padding: 2rem 1.8rem;
  border-radius: var(--radius-lg); background: var(--glass); border: 1px solid var(--glass-line);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  transition: transform .6s var(--ease), border-color .4s;
}
.issue-card:hover { transform: translateY(-8px); border-color: rgba(240, 209, 139, .45); }
.ic-n { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); }
.ic-art { width: 92px; height: 92px; margin: 1.2rem 0 auto; fill: none; stroke: var(--gold-light); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 18px rgba(240, 209, 139, .35)); }
.issue-card h3 { font-size: 1.65rem; margin-top: 2.5rem; }
.issue-card p:not(.ic-n):not(.ic-status) { color: var(--muted); font-size: .98rem; }
.ic-status { margin: .6rem 0 0; padding-top: 1rem; border-top: 1px dashed var(--glass-line); font-family: var(--f-mono); font-size: .68rem; letter-spacing: .3em; text-transform: uppercase; color: var(--faint); display: flex; align-items: center; gap: .6rem; }
.ic-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--sage); box-shadow: 0 0 10px var(--sage); }
.issue-progress { display: none; }

/* Desktop pinned horizontal mode (class added by JS) */
.issue.h-scroll .issue-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; padding: 0; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.issue.h-scroll .issue-track { overflow: visible; scroll-snap-type: none; transform: translate3d(var(--tx, 0px), 0, 0); will-change: transform; width: max-content; }
.issue.h-scroll .issue-progress { display: block; position: absolute; left: max(1.5rem, calc((100vw - 1240px) / 2)); right: max(1.5rem, calc((100vw - 1240px) / 2)); bottom: 3.5rem; height: 1px; background: var(--glass-line); }
.issue.h-scroll .issue-progress span { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--gold), var(--ember)); transform-origin: left; transform: scaleX(var(--p, 0)); }

/* ---------------- SUPPORT ---------------- */
.support-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(3rem, 2rem + 4vw, 6rem); align-items: start; }
.support-head { position: sticky; top: calc(var(--header-h) + 3rem); }
.support-head > p:not(.stamp) { color: var(--muted); font-size: 1.08rem; }
.support-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--glass-line); }
.support-list li { position: relative; display: flex; gap: 2rem; padding: 2.2rem .5rem; border-bottom: 1px solid var(--glass-line); transition: padding .6s var(--ease); }
.support-list li::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%; background: linear-gradient(90deg, var(--gold), var(--ember)); transform: scaleX(0); transform-origin: left; transition: transform .8s var(--ease); }
.support-list li:hover { padding-left: 1.4rem; }
.support-list li:hover::after { transform: scaleX(1); }
.sl-n { font-family: var(--f-stencil); font-weight: 800; font-size: 3.4rem; line-height: .9; color: transparent; -webkit-text-stroke: 1px var(--gold); min-width: 3.4rem; transition: color .5s; }
.support-list li:hover .sl-n { color: var(--gold); }
.support-list h3 { font-size: 1.55rem; margin-bottom: .35rem; }
.support-list p { color: var(--muted); margin: 0; }

.rate-card {
  margin-top: clamp(4rem, 3rem + 4vw, 7rem); padding: clamp(2rem, 1.5rem + 2vw, 3.4rem);
  display: grid; grid-template-columns: 1.3fr .7fr; gap: 2rem; align-items: center;
  border-radius: var(--radius-lg); background: var(--glass-strong); border: 1px solid rgba(240, 209, 139, .3);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); overflow: hidden; isolation: isolate;
}
.rate-card::after { content: ""; position: absolute; width: 520px; height: 520px; right: -200px; top: -260px; z-index: -1; border-radius: 50%; background: radial-gradient(circle, rgba(214, 173, 85, .35), transparent 65%); }
.rc-tag { display: inline-block; font-family: var(--f-mono); font-size: .66rem; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: var(--ink); background: var(--gold); padding: .35rem .75rem; border-radius: 6px; }
.rate-card h3 { font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.7rem); font-weight: 500; }
.rate-card .rc-left p:not(.rc-tag) { color: var(--muted); margin: 0; max-width: 56ch; }
.rc-right { display: grid; gap: 1.2rem; justify-items: start; }
.rc-price { font-family: var(--f-display); font-size: 3.6rem; line-height: 1; margin: 0; color: var(--gold-light); font-style: italic; font-weight: 300; }
.rc-price small { display: block; font-family: var(--f-body); font-style: normal; font-size: .9rem; color: var(--faint); margin-top: .4rem; }

/* ---------------- HOME BASE / TOPOGRAPHIC MAP ---------------- */
.hood-grid {
  display: grid; grid-template-columns: .95fr 1.05fr; grid-template-areas: "head map" "list map";
  grid-template-rows: auto 1fr; column-gap: clamp(3rem, 2rem + 4vw, 6rem); row-gap: 1rem; align-items: start;
}
.hood-head { grid-area: head; }
.hood-head > p:not(.stamp) { color: var(--muted); font-size: 1.08rem; }
.topo-wrap { grid-area: map; position: sticky; top: calc(var(--header-h) + 2rem); }
.places { grid-area: list; list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.place {
  width: 100%; display: grid; grid-template-columns: 1fr auto; grid-template-areas: "name d" "note d";
  align-items: center; gap: .1rem 1rem; text-align: left; padding: .95rem 1.2rem; border-radius: 16px;
  font: inherit; color: var(--text); cursor: pointer;
  background: var(--glass); border: 1px solid var(--glass-line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  transition: border-color .3s, background .3s, transform .5s var(--ease);
}
.place:hover, .place[aria-pressed="true"] { border-color: rgba(240, 209, 139, .5); background: var(--glass-strong); }
.place[aria-pressed="true"] { transform: translateX(6px); }
.pl-name { grid-area: name; font-weight: 700; line-height: 1.3; }
.pl-note { grid-area: note; font-size: .88rem; color: var(--faint); }
.pl-d { grid-area: d; font-family: var(--f-mono); font-size: .8rem; color: var(--gold-light); white-space: nowrap; }

.topo {
  position: relative; aspect-ratio: 1; border-radius: var(--radius-lg); overflow: hidden;
  background: radial-gradient(120% 90% at 50% 35%, rgba(18, 30, 52, .72), rgba(5, 8, 15, .92));
  border: 1px solid var(--glass-line);
  box-shadow: 0 50px 100px -40px rgba(0,0,0,.8), inset 0 0 90px rgba(0,0,0,.45);
}
.topo-canvas, .topo-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.topo-cap { margin: 1.1rem 0 0; text-align: center; font-family: var(--f-mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.tp-road { fill: none; stroke: rgba(255, 255, 255, .2); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.tp-road-label { font-family: var(--f-mono); font-size: 16px; font-weight: 600; letter-spacing: .06em; fill: rgba(255, 255, 255, .5); paint-order: stroke; stroke: rgba(5, 8, 15, .9); stroke-width: 6px; stroke-linejoin: round; }
.tp-terrain { font-family: var(--f-display); font-style: italic; font-size: 23px; fill: rgba(240, 209, 139, .62); paint-order: stroke; stroke: rgba(5, 8, 15, .7); stroke-width: 5px; }
.tp-valley { font-family: var(--f-mono); font-size: 15px; letter-spacing: .5em; fill: rgba(255, 255, 255, .3); }
.tp-place { cursor: pointer; }
.tp-dot { fill: var(--gold-light); }
.tp-halo { fill: rgba(240, 209, 139, .2); opacity: 0; transform-box: fill-box; transform-origin: center; transition: opacity .4s; }
.tp-place.on .tp-halo { opacity: 1; animation: halo 5s ease-in-out infinite; }
@keyframes halo { 50% { transform: scale(1.45); opacity: .45; } }
.tp-label { font-family: var(--f-body); font-weight: 700; font-size: 21px; fill: rgba(255, 255, 255, .82); paint-order: stroke; stroke: rgba(5, 8, 15, .88); stroke-width: 6px; stroke-linejoin: round; transition: fill .3s; }
.tp-place:not(.on) .tp-label { opacity: .55; }
.tp-place.on .tp-label { fill: var(--gold-light); }
.tp-chev { fill: none; stroke: var(--gold-light); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.tp-home-shield { fill: var(--gold-light); }
.tp-home-star { fill: var(--ink); }
.tp-home-label { font-family: var(--f-mono); font-size: 16px; font-weight: 600; letter-spacing: .3em; fill: var(--gold-light); paint-order: stroke; stroke: rgba(5, 8, 15, .9); stroke-width: 6px; }
.tp-route-base { fill: none; stroke: rgba(240, 209, 139, .5); stroke-width: 3; stroke-dasharray: 1 11; stroke-linecap: round; }
.tp-route { fill: none; stroke: var(--gold-light); stroke-width: 3; stroke-linecap: round; filter: drop-shadow(0 0 6px rgba(240, 209, 139, .7)); }
.tp-dist rect { fill: rgba(5, 8, 15, .88); stroke: rgba(240, 209, 139, .55); stroke-width: 1.5; }
.tp-dist text { font-family: var(--f-mono); font-size: 18px; font-weight: 600; fill: #fff; text-anchor: middle; dominant-baseline: central; }
.tp-scale path { fill: none; stroke: rgba(255, 255, 255, .5); stroke-width: 2; }
.tp-scale text, .tp-north text { font-family: var(--f-mono); font-size: 15px; fill: rgba(255, 255, 255, .55); letter-spacing: .1em; }
.tp-north path { fill: rgba(240, 209, 139, .85); }

/* ---------------- CHOW ---------------- */
.chow { padding-top: 0; }
.marquee { overflow: hidden; padding: 2.2rem 0; border-block: 1px solid var(--glass-line); margin-bottom: clamp(5rem, 4rem + 4vw, 9rem); background: rgba(5, 8, 15, .25); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; align-items: center; gap: 2.4rem; width: max-content; animation: marquee 60s linear infinite; }
.marquee span { font-family: var(--f-stencil); font-weight: 800; font-size: clamp(2.6rem, 1.6rem + 3.6vw, 5.4rem); text-transform: uppercase; letter-spacing: .02em; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .45); }
.marquee span:nth-of-type(4n+1) { color: rgba(240, 209, 139, .9); -webkit-text-stroke: 0; }
.marquee i { font-style: normal; color: var(--gold); font-size: 1.6rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

.big-quote { margin: 0 auto 5rem; max-width: 1050px; text-align: center; }
.big-quote p { font-family: var(--f-display); font-weight: 300; font-size: clamp(2rem, 1.2rem + 3.4vw, 4.4rem); line-height: 1.1; letter-spacing: -.025em; margin-bottom: 1.6rem; }
.big-quote footer { font-family: var(--f-mono); font-size: .74rem; letter-spacing: .3em; text-transform: uppercase; color: var(--gold-light); }
.moments { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.moment { padding: 1.8rem 1.6rem; border-radius: var(--radius); background: var(--glass); border: 1px solid var(--glass-line); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); transition: transform .6s var(--ease), border-color .4s; }
.moment:hover { transform: translateY(-6px); border-color: rgba(240, 209, 139, .45); }
.m-t { font-family: var(--f-stencil); font-weight: 800; font-size: 2.4rem; line-height: 1; color: var(--gold-light); }
.moment h3 { margin: 1.4rem 0 .4rem; font-size: 1.3rem; }
.moment p { margin: 0; color: var(--muted); font-size: .95rem; }

/* ---------------- QUESTIONS / FAQ ---------------- */
.questions h2 { margin-bottom: 3rem; }
.faq-list { display: grid; gap: .9rem; }
.faq-list details { border-radius: var(--radius); background: var(--glass); border: 1px solid var(--glass-line); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); padding: 0 1.6rem; transition: border-color .4s, background .4s; }
.faq-list details[open] { border-color: rgba(240, 209, 139, .4); background: var(--glass-strong); }
.faq-list summary { list-style: none; cursor: pointer; padding: 1.4rem 0; display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-family: var(--f-display); font-size: 1.25rem; font-weight: 500; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ""; flex: 0 0 34px; height: 34px; border-radius: 50%; border: 1px solid var(--glass-line); background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f0d18b' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center/14px no-repeat; transition: transform .5s var(--ease), background-color .3s; }
.faq-list details[open] summary::after { transform: rotate(135deg); background-color: rgba(240, 209, 139, .15); }
.faq-list details p { color: var(--muted); padding-bottom: 1.5rem; margin: 0; }

/* ---------------- CONTACT / INTAKE ---------------- */
.contact-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(3rem, 2rem + 4vw, 6rem); align-items: start; }
.contact-info > p:not(.stamp) { color: var(--muted); font-size: 1.08rem; }
.contact-list { list-style: none; padding: 0; margin: 2.5rem 0 0; display: grid; gap: 1.4rem; }
.contact-list li { padding-left: 1.2rem; border-left: 1px solid var(--gold); }
.contact-list small { display: block; font-family: var(--f-mono); font-size: .66rem; letter-spacing: .26em; text-transform: uppercase; color: var(--gold-light); }
.contact-list a, .contact-list span { font-family: var(--f-display); font-size: 1.4rem; word-break: break-word; }
.contact-list a:hover { color: var(--gold-light); }

.intake {
  position: relative; display: grid; gap: 1.2rem; align-content: start; min-height: 440px;
  padding: clamp(1.8rem, 1.2rem + 2vw, 2.8rem); border-radius: var(--radius-lg);
  background: var(--glass-strong); border: 1px solid var(--glass-line);
  backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
  box-shadow: 0 50px 100px -40px rgba(0,0,0,.8);
}
.intake-head { display: none; }
.js .intake-head { display: flex; align-items: center; gap: 1rem; }
.intake-count { margin: 0; font-family: var(--f-mono); font-size: .72rem; letter-spacing: .2em; color: var(--faint); font-variant-numeric: tabular-nums; }
.ic-cur { color: var(--gold-light); }
.intake-bar { flex: 1; height: 2px; border-radius: 2px; background: var(--glass-line); overflow: hidden; }
.intake-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--ember)); transform-origin: left; transform: scaleX(var(--ip, .1667)); transition: transform .7s var(--ease); }
.step { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 1rem; }
.step legend { padding: 0; margin-bottom: 1.2rem; font-family: var(--f-display); font-weight: 400; font-size: clamp(1.5rem, 1.15rem + 1.3vw, 2.15rem); line-height: 1.15; letter-spacing: -.015em; }
.js .step { display: none; }
.js .step.active { display: grid; animation: stepIn .7s var(--ease); }
@keyframes stepIn { from { opacity: 0; transform: translateY(16px); } }
.chips { display: flex; flex-wrap: wrap; gap: .6rem; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.chip span { display: inline-block; padding: .78rem 1.2rem; border-radius: 999px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.04); font-weight: 600; font-size: .95rem; transition: background .25s, color .25s, border-color .25s; }
.chip:hover span { border-color: rgba(240, 209, 139, .55); }
.chip input:checked + span { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.chip input:focus-visible + span { outline: 2px solid var(--gold-light); outline-offset: 3px; }
.intake-nav { display: flex; align-items: center; justify-content: flex-end; gap: .8rem; margin-top: .4rem; }
.intake-back { margin-right: auto; background: none; border: 0; padding: .6rem .2rem; color: var(--faint); font: 600 .95rem var(--f-body); cursor: pointer; }
.intake-back:hover { color: #fff; }
html:not(.js) .intake-back, html:not(.js) .intake-next { display: none; }
.intake-done { display: grid; justify-items: center; text-align: center; gap: .4rem; padding: 2.5rem 0 1rem; }
.intake-done svg { width: 68px; height: 68px; color: var(--gold-light); margin-bottom: .8rem; filter: drop-shadow(0 0 20px rgba(240, 209, 139, .5)); }
.intake-done h3 { font-size: 2rem; font-weight: 400; }
.intake-done p { color: var(--muted); }
.intake.done .step, .intake.done .intake-nav, .intake.done .intake-head { display: none !important; }

.field { position: relative; display: block; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: #fff;
  padding: 1.45rem 1rem .55rem; border-radius: 14px;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.14);
  transition: border-color .3s, background .3s, box-shadow .3s; appearance: none; -webkit-appearance: none;
}
.field textarea { resize: vertical; min-height: 140px; }
.field > span { position: absolute; left: 1rem; top: 1.05rem; font-size: 1rem; color: var(--faint); pointer-events: none; transition: all .3s var(--ease); }
.field input:focus + span, .field input:not(:placeholder-shown) + span,
.field textarea:focus + span, .field textarea:not(:placeholder-shown) + span { top: .45rem; font-family: var(--f-mono); font-size: .62rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-light); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); background: rgba(255,255,255,.07); box-shadow: 0 0 0 4px rgba(214, 173, 85, .15); }
.field input.invalid { border-color: #f2a58e; box-shadow: 0 0 0 4px rgba(242, 165, 142, .15); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 0; min-height: 1.4em; font-weight: 600; font-size: .95rem; }
.form-status.ok { color: var(--sage); }
.form-status.err { color: #f2a58e; }
.intake button[disabled] { opacity: .7; cursor: progress; }

/* ---------------- FOOTER ---------------- */
.site-footer { position: relative; padding: 0 0 1.5rem; color: var(--muted); font-size: .95rem; overflow-x: clip; }
.footer-stage { position: relative; height: clamp(420px, 70vh, 720px); }
.footer-word {
  position: absolute; left: 0; right: 0; bottom: -.12em; margin: 0; text-align: center; pointer-events: none;
  font-family: var(--f-stencil); font-weight: 800; font-size: clamp(7rem, 30vw, 30rem); line-height: .8; letter-spacing: .02em;
  color: transparent; -webkit-text-stroke: 1px rgba(240, 209, 139, .3);
}
.footer-grid { position: relative; display: grid; grid-template-columns: 1.4fr 1fr 1.3fr 1.3fr; gap: 2.5rem; padding: 3.5rem 0 3rem; border-top: 1px solid var(--glass-line); }
.footer-tag { font-family: var(--f-display); font-size: 1.35rem; line-height: 1.3; color: #fff; }
.footer-moon { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.site-footer h4 { font-family: var(--f-mono); font-weight: 600; font-size: .68rem; letter-spacing: .26em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 1.1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.site-footer a:hover { color: var(--gold-light); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; padding: 1.5rem 0 4.5rem; border-top: 1px solid var(--glass-line); font-size: .8rem; color: var(--faint); }
.footer-bottom p { margin: 0; }

/* ---------------- BREATHE ---------------- */
.breathe-backdrop {
  position: fixed; inset: 0; z-index: 140;
  background: radial-gradient(circle at 50% 45%, rgba(10, 16, 34, .96), rgba(3, 5, 10, .99));
  opacity: 0; transition: opacity .9s var(--ease);
}
.breathe-ui {
  position: fixed; inset: 0; z-index: 160; display: grid; grid-template-rows: auto 1fr auto;
  padding: calc(1.25rem + env(safe-area-inset-top, 0px)) 1.5rem calc(1.5rem + env(safe-area-inset-bottom, 0px));
  opacity: 0; transition: opacity .9s var(--ease) .25s; pointer-events: none;
}
.breathe.open .breathe-backdrop, .breathe.open .breathe-ui { opacity: 1; }
.breathe.open .breathe-ui { pointer-events: auto; }
html.breathing #starfield { z-index: 150; }
html.breathing body { overflow: hidden; }
.breathe-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.breathe-kicker { margin: 0; font-family: var(--f-mono); font-size: .72rem; letter-spacing: .26em; text-transform: uppercase; color: var(--gold-light); }
.breathe-close { display: inline-flex; align-items: center; gap: .5rem; padding: .6rem 1.15rem; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid var(--glass-line); color: #fff; font: 600 .92rem var(--f-body); cursor: pointer; }
.breathe-close:hover { border-color: rgba(240, 209, 139, .55); }
.breathe-center { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.8rem; min-height: 0; }
.breathe-box { width: min(50vmin, 400px); height: auto; aspect-ratio: 1; overflow: visible; }
.breathe-box rect { fill: none; stroke: rgba(255, 255, 255, .13); stroke-width: .5; }
.breathe-trail { fill: none; stroke: var(--gold-light); stroke-width: .7; stroke-linecap: round; stroke-dasharray: 320; stroke-dashoffset: 320; filter: drop-shadow(0 0 2px rgba(240, 209, 139, .8)); }
.breathe-dot { fill: #fff; filter: drop-shadow(0 0 3px #fff); }
.breathe-read { text-align: center; }
.breathe-phase { margin: 0; font-family: var(--f-display); font-weight: 300; font-style: italic; font-size: clamp(2rem, 1.4rem + 2.4vw, 3.4rem); }
.breathe-count { display: flex; justify-content: center; gap: 1rem; margin: .6rem 0 0; font-family: var(--f-mono); font-size: .9rem; color: rgba(255,255,255,.3); }
.breathe-count .on { color: var(--gold-light); }
.breathe-bottom { max-width: 660px; margin-inline: auto; text-align: center; }
.breathe-how { color: var(--muted); margin-bottom: .8rem; }
.breathe-crisis { margin: 0; font-size: .86rem; color: var(--faint); }
.breathe-crisis a { color: var(--gold-light); text-decoration: underline; text-underline-offset: 3px; }

/* ---------------- Reveal ---------------- */
.js .reveal { opacity: 0; transform: translateY(40px); filter: blur(6px); transition: opacity 1.2s var(--ease), transform 1.2s var(--ease), filter 1.2s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; filter: none; }

/* ---------------- Responsive ---------------- */
@media (max-width: 1180px) {
  .nav-menu { gap: 1.3rem; }
  .nav-right { gap: 1.2rem; }
  .ct-label { display: none; }
}

@media (max-width: 1100px) {
  .moments { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hud-coord { display: none; }
}

@media (max-width: 900px) {
  :root { --header-h: 66px; }
  .site-header.scrolled { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(5, 8, 15, .92); }
  .nav-toggle { display: block; position: relative; z-index: 2; }
  .nav-right { gap: .6rem; }
  .nav-menu {
    position: fixed; inset: 0; z-index: 1; flex-direction: column; justify-content: center; gap: 1.4rem;
    background: rgba(4, 7, 15, .97); opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s;
  }
  .nav-menu.open { opacity: 1; visibility: visible; }
  .nav-menu a:not(.btn) { font-family: var(--f-display); font-size: 2rem; align-items: center; color: #fff; }
  .nav-t { font-size: .7rem; }

  .hero { padding-bottom: 9rem; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { position: relative; z-index: 2; }
  .emblem-slot { order: -1; width: min(240px, 58vw); justify-self: start; margin: -1rem 0 -.5rem -.5rem; }
  .hint-d { display: none; }
  .hint-m { display: inline; }
  .split, .support-grid, .contact-grid { grid-template-columns: 1fr; }
  .support-head { position: static; }
  .rate-card { grid-template-columns: 1fr; }
  .hood-grid { grid-template-columns: 1fr; grid-template-areas: "head" "map" "list"; row-gap: 2rem; }
  .topo-wrap { position: static; }
  .tag-stage { height: 440px; transform: scale(.85); margin-block: 0 -2rem; }
  .ghost-time { top: 1rem; }
  .hud { left: 1rem; }
  .hud-sep, .hud-label { display: none; }
  .breathe-btn { right: 1rem; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .container, .narrow { width: calc(100% - 2.25rem); }
  .moments, .footer-grid { grid-template-columns: 1fr; }
  .hero-cta .btn { flex: 1 1 100%; }
  .tag-stage { transform: scale(.72); margin-block: -1rem -5rem; }
  .support-list li { gap: 1.2rem; }
  .sl-n { font-size: 2.6rem; min-width: 2.6rem; }
  .crisis-bar { font-size: .74rem; }
  .manifesto { height: 240vh; }
  .bb-label { display: none; }
  .breathe-btn { padding: .55rem; }
  .tp-label { font-size: 30px; stroke-width: 8px; }
  .tp-terrain { font-size: 30px; }
  .tp-home-label, .tp-scale text, .tp-north text { font-size: 24px; }
  .tp-road-label { display: none; }
  .tp-dist text { font-size: 26px; }
  .tp-valley { font-size: 22px; }
}

/* ---------------- Calm mode (and OS reduced motion) ---------------- */
.calm *, .calm *::before, .calm *::after { animation: none !important; transition: none !important; }
.calm .grain { display: none; }
.calm.js .reveal, .calm.js .hero-fade, .calm.js .eyebrow { opacity: 1; transform: none; filter: none; }
.calm.js .hero-title .line > span { transform: none; }
.calm .manifesto { height: auto; }
.calm .manifesto-sticky { position: static; height: auto; padding: 8rem 0; }
.calm .manifesto-text .w { opacity: 1; }
.calm .hud, .calm .breathe-btn { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html:not(.js) *, html:not(.js) *::before, html:not(.js) *::after { animation: none !important; transition: none !important; }
  html:not(.js) .manifesto { height: auto; }
  html:not(.js) .manifesto-sticky { position: static; height: auto; padding: 8rem 0; }
}
