/* Cedar & Stem · concept build · Justin Creative Studios
   System: bluebonnet wash + cedar green, Indian-paintbrush red only on the primary CTA and the string knot.
   Radius philosophy: pills for things you press, square for things you look at.
   Motion: --e-out for arrivals, --e-io for wipes, --e-spring for small presses. 180 / 600 / 1100ms. */

@font-face { font-family: "Cabinet Grotesk"; src: url(fonts/CabinetGrotesk-800.woff2) format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "General Sans"; src: url(fonts/GeneralSans-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "General Sans"; src: url(fonts/GeneralSans-500.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "General Sans"; src: url(fonts/GeneralSans-600.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "GS Fallback"; src: local("Helvetica Neue"), local("Arial"); size-adjust: 100.5%; ascent-override: 98%; descent-override: 24%; }
@font-face { font-family: "CG Fallback"; src: local("Arial Black"), local("Arial Bold"), local("Arial"); size-adjust: 92%; ascent-override: 100%; }

:root {
  --wash: #D3DAF3;        /* bluebonnet wash: page */
  --wash-2: #C5CEEC;      /* deeper wash: preview panel */
  --paper: #E8ECF9;       /* lifted wash: inputs */
  --cedar: #15301F;       /* ink + dark bands */
  --cedar-2: #22402D;
  --muted: #3D5446;
  --line: rgba(21, 48, 31, .2);
  --line-d: rgba(211, 218, 243, .22);
  --paint: #C93712;       /* CTA only (cream text 4.8:1) */
  --paint-h: #B12F0E;
  --knot: #F04A23;        /* the string, drawn in canvas */
  --cream: #FBF6EE;       /* text on paint only */

  --f-d: "Cabinet Grotesk", "CG Fallback", "Arial Black", sans-serif;
  --f-b: "General Sans", "GS Fallback", "Helvetica Neue", Arial, sans-serif;

  --gx: clamp(20px, 4.4vw, 64px);
  --nav-h: 64px;

  --e-out: cubic-bezier(.16, 1, .3, 1);
  --e-io: cubic-bezier(.76, 0, .24, 1);
  --e-spring: cubic-bezier(.34, 1.56, .64, 1);
  --t-fast: 180ms;
  --t-mid: 600ms;
  --t-slow: 1100ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body { margin: 0; background: var(--wash); color: var(--cedar); font: 400 16px/1.55 var(--f-b); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
::selection { background: var(--cedar); color: var(--wash); }
:focus-visible { outline: 2px solid var(--cedar); outline-offset: 3px; }
.ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--cedar); color: var(--wash); padding: 10px 14px; border-radius: 999px; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 22px; border: 0; border-radius: 999px; font: 600 16px/1 var(--f-b); text-decoration: none; cursor: pointer; transition: background-color var(--t-fast), transform var(--t-fast) var(--e-out), color var(--t-fast); white-space: nowrap; }
.btn .ico { transition: transform var(--t-mid) var(--e-out); }
.btn:hover .ico { transform: translateX(4px); }
.btn:active { transform: scale(.97); }
.btn-paint { background: var(--paint); color: var(--cream); }
.btn-paint:hover { background: var(--paint-h); }
.btn-ghost { background: transparent; color: var(--cedar); box-shadow: inset 0 0 0 1.5px var(--cedar); }
.btn-ghost:hover { background: var(--cedar); color: var(--wash); }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 14px; }
.btn-lg { min-height: 58px; padding: 0 28px; font-size: 17px; }
.magnet { will-change: transform; }

/* ---------- Nav ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 var(--gx); color: var(--cedar); transition: background-color var(--t-mid), color var(--t-mid), box-shadow var(--t-mid), transform var(--t-mid) var(--e-out); }
.nav.solid { background: var(--wash); box-shadow: 0 1px 0 var(--line); }
.nav.dark { background: var(--cedar); color: var(--wash); box-shadow: 0 1px 0 var(--line-d); }
.logo { white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font: 800 21px/1 var(--f-d); letter-spacing: -.02em; }
.logo-mark { width: 26px; height: 26px; }
.nav-links { display: none; gap: 28px; }
.nav-links a { text-decoration: none; font-weight: 500; font-size: 15px; position: relative; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1.5px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform var(--t-mid) var(--e-out); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-r { display: flex; align-items: center; gap: 14px; }
.nav-clock { margin: 0; display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 500; white-space: nowrap; }
.nav-clock [data-cut-short] { display: none; }
.nav-clock b { font-weight: 600; font-variant-numeric: tabular-nums; }
.clock-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: blink 2s var(--e-io) infinite; }
@keyframes blink { 50% { opacity: .25; } }

@media (max-width: 719px) { .lg-only { display: none; } .logo { font-size: 19px; } .nav-r { gap: 10px; } }
@media (min-width: 720px) { .sm-only { display: none; } }

/* ---------- Concept badge ---------- */
.concept-badge { position: fixed; left: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 60; display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border-radius: 999px; background: var(--cedar); color: var(--wash); font: 500 12px/1.2 var(--f-b); text-decoration: none; transition: bottom var(--t-mid) var(--e-out), transform var(--t-fast); }
.concept-badge i { width: 6px; height: 6px; border-radius: 50%; background: var(--knot); }
.concept-badge:hover { transform: translateY(-1px); }
body.mbar-on .concept-badge { bottom: calc(80px + env(safe-area-inset-bottom)); }

/* ---------- Line reveals (headings only) ---------- */
.line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.li { display: inline-block; }
.js:not(.rm) .rv .li { transform: translateY(108%); transition: transform var(--t-slow) var(--e-out); }
.js:not(.rm) .rv.in .li { transform: none; }
.js:not(.rm) .rv .line:nth-child(2) .li { transition-delay: .08s; }
.js:not(.rm) .rv .line:nth-child(3) .li { transition-delay: .16s; }

/* ---------- Stage (pinned hero scene) ---------- */
.stage { position: relative; height: 330vh; }
.pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.cv { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
.cv-back { z-index: 1; }
.cv-front { z-index: 3; }
.hero-copy { display: contents; }
.hero-h { position: absolute; z-index: 2; left: var(--gx); top: calc(var(--nav-h) + 3vh); margin: 0; font: 800 clamp(62px, 16.6vw, 260px)/.84 var(--f-d); letter-spacing: -.045em; will-change: transform; }
.hero-h .l2 { padding-left: 0; }
.hero-side { position: absolute; z-index: 4; left: var(--gx); right: var(--gx); top: calc(var(--nav-h) + 3vh + 2 * .84 * clamp(62px, 16.6vw, 260px) + 18px); will-change: transform, opacity; }
.hero-intro { margin: 0; max-width: 34ch; font-size: 16px; line-height: 1.45; font-weight: 500; }
.hero-cta { position: absolute; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.cut-line { margin: 0; font-size: 13px; font-weight: 600; background: var(--wash); padding: 6px 12px; border-radius: 999px; }
.hint { position: absolute; z-index: 4; left: var(--gx); margin: 0; display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: var(--muted); }
.hint i { width: 24px; height: 1px; background: currentColor; }
.hint-mouse { display: none; }
@media (hover: hover) and (pointer: fine) { .hint-touch { display: none; } .hint-mouse { display: inline; } }

.thesis, .tied { position: absolute; z-index: 2; left: var(--gx); right: var(--gx); opacity: 0; pointer-events: none; }
.thesis { top: calc(var(--nav-h) + 20px); }
.thesis-big { margin: 0; font: 500 clamp(23px, 2.7vw, 42px)/1.14 var(--f-b); letter-spacing: -.022em; max-width: 24ch; }
.thesis-big .w { opacity: .16; transition: opacity .25s linear; }
.thesis-big .w.on { opacity: 1; }
.thesis-small { margin: 18px 0 0; max-width: 40ch; color: var(--muted); font-size: 15px; }
.tied { top: calc(var(--nav-h) + 20px); }
.tied-h { margin: 0; font: 800 clamp(54px, 9vw, 150px)/.86 var(--f-d); letter-spacing: -.045em; }
.tied-p { margin: 14px 0 0; max-width: 30ch; font-weight: 500; }
.tied-link { display: inline-flex; gap: 8px; align-items: center; margin-top: 16px; font-weight: 600; text-decoration: none; border-bottom: 1.5px solid currentColor; padding-bottom: 3px; }
.tied.live { pointer-events: auto; }

.thesis-static { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* mobile hero composition */
@media (max-width: 719px) {
  .hero-h { font-size: 17.4vw; }
  .hero-cta { position: absolute; z-index: 4; left: var(--gx); right: var(--gx); bottom: calc(60px + env(safe-area-inset-bottom)); }
  .hero-side { display: contents; }
  .hero-intro { position: absolute; z-index: 4; left: var(--gx); right: var(--gx); top: calc(var(--nav-h) + 3vh + 2 * .84 * 17.4vw + 16px); font-size: 15.5px; }
  .hint { top: calc(var(--nav-h) + 3vh + 2 * .84 * 17.4vw + 112px); }
  .hero-cta .btn { flex: 1; justify-content: center; }
  .hero-cta { justify-content: center; }
  .cut-line { margin: 0 auto; }
}
@media (min-width: 720px) {
  .hero-h .l2 { padding-left: .55em; }
  .hero-h { font-size: clamp(62px, 15vw, 250px); }
  .hero-side { left: auto; top: calc(var(--nav-h) + 3vh + 1.5vw); width: clamp(280px, 26vw, 380px); }
  .hero-intro { font-size: 17px; }
  .hero-cta { position: static; margin-top: 22px; }
  .hint { bottom: 28px; left: auto; right: var(--gx); background: var(--wash); padding: 8px 14px; border-radius: 999px; color: var(--cedar); }
  .thesis { top: 50%; transform: translateY(-50%); right: auto; width: min(40vw, 600px); }
  .tied { top: auto; bottom: 12vh; right: auto; width: min(42vw, 620px); }
  .thesis-small { font-size: 16px; }
}

/* ---------- Section rhythm ---------- */
.h-xl { margin: 0; font: 800 clamp(52px, 9.2vw, 150px)/.86 var(--f-d); letter-spacing: -.045em; }
.h-xxl { margin: 0; font: 800 clamp(60px, 14vw, 240px)/.84 var(--f-d); letter-spacing: -.05em; }
.lede { margin: 0; max-width: 40ch; font-size: 17px; color: var(--muted); }

/* ---------- Build ---------- */
.build { padding: clamp(80px, 12vw, 160px) var(--gx) clamp(80px, 10vw, 140px); }
.build-head { display: grid; gap: 22px; margin-bottom: clamp(36px, 5vw, 64px); }
.build-grid { display: grid; gap: 28px; }
.preview-wrap { position: sticky; top: calc(var(--nav-h) + 8px); z-index: 5; }
.preview { position: relative; background: var(--wash-2); height: min(36svh, 320px); overflow: hidden; }
.preview::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 50% at 50% 34%, rgba(232, 236, 249, .9), rgba(232, 236, 249, 0) 70%); pointer-events: none; }
#posy { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: pan-y; }
.tag { position: absolute; right: 14px; top: 14px; display: grid; justify-items: end; background: var(--cedar); color: var(--wash); padding: 9px 13px 10px; transform-origin: 50% -14px; animation: swing 4s ease-in-out infinite; }
.tag::before { content: ""; position: absolute; top: -14px; left: 50%; width: 1px; height: 14px; background: var(--cedar); }
.tag-n { font-size: 12px; font-weight: 500; }
.tag-p { font: 800 26px/1 var(--f-d); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.tag.bump { animation: bump .5s var(--e-spring), swing 4s ease-in-out .5s infinite; }
@keyframes swing { 0%, 100% { transform: rotate(-2.2deg); } 50% { transform: rotate(2.2deg); } }
@keyframes bump { 0% { transform: rotate(-7deg) scale(1.06); } 100% { transform: rotate(0) scale(1); } }
.preview-note { position: absolute; left: 14px; top: 12px; max-width: calc(100% - 150px); margin: 0; font-size: 12px; color: var(--muted); }

.builder { display: grid; gap: 0; }
.step { border: 0; margin: 0; padding: 26px 0; border-top: 1px solid var(--line); min-width: 0; }
.step legend { float: left; width: 100%; display: flex; align-items: baseline; gap: 12px; padding: 0; margin-bottom: 18px; font: 800 26px/1 var(--f-d); letter-spacing: -.03em; }
.step legend + * { clear: both; }
.step-n { font: 600 13px/1 var(--f-b); letter-spacing: 0; color: var(--muted); font-variant-numeric: tabular-nums; min-width: 14px; }
.presets { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.chip { min-height: 38px; padding: 0 15px; border: 0; border-radius: 999px; background: transparent; box-shadow: inset 0 0 0 1.5px var(--cedar); font-weight: 500; font-size: 14px; cursor: pointer; transition: background-color var(--t-fast), color var(--t-fast), transform var(--t-fast) var(--e-spring); }
.chip:hover, .chip[aria-pressed="true"] { background: var(--cedar); color: var(--wash); }
.chip:active { transform: scale(.95); }
.chip.ghost { box-shadow: none; text-decoration: underline; text-underline-offset: 4px; }
.chip.ghost:hover { background: transparent; color: var(--cedar); text-decoration-thickness: 2px; }

.stems { list-style: none; margin: 0; padding: 0; }
.stem { display: grid; grid-template-columns: 44px 1fr auto; grid-template-areas: "th nm st" "th pr st"; column-gap: 14px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.stem canvas { grid-area: th; width: 44px; height: 52px; }
.stem-nm { grid-area: nm; font-weight: 600; font-size: 16px; line-height: 1.2; }
.stem-nm small { display: block; font-weight: 400; color: var(--muted); font-size: 13px; margin-top: 2px; }
.stem-pr { grid-area: pr; font-size: 13px; font-weight: 500; font-variant-numeric: tabular-nums; }
.stepper { grid-area: st; display: flex; align-items: center; gap: 2px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--line); padding: 3px; }
.stepper button { width: 38px; height: 38px; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; cursor: pointer; transition: background-color var(--t-fast), transform var(--t-fast) var(--e-spring); }
.stepper button:hover:not(:disabled) { background: var(--cedar); color: var(--wash); }
.stepper button:active:not(:disabled) { transform: scale(.88); }
.stepper button:disabled { opacity: .3; cursor: default; }
.stepper output { min-width: 22px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.stem.has .stepper { box-shadow: inset 0 0 0 1.5px var(--cedar); }

.seg { display: grid; gap: 8px; }
.seg label, .wrap, .zones label { cursor: pointer; }
.seg input, .wraps input, .zones input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg span { display: block; padding: 14px 16px; box-shadow: inset 0 0 0 1.5px var(--line); transition: box-shadow var(--t-fast), background-color var(--t-fast), color var(--t-fast); }
.seg b { display: block; font-weight: 600; }
.seg small { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
.seg input:checked + span { background: var(--cedar); color: var(--wash); box-shadow: none; }
.seg input:checked + span small { color: #A9B4D6; }
.seg input:focus-visible + span, .wraps input:focus-visible ~ .sw, .zones input:focus-visible + span { outline: 2px solid var(--cedar); outline-offset: 3px; }

.wraps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.wrap { display: grid; gap: 8px; font-size: 14px; font-weight: 500; }
.wrap small { color: var(--muted); font-weight: 500; }
.sw { display: block; aspect-ratio: 4 / 3; box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow var(--t-fast), transform var(--t-mid) var(--e-out); }
.wrap:hover .sw { transform: translateY(-2px); }
.wraps input:checked ~ .sw { box-shadow: 0 0 0 2px var(--wash), 0 0 0 4px var(--cedar); }
.sw-kraft { background: repeating-linear-gradient(97deg, rgba(120, 80, 40, .14) 0 2px, transparent 2px 9px), #C69A63; }
.sw-news { background: repeating-linear-gradient(0deg, rgba(21, 48, 31, .32) 0 2px, transparent 2px 7px) 12px 12px / 56% 60% no-repeat, #EDE9DF; }
.sw-cedar { background: repeating-linear-gradient(45deg, rgba(211, 218, 243, .08) 0 1px, transparent 1px 5px), repeating-linear-gradient(-45deg, rgba(211, 218, 243, .08) 0 1px, transparent 1px 5px), #1F4A31; }

.card-field { display: block; position: relative; }
.card-field textarea { display: block; width: 100%; resize: vertical; min-height: 96px; padding: 14px 16px 26px; border: 0; border-radius: 0; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); font-size: 16px; line-height: 1.45; }
.card-field textarea:focus { outline: none; box-shadow: inset 0 0 0 2px var(--cedar); }
.card-field textarea::placeholder { color: #6B7D72; }
.count { position: absolute; right: 12px; bottom: 8px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }

.zones { display: grid; gap: 0; }
.zones label { display: block; }
.zones span { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); transition: background-color var(--t-fast), color var(--t-fast); }
.zones label:first-child span { border-top: 1px solid var(--line); }
.zones span b { font-weight: 600; font-variant-numeric: tabular-nums; }
.zones input:checked + span { background: var(--cedar); color: var(--wash); }
.cutoff { display: flex; gap: 12px; align-items: flex-start; margin-top: 16px; padding: 14px 16px; background: var(--paper); }
.cutoff .ico { margin-top: 2px; }
.cutoff p { margin: 0; font-size: 15px; font-weight: 500; }
.cutoff b { font-variant-numeric: tabular-nums; font-weight: 600; }
.cutoff.late { background: var(--cedar); color: var(--wash); }

.total { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 26px 0 0; border-top: 2px solid var(--cedar); }
.total-l { display: grid; }
.total-k { font-size: 13px; font-weight: 600; }
.total-v { font: 800 clamp(48px, 7vw, 76px)/.95 var(--f-d); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.total-l small { font-size: 13px; color: var(--muted); max-width: 36ch; }
.form-msg { flex-basis: 100%; margin: 0; font-size: 14px; font-weight: 600; min-height: 1.2em; }

/* mobile total bar */
.mbar { position: fixed; z-index: 55; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px var(--gx) calc(10px + env(safe-area-inset-bottom)); background: var(--cedar); color: var(--wash); transform: translateY(110%); transition: transform var(--t-mid) var(--e-out); }
.mbar b { font: 800 26px/1 var(--f-d); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.mbar small { display: block; font-size: 12px; color: #A9B4D6; }
body.mbar-on .mbar { transform: none; }

/* ---------- Field (dark full-bleed band) ---------- */
.field { position: relative; background: var(--cedar); color: var(--wash); padding: 0 0 clamp(80px, 10vw, 140px); }
.field-fig { margin: 0; height: 78svh; min-height: 420px; overflow: hidden; }
.field-fig img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 70%; }
.js:not(.rm) .field-fig img { clip-path: inset(18% 8% 18% 8%); transform: scale(1.22); transition: clip-path 1.5s var(--e-io), transform 2s var(--e-out); }
.js:not(.rm) .field-fig.in img { clip-path: inset(0); transform: scale(1.04); }
.field-copy { position: relative; padding: 0 var(--gx); margin-top: -.62em; font-size: clamp(60px, 14vw, 240px); }
.field-copy .h-xxl { font-size: 1em; color: var(--wash); }
.field-copy p { font-size: 17px; max-width: 38ch; margin: 28px 0 0; color: #C1CAE8; }

/* ---------- Cooler rail ---------- */
.cooler { padding: clamp(80px, 12vw, 160px) 0 clamp(60px, 8vw, 110px); }
.cooler-head { padding: 0 var(--gx); display: grid; gap: 22px; margin-bottom: 40px; }
.rail { overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gx); scrollbar-width: none; padding: 0 var(--gx) 8px; }
.rail::-webkit-scrollbar { display: none; }
.rail-track { display: flex; gap: 14px; width: max-content; padding-right: var(--gx); }
.card { scroll-snap-align: start; width: 72vw; max-width: 360px; margin: 0; }
.card figure { margin: 0 0 14px; aspect-ratio: 3 / 4; overflow: hidden; background: var(--wash-2); }
.card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--e-out); }
.card h3 { margin: 0; font: 800 28px/1 var(--f-d); letter-spacing: -.03em; }
.card p { margin: 8px 0 10px; font-size: 15px; color: var(--muted); max-width: 30ch; }
.card b { font-weight: 600; font-size: 15px; font-variant-numeric: tabular-nums; }
.card.c2 figure, .card.c5 figure { aspect-ratio: 4 / 5; }
.card.c2, .card.c5 { padding-top: 48px; }

/* ---------- Delivery ---------- */
.delivery { padding: clamp(80px, 11vw, 150px) var(--gx); background: var(--paper); }
.del-top { display: grid; gap: 40px; margin-bottom: clamp(56px, 7vw, 96px); }
.day { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: none; }
.day li { display: grid; grid-template-columns: 7.2em 1fr; gap: 16px; align-items: baseline; padding: 16px 0; border-top: 1px solid var(--line); }
.day li:last-child { border-bottom: 1px solid var(--line); }
.day b { font: 800 28px/1 var(--f-d); letter-spacing: -.03em; white-space: nowrap; }
.day span { color: var(--muted); }
.del-grid { display: grid; gap: 56px; }
.zones-list h3 { margin: 0 0 16px; font: 800 26px/1 var(--f-d); letter-spacing: -.03em; }
.zones-list dl { margin: 0; }
.zones-list dl div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.zones-list dt { font-weight: 500; }
.zones-list dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); font-size: 15px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 20px 0; font-weight: 600; font-size: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { position: relative; width: 14px; height: 14px; flex: none; }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 0; right: 0; top: 6px; height: 2px; background: currentColor; transition: transform var(--t-mid) var(--e-out); }
.faq summary i::after { transform: rotate(90deg); }
.faq details[open] summary i::after { transform: rotate(0); }
.faq details p { margin: 0 0 22px; max-width: 54ch; color: var(--muted); }

/* ---------- Close ---------- */
.close { padding: clamp(96px, 14vw, 200px) var(--gx) clamp(80px, 10vw, 140px); }
.close-row { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 24px; margin-top: 44px; }
.close-cut { margin: 0; font-weight: 500; }
.close-cut b { font-variant-numeric: tabular-nums; }

/* ---------- Footer ---------- */
.footer { background: var(--cedar); color: var(--wash); padding: 72px var(--gx) 150px; overflow: hidden; }
@media (min-width: 720px) { .footer { padding-bottom: 84px; } }
.foot-grid { display: grid; gap: 32px; }
.foot-col h3 { margin: 0 0 10px; font-size: 13px; font-weight: 600; color: #A9B4D6; }
.foot-col p { margin: 0; font-size: 15px; }
.foot-col a { text-decoration: none; border-bottom: 1px solid var(--line-d); }
.foot-col a:hover { border-color: currentColor; }
.foot-credits p { max-width: 46ch; color: #C1CAE8; }
.foot-word { display: flex; justify-content: space-between; align-items: baseline; margin: 64px 0 28px; font: 800 16.2vw/.8 var(--f-d); letter-spacing: -.055em; white-space: nowrap; }
.foot-word .amp { color: transparent; -webkit-text-stroke: 1.5px var(--wash); font-size: .72em; }
.foot-legal { margin: 0; padding-top: 18px; border-top: 1px solid var(--line-d); font-size: 13px; color: #C1CAE8; }

/* ---------- Review dialog ---------- */
.review { padding: 0; border: 0; width: min(560px, 100%); max-height: 92svh; margin: auto auto 0; background: var(--wash); color: var(--cedar); }
.review::backdrop { background: rgba(21, 48, 31, .55); }
.review[open] { animation: sheet .5s var(--e-out); }
@keyframes sheet { from { transform: translateY(40px); opacity: 0; } }
.review-in { position: relative; padding: 28px var(--gx) 32px; }
.review-x { position: absolute; right: 12px; top: 12px; width: 42px; height: 42px; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; cursor: pointer; }
.review-x:hover { background: var(--wash-2); }
.review h2 { margin: 0 0 18px; font: 800 40px/.95 var(--f-d); letter-spacing: -.04em; }
.review-list { list-style: none; margin: 0; padding: 0; font-size: 15px; }
.review-list li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.review-list span:last-child { font-variant-numeric: tabular-nums; }
.review-sum { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0 6px; font-weight: 600; }
.review-sum b { font: 800 34px/1 var(--f-d); letter-spacing: -.03em; }
.review-sum small { display: block; font-weight: 500; color: var(--muted); font-size: 13px; }
.fields { display: grid; gap: 12px; margin: 18px 0 10px; }
.fields label { display: grid; gap: 5px; font-size: 13px; font-weight: 600; }
.fields input { min-height: 48px; padding: 0 14px; border: 0; border-radius: 0; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); font-size: 16px; font-weight: 400; }
.fields input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--cedar); }
.fields input.bad { box-shadow: inset 0 0 0 2px var(--paint); }
.fields input::placeholder { color: #6B7D72; }
.review-note { font-size: 13px; color: var(--muted); margin: 6px 0 18px; }
.review-b { text-align: left; padding-top: 10px; }
.done-ico { width: 44px; height: 44px; fill: none; stroke: var(--cedar); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 16px; }
.review-b p { margin: 0 0 22px; font-size: 17px; max-width: 40ch; }

/* ---------- Tablet / desktop ---------- */
@media (min-width: 720px) {
  .nav-clock [data-cut-short] { display: inline; }
  .build-head { grid-template-columns: 1.2fr 1fr; align-items: end; }
  .card { width: 34vw; }
  .del-top { grid-template-columns: 1fr 1fr; align-items: end; }
  .del-grid { grid-template-columns: 1fr 1.3fr; gap: 8vw; }
  .foot-grid { grid-template-columns: 1fr 1fr 1.6fr; }
  .seg { grid-template-columns: 1fr 1fr; }
  .review { margin: auto; }
  .fields { grid-template-columns: 1fr 1fr; }
  .fields .wide { grid-column: 1 / -1; }
  .mbar { display: none; }
  body.mbar-on .concept-badge { bottom: calc(12px + env(safe-area-inset-bottom)); }
}
@media (min-width: 960px) {
  :root { --nav-h: 76px; }
  .nav-links { display: flex; }
  .build-grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 5vw; align-items: start; }
  .preview-wrap { top: calc(var(--nav-h) + 16px); }
  .preview { height: calc(100svh - var(--nav-h) - 40px); max-height: 820px; }
  .tag { right: 24px; top: 24px; }
  .preview-note { left: 22px; top: 22px; }
  .step { padding: 30px 0; }
  .field-copy { display: grid; grid-template-columns: 1fr minmax(0, 420px); }
  .field-copy .h-xxl { grid-column: 1 / -1; }
  .field-copy p { grid-column: 2; margin-top: 36px; }
  /* desktop: rail pinned and driven by vertical scroll */
  .cooler.pinned { height: var(--rail-h, 300vh); padding: 0; }
  .cooler.pinned .cooler-in { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
  .cooler.pinned .rail { overflow: visible; scroll-snap-type: none; }
  .cooler.pinned .rail-track { will-change: transform; }
  .cooler-head { grid-template-columns: 1.2fr 1fr; align-items: end; margin-bottom: 44px; }
  .card { width: 20vw; max-width: 340px; }
  .cooler.pinned .cooler-in { padding-top: var(--nav-h); }
  .cooler.pinned .h-xl { font-size: clamp(52px, 7.4vw, 124px); }
  .cooler.pinned .card.c2, .cooler.pinned .card.c5 { padding-top: 48px; }
  .card:hover img { transform: scale(1.04); }
  .card.c2, .card.c5 { padding-top: 70px; }
  .close .h-xxl { font-size: clamp(60px, 11.4vw, 200px); }
}

/* ---------- Reduced motion / no JS ---------- */
.rm .stage, html:not(.js) .stage { height: auto; }
.rm .pin, html:not(.js) .pin { position: relative; }
.rm .thesis, .rm .tied, html:not(.js) .thesis, html:not(.js) .tied, .rm .hint { display: none; }
.rm .thesis-static, html:not(.js) .thesis-static { position: static; width: auto; height: auto; clip: auto; overflow: visible; padding: clamp(64px, 9vw, 120px) var(--gx) 0; }
.rm .thesis-static .thesis-small, html:not(.js) .thesis-static .thesis-small { margin-top: 18px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
}
