/* Oliver Craven: a warm Nashville tape session. Cream plaster, walnut doors, faded denim, one indigo from the shibori cloth.
   Aim: live-to-tape Americana, hymnal and gig-poster type, playful and reverent.
   Avoid: glossy pop-country, rhinestones, mason-jar rustic. */

:root {
  --paper: #efe5d3;
  --paper-2: #e6d8c0;
  --ink: #2b1d13;
  --muted: #69553f;
  --line: rgba(43, 29, 19, .14);
  --accent: #2e4a78;             /* indigo, from the shibori cloth on the cover */
  --accent-ink: #f6efe2;
  --wood: #4b2b17;               /* sampled from the doorway behind him in the phone hero */
  --cream: #f3ead9;
  --field: rgba(255, 252, 245, .62);
  --field-line: rgba(43, 29, 19, .22);
  --material: rgba(239, 229, 211, .76);
  --wall: #dec198;               /* sampled from the cream wall in the wide hero */
  --wall-scrim: rgba(222, 193, 152, .62);
  --film: #1b130d;
  --shadow: 0 1px 2px rgba(43, 29, 19, .08), 0 14px 36px -14px rgba(43, 29, 19, .38);
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --radius: 12px;
  --gutter: max(16px, env(safe-area-inset-left));
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #17100b; --paper-2: #21170f; --ink: #f1e6d3; --muted: #bba792;
    --line: rgba(241, 230, 211, .14); --accent: #9db8e2; --accent-ink: #17100b;
    --field: rgba(255, 255, 255, .06); --field-line: rgba(241, 230, 211, .22);
    --material: rgba(23, 16, 11, .76); --wall-scrim: rgba(23, 16, 11, .86);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 18px 44px -14px rgba(0, 0, 0, .75);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #17100b; --paper-2: #21170f; --ink: #f1e6d3; --muted: #bba792;
  --line: rgba(241, 230, 211, .14); --accent: #9db8e2; --accent-ink: #17100b;
  --field: rgba(255, 255, 255, .06); --field-line: rgba(241, 230, 211, .22);
  --material: rgba(23, 16, 11, .76); --wall-scrim: rgba(23, 16, 11, .86);
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 18px 44px -14px rgba(0, 0, 0, .75);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 64px; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 1.0625rem/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
/* Paper grain, very faint: the page should feel printed, not rendered */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 100; pointer-events: none; opacity: .05; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.display {
  font-family: var(--serif); font-weight: 420; line-height: 1.04; letter-spacing: -0.018em;
  font-optical-sizing: auto; font-variation-settings: "SOFT" 60, "WONK" 0;
}
.display em { font-style: italic; font-variation-settings: "SOFT" 100, "WONK" 1; font-weight: 380; }
.wrap { max-width: 1160px; margin: 0 auto; padding-inline: var(--gutter); }
.wrap.narrow { max-width: 760px; }

/* J-card track labels: A1, A2 ... like the inside of a cassette case */
.track {
  display: flex; align-items: baseline; gap: .85rem; margin: 0 0 1.6rem;
  font: 600 .75rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.track b { color: var(--accent); font-weight: 700; letter-spacing: .04em; }
.track span::after { content: ""; display: inline-block; vertical-align: middle; width: 3rem; height: 1px; margin-left: .85rem; background: currentColor; opacity: .5; }

/* ---------- Top bar: translucent, with a tape deck in it ---------- */
.bar {
  position: fixed; inset: 0 0 auto; z-index: 30; height: 56px;
  display: flex; align-items: center; gap: 1rem;
  padding: 0 var(--gutter); padding-top: env(safe-area-inset-top);
  color: var(--cream);
  transition: background-color .25s ease, color .25s ease;
}
.bar::before { /* soft wash so the name stays legible over the photo */
  content: ""; position: absolute; inset: 0 0 -28px; z-index: -1; pointer-events: none;
  background: linear-gradient(to bottom, rgba(40, 22, 11, .72), rgba(40, 22, 11, 0));
  transition: opacity .25s ease;
}
.bar.solid::before { opacity: 0; }
.bar.solid {
  background: var(--material); color: var(--ink);
  -webkit-backdrop-filter: blur(20px) saturate(170%); backdrop-filter: blur(20px) saturate(170%);
}
.wordmark {
  font: 700 1.02rem/1 var(--serif); font-variation-settings: "SOFT" 0, "WONK" 0, "opsz" 144;
  letter-spacing: .02em; text-transform: uppercase; text-decoration: none; white-space: nowrap;
}
.bar nav { display: flex; gap: .15rem; margin-left: auto; }
.bar nav a {
  font: 500 .8125rem/1 var(--sans); text-decoration: none; padding: .55rem .5rem; border-radius: 8px;
  transition: background-color .15s ease, transform .1s ease-out;
}
.bar nav a:hover { background: rgba(127, 100, 70, .16); }
.bar nav a:active { transform: scale(.96); }
.deck { display: none; align-items: center; gap: .4rem; font: 500 .75rem/1 var(--mono); font-variant-numeric: tabular-nums; }
.reel { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; opacity: .8; }
.counter { min-width: 2.6rem; text-align: center; letter-spacing: .04em; }
.tape { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; pointer-events: none; }
.tape i { display: block; height: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); opacity: 0; transition: opacity .25s ease; }
.bar.solid .tape i { opacity: .85; }
@media (max-width: 380px) { .bar nav a[href="#listen"] { display: none; } }
@media (min-width: 720px) { .deck { display: flex; } .bar nav { margin-right: .75rem; } }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--wood); color: var(--cream); padding-top: 56px; overflow: hidden; }
.hero-photo { margin: 0; position: relative; }
.hero-photo img {
  width: 100%; height: min(42vh, 112vw); object-fit: cover; object-position: 50% 8%;
  -webkit-mask-image: linear-gradient(to bottom, #000 60%, transparent 100%); mask-image: linear-gradient(to bottom, #000 60%, transparent 100%);
}
.hero-copy { position: relative; padding: 0 var(--gutter) 2.5rem; margin-top: -4.25rem; max-width: 560px; }
.kicker {
  display: flex; align-items: center; gap: .55rem; margin: 0 0 .7rem;
  font: 600 .75rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase;
}
.rec { width: 8px; height: 8px; border-radius: 50%; background: #d8452f; box-shadow: 0 0 0 3px rgba(216, 69, 47, .22); animation: rec 2.4s ease-in-out infinite; }
@keyframes rec { 50% { opacity: .35; } }
.hero h1 { font-size: clamp(1.85rem, 7.6vw, 4.1rem); margin: 0 0 .65rem; text-wrap: balance; }
.hero h1 em { color: #f0cf9b; }
.lede { margin: 0 0 1rem; font-size: 1rem; line-height: 1.45; max-width: 34rem; }

/* Fields inside the walnut hero read as cream on wood */
.hero .field input { background: rgba(255, 245, 228, .1); border-color: rgba(243, 234, 217, .3); color: var(--cream); }
.hero .field span { color: rgba(243, 234, 217, .82); }
.hero .btn.primary { background: var(--cream); color: var(--wood); }
.hero .fine, .hero .status { color: rgba(243, 234, 217, .8); }
.hero .done { background: rgba(255, 245, 228, .1); border-color: rgba(243, 234, 217, .25); }
.hero .done p { color: rgba(243, 234, 217, .82); }

.nowplaying {
  margin-top: 1.25rem; display: inline-flex; align-items: center; gap: .75rem; padding: .4rem .9rem .4rem .4rem;
  border-radius: 999px; border: 1px solid rgba(243, 234, 217, .28); background: rgba(255, 245, 228, .08); cursor: pointer;
  text-align: left; transition: transform .1s ease-out, background-color .15s ease;
}
.nowplaying:hover { background: rgba(255, 245, 228, .14); }
.nowplaying:active { transform: scale(.97); }
.nowplaying img { width: 40px; height: 40px; border-radius: 50%; }
.nowplaying.playing img { animation: spin 3.2s linear infinite; }
.nowplaying span { display: grid; font: 600 .9375rem/1.2 var(--sans); }
.nowplaying small { font: 500 .75rem/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; opacity: .82; }
.pp { width: 22px; height: 22px; fill: currentColor; margin-left: .25rem; }
.i-pause { display: none; }
.playing .i-play { display: none; }
.playing .i-pause { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (min-width: 900px) {
  /* Desktop: the copy sits on the cream plaster wall to the left of him */
  .hero { background: var(--wall); color: #2b1d13; min-height: min(100vh, 920px); display: flex; align-items: center; padding-top: 0; }
  .hero-photo { position: absolute; inset: 0; }
  .hero-photo img { height: 100%; object-position: 62% 30%; -webkit-mask-image: none; mask-image: none; }
  .hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--wall-scrim) 0%, var(--wall-scrim) 34%, transparent 62%); }
  .hero-copy { margin: 0; padding: 104px 0 64px max(48px, calc((100vw - 1160px) / 2 + 16px)); max-width: calc(min(1160px, 100vw) * .42 + max(48px, calc((100vw - 1160px) / 2 + 16px))); }
  .hero h1 { font-size: clamp(2.8rem, 4.6vw, 4.4rem); }
  .hero h1 em { color: #7a3f1d; }
  .lede { font-size: 1.125rem; }
  .hero .field input { background: rgba(255, 250, 240, .72); border-color: rgba(43, 29, 19, .2); color: #2b1d13; }
  .hero .field span { color: #5d4a37; }
  .hero .btn.primary { background: #2e4a78; color: #f6efe2; }
  .hero .fine, .hero .status { color: #4a3828; }
  .hero .done { background: rgba(255, 250, 240, .72); border-color: rgba(43, 29, 19, .15); }
  .hero .done p { color: #5d4a37; }
  .nowplaying { border-color: rgba(43, 29, 19, .2); background: rgba(255, 250, 240, .55); }
  .nowplaying:hover { background: rgba(255, 250, 240, .8); }
  .bar:not(.solid) { color: #2b1d13; }
  .bar::before { background: linear-gradient(to bottom, rgba(222, 193, 152, .7), rgba(222, 193, 152, 0)); }
}
@media (min-width: 900px) and (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .hero { background: #17100b; color: var(--cream); }
  :root:not([data-theme="light"]) .hero h1 em { color: #f0cf9b; }
  :root:not([data-theme="light"]) .hero .field input { background: rgba(255, 245, 228, .08); border-color: rgba(243, 234, 217, .28); color: var(--cream); }
  :root:not([data-theme="light"]) .hero .field span,
  :root:not([data-theme="light"]) .hero .fine,
  :root:not([data-theme="light"]) .hero .status,
  :root:not([data-theme="light"]) .hero .done p { color: rgba(243, 234, 217, .82); }
  :root:not([data-theme="light"]) .hero .done { background: rgba(255, 245, 228, .08); border-color: rgba(243, 234, 217, .2); }
  :root:not([data-theme="light"]) .hero .btn.primary { background: var(--cream); color: var(--wood); }
  :root:not([data-theme="light"]) .nowplaying { border-color: rgba(243, 234, 217, .28); background: rgba(255, 245, 228, .08); }
  :root:not([data-theme="light"]) .bar:not(.solid) { color: var(--cream); }
  :root:not([data-theme="light"]) .bar::before { background: linear-gradient(to bottom, rgba(23, 16, 11, .75), rgba(23, 16, 11, 0)); }
}

/* ---------- Forms ---------- */
.capture { margin: 0; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.fields .wide { grid-column: 1 / -1; }
.fields.three .field:last-child { grid-column: 1 / -1; }
@media (min-width: 620px) { .fields.three { grid-template-columns: 1.1fr 1.3fr .8fr; } .fields.three .field:last-child { grid-column: auto; } }
.field { position: relative; display: block; }
.field span {
  position: absolute; left: .85rem; top: .5rem; pointer-events: none;
  font: 600 .75rem/1 var(--sans); letter-spacing: .02em; color: var(--muted);
}
.field span i { font-style: normal; font-weight: 400; }
.field input {
  width: 100%; height: 52px; padding: 1.15rem .85rem .35rem; border-radius: 10px;
  border: 1px solid var(--field-line); background: var(--field); color: var(--ink);
  font: 500 1rem/1 var(--sans); outline: none; transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.field.invalid input { border-color: #c4452f; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: 0 1.25rem; border-radius: 10px; border: 1px solid var(--field-line);
  background: transparent; color: var(--ink); text-decoration: none; cursor: pointer;
  font: 600 1rem/1 var(--sans); transition: transform .1s ease-out, background-color .15s ease, opacity .15s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.btn.quiet { border-color: transparent; text-decoration: underline; text-underline-offset: 3px; padding-inline: .5rem; }
.btn.small { min-height: 40px; padding: 0 1rem; font-size: .9375rem; }
.capture .btn.primary { width: 100%; margin-top: .6rem; }
.btn[aria-busy="true"] { opacity: .6; pointer-events: none; }
.fine { margin: .55rem 0 0; font-size: .75rem; line-height: 1.4; color: var(--muted); }
.fine a { text-underline-offset: 2px; }
.status { margin: .35rem 0 0; min-height: 1.1em; font-size: .875rem; color: #b33b26; }
.status:empty { min-height: 0; margin: 0; }
.done { padding: 1.1rem 1.2rem; border-radius: var(--radius); border: 1px solid var(--line); background: var(--field); }
.done strong { display: block; font: 450 1.5rem/1.15 var(--serif); }
.done p { margin: .3rem 0 0; color: var(--muted); }

/* ---------- Scroll reveals: letterpress ink and film developing ---------- */
.js .ink {
  opacity: 0; transform: translateY(.22em); filter: blur(2.5px);
  text-shadow: 3px 0 0 rgba(216, 69, 47, .35), -3px 0 0 rgba(46, 74, 120, .35); /* plates slightly out of register */
  transition: opacity .7s ease, transform .9s cubic-bezier(.2, .8, .2, 1), filter .8s ease, text-shadow 1.1s cubic-bezier(.2, .8, .2, 1);
  transition-delay: var(--d, 0s);
}
.js .ink.in { opacity: 1; transform: none; filter: none; text-shadow: 0 0 0 transparent, 0 0 0 transparent; }
.js .develop img {
  filter: sepia(.85) saturate(.35) contrast(.8) brightness(1.18) blur(1.5px);
  transform: scale(1.025);
  transition: filter 2.2s cubic-bezier(.3, .6, .2, 1), transform 2.4s cubic-bezier(.2, .8, .2, 1);
}
.js .develop.in img { filter: none; transform: none; }

/* ---------- A1: listen ---------- */
.listen, .story, .interlude, .shows, .archive, .contact { position: relative; padding: 88px 0; }
.listen { padding-top: 72px; }
.feature { display: grid; gap: 2rem; align-items: center; }
.sleeve { margin: 0; border-radius: 6px; overflow: hidden; box-shadow: var(--shadow); max-width: 520px; }
.feature-copy h2 { font-size: clamp(2.6rem, 9vw, 4.6rem); margin: 0 0 .35rem; }
.meta { margin: 0 0 1rem; font: 500 .8125rem/1.3 var(--mono); letter-spacing: .06em; color: var(--muted); }
.feature-copy > p:not(.meta) { max-width: 32rem; }
@media (min-width: 860px) { .feature { grid-template-columns: 1fr 1fr; gap: 4rem; } }

.player {
  margin: 1.4rem 0; display: grid; grid-template-columns: auto 1fr; gap: .4rem 1rem; align-items: center;
  padding: 1rem; border-radius: var(--radius); background: var(--paper-2); border: 1px solid var(--line); max-width: 30rem;
}
.play {
  width: 56px; height: 56px; border-radius: 50%; border: 0; background: var(--accent); color: var(--accent-ink);
  display: grid; place-items: center; cursor: pointer; transition: transform .1s ease-out;
}
.play:active { transform: scale(.94); }
.play svg { width: 24px; height: 24px; fill: currentColor; }
.machine { display: flex; align-items: center; gap: .5rem; min-width: 0; }
.big-reel { width: 52px; height: 52px; flex: none; fill: none; stroke: var(--ink); stroke-width: 2.5; stroke-linecap: round; }
.big-reel .pack { fill: color-mix(in srgb, var(--wood) 70%, transparent); stroke: none; }
.ribbon { flex: 1; height: 2px; background: var(--line); position: relative; border-radius: 2px; overflow: hidden; }
.ribbon i { position: absolute; inset: 0; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); }
.player-note { grid-column: 1 / -1; margin: .2rem 0 0; font: 500 .75rem/1.3 var(--mono); letter-spacing: .04em; color: var(--muted); }
.listen-links { display: flex; flex-wrap: wrap; gap: .5rem; }

/* ---------- A2: story with a growing crowd ---------- */
.story { background: var(--paper-2); }
.story-title { font-size: clamp(1.9rem, 5.4vw, 3.6rem); max-width: 22ch; margin: 0 0 3rem; text-wrap: balance; }
.story-grid { display: grid; gap: 2rem; }
.crowd {
  position: sticky; top: 56px; z-index: 5; margin: 0 calc(var(--gutter) * -1); padding: .7rem var(--gutter);
  display: flex; align-items: baseline; gap: .5rem; flex-wrap: wrap;
  background: color-mix(in srgb, var(--paper-2) 88%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line);
}
.crowd-label { margin: 0; font: 500 .8125rem/1.2 var(--mono); letter-spacing: .04em; color: var(--muted); }
.crowd-label:last-child { display: none; }
.crowd-num {
  margin: 0; font: 500 1.6rem/1 var(--serif); font-variant-numeric: tabular-nums lining-nums;
  font-variation-settings: "SOFT" 30, "opsz" 144; letter-spacing: -0.02em; color: var(--accent); min-width: 5ch;
}
.stops { list-style: none; margin: 0; padding: 0; display: grid; gap: 4.5rem; }
.stop figure { margin: 0 0 1.2rem; border-radius: 6px; overflow: hidden; max-width: 460px; box-shadow: var(--shadow); }
.when { margin: 0 0 .4rem; font: 600 .75rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.stop h3 { font-size: clamp(1.7rem, 5vw, 2.4rem); margin: 0 0 .6rem; }
.stop p:last-child { margin: 0; max-width: 34rem; }
@media (min-width: 900px) {
  .story-grid { grid-template-columns: 5fr 7fr; gap: 4rem; align-items: start; }
  .crowd {
    top: 120px; margin: 0; padding: 0; display: block; background: none; border: 0;
    -webkit-backdrop-filter: none; backdrop-filter: none;
  }
  .crowd-label { font-size: .875rem; }
  .crowd-label:last-child { display: block; max-width: 16rem; margin-top: .8rem; }
  .crowd-num { font-size: clamp(4rem, 9vw, 8.5rem); margin: .3rem 0 0; font-weight: 400; }
  .stops { gap: 7rem; padding-top: 1rem; }
  .stop { display: grid; grid-template-columns: 200px 1fr; gap: 0 2rem; }
  .stop figure { grid-row: 1 / span 3; margin: 0; }
}

/* ---------- A3: interlude ---------- */
.interlude { text-align: center; }
.interlude .track { justify-content: center; }
.interlude h2 { font-size: clamp(2rem, 6vw, 3.6rem); margin: 0 0 .8rem; text-wrap: balance; }
.interlude h2 em { color: var(--accent); }
.interlude .wrap > p:not(.track) { color: var(--muted); margin: 0 auto 1.6rem; }
.interlude .capture { max-width: 520px; margin: 0 auto; text-align: left; }

/* ---------- A4: contact sheet on a film strip ---------- */
.sheetroll { padding: 72px 0 40px; background: var(--film); color: #e9dcc6; }
.sheetroll .track { color: #b9a68f; }
.sheetroll .track b { color: #f0a450; }
.roll {
  list-style: none; margin: 0; padding: 26px var(--gutter); display: flex; gap: 10px; overflow-x: auto;
  scroll-snap-type: x mandatory; scrollbar-width: none;
  /* sprocket holes along the top and bottom edges */
  background:
    repeating-linear-gradient(90deg, transparent 0 10px, rgba(239, 229, 211, .8) 10px 22px, transparent 22px 34px) 0 7px / 100% 10px no-repeat,
    repeating-linear-gradient(90deg, transparent 0 10px, rgba(239, 229, 211, .8) 10px 22px, transparent 22px 34px) 0 calc(100% - 7px) / 100% 10px no-repeat;
}
.roll::-webkit-scrollbar { display: none; }
.frame-cell { position: relative; flex: 0 0 62vw; max-width: 300px; margin: 0; scroll-snap-align: center; border-radius: 3px; overflow: hidden; background: #2a1f17; }
.frame-cell.wide { flex-basis: 86vw; max-width: 460px; }
.frame-cell img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 2 / 3; }
.frame-cell.wide img { aspect-ratio: 3 / 2; }
.frame-cell span { position: absolute; left: 8px; bottom: 6px; font: 700 .75rem/1 var(--mono); color: #f0a450; letter-spacing: .08em; text-shadow: 0 1px 2px rgba(0, 0, 0, .6); }
.credit-line { margin-top: 1rem; margin-bottom: 0; font: 500 .75rem/1.4 var(--mono); color: #b9a68f; letter-spacing: .04em; }
@media (min-width: 900px) {
  /* A grid on wide screens: sideways strips are awkward with a mouse */
  .roll {
    display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-flow: dense; grid-auto-rows: min(7vw, 82px); gap: 12px;
    overflow: visible; max-width: 1160px; margin: 0 auto; padding: 30px 16px;
  }
  .frame-cell, .frame-cell.wide { max-width: none; flex: none; }
  .frame-cell { grid-row: span 3; }
  .frame-cell.wide { grid-column: span 2; grid-row: span 3; }
  .frame-cell img, .frame-cell.wide img { aspect-ratio: auto; position: absolute; inset: 0; }
}

/* ---------- A5: shows ---------- */
.shows h2 { font-size: clamp(2.4rem, 8vw, 4.4rem); margin: 0 0 1.6rem; }
.shows h2 em { color: var(--accent); }
.dates { list-style: none; margin: 0 0 3rem; padding: 0; border-top: 1px solid var(--line); }
.dates li { display: grid; grid-template-columns: auto 1fr auto; gap: 1rem; align-items: center; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.dates time { display: grid; font-family: var(--mono); min-width: 5.5rem; }
.dates time b { font: 600 1.25rem/1.1 var(--serif); }
.dates time span, .dates div span { font-size: .8125rem; color: var(--muted); }
.dates div { display: grid; }
.dates strong { font-weight: 600; }
.near { padding: 1.6rem; border-radius: var(--radius); background: var(--paper-2); border: 1px solid var(--line); }
.near h3 { font-size: 1.75rem; margin: 0 0 .4rem; }
.near > p { margin: 0 0 1rem; color: var(--muted); }
@media (min-width: 620px) { .near .capture .btn.primary { width: auto; } }

/* ---------- A6: archive ---------- */
.archive { padding-top: 24px; }
.clips { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.4rem; }
@media (min-width: 720px) { .clips { grid-template-columns: repeat(3, 1fr); } }
.clip { display: block; width: 100%; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; }
.clip img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 6px; filter: sepia(.25) saturate(.85); transition: filter .3s ease, transform .1s ease-out; }
.clip:hover img { filter: none; }
.clip:active img { transform: scale(.98); }
.clip span { display: grid; margin-top: .6rem; font-size: .875rem; color: var(--muted); }
.clip b { font: 500 1.2rem/1.2 var(--serif); color: var(--ink); }

/* ---------- A7: contact ---------- */
.contact { padding-top: 24px; }
.credits { margin: 0; border-top: 1px solid var(--line); }
.credits div { display: grid; grid-template-columns: 11rem 1fr; gap: 1rem; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.credits dt { font: 600 .75rem/1.6 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.credits dd { margin: 0; font: 450 1.15rem/1.4 var(--serif); }
@media (max-width: 460px) { .credits div { grid-template-columns: 1fr; gap: .2rem; } }

/* ---------- Footer ---------- */
.foot { padding: 56px 0 calc(28px + env(safe-area-inset-bottom)); text-align: center; border-top: 1px solid var(--line); }
.runout { font-size: clamp(1.6rem, 5vw, 2.4rem); margin: 0 0 1.4rem; font-style: italic; font-variation-settings: "SOFT" 100, "WONK" 1; color: var(--muted); }
.social { display: flex; flex-wrap: wrap; justify-content: center; gap: .25rem 1.1rem; margin-bottom: 1.2rem; }
.social a { font-size: .9375rem; text-decoration: none; padding: .3rem 0; }
.social a:hover { text-decoration: underline; text-underline-offset: 3px; }
.legal { margin: 0 0 .5rem; font-size: .8125rem; color: var(--muted); }
.legal a, .credit a { text-underline-offset: 2px; }
.credit { margin: 0; font-size: .75rem; color: var(--muted); }

/* ---------- Dock + sheet ---------- */
.dock {
  position: fixed; z-index: 40; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom));
  width: max-content; max-width: calc(100vw - 32px);
  display: flex; align-items: center; gap: .6rem; padding: .35rem 1.1rem .35rem .35rem; border-radius: 999px;
  border: 1px solid var(--line); background: var(--material); color: var(--ink); box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(20px) saturate(170%); backdrop-filter: blur(20px) saturate(170%);
  font: 600 .9375rem/1.1 var(--sans); cursor: pointer; transform: translate(-50%, 140%); opacity: 0; pointer-events: none;
  -webkit-tap-highlight-color: transparent;
}
.dock.show { pointer-events: auto; }
.dock img { width: 36px; height: 36px; border-radius: 50%; flex: none; }
.dock span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dock:active { scale: .97; }
@media (min-width: 900px) { .dock { left: auto; right: 24px; bottom: 24px; transform: translate(0, 140%); } }

.scrim { position: fixed; inset: 0; z-index: 50; background: rgba(20, 12, 6, .42); opacity: 0; }
.sheet {
  position: fixed; z-index: 51; left: 0; right: 0; bottom: 0; max-height: 92vh; overflow-y: auto; overscroll-behavior: contain;
  padding: 10px var(--gutter) calc(24px + env(safe-area-inset-bottom));
  background: var(--paper); color: var(--ink); border-radius: 20px 20px 0 0; box-shadow: 0 -10px 40px rgba(20, 12, 6, .3);
  touch-action: pan-y;
}
.grabber { width: 40px; height: 5px; border-radius: 3px; background: var(--line); margin: 0 auto 18px; }
.sheet .close, .viewer .close {
  position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 50%; border: 0;
  background: var(--paper-2); display: grid; place-items: center; cursor: pointer;
}
.sheet .close svg, .viewer .close svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; }
.sheet h2 { font-size: clamp(1.7rem, 6vw, 2.4rem); margin: 0 2.5rem .6rem 0; text-wrap: balance; }
.sheet .lede { color: var(--muted); }
@media (min-width: 900px) {
  .sheet { left: 50%; right: auto; bottom: auto; top: 50%; width: 520px; margin: -270px 0 0 -260px; border-radius: 20px; max-height: none; }
}

.viewer { position: fixed; inset: 0; z-index: 60; background: rgba(12, 8, 4, .9); display: grid; place-items: center; padding: 16px; opacity: 0; }
.viewer .frame { width: min(1000px, 100%); aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #000; }
.viewer iframe { width: 100%; height: 100%; border: 0; }
.viewer .close { background: rgba(255, 255, 255, .14); color: #fff; }

/* ---------- Reduced motion: no slides, no blur, no spinning ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .ink { transform: none; filter: none; text-shadow: none; transition: opacity .3s ease; }
  .js .develop img { transform: none; filter: sepia(.4) saturate(.7); transition: filter .4s ease; }
  .rec, .nowplaying.playing img { animation: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .bar.solid, .dock, .crowd { background: var(--paper); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
