/* ============================================================
   NCK — Portfolio
   Dark · Immersive · Mono / Experimental
   ============================================================ */

:root {
  --bg: #0b0b0c;
  --bg-2: #101012;
  --ink: #edebe6;
  --muted: #8a887f;
  --hairline: rgba(237, 235, 230, 0.14);
  --hairline-soft: rgba(237, 235, 230, 0.07);
  --accent: #d8ff3e;
  --font-display: "Space Grotesk", "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Menlo, "PingFang SC", monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --pad: clamp(20px, 4vw, 64px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--accent); color: #0b0b0c; }

img, video { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

/* ---------- language toggle ---------- */
[data-lang-zh] { display: none !important; }
html.zh [data-lang-en] { display: none !important; }
html.zh [data-lang-zh] { display: revert !important; }
html.zh .cta-label[data-lang-zh],
html.zh .case-hero .label[data-lang-zh],
html.zh .case-meta .cell .label[data-lang-zh],
html.zh .case-next .label[data-lang-zh] { display: block !important; }

/* ---------- grain overlay ---------- */
.grain {
  position: fixed; inset: -50%;
  width: 200%; height: 200%;
  pointer-events: none;
  z-index: 9000;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 9s steps(6) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -2%); }
  80% { transform: translate(3%, 3%); }
}

/* ---------- cursor ---------- */
.cursor {
  position: fixed; top: 0; left: 0;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--ink);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.25s var(--ease), height 0.25s var(--ease),
              background 0.25s var(--ease), opacity 0.3s;
  mix-blend-mode: difference;
  opacity: 0;
}
.cursor.on { opacity: 1; }
.cursor.hover { width: 44px; height: 44px; }
@media (hover: none) { .cursor { display: none; } }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px var(--pad);
  mix-blend-mode: difference;
}
.nav .brand {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.14em;
}
.nav .brand sup { font-size: 8px; letter-spacing: 0; }
.nav-links {
  display: flex; align-items: center; gap: clamp(16px, 3vw, 40px);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.nav-links a { position: relative; padding: 4px 0; opacity: 0.85; transition: opacity 0.25s; }
.nav-links a:hover { opacity: 1; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.35s var(--ease);
}
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); transform-origin: left; }
.lang-toggle {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  background: none; border: 1px solid currentColor;
  color: inherit;
  border-radius: 100px;
  padding: 5px 14px;
  cursor: pointer;
  transition: all 0.3s var(--ease);
}
.lang-toggle:hover { background: var(--ink); color: var(--bg); }

/* ---------- mono label ---------- */
.label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- hero ---------- */
.hero {
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 0 var(--pad) 0;
  position: relative;
}
.hero-coords {
  position: absolute; top: 50%; left: var(--pad);
  transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 6px;
}
.hero-title {
  font-size: clamp(64px, 15vw, 220px);
  line-height: 0.86;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-left: -0.05em;
  user-select: none;
}
.hero-title .reg { font-size: 0.12em; vertical-align: super; letter-spacing: 0; font-weight: 400; }
.hero-sub {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end;
  gap: 16px;
  padding: 28px 0 32px;
  border-top: 1px solid var(--hairline);
  margin-top: clamp(24px, 4vh, 48px);
}
.hero-sub .role { font-size: clamp(15px, 1.6vw, 20px); max-width: 520px; color: var(--ink); }
.hero-sub .role em { font-style: normal; color: var(--muted); }
.scroll-hint { display: flex; align-items: center; gap: 10px; }
.scroll-hint .line { width: 48px; height: 1px; background: var(--muted); overflow: hidden; position: relative; }
.scroll-hint .line::after {
  content: ""; position: absolute; inset: 0; background: var(--ink);
  animation: scan 2.2s var(--ease) infinite;
}
@keyframes scan { 0% { transform: translateX(-100%);} 60%,100% { transform: translateX(100%);} }

/* ---------- marquee ---------- */
.marquee {
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  overflow: hidden;
  white-space: nowrap;
  padding: 14px 0;
}
.marquee-inner {
  display: inline-block;
  animation: marquee 26s linear infinite;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
}
.marquee-inner span { margin: 0 28px; }
.marquee-inner .dot { color: var(--accent); }
@keyframes marquee { from { transform: translateX(0);} to { transform: translateX(-50%);} }

/* ---------- section shell ---------- */
.section { padding: clamp(56px, 9vh, 110px) var(--pad); }
.section-head {
  display: flex; justify-content: space-between; align-items: baseline;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--hairline);
  margin-bottom: clamp(40px, 6vh, 80px);
}
.section-head h2 {
  font-size: clamp(22px, 2.8vw, 38px);
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* ---------- work list ---------- */
.work-item { display: block; margin-bottom: clamp(56px, 9vh, 100px); }
.work-item:last-child { margin-bottom: 0; }
.work-media {
  position: relative;
  overflow: hidden;
  background: var(--bg-2);
  border: 1px solid var(--hairline-soft);
}
.work-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(11,11,12,0.35), transparent 40%);
  pointer-events: none;
}
.work-media video, .work-media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 1.2s var(--ease);
}
.work-item:hover .work-media video,
.work-item:hover .work-media img { transform: scale(1.06); }
.work-info {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  gap: 20px;
  padding-top: 18px;
}
.work-info .idx { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.work-info h3 {
  font-size: clamp(19px, 2.4vw, 30px);
  font-weight: 600;
  letter-spacing: -0.02em;
  transition: color 0.3s;
}
.work-item:hover .work-info h3 { color: var(--accent); }
.work-info .tags {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: right;
}

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }

/* ---------- case page ---------- */
.case-hero { padding: calc(90px + 6vh) var(--pad) 0; }
.case-hero .label { display: block; margin-bottom: 18px; }
.case-hero h1 {
  font-size: clamp(32px, 5.2vw, 72px);
  line-height: 1.0;
  font-weight: 700;
  letter-spacing: -0.03em;
  max-width: 14ch;
}
.case-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 24px;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: 24px 0;
  margin: clamp(32px, 6vh, 64px) 0;
}
.case-meta .cell .label { margin-bottom: 8px; display: block; }
.case-meta .cell p { font-size: 14px; }
.case-intro {
  font-size: clamp(16px, 1.7vw, 21px);
  line-height: 1.5;
  max-width: 900px;
  color: var(--ink);
  margin-bottom: clamp(56px, 10vh, 120px);
}
.case-intro em { font-style: normal; color: var(--muted); }

.media-block { margin-bottom: clamp(32px, 6vh, 72px); }
.media-block figure { background: var(--bg-2); border: 1px solid var(--hairline-soft); overflow: hidden; }
.media-block video { width: 100%; }
.media-block figcaption {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 14px 0 0;
}
.media-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2.5vw, 40px); }
.media-grid figure { aspect-ratio: 4 / 5; }
.media-grid figure video { width: 100%; height: 100%; object-fit: contain; }
.media-grid figure img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.media-grid .span-2 { grid-column: span 2; }
@media (max-width: 720px) { .media-grid { grid-template-columns: 1fr; } .media-grid .span-2 { grid-column: span 1; } }

.case-note {
  max-width: 680px;
  color: var(--muted);
  font-size: 15px;
  margin: 0 0 clamp(40px, 8vh, 96px);
}
.case-note strong { color: var(--ink); font-weight: 500; }

/* next project */
.case-next {
  border-top: 1px solid var(--hairline);
  padding: clamp(48px, 8vh, 90px) var(--pad);
  text-align: center;
}
.case-next .label { display: block; margin-bottom: 16px; }
.case-next a.big {
  font-size: clamp(26px, 4vw, 56px);
  font-weight: 700;
  letter-spacing: -0.03em;
  display: inline-block;
  transition: color 0.3s, letter-spacing 0.5s var(--ease);
}
.case-next a.big:hover { color: var(--accent); letter-spacing: -0.01em; }

/* ---------- about ---------- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 100px);
}
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }
.about-bio { font-size: clamp(16px, 1.7vw, 21px); line-height: 1.55; }
.about-bio p + p { margin-top: 1.2em; }
.about-bio em { font-style: normal; color: var(--muted); }
.cap-list { border-top: 1px solid var(--hairline); }
.cap-row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 18px 0;
  border-bottom: 1px solid var(--hairline);
}
.cap-row .cap-name { font-size: clamp(15px, 1.5vw, 18px); font-weight: 500; }
.cap-row .cap-detail { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); text-align: right; max-width: 55%; }

/* ---------- footer ---------- */
.footer {
  border-top: 1px solid var(--hairline);
  padding: clamp(56px, 9vh, 100px) var(--pad) 28px;
}
.footer .cta-label { display: block; margin-bottom: 20px; }
.footer .cta {
  display: inline-block;
  font-size: clamp(24px, 4.2vw, 60px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  transition: color 0.3s;
}
.footer .cta:hover { color: var(--accent); }
.footer-base {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  margin-top: clamp(48px, 8vh, 100px);
  padding-top: 24px;
  border-top: 1px solid var(--hairline-soft);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.footer-base a:hover { color: var(--ink); }

@media (max-width: 640px) {
  .work-info { grid-template-columns: auto 1fr; }
  .work-info .tags { grid-column: 1 / -1; text-align: left; }
  .nav-links { gap: 14px; }
}

/* ---------- embeds & archive (v2) ---------- */
.embed { position: relative; aspect-ratio: 16 / 9; background: var(--bg-2); border: 1px solid var(--hairline-soft); }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.credit-line { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-top: -28px; margin-bottom: clamp(40px, 8vh, 96px); }
.archive-list { border-top: 1px solid var(--hairline); }
.archive-row {
  display: grid; grid-template-columns: 44px 1fr auto auto; gap: 20px; align-items: baseline;
  padding: 22px 0; border-bottom: 1px solid var(--hairline);
  transition: padding-left 0.4s var(--ease);
}
a.archive-row:hover { padding-left: 12px; }
a.archive-row:hover .ar-title { color: var(--accent); }
.archive-row .ar-idx { font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.archive-row .ar-title { font-size: clamp(16px, 1.8vw, 22px); font-weight: 500; letter-spacing: -0.01em; transition: color 0.3s; }
.archive-row .ar-tag, .archive-row .ar-year { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 640px) { .archive-row { grid-template-columns: 30px 1fr auto; } .archive-row .ar-tag { display: none; } }

/* ---------- natural-size guard: never upscale small sources (v3) ---------- */
.media-block figure, .media-block figcaption { max-width: 1600px; margin-inline: auto; }
.media-block figcaption { padding-top: 14px; }
.media-block .media-grid { max-width: 1600px; margin-inline: auto; }
figure.mw-1280 { max-width: 1280px; }


/* ---------- refined page shell (v4) ---------- */
.section, .case-hero, .footer, .case-next { max-width: 1760px; margin-inline: auto; }
.case-hero h1 { max-width: 18ch; }
video, img { image-rendering: auto; }
figure.mw-374 { max-width: 374px; }
figure.mw-720 { max-width: 720px; }


/* ---------- v5: archive hover preview / mixed grids / medium sizing ---------- */
.archive-row { position: relative; overflow: hidden; }
.ar-thumb {
  position: absolute; top: 0; bottom: 0;
  left: clamp(360px, 42%, 720px); right: clamp(150px, 16%, 240px);
  width: calc(100% - clamp(360px, 42%, 720px) - clamp(150px, 16%, 240px));
  height: 100%;
  object-fit: cover; object-position: center 40%;
  opacity: 0;
  clip-path: inset(0 0 0 100%);
  transition: opacity 0.5s var(--ease), clip-path 0.7s var(--ease);
  pointer-events: none;
}
.archive-row:hover .ar-thumb { opacity: 0.92; clip-path: inset(0 0 0 0); }
@media (max-width: 1100px) { .ar-thumb { display: none; } }
.media-grid.ar-auto figure { aspect-ratio: auto; }
.media-grid.ar-auto figure video { height: auto; object-fit: fill; }
figure.mw-876 { max-width: 876px; }
figure.mw-620 { max-width: 620px; }
.media-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 720px) { .media-grid.cols-4 { grid-template-columns: repeat(2, 1fr); } }

/* --- max-width guards (Binance case) --- */
figure.mw-1548 { max-width: 1548px; }
figure.mw-1400 { max-width: 1400px; }
figure.mw-1200 { max-width: 1200px; }
figure.mw-738  { max-width: 738px; }
figure.mw-588  { max-width: 588px; }
.media-block > figure > img { display: block; width: 100%; height: auto; }
.media-grid.ar-auto figure img { height: auto; object-fit: contain; }
figure.mw-1286 { max-width: 1286px; }
figure.mw-972  { max-width: 972px; }
figure.mw-658  { max-width: 658px; }
figure.mw-890 { max-width: 890px; }
figure.mw-834 { max-width: 834px; }
figure.mw-826 { max-width: 775px; }
figure.mw-914 { max-width: 914px; }
figure.mw-912 { max-width: 912px; }
figure.mw-775 { max-width: 775px; }
figure.mw-636 { max-width: 626px; }
figure.mw-568 { max-width: 568px; }
figure.mw-306 { max-width: 306px; }
figure.mw-290 { max-width: 290px; }
figure.mw-490 { max-width: 490px; }
figure.mw-340 { max-width: 340px; }
figure.mw-500 { max-width: 500px; }

/* ── v13 — MEXC Liquidity ─────────────────────────────── */
figure.mw-1362 { max-width: 1362px; }
figure.mw-1087 { max-width: 1087px; }

/* Script comparison — two treatments against one fixed subtitle axis */
.script-cmp { max-width: 1500px; margin-inline: auto; }
.script-head,
.script-row {
  display: grid;
  grid-template-columns: 1fr 0.62fr 1fr;
  gap: clamp(16px, 2.4vw, 44px);
}
.script-head {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--hairline);
}
.script-head .label { display: block; }
.script-head .mid { text-align: center; color: var(--accent); }
.script-row {
  padding: clamp(20px, 3vh, 34px) 0;
  border-bottom: 1px solid var(--hairline-soft);
  align-items: start;
}
.script-row p {
  font-size: clamp(13px, 1.05vw, 15px);
  line-height: 1.62;
  color: var(--muted);
}
.script-row .axis { text-align: center; }
.script-row .axis .tc {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin-bottom: 10px;
}
.script-row .axis .ost {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(11px, 0.95vw, 13px);
  line-height: 1.55;
  letter-spacing: 0.02em;
  color: var(--accent);
}
.script-row .axis .ost.none { color: var(--muted); opacity: 0.5; }
.script-end {
  padding-top: 18px;
  font-family: var(--font-mono);
  font-size: clamp(11px, 0.95vw, 13px);
  letter-spacing: 0.02em;
  color: var(--accent);
  text-align: center;
}
@media (max-width: 860px) {
  .script-head { display: none; }
  .script-row { grid-template-columns: 1fr; gap: 14px; padding: 26px 0; }
  .script-row .axis { text-align: left; order: -1; }
  .script-row .col::before {
    content: attr(data-col);
    display: block;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 7px;
  }
}

/* Pull quote — client voice, typeset */
.pullquote {
  max-width: 900px;
  margin: 0 auto clamp(32px, 6vh, 72px);
  padding-left: clamp(18px, 2.4vw, 34px);
  border-left: 1px solid var(--accent);
}
.pullquote p {
  font-size: clamp(17px, 2.1vw, 26px);
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.pullquote p + p { margin-top: 0.55em; }
.pullquote .attr {
  display: block;
  margin-top: 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.media-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 720px) { .media-grid.cols-3 { grid-template-columns: 1fr; } }
.grid-notes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2.5vw, 40px);
  max-width: 1600px;
  margin-inline: auto;
  padding-top: 14px;
}
.grid-notes p {
  font-size: clamp(12px, 1vw, 14px);
  line-height: 1.6;
  color: var(--muted);
}
.grid-notes p em {
  display: block;
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 7px;
}
@media (max-width: 720px) { .grid-notes { grid-template-columns: 1fr; gap: 16px; } }
html.zh .case-hero h1 { max-width: 22ch; }

/* ── v14 — minimal centered case layout ───────────────── */
.case-cover { padding-top: 68px; }
.case-cover figure { background: var(--bg-2); overflow: hidden; }
.case-cover video, .case-cover img { display: block; width: 100%; }

body.case-min .case-hero { padding-top: clamp(40px, 7vh, 80px); text-align: center; }
body.case-min .case-hero h1 { max-width: 26ch; margin-inline: auto; }
html.zh body.case-min .case-hero h1 { max-width: 28ch; }
body.case-min .case-meta { text-align: center; }
body.case-min .case-intro {
  max-width: 720px; margin-inline: auto; text-align: center;
  margin-bottom: clamp(40px, 7vh, 84px);
}
body.case-min .section-head {
  display: block; text-align: center;
  border-bottom: 0; padding-bottom: 0;
  margin-bottom: clamp(20px, 3vh, 34px);
}
body.case-min .section-head .label { display: block; margin-bottom: 14px; }
body.case-min .section-head h2 { max-width: 22ch; margin-inline: auto; }
body.case-min .case-note {
  max-width: 640px; margin-inline: auto; text-align: center;
  font-size: clamp(14px, 1.25vw, 16px); line-height: 1.65;
  margin-bottom: clamp(36px, 6vh, 72px);
}
body.case-min .media-block figcaption { text-align: center; }
body.case-min .pullquote {
  border-left: 0; padding-left: 0; text-align: center;
  max-width: 780px;
}
body.case-min .slogan {
  text-align: center;
  font-family: var(--font-mono);
  font-size: clamp(12px, 1.15vw, 15px);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: clamp(32px, 6vh, 72px) 0 clamp(40px, 7vh, 84px);
}
figure.mw-1424 { max-width: 1424px; }
figure.mw-712 { max-width: 712px; }
body.case-min .section-head .section-sub {
  display: block;
  margin-top: 10px;
  font-size: clamp(12px, 1.05vw, 14px);
  color: var(--muted);
  opacity: 0.75;
}
figure.mw-1447 { max-width: 1447px; }
figure.mw-1224 { max-width: 1224px; }
figure.mw-1003 { max-width: 1003px; }
figure.mw-686  { max-width: 686px; }
body.case-min .case-cover figure { max-width: 1600px; margin-inline: auto; }
body.case-min .case-hero h1 { max-width: none; }
html.zh body.case-min .case-hero h1 { max-width: none; }

/* ── v20 ─────────────────────────────────────────────── */
/* hero: coords sit above the wordmark, never behind it */
.hero-coords { top: clamp(96px, 15vh, 168px); transform: none; }
@media (max-width: 640px) { .hero-coords { top: 88px; } }

/* work list: title above the thumbnail */
.work-item { display: flex; flex-direction: column; }
.work-item .work-info { order: -1; padding-top: 0; padding-bottom: 16px; }

figure.mw-1920 { max-width: 1920px; }
figure.mw-1536 { max-width: 1536px; }
figure.mw-960 { max-width: 960px; }
