/* Case-study pages. Shares the home page's palette, type and header. */
:root {
  --sand: #ede1c8;
  --card-bg: #f5eedb;
  --ink: #272b14;
  --olive-deep: #474d28;
  --olive-pale: #646a3d;
  --olive: #5a6330;
  --border: rgba(71, 77, 40, 0.16);
  --border-strong: rgba(71, 77, 40, 0.28);
  --band: #272b14;
  --band-ink: #f5eedb;
  --band-soft: #c9c3a6;
  --draft: #8a6d1f;
  --font-display: 'Bricolage Grotesque', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --max-w: 76rem;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}
[data-theme="obsidian"] {
  --sand: #0f110c;
  --card-bg: #1c1f17;
  --ink: #f5eedb;
  --olive-deep: #d5ccb7;
  --olive-pale: #9fa08e;
  --olive: #8d9852;
  --border: rgba(226, 193, 146, 0.14);
  --border-strong: rgba(226, 193, 146, 0.25);
  --band: #1c1f17;
  --draft: #e2c192;
}

@view-transition { navigation: auto; }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  background: var(--sand);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.6;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
canvas.topo { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 0; }
main { position: relative; z-index: 1; }
.wrap { width: min(100% - var(--gutter) * 2, var(--max-w)); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 200; background: var(--ink); color: var(--sand); padding: 0.6rem 1rem; border-radius: 999px; }

/* ---------- header (mirrors the home page) ---------- */
.bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap;
  min-height: 3.9rem; padding: 0.7rem var(--gutter);
  border-bottom: 1px solid transparent;
  transition: background-color 0.35s ease, border-color 0.35s ease;
}
.bar.is-scrolled, .bar.is-open {
  background: rgba(237, 225, 200, 0.88);
  border-bottom-color: var(--border);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
[data-theme="obsidian"] .bar.is-scrolled, [data-theme="obsidian"] .bar.is-open { background: rgba(15, 17, 12, 0.88); }
.bar.on-band:not(.is-scrolled):not(.is-open) { --ink: #f5eedb; --olive-deep: #d9d3b8; --sand: #272b14; color: var(--ink); }
.wordmark { display: inline-flex; align-items: center; min-height: 2.75rem; font-family: var(--font-display); font-variation-settings: "opsz" 36, "wdth" 90; font-size: 1.08rem; font-weight: 700; letter-spacing: -0.015em; color: var(--ink); text-decoration: none; }
.bar nav { display: flex; gap: 1.9rem; }
.bar nav a { font-family: var(--font-display); font-size: 0.9rem; font-weight: 600; color: var(--olive-deep); text-decoration: none; }
.bar nav a:hover { color: var(--ink); }
.bar-actions { display: flex; align-items: center; gap: 0.75rem; }
.theme-switch { display: flex; padding: 2px; border-radius: 999px; background: var(--border); border: 1px solid var(--border-strong); }
.theme-btn { border: 0; background: transparent; color: var(--olive-deep); font-family: var(--font-display); font-size: 0.75rem; font-weight: 700; padding: 0.32rem 0.7rem; border-radius: 999px; cursor: pointer; }
.theme-btn.active { background: var(--ink); color: var(--sand); }
.btn-header-cta { background: var(--ink); color: var(--sand); font-family: var(--font-display); font-size: 0.86rem; font-weight: 700; padding: 0.55rem 1.05rem; border-radius: 999px; text-decoration: none; white-space: nowrap; }
.menu-btn { display: none; }
@media (max-width: 820px) {
  .bar { min-height: 3.6rem; padding: 0.55rem var(--gutter); }
  .menu-btn { display: inline-flex; align-items: center; gap: 0.55rem; min-height: 2.5rem; padding: 0 0.95rem; border: 1.5px solid var(--ink); border-radius: 999px; background: transparent; color: var(--ink); font-family: var(--font-display); font-size: 0.88rem; font-weight: 650; cursor: pointer; }
  .bar nav, .bar .bar-actions { display: none; width: 100%; }
  .bar.is-open { background: var(--sand); }
  .bar.is-open nav { display: flex; flex-direction: column; gap: 0; margin-top: 0.75rem; border-top: 1px solid var(--border); }
  .bar.is-open nav a { padding: 0.95rem 0; border-bottom: 1px solid var(--border); font-size: 1.6rem; font-weight: 700; color: var(--ink); }
  .bar.is-open .bar-actions { display: flex; justify-content: space-between; padding: 1.1rem 0 0.6rem; }
}

/* ---------- hero band ---------- */
.case-hero {
  position: relative;
  background: radial-gradient(110% 90% at 100% 0%, #3b4120 0%, var(--band) 58%);
  color: var(--band-ink);
  padding: calc(3.9rem + clamp(2rem, 6vw, 4.5rem)) 0 clamp(2.5rem, 6vw, 4.5rem);
  overflow: hidden;
}
.case-hero__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.back { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 2.75rem; font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; color: var(--band-soft); text-decoration: none; margin-bottom: clamp(1.5rem, 4vw, 2.5rem); }
.back:hover { color: var(--band-ink); }
.back svg { transition: transform 0.3s var(--ease); }
.back:hover svg { transform: translateX(-3px); }
.case-hero__client { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; }
.case-hero__cat { color: var(--band-soft); font-size: 0.95rem; margin-top: 0.1rem; }
.case-hero h1 {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 96, "wdth" 92;
  font-weight: 700;
  font-size: clamp(2.4rem, 4.4vw, 4.3rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin: 1.4rem 0 1.25rem;
  text-wrap: balance;
}
.case-hero__summary { color: var(--band-soft); max-width: 40ch; font-size: 1.08rem; }
.role-chip { display: inline-flex; gap: 0.5rem; align-items: center; margin-top: 1.6rem; padding: 0.45rem 0.9rem; border-radius: 999px; background: rgba(245, 238, 219, 0.1); font-family: var(--font-display); font-size: 0.88rem; font-weight: 600; }
.role-chip span { color: var(--band-soft); font-weight: 500; }

.case-visual {
  border-radius: 1.25rem;
  overflow: hidden;
  background: #171912;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.7);
  aspect-ratio: 4 / 3;
}
.case-visual img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.case-visual--panel {
  display: flex; flex-direction: column; justify-content: space-between;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: linear-gradient(145deg, #5a6330, #3b4120);
}
.case-visual--panel strong { font-family: var(--font-display); font-variation-settings: "opsz" 96, "wdth" 85; font-size: clamp(2.6rem, 5vw, 4.2rem); line-height: 0.92; letter-spacing: -0.03em; }
.case-visual--panel span { color: var(--band-soft); font-size: 0.9rem; }

/* ---------- draft notice + stats ---------- */
.draft-note {
  display: flex; gap: 0.9rem; align-items: flex-start;
  margin-top: clamp(2rem, 5vw, 3.5rem);
  padding: 1rem 1.25rem;
  border: 1.5px dashed var(--draft);
  border-radius: 1rem;
  color: var(--olive-deep);
  font-size: 0.95rem;
  background: rgba(138, 109, 31, 0.06);
}
.draft-note b { color: var(--draft); font-family: var(--font-display); white-space: nowrap; }
.tag-draft {
  display: inline-block; vertical-align: middle;
  padding: 0.12rem 0.5rem; border-radius: 999px;
  border: 1px dashed var(--draft); color: var(--draft);
  font-family: var(--font-display); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
}
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2rem; padding-bottom: 2rem; border-bottom: 1px solid var(--border); }
.stats strong { display: block; font-family: var(--font-display); font-variation-settings: "opsz" 96, "wdth" 80; font-size: clamp(2.2rem, 4.6vw, 3.6rem); line-height: 1; letter-spacing: -0.03em; }
.stats span { display: block; margin-top: 0.4rem; color: var(--olive-deep); font-size: 0.92rem; }
.stats span.tag-draft { display: inline-block; margin-top: 0.6rem; font-size: 0.75rem; color: var(--draft); }

/* ---------- story ---------- */
.story { max-width: 42rem; margin: clamp(2.5rem, 6vw, 4rem) 0 0; }
.story section + section { margin-top: 2.2rem; }
.story h2, .block-title { font-family: var(--font-display); font-variation-settings: "opsz" 48, "wdth" 90; font-weight: 700; font-size: 1.3rem; letter-spacing: -0.015em; margin-bottom: 0.5rem; display: flex; align-items: center; gap: 0.7rem; flex-wrap: wrap; }
.story p { color: var(--olive-deep); }
.missing {
  border: 1.5px dashed var(--border-strong);
  border-radius: 0.9rem;
  padding: 0.9rem 1.1rem;
  color: var(--olive-pale);
  font-size: 0.95rem;
}
.missing b { color: var(--olive-deep); font-family: var(--font-display); }

/* ---------- inside the copy ---------- */
.inside { margin-top: clamp(4rem, 9vw, 6.5rem); }
.inside__head { display: flex; align-items: baseline; gap: 1rem; flex-wrap: wrap; margin-bottom: clamp(1.5rem, 4vw, 2.5rem); }
.display { font-family: var(--font-display); font-variation-settings: "opsz" 96, "wdth" 85; font-weight: 800; font-size: clamp(2.4rem, 5.5vw, 4.2rem); line-height: 0.95; letter-spacing: -0.03em; }
.inside__grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.inside__media { position: sticky; top: 5.5rem; }
.inside__media .case-visual { aspect-ratio: auto; }
.inside__media .case-visual img { height: auto; }
.beats { display: flex; flex-direction: column; gap: clamp(3rem, 12vh, 7rem); padding-block: 2rem 4rem; }
.beat { opacity: 0.32; transition: opacity 0.5s var(--ease); }
.beat.is-active, .no-js .beat { opacity: 1; }
.beat__label { font-family: var(--font-display); font-weight: 700; color: var(--olive); font-size: 0.95rem; }
.beat blockquote { font-family: var(--font-display); font-variation-settings: "opsz" 48, "wdth" 88; font-weight: 700; font-size: clamp(1.35rem, 2.3vw, 1.85rem); line-height: 1.18; letter-spacing: -0.015em; margin: 0.45rem 0 0.7rem; }
.beat p { color: var(--olive-deep); max-width: 40ch; }

.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); gap: 1.25rem; margin-top: clamp(3rem, 7vw, 5rem); }
.gallery figure { border-radius: 1.1rem; overflow: hidden; background: var(--card-bg); border: 1px solid var(--border); }
.gallery img { width: 100%; height: auto; }
.gallery figcaption { padding: 0.75rem 1rem; font-size: 0.88rem; color: var(--olive-pale); }

.needed { margin-top: clamp(3rem, 7vw, 5rem); max-width: 42rem; }
.needed ul { margin-top: 0.8rem; padding-left: 1.2rem; color: var(--olive-deep); }
.needed li + li { margin-top: 0.35rem; }

/* ---------- CTA + next ---------- */
.cta-card {
  margin-top: clamp(4rem, 9vw, 6rem);
  background: var(--olive); color: #f5eedb;
  border-radius: 1.5rem;
  padding: clamp(1.75rem, 4vw, 3rem);
}
.cta-card h2 { font-family: var(--font-display); font-variation-settings: "opsz" 96, "wdth" 85; font-weight: 800; font-size: clamp(1.9rem, 3.6vw, 2.8rem); line-height: 1; letter-spacing: -0.025em; }
.cta-card p { margin: 0.8rem 0 1.4rem; color: #e4e0c9; max-width: 44ch; }
.btn-light { display: inline-flex; align-items: center; gap: 0.6rem; min-height: 2.9rem; padding: 0 1.3rem; border-radius: 999px; background: #f5eedb; color: #272b14; font-family: var(--font-display); font-weight: 700; text-decoration: none; transition: transform 0.3s var(--ease); }
.btn-light:hover { transform: translateY(-2px); }

.next {
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(1.25rem, 3vw, 2.5rem); align-items: center;
  margin: 1.25rem 0 clamp(3rem, 7vw, 5rem);
  padding: clamp(0.9rem, 2vw, 1.25rem);
  border-radius: 1.5rem;
  background: var(--band); color: #f5eedb;
  text-decoration: none;
  transition: transform 0.4s var(--ease);
}
.next:hover { transform: translateY(-4px); }
.next .case-visual { aspect-ratio: 16 / 10; box-shadow: none; }
.next small { color: var(--band-soft); font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; }
.next strong { display: block; margin-top: 0.35rem; font-family: var(--font-display); font-variation-settings: "opsz" 72, "wdth" 85; font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.02; letter-spacing: -0.02em; }
.next .go { display: inline-flex; gap: 0.5rem; align-items: center; margin-top: 1rem; font-family: var(--font-display); font-weight: 600; }
.next:hover .go svg { transform: translateX(4px); }
.next .go svg { transition: transform 0.3s var(--ease); }

footer { position: relative; z-index: 1; border-top: 1px solid var(--border); padding: 1.5rem 0 2rem; color: var(--olive-pale); font-size: 0.9rem; }
footer .wrap { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
footer a { color: var(--olive-deep); display: inline-flex; align-items: center; min-height: 2.75rem; }

/* ---------- motion ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease), transform 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
.case-hero .line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.case-hero .line > span { display: block; animation: rise 1.1s var(--ease) both; animation-delay: calc(var(--i, 0) * 80ms + 120ms); }
.case-hero .fade-up { animation: fadeUp 0.9s var(--ease) both; animation-delay: var(--d, 0.5s); }
@keyframes rise { from { transform: translateY(105%); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.45s; }

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  html { scroll-behavior: auto; }
  .reveal, .beat { opacity: 1; transform: none; transition: none; }
  .case-hero .line > span, .case-hero .fade-up { animation: none; }
}

/* ---------- small screens ---------- */
@media (max-width: 820px) {
  .case-hero__grid, .inside__grid, .next { grid-template-columns: 1fr; }
  .case-hero { padding-top: calc(3.6rem + 1.75rem); }
  .case-hero h1 { font-size: clamp(2.3rem, 10.5vw, 3.4rem); margin: 1rem 0 0.9rem; }
  .back { margin-bottom: 1.25rem; min-height: 2.75rem; }
  .stats { grid-template-columns: 1fr 1fr; gap: 1.25rem 1rem; }
  .stats > div:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .inside__media { position: static; }
  .beat { opacity: 1; }
  .beats { gap: 2.25rem; padding-block: 1.75rem 0; }
  .draft-note { flex-direction: column; gap: 0.35rem; }
}

/* ==========================================================================
   Visual layer: progress, ghost type, frames, chapters, highlights, lightbox
   ========================================================================== */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 150; pointer-events: none; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, #8d9852, #b5cc6a); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }

.case-hero { padding-bottom: clamp(3rem, 7vw, 5.5rem); }
.case-hero__ghost {
  position: absolute;
  left: 50%; bottom: -0.16em;
  transform: translateX(calc(-50% + var(--gx, 0px)));
  margin: 0;
  white-space: nowrap;
  font-family: var(--font-display);
  font-variation-settings: "opsz" 96, "wdth" 80;
  font-weight: 800;
  font-size: clamp(7rem, 22vw, 20rem);
  line-height: 1;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(245, 238, 219, 0.1);
  pointer-events: none;
  user-select: none;
}
.case-hero__grid { position: relative; z-index: 1; }
.case-hero__visual { perspective: 1200px; }

/* real-site screenshots sit in a browser frame */
.frame { background: #1c1f17; border: 1px solid rgba(245, 238, 219, 0.1); }
.frame__bar { display: flex; gap: 6px; padding: 0.7rem 0.85rem; background: #2c3022; }
.frame__bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(245, 238, 219, 0.25); }
.frame__bar i:first-child { background: #e0705a; } .frame__bar i:nth-child(2) { background: #e2b84f; } .frame__bar i:nth-child(3) { background: #7cb55a; }
.case-visual.frame { aspect-ratio: auto; display: flex; flex-direction: column; }
.case-visual.frame img { height: auto; }
.case-hero .case-visual:not(.frame) { aspect-ratio: 4 / 3.4; }

.zoomable { position: relative; display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in; font: inherit; color: inherit; text-align: left; }
.zoom-hint {
  position: absolute; right: 0.75rem; bottom: 0.75rem;
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.35rem 0.7rem; border-radius: 999px;
  background: rgba(23, 25, 18, 0.78); color: #f5eedb;
  font-family: var(--font-display); font-size: 0.78rem; font-weight: 600;
  opacity: 0; transform: translateY(6px);
  transition: opacity 0.3s ease, transform 0.3s var(--ease);
}
.zoomable:hover .zoom-hint, .zoomable:focus-visible .zoom-hint { opacity: 1; transform: none; }
.zoomable:focus-visible { outline: 3px solid #b5cc6a; outline-offset: 3px; }
.tilt > * { transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease); transform: rotateX(var(--ty, 0deg)) rotateY(var(--tx, 0deg)); will-change: transform; }

/* stats */
.stats { border-bottom: 0; padding-bottom: 0; gap: 1rem; }
.stat {
  padding: 1.3rem 1.3rem 1.1rem;
  border-radius: 1.2rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.stat strong { font-size: clamp(2.4rem, 5vw, 4rem); font-variant-numeric: tabular-nums; }

/* numbered chapters */
.chapters { margin-top: clamp(3rem, 7vw, 5rem); max-width: 56rem; }
.chapter { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: 1.5rem; padding: 1.6rem 0; border-top: 1px solid var(--border); }
.chapter:last-child { border-bottom: 1px solid var(--border); }
.chapter__n { font-family: var(--font-display); font-variation-settings: "opsz" 96, "wdth" 80; font-weight: 800; font-size: 2.6rem; line-height: 0.9; color: var(--olive); opacity: 0.55; }
.chapter h2 { font-family: var(--font-display); font-variation-settings: "opsz" 48, "wdth" 90; font-weight: 700; font-size: 1.45rem; letter-spacing: -0.015em; margin-bottom: 0.55rem; display: flex; align-items: center; gap: 0.7rem; flex-wrap: wrap; }
.chapter p { color: var(--olive-deep); max-width: 60ch; font-size: 1.06rem; }

/* copy beats: a marker sweeps across the active quote */
.beat blockquote mark {
  color: inherit;
  background: linear-gradient(transparent 58%, rgba(181, 204, 106, 0.55) 58%) no-repeat 0 0 / 0% 100%;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  transition: background-size 1.1s var(--ease) 0.15s;
}
.beat.is-active blockquote mark, .no-js .beat blockquote mark { background-size: 100% 100%; }
[data-theme="obsidian"] .beat blockquote mark { background-image: linear-gradient(transparent 58%, rgba(141, 152, 82, 0.55) 58%); }
.beat blockquote { font-size: clamp(1.45rem, 2.6vw, 2.15rem); }
.inside__media .case-visual.zoomable { box-shadow: 0 40px 80px -40px rgba(39, 43, 20, 0.55); }

/* gallery of live screenshots */
.gallery-wrap { margin-top: clamp(4rem, 9vw, 6.5rem); }
.gallery-wrap .display { margin-bottom: clamp(1.25rem, 3vw, 2rem); }
.gallery { margin-top: 0; }
.gallery .shot { margin: 0; border: 0; background: none; border-radius: 0; overflow: visible; transition-delay: calc(var(--i, 0) * 110ms); }
.gallery { align-items: start; }
.shot .case-visual { border-radius: 1.1rem; overflow: hidden; box-shadow: 0 30px 60px -36px rgba(39, 43, 20, 0.5); aspect-ratio: auto; }
.shot .case-visual img { height: auto; }
.shot figcaption { padding: 0.75rem 0.2rem 0; background: none; }

/* bigger next-project card */
.next { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding: clamp(1rem, 2.2vw, 1.5rem); overflow: hidden; }
.next__media { border-radius: 1rem; overflow: hidden; }
.next__media .case-visual { transition: transform 0.8s var(--ease); }
.next:hover .next__media .case-visual { transform: scale(1.04); }
.next small { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.75rem; }
.next strong { font-size: clamp(2.4rem, 5vw, 4.2rem); line-height: 0.95; letter-spacing: -0.03em; margin-top: 0.5rem; }
.next__title { display: block; margin-top: 0.7rem; color: var(--band-soft); font-size: 1.05rem; max-width: 34ch; }

/* lightbox */
.lightbox { margin: auto; padding: 0; border: 0; background: transparent; max-width: min(92vw, 1400px); max-height: 90vh; overflow: visible; }
.lightbox::backdrop { background: rgba(15, 17, 12, 0.86); backdrop-filter: blur(6px); }
.lightbox img { max-width: min(92vw, 1400px); max-height: 86vh; width: auto; height: auto; border-radius: 0.9rem; }
.lightbox__close { position: absolute; top: -3rem; right: 0; width: 2.6rem; height: 2.6rem; border-radius: 50%; border: 0; background: #f5eedb; color: #272b14; font-size: 1.5rem; line-height: 1; cursor: pointer; }
.lightbox[open] img { animation: zoomIn 0.4s var(--ease); }
@keyframes zoomIn { from { opacity: 0; transform: scale(0.96); } }

@media (max-width: 820px) {
  .case-hero__ghost { font-size: 34vw; -webkit-text-stroke-width: 1px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { padding: 1rem; }
  .chapter { grid-template-columns: 1fr; gap: 0.35rem; padding: 1.3rem 0; }
  .chapter__n { font-size: 1.6rem; }
  .next { grid-template-columns: 1fr; }
  .next strong { font-size: clamp(2.2rem, 11vw, 3rem); }
  .zoom-hint { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .tilt > *, .next__media .case-visual, .beat blockquote mark { transition: none; }
  .beat blockquote mark { background-size: 100% 100%; }
}
