:root {
  --ink: #0d0d0c;
  --ink-2: #161614;
  --ink-3: #22211e;
  --line-dark: rgba(255, 255, 255, 0.1);
  --paper: #faf8f4;
  --bone: #f1ede5;
  --stone: #e7e1d6;
  --line: rgba(13, 13, 12, 0.12);
  --text: #1a1a18;
  --muted: #6f6b63;
  --muted-dark: #a19d94;
  --gold: #b8964f;
  --gold-hi: #dcc28a;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Inter Tight", system-ui, -apple-system, sans-serif;
  --max: 1320px;
  --gut: clamp(16px, 4vw, 48px);
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }
.eyebrow {
  font: 500 12px/1 var(--sans);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.display {
  font: 500 clamp(40px, 6.4vw, 92px)/0.98 var(--sans);
  letter-spacing: -0.035em;
  margin: 0;
}
.h2 {
  font: 500 clamp(32px, 4.2vw, 58px)/1.02 var(--sans);
  letter-spacing: -0.03em;
  margin: 0;
}
.serif { font-family: var(--serif); font-weight: 400; font-style: italic; letter-spacing: -0.01em; }
.gold { color: var(--gold); }
.lede { font-size: clamp(17px, 1.4vw, 19px); color: var(--muted); max-width: 56ch; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 26px;
  border: 1px solid transparent; border-radius: 999px;
  font: 500 14px/1 var(--sans); letter-spacing: 0.02em;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.btn svg { width: 16px; height: 16px; transition: transform 0.3s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-hi); }
.btn-ghost { border-color: rgba(255,255,255,0.3); color: #fff; }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,0.06); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-3); }
.btn-line { border-color: var(--line); }
.btn-line:hover { border-color: var(--text); }

/* Nav */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.solid, .nav.always-solid {
  background: rgba(13, 13, 12, 0.86);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-color: var(--line-dark);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.nav-logo img { height: 40px; width: auto; }
.nav-links { display: flex; gap: 36px; align-items: center; }
.nav-links a:not(.btn) { color: rgba(255,255,255,0.72); font-size: 14px; letter-spacing: 0.02em; transition: color 0.2s; }
.nav-links a:not(.btn):hover, .nav-links a[aria-current="page"] { color: #fff; }
.nav-links .btn { padding: 11px 20px; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; color: #fff; }
.nav-toggle svg { width: 26px; height: 26px; }

@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; inset: 76px 0 auto 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--ink); padding: 8px var(--gut) 28px;
    border-bottom: 1px solid var(--line-dark);
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity 0.25s, transform 0.25s;
  }
  .nav.open .nav-links { opacity: 1; transform: none; pointer-events: auto; }
  .nav.open { background: var(--ink); }
  .nav-links a:not(.btn) { padding: 16px 0; width: 100%; border-bottom: 1px solid var(--line-dark); font-size: 17px; }
  .nav-links .btn { margin-top: 20px; }
}

/* Hero */
.hero {
  position: relative; min-height: 100svh;
  background: var(--ink) url("../img/hero-plate.jpg") center 30% / cover no-repeat;
  color: #fff; display: flex; align-items: flex-end;
  padding: 140px 0 72px;
  isolation: isolate;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(13,13,12,0.35) 0%, rgba(13,13,12,0.1) 35%, rgba(13,13,12,0.92) 100%);
}
.hero-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: end; }
.hero .display { margin-top: 22px; }
.hero .lede { color: rgba(255,255,255,0.7); margin: 0 0 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-meta {
  margin-top: 72px; padding-top: 28px;
  border-top: 1px solid var(--line-dark);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.stat b { display: block; font: 500 clamp(26px, 2.6vw, 36px)/1 var(--sans); letter-spacing: -0.02em; }
.stat span { font-size: 13px; color: var(--muted-dark); }
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-meta { grid-template-columns: repeat(2, 1fr); margin-top: 48px; }
}

/* Sections */
section { position: relative; }
.section { padding: clamp(80px, 11vw, 150px) 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: 56px; flex-wrap: wrap; }
.section-head .h2 { margin-top: 18px; max-width: 16ch; }
.section-head .lede { margin: 0; max-width: 42ch; }
.dark { background: var(--ink); color: #fff; }
.dark .lede { color: var(--muted-dark); }
.bone { background: var(--bone); }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.about-copy p { color: var(--muted); font-size: 17px; }
.about-copy .h2 { margin: 18px 0 28px; }
.about-quote { font: 400 clamp(24px, 2.4vw, 32px)/1.25 var(--serif); font-style: italic; color: var(--text); margin: 32px 0 0; padding-left: 22px; border-left: 1px solid var(--gold); }
.about-visual {
  position: relative; aspect-ratio: 4/5; border-radius: 4px; overflow: hidden;
  background: var(--stone);
}
.about-visual img { position: absolute; inset: 8% 6%; width: 88%; height: 84%; object-fit: contain; mix-blend-mode: multiply; }
.about-visual figcaption {
  position: absolute; left: 20px; bottom: 18px; right: 20px;
  display: flex; justify-content: space-between; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
}
@media (max-width: 880px) { .about-grid { grid-template-columns: 1fr; } }

/* Category grid */
.cats { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.cat {
  position: relative; overflow: hidden; border-radius: 4px;
  background: var(--ink-2); border: 1px solid var(--line-dark);
  min-height: 340px; padding: 28px;
  display: flex; flex-direction: column; justify-content: space-between;
  transition: border-color 0.4s var(--ease);
}
.cat:nth-child(1) { grid-column: span 7; min-height: 440px; }
.cat:nth-child(2) { grid-column: span 5; min-height: 440px; }
.cat:nth-child(n+3) { grid-column: span 4; }
.cat:nth-child(6), .cat:nth-child(7) { grid-column: span 6; }
.cat-img {
  position: absolute; right: -4%; bottom: -4%; width: 70%; height: 82%;
  display: grid; place-items: end;
}
.cat-img img {
  width: 100%; height: 100%; object-fit: contain; object-position: right bottom;
  filter: invert(1) grayscale(1) brightness(0.85) contrast(1.1);
  mix-blend-mode: screen; opacity: 0.28;
  transition: transform 0.7s var(--ease), opacity 0.5s var(--ease);
}
.cat:hover { border-color: rgba(184,150,79,0.5); }
.cat:hover .cat-img img { transform: scale(1.04); opacity: 0.45; }
.cat-top { display: flex; justify-content: space-between; color: var(--muted-dark); font-size: 13px; position: relative; }
.cat h3 { position: relative; font: 500 clamp(24px, 2.2vw, 32px)/1.05 var(--sans); letter-spacing: -0.02em; margin: 0; max-width: 11ch; }
.cat p { position: relative; color: var(--muted-dark); font-size: 14px; max-width: 30ch; margin: 10px 0 0; }
.cat .arrow {
  position: relative; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line-dark); display: grid; place-items: center; margin-top: 20px;
  transition: background 0.3s, border-color 0.3s;
}
.cat .arrow svg { width: 16px; height: 16px; }
.cat:hover .arrow { background: var(--gold); border-color: var(--gold); color: var(--ink); }
@media (max-width: 980px) {
  .cat:nth-child(n) { grid-column: span 6; min-height: 320px; }
}
@media (max-width: 620px) {
  .cat:nth-child(n) { grid-column: span 12; min-height: 280px; }
}

/* Flagship */
.flagship { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.flagship-visual { background: var(--stone); border-radius: 4px; aspect-ratio: 1; display: grid; place-items: center; padding: 8%; }
.flagship-visual img { mix-blend-mode: multiply; max-height: 100%; object-fit: contain; }
.flagship .h2 { margin: 18px 0 20px; }
.dims { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); margin: 36px 0; }
.dims div { padding: 18px 0 0; }
.dims div + div { padding-left: 18px; border-left: 1px solid var(--line); }
.dims small { display: block; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.dims b { font: 500 22px/1.4 var(--sans); letter-spacing: -0.01em; }
.dims b i { font-style: normal; font-size: 14px; color: var(--muted); margin-left: 3px; font-weight: 400; }
@media (max-width: 880px) { .flagship { grid-template-columns: 1fr; } }
@media (max-width: 520px) {
  .dims { grid-template-columns: repeat(2, 1fr); }
  .dims div:nth-child(3) { padding-left: 0; border-left: 0; }
}

/* Product rail / cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.card {
  display: flex; flex-direction: column; text-align: left;
  background: var(--paper); border: 1px solid var(--line); border-radius: 4px;
  overflow: hidden; padding: 0; width: 100%;
  transition: border-color 0.3s var(--ease), transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.card:hover { border-color: rgba(13,13,12,0.3); transform: translateY(-3px); box-shadow: 0 18px 40px -24px rgba(13,13,12,0.35); }
.card-img { aspect-ratio: 1; background: var(--bone); display: grid; place-items: center; padding: 12%; }
.card-img img { max-height: 100%; object-fit: contain; mix-blend-mode: multiply; transition: transform 0.6s var(--ease); }
.card:hover .card-img img { transform: scale(1.05); }
.card-body { padding: 18px 20px 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: end; gap: 12px; flex: 1; }
.card h3 { font: 500 17px/1.25 var(--sans); letter-spacing: -0.01em; margin: 0 0 4px; }
.card small { color: var(--muted); font-size: 13px; }
.card .plus { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; transition: background 0.3s, color 0.3s; }
.card .plus svg { width: 14px; height: 14px; }
.card:hover .plus { background: var(--ink); color: #fff; border-color: var(--ink); }

/* Build spec */
.spec-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-dark); }
.spec { padding: 36px 28px 8px 0; }
.spec + .spec { padding-left: 28px; border-left: 1px solid var(--line-dark); }
.spec .num { font: 400 15px/1 var(--serif); font-style: italic; color: var(--gold); }
.spec h3 { font: 500 21px/1.2 var(--sans); margin: 18px 0 10px; letter-spacing: -0.01em; }
.spec p { color: var(--muted-dark); font-size: 14.5px; margin: 0; }
@media (max-width: 980px) {
  .spec-grid { grid-template-columns: 1fr 1fr; }
  .spec:nth-child(3) { padding-left: 0; border-left: 0; }
  .spec:nth-child(n+3) { border-top: 1px solid var(--line-dark); }
}
@media (max-width: 560px) {
  .spec-grid { grid-template-columns: 1fr; }
  .spec + .spec { padding-left: 0; border-left: 0; border-top: 1px solid var(--line-dark); }
}

/* Spaces */
.spaces { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.space { border-top: 1px solid var(--text); padding-top: 22px; }
.space h3 { font: 500 24px/1.2 var(--sans); letter-spacing: -0.02em; margin: 0 0 10px; }
.space p { color: var(--muted); margin: 0; }
.space .idx { font: italic 400 17px/1 var(--serif); color: var(--gold); display: block; margin-bottom: 40px; }
@media (max-width: 820px) { .spaces { grid-template-columns: 1fr; gap: 40px; } }

/* Catalog CTA */
.cta-band {
  position: relative; overflow: hidden;
  background: var(--ink) url("../img/cable-column.jpg") left center / auto 120% no-repeat;
  color: #fff; border-radius: 4px; padding: clamp(48px, 7vw, 96px);
  display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: end;
  isolation: isolate;
}
.cta-band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(13,13,12,0.55), rgba(13,13,12,0.96) 45%); }
.cta-band .h2 { max-width: 14ch; margin-top: 18px; }
.cta-band .lede { color: var(--muted-dark); margin: 18px 0 0; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 820px) { .cta-band { grid-template-columns: 1fr; } }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 7vw, 110px); }
.contact-list { list-style: none; padding: 0; margin: 40px 0 0; }
.contact-list li { border-top: 1px solid var(--line-dark); padding: 20px 0; display: grid; grid-template-columns: 110px 1fr; gap: 16px; }
.contact-list small { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted-dark); padding-top: 4px; }
.contact-list a:hover { color: var(--gold-hi); }
form.quote { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted-dark); }
.field input, .field select, .field textarea {
  font: inherit; color: #fff; background: var(--ink-2);
  border: 1px solid var(--line-dark); border-radius: 4px; padding: 14px 16px;
  transition: border-color 0.2s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #a19d94 50%), linear-gradient(135deg, #a19d94 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); }
.form-note { grid-column: 1 / -1; font-size: 13px; color: var(--muted-dark); margin: 0; }
.form-actions { grid-column: 1 / -1; display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { form.quote { grid-template-columns: 1fr; } .contact-list li { grid-template-columns: 1fr; gap: 4px; } }

/* Footer */
footer { background: var(--ink); color: var(--muted-dark); border-top: 1px solid var(--line-dark); padding: 56px 0 40px; font-size: 14px; }
.foot { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.foot img { height: 44px; width: auto; }
.foot nav { display: flex; gap: 28px; flex-wrap: wrap; }
.foot a:hover { color: #fff; }

/* Equipment page */
.page-head { background: var(--ink); color: #fff; padding: 160px 0 64px; }
.page-head .display { font-size: clamp(44px, 6vw, 84px); margin-top: 22px; }
.page-head .lede { color: var(--muted-dark); margin: 20px 0 0; }
.toolbar {
  position: sticky; top: 76px; z-index: 20;
  background: rgba(250,248,244,0.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.toolbar-inner { display: flex; gap: 16px; align-items: center; padding-top: 14px; padding-bottom: 14px; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; padding: 9px 16px; border-radius: 999px;
  border: 1px solid var(--line); background: transparent; font-size: 13.5px; white-space: nowrap;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.chip:hover { border-color: var(--text); }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip span { color: var(--muted); margin-left: 4px; }
.chip[aria-pressed="true"] span { color: var(--muted-dark); }
.search { position: relative; flex: none; }
.search input {
  font: inherit; font-size: 14px; width: 220px; padding: 10px 14px 10px 38px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--paper);
}
.search input:focus { outline: none; border-color: var(--text); }
.search svg { position: absolute; left: 13px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); color: var(--muted); }
@media (max-width: 720px) {
  .toolbar-inner { flex-direction: column; align-items: stretch; gap: 10px; }
  .search input { width: 100%; }
}
.group { padding: 64px 0 8px; }
.group-head { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: end; margin-bottom: 28px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.group-head h2 { font: 500 clamp(26px, 3vw, 38px)/1.05 var(--sans); letter-spacing: -0.025em; margin: 0; }
.group-head h2 .serif { color: var(--gold); margin-right: 10px; font-size: 0.8em; }
.group-head p { margin: 0; color: var(--muted); justify-self: end; max-width: 46ch; }
@media (max-width: 720px) { .group-head { grid-template-columns: 1fr; } .group-head p { justify-self: start; } }
.empty { padding: 80px 0; text-align: center; color: var(--muted); }

/* Product dialog */
dialog.pd {
  border: 0; padding: 0; margin: auto; width: min(1100px, calc(100vw - 32px)); max-height: calc(100svh - 32px);
  border-radius: 6px; background: var(--paper); color: var(--text); overflow: hidden;
}
dialog.pd::backdrop { background: rgba(13,13,12,0.7); backdrop-filter: blur(4px); }
dialog.pd[open] { animation: pd-in 0.4s var(--ease); }
@keyframes pd-in { from { opacity: 0; transform: translateY(12px); } }
.pd-grid { display: grid; grid-template-columns: 1.05fr 1fr; max-height: calc(100svh - 32px); }
.pd-img { background: var(--bone); display: grid; place-items: center; padding: 8%; min-height: 360px; }
.pd-img img { max-height: 70svh; object-fit: contain; mix-blend-mode: multiply; }
.pd-body { padding: clamp(28px, 4vw, 52px); overflow-y: auto; }
.pd-body h2 { font: 500 clamp(28px, 3.2vw, 42px)/1.05 var(--sans); letter-spacing: -0.03em; margin: 16px 0 12px; }
.pd-tag { font: italic 400 22px/1.3 var(--serif); color: var(--muted); margin: 0 0 20px; }
.pd-body > p { color: var(--muted); }
.pd-muscles { display: flex; flex-wrap: wrap; gap: 6px; margin: 20px 0 0; padding: 0; list-style: none; }
.pd-muscles li { font-size: 12.5px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; }
.pd-specs { margin: 28px 0; border-top: 1px solid var(--line); }
.pd-specs div { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.pd-specs dt { color: var(--muted); }
.pd-specs dd { margin: 0; font-weight: 500; }
.pd-close {
  position: absolute; top: 14px; right: 14px; width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--paper); display: grid; place-items: center; z-index: 2;
}
.pd-close svg { width: 16px; height: 16px; }
.pd-actions { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 820px) {
  .pd-grid { grid-template-columns: 1fr; overflow-y: auto; }
  .pd-img { min-height: 0; aspect-ratio: 4/3; }
  .pd-img img { max-height: 100%; }
  .pd-body { overflow: visible; }
}

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* Scroll story with 3D scene */
.story { position: relative; height: 600vh; background: var(--ink); }
.story-stage {
  position: sticky; top: 0; height: 100svh; overflow: hidden; color: #fff;
  background: radial-gradient(ellipse 70% 60% at 68% 50%, #2b2720 0%, #151412 45%, var(--ink) 75%);
  isolation: isolate;
}
.story-stage::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: url("../img/hero-plate.jpg") center 30% / cover no-repeat; opacity: 0.55;
}
.gl .story-stage::before { display: none; }
#forge { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.story-shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(13,13,12,0.88) 0%, rgba(13,13,12,0.45) 38%, rgba(13,13,12,0) 62%); }
.story-copy { position: absolute; inset: 0; display: flex; align-items: center; padding-top: 60px; pointer-events: none; }
.chapter {
  position: absolute; max-width: 560px;
  opacity: var(--o, 0); transform: translateY(calc((1 - var(--o, 0)) * 28px));
  will-change: opacity, transform;
}
.chapter:first-child { --o: 1; }
.chapter.on { pointer-events: auto; }
.chapter .display { margin: 22px 0 22px; font-size: clamp(42px, 6vw, 88px); }
.chapter .h2 { margin: 18px 0 18px; }
.chapter .lede { color: rgba(255,255,255,0.72); margin: 0 0 28px; }
.chapter .hero-meta { grid-template-columns: repeat(2, 1fr); margin: 8px 0 28px; padding-top: 22px; }
.scroll-cue {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted-dark);
  transition: opacity 0.4s;
}
.scroll-cue i { width: 1px; height: 36px; background: linear-gradient(var(--gold), transparent); animation: cue 1.8s var(--ease) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
.story.scrolled .scroll-cue { opacity: 0; }
.story-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--line-dark); }
.story-progress span { display: block; height: 100%; background: var(--gold); transform: scaleX(0); transform-origin: left; }
@media (max-width: 760px) {
  .story-shade { background: linear-gradient(0deg, rgba(13,13,12,0.95) 0%, rgba(13,13,12,0.75) 38%, rgba(13,13,12,0) 62%); }
  .story-copy { align-items: flex-end; padding-bottom: 72px; }
  .chapter { max-width: calc(100% - 2 * var(--gut)); }
  .chapter .display { font-size: clamp(38px, 11vw, 56px); margin: 16px 0; }
  .chapter .lede { font-size: 16px; margin-bottom: 20px; }
  .scroll-cue { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .story { height: auto; }
  .chapter:not(:first-child) { display: none; }
}
.card, .cat, .flagship-visual { will-change: transform; }

.credit { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line-dark); font-size: 12px; letter-spacing: 0.08em; color: var(--muted-dark); text-align: center; }
.credit a { color: var(--gold); }
.credit a:hover { color: var(--gold-hi); }
.pictured { display: inline-block; margin-top: 22px; font-size: 12px; letter-spacing: 0.08em; color: var(--muted-dark); border-bottom: 1px solid var(--line-dark); padding-bottom: 2px; }
.pictured:hover { color: var(--gold-hi); border-color: var(--gold); }

/* Lead popup */
dialog.lead {
  border: 0; padding: 0; margin: auto; width: min(520px, calc(100vw - 32px)); max-height: calc(100svh - 32px);
  border-radius: 6px; background: var(--ink); color: #fff; overflow-y: auto;
  border: 1px solid var(--line-dark);
}
dialog.lead::backdrop { background: rgba(13,13,12,0.72); backdrop-filter: blur(4px); }
dialog.lead[open] { animation: pd-in 0.4s var(--ease); }
dialog.lead .pd-close { background: var(--ink-2); border-color: var(--line-dark); color: #fff; }
.lead-body, .lead-done { padding: clamp(28px, 5vw, 44px); }
dialog.lead h2 { font: 500 clamp(28px, 4vw, 36px)/1.05 var(--sans); letter-spacing: -0.03em; margin: 16px 0 10px; }
dialog.lead p { color: var(--muted-dark); margin: 0 0 22px; }
dialog.lead a { color: var(--gold-hi); }
.lead-form { display: grid; gap: 14px; }
.lead-form .btn { justify-content: center; margin-top: 6px; }
.lead-form .form-note { margin: 0; font-size: 12px; text-align: center; }
.lead-err { color: #e6a08f; font-size: 13px; margin: 0 !important; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
