/* ==========================================================================
   shrigdigs landing page
   palette: wet forest black, fog, dark moss green accent
   type:    Archivo (variable width, condensed for display) + Martian Mono,
            both self-hosted (SIL OFL, see fonts/OFL-*.txt)
   ========================================================================== */

/* ---------- fonts ---------- */
@font-face {
  font-family: "Archivo"; font-style: normal; font-weight: 400 900; font-stretch: 62% 100%; font-display: swap;
  src: url("../fonts/archivo-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {  /* italic is only ever used at weight 900, width 62-70% */
  font-family: "Archivo"; font-style: italic; font-weight: 900; font-stretch: 62% 70%; font-display: swap;
  src: url("../fonts/archivo-italic-900-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Martian Mono"; font-style: normal; font-weight: 400 700; font-stretch: 100%; font-display: swap;
  src: url("../fonts/martian-mono-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Metric-matched local fallbacks: while the web fonts load, text is set in a
   system face scaled to the same width, so the swap does not reflow the page. */
@font-face { font-family: "Archivo Display Fallback A"; src: local("HelveticaNeue-CondensedBlack"); font-weight: 100 900; size-adjust: 88.4%; ascent-override: 99.3%; descent-override: 23.8%; line-gap-override: 0%; }
@font-face { font-family: "Archivo Display Fallback B"; src: local("Impact"); font-weight: 100 900; size-adjust: 98.2%; ascent-override: 89.4%; descent-override: 21.4%; line-gap-override: 0%; }
@font-face { font-family: "Archivo Display Fallback C"; src: local("Arial Narrow Bold"), local("ArialNarrow-Bold"); font-weight: 100 900; size-adjust: 85.3%; ascent-override: 102.9%; descent-override: 24.6%; line-gap-override: 0%; }
@font-face { font-family: "Archivo Display Fallback D"; src: local("Arial Bold"), local("Arial-BoldMT"), local("Roboto Bold"), local("Roboto-Bold"); font-weight: 100 900; size-adjust: 70%; ascent-override: 125.4%; descent-override: 30%; line-gap-override: 0%; }
@font-face { font-family: "Archivo Body Fallback"; src: local("Arial"), local("ArialMT"), local("Roboto"), local("Roboto-Regular"); font-weight: 100 599; size-adjust: 97.8%; ascent-override: 89.8%; descent-override: 21.5%; line-gap-override: 0%; }
@font-face { font-family: "Archivo Body Fallback"; src: local("Arial Bold"), local("Arial-BoldMT"), local("Roboto Bold"), local("Roboto-Bold"); font-weight: 600 900; size-adjust: 97.8%; ascent-override: 89.8%; descent-override: 21.5%; line-gap-override: 0%; }
@font-face { font-family: "Martian Mono Fallback A"; src: local("Menlo"), local("Menlo-Regular"); font-weight: 100 900; size-adjust: 116.3%; ascent-override: 86%; descent-override: 17.2%; line-gap-override: 0%; }
@font-face { font-family: "Martian Mono Fallback B"; src: local("Consolas"); font-weight: 100 900; size-adjust: 127.3%; ascent-override: 78.6%; descent-override: 15.7%; line-gap-override: 0%; }
@font-face { font-family: "Martian Mono Fallback C"; src: local("Courier New"), local("CourierNewPSMT"), local("Droid Sans Mono"); font-weight: 100 900; size-adjust: 116.6%; ascent-override: 85.8%; descent-override: 17.2%; line-gap-override: 0%; }

:root {
  --pit: #050706;
  --ink: #0a0d0b;
  --duff: #111612;
  --bark: #19201a;
  --rule: rgba(233, 237, 228, .13);
  --rule-2: rgba(233, 237, 228, .24);
  --fog: #eef1e9;
  --mist: #aab4a7;
  --dim: #7d887b;
  /* Accent: Specialized-style Dark Moss Green. --flag fills (light text on it),
     --flag-ink is the same hue lifted for text/strokes on dark (WCAG AA). */
  --flag: #4a5d23;
  --flag-hot: #5b7130;
  --flag-ink: #9bb05e;
  --flag-rgb: 155, 176, 94;
  /* Hazard/alert semantics (steep grade, blown, needs work, errors, recording). */
  --warn: #e5484d;
  --warn-rgb: 229, 72, 77;
  --moss: #a9cc52;
  --amber: #f2b632;
  --creek: #7fb7bd;

  --gutter: clamp(16px, 4.200vw, 64px);
  --gl: max(var(--gutter), env(safe-area-inset-left, 0px));
  --gr: max(var(--gutter), env(safe-area-inset-right, 0px));
  --max: 1480px;
  --nav-h: 60px;
  --nav-total: calc(var(--nav-h) + env(safe-area-inset-top, 0px));

  --display: "Archivo", "Archivo Display Fallback A", "Archivo Display Fallback B", "Archivo Display Fallback C", "Archivo Display Fallback D", sans-serif;
  --body: "Archivo", "Archivo Body Fallback", "Helvetica Neue", Arial, sans-serif;
  --mono: "Martian Mono", "Martian Mono Fallback A", "Martian Mono Fallback B", "Martian Mono Fallback C", ui-monospace, Menlo, monospace;

  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-total) + 12px); }
body {
  margin: 0;
  background: var(--ink);
  color: var(--fog);
  font-family: var(--body);
  font-stretch: 100%;
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
/* film grain over everything */
body::after {
  content: "";
  position: fixed; inset: 0; z-index: 90; pointer-events: none;
  opacity: .05;
  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='.9' numOctaves='2' 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");
}
img, svg, video { display: block; max-width: 100%; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
::selection { background: var(--flag); color: var(--fog); }
:focus-visible { outline: 2px solid var(--flag-ink); outline-offset: 3px; border-radius: 2px; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -80px; z-index: 200; background: var(--flag); color: var(--fog); padding: 15px 16px; font-family: var(--mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; text-decoration: none; transition: top .2s; }
.skip:focus { top: 12px; }

main { overflow-x: clip; }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-left: var(--gl); padding-right: var(--gr); }

/* ---------- type ---------- */
.display {
  font-family: var(--display);
  font-stretch: 62%;
  font-weight: 900;
  text-transform: uppercase;
  line-height: .86;
  letter-spacing: -.005em;
  word-spacing: .07em;
}
.display em { font-style: italic; color: var(--flag-ink); }
.mask { display: block; overflow: hidden; padding-top: .06em; margin-top: -.06em; }
.mask > span { display: block; }
h1 .mask > span, h2 .mask > span { white-space: nowrap; }

/* Fitted titles: font-size is derived from the measured width (in em) of the
   title's widest line, so a title fills its column and can never overflow it.
   --em = widest line / font-size, measured in Archivo 62% / 900.               */
.fit { container-type: inline-size; min-width: 0; }
.fit > .display {
  font-size: clamp(var(--fmin, 2.250rem), min(calc((100vw - var(--gl) - var(--gr) - 18px) / var(--em)), var(--fcap, 24vh)), var(--fmax, 14rem));
}
@supports (width: 1cqi) {
  .fit > .display { font-size: clamp(var(--fmin, 2.250rem), min(calc(100cqi / var(--em)), var(--fcap, 24vh)), var(--fmax, 14rem)); }
}
.hero__title    { --em: 5.340; --fcap: 19vh; --fmax: 14.500rem; }
.private__title { --em: 4.920; --fcap: 34vh; --fmax: 17rem; }
.map__title     { --em: 5.500; --fcap: 22vh; --fmax: 12.500rem; }
.band__title    { --em: 3.920; --fcap: 22vh; --fmax: 14rem; }
.build__title   { --em: 3.650; --fcap: 30vh; --fmax: 16rem; }
.crew__title    { --em: 4.780; --fcap: 26vh; --fmax: 11.500rem; }
.access__title  { --em: 6.130; --fcap: 17vh; --fmax: 11rem; }

/* Headlines set over footage carry their own band of shade. It runs the full
   width of the section, travels with the type at every breakpoint and feathers
   out above and below, so the brightest patch of the footage under any line
   (the moss-green words included) still clears 3:1. Painted as an outset
   border-image so it adds ink but no scrollable overflow. */
.hero__title, .private__title, .band__title, .access__title {
  border-image: linear-gradient(to bottom, rgba(5, 7, 6, 0) 0, rgba(5, 7, 6, var(--shade, .45)) .5em, rgba(5, 7, 6, var(--shade, .45)) calc(100% - .5em), rgba(5, 7, 6, 0) 100%) fill 0 / 0 / .5em 100vw;
}
@supports (height: 1svh) { .hero__title { --fcap: 19svh; } }

.eyebrow {
  display: flex; align-items: center; gap: .7em; flex-wrap: wrap;
  font-family: var(--mono); font-size: .6875rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: .14em; color: var(--fog);
}
.eyebrow i { font-style: normal; color: var(--flag-ink); }
.tick { width: 22px; height: 2px; background: var(--flag-ink); flex: none; }

.lede { font-size: clamp(1.0625rem, .95rem + .45vw, 1.3125rem); line-height: 1.5; color: var(--fog); max-width: 46ch; text-wrap: pretty; }

.redact { font-family: var(--mono); letter-spacing: .04em; color: var(--flag-ink); white-space: pre; }

/* ---------- buttons ---------- */
.btn {
  --bg: var(--flag); --fg: var(--fog);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .8em;
  min-height: 56px; padding: 0 1.6em;
  border: 0; border-radius: 0;
  background: var(--bg); color: var(--fg);
  font-family: var(--display); font-stretch: 78%; font-weight: 800; font-size: 1.0625rem;
  text-transform: uppercase; letter-spacing: .06em; text-decoration: none; white-space: nowrap;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
  overflow: hidden; isolation: isolate;
  transition: font-stretch .35s var(--ease), letter-spacing .35s var(--ease), color .3s var(--ease);
}
.btn:disabled { cursor: progress; opacity: .7; }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--fog); transform: translateX(calc(-100% - 16px)) skewX(-12deg); transform-origin: left; transition: transform .45s var(--ease-out); }
.btn:focus-visible::before { transform: translateX(0) skewX(0); }
@media (hover: hover) { .btn:hover::before { transform: translateX(0) skewX(0); } }
@media (hover: hover) { .btn:hover { font-stretch: 92%; } }
.btn:not(.btn--ghost):focus-visible { color: var(--pit); }
@media (hover: hover) { .btn:not(.btn--ghost):hover { color: var(--pit); } }
.btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; transition: transform .35s var(--ease); }
@media (hover: hover) { .btn:hover svg { transform: translateX(5px); } }
.btn:active { transform: translateY(1px); }
.btn--sm { min-height: 44px; font-size: .875rem; padding: 0 1.1em; clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px)); }
.btn--wide { width: 100%; }
.btn--ghost { --bg: transparent; --fg: var(--fog); min-height: 44px; font-size: .9375rem; padding: 0 1.2em; box-shadow: inset 0 0 0 1.5px var(--rule-2); clip-path: none; }
.btn--ghost::before { background: var(--flag); }
.btn--ghost:focus-visible { color: var(--fog); }
@media (hover: hover) { .btn--ghost:hover { color: var(--fog); } }
.btn--ghost.is-on { --bg: var(--moss); --fg: var(--pit); box-shadow: none; }
.btn--ghost.is-on:focus-visible { outline-color: var(--fog); }

.textlink { position: relative; font-family: var(--mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; text-decoration: none; padding: 14px 0; }
.textlink::after { content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 1.5px; background: currentColor; transform-origin: right; transition: transform .4s var(--ease-out); }
@media (hover: hover) { .textlink:hover::after { transform: scaleX(0); } }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 80; height: var(--nav-total);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: env(safe-area-inset-top, 0px) var(--gr) 0 var(--gl);
  transition: background .35s, backdrop-filter .35s, border-color .35s, transform .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-stuck { background: rgba(8, 11, 9, .78); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); border-color: var(--rule); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; min-height: 44px; }
.brand__mark { width: 28px; height: 28px; flex: none; }
.brand__mark { fill: var(--fog); transition: transform .35s var(--ease-out); }
.brand__mark .m-moss { fill: var(--flag-ink); }
.brand__mark .m-tab { stroke: var(--ink); stroke-width: 1.5; }
.brand__mark .m-cut { fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; }
@media (hover: hover) { .brand:hover .brand__mark { transform: translateY(3px); } }
.brand__word { font-family: var(--display); font-stretch: 66%; font-weight: 900; font-style: italic; font-size: 1.625rem; letter-spacing: .01em; text-transform: uppercase; line-height: 1; }
.nav__links { display: none; gap: clamp(18px, 2.600vw, 40px); }
.nav__links a { font-family: var(--mono); font-size: .6875rem; text-transform: uppercase; letter-spacing: .14em; text-decoration: none; color: var(--fog); padding: 16px 4px; min-width: 44px; text-align: center; position: relative; }
.nav__links a::before { content: ""; position: absolute; left: 0; bottom: 8px; width: 100%; height: 1.5px; background: var(--flag-ink); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease-out); }
.nav__links a:focus-visible::before { transform: scaleX(1); }
@media (hover: hover) { .nav__links a:hover::before { transform: scaleX(1); } }
@media (min-width: 860px) { .nav__links { display: flex; } }

/* ---------- descent rail (page scroll as vertical drop) ---------- */
.descent { display: none; }
@media (min-width: 1200px) {
  .descent { position: fixed; right: 18px; top: 50%; z-index: 70; transform: translateY(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; font-family: var(--mono); font-size: .625rem; letter-spacing: .14em; text-transform: uppercase; color: var(--fog); text-shadow: 0 1px 8px rgba(0, 0, 0, .9); }
  .descent__label, .descent__val { writing-mode: vertical-rl; }
  .descent__val { color: var(--fog); min-height: 6em; }
  .descent__track { position: relative; width: 1px; height: 22vh; background: var(--rule-2); }
  .descent__dot { position: absolute; left: -3px; top: 0; width: 7px; height: 7px; background: var(--flag-ink); transform: translateY(calc(var(--p, 0) * (22vh - 7px))) rotate(45deg); }
}

/* ---------- background video ---------- */
.bgv { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; transition: opacity .45s linear; }
.bgv.is-dip { opacity: 0; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero { position: relative; min-height: 100vh; min-height: 100svh; min-height: max(100svh, 560px); display: flex; flex-direction: column; justify-content: flex-end; background: var(--pit) url("../media/hero-oldgrowth.jpg") center/cover no-repeat; overflow: hidden; isolation: isolate; }
.hero__scrim { position: absolute; inset: 0; z-index: 1; background:
    linear-gradient(to top, rgba(5, 7, 6, .96) 0%, rgba(5, 7, 6, .74) 26%, rgba(5, 7, 6, .4) 58%, rgba(5, 7, 6, .58) 100%),
    radial-gradient(120% 90% at 0% 100%, rgba(5, 7, 6, .7), transparent 60%); }
.hero__content { position: relative; z-index: 2; display: grid; gap: clamp(20px, 2.600vw, 34px); padding-top: calc(var(--nav-total) + 36px); }
.hero__title { margin-top: .16em; text-shadow: 0 2px 40px rgba(0, 0, 0, .35); }
.hero__side { display: grid; gap: 22px; align-content: end; }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
@media (min-width: 900px) {
  .hero__side { grid-template-columns: minmax(0, 50ch) auto; justify-content: space-between; align-items: end; gap: 40px; }
  .hero__side .lede { max-width: 50ch; }
}
.hero__foot { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: clamp(26px, 4vw, 52px); padding-block: 14px calc(38px + env(safe-area-inset-bottom)); border-top: 1px solid var(--rule-2); }
.steps { display: flex; gap: clamp(14px, 3vw, 44px); font-family: var(--mono); font-size: .625rem; letter-spacing: .14em; text-transform: uppercase; color: var(--fog); overflow: hidden; white-space: nowrap; }
.steps span { color: var(--flag-ink); margin-right: .7em; }
.steps li:nth-child(n+4) { display: none; }
@media (min-width: 620px) { .steps li:nth-child(n+4) { display: block; } }
.motion { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 2px; background: none; border: 0; font-family: var(--mono); font-size: .625rem; letter-spacing: .14em; text-transform: uppercase; color: var(--fog); }
.motion svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.6; }
.motion .i-play { display: none; fill: currentColor; stroke: none; }
.motion-paused .motion .i-play { display: block; }
.motion-paused .motion .i-pause { display: none; }
/* "Pause motion" freezes every CSS animation; js also stops the video, shimmer and map loops */
.motion-paused *, .motion-paused *::before, .motion-paused *::after { animation-play-state: paused !important; }
@media (hover: hover) { .motion:hover { color: var(--flag-ink); } }

.hud { position: absolute; z-index: 2; top: calc(var(--nav-total) + 18px); right: var(--gr); display: grid; gap: 5px; font-family: var(--mono); font-size: .625rem; letter-spacing: .12em; text-transform: uppercase; color: var(--fog); text-align: right; text-shadow: 0 1px 12px rgba(0, 0, 0, .8); }
.hud__row:first-child { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.hud__live { width: 7px; height: 7px; border-radius: 50%; background: var(--warn); animation: blink 1.6s steps(2, jump-none) infinite; }
@keyframes blink { 50% { opacity: .2; } }
@media (max-width: 640px) { .hud__row:nth-child(n+2) { display: none; } }

/* hero load-in */
.js .hero .mask > span { transform: translateY(108%); animation: rise 1.1s var(--ease-out) forwards; }
.js .hero .mask:nth-child(2) > span { animation-delay: .09s; }
.js .hero .mask:nth-child(3) > span { animation-delay: .18s; }
.js .hero .eyebrow, .js .hero__side, .js .hero__foot, .js .hud { opacity: 0; animation: fadeup .9s var(--ease-out) .45s forwards; }
.js .hero__side { animation-delay: .6s; }
.js .hero__foot, .js .hud { animation-delay: .8s; }
@keyframes rise { to { transform: none; } }
@keyframes fadeup { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ==========================================================================
   FLAGGING TAPE
   ========================================================================== */
.tape { position: relative; z-index: 5; margin-block: -22px; height: 46px; background: var(--flag-ink); color: var(--pit); transform: rotate(-1.200deg) scale(1.03); overflow: hidden; display: flex; align-items: center; box-shadow: 0 10px 40px rgba(0, 0, 0, .5); }
.tape__run { display: flex; align-items: center; gap: 26px; flex: none; padding-left: 26px; font-family: var(--display); font-stretch: 70%; font-weight: 900; font-style: italic; font-size: 1.25rem; text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; animation: tape 36s linear infinite; }
.tape__run i { width: 12px; height: 12px; background: var(--flag); transform: rotate(45deg); flex: none; }
@keyframes tape { to { transform: translateX(-33.333%); } }

/* ==========================================================================
   PRIVACY
   ========================================================================== */
.private { position: relative; isolation: isolate; overflow: hidden; background: var(--pit); padding-block: clamp(110px, 15vw, 220px) clamp(80px, 10vw, 150px); }
.private__scrim { position: absolute; inset: -1px 0; z-index: 1; background:
   linear-gradient(to bottom, var(--ink) 0%, rgba(8, 11, 9, .5) 22%, rgba(8, 11, 9, .62) 60%, var(--ink) 100%); }
.private__inner { position: relative; z-index: 2; }
.private__title { margin-block: .16em .22em; }
.private__lede { margin-left: auto; margin-right: 0; }
@media (min-width: 900px) { .private__lede { margin-right: 6%; } }

.ledger { margin-top: clamp(40px, 6vw, 84px); border-top: 1px solid var(--rule-2); font-family: var(--mono); font-size: clamp(.625rem, .52rem + .45vw, .8125rem); letter-spacing: .06em; text-transform: uppercase; }
.ledger > div { display: grid; grid-template-columns: minmax(84px, 1fr) minmax(0, 2.200fr) minmax(52px, .7fr); gap: 12px; align-items: center; padding: 14px 4px; border-bottom: 1px solid var(--rule); }
.ledger > div > :last-child { text-align: right; }
.ledger__head { color: var(--mist); font-size: .625rem; letter-spacing: .14em; }
.ledger__row { transition: background .3s; }
@media (hover: hover) { .ledger__row:hover { background: rgba(var(--flag-rgb), .08); } }
.ledger__row .redact { overflow: hidden; text-overflow: clip; }
.ledger__row--pub { color: var(--mist); }
.ledger__row--pub > :nth-child(2) { color: var(--fog); }

.pillars { margin-top: clamp(44px, 6vw, 90px); display: grid; gap: 0; }
.pillars li { position: relative; padding: 26px 0 28px; border-top: 1px solid var(--rule-2); display: grid; gap: 10px; }
.pillars__n { font-family: var(--mono); font-size: .6875rem; color: var(--flag-ink); letter-spacing: .14em; }
.pillars h3 { font-family: var(--display); font-stretch: 68%; font-weight: 900; font-size: clamp(1.75rem, 1.300rem + 1.800vw, 2.625rem); text-transform: uppercase; line-height: .95; }
.pillars p { color: var(--fog); max-width: 38ch; }
@media (min-width: 860px) {
  .pillars { grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3.500vw, 56px); }
}

/* ==========================================================================
   MAP SECTION
   ========================================================================== */
.map { position: relative; padding-top: clamp(80px, 11vw, 170px); background:
   radial-gradient(80% 50% at 80% 0%, rgba(var(--flag-rgb), .06), transparent 70%), var(--ink); }
.map__title { margin-block: .16em .26em; }
.map__intro { padding-bottom: clamp(36px, 5vw, 72px); }

.scrolly { position: relative; }
.scrolly__map { position: sticky; top: var(--nav-total); z-index: 10; padding: 8px 0 12px; background: linear-gradient(to bottom, var(--ink) calc(100% - 12px), transparent); }
.scrolly__steps { position: relative; }
.chapter { min-height: 62vh; display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: 34px 0 44px; opacity: .62; transition: opacity .5s; }
.chapter.is-active { opacity: 1; }
.chapter:last-child { min-height: 70vh; }
.chapter__n { font-family: var(--mono); font-size: .6875rem; letter-spacing: .14em; text-transform: uppercase; color: var(--fog); }
.chapter__n i { color: var(--flag-ink); font-style: normal; }
.chapter h3 { font-size: clamp(2.375rem, 1.500rem + 4.200vw, 5rem); max-width: 11ch; }
.chapter p { color: var(--fog); max-width: 40ch; }
.spec { display: grid; gap: 0; margin-top: 8px; font-family: var(--mono); font-size: .6875rem; letter-spacing: .08em; text-transform: uppercase; color: var(--mist); max-width: 380px; }
.spec li { padding: 10px 0; border-top: 1px solid var(--rule); display: flex; gap: 10px; align-items: baseline; }
.spec li::before { content: "+"; color: var(--flag-ink); }

@media (min-width: 1000px) {
  .scrolly { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 8fr); gap: clamp(32px, 5vw, 96px); align-items: start; }
  .scrolly__map { order: 2; top: 0; height: 100vh; padding: calc(var(--nav-total) + 12px) 0 12px; display: flex; flex-direction: column; justify-content: center; background: none; }
  .mapui { width: 100%; max-width: max(420px, calc((100vh - var(--nav-total) - var(--map-chrome, 250px)) * 1.6667 + 44px)); margin-left: auto; }
  .scrolly__steps { order: 1; }
  .chapter { min-height: 88vh; padding: 0; }
  .chapter:last-child { min-height: 92vh; }
}

/* ---------- map ui mock ---------- */
.mapui { --map-bg: #0b100d; position: relative; border: 1px solid var(--rule-2); background: var(--duff); box-shadow: 0 30px 90px -20px rgba(0, 0, 0, .8), 0 0 0 1px rgba(0, 0, 0, .6); }
.mapui__bar { display: flex; align-items: center; gap: 12px; height: 38px; padding: 0 12px; border-bottom: 1px solid var(--rule); font-family: var(--mono); font-size: .625rem; letter-spacing: .12em; text-transform: uppercase; color: var(--mist); white-space: nowrap; }
.mapui__title { display: flex; gap: 10px; align-items: baseline; }
.mapui__title b { color: var(--fog); font-weight: 600; }
.mapui__mode { margin-inline: auto; color: var(--fog); background: var(--flag); padding: 3px 8px; font-weight: 600; }
.mapui__lock { display: flex; align-items: center; gap: 6px; color: var(--fog); }
.mapui__lock svg { width: 13px; height: 13px; fill: none; stroke: var(--flag-ink); stroke-width: 2; }
.mapui__lock span { color: var(--mist); }
@media (max-width: 420px) { .mapui__title span, .mapui__lock span { display: none; } }

.mapui__body { display: flex; }
.mapui__tools { flex: none; display: flex; flex-direction: column; width: 45px; border-right: 1px solid var(--rule); background: var(--duff); }
.mapui__tools button { position: relative; height: 44px; flex: 1 1 44px; display: grid; place-items: center; background: none; border: 0; border-bottom: 1px solid var(--rule); color: var(--mist); transition: color .2s, background .2s; }
.mapui__tools button:last-child { border-bottom: 0; }
.mapui__tools svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; stroke-linecap: round; }
.mapui__tools svg .fill { fill: currentColor; stroke: none; }
@media (hover: hover) { .mapui__tools button:hover { color: var(--fog); background: rgba(255, 255, 255, .04); } }
.mapui__tools button[aria-pressed="true"] { color: var(--fog); background: var(--flag); }
.mapui__tools button:focus-visible { outline-offset: -3px; }

.mapui__stage { position: relative; flex: 1; min-width: 0; aspect-ratio: 1000 / 600; background: var(--map-bg); overflow: hidden; cursor: crosshair; }
#topo { position: absolute; inset: 0; width: 100%; height: 100%; }
#topo * { vector-effect: non-scaling-stroke; }
#relief { opacity: .9; }
.c-minor { fill: none; stroke: rgba(226, 232, 216, .14); stroke-width: .7; }
.c-index { fill: none; stroke: rgba(232, 196, 156, .5); stroke-width: 1.300; }
.c-labels text { font-family: var(--mono); font-size: 9.500px; fill: rgba(226, 200, 170, .8); text-anchor: middle; dominant-baseline: middle; paint-order: stroke; stroke: var(--map-bg); stroke-width: 5px; letter-spacing: .04em; }
.creeks path { fill: none; stroke: var(--creek); stroke-width: 1.400; stroke-opacity: .6; stroke-linecap: round; stroke-linejoin: round; }
.trail-casing { fill: none; stroke: rgba(4, 6, 5, .85); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
.trail { fill: none; stroke: var(--fog); stroke-width: 2.600; stroke-linecap: round; stroke-linejoin: round; transition: stroke .4s, opacity .4s; }
.trail-grade path { fill: none; stroke-width: 3.600; stroke-linecap: round; opacity: 0; transition: opacity .5s; }
.trail-grade .g0 { stroke: var(--creek); }
.trail-grade .g1 { stroke: var(--moss); }
.trail-grade .g2 { stroke: var(--amber); }
.trail-grade .g3 { stroke: var(--warn); }

.cross { opacity: 0; transition: opacity .2s; pointer-events: none; }
.cross line { stroke: rgba(238, 241, 233, .4); stroke-width: 1; stroke-dasharray: 3 4; }
.mapui__stage.is-hover .cross { opacity: 1; }

.gps, .rider, .draft { opacity: 0; transition: opacity .45s; pointer-events: none; }
.gps__dot { fill: var(--flag-ink); stroke: var(--fog); stroke-width: 2; }
.gps__pulse { fill: rgba(var(--flag-rgb), .28); transform-box: fill-box; transform-origin: center; animation: pulse 1.800s ease-out infinite; }
@keyframes pulse { from { transform: scale(.3); opacity: 1; } to { transform: scale(1.500); opacity: 0; } }
.rider__halo { fill: rgba(238, 241, 233, .16); }
.rider__dot { fill: var(--fog); stroke: var(--pit); stroke-width: 2; }

.draft__line { fill: none; stroke: var(--flag-ink); stroke-width: 2.600; stroke-dasharray: 9 7; stroke-linecap: round; animation: march 1.200s linear infinite; }
@keyframes march { to { stroke-dashoffset: -16; } }
.draft__guide { fill: none; stroke: rgba(var(--flag-rgb), .35); stroke-width: 1; }
.node { cursor: grab; touch-action: none; }
.node rect { fill: var(--map-bg); stroke: var(--flag-ink); stroke-width: 2; transition: fill .15s; }
.node.is-drag rect, .node:focus-visible rect { fill: var(--flag-ink); }
@media (hover: hover) { .node:hover rect { fill: var(--flag-ink); } }
.node.is-drag { cursor: grabbing; }
.node--fixed rect { fill: var(--flag); }
.node:focus { outline: none; }

.pin { cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .35s; }
.pin--end { opacity: 1; }
.pin--end .pin__g { transform: scale(var(--pk, 1)); }
.pin__g { transition: transform .5s var(--ease-out); transform: scale(0); }
.pin circle.pin__bg { fill: var(--map-bg); stroke: var(--fog); stroke-width: 1.600; transition: fill .2s, stroke .2s; }
.pin path { fill: none; stroke: var(--fog); stroke-width: 1.600; stroke-linecap: round; stroke-linejoin: round; transition: stroke .2s; }
.pin__hit, .node circle { fill: transparent; stroke: none; }
.pin text { font-family: var(--mono); font-size: 10px; font-weight: 700; fill: var(--pit); text-anchor: middle; dominant-baseline: central; }
.pin .pin__flag { fill: var(--warn); stroke: var(--map-bg); stroke-width: 1.500; }
.pin--end circle.pin__bg { fill: var(--fog); stroke: var(--pit); }
.pin:focus-visible circle.pin__bg, .pin.is-on circle.pin__bg { fill: var(--fog); }
@media (hover: hover) { .pin:hover circle.pin__bg { fill: var(--fog); } }
.pin:focus-visible path, .pin.is-on path { stroke: var(--pit); }
@media (hover: hover) { .pin:hover path { stroke: var(--pit); } }
.pin:focus { outline: none; }
.pin[data-status="work"] circle.pin__bg { stroke: var(--warn); }

/* mode-driven visibility */
.mapui[data-mode="record"] .trail { stroke: var(--flag-ink); }
.mapui[data-mode="record"] .gps { opacity: 1; }
.mapui[data-mode="sketch"] .trail { opacity: .55; }
.mapui[data-mode="sketch"] .draft { opacity: 1; pointer-events: auto; }
.mapui[data-mode="grade"] .trail { opacity: 0; }
.mapui[data-mode="grade"] .trail-grade path { opacity: 1; }
.mapui[data-mode="grade"] .rider, .mapui.is-scrub .rider { opacity: 1; }
.mapui[data-mode="features"] .pin, .mapui[data-mode="filters"] .pin { opacity: 1; pointer-events: auto; }
.mapui[data-mode="features"] .pin.is-off, .mapui[data-mode="filters"] .pin.is-off { opacity: .12; pointer-events: none; }
.mapui[data-mode="features"] .pin__g, .mapui[data-mode="filters"] .pin__g { transform: scale(var(--pk, 1)); }
.mapui[data-mode="features"] .trail, .mapui[data-mode="filters"] .trail { opacity: .7; }

/* overlays */
.mapui__rec, .mapui__draft, .mapui__hint, .mapui__readout, .mapui__scale { position: absolute; z-index: 3; font-family: var(--mono); font-size: .625rem; letter-spacing: .1em; text-transform: uppercase; }
.mapui__rec, .mapui__draft { top: 10px; left: 10px; display: flex; align-items: center; gap: 8px; padding: 6px 9px; background: rgba(5, 7, 6, .86); border: 1px solid var(--rule-2); color: var(--fog); opacity: 0; transform: translateY(-6px); transition: opacity .35s, transform .35s var(--ease-out); pointer-events: none; }
.mapui__rec i { width: 8px; height: 8px; border-radius: 50%; background: var(--warn); animation: blink 1s steps(2, jump-none) infinite; }
.mapui__rec b, .mapui__draft b { font-weight: 600; color: var(--flag-ink); font-variant-numeric: tabular-nums; }
.mapui__rec span { color: var(--mist); }
.mapui[data-mode="record"] .mapui__rec, .mapui[data-mode="sketch"] .mapui__draft { opacity: 1; transform: none; }
.mapui__hint { right: 10px; top: 10px; padding: 6px 9px; color: var(--pit); background: var(--fog); opacity: 0; transition: opacity .35s; pointer-events: none; }
.mapui[data-mode="sketch"] .mapui__hint { opacity: 1; }
.mapui[data-mode="sketch"].has-dragged .mapui__hint { opacity: 0; }

.mapui__chips { position: absolute; z-index: 3; left: 55px; right: 10px; top: 48px; display: flex; flex-wrap: wrap; gap: 6px; font-family: var(--mono); font-size: .625rem; letter-spacing: .1em; text-transform: uppercase; opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .35s, transform .35s var(--ease-out), visibility 0s .35s; }
.mapui[data-mode="features"] .mapui__chips, .mapui[data-mode="filters"] .mapui__chips { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.chip { min-height: 28px; padding: 0 10px; border: 1px solid var(--rule-2); background: rgba(5, 7, 6, .82); color: var(--mist); font: inherit; letter-spacing: inherit; text-transform: inherit; transition: background .2s, color .2s, border-color .2s; }
@media (hover: hover) { .chip:hover { border-color: var(--fog); color: var(--fog); } }
.chip[aria-pressed="true"] { background: var(--fog); color: var(--pit); border-color: var(--fog); }
.chip--flag[aria-pressed="true"] { background: var(--warn); border-color: var(--warn); color: var(--pit); }
.chip--flag::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--warn); margin-right: 7px; vertical-align: 1px; }
.chip--flag[aria-pressed="true"]::before { background: var(--pit); }

.mapui__readout { left: 10px; bottom: 10px; display: flex; gap: 12px; padding: 6px 9px; background: rgba(5, 7, 6, .86); border: 1px solid var(--rule-2); color: var(--mist); opacity: 0; transition: opacity .2s; pointer-events: none; white-space: nowrap; }
.mapui__readout b { color: var(--fog); font-weight: 600; font-variant-numeric: tabular-nums; }
.mapui__stage.is-hover .mapui__readout { opacity: 1; }
.mapui__scale { right: 10px; bottom: 10px; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; color: var(--mist); pointer-events: none; }
.mapui__scale i { width: 12.500%; min-width: 60px; height: 5px; border: 1px solid var(--mist); border-top: 0; }
.mapui__stage .mapui__scale i { width: calc(12.500cqw); }
.mapui__stage { container-type: inline-size; }
@media (max-width: 640px) { .mapui__readout .redact { display: none; } .c-labels { display: none; } .mapui__scale { display: none; } }

.mapui__tip { position: absolute; z-index: 4; left: 0; top: 0; min-width: 150px; max-width: 220px; padding: 9px 11px 10px; background: var(--fog); color: var(--pit); font-family: var(--mono); font-size: .625rem; letter-spacing: .08em; text-transform: uppercase; line-height: 1.5; opacity: 0; transform: translate(-50%, calc(-100% - 18px)) scale(.96); transform-origin: bottom center; transition: opacity .2s, transform .25s var(--ease-out); pointer-events: none; }
.mapui__tip.is-show { opacity: 1; transform: translate(-50%, calc(-100% - 22px)) scale(1); }
.mapui__tip.is-below { transform: translate(-50%, 22px) scale(1); }
.mapui__tip b { display: block; font-family: var(--display); font-stretch: 70%; font-weight: 900; font-size: 1.0625rem; letter-spacing: .01em; line-height: 1; margin-bottom: 5px; }
.mapui__tip em { display: inline-block; font-style: normal; margin-top: 5px; padding: 1px 5px; background: var(--pit); color: var(--fog); }
.mapui__tip em.work { background: var(--warn); color: var(--pit); }

/* profile */
.mapui__profile { border-top: 1px solid var(--rule); background: var(--duff); transition: background .4s; }
.mapui__stats { display: flex; align-items: stretch; font-family: var(--mono); text-transform: uppercase; border-bottom: 1px solid var(--rule); }
.mapui__stats > div { flex: 1; padding: 7px 10px 8px; border-right: 1px solid var(--rule); display: grid; gap: 1px; min-width: 0; }
.mapui__stats span { font-size: .5625rem; letter-spacing: .14em; color: var(--mist); }
.mapui__stats b { font-family: var(--display); font-stretch: 72%; font-weight: 800; font-size: clamp(.9375rem, .7rem + .9vw, 1.375rem); line-height: 1; letter-spacing: .01em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mapui__stats .units { flex: none; display: flex; gap: 0; padding: 0; border-right: 0; }
.units button { width: 44px; min-height: 44px; background: none; border: 0; border-left: 1px solid var(--rule); font-family: var(--mono); font-size: .625rem; letter-spacing: .1em; text-transform: uppercase; color: var(--mist); }
.units button:first-child { border-left: 0; }
.units button[aria-pressed="true"] { color: var(--pit); background: var(--fog); }
.units button:focus-visible { outline-offset: -3px; }
.mapui__chart { position: relative; height: clamp(54px, 8vw, 92px); cursor: ew-resize; touch-action: pan-y; }
.mapui__chart svg { position: absolute; inset: 6px 0 0 0; width: 100%; height: calc(100% - 6px); }
.prof-area { fill: rgba(238, 241, 233, .07); }
.prof-line { fill: none; stroke: var(--fog); stroke-width: 1.500; vector-effect: non-scaling-stroke; transition: opacity .4s; }
.prof-grade path { fill: none; stroke-width: 2.500; vector-effect: non-scaling-stroke; opacity: 0; transition: opacity .4s; }
.prof-grade .g0 { stroke: var(--creek); } .prof-grade .g1 { stroke: var(--moss); } .prof-grade .g2 { stroke: var(--amber); } .prof-grade .g3 { stroke: var(--warn); }
.mapui[data-mode="grade"] .prof-grade path { opacity: 1; }
.mapui[data-mode="grade"] .prof-line { opacity: 0; }
.mapui[data-mode="grade"] .mapui__profile { background: #151b16; }
.mapui__cursor { position: absolute; top: 0; bottom: 0; left: 0; width: 0; opacity: 0; transition: opacity .2s; pointer-events: none; }
.mapui__cursor i { position: absolute; top: 0; bottom: 0; left: 0; width: 1px; background: var(--fog); }
.mapui__cursor span { position: absolute; top: 4px; left: 6px; padding: 2px 5px; background: var(--fog); color: var(--pit); font-family: var(--mono); font-size: .625rem; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; font-variant-numeric: tabular-nums; }
.mapui__cursor.is-flip span { left: auto; right: 6px; }
.mapui[data-mode="grade"] .mapui__cursor, .mapui.is-scrub .mapui__cursor { opacity: 1; }
.mapui__ticks { position: absolute; inset: auto 0 0 0; height: 6px; pointer-events: none; opacity: 0; transition: opacity .4s; }
.mapui__ticks i { position: absolute; bottom: 0; width: 1px; height: 6px; background: var(--fog); }
.mapui__ticks i.work { background: var(--warn); width: 2px; height: 9px; }
.mapui[data-mode="features"] .mapui__ticks, .mapui[data-mode="filters"] .mapui__ticks { opacity: 1; }
.mapui__note { margin-top: 10px; font-family: var(--mono); font-size: .625rem; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); text-align: right; }
@media (max-width: 999px) { .mapui__note { display: none; } }

/* ==========================================================================
   FEATURE BAND
   ========================================================================== */
.band { position: relative; isolation: isolate; overflow: hidden; background: var(--pit); margin-top: clamp(60px, 8vw, 120px); padding-block: clamp(120px, 20vw, 300px) clamp(70px, 9vw, 130px); }
.band__scrim { position: absolute; inset: -1px 0; z-index: 1; background: linear-gradient(to bottom, var(--ink) 0%, rgba(8, 11, 9, .5) 26%, rgba(8, 11, 9, .6) 60%, var(--ink) 100%); }
.band__ghost { position: absolute; z-index: 1; left: 0; right: 0; top: clamp(60px, 9vw, 130px); overflow: hidden; pointer-events: none; }
.band__ghost > div { font-family: var(--display); font-stretch: 62%; font-weight: 900; font-style: italic; text-transform: uppercase; font-size: clamp(5rem, 17vw, 16rem); line-height: .9; white-space: nowrap; color: transparent; -webkit-text-stroke: 1.500px rgba(238, 241, 233, .5); will-change: transform; transform: translateX(var(--gx, 0px)); }
.band__inner { position: relative; z-index: 2; }
.band__title { margin-bottom: .22em; }
.glyphs { margin-top: clamp(36px, 5vw, 64px); display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--rule-2); border-left: 1px solid var(--rule-2); background: rgba(5, 7, 6, .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.glyphs li { display: grid; gap: 12px; justify-items: start; padding: 16px 14px 14px; border-right: 1px solid var(--rule-2); border-bottom: 1px solid var(--rule-2); font-family: var(--mono); font-size: .625rem; letter-spacing: .12em; text-transform: uppercase; color: var(--fog); transition: background .3s, color .3s; }
.glyphs svg { width: 64px; height: 32px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .4s var(--ease-out); overflow: visible; }
@media (hover: hover) { .glyphs li:hover { background: var(--flag); color: var(--fog); } }
@media (hover: hover) { .glyphs li:hover svg { transform: translateY(-3px) scale(1.06); } }
@media (min-width: 560px) { .glyphs { grid-template-columns: repeat(5, 1fr); } }
@media (min-width: 1100px) { .glyphs { grid-template-columns: repeat(10, 1fr); } }

/* ==========================================================================
   BUILD
   ========================================================================== */
.build { padding-block: clamp(80px, 11vw, 170px); background: var(--ink); }
.build__head { display: grid; gap: 4px; margin-bottom: clamp(36px, 5vw, 72px); }
.build__title { margin-block: .16em .2em; }
.build__grid { display: grid; gap: clamp(16px, 2vw, 28px); }
.build__film { position: relative; overflow: hidden; aspect-ratio: 16 / 11; background: var(--pit); isolation: isolate; }
.build__film::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, rgba(5, 7, 6, .9), transparent 55%); }
.build__film figcaption { position: absolute; z-index: 2; left: clamp(16px, 2.400vw, 30px); bottom: clamp(14px, 2vw, 26px); display: grid; font-family: var(--display); font-stretch: 62%; font-weight: 900; font-style: italic; text-transform: uppercase; font-size: clamp(3rem, 2rem + 4.500vw, 6rem); line-height: .86; }
.build__film figcaption span:last-child { color: var(--flag-ink); }
.build__cards { display: grid; gap: clamp(16px, 2vw, 28px); }
@media (min-width: 1000px) {
  .build__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; }
  .build__film { position: sticky; top: calc(var(--nav-total) + 20px); aspect-ratio: auto; height: calc(100vh - var(--nav-total) - 40px); max-height: 820px; min-height: 360px; }
  .build__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .board { grid-column: 1 / -1; }
  .digday { grid-column: 1 / -1; }
}
@media (min-width: 1280px) {
  .digday { grid-column: auto; grid-row: 1; }
  .log { grid-column: auto; grid-row: 1; }
  .board { grid-row: 2; }
}

.card { position: relative; background: var(--duff); border: 1px solid var(--rule); padding: clamp(16px, 2vw, 24px); display: grid; gap: 14px; align-content: start; transition: border-color .3s, transform .5s var(--ease-out); }
@media (hover: hover) { .card:hover { border-color: var(--rule-2); } }
.card__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-family: var(--mono); font-size: .625rem; letter-spacing: .14em; text-transform: uppercase; }
.card__kicker { color: var(--flag-ink); }
.card__meta { color: var(--mist); }
.card__meta b { color: var(--fog); font-weight: 600; }
.card h3.display { font-size: clamp(2.250rem, 1.600rem + 2.400vw, 3.500rem); }
.card h3.display span { color: var(--mist); }
.digday__what { color: var(--fog); max-width: 40ch; }
.digday__what .redact { font-size: .8em; }
.tools { display: flex; flex-wrap: wrap; gap: 6px; font-family: var(--mono); font-size: .625rem; letter-spacing: .08em; text-transform: uppercase; }
.tools li { padding: 6px 9px; border: 1px dashed var(--rule-2); color: var(--mist); }
.tools li.is-got { border-style: solid; border-color: transparent; background: var(--bark); color: var(--fog); }
.tools li.is-got::before { content: ""; display: inline-block; width: 9px; height: 5px; border-left: 1.500px solid var(--moss); border-bottom: 1.500px solid var(--moss); transform: rotate(-45deg) translateY(-3px); margin-right: 8px; }
.digday__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 1px solid var(--rule); }
.crewdots { display: flex; }
.crewdots li { width: 32px; height: 32px; margin-left: -7px; border-radius: 50%; display: grid; place-items: center; background: var(--bark); border: 2px solid var(--duff); font-family: var(--mono); font-size: .625rem; text-transform: uppercase; color: var(--fog); }
.crewdots li:first-child { margin-left: 0; }
.crewdots li.is-you { background: var(--moss); color: var(--pit); font-weight: 700; animation: pop .5s var(--ease-out); }
@keyframes pop { from { transform: scale(0); } 60% { transform: scale(1.200); } to { transform: none; } }

.board__cols { display: grid; gap: 14px; }
.board__cols h4 { display: flex; justify-content: space-between; padding-bottom: 8px; margin-bottom: 8px; border-bottom: 1px solid var(--rule-2); font-family: var(--mono); font-size: .625rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--fog); }
.board__cols h4 span { color: var(--mist); }
.board__col { display: grid; gap: 6px; align-content: start; }
.task { position: relative; padding: 10px 12px 11px 16px; background: var(--bark); display: grid; gap: 3px; transition: transform .35s var(--ease-out), background .3s; }
.task::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--mist); }
.task--flag::before { background: var(--warn); }
.task--live::before { background: var(--amber); }
.task--done::before { background: var(--moss); }
.task b { font-weight: 600; font-size: .9375rem; line-height: 1.25; }
.task span { font-family: var(--mono); font-size: .625rem; letter-spacing: .1em; text-transform: uppercase; color: var(--mist); }
@media (hover: hover) { .task:hover { transform: translateX(4px); background: #212a22; } }
@media (min-width: 640px) { .board__cols { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.log__list { display: grid; }
.log__list li { display: grid; grid-template-columns: 62px 1fr; gap: 10px; padding: 11px 0; border-top: 1px solid var(--rule); }
.log__list li:first-child { border-top: 0; padding-top: 0; }
.log__when { font-family: var(--mono); font-size: .625rem; letter-spacing: .12em; text-transform: uppercase; color: var(--flag-ink); padding-top: 4px; }
.log__list b { display: block; font-weight: 600; font-size: .9375rem; line-height: 1.3; }
.log__list span { font-family: var(--mono); font-size: .625rem; letter-spacing: .1em; text-transform: uppercase; color: var(--mist); }
.log__bars { display: flex; align-items: flex-end; gap: 4px; height: 44px; padding-top: 6px; border-top: 1px solid var(--rule); }
.log__bars i { flex: 1; height: var(--h); background: var(--bark); transform-origin: bottom; transition: transform .8s var(--ease-out), background .3s; }
.js .log.rv .log__bars i { transform: scaleY(0); }
.js .log.rv.is-in .log__bars i { transform: none; }
.log__bars i:nth-child(n+7) { background: #2c382c; }
.log__bars i:last-child { background: var(--moss); }
.log__bars i:nth-child(2n) { transition-delay: .08s; } .log__bars i:nth-child(3n) { transition-delay: .16s; }

/* ==========================================================================
   CREW
   ========================================================================== */
.crew { padding-block: clamp(60px, 8vw, 120px) clamp(80px, 11vw, 170px); background: linear-gradient(to bottom, var(--ink), #0c120e 50%, var(--ink)); }
.crew__grid { display: grid; gap: clamp(36px, 5vw, 80px); }
.crew__title { margin-block: .16em .24em; }
@media (min-width: 1000px) {
  .crew__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; }
}

.cond { margin-top: clamp(28px, 4vw, 48px); display: grid; gap: 12px; }
.cond__label { font-family: var(--mono); font-size: .625rem; letter-spacing: .14em; text-transform: uppercase; color: var(--mist); }
.cond__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cond__chips button { min-height: 44px; padding: 0 16px; background: none; border: 1.500px solid var(--rule-2); font-family: var(--display); font-stretch: 74%; font-weight: 800; font-size: 1rem; text-transform: uppercase; letter-spacing: .05em; color: var(--fog); transition: background .25s, color .25s, border-color .25s, font-stretch .3s var(--ease); }
@media (hover: hover) { .cond__chips button:hover { border-color: var(--fog); font-stretch: 86%; } }
.cond__chips button[aria-checked="true"] { background: var(--c, var(--moss)); border-color: var(--c, var(--moss)); color: var(--pit); }
.cond__chips [data-cond="hero"] { --c: var(--moss); } .cond__chips [data-cond="tacky"] { --c: var(--moss); }
.cond__chips [data-cond="greasy"] { --c: var(--amber); } .cond__chips [data-cond="blown"] { --c: var(--warn); } .cond__chips [data-cond="closed"] { --c: var(--fog); }
.cond__out { font-family: var(--mono); font-size: .75rem; letter-spacing: .06em; color: var(--fog); min-height: 1.6em; }

.thread { background: var(--duff); border: 1px solid var(--rule-2); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .9); }
.thread__head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--rule); }
.thread__head svg { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--flag-ink); stroke-width: 1.800; }
.thread__head div { display: grid; min-width: 0; }
.thread__head b { font-family: var(--display); font-stretch: 72%; font-weight: 800; font-size: 1.125rem; text-transform: uppercase; letter-spacing: .02em; line-height: 1.1; }
.thread__head span { font-family: var(--mono); font-size: .625rem; letter-spacing: .12em; text-transform: uppercase; color: var(--mist); }
.thread__head em { margin-left: auto; flex: none; font-style: normal; font-family: var(--mono); font-size: .625rem; letter-spacing: .1em; text-transform: uppercase; padding: 4px 7px; background: var(--flag); color: var(--fog); font-weight: 600; }
.thread__body { display: grid; gap: 14px; padding: 16px 14px 18px; }
.msg { display: grid; grid-template-columns: 32px 1fr; gap: 10px; }
.msg__who { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--bark); font-family: var(--mono); font-size: .625rem; text-transform: uppercase; color: var(--fog); }
.msg--me .msg__who { background: var(--moss); color: var(--pit); font-weight: 700; }
.msg__meta { font-family: var(--mono); font-size: .625rem; letter-spacing: .1em; text-transform: uppercase; color: var(--fog); margin-bottom: 2px; }
.msg__meta time { color: var(--mist); margin-left: 6px; }
.msg p:not(.msg__meta) { font-size: .9688rem; line-height: 1.4; color: var(--fog); }
.msg__sys { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: .625rem; letter-spacing: .1em; text-transform: uppercase; color: var(--moss); padding-left: 42px; }
.msg__sys i { width: 14px; height: 1.500px; background: var(--moss); }
.msg__typing { display: flex; align-items: center; gap: 5px; }
.msg__typing .msg__who { margin-right: 5px; }
.msg__typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--mist); animation: typing 1.200s ease-in-out infinite; }
.msg__typing i:nth-of-type(2) { animation-delay: .15s; } .msg__typing i:nth-of-type(3) { animation-delay: .3s; }
@keyframes typing { 0%, 60%, 100% { transform: none; opacity: .4; } 30% { transform: translateY(-4px); opacity: 1; } }
/* stagger messages in */
.js .thread.rv .msg, .js .thread.rv .msg__sys, .js .thread.rv .msg__typing { opacity: 0; transform: translateY(10px); transition: opacity .5s, transform .6s var(--ease-out); }
.js .thread.rv.is-in > .thread__body > * { opacity: 1; transform: none; }
.js .thread.rv.is-in > .thread__body > :nth-child(1) { transition-delay: .2s; }
.js .thread.rv.is-in > .thread__body > :nth-child(2) { transition-delay: .7s; }
.js .thread.rv.is-in > .thread__body > :nth-child(3) { transition-delay: 1.200s; }
.js .thread.rv.is-in > .thread__body > :nth-child(4) { transition-delay: 1.600s; }
.js .thread.rv.is-in > .thread__body > :nth-child(5) { transition-delay: 2.100s; }
.js .thread.rv.is-in > .thread__body > :nth-child(6) { transition-delay: 2.600s; }

.crew__points { margin-top: clamp(48px, 7vw, 100px); display: grid; }
.crew__points li { padding: 22px 0 24px; border-top: 1px solid var(--rule-2); display: grid; gap: 8px; }
.crew__points h3 { font-family: var(--display); font-stretch: 68%; font-weight: 900; font-size: clamp(1.625rem, 1.300rem + 1.300vw, 2.250rem); text-transform: uppercase; line-height: 1; }
.crew__points p { color: var(--fog); max-width: 38ch; }
@media (min-width: 860px) { .crew__points { grid-template-columns: repeat(3, 1fr); column-gap: clamp(24px, 3.500vw, 56px); } }

/* ==========================================================================
   ACCESS
   ========================================================================== */
.access { position: relative; isolation: isolate; overflow: hidden; background: var(--pit); padding-block: clamp(110px, 15vw, 220px) clamp(70px, 9vw, 130px); }
.access__scrim { position: absolute; inset: -1px 0; z-index: 1; background:
   linear-gradient(to bottom, var(--ink) 0%, rgba(5, 7, 6, .5) 24%, rgba(5, 7, 6, .7) 70%, rgba(5, 7, 6, .94) 100%),
   linear-gradient(to right, rgba(5, 7, 6, .5), transparent 70%); }
.access__inner { position: relative; z-index: 2; display: grid; gap: clamp(20px, 3vw, 36px); }
@media (min-width: 1100px) {
  .access__inner { grid-template-columns: minmax(0, 1fr) minmax(340px, 440px); align-items: end; column-gap: clamp(32px, 5vw, 80px); }
  .access__inner .eyebrow { grid-column: 1 / -1; }
}
.req { display: grid; gap: 16px; padding: clamp(18px, 2.400vw, 28px); background: rgba(8, 11, 9, .82); border: 1px solid var(--rule-2); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.req__intro { color: var(--fog); font-size: 1rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.req__row { display: grid; gap: 12px; }
@media (min-width: 480px) { .req__row { grid-template-columns: minmax(0, 1fr) minmax(0, 140px); gap: 10px; } }
.field { display: grid; gap: 6px; min-width: 0; }
.field > span { font-family: var(--mono); font-size: .625rem; letter-spacing: .14em; text-transform: uppercase; color: var(--mist); }
.field input, .field select { width: 100%; min-width: 0; height: 52px; padding: 0 14px; background: var(--pit); border: 1.500px solid var(--rule-2); border-radius: 0; color: var(--fog); font-family: var(--body); font-size: 1rem; transition: border-color .2s; -webkit-appearance: none; appearance: none; }
.field select { background-image: linear-gradient(45deg, transparent 50%, var(--fog) 50%), linear-gradient(135deg, var(--fog) 50%, transparent 50%); background-position: calc(100% - 18px) 23px, calc(100% - 13px) 23px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 30px; }
.field input::placeholder { color: var(--dim); }
@media (hover: hover) { .field input:hover, .field select:hover { border-color: var(--mist); } }
.field input:focus-visible, .field select:focus-visible { outline: none; border-color: var(--flag-ink); box-shadow: 0 0 0 3px rgba(var(--flag-rgb), .3); }
.field input[aria-invalid="true"] { border-color: var(--warn); }
.req__msg { font-family: var(--mono); font-size: .6875rem; letter-spacing: .06em; line-height: 1.6; color: var(--mist); min-height: 1.6em; }
.req__msg.is-ok { color: var(--moss); }
.req__msg.is-err { color: var(--warn); }
.req.is-sent .btn { --bg: var(--moss); --fg: var(--pit); pointer-events: none; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.foot { background: var(--pit); border-top: 1px solid var(--rule); padding-block: 36px calc(40px + env(safe-area-inset-bottom)); }
.foot__inner { display: grid; gap: 14px; }
.foot__line { font-family: var(--display); font-stretch: 66%; font-weight: 900; font-style: italic; text-transform: uppercase; font-size: clamp(2rem, 1.400rem + 3vw, 3.750rem); line-height: .95; color: var(--fog); }
.foot__fine { font-family: var(--mono); font-size: .625rem; letter-spacing: .08em; line-height: 1.7; text-transform: uppercase; color: var(--mist); max-width: 70ch; }
.foot__fine a { color: var(--fog); padding-block: 14px; }
.motion--foot { justify-self: start; margin-left: -2px; }
@media (min-width: 860px) { .foot__inner { grid-template-columns: auto 1fr; align-items: center; column-gap: 40px; } .foot__line { text-align: right; } .motion--foot { justify-self: end; margin: 0 -2px 0 0; } }

/* ==========================================================================
   SCROLL REVEALS
   ========================================================================== */
.js .rv { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease-out), transform 1.100s var(--ease-out); transition-delay: var(--d, 0s); }
.js .rv.is-in { opacity: 1; transform: none; }
.js .rv-lines .mask > span { transform: translateY(108%); transition: transform 1.100s var(--ease-out); }
.js .rv-lines .mask:nth-child(2) > span { transition-delay: .08s; }
.js .rv-lines .mask:nth-child(3) > span { transition-delay: .16s; }
.js .rv-lines .mask:nth-child(4) > span { transition-delay: .24s; }
.js .rv-lines.is-in .mask > span { transform: none; }
.pillars li:nth-child(2), .crew__points li:nth-child(2) { --d: .1s; }
.pillars li:nth-child(3), .crew__points li:nth-child(3) { --d: .2s; }

/* ==========================================================================
   MOBILE NAV
   ========================================================================== */
.nav__end { display: flex; align-items: center; gap: 6px; }
.menu-btn { position: relative; width: 44px; height: 44px; flex: none; margin-right: -10px; background: none; border: 0; }
.menu-btn i { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--fog); transition: transform .4s var(--ease-out), top .4s var(--ease-out); }
.menu-btn i:nth-of-type(1) { top: 17px; }
.menu-btn i:nth-of-type(2) { top: 25px; }
.menu-btn[aria-expanded="true"] i:nth-of-type(1) { top: 21px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] i:nth-of-type(2) { top: 21px; transform: rotate(-45deg); }
.menu { position: fixed; inset: 0; z-index: 79; display: flex; flex-direction: column; gap: 20px; padding: calc(var(--nav-total) + 18px) var(--gr) calc(22px + env(safe-area-inset-bottom, 0px)) var(--gl); background: var(--ink); overflow-y: auto; overscroll-behavior: contain; height: 100vh; height: 100dvh; }
.menu[hidden] { display: none; }
.menu__links { display: grid; margin-bottom: auto; border-top: 1px solid var(--rule-2); }
.menu__links a { display: flex; align-items: baseline; gap: 16px; min-height: 64px; padding: 10px 0 8px; border-bottom: 1px solid var(--rule-2); font-family: var(--display); font-stretch: 62%; font-weight: 900; font-size: clamp(3rem, 17vw, 5.500rem); line-height: .9; text-transform: uppercase; text-decoration: none; color: var(--fog); }
.menu__links a span { font-family: var(--mono); font-stretch: 100%; font-weight: 500; font-size: .6875rem; letter-spacing: .14em; color: var(--flag-ink); width: 2.4em; }
.menu__links a:active { color: var(--flag-ink); }
.menu__foot { font-family: var(--mono); font-size: .625rem; letter-spacing: .14em; text-transform: uppercase; color: var(--mist); }
.js .menu.is-open .menu__links a, .js .menu.is-open .btn, .js .menu.is-open .menu__foot { animation: fadeup .6s var(--ease-out) both; }
.js .menu.is-open .menu__links a:nth-child(2) { animation-delay: .05s; } .js .menu.is-open .menu__links a:nth-child(3) { animation-delay: .1s; }
.js .menu.is-open .menu__links a:nth-child(4) { animation-delay: .15s; } .js .menu.is-open .btn { animation-delay: .22s; } .js .menu.is-open .menu__foot { animation-delay: .28s; }
html.menu-open { overflow: hidden; }
html.menu-open .nav { background: var(--ink); border-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
@media (max-width: 859px) {
  .nav .btn--sm { min-height: 44px; font-size: .8125rem; padding: 0 .95em; }
  .brand__word { font-size: 1.375rem; }
  .brand__mark { width: 26px; height: 26px; }
}
@media (max-width: 359px) { .nav .brand__word { display: none; } .nav .brand { min-width: 44px; } }
@media (min-width: 860px) {
  :root { --nav-h: 68px; }
  .menu-btn, .menu { display: none !important; }
}
@media (hover: hover) and (min-width: 860px) {
  body::after { opacity: .07; mix-blend-mode: overlay; }
}

.eyebrow > span:not(.tick) { white-space: nowrap; }
@media (max-width: 619px) {
  .hero__scrim { background:
    linear-gradient(to top, rgba(5, 7, 6, .97) 0%, rgba(5, 7, 6, .86) 34%, rgba(5, 7, 6, .5) 62%, rgba(5, 7, 6, .18) 80%, rgba(5, 7, 6, .6) 100%); }
  .hero__cta .btn { width: 100%; }
  .hero__cta { gap: 4px 28px; }
  .hero .motion { width: 44px; justify-content: center; margin-right: -12px; }
  .hero .motion__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .steps { gap: 16px; }
  .hero__foot { margin-top: 18px; padding-block: 8px calc(34px + env(safe-area-inset-bottom, 0px)); }
}
/* hero picks the portrait crop on tall screens */
@media (max-aspect-ratio: 4/5) { .hero { background-image: url("../media/hero-oldgrowth-m.jpg"); } }

/* ==========================================================================
   MAP MOCK ON SMALL + TOUCH SCREENS
   ========================================================================== */
@media (pointer: coarse) {
  .chip { min-height: 44px; padding: 0 14px; }
  .textlink { padding-block: 16px; }
}
@media (max-width: 640px) {
  .mapui__bar { height: 36px; padding: 0 10px; gap: 8px; }
  .mapui__tools { display: none; }           /* scrolling drives the mode on a phone */
  .mapui__sub { display: grid; }
  .mapui__sub > * { grid-area: 1 / 1; min-width: 0; }
  .mapui__stats { transition: opacity .3s, visibility 0s; }
  .mapui__stats > div { padding: 6px 8px 7px; }
  .mapui[data-mode="features"] .mapui__stats, .mapui[data-mode="filters"] .mapui__stats { opacity: 0; visibility: hidden; }
  /* filters swap in where the stats were: one 44px row, sideways scroll, no layout shift */
  .mapui__chips { position: static; transform: none; flex-wrap: nowrap; gap: 0; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch; border-bottom: 1px solid var(--rule); -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); }
  .mapui__chips::-webkit-scrollbar { display: none; }
  .mapui__chips .chip { flex: none; min-height: 44px; padding: 0 13px; border: 0; border-right: 1px solid var(--rule); background: none; }
  .mapui__chips .chip:last-child { margin-right: 28px; }
  .mapui__chips .chip[aria-pressed="true"] { background: var(--fog); color: var(--pit); }
  .mapui__chips .chip--flag[aria-pressed="true"] { background: var(--warn); }
  .mapui__chart { height: 50px; }
  .mapui__rec, .mapui__draft { top: 6px; left: auto; right: 6px; padding: 5px 7px; gap: 6px; white-space: nowrap; }
  .mapui__draft span { display: none; }
  .mapui__hint { top: auto; bottom: 6px; right: auto; left: 6px; padding: 5px 7px; }
  .mapui__stage.is-hover .mapui__hint { opacity: 0; }
  .mapui__readout { left: 6px; bottom: 6px; padding: 5px 7px; gap: 10px; }
  .mapui__readout .redact, .c-labels, .mapui__scale { display: none; }
  .mapui__tip { min-width: 132px; padding: 7px 9px 8px; }
  .c-minor { stroke: rgba(226, 232, 216, .11); stroke-width: .6; }
  .c-index { stroke-width: 1.100; }
  .trail { stroke-width: 2.400; }
  .trail-casing { stroke-width: 6; }
  .chapter { min-height: 58vh; min-height: 58svh; padding: 26px 0 30px; gap: 12px; }
  .chapter:last-child { min-height: 64vh; min-height: 64svh; }
  .spec li { padding: 9px 0; }
}
@media (max-width: 420px) { .mapui__title span, .mapui__lock span { display: none; } }

/* short viewports (phones on their side, squat desktop windows): never let the
   sticky map outgrow the screen */
@media (max-height: 620px) and (min-width: 700px) {
  .scrolly { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
  .scrolly__map { order: 2; top: 0; height: 100vh; height: 100svh; padding: calc(var(--nav-total) + 8px) 0 8px; display: flex; flex-direction: column; justify-content: center; background: none; }
  .scrolly__steps { order: 1; }
  .mapui { --map-chrome: 64px; width: 100%; max-width: max(300px, calc((100vh - var(--nav-total) - var(--map-chrome)) * 1.6667 + 44px)); margin-left: auto; }
  .mapui__profile { border-top: 0; }
  .mapui__stats, .mapui__chart, .mapui__note { display: none; }
  .chapter { min-height: 100vh; padding: 0; }
}

/* ==========================================================================
   NO-JS POSTERS (with js, posters are attached lazily from data-poster)
   ========================================================================== */
html:not(.js) .private { background: var(--pit) url("../media/mist-canopy.jpg") center / cover no-repeat; }
html:not(.js) .band { background: var(--pit) url("../media/jump-timber.jpg") center / cover no-repeat; }
html:not(.js) .build__film { background: var(--pit) url("../media/dig-shovel.jpg") center / cover no-repeat; }
html:not(.js) .access { background: var(--pit) url("../media/berm-ferns.jpg") center / cover no-repeat; }
html:not(.js) .motion { display: none; }

/* ==========================================================================
   SHORT PHONES
   ========================================================================== */
/* small phone, short viewport: shrink the sticky map so the chapter under it
   always has room for its heading */
@media (max-width: 640px) and (max-height: 640px) {
  .mapui { max-width: max(220px, calc((100vh - var(--nav-total) - 270px) / .6)); max-width: max(220px, calc((100svh - var(--nav-total) - 270px) / .6)); margin-inline: auto; }
  .mapui__chart { display: none; }
  .scrolly__map { padding: 6px 0 10px; }
}
/* phone on its side: the hero is exactly one screen, CTA included */
@media (max-height: 500px) and (min-width: 480px) {
  .hero { min-height: 100vh; min-height: 100svh; }
  .hero__content { padding-top: calc(var(--nav-total) + 6px); gap: 10px; }
  .hero__title { --fcap: 13vh; --fmin: 1.750rem; margin-top: .1em; }
  .hero__side { grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 20px; }
  .hero__side .lede { font-size: .9375rem; line-height: 1.4; max-width: 62ch; }
  .hero__cta { gap: 0 20px; flex-wrap: nowrap; }
  .hero__cta .btn { width: auto; min-height: 48px; }
  .hero__foot { margin-top: 8px; padding-block: 0 calc(22px + env(safe-area-inset-bottom, 0px)); }
  .hud { display: none; }
}
@media (max-height: 500px) and (min-width: 480px) and (max-width: 700px) { .hero__side .lede { display: none; } .hero__side { grid-template-columns: 1fr; } }

/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .tape__run { animation: none; }
  .js .rv, .js .rv-lines .mask > span, .js .hero .mask > span { opacity: 1; transform: none; }
  .band__ghost > div { transform: none; }
  .motion { display: none; }
}

/* Focus rings that stay visible on filled/pressed controls */
[aria-pressed="true"]:focus-visible { outline-color: var(--fog); }
.btn--ghost[aria-pressed="true"]:focus-visible, .units [aria-pressed="true"]:focus-visible, .unit[aria-pressed="true"]:focus-visible { outline-color: var(--pit); }

/* ---------- legal pages (terms, privacy) ---------- */
.legal { padding-top: calc(var(--nav-total) + clamp(36px, 6vw, 80px)); padding-bottom: clamp(48px, 8vw, 96px); }
.legal__inner { max-width: 760px; margin-inline: auto; display: grid; gap: 14px; }
.legal__title { font-family: var(--display); font-stretch: 62%; font-weight: 900; text-transform: uppercase; line-height: .9; font-size: clamp(2.75rem, 2rem + 5vw, 5rem); margin: .25em 0 0; }
.legal__meta { font-family: var(--mono); font-size: .6875rem; letter-spacing: .14em; text-transform: uppercase; color: var(--flag-ink); }
.legal__note { font-size: .9375rem; color: var(--mist); border-left: 2px solid var(--flag-ink); padding-left: 12px; }
.legal h2 { font-family: var(--display); font-stretch: 75%; font-weight: 800; text-transform: uppercase; font-size: 1.375rem; line-height: 1.1; margin-top: 1.4em; }
.legal h3 { font-family: var(--mono); font-size: .75rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--flag-ink); margin-top: .6em; }
.legal p, .legal li { color: var(--fog); max-width: 70ch; text-wrap: pretty; }
.legal ul { display: grid; gap: 8px; padding-left: 1.2em; list-style: disc; }
.legal li::marker { color: var(--flag-ink); }
.legal a { color: var(--flag-ink); text-underline-offset: 3px; }
