/* =============================================================
   Daniel Tishelman — Sound Designer & Composer
   Design system: warm-black void + ember glow (pulled from the
   analog film frames). Instrument Serif for display, Hanken
   Grotesk for body. Cinematic, minimal, modern.
   ============================================================= */

@import url("../fonts/hanken.css");
@import url("../fonts/instrument.css");

/* ---------- Design tokens ---------- */
:root {
  /* Surfaces (warm-tinted blacks) */
  --bg:        #0a0806;
  --bg-2:      #100c09;
  --surface:   #17110c;
  --surface-2: #1f1710;

  /* Ink (warm off-whites, never pure white) */
  --ink:       #f3ede3;
  --ink-muted: #a89e91;
  --ink-faint: #6f665c;

  /* Ember accent — the orange glow of the film frames */
  --ember:     #ea5f26;
  --ember-lit: #f6824a;
  --rust:      #b8391a;
  --amber:     #e9a24c;

  /* Lines & glows */
  --line:      rgba(243, 237, 227, 0.09);
  --line-2:    rgba(243, 237, 227, 0.16);
  --glow:      rgba(234, 95, 38, 0.35);

  /* Type */
  --font: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Instrument Serif", Georgia, "Times New Roman", serif;

  /* Rhythm */
  --container: 1240px;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --section-y: clamp(5rem, 12vw, 10rem);
  --radius: 14px;
  --radius-sm: 10px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-weight: 400;
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.075rem);
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* clip (not hidden) prevents horizontal overflow WITHOUT turning body into a
     scroll container — hidden would force overflow-y:auto and break scrolling. */
  overflow-x: clip;
}
/* Fallback for engines without overflow:clip support */
html { overflow-x: hidden; }

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
::selection { background: var(--ember); color: #150a05; }

/* ---------- Atmosphere: vignette only (no grain — Daniel wants imagery unprocessed) ---------- */
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 9000;
  background: radial-gradient(130% 100% at 50% 0%, transparent 55%, rgba(0,0,0,0.45) 100%);
}

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(3rem, 7vw, 5rem); }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.05; letter-spacing: -0.02em; }
.display {
  font-family: var(--font-display);
  /* Instrument Serif ships one weight — never ask for bold, the browser
     would synthesise a smeared faux-bold instead. */
  font-weight: 400;
  font-synthesis: none;
  font-size: clamp(3rem, 1.6rem + 6.6vw, 7.2rem);
  line-height: 1;
  letter-spacing: -0.015em;
}
.h2 { font-family: var(--font-display); font-size: clamp(2.15rem, 1.3rem + 3.1vw, 3.7rem);
      font-weight: 400; font-synthesis: none; line-height: 1.06; letter-spacing: -0.012em; }
.h3 { font-size: clamp(1.25rem, 1rem + 1vw, 1.6rem); font-weight: 600; letter-spacing: -0.015em; }

.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ember);
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}
.eyebrow::before {
  content: ""; width: 1.9rem; height: 1px; background: var(--ember); opacity: 0.7;
}
.eyebrow--plain::before { display: none; }

.lead {
  font-size: clamp(1.1rem, 1rem + 0.6vw, 1.4rem);
  color: var(--ink-muted);
  font-weight: 400;
  line-height: 1.5;
  max-width: 42ch;
}
.muted { color: var(--ink-muted); }
.faint { color: var(--ink-faint); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.9rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease),
              box-shadow 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
  will-change: transform;
}
.btn:active { transform: translateY(1px); }
.btn--primary {
  background: var(--ember); color: #180b05;
  box-shadow: 0 0 0 0 var(--glow);
}
.btn--primary:hover { background: var(--ember-lit); box-shadow: 0 8px 30px -6px var(--glow); transform: translateY(-2px); }
.btn--ghost {
  border: 1px solid var(--line-2); color: var(--ink); background: rgba(255,255,255,0.015);
}
.btn--ghost:hover { border-color: var(--ember); color: var(--ember-lit); transform: translateY(-2px); }
.btn .arrow { transition: transform 0.25s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

.textlink {
  display: inline-flex; align-items: center; gap: 0.5rem;
  color: var(--ink); font-weight: 600; position: relative;
  transition: color 0.2s var(--ease);
}
.textlink::after {
  content: ""; position: absolute; left: 0; bottom: -3px; height: 1px; width: 100%;
  background: var(--ember); transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease);
}
.textlink:hover { color: var(--ember-lit); }
.textlink:hover::after { transform: scaleX(1); }
.textlink .arrow { transition: transform 0.25s var(--ease); }
.textlink:hover .arrow { transform: translateX(3px); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(10, 8, 6, 0.92);
  border-bottom-color: var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 74px; }
/* Wordmark. Sentence-case serif, not an uppercase tracked-out logotype —
   this is a signature, not a company mark. */
.brand {
  display: inline-flex; align-items: center; gap: 0.62rem;
  font-family: var(--font-display);
  font-weight: 400; font-synthesis: none;
  font-size: 1.1rem; letter-spacing: 0; text-transform: none;
  color: var(--ink); transition: color 0.25s var(--ease);
}
.brand__names { display: flex; align-items: baseline; gap: 0.5rem; }
.brand__line { white-space: nowrap; }
/* The // reads as "and also" — muted so the ember dot stays the only accent. */
.brand__sep { color: var(--ink-faint); margin-right: 0.5rem; letter-spacing: -0.04em; }
.brand:hover { color: var(--ember-lit); }
.brand .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ember);
  box-shadow: 0 0 12px var(--glow); flex: none; }
/* One line won't fit a phone, so the names stack and the // leads the second. */
@media (max-width: 620px) {
  .brand { font-size: 0.95rem; }
  .brand__names { flex-direction: column; align-items: flex-start; gap: 0; line-height: 1.28; }
}
.nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; }
.nav-links a {
  font-size: 0.92rem; font-weight: 500; color: var(--ink-muted);
  letter-spacing: 0.02em; transition: color 0.2s var(--ease); position: relative;
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: var(--ember);
}
.nav-cta { display: flex; align-items: center; gap: 1.25rem; }
.icon-link { color: var(--ink-muted); transition: color 0.2s var(--ease); display: inline-flex; }
.icon-link:hover { color: var(--ember-lit); }

/* Mobile menu button */
.menu-toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; z-index: 1100; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); position: relative; transition: 0.3s var(--ease); }
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; width: 24px; height: 2px; background: var(--ink); transition: 0.3s var(--ease); }
.menu-toggle span::before { top: -7px; } .menu-toggle span::after { top: 7px; }
body.menu-open .menu-toggle span { background: transparent; }
body.menu-open .menu-toggle span::before { top: 0; transform: rotate(45deg); }
body.menu-open .menu-toggle span::after { top: 0; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: stretch; overflow: hidden; }
.hero__media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
/* Slideshow: every slide stacks in the same box and crossfades. A single
   image (no [data-slideshow]) still renders exactly as before. */
.hero__media img {
  width: 100%; height: 100%; object-fit: cover; opacity: 0.9;
}
.hero__media[data-slideshow] img {
  position: absolute; inset: 0;
  /* Keep the fade under about half of HOLD in main.js, or the slides never
     settle and the hero reads as mush. HOLD is 3000ms, so 1.2s. */
  opacity: 0; transition: opacity 1.2s var(--ease);
  will-change: opacity, transform;
}
.hero__media[data-slideshow] img.is-active { opacity: 0.9; }

/* Caption naming the visible slide; the whole thing links to that video */
.hero__now {
  position: absolute; right: var(--gutter); bottom: 2.1rem; z-index: 3;
  display: flex; flex-direction: column; align-items: flex-end; gap: 0.25rem;
  text-align: right; transition: color 0.25s var(--ease);
}
.hero__now-label {
  font-size: 0.66rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink-faint);
}
.hero__now-title {
  font-size: 1rem; font-weight: 600; color: var(--ink);
  position: relative; padding-bottom: 2px;
}
.hero__now-title::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--ember); transform: scaleX(0); transform-origin: right;
  transition: transform 0.35s var(--ease);
}
.hero__now:hover .hero__now-title { color: var(--ember-lit); }
.hero__now:hover .hero__now-title::after { transform: scaleX(1); }
@media (max-width: 620px) {
  .hero__now { bottom: 4.6rem; }
  .hero__now-label { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__media[data-slideshow] img { transition: none; }
}
.hero__scrim {
  position: absolute; inset: 0; z-index: -1;
  /* No colour tint — it muddied the stills. Darkens only where type sits:
     the nav strip at the top and the Enter / caption row at the bottom. */
  background: linear-gradient(to bottom,
    rgba(10,8,6,0.55) 0%,
    rgba(10,8,6,0.12) 30%,
    rgba(10,8,6,0.18) 55%,
    rgba(10,8,6,0.58) 88%,
    var(--bg) 100%);
}
/* Full-height column: the roles line sits directly under the masthead, over the
   top of the artwork; the Enter link stays anchored at the bottom. The 75px is
   the fixed header's height. */
.hero__inner {
  width: 100%; display: flex; flex-direction: column; justify-content: space-between;
  padding-block: calc(75px + clamp(1rem, 2.6vh, 1.9rem)) clamp(3.5rem, 9vh, 6rem);
}
/* With the name gone this is the only type over the artwork, so it carries
   its own shadow rather than relying on a heavier scrim. */
.hero .eyebrow { font-size: 0.84rem; color: var(--ember-lit);
  text-shadow: 0 1px 12px rgba(10,8,6,0.9); }
/* Keep the roles on one line — the eyebrow's leading rule is a ::before on an
   inline-flex box, so a wrap strands it beside the second line. */
@media (max-width: 620px) {
  .hero .eyebrow { font-size: 0.68rem; letter-spacing: 0.17em; white-space: nowrap; }
  .hero .eyebrow::before { width: 1.2rem; }
}
/* Unused since the name moved into the header wordmark (2026-09-07), but kept
   so putting a .display back in the hero still looks right. Instrument Serif is
   high-contrast: its hairlines vanish over the brighter areas of a poster, so
   the shadow lifts them off the image without darkening the artwork. */
.hero .display { max-width: 20ch; margin-top: 1.2rem;
  text-shadow: 0 1px 2px rgba(10,8,6,0.45), 0 4px 28px rgba(10,8,6,0.6); }
.hero__sub { margin-top: 1.6rem; }
.hero__cta { margin-top: 2.4rem; display: flex; flex-wrap: wrap; gap: 1rem; }
.scroll-cue {
  position: absolute; bottom: 1.6rem; left: 50%; transform: translateX(-50%);
  font-size: 0.72rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--ink-faint);
  display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
}
.scroll-cue .line { width: 1px; height: 34px; background: linear-gradient(var(--ember), transparent); animation: cue 2.4s var(--ease) infinite; }
@keyframes cue { 0%,100% { opacity: 0.3; transform: scaleY(0.6); } 50% { opacity: 1; transform: scaleY(1); } }
@media (prefers-reduced-motion: reduce) { .scroll-cue .line { animation: none; } }

/* ---------- Page header (interior pages) ---------- */
.page-head { padding-top: clamp(9rem, 18vh, 13rem); padding-bottom: clamp(2rem, 5vw, 3.5rem); }
.page-head .display { margin-top: 1rem; }
.page-head .lead { margin-top: 1.6rem; }
/* Eyebrow-only variant (Work): no headline to fill the space, so tighten it. */
.page-head--bare { padding-top: clamp(7rem, 13vh, 9rem); padding-bottom: 0; }

/* ---------- Section header ---------- */
.sec-head { display: flex; flex-direction: column; gap: 1rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.sec-head .index { font-size: 0.8rem; letter-spacing: 0.2em; color: var(--ink-faint); font-weight: 600; }

/* ---------- Statement / audience ---------- */
.statement { font-size: clamp(1.5rem, 1.1rem + 2vw, 2.6rem); font-weight: 600; line-height: 1.25; letter-spacing: -0.02em; max-width: 20ch; }
.statement em { font-style: normal; color: var(--ember-lit); }

.audience { display: grid; gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
@media (min-width: 760px) { .audience { grid-template-columns: repeat(3, 1fr); } }
.audience__item { background: var(--bg); padding: clamp(1.6rem, 3vw, 2.4rem) clamp(1.2rem, 2.5vw, 2rem); }
.audience__num { color: var(--ember); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.15em; }
.audience__item h3 { margin-top: 1rem; font-size: 1.25rem; }
.audience__item p { margin-top: 0.6rem; color: var(--ink-muted); font-size: 0.98rem; }

/* ---------- Framed media (echoes the film frames) ---------- */
.frame {
  position: relative; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line-2); background: var(--surface);
  box-shadow: 0 24px 60px -24px rgba(0,0,0,0.8);
}
.frame::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.03), inset 0 0 90px rgba(0,0,0,0.4);
}

/* ---------- Work teaser (home) ---------- */
.work-grid { display: grid; gap: clamp(1.4rem, 3vw, 2.2rem); }
@media (min-width: 800px) { .work-grid { grid-template-columns: 1.5fr 1fr; } }
.work-card { display: block; group: card; }
.work-card .frame { aspect-ratio: 16/10; transition: transform 0.5s var(--ease), border-color 0.4s var(--ease); }
.work-card .frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease), opacity 0.4s var(--ease); }
.work-card:hover .frame { transform: translateY(-4px); border-color: rgba(234,95,38,0.4); box-shadow: 0 30px 70px -28px rgba(0,0,0,0.9), 0 0 60px -30px var(--glow); }
.work-card:hover .frame img { transform: scale(1.04); }
.work-card__meta { display: flex; align-items: baseline; justify-content: space-between; margin-top: 1.1rem; gap: 1rem; }
.work-card__meta h3 { font-size: 1.3rem; }
.work-card__meta .tag { font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ember); font-weight: 600; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; border-top: 1px solid var(--line); }
.cta-band__glow { position: absolute; inset: 0; z-index: 0; background: radial-gradient(70% 130% at 50% 120%, rgba(234,95,38,0.22), transparent 60%); }
.cta-band .container { position: relative; z-index: 1; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 1.8rem; }
.cta-band .display { max-width: 16ch; }

/* ---------- Video / portfolio ---------- */
.reel { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.reel .frame { aspect-ratio: 16/9; }
.reel video, .video-card video { width: 100%; height: 100%; object-fit: cover; background: #000; }
.reel__label { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-top: 1.1rem; flex-wrap: wrap; }
.reel__label h3 { font-size: 1.4rem; }

.video-grid { display: grid; gap: clamp(1.4rem, 3vw, 2.2rem); }
@media (min-width: 720px) { .video-grid { grid-template-columns: repeat(2, 1fr); } }
.video-card .frame { aspect-ratio: 16/9; }
.video-card h4 { margin-top: 1rem; font-size: 1.1rem; font-weight: 600; }
.video-card p { color: var(--ink-muted); font-size: 0.94rem; margin-top: 0.35rem; }
/* placeholder poster */
.poster-ph { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.8rem;
  background: linear-gradient(135deg, var(--surface), var(--bg-2)); color: var(--ink-faint); }
.poster-ph .play { width: 62px; height: 62px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--ember); }
.poster-ph small { letter-spacing: 0.16em; text-transform: uppercase; font-size: 0.7rem; }

/* ---------- Music player ---------- */
.mention {
  border-left: 2px solid var(--ember); padding-left: 1.4rem; margin-bottom: clamp(2.4rem, 5vw, 3.5rem);
  font-size: clamp(1.15rem, 1rem + 0.9vw, 1.5rem); font-weight: 500; line-height: 1.4; max-width: 46ch; color: var(--ink);
}
.alias { color: var(--ember-lit); }
.mention .alias { font-weight: 700; }

.album { display: grid; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
@media (min-width: 880px) { .album { grid-template-columns: minmax(280px, 420px) 1fr; } }
.album__cover { position: relative; }
.album__cover .frame { aspect-ratio: 1; border-radius: var(--radius); }
.album__cover img { width: 100%; height: 100%; object-fit: cover; }
.album__cover .badge {
  position: absolute; bottom: 1rem; left: 1rem; z-index: 2; background: rgba(10,8,6,0.82);
  border: 1px solid var(--line-2); border-radius: 999px; padding: 0.4rem 0.9rem; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ember);
}
.album__title { margin-bottom: 0.3rem; }
.album__artist { color: var(--ink-muted); margin-bottom: 1.6rem; font-size: 1rem; }

.tracklist { list-style: none; border-top: 1px solid var(--line); }
.track {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem;
  padding: 0.95rem 0.4rem; border-bottom: 1px solid var(--line);
  transition: background 0.25s var(--ease), padding 0.25s var(--ease); cursor: pointer;
}
.track:hover { background: rgba(255,255,255,0.02); padding-inline: 0.9rem; }
.track.is-active { background: linear-gradient(90deg, rgba(234,95,38,0.10), transparent); padding-inline: 0.9rem; }
.track__btn {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center;
  color: var(--ink); transition: 0.25s var(--ease); flex-shrink: 0;
}
.track:hover .track__btn, .track.is-active .track__btn { border-color: var(--ember); color: var(--ember); }
.track.is-active .track__btn { background: var(--ember); color: #180b05; box-shadow: 0 0 20px -4px var(--glow); }
.track__num { color: var(--ink-faint); font-variant-numeric: tabular-nums; font-size: 0.9rem; width: 1.6rem; text-align: right; }
.track.is-active .track__num { color: var(--ember); }
.track__name { font-weight: 600; font-size: 1.02rem; }
.track__name small { display: block; color: var(--ink-faint); font-weight: 400; font-size: 0.82rem; margin-top: 0.1rem; }
.track__time { color: var(--ink-faint); font-variant-numeric: tabular-nums; font-size: 0.86rem; }
.track .bars { display: none; gap: 2px; align-items: flex-end; height: 14px; }
.track.is-playing .track__num { display: none; }
.track.is-playing .bars { display: flex; }
.bars span { width: 3px; background: var(--ember); border-radius: 2px; animation: eq 0.9s ease-in-out infinite; }
.bars span:nth-child(1){ height: 40%; animation-delay: -0.2s;} .bars span:nth-child(2){ height: 90%;} .bars span:nth-child(3){ height: 60%; animation-delay: -0.4s;}
@keyframes eq { 0%,100%{ transform: scaleY(0.4);} 50%{ transform: scaleY(1);} }
@media (prefers-reduced-motion: reduce){ .bars span { animation: none; } }

/* Waveform under the active track (drawn from <name>.peaks.json) */
.track__wave { grid-column: 1 / -1; padding: 0.55rem 0.2rem 0.35rem; }
.track__wave canvas { display: block; width: 100%; height: 52px; cursor: pointer; }

/* Sticky now-playing bar */
.nowplaying {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1200; transform: translateY(120%);
  transition: transform 0.4s var(--ease); background: rgba(16,12,9,0.97);
  border-top: 1px solid var(--line-2);
}
.nowplaying.show { transform: translateY(0); }
.nowplaying__in { display: flex; align-items: center; gap: 1rem; padding: 0.7rem var(--gutter); max-width: var(--container); margin-inline: auto; }
.np__btn { width: 46px; height: 46px; border-radius: 50%; background: var(--ember); color: #180b05; display: grid; place-items: center; flex-shrink: 0; box-shadow: 0 0 22px -6px var(--glow); }
.np__thumb { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; flex-shrink: 0; display: none; }
@media (min-width: 560px){ .np__thumb { display: block; } }
.np__meta { min-width: 0; flex-shrink: 0; width: clamp(120px, 22vw, 220px); }
.np__meta strong { display: block; font-size: 0.92rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np__meta span { font-size: 0.76rem; color: var(--ink-faint); }
.np__seek { flex: 1; display: flex; align-items: center; gap: 0.7rem; }
.np__time { font-size: 0.75rem; color: var(--ink-faint); font-variant-numeric: tabular-nums; flex-shrink: 0; }
.np__track { flex: 1; height: 4px; background: var(--line-2); border-radius: 4px; position: relative; cursor: pointer; }
.np__fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0%; background: var(--ember); border-radius: 4px; }
.np__fill::after { content: ""; position: absolute; right: -5px; top: 50%; transform: translateY(-50%); width: 10px; height: 10px; border-radius: 50%; background: var(--ember-lit); box-shadow: 0 0 10px var(--glow); }

/* ---------- Vitae — full portrait block, bio below (same at every width) ---------- */
/* the section carries the container's own margins/gutter, so the photo and the
   bio text below it share one left edge */
.bio-mag {
  position: relative; overflow: hidden;
  max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter);
}
/* the full frame, never cropped: reflection, light strip and face all visible.
   Width is capped in units of viewport HEIGHT (105svh ≈ 70svh x 3:2), so the
   photo always lands at ~70% of the screen height and simply centres itself on
   very wide screens instead of ballooning. Narrow screens are unaffected. */
.bio-mag__bg {
  position: relative; width: 100%; aspect-ratio: 2000 / 1333;
  max-width: 105vh;
  max-width: 105svh;
  margin-inline: 0; /* sits against the left edge on wide screens */
}
.bio-mag__bg img {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  opacity: 0.92; /* original image, no filters */
}
.bio-mag__scrim { display: none; }
/* the section already supplies the gutter — don't add a second one here */
.bio-mag__inner {
  position: relative; padding-block: clamp(2rem, 7vw, 3rem);
  max-width: none; padding-inline: 0;
}
/* uniform editorial text — every paragraph same size/weight */
.bio-prose p {
  color: var(--ink);
  font-size: clamp(1.02rem, 0.95rem + 0.5vw, 1.18rem);
  font-weight: 500;
  line-height: 1.6;
  margin-bottom: 1.05rem;
  max-width: 64ch;
  text-indent: 2em; /* editorial first-line indent */
}
.bio-prose p:last-child { margin-bottom: 0; }
}

.credits { list-style: none; border-top: 1px solid var(--line); margin-top: 1rem; }
.credits li { display: grid; grid-template-columns: 4.5rem 1fr auto; gap: 1rem; align-items: baseline; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.credits .yr { color: var(--ember); font-weight: 600; font-variant-numeric: tabular-nums; font-size: 0.9rem; }
.credits .title { font-weight: 600; }
.credits .title small { display: block; color: var(--ink-faint); font-weight: 400; font-size: 0.85rem; margin-top: 0.15rem; }
.credits .role { color: var(--ink-muted); font-size: 0.88rem; text-align: right; }

.capabilities { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 640px){ .capabilities { grid-template-columns: repeat(2, 1fr); } }
.cap-item { background: var(--bg); padding: 1.4rem 1.6rem; }
.cap-item h4 { color: var(--ember); font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; }
.cap-item p { margin-top: 0.6rem; color: var(--ink-muted); font-size: 0.94rem; }

/* ---------- Contact ---------- */
.contact { display: grid; gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
@media (min-width: 920px){ .contact { grid-template-columns: 1fr 1fr; } }
.contact__aside .display { font-size: clamp(2.2rem, 1.4rem + 3.5vw, 4rem); max-width: 12ch; }
.contact__methods { margin-top: 2.5rem; display: flex; flex-direction: column; gap: 1.4rem; }
.method { display: flex; flex-direction: column; gap: 0.2rem; }
.method .k { font-size: 0.76rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-faint); }
.method a { font-size: 1.15rem; font-weight: 600; width: fit-content; }

.form { display: grid; gap: 1.3rem; }
.field { display: flex; flex-direction: column; gap: 0.5rem; }
.field label { font-size: 0.82rem; letter-spacing: 0.08em; color: var(--ink-muted); font-weight: 500; }
.field input, .field select, .field textarea {
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  color: var(--ink); padding: 0.85rem 1rem; font-family: inherit; font-size: 1rem; transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-faint); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ember); box-shadow: 0 0 0 3px rgba(234,95,38,0.15); }
.field textarea { resize: vertical; min-height: 130px; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23a89e91' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; }
.form .btn--primary { justify-content: center; margin-top: 0.4rem; }
.form-note { font-size: 0.8rem; color: var(--ink-faint); }
.two-col { display: grid; gap: 1.3rem; }
@media (min-width: 520px){ .two-col { grid-template-columns: 1fr 1fr; } }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: clamp(3rem, 6vw, 4.5rem); }
.footer-grid { display: flex; flex-wrap: wrap; gap: 2rem; justify-content: space-between; align-items: flex-start; }
.footer-brand { max-width: 30ch; }
.footer-brand .brand { margin-bottom: 1rem; }
.footer-brand p { color: var(--ink-muted); font-size: 0.95rem; }
.footer-nav { display: flex; gap: clamp(2rem, 6vw, 5rem); }
.footer-col h5 { font-size: 0.74rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 1rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.7rem; }
.footer-col a { color: var(--ink-muted); font-size: 0.95rem; transition: color 0.2s var(--ease); }
.footer-col a:hover { color: var(--ember-lit); }
.footer-base { margin-top: clamp(2.5rem, 5vw, 3.5rem); padding-top: 1.5rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; color: var(--ink-faint); font-size: 0.85rem; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Mobile nav ---------- */
@media (max-width: 820px) {
  .menu-toggle { display: flex; }
  .nav-links {
    position: fixed; inset: 0; z-index: 1050; flex-direction: column; justify-content: center; align-items: center; gap: 2rem;
    background: rgba(10,8,6,0.99);
    opacity: 0; visibility: hidden; transition: opacity 0.35s var(--ease), visibility 0.35s var(--ease);
  }
  .nav-links a { font-size: 1.5rem; color: var(--ink); }
  body.menu-open .nav-links { opacity: 1; visibility: visible; }
  .nav-cta .btn--primary { display: none; }
}

/* Utility */
.center { text-align: center; }
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.stack-lg { display: flex; flex-direction: column; gap: clamp(1.5rem, 3vw, 2.4rem); }

/* ---------- Products / ReaperToAAF ---------- */
.prod-lede p {
  color: var(--ink); font-size: clamp(1rem, 0.95rem + 0.25vw, 1.08rem);
  line-height: 1.65; max-width: 68ch; margin-bottom: 1.05rem;
}
.prod-lede p:last-child { margin-bottom: 0; }

/* the two conversion directions */
.prod-dirs { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; margin-top: clamp(2rem, 4vw, 3rem); }
@media (min-width: 700px) { .prod-dirs { grid-template-columns: 1fr 1fr; } }
.prod-dir { background: var(--bg); padding: 1.5rem 1.6rem; }
.prod-dir__flow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-weight: 700; letter-spacing: 0.04em; color: var(--ember);
  font-size: 0.95rem; text-transform: uppercase;
}
.prod-dir p { margin-top: 0.7rem; color: var(--ink-muted); font-size: 0.95rem; }

/* screenshots */
.shot-grid { display: grid; gap: clamp(1.4rem, 3vw, 2.2rem); }
@media (min-width: 820px) { .shot-grid { grid-template-columns: 1fr 1fr; } }
.shot .frame { aspect-ratio: 16/10; }
.shot .frame img { width: 100%; height: 100%; object-fit: cover; }
.shot figcaption { margin-top: 0.9rem; color: var(--ink-muted); font-size: 0.92rem; }

/* App screenshot — the tool's own window, shown at its native aspect rather
   than the 16/10 crop above: a functional UI needs everything on screen
   (log, options, buttons), where the DAW shots can afford to be cropped.
   Follows the REAPER/Pro Tools pair, smaller and centered, so it reads as a
   footnote to the pair rather than the section's lead image. */
.shot--app { max-width: 460px; margin: clamp(2rem, 5vw, 3rem) auto 0; }
.shot--app .frame { aspect-ratio: auto; }
.shot--app .frame img { width: 100%; height: auto; display: block; }

/* spec lists — hairline rows, no checkmark grid */
.spec-list { list-style: none; border-top: 1px solid var(--line); }
.spec-list li {
  padding: 0.95rem 0 0.95rem 1.6rem; border-bottom: 1px solid var(--line);
  color: var(--ink); font-size: 0.98rem; position: relative; max-width: 72ch;
}
.spec-list li::before {
  content: ""; position: absolute; left: 0; top: 1.45rem;
  width: 6px; height: 6px; border-radius: 50%; background: var(--ember);
}
.spec-list--alt { margin-top: clamp(1.8rem, 3vw, 2.5rem); }
.spec-list--alt li { color: var(--ink-muted); }
.spec-list--alt li::before { background: var(--ink-faint); }

/* honest limits */
.limits p {
  color: var(--ink-muted); max-width: 68ch; margin-bottom: 1.1rem;
  font-size: 0.98rem; line-height: 1.65;
  border-left: 2px solid var(--line-2); padding-left: 1.2rem;
}
.limits p:last-child { margin-bottom: 0; }
.limits strong { color: var(--ink); font-weight: 600; }

/* price + buy
   The price is the section's own <h2>, so it inherits the page's display serif
   at weight 400 — the same treatment as every other heading here. It used to be
   a boxed band: the figure set in the body grotesque at weight 800, a three
   column dt/dd spec grid, and a pill button. That read as a SaaS pricing tier,
   which Daniel rejected. Terms are prose now, and the action is a text link.
   Don't reintroduce a pill or a filled button — see the artist-page rule. */
.buy {
  max-width: 58ch;
  display: flex; flex-direction: column; align-items: flex-start;
  gap: 1.1rem;
}
.buy p { color: var(--ink-muted); }
.buy__note { color: var(--ink-faint); font-size: 0.95rem; }
.buy__cta { margin-top: 0.6rem; }

.req-list li { grid-template-columns: 3.5rem 1fr auto; }

/* deep-linked media on the Work page clears the fixed header */
#demo-reel, #aston-martin, #soleada, #la-lisiere, #phaos { scroll-margin-top: 100px; }
