/* tomandandy — brutalist / editorial. Design tokens per handoff. */
:root {
  --bg: #16181c;
  --panel: #1d2025;
  --panel2: #212429;
  --ink: #e7e9ec;
  --sub: #80858d;
  --faint: #565b62;
  --accent: #d9534a;
  --accentDim: rgba(217, 83, 74, 0.16);
  --line: rgba(255, 255, 255, 0.10);
  --lineSoft: rgba(255, 255, 255, 0.055);
  --mono: "Source Code Pro", ui-monospace, monospace;
  --disp: "Archivo", system-ui, sans-serif;
  --gutter: clamp(20px, 4vw, 52px);
  --nav-h: 56px;
  --player-h: 156px;   /* clearance for the floating Layout C bar (132px + 12px margins) */
}

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

html { scroll-behavior: smooth; scrollbar-gutter: stable; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--disp);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img { display: block; }

::selection { background: var(--accent); color: var(--bg); }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #2c3036; }
::-webkit-scrollbar-thumb:hover { background: #3a3f47; }

.dot { color: var(--accent); }
.accent { color: var(--accent); }

.kicker {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--gutter);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s;
}
.nav.solid {
  background: rgba(18, 20, 23, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  padding: 0;
}
.brand-logo {
  height: 22px;
  width: auto;
  display: block;
  transition: opacity .2s;
}
.brand:hover .brand-logo { opacity: 0.8; }
.nav-right { display: flex; align-items: center; gap: 26px; }
.nav-link {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--sub);
  transition: color .2s;
}
.nav-link:hover { color: var(--ink); }
.nav-link.is-current { color: var(--accent); }
.nav-contact {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 8px 14px;
  transition: border-color .2s, background .2s;
}
.nav-contact:hover { border-color: var(--accent); }

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 var(--gutter) var(--player-h);
}
.hero-mark {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Optically centers the wordmark in the header→tagline band; the smaller
     top padding offsets the descender so the ink (not the box) reads centered. */
  padding-top: 48px;
}
.wordmark {
  font-family: var(--disp);
  font-weight: 900;
  /* Snug to the gutters but guarded so it never overflows; the calc() term
     caps the size to the available content width on narrow viewports. */
  font-size: clamp(52px, min(14.7vw, calc((100vw - 2 * var(--gutter)) / 6.3)), 300px);
  line-height: 0.86;
  letter-spacing: -0.05em;
  color: var(--ink);
  white-space: nowrap;
  text-align: center;
  /* Cancel the trailing letter-spacing so the ink optically centers. */
  margin-right: -0.05em;
}
.hero-meta {
  border-top: 1px solid var(--line);
  padding: 22px 0 26px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}
/* Hero praise slideshow (crossfading quotations, in the old tagline slot) */
.hero-quotes {
  position: relative;
  flex: 1 1 380px;
  max-width: 560px;
  font-size: clamp(15px, 1.8vw, 22px);
  /* Fixed height (fits the longest quote: 3 lines + attribution) so the
     container never resizes as quotes crossfade. */
  height: calc(3.6em + 28px);
  align-self: center;
}
.hero-quotes .fq-layer {
  position: absolute;
  left: 0;
  right: 0;
  /* Vertically centered within the fixed box, so each quote (1–3 lines)
     is centered regardless of its own height — adapts per quote, no JS. */
  top: 50%;
  /* +13px shifts the box down by ~half the attribution height so the quote
     TEXT reads centered in the band, with the credit hanging below it. */
  transform: translateY(calc(-50% + 13px));
  display: block;
  opacity: 0;
  transition: opacity 1.1s ease;
  will-change: opacity;
}
.hero-quotes .fq-layer.is-active { opacity: 1; }
.hero-stats { display: flex; align-items: baseline; gap: 40px; align-self: center; transform: translateY(11px); /* center the numbers, not the labels */ }
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat-num { font-weight: 800; font-size: 30px; color: var(--ink); line-height: 1; }
.stat-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}
.marquee {
  width: 100vw;
  margin-left: calc(var(--gutter) * -1);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
  overflow: hidden;
}
.marquee-track {
  display: inline-flex;
  white-space: nowrap;
  animation: marquee 60s linear infinite;
}
.marquee-item {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--sub);
  padding: 0 22px;
}
.marquee-item .sep { color: var(--accent); margin-left: 22px; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Works ---------- */
.works { padding: clamp(70px, 9vw, 130px) var(--gutter) 90px; }
.works-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
}
.works-head .kicker { margin-bottom: 14px; }
.works-title {
  font-weight: 800;
  font-size: clamp(40px, 6vw, 76px);
  letter-spacing: -0.03em;
  line-height: 0.9;
}
.works-range { font-family: var(--mono); font-size: 11px; color: var(--faint); white-space: nowrap; }

/* === SOUNDTRACK TILE REDESIGN (2026-06-09) =================================
   Large square soundtrack tiles; the multi-track interface lives in a panel
   revealed on hover / focus / tap. No nested index list anymore. Revert by
   restoring style.css from .revert-soundtrack-tiles-20260609/.
   ========================================================================== */
.poster-matrix {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 40px;
}
.poster-card {
  position: relative;
  aspect-ratio: 1 / 1;
  padding: 0;
  display: block;
  background: var(--panel);
  overflow: hidden;
  /* Real border (not outline) so the hover/playing accent frames the tile
     ABOVE the inset panel, matching the Scenes tiles. box-sizing: border-box
     keeps the outer size fixed. */
  border: 2px solid transparent;
  transition: border-color .18s;
}
.poster-img { width: 100%; height: 100%; object-fit: cover; }
.poster-card:hover { border-color: var(--accent); }
.poster-card.is-playing { border-color: var(--accent); }

/* Hover-revealed multi-track panel */
.poster-panel {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  background: #08090b;   /* fully opaque, much darker than --bg for contrast */
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}
.poster-card:hover .poster-panel,
.poster-card:focus-within .poster-panel,
.poster-card.is-open .poster-panel,
.poster-card.is-playing .poster-panel {
  opacity: 1;
  pointer-events: auto;
}
.panel-head {
  flex: 0 0 auto;
  padding: 12px 56px 10px 14px;   /* right room for the round play button */
  border-bottom: 1px solid var(--line);
}
.panel-play {
  position: absolute;
  top: 10px; right: 10px;
  z-index: 4;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--bg);
  display: grid;
  place-items: center;
  font-size: 11px;
  line-height: 1;
  padding-left: 1px;              /* optically center the ▶ glyph */
  transition: background .15s, color .15s, transform .12s;
}
.panel-play:hover { transform: scale(1.08); }
.panel-play.playing { background: transparent; color: var(--accent); padding-left: 0; }
.panel-film {
  display: block;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: -0.01em;
  line-height: 1.12;
}
.panel-meta {
  display: block;
  margin-top: 5px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

/* Track tiles (replace the old playback rows) */
.track-grid {
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  padding: 10px;
  overflow-y: auto;
  align-content: start;
}
.track-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 9px 10px;
  min-height: 60px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.track-tile:hover { background: rgba(255, 255, 255, 0.10); }
.track-tile:focus-visible { outline: none; background: rgba(255, 255, 255, 0.10); border-color: var(--line); }
.track-tile.current { background: var(--accentDim); border-color: var(--accent); }
.track-disc {
  position: absolute;
  top: 8px; right: 9px;
  font-size: 9px;
  line-height: 1;
  color: var(--faint);
}
.track-tile:hover .track-disc { color: var(--ink); }
.track-tile.current .track-disc { color: var(--accent); }
.track-name {
  font-weight: 600;
  font-size: 12px;
  line-height: 1.18;
  padding-right: 14px;            /* clear the corner play glyph */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.track-tile .waveform { display: none; }   /* never shown on tiles — keeps height fixed */
.track-dur { font-family: var(--mono); font-size: 9px; color: var(--faint); margin-top: auto; }

/* Waveform */
.waveform { display: flex; align-items: center; gap: 2px; height: 28px; }
.waveform .bar { flex: 1; background: rgba(255, 255, 255, 0.14); transition: transform .1s; min-width: 1px; }
.waveform .bar.on { background: var(--accent); }
.waveform.seekable { cursor: pointer; }

/* ---------- Testimonials ---------- */
.testimonials { padding: clamp(70px, 9vw, 120px) var(--gutter); border-top: 1px solid var(--line); min-height: 500px; }
.testimonials .kicker { margin-bottom: 40px; }
.t-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(220px, 0.9fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.t-quote { display: grid; }
.t-q {
  grid-area: 1 / 1;            /* all quotes share one cell -> box = tallest quote */
  font-weight: 700;
  font-size: clamp(28px, 4.2vw, 58px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  text-wrap: balance;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
.t-q.is-active { opacity: 1; pointer-events: auto; }
.t-q::before { content: "\201C"; color: var(--accent); }
.t-q::after { content: "\201D"; color: var(--accent); }
.t-names { display: flex; flex-direction: column; }
.t-name {
  display: flex;
  gap: 12px;
  align-items: baseline;
  text-align: left;
  border-top: 1px solid var(--line);
  padding: 13px 0;
  font-weight: 500;
  color: var(--sub);
  transition: color .15s;
}
.t-name-num { font-family: var(--mono); font-size: 10px; color: var(--faint); }
.t-name:hover, .t-name.is-sel { color: var(--accent); }
.t-name.is-sel { font-weight: 700; }

/* ---------- About ---------- */
.about {
  padding: clamp(70px, 9vw, 120px) var(--gutter);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}
.about-left .kicker { margin-bottom: 18px; }
.about-head {
  font-weight: 800;
  font-size: clamp(34px, 4.6vw, 62px);
  letter-spacing: -0.03em;
  line-height: 0.95;
}
.about-p {
  font-weight: 500;
  font-size: clamp(16px, 1.6vw, 20px);
  line-height: 1.5;
  color: var(--sub);
  margin-bottom: 20px;
}
.cap-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  margin-top: 12px;
}
.cap {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 16px 14px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink);
  display: flex;
  gap: 10px;
  align-items: baseline;
}
.cap-num { color: var(--accent); }

/* ---------- Contact ---------- */
.contact {
  padding: clamp(70px, 9vw, 120px) var(--gutter);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: end;
}
/* Left column fills the row height; the oblique slideshow centers in the
   space above the representation block, which stays pinned to the bottom. */
.contact-left {
  align-self: stretch;
  display: flex;
  flex-direction: column;
}
.oblique-wrap {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.contact-head {
  font-weight: 800;
  font-size: clamp(44px, 8vw, 120px);
  letter-spacing: -0.04em;
  line-height: 0.86;
}
/* Oblique strategy crossfade variant: full phrases, so a smaller display size */
.contact-head.oblique {
  position: relative;
  font-size: clamp(28px, 4.4vw, 60px);
  line-height: 1.0;
  letter-spacing: -0.02em;
  transition: height .9s cubic-bezier(.4, 0, .2, 1);
}
.contact-head.oblique .oblique-layer {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  opacity: 0;
  transition: opacity .9s ease;
  will-change: opacity;
}
.contact-head.oblique .oblique-layer.is-active { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .contact-head.oblique,
  .contact-head.oblique .oblique-layer { transition: none; }
}
.contact-form { display: flex; flex-direction: column; gap: 24px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}
.field-input {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--disp);
  font-weight: 500;
  font-size: 18px;
  color: var(--ink);
  padding: 6px 0;
  transition: border-color .2s;
}
textarea.field-input { resize: none; }
.field-input:focus { outline: none; border-bottom-color: var(--accent); }
.contact-submit {
  align-self: flex-start;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  padding: 12px 18px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--faint);
  cursor: not-allowed;
  transition: background .2s, color .2s, border-color .2s;
}
.contact-submit.valid {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
  cursor: pointer;
}
.sent-head { font-weight: 800; font-size: 30px; }
.sent-sub { font-family: var(--mono); font-size: 11px; color: var(--sub); margin-top: 8px; }

/* ---------- Footer ---------- */
.footer {
  padding: 40px var(--gutter) 120px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
}
.footer-copy { font-family: var(--mono); font-size: 10px; color: var(--faint); }
.footer-link { font-family: var(--mono); font-size: 10px; color: var(--sub); }
.footer-link:hover { color: var(--ink); }

/* Quotation slideshow text (shared by .hero-quotes) */
.fq-text {
  display: block;
  font-family: var(--disp);
  font-weight: 600;
  font-size: 1em; /* inherits the clamp on .hero-quotes so the fixed height tracks it */
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.fq-text::before { content: "\201C"; }
.fq-text::after { content: "\201D"; }
.fq-by {
  display: block;
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
@media (prefers-reduced-motion: reduce) {
  .hero-quotes,
  .hero-quotes .fq-layer { transition: none; }
}

/* ---------- Player bar — Layout C (floating) ---------- */
.player-spacer { height: 156px; }
.player {
  position: fixed; left: 12px; right: 12px; bottom: 12px; height: 132px; z-index: 60;
  border-radius: 20px; border: 1px solid #2c2c31;
  background: linear-gradient(180deg, #212125 0%, #161618 100%);
  box-shadow: 0 1px 0 rgba(255,255,255,.05) inset, 0 16px 44px -12px rgba(0,0,0,.7);
  display: grid; grid-template-columns: 180px minmax(280px, 1.7fr) auto;
  align-items: center; padding: 0 22px; gap: 24px;
  animation: rise .3s ease;
}
@keyframes rise { from { transform: translateY(120%); } to { transform: translateY(0); } }

/* now playing */
.np { display: flex; align-items: center; gap: 15px; width: 180px; position: relative; z-index: 2; }
.np-art { width: 88px; height: 88px; border-radius: 13px; flex: none; position: relative; overflow: hidden; border: 1px solid rgba(255,255,255,.08); box-shadow: 0 6px 16px -6px rgba(0,0,0,.7); background: var(--panel); }
.np-art::after { content: ""; position: absolute; inset: 0; background-image: repeating-linear-gradient(115deg, rgba(255,255,255,.06) 0 2px, transparent 2px 8px); }
.np-art-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.np-meta { min-width: 0; overflow: visible; }
/* Long titles spill past the fixed 180px now-playing block onto the center area
   instead of wrapping or truncating. */
.np-title { font-family: var(--disp); font-weight: 700; font-size: 18px; letter-spacing: .01em; color: #f2f2f4; white-space: nowrap; overflow: visible; }
.np-artist { font-family: var(--mono); font-size: 11px; color: #8b8b90; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* center: transport + scrubber */
.center { display: flex; flex-direction: column; align-items: center; gap: 15px; min-width: 0; width: 100%; }
.transport { display: flex; align-items: center; gap: 20px; }
.t-btn { color: #b4b4ba; display: grid; place-items: center; padding: 4px; border-radius: 8px; background: transparent; }
.t-btn svg { width: 22px; height: 22px; fill: currentColor; }
.t-btn:hover { color: #fff; background: rgba(255,255,255,.06); }
.play-btn {
  width: 52px; height: 52px; border-radius: 50%; flex: none;
  background: var(--accent); color: #fff; display: grid; place-items: center; font-size: 15px; padding-left: 2px;
  box-shadow: 0 6px 16px -4px rgba(217,83,74,.6); transition: transform .12s ease, filter .12s;
}
.play-btn:hover { transform: scale(1.05); filter: brightness(1.06); }
.play-btn:active { transform: scale(.97); }
.scrub { display: flex; align-items: center; gap: 14px; width: 100%; }
.time { font-family: var(--mono); font-size: 11px; color: #7e7e84; flex: none; min-width: 38px; }
.time.r { text-align: right; }
.wave { flex: 1; height: 26px; display: flex; align-items: flex-end; gap: 2px; cursor: pointer; }
.wave .bar { flex: 1; border-radius: 1px; background: #45454a; transition: background .08s linear; }
.wave .bar.on { background: var(--accent); }

/* right: VOL knob + buttons + meter module */
.right { display: flex; align-items: center; justify-content: flex-end; gap: 18px; }
.pl-vol { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.pl-vol .knob-label { font-size: 10px; color: #9a9aa0; transform: translateY(-4px); }
.pl-vbtns { display: flex; gap: 6px; }
.ibtn { color: #b4b4ba; padding: 6px; border-radius: 8px; display: grid; place-items: center; background: transparent; }
.ibtn:hover { color: #fff; background: rgba(255,255,255,.06); }
.vol-ico { width: 20px; height: 20px; }
.vol-spk { fill: currentColor; }
.vol-w { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.vol-slash { stroke: #ff5a4d; stroke-width: 2; display: none; }
.vol-btn.muted .vol-w { display: none; }
.vol-btn.muted .vol-slash { display: block; }
.vol-btn.muted { color: var(--faint); }
.settings-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.settings-btn.open { color: #f0a030; background: rgba(240,160,48,.14); }

/* vertical LED meter module */
.lm-vmodule { background: linear-gradient(180deg,#0c0d0f,#101113); border: 1px solid #000; border-radius: 9px; padding: 9px 11px 7px; box-shadow: 0 2px 7px rgba(0,0,0,.5) inset, 0 1px 0 rgba(255,255,255,.05); }
.lm-vcols { display: flex; align-items: flex-end; gap: 5px; height: 58px; }
.lm-vcol { display: flex; flex-direction: column; gap: 2px; width: 12px; height: 100%; }
.lm-vseg { flex: 1; border-radius: 1.5px; background: #2a2a30; }
.lm-vseg.on.green { background: #25d366; box-shadow: 0 0 5px #25d366; }
.lm-vseg.on.amber { background: #ffb627; box-shadow: 0 0 5px #ffb627; }
.lm-vseg.on.red   { background: #ff3b30; box-shadow: 0 0 5px #ff3b30; }
.lm-vseg.gr.on    { background: #f0a030; box-shadow: 0 0 5px #f0a030; }
.lm-vsep { width: 1px; align-self: stretch; background: rgba(255,255,255,.08); margin: 0 2px; }
.lm-vlabels { display: flex; gap: 5px; margin-top: 5px; }
.lm-vlabels span { width: 12px; text-align: center; font-family: var(--mono); font-size: 8px; color: #7e7e84; }
.lm-vlabels span.gr { width: 18px; color: #f0a030; }

/* ---------- Knob (shared by VOL + compressor) ---------- */
.knob-wrap { display: flex; flex-direction: column; align-items: center; gap: 9px; user-select: none; }
.knob-label { font-family: var(--disp); font-weight: 600; font-size: 11px; letter-spacing: .1em; color: #aab3bd; }
.knob-dial { position: relative; display: grid; place-items: center; cursor: ns-resize; touch-action: none; }
.knob-tick { position: absolute; left: 50%; top: 50%; width: 2px; height: 6px; border-radius: 1px; transform-origin: 50% 0; margin-left: -1px; }
.knob-tick.major { height: 9px; width: 2.5px; }
.knob-body { position: relative; width: 76%; height: 76%; border-radius: 50%; background: #2b3036; box-shadow: 0 0 0 2px rgba(0,0,0,.35); }
.knob-pointer { position: absolute; left: 50%; top: 7%; width: 3px; height: 34%; margin-left: -1.5px; border-radius: 2px; background: var(--accent); box-shadow: 0 0 6px var(--accent); }
.knob-dial.dragging .knob-body { box-shadow: 0 0 0 2px var(--accent); }
.knob-readout { font-family: var(--mono); font-size: 12px; color: var(--accent); background: #0a0c0e; border-radius: 4px; padding: 3px 8px; min-width: 62px; text-align: center; box-shadow: 0 0 0 1px rgba(0,0,0,.6) inset; white-space: nowrap; }

/* ---------- C-76 compressor popover ---------- */
.comp-scrim { position: fixed; inset: 0; z-index: 70; background: rgba(0,0,0,.34); animation: fade .2s ease both; }
.comp-scrim[hidden] { display: none; }
@keyframes fade { from { opacity: 0; } }
.comp-pop {
  position: fixed; right: 16px; bottom: 156px; z-index: 71;
  transform-origin: bottom right;
  animation: cpop .28s cubic-bezier(.2,.9,.3,1.25) both;
}
.comp-pop[hidden] { display: none; }
@keyframes cpop { from { opacity: 0; transform: translateY(16px) scale(.96); } }
.comp-pop::after {
  content: ""; position: absolute; right: 40px; bottom: -9px; width: 18px; height: 18px;
  background: linear-gradient(135deg, #2a3038, #232831); transform: rotate(45deg);
  border-right: 1px solid rgba(0,0,0,.6); border-bottom: 1px solid rgba(0,0,0,.6);
}
.comp-panel {
  position: relative; width: 660px; max-width: calc(100vw - 32px);
  padding: 18px 22px 22px; border-radius: 12px; color: #d7dde4;
  border: 1px solid rgba(0,0,0,.6);
  box-shadow: 0 1px 0 rgba(255,255,255,.12) inset, 0 -2px 6px rgba(0,0,0,.5) inset, 0 30px 70px -20px rgba(0,0,0,.85), 0 6px 20px rgba(0,0,0,.5);
}
.face-gunmetal {
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.025) 0 1px, transparent 1px 3px),
    linear-gradient(180deg, #3a424c 0%, #2a3038 45%, #232831 100%);
}
.comp-head { display: flex; align-items: center; justify-content: space-between; margin: 2px 4px 16px; gap: 14px; }
.brand { display: flex; align-items: center; gap: 12px; }
.power-led { width: 11px; height: 11px; border-radius: 50%; flex: none; }
.brand-txt { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: var(--disp); font-weight: 700; font-size: 19px; letter-spacing: .18em; }
.brand-model { font-family: var(--disp); font-size: 11px; letter-spacing: .12em; opacity: .6; margin-top: 2px; }
.head-right { display: flex; align-items: center; gap: 16px; }
.preset-box { position: relative; }
.preset-sel {
  appearance: none; -webkit-appearance: none;
  font-family: var(--disp); font-weight: 600; font-size: 13px; letter-spacing: .05em; color: #cdd4db; cursor: pointer;
  background: linear-gradient(180deg, #2b3037, #1a1d22); border: 1px solid rgba(0,0,0,.5); border-radius: 6px;
  padding: 7px 30px 7px 12px; min-width: 150px;
  box-shadow: 0 1px 0 rgba(255,255,255,.08) inset, 0 2px 3px rgba(0,0,0,.4);
}
.preset-sel:focus { outline: none; box-shadow: 0 0 0 2px #f0a030, 0 2px 3px rgba(0,0,0,.4); }
.preset-caret { position: absolute; right: 11px; top: 50%; transform: translateY(-50%); pointer-events: none; color: #f0a030; font-size: 11px; }
.bypass-sw {
  display: flex; align-items: center; gap: 8px; font-family: var(--disp); font-weight: 600; font-size: 12px; letter-spacing: .14em;
  color: #9aa3ad; cursor: pointer; background: linear-gradient(180deg, #2b3037, #1a1d22);
  border: 1px solid rgba(0,0,0,.5); border-radius: 6px; padding: 7px 12px;
  box-shadow: 0 1px 0 rgba(255,255,255,.08) inset, 0 2px 3px rgba(0,0,0,.4);
}
.bypass-sw .sw-led { width: 8px; height: 8px; border-radius: 50%; background: #2ecc71; box-shadow: 0 0 6px #2ecc71; }
.bypass-sw.active { color: #e8a23c; }
.bypass-sw.active .sw-led { background: #555; box-shadow: none; }

.meter-bridge {
  display: grid; grid-template-columns: 1fr 1.45fr 1fr; gap: 14px;
  background: linear-gradient(180deg, #07090b, #0c0f13); border: 1px solid rgba(0,0,0,.7);
  border-radius: 8px; padding: 12px 14px 10px; margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,.5) inset, 0 1px 0 rgba(255,255,255,.06);
}
.meter-block { display: flex; flex-direction: column; }
.meter-title { font-family: var(--disp); font-size: 11px; letter-spacing: .16em; color: #7f8a96; text-align: center; margin-bottom: 7px; }
.meter-cols { display: flex; gap: 7px; justify-content: center; align-items: stretch; }
.led-col { display: flex; flex-direction: column; gap: 2px; }
.led-seg { width: 16px; height: 8px; border-radius: 1.5px; background: #161a1e; box-shadow: 0 0 0 1px rgba(0,0,0,.5) inset; }
.led-seg.green.on { background: #25d366; box-shadow: 0 0 6px #25d366, 0 0 0 1px rgba(0,0,0,.4) inset; }
.led-seg.amber.on { background: #ffb627; box-shadow: 0 0 6px #ffb627, 0 0 0 1px rgba(0,0,0,.4) inset; }
.led-seg.red.on   { background: #ff3b30; box-shadow: 0 0 7px #ff3b30, 0 0 0 1px rgba(0,0,0,.4) inset; }
.meter-scale { display: flex; flex-direction: column; justify-content: space-between; font-family: var(--mono); font-size: 8.5px; color: #5a636d; padding: 1px 0; }
.meter-lr { display: flex; justify-content: space-around; font-family: var(--disp); font-size: 10px; color: #6b757f; margin-top: 5px; padding: 0 18px; }
.meter-block.gr { justify-content: flex-start; }
.gr-track { background: #0a0c0e; border-radius: 4px; padding: 6px; box-shadow: 0 0 0 1px rgba(0,0,0,.6) inset; margin-bottom: 4px; }
.gr-segs { display: flex; gap: 2px; }
.gr-seg { flex: 1; height: 22px; border-radius: 1.5px; background: #161a1e; box-shadow: 0 0 0 1px rgba(0,0,0,.5) inset; }
.gr-seg.on { background: #f0a030; box-shadow: 0 0 6px #f0a030; }
.gr-scale { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 8.5px; color: #5a636d; }
.gr-readout { text-align: center; font-family: var(--mono); font-size: 15px; color: #f0a030; margin-top: 7px; text-shadow: 0 0 8px rgba(240,160,48,.5); }

.knob-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; transition: opacity .25s; }
.knob-row.dimmed { opacity: .4; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .t-grid, .about, .contact { grid-template-columns: 1fr; }
  .about, .contact { align-items: start; }
}
@media (max-width: 720px) {
  .poster-matrix { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
  .panel-film { font-size: 14px; }
  .track-grid { grid-template-columns: 1fr; }
  .player { grid-template-columns: auto 1fr; gap: 14px; padding: 0 14px; height: 110px; }
  .player-spacer { height: 134px; }
  .np-art { width: 64px; height: 64px; }
  .right { display: none; }                 /* hide VOL knob + meter module on small screens */
  .comp-pop { right: 8px; left: 8px; bottom: 128px; }
  .comp-pop::after { display: none; }
  .meter-bridge { grid-template-columns: 1fr; gap: 10px; }
  .knob-row { grid-template-columns: repeat(3, 1fr); gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; }
  .player, .comp-pop, .comp-scrim { animation: none; }
}

/* ---------- Poster fallback placeholders (striped, brutalist) ---------- */
.poster-ph {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: var(--panel);
  background-image: repeating-linear-gradient(135deg, rgba(255,255,255,0.04) 0 2px, transparent 2px 9px);
}
.poster-ph .ph-tag {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--faint);
}
.poster-ph .ph-meta {
  position: relative;
  padding: 10px 11px;
  background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
}
.poster-ph .ph-year {
  display: block;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 3px;
}
.poster-ph .ph-film {
  display: block;
  font-weight: 700;
  font-size: 13px;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.poster-card .poster-img { position: relative; z-index: 1; }
.poster-card.img-failed .poster-img { display: none; }


/* ---------- Representation (contact) ---------- */
.rep { margin-top: clamp(32px, 5vw, 56px); }
.rep-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.rep-name { font-weight: 600; font-size: 18px; color: var(--ink); }
.rep-co {
  display: inline-block;
  margin-top: 2px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--sub);
  border-bottom: 1px solid transparent;
  transition: color .2s, border-color .2s;
}
.rep-co:hover { color: var(--ink); border-bottom-color: var(--line); }

/* ---------- Scenes (Showreel) ---------- */
.reel {
  padding: clamp(70px, 9vw, 120px) var(--gutter);
  border-top: 1px solid var(--line);
}
.reel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 38px;
}
.reel-kicker {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.reel-title {
  font-family: var(--disp);
  font-weight: 800;
  font-size: clamp(40px, 6vw, 76px);
  letter-spacing: -0.03em;
  line-height: 0.9;
  color: var(--ink);
}
.reel-help {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--faint);
  max-width: 280px;
  text-align: right;
  line-height: 1.6;
}

/* layouts */
.reel-bento { display: flex; flex-direction: column; gap: 14px; }
.reel-row { display: flex; gap: 14px; }
.reel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}
.reel-grid .reel-tile { aspect-ratio: auto; }

/* tile */
.reel-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 0;
  text-align: left;
  background: var(--panel);
  border: 1px solid var(--line);
  overflow: hidden;
  cursor: pointer;
  transition: border-color .18s;
}
.reel-tile:hover { border-color: var(--accent); }
.reel-tile:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.reel-media { position: relative; width: 100%; flex: 1; min-height: 0; }
/* grid layout: fixed 16:9 media with caption below */
.reel-grid .reel-media { flex: 0 0 auto; aspect-ratio: 16 / 9; }

/* cinematic placeholder "film still" */
.reel-still {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: radial-gradient(120% 100% at 50% 0%, #23272d 0%, #16181c 70%);
}
.reel-still-lines {
  position: absolute;
  inset: 0;
  opacity: 0.6;
  background-image: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 4px);
}
.reel-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.reel-play-glyph {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  background: rgba(217, 83, 74, 0.12);
  color: var(--accent);
  font-size: 18px;
  padding-left: 4px;
}
.reel-tile--big .reel-play-glyph { width: 92px; height: 92px; font-size: 28px; }
.reel-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  color: var(--ink);
  background: rgba(0, 0, 0, 0.55);
  padding: 4px 7px;
}
.reel-runtime {
  position: absolute;
  top: 12px;
  right: 12px;
  font-family: var(--mono);
  font-size: 9px;
  color: var(--faint);
}

/* hover overlay — metadata (top-left) + play button (top-right) + caption (bottom).
   The bottom caption reuses .reel-cap-movie/.reel-cap-scene so the film + scene
   titles sit in the exact same place and layout as the unhovered caption. */
.reel-hover {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 13px 11px;   /* sides + bottom match .reel-cap so the caption aligns */
  text-align: left;
  background: linear-gradient(to top, rgba(8, 9, 11, 0.95) 30%, rgba(8, 9, 11, 0.82));
  opacity: 0;
  transition: opacity .2s;
}
.reel-tile--big .reel-hover { padding: 16px 18px 14px; }
.reel-tile:hover .reel-hover,
.reel-tile:focus-visible .reel-hover { opacity: 1; }
.rh-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.rh-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; overflow: hidden; }
.rh-meta {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent);
}
.rh-line { font-family: var(--mono); font-size: 10px; letter-spacing: 0.04em; color: #c2c6cc; }
.rh-k { color: var(--faint); }
.rh-dur { color: var(--faint); }
/* Round play button, top-right of the hovered tile */
.rh-play {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; border: 1px solid var(--accent); background: rgba(217, 83, 74, 0.22);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  transition: background .15s ease, transform .15s ease;
}
.reel-tile:hover .rh-play { background: rgba(217, 83, 74, 0.5); transform: scale(1.06); }
.rh-play-glyph {
  color: #fff;
  font-size: 13px;
  margin-left: 2px; /* optically center the triangle */
  line-height: 1;
}
/* bottom caption inside the hover overlay (mirrors the unhovered .reel-cap) */
.rh-cap { flex: 0 0 auto; }
.reel-tile--big .rh-meta, .reel-tile--big .rh-line { font-size: 12px; }
.reel-tile--big .rh-play { width: 52px; height: 52px; }
.reel-tile--big .rh-play-glyph { font-size: 17px; }

/* caption — movie + scene label overlaid on the thumbnail */
.reel-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 34px 13px 11px;
  background: linear-gradient(to top, rgba(8, 9, 11, 0.92) 38%, rgba(8, 9, 11, 0));
  pointer-events: none;
}
.reel-tile--big .reel-cap { padding: 44px 18px 14px; }
.reel-cap-movie {
  font-family: var(--disp);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
  line-height: 1.1;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.reel-tile--big .reel-cap-movie { font-size: 22px; }
.reel-cap-scene {
  margin-top: 4px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: #cdd1d6;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.reel-tile--big .reel-cap-scene { font-size: 11px; }

/* narrow screens: collapse bento rows */
@media (max-width: 520px) {
  .reel-row { flex-direction: column; }
  .reel-tile { aspect-ratio: 16 / 9 !important; }
}

/* ---------- Scenes lightbox ---------- */
.reel-lb {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 64px);
  background: rgba(6, 7, 9, 0.975);
  animation: reel-fade .2s ease;
}
.reel-lb[hidden] { display: none; }
@keyframes reel-fade { from { opacity: 0; } to { opacity: 1; } }
.reel-lb-inner { width: min(1180px, 100%); }
.reel-lb-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.reel-lb-now {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--accent);
}
.reel-lb-close {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 8px 14px;
  transition: border-color .2s;
}
.reel-lb-close:hover { border-color: var(--accent); }
.reel-lb-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border: 1px solid var(--line);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
  contain: paint;
}
.reel-lb-stage video { width: 100%; height: 100%; object-fit: contain; background: #000; transform: translateZ(0); }
.reel-lb-ph {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  background: radial-gradient(120% 100% at 50% 0%, #20242a 0%, #0c0d10 75%);
}
.reel-lb-ph-ring {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  background: rgba(217, 83, 74, 0.14);
  color: var(--accent);
  font-size: 32px;
  padding-left: 5px;
}
.reel-lb-ph-text {
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.7;
  text-align: center;
  color: var(--sub);
}
.reel-lb-ph-text span { color: var(--faint); }
.reel-lb-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.reel-lb-title {
  font-family: var(--disp);
  font-weight: 800;
  font-size: clamp(24px, 3vw, 38px);
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--ink);
}
.reel-lb-film {
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--sub);
}
.reel-lb-runtime {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--faint);
}

/* scene poster frames */
.reel-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }


/* ---------- Scene cue-up / film-leader countdown ---------- */
.reel-countdown {
  position: absolute; inset: 0; z-index: 6;
  background: #000;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 22px; cursor: pointer; animation: reel-fade .25s ease;
}
.cd-info { text-align: center; }
.cd-title {
  font-family: var(--disp); font-weight: 800; font-size: clamp(20px, 3vw, 34px);
  letter-spacing: -0.02em; line-height: 1; color: #fff;
}
.cd-sub { margin-top: 8px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.cd-dir { margin-top: 5px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; color: #aeb3ba; }
.cd-leader { position: relative; width: min(40%, 200px); aspect-ratio: 1; }
.cd-leader svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.cd-ring { fill: none; stroke: rgba(255, 255, 255, 0.22); stroke-width: 1.5; }
.cd-ring2 { stroke: rgba(255, 255, 255, 0.12); }
.cd-cross { stroke: rgba(255, 255, 255, 0.14); stroke-width: 1; }
.cd-sweep { transform-box: view-box; transform-origin: 100px 100px; animation: cd-rot 1s linear infinite; }
.cd-wand { stroke: var(--accent); stroke-width: 2.5; }
.cd-num {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-family: var(--disp); font-weight: 800; font-size: clamp(46px, 8vw, 92px);
  color: #fff; text-shadow: 0 2px 30px rgba(0, 0, 0, 0.6);
}
.cd-num.cd-pop { animation: cd-pop .9s ease-out; }
.cd-skip { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }
@keyframes cd-rot { to { transform: rotate(360deg); } }
@keyframes cd-pop { 0% { transform: scale(1.5); opacity: .2; } 40% { opacity: 1; } 100% { transform: scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .cd-sweep { animation: none; } .cd-num.cd-pop { animation: none; } }

/* when a showreel clip owns the bar: playlist prev/next don't apply */
.player.video .transport .t-btn { opacity: .25; pointer-events: none; }
