/* ==========================================================================
   STARDUST-BPM2025 · single-work scroll story
   STuDiØ ZØ · FINE ART SERIES

   Direction: geological editorial. The page reads as a core sample taken
   through the work. Black ground carries the playa chapters; white carries
   the record (plate, statement, acquisition). Dark mode is social-only, so
   the commerce blocks stay on paper.

   Laws honoured: radius 0 · NO divider lines (air separates) · single-colour
   headlines · Bebas ships one weight so every heading is pinned to 400 ·
   POSITIVE tracking that opens as size comes down.
   ========================================================================== */

@font-face {
  font-family: 'Bebas';
  src: url('./bebas.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'JB';
  src: url('./jb.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}

:root {
  /* type */
  --f-display: 'Bebas', 'Anton', 'Oswald', sans-serif;
  --f-mono:    'JB', ui-monospace, monospace;
  --f-body:    'SF Mono', ui-monospace, 'JB', Menlo, monospace;

  /* display scale · leading tightens as size climbs, tracking opens as it falls */
  --d1: clamp(46px, 8vw, 132px);
  --d2: clamp(36px, 5vw, 76px);
  --d3: clamp(28px, 3.4vw, 50px);
  --d4: clamp(22px, 2.4vw, 34px);

  /* ground */
  --void:   #07070A;
  --void-2: #0E0E12;
  --paper:  #FFFFFF;
  --ink:    #000000;

  /* on black */
  --bone:   #E8E3D8;
  --bone-2: #9A948A;
  --bone-3: #625E57;

  /* on white */
  --t2: #555555;
  --t3: #888888;
  --t4: #AAAAAA;

  /* zone · .art carries STuDiØ ZØ blue. Marker and label only, never headline type. */
  --art: #2858B8;

  /* the work's own range, used for the strata rail only */
  --playa: #C4A870;
  --sumi:  #2A2A2E;

  --sp5: 56px;
  --sp6: 88px;
  --sp7: 128px;
  --sp8: 184px;

  --measure: 1340px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 15px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Bebas ships ONE weight. Without this a heading falls to the browser default
   bold, finds no bold to load, and synthesises one by fattening the outlines.
   Condensed caps turn to mud. This single line is non-negotiable. */
h1, h2, h3, h4, h5, h6 { font-weight: 400; margin: 0; }

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

a { color: inherit; }

/* ── shared primitives ─────────────────────────────────────────────────── */

.wrap { width: 100%; max-width: var(--measure); margin: 0 auto; padding: 0 32px; }

.label {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 400;
}

.disp {
  font-family: var(--f-display);
  text-transform: uppercase;
  color: inherit;      /* single-colour headlines, always */
}

.d1 { font-size: var(--d1); line-height: .88; letter-spacing: .01em; }
.d2 { font-size: var(--d2); line-height: .92; letter-spacing: .015em; }
.d3 { font-size: var(--d3); line-height: .96; letter-spacing: .02em; }
.d4 { font-size: var(--d4); line-height: 1;   letter-spacing: .03em; }

.dark { background: var(--void); color: var(--bone); }

/* ── breadcrumb ────────────────────────────────────────────────────────── */

.crumb {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: lowercase;
  color: var(--bone-3);
  padding: 22px 32px 0;
  max-width: var(--measure);
  margin: 0 auto;
}
.crumb a { color: var(--bone-3); text-decoration: none; transition: color .2s; }
.crumb a:hover { color: var(--bone); }
.crumb .sep { color: var(--art); margin: 0 9px; }
.crumb strong { color: var(--bone); font-weight: 400; }

/* ── hero ──────────────────────────────────────────────────────────────── */

.hero { position: relative; padding-bottom: var(--sp7); }

.hero-plate {
  margin: var(--sp6) auto 0;
  max-width: 1180px;
  padding: 0 32px;
}
.hero-plate img { width: 100%; height: auto; }

.hero-head { max-width: var(--measure); margin: 0 auto; padding: var(--sp6) 32px 0; }

.hero-eyebrow {
  display: flex; align-items: center; gap: 14px;
  color: var(--bone-3); margin-bottom: 26px; flex-wrap: wrap;
}
.hero-eyebrow .tick { width: 26px; height: 2px; background: var(--art); }

.hero h1 { color: var(--bone); max-width: 15ch; }

.hero-sub {
  margin-top: 30px;
  max-width: 46ch;
  color: var(--bone-2);
  font-size: 16px;
  line-height: 1.7;
}
.hero-sub em { font-style: normal; color: var(--bone); }

/* fact row · air separates the cells, no rules anywhere */
.facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 40px 48px;
  margin-top: var(--sp5);
  max-width: 880px;
}
.facts dt { color: var(--bone-3); margin-bottom: 9px; }
.facts dd {
  margin: 0;
  font-family: var(--f-display);
  font-size: 27px;
  letter-spacing: .025em;
  text-transform: uppercase;
  color: var(--bone);
  line-height: 1;
}
.facts dd small {
  display: block;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: .1em;
  color: var(--bone-3);
  margin-top: 8px;
  text-transform: none;
}

.scroll-cue {
  margin-top: var(--sp6);
  color: var(--bone-3);
  display: flex; align-items: center; gap: 12px;
}
.scroll-cue .rule {
  display: block; width: 1px; height: 46px;
  background: linear-gradient(var(--bone-3), transparent);
}

/* ── the plate · white, a real gallery label ───────────────────────────── */

.record { background: var(--paper); padding: var(--sp8) 0; }

.record-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: var(--sp6);
  align-items: start;
}

.sec-label { color: var(--art); margin-bottom: 22px; display: block; }

.record h2 { max-width: 12ch; margin-bottom: 28px; }

.record p { color: var(--t2); max-width: 52ch; }

.spec { display: grid; gap: 26px; }
.spec-row { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 24px; align-items: baseline; }
.spec-row dt { color: var(--t4); }
.spec-row dd { margin: 0; color: var(--ink); font-size: 15px; }
.spec-row dd .note { display: block; color: var(--t3); font-size: 13px; margin-top: 6px; }

.price {
  font-family: var(--f-display);
  font-size: 58px;
  letter-spacing: .02em;
  line-height: 1;
}

/* status · a bordered card outline is a component, not a divider. Allowed. */
.status {
  margin-top: var(--sp5);
  border: 1px solid var(--ink);
  padding: 26px 28px;
  max-width: 460px;
}
.status .label { color: var(--art); display: block; margin-bottom: 12px; }
.status strong { font-weight: 400; font-family: var(--f-display); font-size: 25px; letter-spacing: .025em; text-transform: uppercase; display: block; }
.status span { display: block; color: var(--t3); font-size: 13px; margin-top: 8px; }

/* ── CTAs ──────────────────────────────────────────────────────────────── */

.ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-top: var(--sp5); }

.btn {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  padding: 17px 30px;
  text-decoration: none;
  display: inline-block;
  transition: background .2s, color .2s, border-color .2s;
}
.btn-solid { background: var(--ink); color: var(--paper); border: 1px solid var(--ink); }
.btn-solid:hover { background: var(--art); border-color: var(--art); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--t4); }
.btn-ghost:hover { border-color: var(--ink); }

.dark .btn-solid { background: var(--bone); color: var(--void); border-color: var(--bone); }
.dark .btn-solid:hover { background: var(--art); border-color: var(--art); color: var(--bone); }
.dark .btn-ghost { color: var(--bone); border-color: var(--bone-3); }
.dark .btn-ghost:hover { border-color: var(--bone); }

/* ── chapters · sticky media, scrolling text ───────────────────────────── */

.story { background: var(--void); padding: var(--sp8) 0 var(--sp7); position: relative; }

.chapter {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 1fr);
  gap: var(--sp6);
  align-items: start;
  margin-bottom: var(--sp8);
}
.chapter:last-of-type { margin-bottom: 0; }
.chapter.flip .chapter-media { order: 2; }

/* the media pins while the copy travels past it */
.chapter-media { position: sticky; top: 76px; }
.chapter-media img,
.chapter-media video { width: 100%; height: auto; background: var(--void-2); }

.media-cap {
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--bone-3);
  margin-top: 12px;
  display: flex; justify-content: space-between; gap: 16px;
}

.chapter-copy { padding-top: 8px; }

.chapter-no {
  font-family: var(--f-display);
  font-size: 15px;
  letter-spacing: .12em;
  color: var(--art);
  display: block;
  margin-bottom: 16px;
}

.chapter h3 { color: var(--bone); margin-bottom: 26px; max-width: 13ch; }

.chapter p {
  color: var(--bone-2);
  font-size: 16px;
  line-height: 1.78;
  max-width: 44ch;
  margin: 0 0 22px;
}
.chapter p:last-child { margin-bottom: 0; }

/* a pulled line from ZØ's own text, set as display type */
.pull {
  font-family: var(--f-display);
  font-size: clamp(24px, 2.4vw, 36px);
  line-height: 1.06;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--bone);
  max-width: 17ch;
  margin: var(--sp5) 0 0;
}

/* the second still inside a chapter, sat under the copy */
.chapter-aside { margin-top: var(--sp5); }
.chapter-aside img { width: 100%; height: auto; }

/* ── the hold ──────────────────────────────────────────────────────────── */

.hold {
  background: var(--ink);
  min-height: 78vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: var(--sp8) 32px;
}
.hold p {
  font-family: var(--f-display);
  font-size: clamp(34px, 6vw, 92px);
  letter-spacing: .03em;
  line-height: 1;
  text-transform: uppercase;
  color: var(--bone);
  margin: 0;
}
.hold .label { color: var(--bone-3); display: block; margin-top: 34px; }

/* ── surface grid ──────────────────────────────────────────────────────── */

.surface { background: var(--void); padding: 0 0 var(--sp8); }
.surface-head { margin-bottom: var(--sp6); }
.surface-head h2 { color: var(--bone); margin-bottom: 20px; }
.surface-head p { color: var(--bone-2); max-width: 50ch; font-size: 16px; line-height: 1.75; }

.surface-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.surface-grid figure { margin: 0; }
.surface-grid img, .surface-grid video { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 5; background: var(--void-2); }
.surface-grid figcaption {
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--bone-3);
  margin-top: 11px;
}

/* ── artist statement ──────────────────────────────────────────────────── */

.statement { background: var(--paper); padding: var(--sp8) 0; }
.statement-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: var(--sp6);
  align-items: start;
}
.statement h2 { margin-bottom: 34px; }
.statement p { color: var(--t2); font-size: 15.5px; line-height: 1.8; max-width: 62ch; margin: 0 0 22px; }
.statement p em { font-style: italic; color: var(--ink); }
.statement p strong { font-weight: 400; color: var(--ink); }

.sig {
  font-family: var(--f-display);
  font-size: 34px;
  letter-spacing: .03em;
  text-transform: uppercase;
  margin-top: var(--sp5);
  line-height: 1.1;
}
.sig small { display: block; font-family: var(--f-mono); font-size: 10px; letter-spacing: .16em; color: var(--t3); margin-top: 10px; }

.statement-aside img { width: 100%; height: auto; }
.statement-aside .label { color: var(--t4); margin-top: 14px; display: block; }

/* ── thanks ────────────────────────────────────────────────────────────── */

.thanks { background: var(--paper); padding: 0 0 var(--sp8); }
.thanks-inner { max-width: 700px; }
.thanks h2 { margin-bottom: 30px; }
.thanks p { color: var(--t3); font-size: 14px; line-height: 1.82; margin: 0 0 20px; }

/* ── acquisition ───────────────────────────────────────────────────────── */

.acquire { background: var(--paper); padding: var(--sp8) 0 var(--sp7); }
.acquire-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--sp6);
  align-items: start;
}
.acquire h2 { margin-bottom: 26px; max-width: 11ch; }
.acquire p { color: var(--t2); max-width: 46ch; }

/* the derivative · her own thesis, made literal */
.deriv { border: 1px solid var(--t4); padding: 30px; }
.deriv .label { color: var(--art); display: block; margin-bottom: 14px; }
.deriv h3 { margin-bottom: 14px; }
.deriv p { color: var(--t3); font-size: 14px; margin-bottom: 22px; }

.close {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: lowercase;
  color: var(--t3);
  margin-top: var(--sp7);
  text-align: center;
}

/* ── motion ────────────────────────────────────────────────────────────── */

.rise { opacity: 0; transform: translate3d(0, 26px, 0); transition: opacity .85s cubic-bezier(.16,1,.3,1), transform .85s cubic-bezier(.16,1,.3,1); }
.rise.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rise { opacity: 1; transform: none; transition: none; }
  .chapter-media { position: static; }
}

/* ── responsive ────────────────────────────────────────────────────────── */

@media (max-width: 1020px) {
  .record-grid, .chapter, .statement-grid, .acquire-grid { grid-template-columns: minmax(0, 1fr); gap: var(--sp5); }
  .chapter.flip .chapter-media { order: 0; }
  .chapter-media { position: static; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .surface-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .wrap, .crumb, .hero-head, .hero-plate { padding-left: 20px; padding-right: 20px; }
  :root { --sp6: 60px; --sp7: 82px; --sp8: 104px; }
  .facts { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .surface-grid { grid-template-columns: minmax(0, 1fr); }
  .spec-row { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .price { font-size: 44px; }
}
