@font-face {
  font-family: "Work Sans";
  src: url("fonts/WorkSans-var.woff2") format("woff2");
  font-weight: 300 500;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #eeecea;
  --surface: #e4e1dd;
  --ink: #333231;
  --muted: #55514d;
  --accent: #5c6b54;
  --accent-ink: #ffffff;
  --accent-deep: #4b5845;
  --field-1: #cdc3b6;
  --dark: #2a2928;
  --dark-2: #3a3836;
  --dark-ink: #f1eeea;
  --dark-soft: #c9c2ba;
  --ui: #f6f5f3;

  --font: "Work Sans", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-ui: 15px;
  --step-lead: clamp(1.25rem, 1.1rem + 0.45vw, 1.5rem);
  --step-head: clamp(2rem, 1.2rem + 2.3vw, 3.5rem);
  --step-giant: clamp(7.5rem, 19vw, 20rem);

  --m: clamp(20px, 2.4vw, 32px);
  --r: 4px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --bar-h: 64px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: var(--bar-h); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: var(--step-body); line-height: 1.55; font-weight: 400;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  font-feature-settings: "tnum" 0;
}
img, video, canvas { display: block; max-width: 100%; }
button, input, select { font: inherit; color: inherit; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 10px 14px; z-index: 99; }
.skip:focus { left: 8px; }

/* icons */
.ico { display: inline-flex; width: 1.15em; height: 1.15em; flex: none; vertical-align: -0.2em; }
.ico svg { width: 100%; height: 100%; }

/* buttons */
.btn {
  appearance: none; border: 0; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: 0 26px; border-radius: var(--r);
  background: var(--accent); color: var(--accent-ink); font-weight: 500; font-size: var(--step-body);
  transition: background-color .25s var(--ease), transform .25s var(--ease);
}
.btn:hover { background: var(--accent-deep); }
.btn:active { transform: scale(.97); }
.btn.wide { width: 100%; }
.tlink {
  display: inline-flex; align-items: center; gap: .35em; text-decoration: none; font-weight: 500;
  min-height: 48px; padding: 0 4px;
}
.tlink .ico { transition: transform .3s var(--ease); }
.tlink:hover .ico { transform: translateX(4px); }
.tbtn { appearance: none; background: none; border: 0; cursor: pointer; font-weight: 500; min-height: 48px; padding: 0 12px; text-decoration: underline; text-underline-offset: 4px; }

/* top bar */
.bar {
  position: sticky; top: 0; z-index: 30; height: var(--bar-h);
  display: flex; align-items: center; gap: 32px; padding: 0 var(--m);
  background: var(--bg);
  transition: background-color .3s var(--ease);
}
.bar.on-dark { background: var(--dark); color: var(--dark-ink); }
.mark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.mark-tiles { display: grid; grid-template-columns: 9px 9px; gap: 2px; }
.mark-tiles i { width: 9px; height: 9px; background: currentColor; }
.mark-tiles i:nth-child(2), .mark-tiles i:nth-child(3) { background: var(--accent); }
.mark-word { font-size: var(--step-body); font-weight: 500; letter-spacing: .08em; }
.bar-links { display: flex; gap: 4px; margin-left: 8px; }
.bar-links a { text-decoration: none; padding: 10px 12px; font-size: var(--step-ui); border-radius: var(--r); transition: background-color .2s; }
.bar-links a:hover { background: rgba(0,0,0,.06); }
.bar.on-dark .bar-links a:hover { background: rgba(255,255,255,.1); }
.bar-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.credit { display: inline-flex; align-items: baseline; gap: 6px; text-decoration: none; font-size: var(--step-ui); font-variant-numeric: tabular-nums; }
.credit number-flow { font-weight: 500; }
.avatar {
  width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--field-1); color: var(--ink); font-size: var(--step-ui); font-weight: 500;
}
.bar.on-dark .avatar { background: var(--dark-2); color: var(--dark-ink); }

/* HERO */
.hero {
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px;
  padding: clamp(24px, 4vh, 56px) var(--m) 72px; min-height: calc(100svh - var(--bar-h));
  align-items: start;
}
.hero-copy { grid-column: 1 / span 4; padding-top: clamp(16px, 7vh, 96px); max-width: 30rem; }
.hero h1 { font-size: var(--step-head); font-weight: 300; line-height: 1.08; letter-spacing: -0.02em; }
.lead { margin-top: 28px; font-size: var(--step-body); line-height: 1.6; max-width: 34ch; }
.actions { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.fine { margin-top: 28px; font-size: var(--step-small); color: var(--muted); max-width: 38ch; }

.viewer { grid-column: 5 / -1; }
.stage {
  position: relative; aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--r);
  background: var(--surface); cursor: ew-resize; touch-action: pan-y; user-select: none; -webkit-user-select: none;
  max-height: calc(100svh - var(--bar-h) - 200px); width: 100%;
}
.stage img, .stage video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.before-wrap { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.tiles { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; transition: opacity .6s var(--ease); }
.handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos); width: 44px; margin-left: -22px;
  display: grid; place-items: center; outline: none;
}
.handle::before { content: ""; position: absolute; top: 0; bottom: 0; left: 21px; width: 2px; background: #fff; }
.grip {
  position: relative; width: 44px; height: 44px; border-radius: 50%; background: #fff; color: var(--ink);
  display: grid; place-items: center; outline: 2px solid rgba(30,29,28,.35);
  transition: transform .2s var(--ease);
}
.handle:focus-visible .grip { outline: 3px solid var(--accent); outline-offset: 2px; }
.stage.dragging .grip, .handle:hover .grip { transform: scale(1.1); }
.tag {
  position: absolute; top: 14px; padding: 4px 10px; border-radius: 3px; font-size: var(--step-small); font-weight: 500;
  background: rgba(30,29,28,.62); color: #fff; pointer-events: none;
}
.tag-l { left: 14px; } .tag-r { right: 14px; }
.loupe {
  position: absolute; width: 168px; height: 168px; border-radius: 50%; pointer-events: none;
  border: 3px solid #fff; outline: 2px solid rgba(30,29,28,.35); background-repeat: no-repeat;
  opacity: 0; transform: scale(.85); transition: opacity .2s, transform .2s var(--ease);
}
.loupe.on { opacity: 1; transform: scale(1); }
.viewer-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 14px; flex-wrap: wrap; }
.samples { display: flex; gap: 4px; background: var(--surface); padding: 4px; border-radius: var(--r); overflow-x: auto; scrollbar-width: none; }
.samples button {
  appearance: none; border: 0; background: none; cursor: pointer; white-space: nowrap;
  min-height: 40px; padding: 0 16px; border-radius: 3px; font-size: var(--step-ui);
  transition: background-color .2s, color .2s;
}
.samples button:hover { background: rgba(0,0,0,.05); }
.samples button[aria-selected="true"] { background: var(--ink); color: var(--bg); }
.viewer-meta { font-size: var(--step-small); color: var(--muted); font-variant-numeric: tabular-nums; }
.diag { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.diag li { font-size: var(--step-small); padding: 5px 10px; background: var(--surface); border-radius: 3px; }
.diag li.ok { background: var(--accent); color: var(--accent-ink); }

/* SHOWCASE */
.showcase {
  position: relative; background: var(--dark); color: var(--dark-ink);
  min-height: 88svh; padding: 96px 0 64px; display: flex; flex-direction: column; justify-content: center;
}
.rail {
  display: flex; align-items: center; gap: min(30vw, 460px);
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 24px calc(50vw - 220px); outline: none; cursor: grab;
}
.rail::-webkit-scrollbar { display: none; }
.rail.grabbing { cursor: grabbing; scroll-snap-type: none; }
.panel {
  flex: none; width: 440px; scroll-snap-align: center; border-radius: 10px;
  background: var(--dark-2); color: var(--dark-soft); padding: 18px; font-size: var(--step-ui); line-height: 1.5;
  transition: background-color .45s var(--ease), color .45s var(--ease), transform .45s var(--ease);
  transform: scale(.94);
}
.panel.is-lit { background: var(--ui); color: var(--ink); transform: none; }
.p-head { display: flex; align-items: center; gap: 8px; font-weight: 500; font-size: var(--step-ui); padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid rgba(127,127,127,.25); } /* taste-skill-ignore: inside data-ui panel */
.p-thumb { position: relative; border-radius: 6px; overflow: hidden; aspect-ratio: 16/9; }
.p-thumb img { width: 100%; height: 100%; object-fit: cover; }
.p-thumb span { position: absolute; left: 8px; bottom: 8px; font-size: var(--step-small); background: rgba(30,29,28,.7); color: #fff; padding: 2px 8px; border-radius: 3px; }
.p-dl { margin: 12px 0 0; display: grid; gap: 8px; }
.p-dl div { display: grid; grid-template-columns: 72px 1fr; gap: 10px; }
.p-dl dt { opacity: .75; }
.p-dl dd { margin: 0; }
.p-note { margin-top: 12px; font-size: var(--step-small); opacity: .8; }
.tiers { display: grid; gap: 8px; }
.tier {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 12px; cursor: pointer;
  border: 1px solid rgba(127,127,127,.35); border-radius: 6px; padding: 12px 14px; position: relative; /* taste-skill-ignore: form option inside data-ui */
  transition: border-color .2s, background-color .2s;
}
.tier input { position: absolute; opacity: 0; }
.tier span { display: grid; }
.tier b { font-weight: 500; font-size: var(--step-ui); }
.tier small { font-size: var(--step-small); opacity: .8; }
.tier em { font-style: normal; font-size: var(--step-small); font-variant-numeric: tabular-nums; }
.tier.is-on { border-color: var(--accent); background: rgba(92,107,84,.12); outline: 1px solid var(--accent); outline-offset: -2px; }
.tier:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
.q { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.q li { display: grid; grid-template-columns: 52px 1fr; grid-template-rows: auto 4px; gap: 6px 12px; align-items: center; padding: 8px; border-radius: 6px; }
.q li.is-hover { background: rgba(127,127,127,.12); }
.q img { grid-row: span 2; width: 52px; height: 40px; object-fit: cover; border-radius: 4px; }
.q span { display: grid; }
.q b { font-weight: 500; }
.q small { font-size: var(--step-small); opacity: .85; }
.q-bar { display: block; height: 4px; background: rgba(127,127,127,.25); border-radius: 2px; position: relative; overflow: hidden; }
.q-bar::after { content: ""; position: absolute; inset: 0; background: var(--accent); transform-origin: left; transform: scaleX(var(--p)); }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checks li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; }
.checks li > .ico { width: 22px; height: 22px; }
.checks li span:last-child { display: grid; }
.checks b { font-weight: 500; }
.checks small { font-size: var(--step-small); opacity: .85; }
.checks .pass > .ico { color: var(--accent); }
.checks .warn > .ico { color: #a2672a; }
.msg { background: rgba(127,127,127,.1); border-radius: 8px; padding: 14px; display: grid; gap: 8px; }
.msg-img { border-radius: 6px; overflow: hidden; aspect-ratio: 16/9; }
.msg-img img { width: 100%; height: 100%; object-fit: cover; }
.msg-btn { justify-self: start; font-size: var(--step-small); font-weight: 500; padding: 6px 12px; border-radius: 4px; background: var(--accent); color: #fff; }
.usage { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.usage li { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; gap: 10px; font-variant-numeric: tabular-nums; }
.usage i { height: 10px; border-radius: 2px; background: rgba(127,127,127,.22); position: relative; overflow: hidden; }
.usage i::after { content: ""; position: absolute; inset: 0; background: currentColor; opacity: .55; transform-origin: left; transform: scaleX(var(--w)); }
.usage li.me i::after { background: var(--accent); opacity: 1; }
.usage em { font-style: normal; text-align: right; }
.rail-caption {
  position: absolute; top: calc(96px + 24px); left: calc(50vw + 220px + 48px); width: calc(min(30vw, 460px) - 96px);
}
.rc-name { font-size: var(--step-lead); font-weight: 300; line-height: 1.2; }
.rail-caption p { margin-top: 10px; font-size: var(--step-body); color: var(--dark-ink); }
.rail-caption p.soft { color: var(--dark-soft); }
.rail-nav { display: flex; gap: 8px; padding: 32px var(--m) 0; justify-content: flex-start; }
.rn { width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--dark-2); color: var(--dark-ink); cursor: pointer; display: grid; place-items: center; transition: background-color .2s, transform .2s var(--ease); }
.rn:hover { background: #4a4744; }
.rn:active { transform: scale(.92); }

/* STAGES */
.stages {
  display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr auto; min-height: 88svh;
}
.st-left { background: var(--field-1); padding: clamp(48px, 8vh, 96px) var(--m) 32px; }
.st-clause { font-size: var(--step-head); font-weight: 300; line-height: 1.04; letter-spacing: -0.025em; max-width: 9em; }
.st-text { margin-top: 28px; max-width: 34ch; }
.st-right { background: var(--surface); display: grid; place-items: center; padding: 48px var(--m); }
.st-frag { width: min(460px, 100%); background: var(--ui); border-radius: 10px; padding: 16px; position: relative; min-height: 360px; font-size: var(--step-ui); }
.sf { display: none; }
.sf.is-on { display: block; animation: fadeIn .25s var(--ease); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.sf-img { position: relative; border-radius: 6px; overflow: hidden; aspect-ratio: 1024/738; }
.sf-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scan { position: absolute; left: 0; right: 0; height: 30%; top: -30%; background: rgba(92,107,84,.28); animation: scan 2.4s var(--ease) infinite; }
@keyframes scan { to { top: 100%; } }
.sf-json { margin: 12px 0 0; background: #2a2928; color: #e7e5e2; border-radius: 6px; padding: 12px 14px; font-size: var(--step-small); line-height: 1.55; overflow: auto; }
.route { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.route li { display: grid; gap: 2px; padding: 12px 14px; border-radius: 6px; background: rgba(92,107,84,.1); border-left: 3px solid var(--accent); }
.route li.dim { background: rgba(127,127,127,.08); border-left-color: #b9b2aa; }
.route b { font-weight: 500; }
.route span { font-size: var(--step-small); color: var(--muted); }
.grid-wrap .under { z-index: 0; }
.grid-wrap img:first-child { z-index: 1; }
.tilegrid { position: absolute; inset: 0; z-index: 2; display: grid; grid-template-columns: repeat(8, 1fr); grid-template-rows: repeat(6, 1fr); }
.tilegrid i { background: transparent; outline: 1px solid rgba(255,255,255,.35); }
.sf-cap { margin-top: 10px; font-variant-numeric: tabular-nums; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pair figure { margin: 0; }
.pair img { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: 40% 30%; border-radius: 6px; transform: scale(1); }
.pair figcaption { font-size: var(--step-small); margin-top: 6px; color: var(--muted); }
.sf-verdict { margin-top: 12px; display: flex; gap: 8px; align-items: flex-start; }
.sf-verdict .ico { color: var(--accent); width: 20px; height: 20px; }
.st-track { grid-column: 1 / -1; position: relative; background: var(--surface); padding: 8px var(--m) 32px; }
.st-track::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 50%; background: var(--field-1); }
.st-track > * { position: relative; }
.st-track input[type=range] { width: 100%; }
.st-names { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.st-names li { font-size: var(--step-body); color: var(--muted); }
.st-names li:nth-child(2) { text-align: center; transform: translateX(-17%); }
.st-names li:nth-child(3) { text-align: center; transform: translateX(17%); }
.st-names li:last-child { text-align: right; }
.st-names li.is-on { color: var(--ink); font-weight: 500; }

/* range inputs (square thumb, solid track) */
input[type=range] { -webkit-appearance: none; appearance: none; height: 32px; background: transparent; cursor: pointer; --fill: 0%; }
input[type=range]::-webkit-slider-runnable-track { height: 8px; border-radius: 0; background: linear-gradient(to right, var(--ink) var(--fill), rgba(51,50,49,.22) var(--fill)); } /* taste-skill-ignore: real form field, hard-stop fill of the range track */
input[type=range]::-moz-range-track { height: 8px; background: rgba(51,50,49,.22); }
input[type=range]::-moz-range-progress { height: 8px; background: var(--ink); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 32px; height: 32px; margin-top: -12px; background: var(--accent); border: 0; border-radius: 3px; transition: transform .15s var(--ease); }
input[type=range]::-moz-range-thumb { width: 32px; height: 32px; background: var(--accent); border: 0; border-radius: 3px; }
input[type=range]:active::-webkit-slider-thumb { transform: scale(1.12); }

/* FEATURES */
.features { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; }
.f-pin {
  grid-column: 1 / span 6; position: sticky; top: var(--bar-h); height: calc(100svh - var(--bar-h));
  background: var(--surface); display: grid; place-items: center; padding: 32px;
}
.f-out { width: min(440px, 100%); background: var(--ui); border-radius: 10px; padding: 14px; font-size: var(--step-ui); }
.fo-img { position: relative; border-radius: 6px; overflow: hidden; aspect-ratio: 4/3; }
.fo-img img { width: 100%; height: 100%; object-fit: cover; transition: filter .5s var(--ease); }
.boxes i { position: absolute; border: 2px solid #9fd07f; border-radius: 3px; transition: opacity .3s var(--ease); }
.boxes.off i { opacity: 0; }
.boxes .face { border-color: #f0c36b; }
.fo-badge { position: absolute; left: 10px; top: 10px; font-size: var(--step-small); font-weight: 500; padding: 4px 10px; border-radius: 3px; background: var(--accent); color: #fff; transition: background-color .3s; }
.fo-badge.warn { background: #8a4b1f; }
.fo-spec { margin: 12px 0 0; display: grid; gap: 6px; }
.fo-spec div { display: grid; grid-template-columns: 52px 1fr; gap: 10px; }
.fo-spec dt { color: var(--muted); }
.fo-spec dd { margin: 0; font-variant-numeric: tabular-nums; }
.f-col { grid-column: 8 / span 5; padding: 72px var(--m) 30vh 0; }
.f-title { font-size: var(--step-head); font-weight: 300; line-height: 1.1; letter-spacing: -0.02em; }
.f-block { margin-top: 30vh; max-width: 44ch; }
.f-block:first-of-type { margin-top: 16vh; }
.f-say { font-size: var(--step-lead); font-weight: 300; line-height: 1.25; margin-bottom: 14px; }
.f-block > p:not(.f-say) { font-size: var(--step-body); }
.seg { display: inline-flex; margin-top: 20px; background: var(--surface); padding: 4px; border-radius: var(--r); gap: 4px; flex-wrap: wrap; }
.seg button { appearance: none; border: 0; background: none; cursor: pointer; min-height: 44px; padding: 0 18px; border-radius: 3px; font-size: var(--step-ui); transition: background-color .2s, color .2s; }
.seg button:hover { background: rgba(0,0,0,.05); }
.seg button[aria-checked="true"] { background: var(--ink); color: var(--bg); }
.seg.dark { background: rgba(51,50,49,.12); }
.seg.small button { min-height: 40px; padding: 0 12px; font-size: var(--step-ui); }
.switch { display: flex; align-items: center; gap: 12px; margin-top: 16px; cursor: pointer; min-height: 44px; font-size: var(--step-body); }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sw { width: 48px; height: 28px; border-radius: 14px; background: #b9b2aa; position: relative; transition: background-color .25s var(--ease); flex: none; }
.sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .25s var(--ease); }
.switch input:checked + .sw { background: var(--accent); }
.switch input:checked + .sw::after { transform: translateX(20px); }
.switch input:focus-visible + .sw { outline: 3px solid var(--accent); outline-offset: 2px; }

/* QUOTA */
.quota {
  background: var(--field-1); min-height: 88svh; padding: clamp(64px, 10vh, 120px) var(--m) 56px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 48px;
}
.quota h2 { font-size: var(--step-head); font-weight: 300; line-height: 1.15; letter-spacing: -0.02em; max-width: 16em; }
.qa-ctl { margin-top: 28px; width: min(420px, 100%); }
.qa-ctl .seg { margin-top: 0; }
.range-l { display: flex; justify-content: space-between; margin-top: 22px; font-size: var(--step-ui); }
.range-l output { font-variant-numeric: tabular-nums; font-weight: 500; }
.qa-ctl input[type=range] { width: 100%; margin-top: 4px; }
.qa-bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.qa-fig { font-size: var(--step-giant); font-weight: 500; line-height: .8; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; display: flex; align-items: baseline; }
.qa-fig .unit { font-size: var(--step-head); letter-spacing: 0; margin-left: .2em; font-weight: 400; }
.qa-how { max-width: 34ch; font-size: var(--step-body); }

/* FAQ */
.faq { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; padding: 160px var(--m); }
.faq-h { grid-column: 1 / span 4; font-size: var(--step-head); font-weight: 300; line-height: 1.05; letter-spacing: -0.02em; position: sticky; top: calc(var(--bar-h) + 32px); align-self: start; }
.faq-list { grid-column: 5 / -1; display: grid; gap: 8px; }
.faq details { background: var(--surface); border-radius: var(--r); transition: background-color .3s var(--ease), color .3s var(--ease); }
.faq summary { list-style: none; cursor: pointer; min-height: 72px; padding: 22px 64px 22px 24px; font-size: var(--step-lead); font-weight: 500; position: relative; line-height: 1.35; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { position: absolute; right: 24px; top: 50%; width: 16px; height: 16px; margin-top: -8px; }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 0; top: 6.5px; width: 16px; height: 3px; background: currentColor; transition: transform .3s var(--ease); }
.faq summary i::after { transform: rotate(90deg); }
.faq details[open] { background: var(--accent); color: var(--accent-ink); }
.faq details[open] summary i::after { transform: rotate(0deg); }
.faq details p { padding: 0 24px 24px; max-width: 52ch; font-size: var(--step-body); }
.faq summary:hover { opacity: .85; }

/* FOOTER */
.foot { display: grid; grid-template-columns: repeat(12, 1fr); gap: 8px; padding: 10px; }
.ft { background: var(--surface); border-radius: var(--r); padding: 24px; min-height: 220px; display: flex; flex-direction: column; justify-content: space-between; text-decoration: none; }
.ft small { font-size: var(--step-small); color: var(--muted); }
.ft-statement { grid-column: 1 / span 4; }
.ft-statement p { font-size: var(--step-lead); font-weight: 300; line-height: 1.3; max-width: 18ch; }
.ft-nav { grid-column: 5 / span 3; justify-content: flex-start; gap: 6px; }
.ft-nav a { text-decoration: none; font-size: var(--step-body); padding: 4px 0; }
.ft-nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.ft-time { grid-column: 8 / span 2; }
.ft-time .clock { font-size: var(--step-head); font-weight: 300; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.ft-mail { grid-column: 10 / span 3; }
.ft-mail p { font-size: var(--step-lead); }
.ft-word { grid-column: 1 / span 8; min-height: 320px; background: var(--ink); color: var(--bg); align-items: center; justify-content: center; font-size: var(--step-giant); font-weight: 500; letter-spacing: .02em; line-height: 1; }
.ft-cta { grid-column: 9 / span 4; min-height: 320px; background: var(--accent); color: var(--accent-ink); transition: background-color .3s var(--ease); cursor: pointer; }
.ft-cta span { font-size: var(--step-lead); font-weight: 300; line-height: 1.2; max-width: 9em; }
.ft-cta svg { align-self: flex-end; transition: transform .35s var(--ease); }
.ft-cta:hover { background: var(--accent-deep); }
.ft-cta:hover svg { transform: translate(6px, -6px); }
.ft-credits { grid-column: 1 / -1; min-height: 0; }
.ft-credits p { font-size: var(--step-small); color: var(--muted); line-height: 1.7; }
.ft-credits a { color: var(--muted); }

/* mobile bottom bar */
.mbar { display: none; }

/* drop overlay */
.drop {
  position: fixed; inset: 0; z-index: 80; background: rgba(92,107,84,.94); color: #fff;
  display: none; place-items: center;
}
.drop p { font-size: var(--step-head); font-weight: 300; }
.drop.on { display: grid; }

/* JOB DIALOG */
.job {
  width: min(1120px, calc(100vw - 48px)); max-height: calc(100svh - 48px); padding: 0; border: 0; border-radius: 10px;
  background: var(--bg); color: var(--ink); box-shadow: 0 30px 80px rgba(0,0,0,.35); overflow: hidden; /* taste-skill-ignore: dialog */
}
.job::backdrop { background: rgba(28,27,26,.6); }
.job[open] { animation: rise .4s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.job-in { display: flex; flex-direction: column; max-height: calc(100svh - 48px); }
.job-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 24px 8px; }
.job-head h2 { font-size: var(--step-lead); font-weight: 500; }
.x { width: 44px; height: 44px; border: 0; background: var(--surface); border-radius: 50%; cursor: pointer; display: grid; place-items: center; }
.job-steps { list-style: none; display: flex; gap: 6px; padding: 0 24px; margin: 6px 0 16px; }
.job-steps li { flex: 1; font-size: var(--step-small); color: var(--muted); padding-top: 8px; position: relative; }
.job-steps li::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; border-radius: 2px; background: var(--surface); }
.job-steps li.is-done::before, .job-steps li.is-on::before { background: var(--accent); }
.job-steps li.is-on { color: var(--ink); font-weight: 500; }
.job-body { display: grid; grid-template-columns: 1.45fr 1fr; gap: 24px; padding: 0 24px 24px; overflow: auto; }
.job-media { position: relative; border-radius: 6px; overflow: hidden; background: var(--surface); aspect-ratio: 3/2; align-self: start; }
.job-media .stage { max-height: none; }
.job-media .jm-img { width: 100%; height: 100%; object-fit: cover; }
.job-media .scan { height: 22%; }
.jm-grid { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(8, 1fr); grid-template-rows: repeat(6, 1fr); }
.jm-grid i { background: rgba(238,236,234,.0); outline: 1px solid rgba(255,255,255,.25); transition: background-color .3s; }
.jm-grid i.hot { background: rgba(92,107,84,.45); }
.job-side { display: flex; flex-direction: column; gap: 24px; }
.js-done { order: -1; }
.js { display: none; }
.js.is-on { display: block; animation: fadeIn .3s var(--ease); }
.js-title { display: flex; align-items: center; gap: 8px; font-weight: 500; font-size: var(--step-body); margin-bottom: 12px; }
.typing { min-height: 7.5em; font-size: var(--step-body); line-height: 1.6; white-space: pre-line; }
.typing::after { content: ""; display: inline-block; width: 8px; height: 1.1em; background: var(--accent); vertical-align: -0.2em; margin-left: 2px; animation: blink 1s steps(2) infinite; }
.typing.done::after { display: none; }
@keyframes blink { 50% { opacity: 0; } }
.js-src { margin-top: 18px; }
.js-src p { font-size: var(--step-ui); }
.js-src .seg { margin-top: 8px; }
.js-plan .btn { margin-top: 16px; }
.run { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.run li { padding-left: 28px; position: relative; color: var(--muted); }
.run li::before { content: ""; position: absolute; left: 0; top: .35em; width: 14px; height: 14px; border-radius: 50%; border: 2px solid #b9b2aa; }
.run li.on { color: var(--ink); font-weight: 500; }
.run li.on::before { border-color: var(--accent); border-top-color: transparent; animation: spin .8s linear infinite; }
.run li.done { color: var(--ink); }
.run li.done::before { background: var(--accent); border-color: var(--accent); }
@keyframes spin { to { transform: rotate(360deg); } }
.run-num { margin-top: 18px; font-size: var(--step-head); font-weight: 300; font-variant-numeric: tabular-nums; display: flex; align-items: baseline; gap: 4px; }
.run-num span { font-size: var(--step-lead); }
.done-text { font-size: var(--step-body); }
.done-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 16px; align-items: center; }

/* entrances (content stays visible without script) */
.js-ready [data-enter] { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  .js-ready [data-enter] { opacity: 1 !important; transform: none !important; }
  .scan, .run li.on::before, .typing::after { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- tablet ---------- */
@media (max-width: 1080px) {
  .hero-copy { grid-column: 1 / -1; max-width: 40rem; padding-top: 24px; }
  .viewer { grid-column: 1 / -1; margin-top: 40px; }
  .stage { max-height: none; }
  .rail-caption { position: static; width: auto; max-width: 40ch; padding: 24px var(--m) 0; }
  .f-pin { grid-column: 1 / span 6; }
  .f-col { grid-column: 7 / -1; padding-left: 0; }
  .faq-h { grid-column: 1 / -1; position: static; margin-bottom: 32px; }
  .faq-list { grid-column: 1 / -1; }
}

/* ---------- phone ---------- */
@media (max-width: 720px) {
  :root { --bar-h: 56px; }
  .bar { gap: 12px; }
  .bar-links { display: none; }
  .mark-word { font-size: var(--step-body); }
  .hero { display: block; padding: 28px var(--m) 48px; min-height: 0; }
  .hero h1 { font-size: var(--step-head); }
  .lead { margin-top: 18px; font-size: var(--step-body); }
  .actions { margin-top: 22px; }
  .actions .btn { flex: 1; }
  .fine { display: none; }
  .viewer { margin-top: 28px; margin-left: calc(var(--m) * -1); margin-right: calc(var(--m) * -1); }
  .stage { aspect-ratio: 4/3; border-radius: 0; }
  .viewer-bar, .diag { padding: 0 var(--m); }
  .viewer-meta { width: 100%; }
  .samples { width: 100%; }
  .samples button { flex: 1; padding: 0 10px; }
  .loupe { display: none; }

  .showcase { min-height: 0; padding: 56px 0 40px; }
  .rail { gap: 7vw; padding: 12px 7vw; }
  .panel { width: 86vw; transform: scale(.96); }
  .rail-caption { padding: 20px var(--m) 0; }
  .rc-name { font-size: var(--step-lead); }
  .rail-nav { padding-top: 20px; }

  .stages { display: flex; flex-direction: column; min-height: 0; }
  .st-right { order: 1; padding: 28px var(--m); min-height: 46svh; }
  .st-track { order: 2; background: var(--surface); padding: 4px var(--m) 16px; }
  .st-track::before { display: none; }
  .st-left { order: 3; padding: 32px var(--m) 48px; }
  .st-clause { font-size: var(--step-head); }
  .st-names { grid-template-columns: 1fr 1fr 1fr 1fr; }
  .st-frag { min-height: 0; }
  input[type=range]::-webkit-slider-thumb { width: 40px; height: 40px; margin-top: -16px; }

  .features { display: block; }
  .f-pin { position: sticky; top: var(--bar-h); height: 42svh; z-index: 2; padding: 12px var(--m); }
  .f-out { width: 100%; height: 100%; display: grid; grid-template-columns: 1.2fr 1fr; gap: 12px; align-items: center; padding: 10px; }
  .fo-img { aspect-ratio: 4/3; height: auto; width: 100%; }
  .fo-spec { margin: 0; font-size: var(--step-small); }
  .fo-spec div { grid-template-columns: 1fr; gap: 0; }
  .f-col { padding: 40px var(--m) 25vh; }
  .f-block { margin-top: 18vh; }
  .f-block:first-of-type { margin-top: 32px; }
  .f-say { font-size: var(--step-lead); }
  .f-block > p:not(.f-say) { font-size: var(--step-body); }
  .seg { display: flex; width: 100%; }
  .seg button { flex: 1; }

  .quota { min-height: 84svh; padding: 64px var(--m) 40px; }
  .quota h2 { font-size: var(--step-lead); }
  .qa-bottom { flex-direction: column; align-items: flex-start; gap: 16px; }
  .qa-fig { font-size: var(--step-giant); flex-direction: column; align-items: flex-start; }
  .qa-fig .unit { font-size: var(--step-lead); margin: 14px 0 0; }
  .qa-how { font-size: var(--step-ui); }

  .faq { display: block; padding: 88px var(--m); }
  .faq-h { font-size: var(--step-head); }
  .faq-list { gap: 6px; }
  .faq summary { font-size: var(--step-body); min-height: 64px; padding: 18px 56px 18px 20px; }
  .faq details p { padding: 0 20px 20px; font-size: var(--step-body); }

  .foot { grid-template-columns: 1fr 1fr; gap: 6px; padding: 6px 6px 88px; margin-top: 56px; }
  .ft { padding: 20px; min-height: 150px; }
  .ft-word { grid-column: 1 / -1; order: 1; min-height: 160px; font-size: var(--step-giant); }
  .ft-cta { grid-column: 1 / -1; order: 2; min-height: 160px; }
  .ft-cta span { font-size: var(--step-lead); }
  .ft-nav { grid-column: 1; order: 3; }
  .ft-mail { grid-column: 2; order: 4; }
  .ft-time { grid-column: 1; order: 5; }
  .ft-statement { grid-column: 2; order: 6; }
  .ft-statement p { font-size: var(--step-body); }
  .ft-time .clock { font-size: var(--step-lead); }
  .ft-credits { grid-column: 1 / -1; order: 7; }

  .mbar {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 25;
    padding: 10px var(--m) calc(10px + env(safe-area-inset-bottom)); background: var(--bg);
    transform: translateY(110%); transition: transform .35s var(--ease);
  }
  .mbar.on { transform: none; }

  .job { width: 100vw; max-width: 100vw; height: 100svh; max-height: 100svh; border-radius: 0; margin: 0; }
  .job-in { max-height: 100svh; height: 100%; }
  .job-head { padding: 12px 16px 4px; }
  .job-steps { padding: 0 16px; }
  .job-body { grid-template-columns: 1fr; padding: 0 16px 24px; gap: 16px; }
  .run-num { font-size: var(--step-head); }
}

/* GALLERY: this week's results */
.gallery { padding: 140px var(--m) 120px; display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; row-gap: 24px; }
.g-head { grid-column: 1 / span 5; align-self: end; padding-bottom: 8px; }
.g-head h2 { font-size: var(--step-head); font-weight: 300; line-height: 1.05; letter-spacing: -0.02em; }
.g-head p { margin-top: 18px; max-width: 32ch; }
.g-item { margin: 0; position: relative; }
.g-item .g-media { position: relative; overflow: hidden; border-radius: var(--r); background: var(--surface); cursor: pointer; touch-action: manipulation; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.g-media img, .g-media video { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.g-media .g-before { position: absolute; inset: 0; opacity: 0; transition: opacity .25s var(--ease); }
.g-item.peek .g-before { opacity: 1; }
.g-item:hover .g-media > img:first-child, .g-item:hover .g-media > video:first-child { transform: scale(1.025); }
.g-hint { position: absolute; right: 12px; bottom: 12px; font-size: var(--step-small); font-weight: 500; padding: 5px 10px; border-radius: 3px; background: rgba(30,29,28,.62); color: #fff; pointer-events: none; }
.g-item figcaption { margin-top: 12px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; }
.g-item figcaption b { font-weight: 500; }
.g-item figcaption span { color: var(--muted); font-size: var(--step-ui); font-variant-numeric: tabular-nums; }
.g-a { grid-column: 6 / span 7; grid-row: 1 / span 2; }
.g-a .g-media { aspect-ratio: 1600/1182; }
.g-b { grid-column: 1 / span 5; }
.g-b .g-media { aspect-ratio: 16/9; }
.g-c { grid-column: 1 / span 4; }
.g-c .g-media { aspect-ratio: 2/3; }
.g-d { grid-column: 5 / span 8; align-self: end; }
.g-d .g-media { aspect-ratio: 1600/1066; }
@media (max-width: 1080px) {
  .g-head { grid-column: 1 / -1; }
  .g-a { grid-column: 1 / -1; grid-row: auto; }
  .g-b { grid-column: 1 / span 6; }
  .g-c { grid-column: 7 / span 6; grid-row: span 2; }
  .g-d { grid-column: 1 / span 6; }
}
@media (max-width: 720px) {
  .gallery { display: flex; flex-direction: column; padding: 88px var(--m) 72px; gap: 32px; }
  .g-c .g-media { aspect-ratio: 4/5; }
}
