/* Stockpile. Newsprint, near-black and brass, with the app's own colours
   inside [data-ui] fragments. One typeface, a few sizes, flat fields. */

:root {
  --bg: #e8e8e3;
  --surface: #dcdcd6;
  --surface-2: #d1d1ca;
  --ink: #181715;
  --muted: #55544e;
  --accent: #bfb21a;
  --accent-hi: #d1c31f;
  --accent-ink: #181715;
  --field: #181715;
  --field-2: #22211e;
  --field-ink: #e8e8e3;
  --field-muted: #a9a8a0;

  --ui-bg: #121211;
  --ui-panel: #1d1c1a;
  --ui-line: #34332f;
  --ui-text: #f2f2ee;
  --ui-dim: #a3a29a;
  --good: #35d07f;
  --red: #e53935;

  --font: 'Clash Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --step-small: clamp(0.875rem, 0.85rem + 0.1vw, 0.9375rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2.25rem, 1.3rem + 3.6vw, 4.5rem);
  --step-display: clamp(3rem, 1.2rem + 7.4vw, 9.5rem);

  --m: clamp(20px, 3vw, 40px);
  --gap-sec: clamp(110px, 13vw, 190px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: var(--step-body); font-weight: 400; line-height: 1.45;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img, video, canvas, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
h1, h2, h3 { margin: 0; font-weight: 400; letter-spacing: -0.035em; line-height: 0.96; text-wrap: balance; }
p { margin: 0; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 80; background: var(--accent); color: var(--accent-ink); padding: 10px 16px; }
.skip:focus { left: 8px; }
.shell { padding-inline: var(--m); max-width: 1440px; margin-inline: auto; }
.sec { padding-block: var(--gap-sec) 0; }
.small { font-size: var(--step-small); color: var(--muted); }

/* scroll progress, a filled bar */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 70; pointer-events: none; }
.progress i { display: block; height: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 16px var(--m);
  color: var(--field-ink);
  transition: background-color 300ms var(--ease), color 300ms var(--ease), transform 400ms var(--ease);
}
.nav.solid { background: var(--field); }
.nav.hide { transform: translateY(-100%); }
.mark { font-weight: 500; font-size: 1.25rem; letter-spacing: -0.01em; text-decoration: none; color: inherit; }
.nav-links { display: flex; gap: 32px; font-size: var(--step-small); }
.nav-links a { text-decoration: none; padding: 8px 0; }
.nav-links a:hover { text-decoration: underline; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 0 30px;
  background: var(--accent); color: var(--accent-ink);
  font: inherit; font-weight: 500; text-decoration: none; border: 0; cursor: pointer;
  transition: transform 160ms var(--ease), background-color 200ms var(--ease);
}
.btn:hover { background: var(--accent-hi); }
.btn:active { transform: translateY(2px); }
.btn-sm { min-height: 44px; padding: 0 20px; font-size: var(--step-body); }
.btn-ghost { background: transparent; color: var(--field-ink); border: 2px solid var(--field-ink); }
.btn-ghost:hover { background: var(--field-ink); color: var(--field); }

/* ---------- 1. hero ---------- */
.hero {
  position: relative; min-height: max(100svh, 700px); overflow: hidden;
  background: var(--field); color: var(--field-ink);
  display: grid; grid-template-rows: 1fr auto auto; align-content: end;
  padding: 0 var(--m) 32px;
}
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-copy { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 26px; max-width: 62rem; align-self: end; padding-top: 120px; }
.hero h1 { font-size: var(--step-display); line-height: 0.88; letter-spacing: -0.045em; }
.mask > span { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.mask > span > span { display: block; }
.hero-sub { font-size: var(--step-lead); line-height: 1.3; max-width: 34ch; }
.hero-act { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-tag {
  position: absolute; left: 0; top: 0; z-index: 3; pointer-events: none; opacity: 0;
  display: flex; flex-direction: column; gap: 2px; padding: 12px 16px 12px 18px;
  background: var(--ui-bg); color: var(--ui-text); border-radius: 8px;
  margin: -78px 0 0 28px; will-change: transform;
}
.hero-tag::before { content: ''; position: absolute; left: -28px; bottom: -2px; width: 28px; height: 28px; border-bottom: 3px solid var(--accent); border-left: 3px solid var(--accent); transform: translateY(-4px); } /* taste-skill-ignore: leader line of a 3D tag */
.tag-num { font-size: 1.75rem; font-weight: 500; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.tag-band { font-size: 0.8125rem; color: var(--good); }
.nojs { position: relative; z-index: 3; margin-top: 16px; font-size: var(--step-small); color: var(--field-muted); }

/* ---------- 2. marquee ---------- */
.marquee { background: var(--accent); color: var(--accent-ink); overflow: hidden; padding: clamp(28px, 4vw, 56px) 0; display: grid; gap: clamp(10px, 1.6vw, 24px); }
.m-row { display: flex; align-items: center; gap: clamp(24px, 4vw, 64px); width: max-content; font-size: var(--step-display); letter-spacing: -0.045em; line-height: 0.95; white-space: nowrap; will-change: transform; }
.m-row.alt { color: transparent; -webkit-text-stroke: 2px var(--accent-ink); }
.m-row i { width: 0.22em; height: 0.22em; border-radius: 50%; background: currentColor; flex: none; }
.m-row.alt i { background: var(--accent-ink); }

/* ---------- 3. statement ---------- */
.statement .shell { max-width: 1280px; }
.scrub { display: grid; gap: 0.12em; font-size: clamp(1.9rem, 0.6rem + 5.4vw, 6.25rem); line-height: 1; letter-spacing: -0.04em; max-width: 16em; }
.state-foot { margin-top: 56px; max-width: 36ch; font-size: var(--step-lead); line-height: 1.3; }
.scrub .w { color: #66655f; transition: color 280ms var(--ease), background-color 280ms var(--ease); }
.scrub .w.on { color: var(--ink); }
.scrub mark { background: none; color: inherit; }
.scrub mark .w.on { background: var(--accent); }

/* ---------- 4. story ---------- */
.story-section { margin-top: var(--gap-sec); background: var(--field); color: var(--field-ink); }
.story { height: 520vh; position: relative; }
.story-stage { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.story-gl { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.story-caps { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.story-cap { pointer-events: auto; }
.story-cap { position: absolute; top: clamp(84px, 14vh, 140px); left: var(--m); display: grid; gap: 14px; opacity: 0; visibility: hidden; transform: translateY(18px); transition: opacity 150ms linear, transform 150ms linear, visibility 0s 150ms; }
.story-cap.on { opacity: 1; visibility: visible; transform: none; transition: opacity 420ms var(--ease) 160ms, transform 520ms var(--ease) 160ms, visibility 0s; }
.cap-big { font-size: var(--step-display); letter-spacing: -0.045em; line-height: 0.9; max-width: 8ch; }
.cap-sub { font-size: var(--step-lead); color: var(--field-ink); max-width: 20ch; line-height: 1.25; }
.story-readout { position: absolute; left: 50%; transform: translateX(-50%); bottom: clamp(28px, 6vh, 64px); display: grid; justify-items: center; gap: 10px; opacity: 0; padding: 22px clamp(24px, 4vw, 56px); background: rgba(24, 23, 21, 0.72); border-radius: 14px; }
.story-dims { display: flex; gap: 28px; font-size: var(--step-small); color: var(--field-muted); }
.story-dims b { color: var(--field-ink); font-weight: 500; font-variant-numeric: tabular-nums; font-size: 1.125rem; }
.story-vol { display: flex; align-items: baseline; gap: 10px; }
.big-num { font-size: var(--step-display); line-height: 0.9; letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }
.story-unit { font-size: var(--step-lead); color: var(--field-muted); }
.story-band { font-size: var(--step-body); color: var(--good); }
.story-hint { position: absolute; right: var(--m); bottom: 32px; display: flex; align-items: center; gap: 14px; font-size: var(--step-small); color: var(--field-muted); pointer-events: none; }
.story-hint i { display: block; width: 120px; height: 3px; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; }
.story-hint.dark { color: var(--accent-ink); }
.story-hint.dark i { background: var(--accent-ink); }
.story-still { display: none; margin: 0; padding: 60px var(--m); }
.story-still img { width: 100%; max-width: 1000px; height: auto; margin-inline: auto; }
.story-still figcaption { max-width: 60ch; margin: 16px auto 0; font-size: var(--step-small); color: var(--field-muted); }
.story-section:not(.story-live) .story { display: none; }
.story-section:not(.story-live) .story-still { display: block; }

/* ---------- 5. phone ---------- */
.phone-section { background: var(--accent); color: var(--accent-ink); }
.phone-track { height: 330vh; position: relative; }
.phone-stage { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.phone-gl { position: absolute; inset: 0; width: 100%; height: 100%; }
.phone-copy { position: absolute; z-index: 2; left: var(--m); top: 50%; transform: translateY(-50%); max-width: 36rem; display: grid; gap: 36px; }
.phone-copy h2 { font-size: var(--step-head); }
.beats { position: relative; min-height: 15rem; }
.pb { position: absolute; inset: 0 auto auto 0; display: grid; gap: 10px; opacity: 0; visibility: hidden; transform: translateY(16px); transition: opacity 150ms linear, transform 150ms linear, visibility 0s 150ms; }
.pb.on { opacity: 1; visibility: visible; transform: none; transition: opacity 420ms var(--ease) 160ms, transform 520ms var(--ease) 160ms, visibility 0s; }
.pb b { font-size: clamp(2rem, 1.2rem + 2.4vw, 3.5rem); font-weight: 500; letter-spacing: -0.04em; line-height: 1; }
.pb p { max-width: 34ch; font-size: var(--step-lead); line-height: 1.3; }
.phone-note { font-size: var(--step-small); }
.phone-section:not(.phone-live) .phone-track { height: auto; }
.phone-section:not(.phone-live) .phone-stage { position: static; height: auto; padding: 80px var(--m); }
.phone-section:not(.phone-live) .phone-gl { display: none; }
.phone-section:not(.phone-live) .phone-copy { position: static; transform: none; }
.phone-section:not(.phone-live) .pb { position: static; opacity: 1; transform: none; margin-bottom: 24px; }
.phone-section:not(.phone-live) .beats { min-height: 0; }

/* ---------- 6. try it ---------- */
.try-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.try-copy { display: grid; gap: 26px; }
.try-copy h2 { font-size: var(--step-display); line-height: 0.88; }
.try-copy p { max-width: 34ch; font-size: var(--step-lead); line-height: 1.3; }
.try-copy .small { font-size: var(--step-small); }

.capture { position: relative; width: min(640px, 100%); justify-self: end; aspect-ratio: 1; background: var(--ui-bg); border-radius: 24px; overflow: hidden; color: var(--ui-text); user-select: none; touch-action: pan-y; }
.capture canvas { width: 100%; height: 100%; cursor: grab; }
.capture canvas:active { cursor: grabbing; }
.capture canvas:focus-visible { outline: 2px solid var(--accent); outline-offset: -4px; }
.cap-hud { position: absolute; top: 16px; left: 16px; right: 16px; display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 8px; background: rgba(0, 0, 0, 0.62); }
.cap-gauge { flex: 1; height: 6px; background: #3a3936; border-radius: 3px; overflow: hidden; }
.cap-gauge i { display: block; height: 100%; width: 0; background: var(--accent); transition: width 200ms linear; }
.cap-pct { min-width: 6.4em; text-align: right; font-size: 0.9375rem; font-weight: 500; font-variant-numeric: tabular-nums; color: var(--accent); }
.cap-map { position: absolute; right: 16px; top: 80px; width: 68px; height: 68px; background: rgba(0, 0, 0, 0.62); border-radius: 8px; }
.cap-foot { position: absolute; left: 16px; right: 16px; bottom: 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cap-read { font-size: 0.875rem; color: var(--ui-dim); font-variant-numeric: tabular-nums; }
.cap-finish, .cap-again { min-height: 44px; padding: 0 22px; border: 0; border-radius: 8px; font: inherit; font-size: 0.9375rem; font-weight: 500; background: var(--good); color: #062612; cursor: pointer; transition: transform 140ms var(--ease), background-color 200ms; }
.cap-high { min-height: 44px; padding: 0 16px; border: 0; border-radius: 8px; font: inherit; font-size: 0.9375rem; font-weight: 500; background: #2b2a27; color: var(--ui-text); cursor: pointer; transition: background-color 200ms var(--ease), color 200ms var(--ease), transform 140ms var(--ease); margin-left: auto; }
.cap-high:hover { background: #3a3936; }
.cap-high:active { transform: translateY(1px); }
.cap-high[aria-pressed='true'] { background: var(--accent); color: var(--accent-ink); }
.cap-finish:disabled { background: #3a3936; color: #8c8b84; cursor: not-allowed; }
.cap-finish:not(:disabled):active, .cap-again:active { transform: translateY(1px); }
.cap-result { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 10px; padding: 36px; background: rgba(18, 18, 17, 0.92); }
.cap-result[hidden] { display: none; }
.r-label { font-size: 0.9375rem; color: var(--ui-dim); }
.r-num { font-size: clamp(3.25rem, 2rem + 3.4vw, 5rem); line-height: 1; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.r-num small { font-size: 0.4em; color: var(--ui-dim); letter-spacing: 0; }
.r-band { display: flex; align-items: center; gap: 10px; font-size: 1.0625rem; }
.r-band b { font-weight: 500; font-size: 0.8125rem; padding: 3px 8px; border-radius: 4px; background: var(--good); color: #062612; }
.r-cover { font-size: 0.9375rem; color: var(--ui-dim); margin-bottom: 10px; }
.cap-again { background: var(--ui-text); color: var(--ui-bg); }

/* ---------- 7. result ---------- */
.showcase { background: var(--field); color: var(--field-ink); margin-top: var(--gap-sec); padding-block: var(--gap-sec); }
.showcase .shell { display: flex; flex-direction: column; align-items: flex-start; }
.sc-head { display: grid; gap: 22px; margin-bottom: 48px; }
.sc-head h2, .rep-h, .yard h2 { font-size: var(--step-head); }
.sc-head p { max-width: 46ch; font-size: var(--step-lead); line-height: 1.3; }
.result { display: grid; grid-template-columns: 62fr 38fr; width: min(1120px, 100%); min-height: 620px; border-radius: 16px; overflow: hidden; color: var(--ui-text); }
.res-view { position: relative; background: var(--ui-bg); min-height: 420px; }
.res-view canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; touch-action: pan-y; }
.res-view canvas:active { cursor: grabbing; }
.res-read { position: absolute; top: 24px; left: 28px; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.res-read .r-num { font-size: clamp(2.75rem, 1.6rem + 2.6vw, 4.25rem); }
.r-ton { font-size: 0.9375rem; color: var(--ui-dim); }
.res-scale { position: absolute; right: 24px; bottom: 22px; font-size: 0.875rem; color: var(--ui-dim); padding-top: 6px; border-top: 2px solid var(--ui-dim); min-width: 60px; text-align: center; } /* taste-skill-ignore: scale bar */
.res-ctl { background: var(--ui-panel); padding: 20px 22px 22px; display: flex; flex-direction: column; }
.res-ctl .row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; border-bottom: 1px solid var(--ui-line); font-size: 1rem; cursor: pointer; } /* taste-skill-ignore: inside a data-ui fragment */
.seg { display: inline-flex; background: #2b2a27; border-radius: 8px; padding: 3px; gap: 2px; }
.seg button { min-height: 36px; padding: 0 14px; border: 0; border-radius: 6px; background: transparent; color: var(--ui-dim); font: inherit; font-size: 0.9375rem; font-weight: 500; cursor: pointer; transition: background-color 180ms var(--ease), color 180ms var(--ease), transform 140ms var(--ease); }
.seg button:hover { color: var(--ui-text); }
.seg button:active { transform: translateY(1px); }
.seg button[aria-pressed='true'] { background: var(--ui-text); color: var(--ui-bg); }
.tog { appearance: none; -webkit-appearance: none; width: 48px; height: 30px; margin: 0; flex: none; border-radius: 15px; background: #3a3936; position: relative; cursor: pointer; transition: background-color 200ms var(--ease); }
.tog::after { content: ''; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: var(--ui-text); transition: transform 220ms var(--ease); }
.tog:checked { background: var(--good); }
.tog:checked::after { transform: translateX(18px); }
.res-ctl select { max-width: 62%; min-height: 40px; padding: 0 10px; background: #2b2a27; color: var(--ui-text); border: 1px solid var(--ui-line); border-radius: 6px; font: inherit; font-size: 0.9375rem; }
.res-link { margin-top: auto; padding-top: 22px; font-size: 0.9375rem; }
.sc-foot { margin-top: 24px; font-size: var(--step-small); color: var(--field-muted); max-width: 60ch; }

/* ---------- 8. report ---------- */
.rep-head { display: grid; gap: 22px; margin-bottom: 64px; }
.rep-head h2 { font-size: var(--step-head); }
.rep-head p { max-width: 46ch; font-size: var(--step-lead); line-height: 1.3; }
.sheet-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 620px) minmax(0, 1fr); column-gap: clamp(24px, 4vw, 64px); align-items: center; }
.sheet-row + .sheet-row { margin-top: 72px; }
.rep-notes { display: flex; flex-direction: column; gap: 40px; }
.sheet-row > .rep-notes:first-child { align-items: flex-end; text-align: right; }
.note { display: flex; flex-direction: column; gap: 4px; max-width: 28ch; padding: 0; border: 0; background: none; text-align: inherit; font: inherit; color: var(--ink); cursor: pointer; }
.sheet-row > .rep-notes:first-child .note { align-items: flex-end; }
.note b { font-weight: 500; font-size: var(--step-body); }
.note span { font-size: var(--step-small); color: var(--muted); line-height: 1.4; }
.note::before { content: ''; width: 28px; height: 4px; background: var(--surface-2); margin-bottom: 8px; transition: background-color 180ms var(--ease), width 220ms var(--ease); }
.note.on::before, .note:hover::before, .note:focus-visible::before { background: var(--accent); width: 48px; }
.sheet { position: relative; margin: 0; background: #fff; }
.sheet .hot-clip { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.sheet img { width: 100%; height: auto; }
.sheet figcaption { position: absolute; left: 0; bottom: -30px; font-size: var(--step-small); color: var(--muted); }
.hot { position: absolute; left: var(--x); top: var(--y); width: var(--w); height: var(--h); border-radius: 10px; pointer-events: none; opacity: 0; box-shadow: 0 0 0 3px var(--accent), 0 0 0 9999px rgba(24, 23, 21, 0.28); transition: opacity 220ms var(--ease); } /* taste-skill-ignore: highlight on a real report page */
.hot.lit { opacity: 1; }

/* ---------- 9. modes: a horizontal ride ---------- */
.modes { margin-top: var(--gap-sec); background: var(--field); color: var(--field-ink); height: 360vh; position: relative; }
.hs-stick { position: sticky; top: 0; height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: clamp(24px, 5vh, 56px); }
.hs-head { padding-inline: var(--m); display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.hs-head h2 { font-size: var(--step-head); }
.hs-head p { max-width: 30ch; font-size: var(--step-lead); line-height: 1.3; }
.hs-track { display: flex; gap: clamp(16px, 2vw, 32px); padding-inline: var(--m); width: max-content; will-change: transform; }
.mode { width: min(62vw, 760px); background: var(--field-2); border-radius: 4px; padding: clamp(20px, 2.4vw, 36px); display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(16px, 2vw, 32px); align-items: center; }
.glyph svg { width: 100%; height: auto; overflow: visible; }
.glyph svg .pile { transition: transform 700ms var(--ease); transform-origin: 50% 80%; }
.mode:hover .glyph svg .pile { transform: translateY(-6px) scale(1.03); }
.mode-t { display: grid; gap: 14px; align-self: end; }
.mode-t h3 { font-size: clamp(1.75rem, 1.2rem + 1.8vw, 3rem); }
.mode-t p { font-size: var(--step-body); color: var(--field-ink); max-width: 28ch; }
.hs-bar { margin-inline: var(--m); height: 3px; background: var(--field-2); }
.hs-bar i { display: block; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; }

/* ---------- 10. honest ---------- */
.honest-h { font-size: var(--step-head); margin-bottom: 56px; }
.plates { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.plate { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 24px; align-items: center; padding: clamp(24px, 3.4vw, 48px); background: var(--ui-bg); color: var(--ui-text); }
.plate-w { display: flex; align-items: center; gap: 0.3em; font-size: var(--step-head); letter-spacing: -0.045em; line-height: 0.95; }
.plate.good .plate-w { color: var(--good); }
.plate.brass .plate-w { color: var(--accent); }
.plate.red .plate-w { color: #ff6b66; }
.plate p { font-size: var(--step-lead); line-height: 1.3; max-width: 28ch; }
.honest-foot { margin-top: 40px; font-size: var(--step-lead); max-width: 40ch; }

/* ---------- 11. yard ---------- */
.yard { background: var(--field); color: var(--field-ink); margin-top: var(--gap-sec); padding-block: var(--gap-sec); }
.yard h2 { margin-bottom: 56px; }
.yard-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 28px 24px; }
.yard figure { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.yard figcaption { font-size: var(--step-small); color: var(--field-muted); }
.ph { overflow: hidden; background: var(--field-2); }
.ph img, .ph video { width: 100%; height: 100%; object-fit: cover; }
.y-a { grid-column: 1 / span 8; } .y-a .ph { aspect-ratio: 3 / 2; }
.y-b { grid-column: 9 / span 4; } .y-b .ph { aspect-ratio: 3 / 4; }
.y-claims { grid-column: 1 / span 4; display: flex; flex-direction: column; gap: 22px; padding-top: 12px; }
.y-claims p { max-width: 36ch; }
.y-claims b { font-weight: 500; color: var(--accent); }
.y-c { grid-column: 5 / span 5; } .y-c .ph { aspect-ratio: 16 / 9; }
.y-d { grid-column: 10 / span 3; align-self: end; } .y-d .ph { aspect-ratio: 4 / 5; } .y-d img { object-position: 30% 50%; }
.y-e { grid-column: 5 / span 8; } .y-e .ph { aspect-ratio: 21 / 8; }
.who { margin-top: 72px; display: grid; gap: 22px; }
.who-h { font-size: var(--step-lead); max-width: 22ch; line-height: 1.2; }
.who ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.who li { display: flex; align-items: center; min-height: 64px; padding: 14px 22px; background: var(--field-2); transition: background-color 200ms var(--ease), color 200ms var(--ease); }
.who li:hover { background: var(--accent); color: var(--accent-ink); }

/* ---------- 12. materials ---------- */
.mats-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 56px; }
.mats-top h2 { font-size: var(--step-head); }
.soft { color: var(--muted); }
.mats-body { display: grid; grid-template-columns: 190px 1fr; gap: 40px; }
.tabs { display: flex; flex-direction: column; gap: 6px; align-self: start; position: sticky; top: 24px; }
.tabs button { display: flex; flex-direction: column; justify-content: center; gap: 2px; min-height: 72px; padding: 0 16px; text-align: left; border: 0; background: var(--surface); color: var(--ink); font: inherit; cursor: pointer; transition: background-color 200ms var(--ease), color 200ms var(--ease); }
.tabs button:hover { background: var(--surface-2); }
.tabs button b { font-weight: 500; font-size: 1rem; }
.tabs button span { font-size: 0.875rem; color: var(--muted); }
.tabs button[aria-selected='true'] { background: var(--ink); color: var(--bg); }
.tabs button[aria-selected='true'] span { color: var(--field-muted); }
.bands ul[hidden] { display: none; }
.bands ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.bands li { display: grid; grid-template-columns: 7.5rem 1fr auto; align-items: center; gap: 16px; min-height: 80px; padding: 12px 22px; background: var(--surface); transition: background-color 180ms var(--ease), transform 220ms var(--ease); }
.bands li:nth-child(even) { background: var(--surface-2); }
.bands li:hover { background: #c4c4bc; transform: translateX(6px); }
.bands .d { font-size: 1.375rem; font-variant-numeric: tabular-nums; }
.bands .d::after { content: ' t/m³'; font-size: 0.875rem; color: var(--muted); }
.bands .n { display: flex; flex-direction: column; gap: 2px; font-size: var(--step-body); font-weight: 500; }
.bands .n small { font-size: 0.875rem; font-weight: 400; color: var(--muted); }
.bands .w { font-size: 1.375rem; font-variant-numeric: tabular-nums; text-align: right; }
.bands-note { margin-top: 22px; font-size: var(--step-small); color: var(--muted); max-width: 70ch; }

/* ---------- 13. faq ---------- */
.faq { background: var(--field); color: var(--field-ink); margin-top: var(--gap-sec); padding-block: var(--gap-sec); }
.faq-grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; align-items: start; }
.faq h2 { grid-column: 1 / span 4; position: sticky; top: 110px; font-size: var(--step-head); }
.tiles { grid-column: 5 / span 8; display: flex; flex-direction: column; gap: 8px; }
.tiles details { background: var(--field-2); color: var(--field-ink); transition: background-color 220ms var(--ease), color 220ms var(--ease); }
.tiles summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 80px; padding: 18px 26px; font-size: var(--step-lead); font-weight: 500; letter-spacing: -0.01em; }
.tiles summary::-webkit-details-marker { display: none; }
.tiles summary { position: relative; padding-right: 76px; }
.tiles summary::before, .tiles summary::after { content: ''; position: absolute; right: 26px; top: 50%; width: 18px; height: 3px; margin-top: -1.5px; background: currentColor; transition: transform 260ms var(--ease); }
.tiles summary::after { transform: rotate(90deg); }
.tiles details[open] { background: var(--accent); color: var(--accent-ink); }
.tiles details[open] summary::after { transform: rotate(0deg); }
.tiles details:not([open]) summary:hover { background: #2b2a27; }
.tiles details p { padding: 0 26px 28px; max-width: 56ch; font-size: var(--step-body); }
.tiles details a { color: inherit; }

/* ---------- 14. join ---------- */
.join { background: var(--accent); color: var(--accent-ink); min-height: 92svh; display: flex; align-items: stretch; }
.join-grid { width: 100%; display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; padding-block: 48px; }
.join-copy { grid-column: 1 / span 6; align-self: end; display: flex; flex-direction: column; gap: 26px; }
.close { font-size: var(--step-display); line-height: 0.88; letter-spacing: -0.05em; }
.join-copy p { max-width: 40ch; font-size: var(--step-body); }
.dialog { grid-column: 8 / span 5; align-self: center; justify-self: center; width: min(460px, 100%); background: var(--ui-panel); color: var(--ui-text); border-radius: 18px; padding: 28px; display: flex; flex-direction: column; gap: 22px; box-shadow: 0 28px 70px rgba(24, 23, 21, 0.4); } /* taste-skill-ignore: a dialog floats */
.dlg-title { font-size: 1.375rem; font-weight: 500; }
.dlg-field { display: flex; flex-direction: column; gap: 8px; font-size: 0.9375rem; color: var(--ui-dim); }
.dlg-field[hidden] { display: none; }
.dlg-field input { min-height: 52px; padding: 0 14px; background: #2b2a27; color: var(--ui-text); border: 1px solid var(--ui-line); border-radius: 8px; font: inherit; font-size: 1.0625rem; }
.dlg-field input:focus { border-color: var(--accent); outline: none; }
.dlg-field .seg { align-self: flex-start; }
.dlg-go { display: flex; align-items: center; justify-content: center; min-height: 56px; border-radius: 8px; background: var(--bg); color: var(--ink); font-weight: 500; text-decoration: none; transition: transform 140ms var(--ease), background-color 200ms; border: 0; cursor: pointer; font-size: 1.0625rem; }
.dlg-go:hover { background: #fff; }
.dlg-go:active { transform: translateY(2px); }
.dlg-status { min-height: 1.3em; font-size: 0.9375rem; color: var(--good); }
.dlg-status:empty { display: none; }
.dlg-fine { font-size: 0.875rem; color: var(--ui-dim); }
.dlg-fine a { color: var(--ui-text); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; } /* taste-skill-ignore: hidden bot-trap field */
.dialog.done .dlg-field, .dialog.done .dlg-go { display: none; }
.dialog.done .dlg-status { font-size: 1.25rem; color: var(--ui-text); }

/* ---------- close ---------- */
.credits { padding-top: 24svh; }
.credits .shell { display: flex; flex-direction: column; gap: 10px; }
.credits p { font-size: var(--step-small); color: var(--muted); max-width: 90ch; }
.foot { display: grid; grid-template-columns: 1fr auto 1fr; align-items: baseline; gap: 24px; padding: 40px var(--m) 30px; font-size: var(--step-small); color: var(--muted); }
.foot nav { display: flex; gap: 24px; }
.foot a { color: var(--ink); }
.foot-r { text-align: right; }

/* ---------- motion ---------- */
@keyframes line-up { from { transform: translateY(108%); } to { transform: none; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.mask > span > span { animation: line-up 1000ms var(--ease) 150ms both; }
.mask > span:nth-child(2) > span { animation-delay: 270ms; }
.hero [data-after] { animation: fade-up 800ms var(--ease) 650ms both; }
.js [data-rise] { opacity: 0; transform: translateY(32px); }
.js [data-rise].in { opacity: 1; transform: none; transition: opacity 900ms var(--ease) var(--d, 0ms), transform 900ms var(--ease) var(--d, 0ms); }
[data-drift] { transform: scale(1.1); will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .mask > span > span, [data-after], .js [data-rise] { transform: none !important; opacity: 1 !important; transition: none !important; animation: none !important; }
  [data-drift] { transform: none !important; }
  *, *::before, *::after { transition-duration: 1ms !important; }
  .modes { height: auto; }
  .hs-stick { position: static; height: auto; padding-block: 80px; }
  .hs-track { overflow-x: auto; width: auto; }
}

/* ---------- smaller screens ---------- */
@media (max-width: 1100px) {
  .sheet-row { grid-template-columns: minmax(0, 1fr) minmax(0, 560px); }
  .sheet-row > .rep-notes:first-child { grid-column: 1; grid-row: 1; }
  .sheet-row > .sheet { grid-column: 2; grid-row: 1 / span 2; }
  .sheet-row > .rep-notes:last-child { grid-column: 1; grid-row: 2; align-items: flex-end; text-align: right; margin-top: 40px; }
  .sheet-row > .rep-notes:last-child .note { align-items: flex-end; }
}

@media (max-width: 900px) {
  .nav-links { display: none; }
    .hero-copy { padding-top: 38svh; gap: 20px; }
  .hero h1 { font-size: clamp(3rem, 14.6vw, 6rem); }
  .hero-tag { margin: -70px 0 0 18px; }

  .story { height: 460vh; }
  .story-hint { display: none; }
  .story-dims { gap: 14px; }
  .phone-track { height: 300vh; }
  .phone-copy { top: auto; bottom: 4svh; transform: none; gap: 14px; right: var(--m); }
  .phone-copy h2 { font-size: clamp(2rem, 8.6vw, 3rem); }
  .beats { min-height: 8.5rem; }
  .pb p { font-size: var(--step-body); }
  .phone-note { display: none; }

  .try-grid { grid-template-columns: 1fr; }
  .capture { justify-self: center; }

  .result { grid-template-columns: 1fr; min-height: 0; }
  .res-view { height: 470px; min-height: 0; }
  .res-view canvas { top: 136px; height: calc(100% - 136px); }

  .sheet-row { grid-template-columns: 1fr; row-gap: 0; }
  .sheet-row > .sheet { grid-column: 1; grid-row: 1; margin-bottom: 48px; }
  .sheet-row > .rep-notes:first-child, .sheet-row > .rep-notes:last-child { grid-column: 1; grid-row: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin: 0 0 22px; text-align: left; align-items: start; }
  .sheet-row > .rep-notes:first-child .note, .sheet-row > .rep-notes:last-child .note { align-items: flex-start; text-align: left; max-width: none; }
  .note::before { display: none; }

  .modes { height: auto; }
  .hs-stick { position: static; height: auto; padding-block: 80px 0; }
  .hs-track { width: auto; flex-direction: column; }
  .mode { width: 100%; grid-template-columns: 1fr; }
  .hs-bar { display: none; }

  .plate { grid-template-columns: 1fr; gap: 14px; }

  .y-a, .y-b, .y-claims, .y-c, .y-d, .y-e { grid-column: 1 / -1; }
  .who ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .who li { padding: 12px 14px; font-size: var(--step-small); }
  .y-b .ph { aspect-ratio: 4 / 3; } .y-d .ph { aspect-ratio: 16 / 10; } .y-e .ph { aspect-ratio: 16 / 9; }

  .mats-body { grid-template-columns: 1fr; gap: 20px; }
  .tabs { flex-direction: row; position: sticky; top: 0; z-index: 3; background: var(--bg); padding-block: 8px; }
  .tabs button { flex: 1; min-height: 64px; padding: 0 10px; }
  .bands li { grid-template-columns: 1fr auto; padding: 16px; }
  .bands .d { grid-column: 1; }
  .bands .n { grid-column: 1 / -1; grid-row: 2; }
  .bands .w { grid-column: 2; grid-row: 1; }

  .faq h2 { position: static; grid-column: 1 / -1; margin-bottom: 28px; }
  .tiles { grid-column: 1 / -1; gap: 6px; }
  .tiles summary { min-height: 68px; padding: 16px 64px 16px 20px; }
  .tiles summary::before, .tiles summary::after { right: 20px; }
  .tiles details p { padding: 0 20px 24px; }

  .join { min-height: 84svh; }
  .join-grid { grid-template-columns: 1fr; row-gap: 40px; padding-block: 56px 24px; }
  .join-copy { grid-column: 1; align-self: start; }
  .dialog { grid-column: 1; width: 100%; }

  .credits { padding-top: 18svh; }
  .foot { grid-template-columns: 1fr; gap: 8px; padding: 24px 20px; }
  .foot-r { text-align: left; }
}

@media (max-width: 480px) {
  .tabs button b { font-size: 0.875rem; }
  .tabs button span { font-size: 0.8125rem; }
  .res-ctl select { max-width: 58%; }
}
