/* BRAND-ME demo · shared styles. Tokens documented in /DESIGN.md */

:root {
  --bg: oklch(1 0 0);
  --surface: oklch(0.968 0.004 110);
  --surface-2: oklch(0.94 0.006 110);
  --line: oklch(0.90 0.005 110);
  --line-strong: oklch(0.80 0.006 110);
  --ink: oklch(0.17 0.01 110);
  --ink-hover: oklch(0.27 0.012 110);
  --ink-2: oklch(0.42 0.012 110);
  --muted: oklch(0.52 0.012 110);
  --brand: oklch(0.88 0.17 122);
  --brand-strong: oklch(0.80 0.19 124);
  --brand-ink: oklch(0.32 0.09 125);
  --brand-soft: oklch(0.96 0.06 122);
  --hot: oklch(0.62 0.21 32);
  --hot-soft: oklch(0.95 0.04 32);
  --gold: oklch(0.84 0.16 85);
  --white: oklch(1 0 0);

  --font: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs-display: clamp(2.6rem, 6.2vw, 5.4rem);
  --fs-h2: clamp(2rem, 3.6vw, 3.2rem);
  --fs-h3: 1.375rem;
  --fs-lg: 1.125rem;
  --fs-md: 1rem;
  --fs-sm: 0.875rem;
  --fs-xs: 0.78rem;

  --r-pill: 999px;
  --r-lg: 20px;
  --r-md: 12px;
  --r-sm: 8px;

  --max: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(64px, 10vw, 128px);

  --shadow-float: 0 24px 60px -20px oklch(0 0 0 / 0.28), 0 2px 8px oklch(0 0 0 / 0.06);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --z-sticky: 10;
  --z-popover: 20;
  --z-backdrop: 30;
  --z-dialog: 40;
  --z-toast: 50;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--fs-md);
  line-height: 1.5;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, canvas, video { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
a.underline, .prose a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
h1, h2, h3, h4 { margin: 0; text-wrap: balance; }
p { margin: 0; }
p.prose, .prose p { text-wrap: pretty; max-width: 62ch; }
ul { margin: 0; padding: 0; list-style: none; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Type */
.display { font-size: var(--fs-display); font-weight: 800; letter-spacing: -0.035em; line-height: 0.98; }
.h2 { font-size: var(--fs-h2); font-weight: 800; letter-spacing: -0.03em; line-height: 1.02; }
.h3 { font-size: var(--fs-h3); font-weight: 700; letter-spacing: -0.015em; line-height: 1.2; }
.h4 { font-size: var(--fs-lg); font-weight: 700; letter-spacing: -0.01em; line-height: 1.3; }
.lead { font-size: var(--fs-lg); color: var(--ink-2); line-height: 1.55; }
.sm { font-size: var(--fs-sm); }
.xs { font-size: var(--fs-xs); }
.muted { color: var(--muted); }
.ink-2 { color: var(--ink-2); }
.num { font-variant-numeric: tabular-nums; }
.price { font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
strong, b { font-weight: 700; }

/* Layout */
.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.section { padding-block: var(--section); }
.section-tight { padding-block: calc(var(--section) * 0.6); }
.band { background: var(--surface); }
.stack > * + * { margin-top: var(--stack, 16px); }
.row { display: flex; align-items: center; gap: 12px; }
.between { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.grid-2 { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
hr.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: var(--z-sticky);
  background: oklch(1 0 0 / 0.86);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner { height: 64px; display: flex; align-items: center; gap: 24px; }
.logo { white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; font-weight: 800; letter-spacing: -0.03em; font-size: 1.15rem; }
.logo .mark { width: 22px; height: 22px; border-radius: 6px; background: var(--brand); position: relative; transform: rotate(-6deg); border: 2px solid var(--ink); }
.logo .mark::after { content: ""; position: absolute; inset: 5px 4px; border-radius: 2px; background: var(--ink); }
.nav-links { display: flex; gap: 4px; margin-inline: auto; }
.nav-links a { white-space: nowrap; padding: 8px 12px; border-radius: var(--r-pill); color: var(--ink-2); font-weight: 500; transition: color 150ms, background 150ms; }
.nav-links a:hover { color: var(--ink); background: var(--surface); }
.nav-right { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.nav-burger { display: none; width: 40px; height: 40px; border-radius: var(--r-pill); border: 1px solid var(--line); align-items: center; justify-content: center; }
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-burger { display: inline-flex; }
  .nav.open .nav-links { display: flex; position: absolute; left: 0; right: 0; top: 64px; flex-direction: column; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 16px; }
  .nav.open .nav-links a { padding: 12px; }
  .nav-right .hide-sm { display: none; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 22px; border-radius: var(--r-pill);
  background: var(--ink); color: var(--white); font-weight: 600; font-size: var(--fs-md);
  white-space: nowrap; transition: background 150ms, transform 120ms var(--ease-out), box-shadow 150ms;
  border: 1px solid transparent;
}
.btn:hover { background: var(--ink-hover); }
.btn:active { transform: scale(0.98); }
.btn.lg { height: 52px; padding: 0 28px; font-size: var(--fs-lg); }
.btn.sm { height: 36px; padding: 0 16px; font-size: var(--fs-sm); }
.btn.secondary { background: var(--white); color: var(--ink); border-color: var(--line-strong); }
.btn.secondary:hover { background: var(--surface); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--surface); }
.btn.brand { background: var(--brand); color: var(--ink); }
.btn.brand:hover { background: var(--brand-strong); }
.btn.hot { background: var(--hot); color: var(--white); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.45; pointer-events: none; }
.btn .arrow { transition: transform 200ms var(--ease-out); }
.btn:hover .arrow { transform: translateX(3px); }

.tag { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: var(--r-pill); font-size: var(--fs-xs); font-weight: 600; line-height: 1; white-space: nowrap; }
.tag.brand { background: var(--brand); color: var(--ink); }
.tag.soft { background: var(--surface-2); color: var(--ink-2); }
.tag.hot { background: var(--hot); color: var(--white); }
.tag.outline { border: 1px solid var(--line-strong); color: var(--ink-2); }
.tag.gold { background: var(--gold); color: var(--ink); }

.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand-strong); display: inline-block; }
.dot.live { animation: pulse 1.8s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 oklch(0.80 0.19 124 / 0.6); } 100% { box-shadow: 0 0 0 8px oklch(0.80 0.19 124 / 0); } }

/* Segmented control / tabs */
.seg { display: inline-flex; padding: 4px; border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--white); gap: 2px; }
.seg button { height: 36px; padding: 0 16px; border-radius: var(--r-pill); font-weight: 600; color: var(--ink-2); display: inline-flex; align-items: center; gap: 6px; transition: background 150ms, color 150ms; }
.seg button span { font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }
.seg button:hover { color: var(--ink); }
.seg button[aria-selected="true"] { background: var(--ink); color: var(--white); }
.seg button[aria-selected="true"] span { color: oklch(1 0 0 / 0.7); }
.seg.tiny button { height: 30px; padding: 0 12px; font-size: var(--fs-sm); }
.seg button { white-space: nowrap; }
@media (max-width: 560px) { .seg button { padding: 0 11px; font-size: var(--fs-sm); height: 34px; } }

/* Avatar / creator chip */
.avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: var(--surface-2); flex: none; }
.avatar.lg { width: 56px; height: 56px; }
.avatar.xl { width: 80px; height: 80px; }
.creator-chip { display: inline-flex; align-items: center; gap: 12px; }
.creator-chip .name { font-weight: 700; display: flex; align-items: center; gap: 6px; }
.verified { width: 16px; height: 16px; border-radius: 50%; background: var(--brand-ink); display: inline-flex; align-items: center; justify-content: center; color: var(--white); flex: none; }
.verified svg { width: 10px; height: 10px; }

/* Sponsor mark (fake logo) */
.mark-box { width: 56px; height: 44px; border-radius: var(--r-sm); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; background: var(--white); flex: none; overflow: hidden; }
.mark-box.empty { border-style: dashed; border-color: var(--line-strong); background: var(--surface); }
.mark-box.empty::after { content: ""; width: 22px; height: 14px; border: 1.5px dashed var(--line-strong); border-radius: 3px; }
.mark-box.empty.s::after { width: 14px; height: 10px; }
.mark-box.empty.l::after { width: 30px; height: 18px; }
.wordmark { font-weight: 800; letter-spacing: -0.04em; font-size: 13px; line-height: 1; padding: 4px 6px; border-radius: 4px; white-space: nowrap; }

/* Spot rows */
.spot-group { margin-top: 40px; }
.spot-group-head { display: flex; align-items: baseline; justify-content: space-between; padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.spot-list { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); }
.spot {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px;
  padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--white);
  text-align: left; width: 100%; transition: border-color 150ms, background 150ms, transform 200ms var(--ease-out);
  position: relative;
}
.spot:hover { border-color: var(--line-strong); }
.spot.is-active { border-color: var(--ink); }
.spot.flash { animation: flash 900ms var(--ease-out); }
@keyframes flash { 0% { background: var(--brand-soft); } 100% { background: var(--white); } }
.spot .meta { min-width: 0; }
.spot .name { font-weight: 600; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.spot .sub { color: var(--muted); font-size: var(--fs-sm); margin-top: 2px; }
.spot .right { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.spot .price { font-size: 1.25rem; }
.spot .cta { font-size: var(--fs-sm); color: var(--ink-2); display: inline-flex; align-items: center; gap: 4px; font-weight: 500; }
.spot .cta svg { width: 12px; height: 12px; transition: transform 200ms var(--ease-out); }
.spot:hover .cta svg { transform: translateX(2px); }
.spot .buynow { font-size: var(--fs-xs); color: var(--muted); }
.spot .buynow b { color: var(--brand-ink); }
.spot.sold { background: var(--surface); border-color: var(--line); cursor: default; }
.spot.sold .price { color: var(--muted); text-decoration: line-through; text-decoration-thickness: 1.5px; }
.spot.sold:hover { border-color: var(--line); }
.spot.you { border-color: var(--brand-strong); background: var(--brand-soft); }

/* Countdown */
.countdown { display: flex; gap: 18px; }
.countdown div { text-align: center; }
.countdown b { display: block; font-size: 2rem; font-weight: 800; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.countdown span { font-size: var(--fs-xs); color: var(--muted); font-weight: 500; }

/* Progress */
.progress { display: flex; gap: 3px; height: 14px; }
.progress i { flex: 1; background: var(--surface-2); border-radius: 3px; transition: background 400ms var(--ease-out); }
.progress i.on { background: var(--brand-strong); }
.progress i.you { background: var(--ink); }

/* Leaderboard / feed */
.panel { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--white); padding: 20px 22px; }
.panel-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.lb li { display: grid; grid-template-columns: 24px 40px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.lb li:first-child { border-top: 0; }
.lb .rank { width: 24px; height: 24px; border-radius: 50%; background: var(--surface-2); display: inline-flex; align-items: center; justify-content: center; font-size: var(--fs-xs); font-weight: 700; }
.lb li:first-child .rank { background: var(--gold); }
.lb .mark-box { width: 52px; height: 32px; }
.lb .mark-box .wordmark { font-size: 11px; }
.lb .who { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb .who span { color: var(--muted); }
.feed li { display: grid; grid-template-columns: 48px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.feed li:first-child { border-top: 0; }
.feed time { color: var(--muted); font-size: var(--fs-sm); font-variant-numeric: tabular-nums; }
.feed .who span { color: var(--muted); }

/* Reviews */
.stars { display: inline-flex; gap: 2px; color: var(--ink); }
.stars svg { width: 14px; height: 14px; }
.stars.lg svg { width: 20px; height: 20px; }
.review { padding: 24px 0; border-top: 1px solid var(--line); display: grid; gap: 10px; grid-template-columns: 1fr; }
.review .quote { font-size: var(--fs-lg); font-weight: 500; letter-spacing: -0.01em; max-width: 60ch; text-wrap: pretty; }
.review .by { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; color: var(--ink-2); font-size: var(--fs-sm); }
.review .by .mark-box { width: 40px; height: 30px; }
.review .proof { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--brand-ink); }

/* Q&A */
.qa { border-top: 1px solid var(--line); }
.qa summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: start; padding: 18px 0; font-weight: 600; font-size: var(--fs-lg); letter-spacing: -0.01em; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary .chev { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-strong); display: inline-flex; align-items: center; justify-content: center; transition: transform 250ms var(--ease-out); flex: none; }
.qa[open] summary .chev { transform: rotate(45deg); }
.qa .answer { padding: 0 0 20px; color: var(--ink-2); display: grid; gap: 10px; max-width: 64ch; }
.qa .answer .who { display: flex; align-items: center; gap: 8px; font-size: var(--fs-sm); color: var(--muted); }
.qa .answer .who .avatar { width: 24px; height: 24px; }
.upvote { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: var(--r-pill); border: 1px solid var(--line-strong); font-size: var(--fs-sm); font-weight: 600; color: var(--ink-2); transition: background 150ms, border-color 150ms; }
.upvote:hover { background: var(--surface); }
.upvote[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: var(--ink); }

/* Case cards (browse + related) */
.case-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--white); transition: border-color 150ms, transform 250ms var(--ease-out), box-shadow 250ms; }
.case-card:hover { border-color: var(--line-strong); transform: translateY(-2px); box-shadow: 0 12px 30px -16px oklch(0 0 0 / 0.25); }
.case-card .thumb { aspect-ratio: 4 / 3; background: var(--surface); position: relative; overflow: hidden; }
.case-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.case-card .thumb .tag { position: absolute; top: 12px; left: 12px; }
.case-card .thumb .tag.ends { left: auto; right: 12px; }
.case-card .body { padding: 16px 18px 18px; display: grid; gap: 10px; }
.case-card .title { font-weight: 700; font-size: var(--fs-lg); letter-spacing: -0.015em; line-height: 1.25; }
.case-card .foot { display: flex; justify-content: space-between; align-items: baseline; color: var(--ink-2); font-size: var(--fs-sm); }
.case-card .foot b { color: var(--ink); font-size: var(--fs-md); }
.case-card .creator-chip .avatar { width: 28px; height: 28px; }
.case-card .creator-chip .name { font-size: var(--fs-sm); }
.case-card .creator-chip .muted { font-size: var(--fs-xs); }

/* Steps (a real ordered sequence) */
.steps { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); position: relative; }
.steps > div { display: grid; gap: 12px; align-content: start; }
.steps .n { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--ink); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-variant-numeric: tabular-nums; background: var(--white); }
.steps .n.fill { background: var(--brand); border-color: var(--brand); }
.steps p { color: var(--ink-2); max-width: 36ch; text-wrap: pretty; }

/* Dialog */
dialog.modal { border: 0; padding: 0; border-radius: var(--r-lg); width: min(100% - 32px, 500px); box-shadow: var(--shadow-float); background: var(--white); color: var(--ink); }
dialog.modal::backdrop { background: oklch(0 0 0 / 0.4); backdrop-filter: blur(2px); }
dialog.modal[open] { animation: pop 260ms var(--ease-out); }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(0.98); } to { opacity: 1; transform: none; } }
.modal-body { padding: 28px 28px 24px; display: grid; gap: 20px; }
.modal-head { display: flex; justify-content: space-between; align-items: start; gap: 16px; }
.modal-head .h3 { text-wrap: pretty; }
.close-x { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.close-x:hover { background: var(--surface); }
.bigprice { font-size: 2.6rem; font-weight: 800; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.dropzone { border: 1.5px dashed var(--line-strong); border-radius: var(--r-md); padding: 20px; display: flex; align-items: center; gap: 14px; background: var(--surface); cursor: pointer; transition: border-color 150ms, background 150ms; }
.dropzone:hover, .dropzone.has { border-color: var(--ink); background: var(--white); }
.dropzone .sw { width: 52px; height: 40px; border-radius: 6px; background: var(--white); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; flex: none; }
.terms { display: grid; gap: 8px; font-size: var(--fs-sm); color: var(--ink-2); padding: 0; }
.terms li { display: grid; grid-template-columns: 16px 1fr; gap: 10px; align-items: start; }
.terms li svg { width: 16px; height: 16px; margin-top: 2px; color: var(--brand-ink); }
.breakdown { display: grid; gap: 6px; font-size: var(--fs-sm); color: var(--ink-2); }
.breakdown div { display: flex; justify-content: space-between; font-variant-numeric: tabular-nums; }
.breakdown div.total { color: var(--ink); font-weight: 700; border-top: 1px solid var(--line); padding-top: 8px; margin-top: 4px; font-size: var(--fs-md); }

/* Forms */
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: var(--fs-sm); }
.field .hint { color: var(--muted); font-size: var(--fs-xs); }
.input, .textarea, .select { width: 100%; height: 44px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: var(--r-md); background: var(--white); transition: border-color 150ms, box-shadow 150ms; }
.textarea { height: auto; padding: 12px 14px; min-height: 96px; resize: vertical; }
.input:focus-visible, .textarea:focus-visible, .select:focus-visible { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px oklch(0.17 0.01 110 / 0.12); }
.input::placeholder, .textarea::placeholder { color: var(--muted); }
.input-money { position: relative; }
.input-money::before { content: "$"; position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 600; }
.input-money .input { padding-left: 28px; font-variant-numeric: tabular-nums; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); z-index: var(--z-toast); background: var(--ink); color: var(--white); padding: 12px 18px; border-radius: var(--r-pill); display: flex; gap: 10px; align-items: center; box-shadow: var(--shadow-float); opacity: 0; pointer-events: none; transition: opacity 250ms, transform 350ms var(--ease-out); font-weight: 500; max-width: calc(100% - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast .dot { background: var(--brand); }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 48px 0 40px; color: var(--ink-2); font-size: var(--fs-sm); }
.footer .cols { display: grid; gap: 32px; grid-template-columns: 2fr 1fr 1fr 1fr; }
.footer ul { display: grid; gap: 8px; }
.footer a:hover { color: var(--ink); }
.footer .bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: var(--fs-xs); }
@media (max-width: 720px) { .footer .cols { grid-template-columns: 1fr 1fr; } }

/* Case hero (shared by case pages) */
.case-hero { display: grid; grid-template-columns: 1fr minmax(320px, 1.3fr) 1fr; gap: clamp(20px, 3vw, 40px); align-items: center; padding-top: clamp(24px, 4vw, 48px); min-height: 640px; }
.case-hero .left { display: grid; gap: 20px; align-content: center; }
.case-hero h1 { font-size: clamp(2.2rem, 3.7vw, 3.5rem); }
.case-hero .lead { font-size: var(--fs-md); }
.case-hero .right { display: grid; gap: 20px; align-content: center; justify-items: end; text-align: right; }
.case-hero .right p { max-width: 28ch; text-wrap: pretty; }
.case-hero .stage { position: relative; min-height: 520px; }
.case-hero .stage canvas { width: 100% !important; height: 100% !important; }
.stage-hint { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); color: var(--muted); font-size: var(--fs-xs); white-space: nowrap; pointer-events: none; }
.timeline { display: grid; gap: 6px; font-size: var(--fs-sm); color: var(--ink-2); }
.timeline div { display: flex; gap: 10px; justify-content: flex-end; align-items: baseline; }
.timeline b { color: var(--ink); font-variant-numeric: tabular-nums; }
@media (max-width: 1000px) {
  .case-hero { grid-template-columns: 1fr; min-height: 0; }
  .case-hero .right { justify-items: start; text-align: left; }
  .case-hero .right p { max-width: 48ch; }
  .timeline div { justify-content: flex-start; }
  .case-hero .stage { min-height: 420px; order: -1; }
}
@media (max-width: 560px) { .case-hero .stage { min-height: 360px; } }

.raised { display: grid; gap: 14px; padding-block: 40px; }
.raised .top { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.raised .big { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.raised .big small { font-size: var(--fs-md); font-weight: 500; color: var(--muted); letter-spacing: 0; margin-left: 8px; }

/* Reveal (enhances an already visible default) */
.reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: no-preference) {
  .reveal-ready .reveal { opacity: 0; transform: translateY(14px); transition: opacity 600ms var(--ease-out), transform 700ms var(--ease-out); }
  .reveal-ready .reveal.in { opacity: 1; transform: none; }
  .reveal-ready .reveal[data-delay="1"] { transition-delay: 80ms; }
  .reveal-ready .reveal[data-delay="2"] { transition-delay: 160ms; }
  .reveal-ready .reveal[data-delay="3"] { transition-delay: 240ms; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* Demo notice */
.demo-bar { background: var(--ink); color: oklch(1 0 0 / 0.85); font-size: var(--fs-xs); text-align: center; padding: 6px var(--gutter); }
.demo-bar a { color: var(--brand); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
