/* Grinnell — Continuous Landscape site.
 * Colours are the exact brand HEX tokens (Brand Guidelines PDF; spec section 7).
 * Typography is a TEMPORARY pairing: the brand guide names no typefaces. Headlines use
 * an editorial serif stack, UI a system sans stack; no third-party font requests.
 * Replace --serif / --sans when the official webfonts are supplied. */
:root {
  --field-black: #0C100E; --bone: #F2EEE6; --ember: #C8622E; --blaze: #E0834A; --rust: #8A4520;
  --sage: #93A399; --moss: #5E6B63; --timber: #141B17; --pine: #22302A; --slate: #3F413E;
  --ok: #8FBF8F;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", "URW Palladio L", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --edge: clamp(16px, 5vw, 84px); /* left text edge (the board's chapter rail was removed) */
  --gutter: clamp(16px, 3vw, 44px);
  --header-h: 84px;
  --U: calc(700vh * var(--pace, 1)); /* usable story track = track height - one viewport (desktop 800vh before holds); --pace from js/pace.js */
}
* { box-sizing: border-box; }
html { background: var(--field-black); color-scheme: dark; scroll-behavior: smooth; }
body { margin: 0; background: var(--field-black); color: var(--bone); font: 400 16px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg { display: block; }
a { color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--bone); color: var(--field-black); padding: 10px 14px; text-decoration: none; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--blaze); outline-offset: 3px; }

/* ---------- header */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 40; height: var(--header-h); display: flex; align-items: center; gap: 36px;
  padding: 0 var(--gutter) 0 var(--edge);
  background: linear-gradient(to bottom, rgba(12,16,14,.82), rgba(12,16,14,0)); }
/* Official emblem + wordmark files side by side, as on the approved board (the stacked lockup is
   below its 120 px minimum width at header height). Gap = wordmark letter height (clear space). */
.brand { display: flex; align-items: center; gap: 16px; text-decoration: none; }
.brand img { width: auto; }
.brand-emblem { height: 48px; }
.brand-word { height: 15px; }
.site-nav { margin-left: auto; display: flex; gap: 30px; font-size: 14px; }
.site-nav a { text-decoration: none; color: var(--bone); opacity: .88; }
.site-nav a:hover { opacity: 1; color: var(--blaze); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 42px; padding: 0 22px;
  font: 500 14px/1 var(--sans); text-decoration: none; cursor: pointer; border-radius: 2px; transition: background-color .15s, color .15s; }
.btn-solid { background: var(--ember); color: var(--bone); border: 1px solid var(--ember); }
.btn-solid:hover { background: var(--blaze); border-color: var(--blaze); }


/* ---------- story track: a pinned stage behind normal-flow chapter sections */
.track { position: relative; }
.stage { position: sticky; top: 0; height: 100vh; margin-bottom: -100vh; overflow: hidden; z-index: 0; background: var(--field-black); }
.stage .poster img, .stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.stage canvas { opacity: 0; }
.js .stage.live canvas { opacity: 1; }
.anchors { position: absolute; inset: 0; pointer-events: none; }
/* Each chapter is pinned for its whole span of the track (--span x --U). Sections overlap
   the previous one by one viewport, so consecutive pins hand over without a scroll gap;
   scroll-driven opacity then decides which chapter's copy is shown. */
/* Chapters overlap by a viewport, so the section boxes themselves must not catch clicks:
   only the visible copy and panels inside the pins do (a later chapter's box otherwise sat
   over an earlier chapter's "Learn more" on phones). */
.chapter { position: relative; z-index: 1; height: calc(var(--span) * var(--U) + 100vh); pointer-events: none; }
.chapter + .chapter, .chapter + .signup { margin-top: -100vh; }
.pin { position: sticky; top: 0; height: 100vh; overflow: hidden; pointer-events: none; }
.pin > * { pointer-events: auto; }

.copy { position: absolute; left: var(--edge); top: 25vh; width: min(32vw, 470px); }
.copy h1, .copy h2 { font-family: var(--serif); font-weight: 500; letter-spacing: -.01em; margin: 0; }
.copy h1 { font-size: clamp(42px, 5.1vw, 78px); line-height: 1.02; }
.copy h2 { font-size: clamp(28px, 2.7vw, 42px); line-height: 1.08; margin: .45em 0 .45em; color: rgba(242,238,230,.94); }
.line { display: block; }
.chapter-hero .copy { top: 17vh; width: min(40vw, 620px); }
/* Soft shade behind the hero and product copy so the landscape dims under the words
   (client review 2026-10-11/12); it lives on .copy, so it fades with the copy. */
.copy::before { content: ""; position: absolute; z-index: -1; pointer-events: none;
  inset: -12vh -22vw -16vh calc(-1 * var(--edge));
  background: radial-gradient(ellipse 62% 58% at 34% 58%, rgba(12,16,14,.9), rgba(12,16,14,.7) 52%, rgba(12,16,14,0) 100%); }
/* Products: tighter and lighter, so the hunter (Prepare) and the elk (Verify) beside
   the copy stay bright. */
.chapter:not(.chapter-hero) .copy::before { inset: -5vh -3vw -3vh calc(-1 * var(--edge));
  background: radial-gradient(ellipse 62% 62% at 42% 50%, rgba(12,16,14,.78), rgba(12,16,14,.55) 55%, rgba(12,16,14,0) 100%); }
.subhead { font-family: var(--serif); font-size: clamp(22px, 2vw, 31px); line-height: 1.2; margin: .3em 0 .8em; }
.copy .body { max-width: 36ch; margin: 0 0 1.1em; color: rgba(242,238,230,.86); font-size: 16px; }
/* Product name: the lead element of each chapter (client review 2026-10-11), with the
   serif line beneath it as the supporting message. */
.label { margin: 0; color: var(--blaze); font: 700 clamp(26px, 2.5vw, 38px)/1 var(--sans); letter-spacing: .16em; text-transform: uppercase;
  display: flex; align-items: center; gap: 14px; }
.label::after { content: ""; width: 44px; height: 2px; background: var(--ember); }
.label-num { display: none; }
.more summary { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; list-style: none; font-size: 14px; color: var(--bone); }
.more summary::-webkit-details-marker { display: none; }
.more-ico { width: 16px; display: inline-grid; place-items: center; }
.more-ico::before { content: "\2192"; font-size: 16px; transition: transform .2s; }
.more[open] .more-ico::before { transform: rotate(90deg); }
.more p { margin: .8em 0 0; max-width: 36ch; color: var(--sage); font-size: 14.5px; }
.scroll-cue { position: absolute; left: 50%; bottom: 9vh; transform: translateX(-50%); margin: 0; display: flex; align-items: center; gap: 12px;
  font-size: 14px; color: var(--bone); }
.cue-arrow { display: inline-block; font-size: 18px; animation: cue 2.2s ease-in-out infinite; }
@keyframes cue { 50% { transform: translateY(4px); } }

/* ---------- product panels (illustrative demo data) */
.panel { position: absolute; right: var(--gutter); top: 26vh; width: min(23vw, 336px); padding: 14px 16px 12px;
  background: rgba(20,27,23,.9); border: 1px solid rgba(63,65,62,.9); border-radius: 4px; font-size: 13px;
  box-shadow: 0 18px 50px rgba(0,0,0,.35); backdrop-filter: blur(3px); }
.panel-title { margin: 0 0 12px; font: 500 14px/1.2 var(--sans); display: flex; justify-content: space-between; gap: 8px; }
.panel-sub { color: var(--sage); font-weight: 400; font-size: 12px; }
.panel-tag { margin: 10px 0 0; color: var(--moss); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; }
.panel table { width: 100%; border-collapse: collapse; }
.panel th { color: var(--sage); font-weight: 400; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; text-align: left; padding: 0 4px 6px 0;
  border-bottom: 1px solid var(--pine); }
.panel td { padding: 7px 4px 7px 0; border-bottom: 1px solid rgba(34,48,42,.6); }
.panel tr.selected td { color: var(--bone); }
.panel tr.selected td:first-child { box-shadow: inset 2px 0 0 var(--ember); padding-left: 6px; }
.ev-high { color: var(--ok); } .ev-mid { color: var(--blaze); } .ev-low { color: var(--ember); }
.tabs { display: flex; gap: 12px; list-style: none; margin: 0 0 10px; padding: 0; font-size: 11.5px; color: var(--sage); }
.tabs .on { color: var(--bone); border-bottom: 1px solid var(--ember); }
.areas { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.areas li { display: grid; grid-template-columns: 56px 1fr 26px; align-items: center; gap: 10px; }
.areas .bar { height: 5px; background: var(--pine); border-radius: 3px; overflow: hidden; }
.areas .bar i { display: block; height: 100%; background: var(--sage); }
.areas li.selected .bar i { background: var(--ember); }
.areas b { font-weight: 500; text-align: right; }
.readiness { display: grid; grid-template-columns: 76px 1fr; gap: 16px; align-items: center; }
.dial { width: 76px; height: 76px; }
.dial circle { fill: none; stroke-width: 5; }
.dial-bg { stroke: var(--pine); }
.dial-fg { stroke: var(--sage); transform: rotate(-90deg); transform-origin: 50% 50%; stroke-linecap: round; }
.dial text { fill: var(--bone); font: 500 15px var(--sans); }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.checks li { display: grid; grid-template-columns: 16px 1fr 16px; gap: 8px; align-items: center; }
.ico { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.ico-ring { color: var(--sage); } .ico-check { color: var(--ok); }
.spark { display: flex; align-items: flex-end; gap: 4px; height: 28px; margin-top: 12px; }
.spark i { flex: 1; background: var(--moss); border-radius: 1px; }
.spark i:last-child { background: var(--sage); }
.status { display: grid; grid-template-columns: 28px 1fr; gap: 10px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--pine); }
.status-ico { width: 26px; height: 26px; border: 1.5px solid var(--blaze); border-radius: 50%; display: grid; place-items: center; color: var(--ok); }
.status b { color: var(--ok); font-weight: 500; }
.status p { margin: 2px 0 0; color: rgba(242,238,230,.85); font-size: 12.5px; }

/* ---------- anchored callouts (positions exported from Blender per sample) */
.callout { position: absolute; transform: translate(-50%, calc(-100% - 10px)); display: flex; align-items: center; gap: 8px; opacity: 0;
  padding: 7px 11px; background: rgba(12,16,14,.88); border: 1px solid rgba(94,107,99,.8); border-radius: 3px;
  font: 500 11px/1.2 var(--sans); letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.callout::before { content: ""; width: 9px; height: 9px; border: 2px solid var(--blaze); border-radius: 50% 50% 50% 0; transform: rotate(-45deg); }
.tick { position: absolute; transform: translate(-50%, 8px); font: 700 17px var(--sans); letter-spacing: .04em; color: var(--blaze); opacity: 0;
  text-shadow: 0 1px 2px rgba(0,0,0,.95), 0 0 10px rgba(0,0,0,.85); }
.tick-unit {font-size: 11px; font-weight: 600; letter-spacing: .08em; color: var(--sage); }

/* ---------- signup: final normal-flow section; the pin releases with it */
.signup { position: relative; z-index: 1; min-height: 100vh; display: flex; align-items: flex-end; justify-content: center;
  padding: 0 var(--gutter) 9vh var(--edge); text-align: center; }
.signup-inner { width: min(980px, 100%); }
.signup h2 { font: 500 clamp(32px, 3.4vw, 52px)/1.08 var(--serif); margin: 0 0 .25em; }
.signup .body { color: rgba(242,238,230,.86); margin: 0 0 22px; }
.signup-form { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.field input { width: 230px; height: 46px; padding: 0 14px; background: rgba(20,27,23,.85); border: 1px solid var(--slate); border-radius: 2px;
  color: var(--bone); font: 15px var(--sans); }
.field input::placeholder { color: var(--sage); }
.field input:focus { border-color: var(--blaze); outline: none; }
.field input[aria-invalid="true"] { border-color: var(--ember); }
.signup-form .btn { height: 46px; padding: 0 26px; }
.hp { position: absolute; left: -9999px; }
.form-status { min-height: 1.5em; margin: 14px 0 0; font-size: 14.5px; }
.form-status.ok { color: var(--ok); } .form-status.err { color: var(--blaze); }
.privacy { display: inline-flex; align-items: center; gap: 8px; margin: 6px 0 0; color: var(--sage); font-size: 13px; }
.site-footer { position: relative; z-index: 1; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  padding: 26px var(--gutter) 30px var(--edge); border-top: 1px solid rgba(34,48,42,.8);
  color: var(--moss); font-size: 12.5px; background: var(--field-black); }
.site-footer p { margin: 0; }

/* ---------- fallbacks: no JS, reduced motion, or frame loading failed -> chapter posters */
.pin-poster { display: none; }
.no-js .pin-poster, .poster-mode .pin-poster { display: block; position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.pin-poster img { width: 100%; height: 100%; object-fit: cover; }
.no-js .chapter .pin, .poster-mode .chapter .pin { background: var(--field-black); isolation: isolate; }
.signup { isolation: isolate; }
.poster-mode .stage canvas { display: none; }

/* ---------- mobile: 9:16 renders, copy in a card under the subject */
@media (max-width: 760px), (orientation: portrait) {
  :root { --edge: 16px; --header-h: 66px; --U: calc(660vh * var(--pace, 1)); }
  .site-nav { display: none; }
  .site-header { gap: 12px; }
  .brand { gap: 10px; }
  .brand-emblem { height: 34px; }
  .brand-word { height: 11px; }
  .header-cta { margin-left: auto; min-height: 36px; padding: 0 12px; font-size: 13px; white-space: nowrap; }
  /* Three bands: compact panel under the header, the subject clear in the middle, copy at the bottom. */
  .pin { display: flex; flex-direction: column; justify-content: space-between; gap: 12px; padding: calc(var(--header-h) + 6px) 16px 20px; }
  .pin::before { content: ""; position: absolute; inset: 58% 0 0 0; background: linear-gradient(to bottom, rgba(12,16,14,0), rgba(12,16,14,.88) 40%); z-index: -1; }
  .pin .panel { order: -1; }
  .pin .copy { margin-top: auto; }
  .chapter:not(.chapter-hero) .copy::before { display: none; }  /* phones: the bottom band above already shades it */
  .copy, .chapter-hero .copy { position: relative; left: auto; top: auto; width: auto; }
  .copy h1 { font-size: clamp(36px, 10.5vw, 48px); }
  .copy .body { font-size: 15px; margin-bottom: .7em; }
  .chapter-hero .pin { justify-content: flex-start; padding-top: calc(var(--header-h) + 14px); }
  .chapter-hero .pin::before { inset: 0 0 50% 0; background: linear-gradient(to top, rgba(12,16,14,0), rgba(12,16,14,.75) 55%); }
  .panel { position: relative; right: auto; top: auto; width: 100%; padding: 8px 11px; font-size: 11.5px; max-height: 27vh; overflow: hidden;
    background: rgba(20,27,23,.82); }
  .panel-title { margin-bottom: 6px; font-size: 12.5px; }
  .panel th { padding-bottom: 3px; }
  .panel td { padding: 2px 4px 2px 0; }
  .panel .spark, .panel .tabs, .panel-tag, .ico-ring { display: none; }
  .areas { gap: 4px; }
  .checks { grid-template-columns: repeat(3, 1fr); gap: 3px 10px; }
  .checks li { grid-template-columns: 1fr 14px; gap: 4px; }
  .readiness { grid-template-columns: 54px 1fr; gap: 10px; }
  .dial { width: 54px; height: 54px; }
  .status { margin-top: 6px; padding-top: 6px; grid-template-columns: 22px 1fr; }
  .status-ico { width: 20px; height: 20px; }
  .status p { font-size: 11px; }
  .label { font-size: clamp(22px, 6.4vw, 28px); gap: 10px; }
  .label::after { width: 28px; }
  .copy h2 { font-size: clamp(23px, 6.4vw, 28px); margin: .35em 0 .35em; }
  .tick { font-size: 14px; }
  .copy .body { font-size: 14.5px; line-height: 1.45; }
  .scroll-cue { bottom: auto; top: 38vh; } /* the hero copy fills the bottom band on phones */
  .signup { align-items: flex-end; padding: 0 16px 8vh; }
  .field, .field input, .signup-form .btn { width: 100%; }
  .site-footer { padding: 22px 16px 28px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cue-arrow { animation: none; }
  .btn, .more-ico::before { transition: none; }
}
