/* =====================================================================
   Lime & ink. White and near-black carry the page, one acid lime does
   the shouting (actions + one field per screen), photos bring the colour.
   ===================================================================== */

@font-face {
  font-family: "Archivo";
  src: url("../assets/fonts/archivo-latin.woff2") format("woff2");
  font-weight: 400 900;
  font-stretch: 62% 100%;
  font-display: swap;
}
/* Fallbacks sized to Archivo's measured widths, so lines wrap the same before and
   after the web font arrives (no layout shift on slow connections). */
@font-face { font-family: "Archivo FB"; src: local("Arial"), local("Helvetica"), local("Liberation Sans"); size-adjust: 100.7%; }
@font-face { font-family: "Archivo FB R"; src: local("Roboto"); size-adjust: 111.2%; }
@font-face { font-family: "Archivo Disp FB"; src: local("Arial Bold"), local("Arial-BoldMT"), local("Helvetica Bold"), local("Liberation Sans Bold"), local("Arial"); size-adjust: 70.2%; }
@font-face { font-family: "Archivo Disp FB R"; src: local("Roboto Bold"), local("Roboto-Bold"), local("Roboto"); size-adjust: 70.2%; }

:root {
  /* colour */
  --ink: #111111;
  --paper: #ffffff;
  --surface: #f2f2ee;
  --surface-2: #e6e6e0;
  --lime: #d4ff3a;
  --lime-soft: #f1ffc9;
  --muted: #55554f;
  --on-ink-soft: #c9c9c2;
  --action: var(--lime);        /* config.js `accent` overrides this */
  --action-ink: var(--ink);     /* config.js `accentText` overrides this */
  --focus: var(--ink);

  /* type */
  --font: "Archivo", "Archivo FB", "Archivo FB R", sans-serif;
  --font-display: "Archivo", "Archivo Disp FB", "Archivo Disp FB R", sans-serif;
  --t-small: 0.875rem;
  --t-body: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --t-lead: clamp(1.125rem, 1.02rem + 0.5vw, 1.4375rem);
  --t-title: clamp(2rem, 1.4rem + 1.6vw, 2.75rem);
  --t-head: clamp(2.5rem, 1.3rem + 5.4vw, 6.25rem);

  /* space */
  --m: clamp(16px, 2.6vw, 36px);
  --section: clamp(80px, 10vw, 168px);
  --bar-h: 60px;
  --radius: 24px;
  --radius-media: 18px;

  /* motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-sheet: cubic-bezier(0.32, 0.72, 0, 1);
}

/* ─────────── base ─────────── */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html {
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--bar-h) + 8px);
  scrollbar-color: var(--ink) var(--surface);
}
html:has(dialog[open]) { overflow: hidden; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--t-body);
  line-height: 1.5;
}
img { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
button, a, .chip, .btn, .tile { touch-action: manipulation; }
.btn, .chip, .segmented button, .tile { -webkit-user-select: none; user-select: none; }
input, textarea, select { font-size: max(16px, 1em); }
a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 0.08em; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--lime); color: var(--ink); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: fixed; left: var(--m); top: 10px; z-index: 100;
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 999px;
  clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; white-space: nowrap;
}
.skip:focus { clip-path: none; width: auto; height: auto; }

/* Display voice: heavy condensed caps */
.display, .grid-empty-title {
  font-family: var(--font-display);
}
.display {
  font-weight: 900;
  font-stretch: 62%;
  text-transform: uppercase;
  line-height: 0.88;
  letter-spacing: -0.005em;
  text-wrap: balance;
}
.section-title { font-size: var(--t-head); max-width: 15ch; }

/* ─────────── buttons & chips ─────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px;
  border-radius: 999px;
  font-weight: 800; font-size: 1.0625rem; line-height: 1.1; text-decoration: none;
  transition: transform 160ms var(--ease-out), background-color 160ms, color 160ms;
}
.btn:active { transform: scale(0.97); }
.btn-big { min-height: 60px; padding: 0 32px; font-size: 1.125rem; }
.btn-block { width: 100%; }
.btn-action { background: var(--action); color: var(--action-ink); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-soft { background: var(--surface); color: var(--ink); }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.btn-text {
  display: inline-flex; min-height: 44px; align-items: center; margin-top: 8px;
  font-weight: 600; text-decoration: underline; color: var(--muted);
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px;
  border-radius: 999px; background: var(--surface); color: var(--ink);
  font-weight: 700; font-size: 1rem; white-space: nowrap;
  transition: background-color 160ms, color 160ms, transform 160ms var(--ease-out);
}
.chip:active { transform: scale(0.96); }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; }

@media (hover: hover) and (pointer: fine) {
  .btn-action:hover { background: color-mix(in srgb, var(--action) 88%, var(--ink)); }
  .btn-ink:hover { background: #2b2b2b; }
  .btn-soft:hover { background: var(--surface-2); }
  .chip:hover { background: var(--surface-2); }
  .chip[aria-pressed="true"]:hover { background: var(--ink); }
}

/* ─────────── top bar ─────────── */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 40;
  height: calc(var(--bar-h) + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) max(var(--m), env(safe-area-inset-right)) 0 max(var(--m), env(safe-area-inset-left));
  display: flex; align-items: center; gap: 24px;
  background: var(--paper);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; min-height: 44px; }
.brand-mark, .brand-logo { width: auto; height: 28px; }
.brand-name { font-weight: 900; font-stretch: 75%; font-size: 1.4375rem; letter-spacing: -0.01em; text-transform: uppercase; }
.bar-nav { display: none; gap: 24px; margin-left: auto; }
.bar-nav a { font-weight: 700; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.bar-cta {
  margin-left: auto; min-height: 44px; display: inline-flex; align-items: center;
  padding: 0 18px; border-radius: 999px; background: var(--action); color: var(--action-ink);
  font-weight: 800; font-size: var(--t-small); text-decoration: none;
  transition: transform 160ms var(--ease-out);
}
.bar-cta:active { transform: scale(0.97); }
@media (min-width: 820px) {
  .bar-nav { display: flex; }
  .bar-cta { margin-left: 8px; }
}
@media (hover: hover) and (pointer: fine) {
  .bar-nav a:hover { text-decoration: underline; }
  .bar-cta:hover { background: color-mix(in srgb, var(--action) 88%, var(--ink)); }
}

/* ─────────── hero = the tool picker ─────────── */
.hero {
  padding: calc(var(--bar-h) + env(safe-area-inset-top) + 12px) var(--m) clamp(56px, 7vw, 96px);
  display: grid; gap: 14px;
}
.hero-title {
  /* sized so the longest line ("Zero skill issues.") fills the measure */
  font-size: min(calc((100vw - 2 * var(--m)) / 7.25), 9.5rem);
  line-height: 0.86;
  letter-spacing: -0.01em;
}
.hero-side { display: grid; gap: 14px; }
.hero-lede { font-size: var(--t-body); line-height: 1.4; max-width: 44ch; font-weight: 500; }

.find { position: relative; }
.find-icon { position: absolute; left: 18px; top: 50%; translate: 0 -50%; pointer-events: none; color: var(--ink); }
.find-input {
  width: 100%; min-height: 54px; padding: 0 20px 0 52px;
  appearance: none; -webkit-appearance: none;
  border: 2px solid transparent; border-radius: 999px;
  background: var(--surface); color: var(--ink);
  font-size: 1.0625rem; font-weight: 600;
  caret-color: var(--ink);
  transition: border-color 160ms, background-color 160ms;
}
.find-input::placeholder { color: var(--muted); font-weight: 500; }
.find-input::-webkit-search-cancel-button { -webkit-appearance: none; }
.find-input:focus { outline: none; border-color: var(--ink); background: #fff; }

.segmented {
  display: inline-flex; padding: 4px; gap: 4px; border-radius: 999px; background: var(--surface);
  justify-self: start;
}
.segmented button {
  min-height: 44px; padding: 0 18px; border-radius: 999px; font-weight: 800;
  display: inline-flex; align-items: center; gap: 6px;
  transition: background-color 160ms, color 160ms;
}
.seg-n { font-weight: 600; opacity: 0.6; font-variant-numeric: tabular-nums; }
.segmented button[aria-checked="true"] { background: var(--ink); color: #fff; }
@media (hover: hover) and (pointer: fine) {
  .segmented button:not([aria-checked="true"]):hover { background: var(--surface-2); }
}

/* grid of tools */
.grid {
  margin-top: 8px;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px 10px;
}
@media (min-width: 640px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px 14px; } }
@media (min-width: 1000px) { .grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 26px 16px; } }

.tile { display: block; width: 100%; text-align: left; color: inherit; }
.tile-pic {
  position: relative; display: block; aspect-ratio: 1; overflow: hidden;
  border-radius: var(--radius-media); background: var(--surface);
  transition: transform 220ms var(--ease-out);
}
.tile-pic img { width: 100%; height: 100%; object-fit: cover; }
.tile-video {
  position: absolute; top: 6px; left: 6px;
  display: inline-flex; align-items: center; gap: 3px;
  font-size: var(--t-small); font-weight: 800; line-height: 1;
  padding: 4px 7px 4px 5px; border-radius: 999px; background: var(--ink); color: #fff;
}
.tile-text { display: block; margin-top: 8px; min-height: 2.3em; }
.tile-name { display: block; font-weight: 800; font-size: var(--t-body); line-height: 1.15; }
.tile-line { display: none; }
.tile:active .tile-pic { transform: scale(0.97); }
.grid.is-enter .tile { animation: tile-in 420ms var(--ease-out) both; animation-delay: calc(min(var(--i, 0), 14) * 28ms); }
@keyframes tile-in { from { opacity: 0; transform: translateY(14px) scale(0.98); } }
.skel::before {
  content: ""; display: block; aspect-ratio: 1; border-radius: var(--radius-media); background: var(--surface);
}
.skel::after { content: ""; display: block; height: 2.3em; margin-top: 8px; }
@media (min-width: 1200px) {
  .tile-line {
    display: block; margin-top: 3px; color: var(--muted); font-size: 1rem; line-height: 1.3;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .tile-text { min-height: 2.75em; }
  .skel::after { height: 2.75em; }
}
@media (hover: hover) and (pointer: fine) {
  .tile:hover .tile-pic { transform: translateY(-4px) rotate(-1deg); }
  .tile:hover .tile-name { text-decoration: underline; text-decoration-thickness: 0.1em; }
}

.grid-empty {
  margin-top: 8px; padding: 24px; border-radius: var(--radius);
  background: var(--surface);
}
.grid-empty-title { font-weight: 900; font-stretch: 62%; text-transform: uppercase; font-size: 2rem; line-height: 0.95; }
.grid-empty p + p { margin-top: 8px; }
.grid-empty-actions { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 10px; }
.sample-note { margin-top: 10px; color: var(--muted); font-size: var(--t-small); }
.noscript-list { columns: 2; font-size: var(--t-lead); }

@media (min-width: 1000px) {
  .hero {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    column-gap: clamp(32px, 4vw, 72px); row-gap: 18px;
    padding-top: calc(var(--bar-h) + 16px);
  }
  .hero-title {
    grid-column: 1; align-self: end;
    font-size: min(calc((100vw - 2 * var(--m) - clamp(32px, 4vw, 72px)) * 7 / 12 / 7.25), 9.5rem);
  }
  .hero-side { grid-column: 2; align-self: end; }
  .grid, .grid-empty, .sample-note, #find-status { grid-column: 1 / -1; }
}

/* ─────────── compare slider ─────────── */
.compare {
  position: relative; overflow: hidden; background: var(--surface-2);
  --pos: 50%;
  touch-action: pan-y;
  cursor: ew-resize;
}
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; -webkit-user-drag: none; }
.compare-after { clip-path: inset(0 0 0 var(--pos)); }
.compare-handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos); width: 4px; margin-left: -2px;
  background: #fff; pointer-events: none;
}
.compare-handle::after {
  content: ""; position: absolute; top: 50%; left: 50%;
  width: 48px; height: 48px; margin: -24px 0 0 -24px; border-radius: 999px;
  background: var(--lime) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 6l-6 6 6 6M15 6l6 6-6 6' fill='none' stroke='%23111111' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 24px no-repeat;
  border: 3px solid #fff;
  transition: transform 160ms var(--ease-out);
}
.compare.is-dragging .compare-handle::after { transform: scale(1.1); }
.compare-tag {
  position: absolute; top: 12px; z-index: 1; pointer-events: none;
  font-size: 0.875rem; font-weight: 800; line-height: 1; padding: 8px 11px; border-radius: 999px;
}
.compare-tag-before { left: 12px; background: rgba(17, 17, 17, 0.75); color: #fff; }
.compare-tag-after { right: 12px; background: #fff; color: var(--ink); }
.compare-video {
  position: absolute; bottom: 12px; left: 12px; z-index: 1; pointer-events: none;
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 0.875rem; font-weight: 800; line-height: 1; padding: 8px 12px 8px 9px; border-radius: 999px;
  background: var(--ink); color: #fff;
}
.compare-range {
  position: absolute; inset: 0; width: 100%; height: 100%;
  margin: 0; opacity: 0; cursor: ew-resize; pointer-events: none;
}
.compare:has(.compare-range:focus-visible) { outline: 3px solid var(--focus); outline-offset: 3px; }
.is-motion .compare-after { animation: drift 7s ease-in-out infinite alternate; }
@keyframes drift { from { transform: scale(1.02) translate(0, 0); } to { transform: scale(1.1) translate(-2%, -1.5%); } }

/* ─────────── spotlight ─────────── */
.spot { display: grid; background: var(--ink); }
.compare-wide { aspect-ratio: 4 / 5; width: 100%; }
.spot-bar {
  position: relative; z-index: 1;
  background: var(--lime); color: var(--ink);
  padding: clamp(28px, 4vw, 56px) var(--m) clamp(32px, 4vw, 56px);
}
.spot-bar p { margin-top: 16px; font-size: var(--t-lead); line-height: 1.35; max-width: 32ch; font-weight: 500; }
.spot-bar .btn { margin-top: 28px; }
@media (min-width: 900px) {
  .spot { grid-template-columns: repeat(12, 1fr); }
  .spot-media { grid-column: 1 / -1; grid-row: 1; }
  .compare-wide { aspect-ratio: 16 / 9; max-height: 92svh; }
  .spot-bar { grid-column: 8 / -1; grid-row: 1; align-self: end; border-radius: var(--radius) 0 0 0; }
}

/* ─────────── video row ─────────── */
.video { padding-top: var(--section); }
.video .section-title { padding: 0 var(--m); }
.video-row { margin-top: clamp(28px, 4vw, 56px); display: grid; }
.vpanel { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr); align-items: end; gap: 20px; padding: 28px var(--m) 32px; }
.vpanel img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-media); }
.vpanel h3 { font-size: var(--t-title); }
.vpanel p { margin-top: 12px; font-size: 1rem; line-height: 1.4; }
.vpanel .btn { margin-top: 18px; min-height: 48px; padding: 0 20px; font-size: 1rem; }
.vpanel-lime { background: var(--lime); color: var(--ink); }
.vpanel-soft { background: var(--surface); color: var(--ink); }
.vpanel-ink { background: var(--ink); color: #fff; --focus: var(--lime); }
@media (max-width: 459px) {
  .vpanel { grid-template-columns: 1fr; }
  .vpanel img { width: 62%; }
}
@media (min-width: 960px) {
  .video-row { grid-template-columns: 5fr 4fr 4fr; }
  .vpanel { grid-template-columns: 1fr; align-content: space-between; align-items: start; padding: 32px var(--m) 40px; min-height: 620px; }
  .vpanel img { max-width: 340px; }
}

/* ─────────── how it works ─────────── */
.how { padding: var(--section) var(--m); background: var(--ink); color: #fff; --focus: var(--lime); }
.how-intro { display: grid; gap: 20px; }
.how-intro p { font-size: var(--t-lead); line-height: 1.35; max-width: 34ch; font-weight: 500; color: var(--on-ink-soft); }
@media (min-width: 900px) {
  .how-intro { grid-template-columns: 6fr 1fr 5fr; align-items: end; }
  .how-intro p { grid-column: 3; }
}
.steps { margin-top: clamp(32px, 5vw, 64px); display: grid; gap: 10px; }
.step {
  border-radius: var(--radius); padding: 26px 22px; color: var(--ink);
  display: grid; gap: 14px; align-content: start;
}
.step-upload { background: var(--lime); }
.step-say { background: #fff; }
.step-post { background: var(--surface); }
.step-name { font-size: var(--t-title); }
.step p { font-size: var(--t-lead); line-height: 1.35; max-width: 26ch; font-weight: 500; }
.step-visual { margin-top: 6px; }
.step-roll { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; max-width: 360px; }
.step-roll img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; }
.step-roll img:first-child { outline: 4px solid var(--ink); outline-offset: -4px; }
.step-chat {
  display: grid; gap: 10px; justify-items: start; max-width: 380px;
  background: var(--surface); border-radius: 20px; padding: 16px;
}
.step-bubble {
  justify-self: end; background: var(--ink); color: #fff; border-radius: var(--radius-media);
  padding: 12px 18px; font-weight: 700; font-size: 1.125rem; line-height: 1.25;
}
.step-reply {
  background: #fff; color: var(--ink); border-radius: var(--radius-media);
  padding: 12px 18px; font-size: 1.0625rem; line-height: 1.3;
}
.step-reply b { font-weight: 800; }
.step-done { display: grid; grid-template-columns: 128px auto; gap: 14px; align-items: end; justify-items: start; }
.step-done img { width: 128px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-media); }
.step-actions { display: grid; gap: 8px; }
.step-btn { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; padding: 0 22px; border-radius: 999px; background: var(--lime); color: var(--ink); font-weight: 800; }
.step-btn-ink { background: var(--ink); color: #fff; }
@media (min-width: 600px) and (max-width: 899px) {
  .step { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 24px; align-items: start; }
  .step-name, .step p { grid-column: 1; }
  .step-visual { grid-column: 2; grid-row: 1 / span 3; margin-top: 0; align-self: center; }
}
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .step { padding: 32px 28px; grid-template-rows: auto auto 1fr; }
  .step-visual { align-self: end; }
}

/* ─────────── FAQ ─────────── */
.i-plus { flex: none; transition: transform 300ms var(--ease-out); }
button[aria-expanded="true"] > .i-plus { transform: rotate(45deg); }
.faq { padding: var(--section) var(--m); }
.faq .section-title { max-width: none; }
.faq-head p { margin-top: 20px; font-size: var(--t-lead); line-height: 1.35; max-width: 30ch; font-weight: 500; }
.cards { margin-top: clamp(32px, 5vw, 56px); display: grid; gap: 8px; max-width: 860px; }
.card { background: var(--surface); border-radius: var(--radius-media); padding: 0 20px; transition: background-color 200ms; }
.card[data-open="true"] { background: var(--lime-soft); }
.card h3 { margin: 0; }
.card h3 button {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  width: 100%; text-align: left; padding: 22px 0; min-height: 72px;
}
.card-q { font-weight: 800; font-size: var(--t-lead); line-height: 1.2; }
.card-a { padding: 0 0 24px; }
.card-a p { line-height: 1.5; max-width: 52ch; }
@media (min-width: 720px) { .card { padding: 0 28px; } }
@media (min-width: 1000px) {
  .faq { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 5vw, 96px); align-items: start; }
  .faq .cards { margin-top: 0; max-width: none; }
  .faq-head { position: sticky; top: calc(var(--bar-h) + 32px); }
}
@media (hover: hover) and (pointer: fine) {
  .card:not([data-open="true"]):hover { background: var(--surface-2); }
}

/* ─────────── early access ─────────── */
.early {
  background: var(--lime); color: var(--ink);
  padding: var(--section) var(--m);
  display: grid; gap: 40px;
}
.early-title { font-size: var(--t-head); }
.early-copy p { margin-top: 20px; font-size: var(--t-lead); line-height: 1.35; max-width: 30ch; font-weight: 500; }
.early-dialog {
  background: #fff; color: var(--ink);
  border-radius: var(--radius);
  padding: 28px 24px 22px;
  width: 100%; max-width: 460px;
}
.early-dialog-title { font-weight: 900; font-size: var(--t-lead); line-height: 1.2; margin-bottom: 18px; }
@media (min-width: 900px) {
  .early { grid-template-columns: 6fr 5fr; align-items: center; min-height: 84svh; }
  .early-dialog { justify-self: end; }
}

/* fields */
.field-label { display: block; font-weight: 800; font-size: 1rem; margin-bottom: 8px; }
.field {
  width: 100%; min-height: 56px; padding: 0 18px;
  border: 2px solid transparent; border-radius: 16px; background: var(--surface);
  font-size: 1.125rem; color: var(--ink);
  transition: border-color 160ms, background-color 160ms;
}
.field:focus { outline: none; border-color: var(--ink); background: #fff; }
.field::placeholder { color: var(--muted); }
.field[aria-invalid="true"] { border-color: #c4001a; background: #fff5f5; }
.field-error { color: #b00016; font-weight: 700; font-size: var(--t-small); margin-top: 8px; }
.fine { margin-top: 12px; font-size: var(--t-small); color: var(--muted); }
.seg-field { border: 0; padding: 0; margin: 20px 0 22px; min-width: 0; }
.segmented-light { width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); }
.segmented-light label { position: relative; }
.segmented-light input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.segmented-light span {
  display: flex; align-items: center; justify-content: center; min-height: 44px; border-radius: 999px;
  font-weight: 800; transition: background-color 160ms, color 160ms;
}
.segmented-light input:checked + span { background: var(--ink); color: #fff; }
.segmented-light input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 2px; }

/* ─────────── footer ─────────── */
.foot {
  background: var(--ink); color: #fff; --focus: var(--lime);
  padding: 40px var(--m) calc(28px + env(safe-area-inset-bottom));
  overflow: hidden;
}
.foot-top { display: grid; gap: 8px; font-size: 1rem; color: var(--on-ink-soft); }
.foot-top-link { font-weight: 800; justify-self: start; min-height: 44px; display: inline-flex; align-items: center; color: #fff; }
@media (min-width: 760px) { .foot-top { grid-template-columns: 1fr 1fr auto; align-items: start; } }
.foot-name { margin: clamp(72px, 12vw, 200px) 0 clamp(24px, 3vw, 40px); line-height: 0.8; white-space: nowrap; font-size: 20vw; color: #fff; }
.foot-name span { display: inline-block; }
.foot-meta { display: grid; gap: 12px; font-size: 1rem; color: var(--on-ink-soft); }
.foot-details summary { cursor: pointer; font-weight: 800; min-height: 44px; display: inline-flex; align-items: center; color: #fff; }
.foot-details p { max-width: 70ch; margin: 4px 0 10px; }
.foot-year { min-height: 44px; display: flex; align-items: center; gap: 0.3em; }
.credits-list { display: grid; gap: 6px; max-width: 90ch; font-size: var(--t-small); }
@media (min-width: 900px) { .foot-meta { grid-template-columns: 1fr 1fr auto; align-items: start; } }

/* ─────────── sheet (dialog) ─────────── */
.sheet {
  padding: 0; border: 0; margin: 0;
  width: 100%; max-width: 100%; height: 100%; max-height: 100%;
  background: transparent; color: var(--ink);
  overflow: visible;
}
.sheet::backdrop { background: rgba(17, 17, 17, 0.55); }
.sheet:focus, .sheet:focus-visible { outline: none; }
.sheet-panel {
  position: absolute; left: 0; right: 0; bottom: 0;
  max-height: calc(100dvh - 24px - env(safe-area-inset-top));
  overflow-y: auto; overscroll-behavior: contain;
  background: #fff; border-radius: var(--radius) var(--radius) 0 0;
  padding: 0 0 calc(20px + env(safe-area-inset-bottom));
}
.sheet-grab { position: sticky; top: 0; z-index: 3; height: 0; display: flex; justify-content: center; touch-action: none; }
.sheet-grab span { display: block; margin-top: 8px; width: 44px; height: 5px; border-radius: 99px; background: rgba(255, 255, 255, 0.92); box-shadow: 0 0 0 1px rgba(0,0,0,.12); /* taste-skill-ignore: handle sits on photos inside an open sheet */ }
.sheet-close {
  position: absolute; top: 12px; right: 12px; z-index: 4;
  width: 44px; height: 44px; border-radius: 999px; background: #fff; color: var(--ink);
  display: grid; place-items: center; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2); /* taste-skill-ignore: close button floats over the photo in an open sheet */
}
.compare-sheet { aspect-ratio: 4 / 5; max-height: 44svh; width: 100%; border-radius: var(--radius) var(--radius) 0 0; }
.compare-sheet .compare-tag-after { top: auto; bottom: 12px; }
.sheet-body { padding: 22px 20px 4px; }
.sheet-title { font-size: var(--t-title); max-width: 16ch; }
.sheet-title:focus { outline: none; }
.sheet-lede { margin-top: 12px; font-size: var(--t-lead); line-height: 1.4; }
.sheet-upload { margin-top: 20px; }
.sheet-uses-label, .sheet-related-label { margin-top: 24px; font-weight: 800; font-size: 1rem; }
.sheet-uses { margin-top: 8px; display: grid; gap: 4px; }
.sheet-uses li { padding-left: 22px; position: relative; line-height: 1.45; }
.sheet-uses li::before { content: ""; position: absolute; left: 2px; top: 0.45em; width: 10px; height: 10px; border-radius: 99px; background: var(--lime); border: 2px solid var(--ink); }
.sheet-related { margin-top: 10px; }
.sheet-join, .sheet-done { padding: 56px 20px 8px; }
.sheet-lede strong { font-weight: 800; }
.join-form { margin-top: 24px; }
.join-form .btn { margin-top: 16px; }
.usecase { border: 0; padding: 0; margin: 28px 0 24px; min-width: 0; }
.usecase legend { font-weight: 800; margin-bottom: 12px; padding: 0; }
.usecase-thanks { margin-top: 12px; color: var(--muted); }

/* enter/exit: bottom sheet on phones, dialog on desktop */
.sheet[open] .sheet-panel { transform: translateY(0); transition: transform 380ms var(--ease-sheet); }
.sheet[open]::backdrop { transition: opacity 300ms; opacity: 1; }
@starting-style {
  .sheet[open] .sheet-panel { transform: translateY(100%); }
  .sheet[open]::backdrop { opacity: 0; }
}
.sheet.is-closing .sheet-panel { transform: translateY(100%); transition: transform 220ms var(--ease-out); }
.sheet.is-closing::backdrop { opacity: 0; transition: opacity 220ms; }
.sheet.is-dragging .sheet-panel { transition: none; }

@media (min-width: 760px) {
  .sheet-panel {
    left: 50%; top: 50%; bottom: auto; right: auto;
    width: min(540px, calc(100vw - 48px));
    max-height: calc(100dvh - 48px);
    border-radius: var(--radius);
    transform: translate(-50%, -50%);
  }
  .sheet[open] .sheet-panel { transform: translate(-50%, -50%); opacity: 1; transition: transform 300ms var(--ease-out), opacity 200ms; }
  @starting-style {
    .sheet[open] .sheet-panel { transform: translate(-50%, -47%) scale(0.97); opacity: 0; }
  }
  .sheet.is-closing .sheet-panel { transform: translate(-50%, -49%) scale(0.98); opacity: 0; transition: transform 180ms var(--ease-out), opacity 180ms; }
  .sheet-grab { display: none; }
  .compare-sheet { max-height: 52dvh; }
}

/* ─────────── entrance motion (below the fold only) ─────────── */
html.js .reveal { opacity: 0; transform: translateY(20px); }
html.js .is-in .reveal, html.js .reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity 600ms var(--ease-out), transform 700ms var(--ease-out);
  transition-delay: calc(var(--d, 0) * 70ms);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal { opacity: 1; transform: none; }
  .is-motion .compare-after { animation: none; }
  .sheet[open] .sheet-panel, .sheet.is-closing .sheet-panel { transition: opacity 160ms; }
  @starting-style { .sheet[open] .sheet-panel { transform: none; opacity: 0; } }
  .tile-pic, .i-plus { transition: none; }
  .grid.is-enter .tile { animation: none; }
}
