/* =====================================================================
   AUDIO BRIAN — Brian Kaurich, Production Sound Mixer
   Site stylesheet
   ===================================================================== */

:root {
  --bg: #151311;
  --bg-2: #1b1815;
  --panel: #201c18;
  --panel-2: #27221d;
  --line: #37312a;
  --line-soft: #2b2620;
  --ink: #f2f0e9;
  --ink-dim: #b6ada1;
  --ink-faint: #837a6e;
  --amber: #f0bb24;
  --amber-deep: #c99a18;
  --amber-dim: rgba(240, 187, 36, 0.14);
  --rec: #e33b2e;
  --font-display: "Space Grotesk", "Helvetica Neue", Helvetica, "Segoe UI", sans-serif;
  --font-body: "Inter", "Helvetica Neue", Helvetica, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "SF Mono", Menlo, Consolas, monospace;
  --radius: 8px;
  --container: 1160px;
}

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

html { scroll-behavior: smooth; color-scheme: dark; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }

::selection { background: var(--amber); color: #171310; }

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

/* ---------- Typography helpers ---------- */

.kicker {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber);
  display: flex;
  align-items: center;
  gap: 12px;
}
.kicker::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--amber);
  flex: none;
}

h1, h2, h3 { font-family: var(--font-display); line-height: 1.08; letter-spacing: -0.015em; }

.section-head { margin-bottom: 32px; }
.section-head h2 {
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  font-weight: 700;
  margin-top: 14px;
}
.section-head p.lede {
  margin-top: 12px;
  color: var(--ink-dim);
  max-width: 56ch;
  font-size: 1.02rem;
}

.mono { font-family: var(--font-mono); }
.dim { color: var(--ink-dim); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  padding: 13px 24px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-solid { background: var(--amber); color: #191410; border-color: var(--amber); }
.btn-solid:hover { background: #ffca3d; border-color: #ffca3d; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--amber); color: var(--amber); }

.btn .arrow { transition: transform 0.15s ease; }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- Navigation ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(21, 19, 17, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.nav-inner {
  max-width: var(--container);
  margin-inline: auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.wordmark { display: flex; align-items: center; gap: 12px; }
.wordmark .mark {
  width: 34px; height: 34px;
  border: 1px solid var(--line);
  border-radius: 7px;
  display: grid;
  place-items: center;
  background: var(--panel);
  flex: none;
}
.wordmark .mark svg { display: block; }
.wordmark .wm-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  line-height: 1.1;
}
.wordmark .wm-text small {
  display: block;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 0.6rem;
  letter-spacing: 0.24em;
  color: var(--ink-faint);
  text-transform: uppercase;
}

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-dim);
  padding: 9px 14px;
  border-radius: 6px;
  transition: color 0.15s ease, background 0.15s ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.is-active { color: var(--amber); background: var(--amber-dim); }
.nav-links a.nav-cta {
  color: var(--ink);
  border: 1px solid var(--line);
  margin-left: 8px;
}
.nav-links a.nav-cta:hover { color: var(--amber); border-color: var(--amber); }
.nav-links a.nav-cta.is-active { border-color: var(--amber); background: var(--amber-dim); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 7px;
  width: 42px; height: 42px;
  cursor: pointer;
  place-items: center;
}
.nav-toggle svg { display: block; }

@media (max-width: 860px) {
  .nav-toggle { display: grid; }
  .nav-links {
    position: fixed;
    top: 68px;
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: var(--bg-2);
    border-bottom: 1px solid var(--line);
    padding: 14px 24px 20px;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  }
  .nav-links a { padding: 13px 14px; font-size: 0.85rem; }
  .nav-links a.nav-cta { margin-left: 0; margin-top: 6px; justify-content: center; display: flex; }
  body.nav-open .nav-links { opacity: 1; transform: none; visibility: visible; }
}

/* ---------- Page scaffolding ---------- */

main { padding-top: 68px; min-height: 70vh; }

section { padding: 88px 0; }
section.tight { padding: 64px 0; }
.bg-2 { background: var(--bg-2); border-block: 1px solid var(--line-soft); }
@media (max-width: 960px) {
  section { padding: 48px 0; }
  .section-head { margin-bottom: 24px; }
  .hero h1 { margin: 16px 0 14px; }
  .hero .lede { margin-bottom: 22px; }
  .hero-cta { gap: 10px; }
  .stats-grid { gap: 24px; }
  .cards-grid { gap: 12px; }
  .knownfor { gap: 12px; }
  .skills-grid { gap: 12px; }
  .duo-grid { gap: 18px; }
  .credit-filters { gap: 6px; }
}
@media (max-width: 720px) { section { padding: 32px 0; } }
@media (max-width: 400px) {
  section { padding: 24px 0; }
  .section-head { margin-bottom: 18px; }
  .stats-grid { gap: 16px; }
  .cards-grid { gap: 10px; }
  .knownfor { gap: 10px; }
  .skills-grid { gap: 10px; }
  .credit-filters { gap: 4px; }
}

/* ---------- Reveal on scroll ---------- */

.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .credit-grid .credit-card { animation: none; opacity: 1; transform: none; }
}

/* =====================================================================
   HOME — HERO
   ===================================================================== */

.selected-credits { padding-top: 0; }

.hero {
  padding: 48px 0 72px;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; } }

.hero h1 {
  font-size: clamp(2.8rem, 7.2vw, 5rem);
  font-weight: 700;
  margin: 22px 0 18px;
}
.hero h1 .accent { color: var(--amber); }
.hero .lede {
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  line-height: 1.65;
  color: var(--ink-dim);
  max-width: 56ch;
  margin-bottom: 24px;
}
@media (max-width: 960px) {
  .hero .lede {
    font-size: clamp(0.95rem, 4.2vw, 1.1rem);
    line-height: 1.6;
    max-width: 65ch;
    margin-bottom: 20px;
  }
}
@media (max-width: 600px) {
  .hero .lede {
    font-size: 0.92rem;
    line-height: 1.55;
    max-width: 100%;
  }
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

/* console panel */
.console {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(240, 187, 36, 0.05), transparent 34%),
    var(--panel);
  padding: 20px 22px 22px;
}
.console-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.rec-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--ink);
}
.rec-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--rec);
  box-shadow: 0 0 10px rgba(227, 59, 46, 0.8);
  animation: rec-blink 1.4s ease-in-out infinite;
}
@keyframes rec-blink { 50% { opacity: 0.25; box-shadow: none; } }
@media (prefers-reduced-motion: reduce) { .rec-dot { animation: none; } }

.timecode {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: #fff;
}
.timecode .tc-label {
  color: var(--ink-faint);
}
#waveform {
  width: 100%;
  height: 150px;
  display: block;
}
.console-labels {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* ---------- Networks marquee ---------- */

.marquee-band {
  border-block: 1px solid var(--line-soft);
  background: var(--bg-2);
  overflow: hidden;
  padding: 18px 0;
}
.marquee {
  display: flex;
  gap: 0;
  width: max-content;
  animation: marquee 36s linear infinite;
}
.marquee:hover { animation-play-state: paused; }
.marquee span {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  white-space: nowrap;
  padding-right: 12px;
}
.marquee span::after {
  content: "///";
  color: var(--line);
  margin: 0 26px;
  letter-spacing: 0;
}
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee { animation: none; flex-wrap: wrap; width: auto; }
  .marquee-band { overflow-x: auto; }
}

/* ---------- Stats ---------- */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
}
.stat {
  background: var(--panel);
  padding: 30px 26px;
}
.stat .num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.4vw, 3rem);
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
}
.stat .num .unit { color: var(--amber); }
.stat .label {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
@media (max-width: 860px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 400px) { .stats-grid { grid-template-columns: 1fr; } }

/* ---------- Selected credits ---------- */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 960px) { .cards-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .cards-grid { grid-template-columns: 1fr; } }

.credit-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
.credit-card:hover {
  transform: translateY(-4px);
  border-color: var(--amber-deep);
  background: var(--panel-2);
}
.credit-card .top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
.credit-card h3 { font-size: 1.18rem; font-weight: 600; }
.credit-card .role { color: var(--ink-dim); font-size: 0.9rem; }
.credit-card .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  align-items: center;
}

.chip {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-dim);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 10px;
  white-space: nowrap;
}
.chip.amber { color: var(--amber); border-color: rgba(240, 187, 36, 0.4); background: var(--amber-dim); }

.rating-star { color: var(--amber); margin-right: 5px; }
.credit-card .years, .credit-card .studio {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--ink-faint);
}
.credit-card .studio { margin-left: auto; }

.center-row { text-align: center; margin-top: 44px; }

/* ---------- Feature (The Valley) ---------- */

.feature-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 44px;
  align-items: center;
}
@media (max-width: 960px) {
  .feature-grid { grid-template-columns: 1fr; }
  .feature-photo { max-width: 340px; margin-inline: auto; }
}
.feature-photo {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 2 / 3;
}
.feature-photo img { width: 100%; height: 100%; object-fit: cover; }
.feature-body h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); margin-top: 14px; }
.feature-body .lede { color: var(--ink-dim); margin-top: 12px; max-width: 58ch; }
.feature-facts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

/* ---------- On set / gallery ---------- */

.photo-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 18px;
}
@media (max-width: 820px) {
  .photo-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}
@media (max-width: 520px) { .photo-grid { grid-template-columns: 1fr; gap: 12px; } }
.photo-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--panel); }
.photo-card .frame { overflow: hidden; }
.photo-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transform: scale(1.001);
  transition: transform 0.5s ease;
}
.photo-card:hover img { transform: scale(1.04); }
.photo-card .caption {
  padding: 14px 18px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  border-top: 1px solid var(--line-soft);
}
.photo-card { cursor: pointer; }

/* ---------- Photo lightbox ---------- */

.photo-lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.92);
  display: grid;
  place-items: center;
  padding: 48px 24px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
@media (max-width: 600px) {
  .photo-lightbox { padding: 24px 12px; }
  .photo-lightbox-close { top: 12px; right: 12px; width: 36px; height: 36px; }
}
.photo-lightbox.open {
  opacity: 1;
  pointer-events: auto;
}
.photo-lightbox.open img {
  transform: scale(1);
}
.photo-lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius);
  transform: scale(0.95);
  transition: transform 0.3s ease;
}
.photo-lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  transition: background 0.15s ease;
}
.photo-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ---------- Closing CTA band ---------- */

.cta-band { text-align: center; }
.cta-band h2 { font-size: clamp(2rem, 5vw, 3.2rem); margin-top: 14px; }
.cta-band p { color: var(--ink-dim); margin: 16px auto 0; max-width: 52ch; }
.cta-band .hero-cta { justify-content: center; }

/* =====================================================================
   ABOUT
   ===================================================================== */

.page-head { padding: 48px 0 56px; }
.page-head h1 { font-size: clamp(2.4rem, 6vw, 4rem); margin-top: 18px; max-width: 18ch; }
.page-head .lede { color: var(--ink-dim); margin-top: 16px; max-width: 62ch; font-size: 1.05rem; }
@media (max-width: 960px) {
  .page-head { padding: 56px 0 32px; }
}
@media (max-width: 400px) {
  .page-head { padding: 44px 0 24px; }
  .page-head h1 { margin-top: 12px; }
  .page-head .lede { font-size: 0.92rem; }
  .container { padding-inline: 16px; }
}

.about-bio { padding-top: 0; }

.about-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 52px;
  align-items: start;
}
@media (max-width: 960px) { .about-grid { grid-template-columns: 1fr; } }

.portrait {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
  aspect-ratio: 2 / 3;
  position: relative;
}
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait .tag {
  position: absolute;
  left: 14px; bottom: 14px;
  background: rgba(21, 19, 17, 0.82);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 12px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
}
.portrait-wrap { position: static; }
@media (max-width: 960px) {
  .portrait-wrap { position: static; max-width: 380px; }
  section:has(.about-grid) { padding-top: 24px; }
}

.bio p { color: var(--ink-dim); margin-bottom: 18px; max-width: 66ch; }
.bio p strong { color: var(--ink); font-weight: 600; }
.bio .facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 28px 0;
}
@media (max-width: 620px) { .bio .facts { grid-template-columns: 1fr; } }
.bio .facts div { background: var(--panel); padding: 16px 18px; }
.bio .facts .k {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.bio .facts .v { margin-top: 6px; font-weight: 600; font-size: 0.95rem; }

/* known-for strip */
.knownfor { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 720px) { .knownfor { grid-template-columns: 1fr; } }
.knownfor .card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 22px;
}
.knownfor .rank {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--amber);
}
.knownfor h3 { font-size: 1.25rem; margin-top: 10px; }
.knownfor .note { color: var(--ink-faint); font-size: 0.88rem; margin-top: 8px; }

/* skills grid */
.skills-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 960px) { .skills-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .skills-grid { grid-template-columns: 1fr; } }
.skill-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 22px;
  color: var(--ink-dim);
  font-size: 0.95rem;
  transition: border-color 0.18s ease, background 0.18s ease;
}
.skill-card:hover { border-color: var(--amber-deep); background: var(--panel-2); }
.skill-card .idx {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--amber);
  letter-spacing: 0.2em;
  display: block;
  margin-bottom: 12px;
}
.skill-card strong { color: var(--ink); display: block; margin-bottom: 6px; font-family: var(--font-display); }

/* affiliations + training */
.duo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 820px) { .duo-grid { grid-template-columns: 1fr; } }
.panel-box {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 26px;
}
.panel-box h3 {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 18px;
}
.panel-box li {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.95rem;
}
.panel-box li:last-child { border-bottom: none; padding-bottom: 0; }
.panel-box li:first-child { padding-top: 0; }
.panel-box li .yr { font-family: var(--font-mono); font-size: 0.78rem; color: var(--ink-faint); }

/* experience */
.experience .panel-box p { color: var(--ink-dim); margin-bottom: 10px; max-width: 78ch; }
.experience .panel-box h4 { font-family: var(--font-display); font-size: 1.2rem; margin-bottom: 4px; white-space: nowrap; }
.experience .panel-box .org { color: var(--amber); font-size: 0.9rem; margin-bottom: 14px; }
.experience .panel-box ul li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 12px;
  border-bottom: 1px solid var(--line-soft);
  line-height: 1.6;
  padding: 10px 0;
  align-items: start;
}
.experience .panel-box ul li::before {
  content: "→";
  color: var(--amber);
  font-family: var(--font-mono);
}
.experience .panel-box ul li em {
  white-space: nowrap;
}

/* =====================================================================
   CREDITS
   ===================================================================== */

/* ---------- Filter tabs ---------- */

.credit-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.filter-tab {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-dim);
  padding: 8px 16px;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.filter-tab .fcount {
  color: var(--ink-faint);
  margin-left: 6px;
  font-size: 0.68rem;
}
.filter-tab:hover { color: var(--ink); border-color: var(--ink-faint); }
.filter-tab.is-active { color: var(--amber); border-color: var(--amber); background: var(--amber-dim); }
.filter-tab.is-active .fcount { color: var(--amber); }
@media (max-width: 400px) {
  .filter-tab { padding: 6px 10px; font-size: 0.66rem; }
  .filter-tab .fcount { margin-left: 4px; font-size: 0.62rem; }
  .credit-filters { gap: 6px; margin-bottom: 16px; }
}

/* ---------- Credit grid (card layout) ---------- */

.credit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
@media (min-width: 1200px) { .credit-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 960px) { .credit-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 620px) { .credit-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } }
@media (max-width: 400px) { .credit-grid { grid-template-columns: 1fr; gap: 12px; } }

/* Cards scoped to .credit-grid to avoid conflict with home page .credit-card */
.credit-grid .credit-card {
  position: relative;
  border: 1px solid var(--line);
  border-left-width: 4px;
  border-radius: var(--radius);
  background: var(--panel);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  /* Staggered reveal */
  opacity: 0;
  transform: translateY(12px);
  animation: card-in 0.35s ease forwards;
}
@media (hover: hover) {
  .credit-grid .credit-card:hover {
    transform: translateY(-4px);
    background: var(--panel-2);
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  }
  .credit-grid .credit-card:hover .card-accent {
    opacity: 1;
    box-shadow: 0 0 12px currentColor;
  }
}
@keyframes card-in {
  to { opacity: 1; transform: translateY(0); }
}
/* Stagger each card — up to 20 cards, then cap */
.credit-grid .credit-card:nth-child(1)  { animation-delay: 0.005s; }
.credit-grid .credit-card:nth-child(2)  { animation-delay: 0.01s; }
.credit-grid .credit-card:nth-child(3)  { animation-delay: 0.015s; }
.credit-grid .credit-card:nth-child(4)  { animation-delay: 0.02s; }
.credit-grid .credit-card:nth-child(5)  { animation-delay: 0.025s; }
.credit-grid .credit-card:nth-child(6)  { animation-delay: 0.03s; }
.credit-grid .credit-card:nth-child(7)  { animation-delay: 0.035s; }
.credit-grid .credit-card:nth-child(8)  { animation-delay: 0.04s; }
.credit-grid .credit-card:nth-child(9)  { animation-delay: 0.045s; }
.credit-grid .credit-card:nth-child(10) { animation-delay: 0.05s; }
.credit-grid .credit-card:nth-child(11) { animation-delay: 0.055s; }
.credit-grid .credit-card:nth-child(12) { animation-delay: 0.06s; }
.credit-grid .credit-card:nth-child(13) { animation-delay: 0.065s; }
.credit-grid .credit-card:nth-child(14) { animation-delay: 0.07s; }
.credit-grid .credit-card:nth-child(15) { animation-delay: 0.075s; }
.credit-grid .credit-card:nth-child(16) { animation-delay: 0.08s; }
.credit-grid .credit-card:nth-child(17) { animation-delay: 0.085s; }
.credit-grid .credit-card:nth-child(18) { animation-delay: 0.09s; }
.credit-grid .credit-card:nth-child(19) { animation-delay: 0.095s; }
.credit-grid .credit-card:nth-child(20) { animation-delay: 0.10s; }
.credit-grid .credit-card:nth-child(n+21) { animation-delay: 0.10s; }

.credit-grid .credit-card .card-accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  opacity: 0.7;
}
.credit-grid .credit-card .card-body {
  padding: 22px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  text-align: center;
  flex: 1;
}
.credit-grid .credit-card .card-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 0;
}
.credit-grid .credit-card .card-top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.credit-grid .credit-card .format-badge {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
  font-weight: 500;
}
.credit-grid .credit-card .yr {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-faint);
  letter-spacing: 0.04em;
}
.credit-grid .credit-card .yr.upcoming { color: var(--rec); }
.credit-grid .credit-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--ink);
}
.credit-grid .credit-card .role {
  color: var(--ink-dim);
  font-size: 0.84rem;
  line-height: 1.4;
}
.credit-grid .credit-card .card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  justify-content: center;
}

/* ---------- Card poster image ---------- */

.credit-grid .credit-card .card-poster {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: var(--bg-2);
}
@media (max-width: 960px) {
  .credit-grid .credit-card .card-body { padding: 16px 14px 14px; }
  .credit-grid .credit-card.has-poster .card-body { padding-top: 10px; }
  .credit-grid .credit-card h3 { font-size: 0.95rem; }
  .credit-grid .credit-card .role { font-size: 0.8rem; }
  .credit-grid .credit-card .format-badge { font-size: 0.56rem; padding: 2px 8px; }
  .credit-grid .credit-card .yr { font-size: 0.68rem; }
  .credit-grid .credit-card .chip { font-size: 0.6rem; padding: 3px 9px; }
  .credit-grid .credit-card .card-meta { gap: 6px; }
}
@media (max-width: 620px) {
  .credit-grid .credit-card .card-body { padding: 14px 12px 14px; }
  .credit-grid .credit-card.has-poster .card-body { padding-top: 8px; }
  .credit-grid .credit-card h3 { font-size: 0.9rem; }
  .credit-grid .credit-card .role { font-size: 0.78rem; }
  .credit-grid .credit-card .format-badge { font-size: 0.54rem; padding: 2px 7px; }
  .credit-grid .credit-card .yr { font-size: 0.66rem; }
  .credit-grid .credit-card .chip { font-size: 0.58rem; padding: 2px 8px; }
  .credit-grid .credit-card .card-meta { gap: 6px; }
}
@media (max-width: 400px) {
  .credit-grid .credit-card .card-body { padding: 10px 10px 12px; }
  .credit-grid .credit-card.has-poster .card-body { padding-top: 8px; }
  .credit-grid .credit-card h3 { font-size: 0.88rem; }
  .credit-grid .credit-card .role { font-size: 0.74rem; }
  .credit-grid .credit-card .card-top { gap: 6px; }
  .credit-grid .credit-card .format-badge { padding: 2px 6px; font-size: 0.52rem; }
  .credit-grid .credit-card .yr { font-size: 0.64rem; }
  .credit-grid .credit-card .chip { font-size: 0.56rem; padding: 2px 6px; }
  .credit-grid .credit-card .card-meta { gap: 4px; }
}
.credit-grid .credit-card .card-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: none;
}
.credit-grid .credit-card.has-poster .card-body {
  padding-top: 18px;
}

/* ---------- Lazy-load sentinel ---------- */

.credit-sentinel {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  padding: 40px 0 20px;
}
.load-indicator {
  display: flex;
  gap: 8px;
  align-items: center;
}
.load-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
  opacity: 0.4;
  animation: load-pulse 1s ease-in-out infinite;
}
.load-dot:nth-child(2) { animation-delay: 0.15s; }
.load-dot:nth-child(3) { animation-delay: 0.3s; }
@keyframes load-pulse {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.4); }
}
@media (prefers-reduced-motion: reduce) {
  .load-dot { animation: none; opacity: 0.6; }
}

.credits-footnote {
  margin-top: 34px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--ink-faint);
  letter-spacing: 0.04em;
}
.credits-footnote a { color: var(--ink-dim); text-decoration: underline; text-underline-offset: 3px; }
.credits-footnote a:hover { color: var(--amber); }

/* =====================================================================
   CONTACT
   ===================================================================== */

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 52px;
  align-items: start;
}
@media (max-width: 960px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-cards { display: flex; flex-direction: column; gap: 14px; }
.contact-card {
  display: flex;
  align-items: center;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 20px 22px;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}
.contact-card:hover { border-color: var(--amber-deep); background: var(--panel-2); transform: translateY(-3px); }
.contact-card .icon {
  width: 46px; height: 46px;
  flex: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  background: var(--bg-2);
  color: var(--amber);
}
.contact-card .k {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.contact-card .v { font-family: var(--font-display); font-weight: 600; font-size: 1.12rem; margin-top: 3px; word-break: break-all; }

.avail-note {
  margin-top: 26px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--amber);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 20px 22px;
  color: var(--ink-dim);
  font-size: 0.95rem;
}
.avail-note strong { color: var(--ink); font-family: var(--font-display); display: block; margin-bottom: 6px; }

.form-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 34px;
}
@media (max-width: 560px) { .form-card { padding: 24px 20px; } }
.form-card h3 { font-size: 1.5rem; margin-bottom: 6px; }
.form-card .sub { color: var(--ink-dim); font-size: 0.92rem; margin-bottom: 26px; }

.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 8px;
}
.field input, .field textarea, .field select {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 13px 16px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  resize: vertical;
}
.field textarea { min-height: 130px; }
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--amber);
  box-shadow: 0 0 0 3px var(--amber-dim);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

.form-status {
  margin-top: 16px;
  font-size: 0.9rem;
  color: var(--amber);
  min-height: 1.4em;
}

/* Form button loading state */
.btn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

/* =====================================================================
   BACK TO TOP
   ===================================================================== */

.back-to-top {
  position: fixed;
  bottom: 18px;
  right: 18px;
  z-index: 90;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--amber);
  cursor: pointer;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease, border-color 0.15s ease, background 0.15s ease;
  pointer-events: none;
}
.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.back-to-top:hover {
  border-color: var(--amber);
  background: var(--panel-2);
}

/* Hide on desktop except on the credits page (long scroll) */
@media (min-width: 621px) {
  .back-to-top { display: none !important; }
  body.page-credits .back-to-top { display: grid !important; }
}

/* =====================================================================
   SKIP LINK (accessibility)
   ===================================================================== */

.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 200;
  background: var(--amber);
  color: #171310;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 10px 18px;
  border-radius: 0 0 var(--radius) var(--radius);
  font-weight: 600;
  transition: top 0.15s ease;
}
.skip-link:focus {
  top: 0;
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}

/* =====================================================================
   FOOTER
   ===================================================================== */

.footer {
  border-top: 1px solid var(--line-soft);
  background: var(--bg-2);
  padding: 56px 0 40px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}
@media (max-width: 820px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}
.footer .wordmark { margin-bottom: 16px; }
.footer .about-line { color: var(--ink-dim); font-size: 0.92rem; max-width: 34ch; }
.footer h4 {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 16px;
}
.footer ul li { margin-bottom: 10px; }
.footer ul a { color: var(--ink-dim); font-size: 0.92rem; transition: color 0.15s ease; }
.footer ul a:hover { color: var(--amber); }
.footer-bottom {
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
}
.footer-bottom .rec-badge { color: var(--ink-faint); }
