/* Onionskin site. Earth3d design system (full-bleed hero, glass HUD label, maker's note,
   corner-mark media frames, steps + gesture row, facts split, proof slot, price card,
   gallery lightbox, CTA), dressed as the drafting table from docs/IDENTITY.md:
   graphite, vellum, brass drafting pins, a steel rule, sanguine as the only accent.
   Token values below are read from docs/IDENTITY.md section 2 (the one source of hex values). */
:root {
  /* IDENTITY.md section 2: the eight tokens */
  --vellum: #F2ECDF;      /* site background */
  --chalk: #FAF7F0;       /* cards, plate mounts */
  --graphite: #3B3C40;    /* all text and icons */
  --sanguine: #B5502F;    /* the only accent: one primary action per view, ink on paper */
  --npblue: #8FC3E0;      /* proportion grid only */
  --brass: #B08D57;       /* pins */
  --mat: #2F4A3F;         /* the cutting mat */
  --mute: #6B675F;        /* secondary text, colophon, "Simulator" label */
  /* derived (no new hues) */
  --vellum-2: color-mix(in srgb, var(--vellum) 70%, var(--mute) 30%);
  --line: color-mix(in srgb, var(--graphite) 14%, transparent);
  --line-2: color-mix(in srgb, var(--graphite) 26%, transparent);
  --glass: color-mix(in srgb, var(--chalk) 66%, transparent);
  --sanguine-ink: color-mix(in srgb, var(--sanguine) 82%, var(--graphite) 18%);
  --f-serif: "Newsreader", "New York", "Iowan Old Style", Georgia, serif;
  --f-mono: "DM Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --t-xs: 0.75rem;
  --t-sm: 0.92rem;
  --t-md: 1.0625rem;
  --t-lg: 1.28rem;
  --t-xl: clamp(1.45rem, 1.1rem + 1.2vw, 2rem);
  --t-h2: clamp(2.3rem, 1.5rem + 3.4vw, 4.2rem);
  --t-h1: clamp(2.9rem, 1.6rem + 5vw, 6.2rem);
  --gutter: clamp(16px, 4vw, 48px);
  --col: 1200px;
  --radius: 4px;
  --ease: cubic-bezier(.2,.7,.2,1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}
body {
  margin: 0;
  background: var(--vellum);
  color: var(--graphite);
  font: 400 var(--t-md)/1.6 var(--f-serif);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--graphite); outline-offset: 3px; border-radius: 3px; }
h1, h2, h3 { margin: 0; font-weight: 400; text-wrap: balance; }
p { margin: 0; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 50; padding: 8px 14px; border-radius: 6px; background: var(--graphite); color: var(--chalk); }
.skip:focus { left: 8px; }
.wrap { width: 100%; max-width: calc(var(--col) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Type ---------- */
.eyebrow {
  font: 500 var(--t-xs)/1.2 var(--f-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mute);
}
.display {
  font-family: var(--f-serif);
  font-weight: 380;
  letter-spacing: -0.022em;
  line-height: 0.98;
}
.display em { font-style: italic; font-weight: 340; }
.coord {
  font: 400 var(--t-xs)/1.4 var(--f-mono);
  letter-spacing: 0.04em;
  color: var(--mute);
  font-variant-numeric: tabular-nums;
}

/* ---------- Wordmark: the O as one tapered graphite stroke over a dashed construction line ---------- */
.wm { display: inline-flex; align-items: baseline; font: 450 1.42rem/1 var(--f-serif); letter-spacing: -0.01em; color: var(--graphite); }
.wm svg { width: 0.84em; height: 0.88em; margin-right: 0.03em; transform: translateY(0.1em); overflow: visible; }
.wm .o { fill: var(--graphite); }
.wm .cl { stroke: var(--mute); stroke-width: 1.1; stroke-dasharray: 2.4 1.8; fill: none; }

/* ---------- Buttons ---------- */
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.store {
  display: inline-flex; flex-direction: column; justify-content: center;
  min-height: 56px; padding: 8px 22px 9px;
  border-radius: 10px; background: var(--sanguine); color: var(--chalk);
  text-decoration: none; line-height: 1.1;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s;
}
.store small { font: 500 0.68rem/1.25 var(--f-mono); letter-spacing: 0.06em; text-transform: uppercase; opacity: .82; }
.store b { font: 500 1.24rem/1.2 var(--f-serif); letter-spacing: -0.005em; }
.store:hover { transform: translateY(-1px); box-shadow: 0 14px 28px -14px color-mix(in srgb, var(--sanguine) 70%, transparent); }
.store:active { transform: translateY(0); }
.ghost {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 56px; padding: 0 20px 0 12px;
  border-radius: 10px; border: 1px solid var(--line-2);
  background: var(--glass); color: var(--graphite);
  -webkit-backdrop-filter: blur(18px) saturate(1.15); backdrop-filter: blur(18px) saturate(1.15);
  font: 500 var(--t-sm)/1 var(--f-serif); text-decoration: none;
  transition: border-color .2s ease;
}
.ghost:hover { border-color: var(--graphite); }
.ghost .ring { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--graphite); color: var(--chalk); }
.ghost .ring svg { width: 14px; height: 14px; }
.store, .ghost { max-width: 100%; }

/* ---------- Header ---------- */
.bar { position: fixed; inset: 0 0 auto 0; z-index: 20; padding-top: env(safe-area-inset-top, 0px); transition: background .3s ease, box-shadow .3s ease; }
.bar.solid { background: color-mix(in srgb, var(--vellum) 88%, transparent); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: 0 1px 0 var(--line); }
.bar .wrap { display: flex; align-items: center; gap: 20px; min-height: 64px; min-width: 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.brand img { width: 30px; height: 30px; border-radius: 50%; flex: none; }
.bar nav { display: flex; gap: 22px; margin-left: auto; }
.bar nav a { text-decoration: none; font-size: var(--t-sm); opacity: .72; transition: opacity .2s; }
.bar nav a:hover { opacity: 1; }
.bar .mini { flex: none; padding: 9px 16px; border-radius: 999px; background: var(--graphite); color: var(--chalk); font: 500 0.72rem/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; white-space: nowrap; }
@media (max-width: 860px) { .bar nav { display: none; } .bar .mini { margin-left: auto; } }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; min-height: min(96svh, 940px); display: flex; align-items: flex-end; overflow: hidden; background: var(--vellum-2); }
.hero picture, .hero .poster { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero .poster { object-fit: cover; object-position: 60% 50%; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(to top, var(--vellum) 0%, color-mix(in srgb, var(--vellum) 88%, transparent) 24%, color-mix(in srgb, var(--vellum) 0%, transparent) 58%),
    radial-gradient(110% 80% at 0% 100%, color-mix(in srgb, var(--vellum) 82%, transparent) 0%, color-mix(in srgb, var(--vellum) 0%, transparent) 62%);
}
.hero .wrap { padding-block: 120px clamp(32px, 5vw, 60px); display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.hero h1 { font-size: var(--t-h1); max-width: 12ch; }
.hero .lede { max-width: min(40ch, 100%); font-size: clamp(1.08rem, 0.98rem + 0.45vw, 1.3rem); line-height: 1.5; }
.hero .eyebrow { justify-self: start; padding: 6px 11px; border-radius: 999px; color: var(--graphite); background: var(--glass); border: 1px solid color-mix(in srgb, var(--chalk) 80%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.hero-foot { display: flex; flex-wrap: wrap; gap: 18px 32px; align-items: flex-end; justify-content: space-between; min-width: 0; }
.hero-cta { display: grid; gap: 12px; min-width: 0; max-width: 100%; }
.who { font: 500 var(--t-sm)/1.45 var(--f-serif); }
.fine { font: 400 var(--t-xs)/1.45 var(--f-mono); letter-spacing: 0.03em; color: var(--mute); max-width: 100%; overflow-wrap: anywhere; }
@media (min-width: 900px) {
  .hero { min-height: min(100svh, 980px); }
  .hero h1 { font-size: clamp(3rem, 1.4rem + 4.2vw, 5.7rem); }
}

/* Glass HUD label: reads like the colophon line the app prints under a plate */
.hud {
  display: grid; gap: 10px; padding: 14px 16px 14px 14px; width: 270px; max-width: 100%;
  border-radius: 12px; border: 1px solid color-mix(in srgb, var(--chalk) 80%, transparent);
  background: var(--glass); -webkit-backdrop-filter: blur(20px) saturate(1.2); backdrop-filter: blur(20px) saturate(1.2);
  box-shadow: 0 20px 44px -26px color-mix(in srgb, var(--graphite) 70%, transparent);
}
.hud .now { display: flex; align-items: center; gap: 8px; font: 500 var(--t-xs)/1 var(--f-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute); }
.hud .now i { width: 8px; height: 8px; border-radius: 50%; background: var(--brass); box-shadow: inset -1px -1px 0 color-mix(in srgb, var(--graphite) 30%, transparent); }
.hud .row { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 12px; align-items: center; }
.hud svg { width: 54px; height: 66px; }
.hud dl { margin: 0; display: grid; gap: 5px; }
.hud dl div { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px dashed var(--line-2); padding-bottom: 4px; }
.hud dt { font: 500 0.66rem/1.3 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.hud dd { margin: 0; font: 400 0.74rem/1.3 var(--f-mono); color: var(--graphite); font-variant-numeric: tabular-nums; text-align: right; }
.hud .draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2.4s .6s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.shot .hud .draw, .reduce .hud .draw { animation: none; stroke-dashoffset: 0; }
.hero .tag { position: absolute; right: var(--gutter); top: 84px; z-index: 2; }

/* ---------- Labels on media ---------- */
.kind { position: absolute; right: 18px; top: 18px; z-index: 3; padding: 4px 9px; border-radius: 999px; font: 500 0.64rem/1.2 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--graphite); background: var(--glass); border: 1px solid color-mix(in srgb, var(--chalk) 80%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.kind.sim { color: var(--mute); }

/* ---------- Maker's note ---------- */
.note { padding-block: clamp(80px, 11vw, 150px) clamp(40px, 6vw, 80px); }
.note-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(28px, 6vw, 88px); align-items: center; }
.portrait { margin: 0; position: relative; border-radius: 6px; overflow: hidden; aspect-ratio: 4 / 5; background: var(--vellum-2); box-shadow: 0 30px 60px -40px color-mix(in srgb, var(--graphite) 80%, transparent); }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.note blockquote { margin: 0; display: grid; gap: 24px; max-width: 54rem; }
.note blockquote .say { font: 400 var(--t-xl)/1.34 var(--f-serif); letter-spacing: -0.012em; max-width: 30ch; }
.note blockquote .say em { font-style: italic; }
.note blockquote .more { max-width: 46ch; font-size: clamp(1.08rem, 1rem + 0.4vw, 1.3rem); line-height: 1.55; color: var(--mute); }
.note footer { display: flex; align-items: center; gap: 12px; font-size: var(--t-sm); color: var(--mute); }
.note footer img { width: 36px; height: 36px; border-radius: 50%; }
.note footer b { color: var(--graphite); font-weight: 600; }
.note footer a { color: var(--graphite); }
@media (max-width: 760px) { .note-grid { grid-template-columns: 1fr; } .portrait { aspect-ratio: 4 / 3; } }

/* ---------- Sections ---------- */
.sec { padding-block: clamp(56px, 8vw, 110px); }
.sec.chalk { background: var(--chalk); border-block: 1px solid var(--line); }
.sec-head { display: grid; gap: 16px; margin-bottom: clamp(32px, 5vw, 56px); max-width: 48rem; }
.sec-head h2 { font-size: var(--t-h2); }
.sec-head p { color: var(--mute); font-size: var(--t-lg); line-height: 1.5; max-width: 38em; }

/* ---------- Tiles with corner-mark frames (graphite L-ticks, outside-the-paper style) ---------- */
.tile { margin: 0; display: grid; gap: 16px; min-width: 0; align-content: start; }
.media { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--vellum-2); aspect-ratio: 16 / 10; max-width: 100%; }
.media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.tile:hover .media img { transform: scale(1.02); }
.media::before {
  content: ""; position: absolute; inset: 12px; z-index: 2; pointer-events: none;
  --c: var(--chalk); --l: 18px; --w: 1.5px;
  background:
    linear-gradient(var(--c), var(--c)) top left / var(--l) var(--w),
    linear-gradient(var(--c), var(--c)) top left / var(--w) var(--l),
    linear-gradient(var(--c), var(--c)) top right / var(--l) var(--w),
    linear-gradient(var(--c), var(--c)) top right / var(--w) var(--l),
    linear-gradient(var(--c), var(--c)) bottom left / var(--l) var(--w),
    linear-gradient(var(--c), var(--c)) bottom left / var(--w) var(--l),
    linear-gradient(var(--c), var(--c)) bottom right / var(--l) var(--w),
    linear-gradient(var(--c), var(--c)) bottom right / var(--w) var(--l);
  background-repeat: no-repeat; opacity: .9;
}
.media::after {
  content: ""; position: absolute; inset: 12px; z-index: 2; pointer-events: none;
  border: 1px dashed var(--chalk); border-radius: 1px;
  opacity: 0; transition: opacity .35s ease;
}
.tile:hover .media::after, .strip button:hover .media::after, .strip button:focus-visible .media::after { opacity: .9; }
.chip {
  position: absolute; left: 18px; bottom: 18px; z-index: 3; max-width: calc(100% - 36px);
  display: grid; gap: 1px; padding: 7px 11px; border-radius: 8px;
  background: var(--glass); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border: 1px solid color-mix(in srgb, var(--chalk) 80%, transparent); color: var(--graphite);
}
.chip b { font: 600 var(--t-xs)/1.3 var(--f-serif); font-size: 0.82rem; }
.tile h3 { font: 400 1.9rem/1.05 var(--f-serif); letter-spacing: -0.015em; }
.tile h3 .n { font: 500 var(--t-xs)/1 var(--f-mono); letter-spacing: .14em; color: var(--mute); vertical-align: 0.6em; margin-right: 10px; }
.tile p { color: var(--mute); max-width: 36em; }
.tile .txt { display: grid; gap: 8px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(36px, 4vw, 56px) clamp(20px, 3vw, 32px); }
@media (max-width: 760px) { .grid-2 { grid-template-columns: 1fr; } }

/* ---------- The sheet: a live plate drawn in code ---------- */
.plate { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.board { position: relative; margin: 0; border-radius: 8px; overflow: hidden; background: var(--mat); box-shadow: 0 40px 70px -50px color-mix(in srgb, var(--graphite) 90%, transparent); }
.board svg { width: 100%; height: auto; touch-action: manipulation; }
.board .kind { background: color-mix(in srgb, var(--chalk) 82%, transparent); }
.board figcaption { position: absolute; left: 16px; bottom: 14px; right: 16px; color: color-mix(in srgb, var(--chalk) 78%, transparent); font: 400 0.68rem/1.35 var(--f-mono); letter-spacing: .05em; }
.ly { transition: opacity .45s var(--ease); }
.ly.off { opacity: 0; }
.ly .s { stroke-dasharray: 1; stroke-dashoffset: 0; }
.ly.drawing .s { animation: drawIn 1.1s var(--ease) both; }
@keyframes drawIn { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.peeking .ink { opacity: 0; transition-duration: .08s; }
#mirrorG { transition: transform .5s var(--ease); transform-box: fill-box; transform-origin: center; }
.mirrored #mirrorG { transform: scaleX(-1); }
#grid { transition: opacity .3s ease; }
.controls { display: grid; gap: 22px; }
.seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--graphite); border-radius: 10px; overflow: hidden; }
.seg button { appearance: none; border: 0; background: transparent; color: var(--graphite); padding: 12px 8px 11px; display: grid; gap: 3px; text-align: left; cursor: pointer; font: inherit; min-width: 0; transition: background .2s, color .2s; }
.seg button + button { border-left: 1px solid var(--line-2); }
.seg button i { font: 500 0.64rem/1 var(--f-mono); letter-spacing: .12em; font-style: normal; color: var(--mute); }
.seg button b { font: 500 1.02rem/1.2 var(--f-serif); overflow-wrap: anywhere; }
.seg button[aria-pressed="true"] { background: var(--graphite); color: var(--chalk); }
.seg button[aria-pressed="true"] i { color: color-mix(in srgb, var(--chalk) 70%, transparent); }
.layer-note { min-height: 6.4em; display: grid; gap: 8px; align-content: start; padding: 16px 0 0; border-top: 1px solid var(--line); }
.layer-note p { font-size: var(--t-lg); line-height: 1.45; }
.layer-note .coord { text-transform: uppercase; letter-spacing: .1em; }
.toggles { display: flex; flex-wrap: wrap; gap: 10px; }
.tg { appearance: none; display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 0 16px 0 12px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--chalk); color: var(--graphite); font: 500 0.74rem/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; cursor: pointer; transition: border-color .2s, background .2s, color .2s; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.tg:hover { border-color: var(--graphite); }
.tg svg { width: 18px; height: 18px; flex: none; }
.tg[aria-pressed="true"] { background: var(--graphite); color: var(--chalk); border-color: var(--graphite); }
.tg.peek { position: relative; overflow: hidden; }
.tg.peek .fill { position: absolute; inset: 0; background: var(--graphite); transform: scaleX(0); transform-origin: left; z-index: -1; }
.tg.peek { isolation: isolate; }
.tg.peek.held { background: var(--graphite); color: var(--chalk); border-color: var(--graphite); }
.path { list-style: none; margin: 0; padding: 0; display: grid; border-top: 1px solid var(--graphite); }
.path li { display: grid; grid-template-columns: 2.6rem minmax(0, 1fr); gap: 2px 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.path li::before { content: attr(data-n); grid-row: span 2; font: 500 var(--t-xs)/1.9 var(--f-mono); letter-spacing: .1em; color: var(--mute); }
.path b { font: 500 1.15rem/1.3 var(--f-serif); }
.path span { color: var(--mute); font-size: var(--t-sm); }
.prov { margin-top: 18px; color: var(--mute); font-size: var(--t-sm); line-height: 1.6; }
.prov em { color: var(--graphite); }
@media (max-width: 900px) { .plate { grid-template-columns: 1fr; } }

/* ---------- Your image: ruled columns ---------- */
.ruled { margin-top: clamp(56px, 8vw, 96px); display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(24px, 4vw, 64px); padding-top: 28px; border-top: 1px solid var(--graphite); }
.ruled h3 { font: 400 clamp(1.8rem, 1.3rem + 1.6vw, 2.6rem)/1.05 var(--f-serif); letter-spacing: -0.02em; }
.ruled .lead { margin-top: 14px; color: var(--mute); font-size: var(--t-lg); line-height: 1.5; }
@media (max-width: 860px) { .ruled { grid-template-columns: 1fr; } }

/* ---------- Steps + gestures ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--graphite); }
.steps li { padding: 22px 20px 22px 0; display: grid; gap: 8px; align-content: start; }
.steps li + li { padding-left: 20px; border-left: 1px solid var(--line); }
.steps .n { font: 500 var(--t-xs)/1 var(--f-mono); color: var(--mute); letter-spacing: .12em; }
.steps b { font: 400 1.7rem/1.05 var(--f-serif); letter-spacing: -0.015em; }
.steps span:last-child { color: var(--mute); font-size: var(--t-sm); }
@media (max-width: 980px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } .steps li:nth-child(odd) { padding-left: 0; border-left: 0; } .steps li { border-bottom: 1px solid var(--line); } }
.gestures { margin-top: clamp(36px, 5vw, 56px); display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.gestures div { padding: 20px 16px 0 0; display: grid; gap: 6px; align-content: start; min-height: 96px; }
.gestures div + div { padding-left: 16px; border-left: 1px solid var(--line); }
.gestures kbd { font: 500 var(--t-xs)/1.3 var(--f-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--graphite); display: flex; align-items: center; gap: 8px; }
.gestures kbd::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--brass); }
.gestures span { font: 400 var(--t-md)/1.35 var(--f-serif); color: var(--mute); }
@media (max-width: 980px) {
  .gestures { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gestures div:nth-child(3n+1) { padding-left: 0; border-left: 0; }
  .gestures div { padding-bottom: 18px; border-bottom: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 74%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; border-top: 0; padding-bottom: 8px; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }
  .steps li, .steps li + li { scroll-snap-align: start; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--chalk); }
  .gestures { grid-template-columns: 1fr 1fr; }
  .gestures div, .gestures div + div { padding: 16px 12px 16px 0; border-left: 0; min-height: 84px; }
  .gestures div:nth-child(even) { padding-left: 12px; border-left: 1px solid var(--line); }
}

/* ---------- Split facts ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.split .sec-head { margin-bottom: 26px; }
.split .sticky { position: sticky; top: 96px; }
.facts { margin: 0; display: grid; }
.facts div { padding: 16px 0; border-top: 1px solid var(--line); display: grid; gap: 4px; }
.facts div:last-child { border-bottom: 1px solid var(--line); }
.facts dt { font-weight: 600; }
.facts dd { margin: 0; color: var(--mute); font-size: var(--t-sm); line-height: 1.55; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split .sticky { position: static; } }

/* ---------- History: one dated chapter ---------- */
.hist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--graphite); }
.hist li { padding: 22px 22px 8px 0; display: grid; gap: 10px; align-content: start; }
.hist li + li { padding-left: 22px; border-left: 1px solid var(--line); }
.hist time { font: 400 clamp(2.4rem, 1.8rem + 2vw, 3.4rem)/1 var(--f-serif); letter-spacing: -0.03em; font-variant-numeric: oldstyle-nums; }
.hist b { font-weight: 600; }
.hist p { color: var(--mute); font-size: var(--t-sm); line-height: 1.6; }
.hist p em { color: var(--graphite); }
@media (max-width: 980px) { .hist { grid-template-columns: 1fr 1fr; } .hist li:nth-child(odd) { padding-left: 0; border-left: 0; } .hist li { border-bottom: 1px solid var(--line); padding-bottom: 22px; } }
@media (max-width: 560px) { .hist { grid-template-columns: 1fr; } .hist li, .hist li + li { padding: 20px 0; border-left: 0; } }

/* ---------- Gallery ---------- */
.gal-head { display: flex; gap: 20px; align-items: flex-end; justify-content: space-between; margin-bottom: clamp(28px, 4vw, 44px); }
.gal-head .sec-head { margin-bottom: 0; min-width: 0; }
.gal-nav { display: flex; gap: 10px; flex: none; }
.gal-nav button { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--chalk); color: var(--graphite); display: grid; place-items: center; cursor: pointer; transition: border-color .2s; }
.gal-nav button:hover { border-color: var(--graphite); }
.gal-nav svg { width: 18px; height: 18px; }
.strip {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(82vw, 640px); gap: 18px;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
  padding-inline: max(var(--gutter), calc((100vw - var(--col)) / 2)); scroll-padding-inline: max(var(--gutter), calc((100vw - var(--col)) / 2));
  padding-bottom: 14px; scrollbar-width: thin; scrollbar-color: var(--vellum-2) transparent;
}
@media (min-width: 900px) { .strip { grid-auto-columns: calc((min(100vw - 2 * var(--gutter), var(--col)) - 36px) / 2.4); } }
.strip figure { margin: 0; scroll-snap-align: start; display: grid; gap: 12px; min-width: 0; }
.strip button { padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: var(--radius); display: block; width: 100%; }
.strip .media { aspect-ratio: 16 / 10; }
.strip figcaption { display: flex; justify-content: space-between; gap: 16px; font-size: var(--t-sm); }
.strip figcaption b { font-weight: 500; }
.strip figcaption .coord { text-align: right; white-space: nowrap; }
@media (max-width: 560px) { .gal-nav button { width: 42px; height: 42px; } .strip figcaption { flex-direction: column; gap: 2px; } .strip figcaption .coord { text-align: left; } }
dialog.lb { padding: 0; border: 0; background: transparent; max-width: min(96vw, 1600px); width: 100%; color: var(--graphite); }
dialog.lb::backdrop { background: color-mix(in srgb, var(--vellum) 95%, transparent); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
dialog.lb img { width: 100%; height: auto; max-height: 82vh; object-fit: contain; border-radius: 4px; box-shadow: 0 30px 80px -30px color-mix(in srgb, var(--graphite) 80%, transparent); }
dialog.lb .lb-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 4px 0; font-size: var(--t-sm); }
dialog.lb .lb-btns { display: flex; gap: 8px; flex: none; }
dialog.lb button { border: 1px solid var(--line-2); background: var(--chalk); color: var(--graphite); border-radius: 999px; padding: 8px 16px; font: 500 0.72rem/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }

/* ---------- Proof (true numbers only; quote slots stay hidden until real) ---------- */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--graphite); }
.stats div { padding: 24px 24px 0 0; display: grid; gap: 10px; align-content: start; }
.stats div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.stats b { font: 400 clamp(3rem, 2rem + 4vw, 5.4rem)/0.9 var(--f-serif); letter-spacing: -0.04em; font-variant-numeric: lining-nums tabular-nums; }
.stats b small { font: 500 var(--t-xs)/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--mute); margin-left: 6px; vertical-align: 0.4em; }
.stats span { color: var(--mute); font-size: var(--t-sm); line-height: 1.5; max-width: 28em; }
.quotes { margin-top: 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.quotes[hidden] { display: none; }
.quote { margin: 0; padding: 24px; border: 1px solid var(--line); border-radius: 6px; background: var(--chalk); }
.quote blockquote { margin: 0 0 12px; font-size: var(--t-lg); line-height: 1.4; }
.quote figcaption { font: 500 var(--t-xs)/1.3 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr; } .stats div, .stats div + div { padding: 20px 0; border-left: 0; border-bottom: 1px solid var(--line); } }

/* ---------- Price card ---------- */
.price-card { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 56px); align-items: start; padding: clamp(24px, 4vw, 52px); border: 1px solid var(--line-2); border-radius: 14px; background: var(--chalk); }
.price-l { display: grid; align-content: start; }
.price-card .big { font: 400 clamp(3.4rem, 2.4rem + 4.6vw, 6.4rem)/0.92 var(--f-serif); letter-spacing: -0.035em; margin: 14px 0 14px; }
.price-card .big em { font-style: italic; font-weight: 340; }
.price-card p { color: var(--mute); max-width: 30em; }
.trust { list-style: none; margin: 26px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); display: grid; gap: 12px; font-size: var(--t-sm); }
.trust li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; align-items: start; overflow-wrap: anywhere; }
.trust svg { width: 20px; height: 20px; margin-top: 2px; }
.price-rows { list-style: none; margin: 0; padding: 0; display: grid; }
.price-rows li { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 4px 16px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.price-rows li:first-child { border-top: 1px solid var(--line); }
.price-rows b { font: 500 var(--t-xs)/1.9 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.price-rows span { line-height: 1.5; }
@media (max-width: 760px) { .price-card { grid-template-columns: 1fr; } .price-rows li { grid-template-columns: 1fr; } }

/* ---------- Final CTA on the cutting mat ---------- */
.cta { padding-block: clamp(64px, 9vw, 130px); }
.cta-card {
  position: relative; overflow: hidden; border-radius: 14px; color: var(--chalk);
  background:
    linear-gradient(color-mix(in srgb, var(--chalk) 7%, transparent) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, color-mix(in srgb, var(--chalk) 7%, transparent) 1px, transparent 1px) 0 0 / 28px 28px,
    var(--mat);
  padding: clamp(32px, 6vw, 72px) clamp(20px, 5vw, 64px) 0;
  display: grid; justify-items: center; text-align: center; gap: 22px;
}
.cta-card::before { content: ""; position: absolute; inset: 14px; border: 1px solid color-mix(in srgb, var(--chalk) 16%, transparent); border-radius: 8px; pointer-events: none; }
.cta-head { display: grid; justify-items: center; gap: 18px; }
.cta-card img.icon { width: clamp(64px, 7vw, 84px); height: auto; border-radius: 50%; box-shadow: 0 18px 34px -16px rgba(0,0,0,.5); }
.cta-card h2 { font-size: var(--t-h2); max-width: 16ch; }
.cta-p { color: color-mix(in srgb, var(--chalk) 80%, transparent); max-width: 34em; margin-inline: auto; }
.cta-card .btn-row { justify-content: center; }
.cta-card .ghost { background: transparent; color: var(--chalk); border-color: color-mix(in srgb, var(--chalk) 34%, transparent); -webkit-backdrop-filter: none; backdrop-filter: none; padding: 0 20px; }
.cta-card .ghost:hover { border-color: var(--chalk); }
.specs { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.specs span { padding: 6px 11px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--chalk) 24%, transparent); color: color-mix(in srgb, var(--chalk) 86%, transparent); }
.cta-shot { position: relative; margin: 14px 0 0; width: min(100%, 760px); }
.cta-shot .media { border-radius: 10px 10px 0 0; aspect-ratio: 16 / 9; }

/* ---------- Footer ---------- */
.foot { padding-block: 32px 48px; border-top: 1px solid var(--line); }
.foot .wrap { display: grid; gap: 10px; font-size: var(--t-xs); color: var(--mute); line-height: 1.6; font-family: var(--f-mono); letter-spacing: .02em; }
.foot b { color: var(--graphite); font-weight: 500; }

/* ---------- Privacy / support pages ---------- */
.doc .bar { background: color-mix(in srgb, var(--vellum) 88%, transparent); box-shadow: 0 1px 0 var(--line); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.doc .prose { padding-block: 130px 80px; max-width: calc(46rem + 2 * var(--gutter)); display: grid; gap: 18px; }
.doc .prose h1 { font-size: var(--t-h2); }
.doc .prose h2 { font: 600 var(--t-lg)/1.3 var(--f-serif); margin-top: 22px; }
.doc .prose p, .doc .prose li { color: var(--mute); }
.doc .prose ul { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
.doc .prose .lead { color: var(--graphite); font-size: var(--t-lg); line-height: 1.5; }
.doc .prose a { color: var(--graphite); }
.doc .prose details { border-top: 1px solid var(--line); padding: 14px 0; }
.doc .prose details:last-of-type { border-bottom: 1px solid var(--line); }
.doc .prose summary { cursor: pointer; font-weight: 600; color: var(--graphite); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.doc .prose summary::-webkit-details-marker { display: none; }
.doc .prose summary::after { content: "+"; font-family: var(--f-mono); color: var(--mute); }
.doc .prose details[open] summary::after { content: "\2212"; }
.doc .prose details p { margin-top: 8px; }

/* Scroll reveal: eased, settled, never looping */
.js .rv { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .rv.in { opacity: 1; transform: none; }
.shot .rv, .reduce .rv { opacity: 1 !important; transform: none !important; }

/* Phone hero: the art sits on top, the words sit on vellum below it */
@media (max-width: 640px) {
  .hero { min-height: 0; }
  .hero picture, .hero .poster { height: 360px; inset: 0 0 auto 0; }
  .hero .poster { object-position: 62% 50%; }
  .hero::after { background: linear-gradient(to bottom, color-mix(in srgb, var(--vellum) 0%, transparent) 0, color-mix(in srgb, var(--vellum) 0%, transparent) 250px, var(--vellum) 360px, var(--vellum) 100%); }
  .hero .wrap { padding-top: 300px; }
  .hud { display: none; }
  .hero .tag { top: 76px; right: 12px; }
  .chip { display: none; }
  .kind { right: 12px; top: 12px; }
}
@media (max-width: 400px) { .hero .eyebrow { letter-spacing: 0.1em; font-size: 0.68rem; } }

.sec.tight { padding-top: clamp(24px, 4vw, 48px); }
.board .kind { right: 14px; top: 14px; }
@media (max-width: 560px) { .board figcaption { position: static; padding: 10px 14px 14px; } .seg button b { font-size: .92rem; } }

/* ---------- Review pass: legibility over the art, phone gallery head, icon box ---------- */
.hero::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 140px; z-index: -1; pointer-events: none; background: linear-gradient(to bottom, color-mix(in srgb, var(--vellum) 78%, transparent), color-mix(in srgb, var(--vellum) 0%, transparent)); }
@media (min-width: 641px) {
  .hero::after {
    background:
      linear-gradient(to top, var(--vellum) 0%, color-mix(in srgb, var(--vellum) 84%, transparent) 18%, color-mix(in srgb, var(--vellum) 0%, transparent) 42%),
      linear-gradient(90deg, color-mix(in srgb, var(--vellum) 90%, transparent) 0%, color-mix(in srgb, var(--vellum) 72%, transparent) 26%, color-mix(in srgb, var(--vellum) 0%, transparent) 48%);
  }
}
.cta-card img.icon { aspect-ratio: 1; object-fit: cover; box-shadow: 0 0 0 1px color-mix(in srgb, var(--chalk) 30%, transparent), 0 18px 34px -16px rgba(0,0,0,.5); background: var(--mat); overflow: hidden; }
.note footer img { aspect-ratio: 1; flex: none; }
@media (max-width: 640px) { .gal-head { flex-direction: column; align-items: flex-start; } .gal-nav { align-self: flex-end; } }
