/* ════════════════════════════════════════
   krishnaakhil.com — design system
   Honest Document · v1.0 · 2026-05-24
════════════════════════════════════════ */

/* ── TOKENS ─────────────────────────── */
:root {
  --bg:     #F5F2EE;
  --ink:    #1A1A18;
  --muted:  #8A8680;
  --accent: #C0392B;
  --rule:   rgba(26,26,24,0.10);
  --rule-strong: rgba(26,26,24,0.18);

  --f-serif: 'Instrument Serif', Georgia, serif;
  --f-sans:  'DM Sans', system-ui, sans-serif;
  --f-mono:  'DM Mono', 'Courier New', monospace;

  --col:  680px;
  --pad:  40px;
  --pad-m: 20px;
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-out-quint: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── STICKY NAV ─────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: transparent;
  transition: background 0.3s var(--ease-out-quart), backdrop-filter 0.3s var(--ease-out-quart), border-color 0.3s var(--ease-out-quart);
}
nav.scrolled {
  background: rgba(245,242,238,0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--rule);
}

/* ── COPY EMAIL ─────────────────────── */
.copy-email {
  color: var(--ink);
  cursor: pointer;
  border-bottom: 1px solid currentColor;
  transition: color 0.15s var(--ease-out-quart), border-color 0.15s var(--ease-out-quart), transform 0.18s var(--ease-out-quart);
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  font: inherit;
  padding: 0;
  display: inline;
}
.copy-email:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.copy-email.copied {
  animation: copied-flash 520ms var(--ease-out-quart);
}

/* Toast notification */
.copy-toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--ink);
  padding: 8px 16px;
  opacity: 0;
  transition: opacity 0.2s var(--ease-out-quart), transform 0.2s var(--ease-out-quart);
  pointer-events: none;
  z-index: 200;
}
.copy-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── RESET ──────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { background: var(--bg); color: var(--ink); scroll-behavior: smooth; }
body {
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background: var(--bg);
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.reveal-step {
  opacity: 0;
  transform: translateY(18px);
}

.is-ready .reveal-step {
  animation: reveal-up 640ms var(--ease-out-expo) both;
  animation-delay: var(--delay, 0ms);
}

.scroll-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 520ms var(--ease-out-expo), transform 520ms var(--ease-out-expo);
}

.scroll-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── LAYOUT ─────────────────────────── */
.col {
  max-width: var(--col);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* ── NAV ────────────────────────────── */
nav { padding: 28px 0 0; }
nav .col {
  display: flex;
  align-items: baseline;
  gap: 24px;
}
.nav-brand {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-right: auto;
  transition: opacity 0.15s var(--ease-out-quart), color 0.15s var(--ease-out-quart);
}
.nav-brand:hover { opacity: 0.7; }
nav a.nav-link {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.15s var(--ease-out-quart);
}
nav a.nav-link:hover,
nav a.nav-link.active { color: var(--ink); }

.is-ready nav .nav-brand {
  animation: reveal-up 560ms var(--ease-out-expo) both;
  animation-delay: 0ms;
}

.is-ready nav .nav-link {
  animation: reveal-up 560ms var(--ease-out-expo) both;
}

.is-ready nav .nav-link:nth-of-type(2) { animation-delay: 30ms; }
.is-ready nav .nav-link:nth-of-type(3) { animation-delay: 55ms; }
.is-ready nav .nav-link:nth-of-type(4) { animation-delay: 80ms; }
.is-ready nav .nav-link:nth-of-type(5) { animation-delay: 105ms; }
.is-ready nav .nav-link:nth-of-type(6) { animation-delay: 130ms; }
.is-ready nav .nav-link:nth-of-type(7) { animation-delay: 155ms; }

/* ── HERO / PAGE HEADING ────────────── */
.hero { padding: 56px 0 0; }
.hero-name {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: clamp(54px, 8vw, 88px);
  line-height: 1.0;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 36px;
}
.page-heading {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 28px;
}

/* ── BIO ────────────────────────────── */
.bio p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  max-width: 54ch;
}
.bio p + p { margin-top: 14px; }
.bio a { color: var(--accent); border-bottom: 1px solid transparent; transition: border-color 0.15s; }
.bio a:hover { border-color: var(--accent); }

.utility-row {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 18px;
  flex-wrap: wrap;
}
.page-heading + .utility-row {
  margin-top: -6px;
  margin-bottom: 22px;
}
.utility-row .copy-email {
  border-bottom-color: transparent;
}
.utility-link {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 1px;
  border-bottom: 1px solid transparent;
  transition: color 0.15s var(--ease-out-quart), border-color 0.15s var(--ease-out-quart), transform 0.2s var(--ease-out-quint);
}
.utility-link:hover,
.utility-link:focus-visible {
  color: var(--ink);
  border-bottom-color: currentColor;
  transform: translateX(2px);
}

/* ── INDEX (home links) ─────────────── */
.index {
  margin-top: 52px;
  padding-top: 52px;
  border-top: 1px solid var(--rule);
}
.index-row {
  display: flex;
  align-items: baseline;
  padding: 15px 0;
  border-bottom: 1px solid var(--rule);
  color: var(--ink);
  gap: 16px;
  transition: color 0.18s var(--ease-out-quart), transform 0.22s var(--ease-out-quint), border-color 0.22s var(--ease-out-quart);
}
.index-row:hover,
.index-row:focus-visible {
  transform: translateX(4px);
  border-bottom-color: var(--rule-strong);
}
.index-row:hover .index-num,
.index-row:hover .index-desc,
.index-row:focus-visible .index-num,
.index-row:focus-visible .index-desc {
  color: var(--accent);
}
.index-num {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--muted);
  width: 28px;
  flex-shrink: 0;
  transition: color 0.18s var(--ease-out-quart), transform 0.22s var(--ease-out-quint);
}
.index-title { font-size: 15px; }
.index-desc {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--muted);
  margin-left: auto;
  letter-spacing: 0.06em;
  transition: color 0.18s var(--ease-out-quart), transform 0.22s var(--ease-out-quint);
}

/* ── WORK LIST ──────────────────────── */
.work-list { margin-top: 0; }
.work-item {
  padding: 24px 0;
  border-bottom: 1px solid var(--rule);
  transition: border-color 0.22s var(--ease-out-quart);
}
.work-item:first-child { border-top: 1px solid var(--rule); }
.work-meta {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}
.work-title {
  font-size: clamp(1.2rem, 2.4vw, 1.65rem);
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 10px;
  line-height: 1.24;
  transition: transform 0.22s var(--ease-out-quint), color 0.18s var(--ease-out-quart);
}
.work-title a { transition: color 0.15s; }
.work-title a:hover { color: var(--accent); }
.work-desc {
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 56ch;
}
.work-taxonomy {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 12px;
  transition: color 0.18s var(--ease-out-quart), transform 0.22s var(--ease-out-quint);
}

.work-item:hover,
.work-item:focus-within {
  border-bottom-color: var(--rule-strong);
}

.work-item:hover .work-title,
.work-item:focus-within .work-title {
  transform: translateX(2px);
}

.work-item:hover .work-taxonomy,
.work-item:focus-within .work-taxonomy {
  transform: translateX(2px);
}

/* ── NOW LIST ───────────────────────── */
.now-list { margin-top: 0; }
.now-item {
  display: flex;
  align-items: baseline;
  gap: 24px;
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
}
.now-item:first-child { border-top: 1px solid var(--rule); }
.now-tag {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  width: 88px;
  flex-shrink: 0;
}
.now-text {
  font-size: 15px;
  color: var(--ink);
  line-height: 1.55;
  transition: transform 0.22s var(--ease-out-quint);
}
.now-text em { font-style: italic; }
.now-item:hover .now-text { transform: translateX(2px); }
.now-updated {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--muted);
  margin-top: 28px;
}

/* ── WRITING LIST (Thoughts / Ideas) ── */
.writing-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--rule);
}
.writing-item:first-child { border-top: 1px solid var(--rule); }
.writing-date {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 5px;
  letter-spacing: 0.08em;
}
.writing-title {
  font-size: clamp(1.2rem, 2.4vw, 1.65rem);
  color: var(--ink);
  line-height: 1.24;
  transition: color 0.18s var(--ease-out-quart), transform 0.22s var(--ease-out-quint);
}
.writing-item:hover .writing-title,
.writing-item:focus-within .writing-title {
  transform: translateX(2px);
}
.writing-desc {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
  max-width: 52ch;
  line-height: 1.55;
}
.idea-source {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 7px;
}

/* ── ME PAGE ────────────────────────── */
.me-section { margin-bottom: 56px; }
.me-section-label {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule);
}

/* Vinyl records */
.vinyl-scroll-wrap {
  position: relative;
  margin-left: -18px;
  margin-right: -18px;
}
.vinyl-scroll-wrap::before,
.vinyl-scroll-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 28px;
  width: 18px;
  background: var(--bg);
  pointer-events: none;
  z-index: 8;
}
.vinyl-scroll-wrap::before {
  left: 0;
}
.vinyl-scroll-wrap::after {
  right: 0;
}
.vinyl-scroll-hint {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-top: 10px;
  margin-left: 18px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.vinyl-scroll-hint::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--muted);
  opacity: 0.5;
}
.vinyl-row {
  display: flex;
  gap: 28px;
  overflow-x: auto;
  overflow-y: visible;
  padding: 18px 18px 26px;
  scrollbar-width: none;
  cursor: grab;
  user-select: none;
}
.vinyl-row:active { cursor: grabbing; }
.vinyl-row::-webkit-scrollbar { display: none; }
.vinyl-card {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 130px;
}
.vinyl-disc {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  position: relative;
  background: none;
  overflow: visible;
  cursor: default;
}
.vinyl-disc.has-audio {
  cursor: pointer;
}
.vinyl-disc:focus-visible {
  outline: none;
}
.spin-surface {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #1a1a18;
  background-size: cover;
  background-position: center;
  animation: vinyl-spin 7s linear infinite paused;
}
.spin-surface::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: repeating-radial-gradient(
    circle at 50% 50%,
    transparent 0px, transparent 6px,
    rgba(0,0,0,0.07) 6px, rgba(0,0,0,0.07) 7px
  );
  z-index: 1;
  pointer-events: none;
}
.spin-surface::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(120deg, rgba(255,255,255,0.22) 0%, rgba(255,255,255,0.06) 38%, transparent 62%);
  z-index: 2;
  pointer-events: none;
  transition: transform 380ms var(--ease-out-quint), opacity 280ms var(--ease-out-quart);
}
.vinyl-disc.has-audio:hover .spin-surface,
.vinyl-disc.has-audio:focus-visible .spin-surface,
.vinyl-card.is-playing .spin-surface {
  animation-play-state: running;
}
.vinyl-disc.has-audio:hover .spin-surface::after,
.vinyl-disc.has-audio:focus-visible .spin-surface::after,
.vinyl-card.is-playing .spin-surface::after {
  transform: translateX(16px);
  opacity: 1;
}
.vinyl-hole {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--bg);
  z-index: 4;
  box-shadow: 0 0 0 1.5px rgba(26,26,24,0.15);
  transition: width 220ms var(--ease-out-quint), height 220ms var(--ease-out-quint), background-color 220ms var(--ease-out-quint), box-shadow 220ms var(--ease-out-quint), transform 220ms var(--ease-out-quint), opacity 220ms var(--ease-out-quint);
}
.vinyl-disc.loading {
  background: #2a2a28;
  animation: shimmer 1.4s ease-in-out infinite, vinyl-spin 4s linear infinite paused;
}
@keyframes shimmer {
  0%, 100% { opacity: 0.6; }
  50%       { opacity: 1; }
}
.vinyl-info { text-align: center; }
.vinyl-album {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.3;
  max-width: 110px;
}
.vinyl-artist {
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--muted);
  margin-top: 3px;
  letter-spacing: 0.06em;
  transition: color 0.18s var(--ease-out-quart);
}

.cue {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 180ms var(--ease-out-quart), transform 180ms var(--ease-out-quart);
}
.cue-play {
  clip-path: polygon(34% 24%, 34% 76%, 76% 50%);
  background: rgba(26, 26, 24, 0.84);
  transform: scale(0.84);
}
.cue-pause::before,
.cue-pause::after {
  content: '';
  position: absolute;
  top: 24%;
  bottom: 24%;
  width: 18%;
  background: rgba(245, 242, 238, 0.92);
}
.cue-pause::before { left: 28%; }
.cue-pause::after { right: 28%; }
.orbit {
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  z-index: 3;
  pointer-events: none;
  opacity: 0;
  transform: scale(0.98);
  transition: opacity 220ms var(--ease-out-quart), transform 220ms var(--ease-out-quint);
}
.orbit-soft {
  border: 1px solid transparent;
}
.orbit-trace {
  border: 1px solid transparent;
  background:
    conic-gradient(from 20deg, transparent 0deg 250deg, rgba(192,57,43,0.18) 250deg 336deg, transparent 336deg 360deg)
    border-box;
  mask:
    radial-gradient(farthest-side, transparent calc(100% - 1px), #000 calc(100% - 1px))
    border-box;
}
.vinyl-disc.has-audio:hover .orbit-soft,
.vinyl-disc.has-audio:focus-visible .orbit-soft,
.vinyl-card.is-playing .orbit-soft {
  opacity: 1;
  transform: scale(1.02);
  border-color: color-mix(in srgb, var(--ink) 14%, transparent);
}
.vinyl-disc.has-audio:hover .orbit-trace,
.vinyl-disc.has-audio:focus-visible .orbit-trace,
.vinyl-card.is-playing .orbit-trace {
  opacity: 1;
  transform: scale(1);
}
.vinyl-disc.has-audio:hover .vinyl-hole,
.vinyl-disc.has-audio:focus-visible .vinyl-hole {
  width: 14px;
  height: 14px;
  box-shadow: 0 0 0 5px rgba(26, 26, 24, 0.05);
}
.vinyl-disc.has-audio:hover .cue-play,
.vinyl-disc.has-audio:focus-visible .cue-play {
  opacity: 0.36;
}
.vinyl-card.is-playing .vinyl-album::before {
  content: '● ';
  color: var(--accent);
  font-size: 8px;
  vertical-align: middle;
}
.vinyl-card.is-playing .vinyl-hole {
  width: 19px;
  height: 19px;
  background: rgba(24, 24, 22, 0.9);
  box-shadow: 0 0 0 8px rgba(192, 57, 43, 0.08);
}
.vinyl-card.is-playing .cue-pause {
  opacity: 0.92;
}
.vinyl-card.is-playing .vinyl-artist {
  color: color-mix(in srgb, var(--muted) 65%, var(--accent));
}

@keyframes vinyl-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Media on Me page */
.film-stage-row,
.show-row,
.game-row {
  width: 100%;
  border: 0;
  background: none;
  padding: 16px 0;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 14px;
  text-align: left;
  cursor: pointer;
}
.film-stage-row:focus-visible,
.show-row:focus-visible,
.game-row:focus-visible {
  outline: none;
}
.film-num {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--muted);
  padding-top: 4px;
}
.film-stage-name,
.show-name,
.game-name {
  font-size: clamp(1.08rem, 2.15vw, 1.38rem);
  line-height: 1.2;
  color: var(--ink);
  transition: transform 0.22s var(--ease-out-quint), color 0.18s var(--ease-out-quart);
}
.film-stage-row:hover .film-stage-name,
.film-stage-row:focus-visible .film-stage-name,
.film-stage-row.is-selected .film-stage-name,
.show-row:hover .show-name,
.show-row:focus-visible .show-name,
.show-row.is-selected .show-name,
.game-row:hover .game-name,
.game-row:focus-visible .game-name,
.game-row.is-selected .game-name {
  transform: translateX(2px);
}
.film-stage-row:focus-visible,
.show-row:focus-visible,
.game-row:focus-visible {
  outline: none;
}
.film-meta,
.show-meta,
.game-card-meta {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.film-note,
.show-note,
.game-card-note {
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
}

.film-stage {
  display: grid;
  gap: 20px;
}
.film-stage-screen {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 26px;
  background: color-mix(in srgb, var(--bg) 72%, white);
  border: 1px solid rgba(26,26,24,0.06);
}
.film-stage-frame {
  background-size: cover;
  background-position: center;
  border-radius: 22px;
  position: relative;
  overflow: hidden;
}
.film-stage-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.06), rgba(0,0,0,0.24));
}
.film-stage-frame-wide {
  aspect-ratio: 16 / 10;
}
.film-stage-frame-poster {
  aspect-ratio: 3 / 4;
}
.film-stage-copy {
  display: grid;
  gap: 6px;
}
.film-stage-copy h3 {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: clamp(1.55rem, 2.55vw, 2.1rem);
  line-height: 1.02;
}
.film-stage-list {
  display: grid;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.film-stage-row {
  border-bottom: 1px solid var(--rule);
}
.film-stage-row:last-child {
  border-bottom: 0;
}
.film-stage-row:hover,
.film-stage-row:focus-visible,
.film-stage-row.is-selected {
  background: color-mix(in srgb, var(--bg) 70%, white);
}
.film-stage-row.is-selected .film-num {
  color: var(--accent);
}

.ledger {
  display: grid;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.ledger-row {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 14px;
  padding: 16px 0 15px;
  border-bottom: 1px solid var(--rule);
}
.ledger-row:last-child {
  border-bottom: 0;
}
.ledger-body {
  display: grid;
  gap: 6px;
}
.ledger-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}
.ledger-title {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  line-height: 1.2;
}
.ledger-meta {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.ledger-note {
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
}
.ledger-games .ledger-title {
  font-size: clamp(1.14rem, 2.15vw, 1.46rem);
}
.ledger-games .ledger-meta {
  letter-spacing: 0.12em;
}

.me-section-intro {
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
  margin: 10px 0 16px;
}

.film-stage-screen.poster-godfather .film-stage-frame {
  background-image: url("img/media/films/godfather.webp");
}
.film-stage-screen.poster-dark-knight .film-stage-frame {
  background-image: url("img/media/films/dark-knight.webp");
}
.film-stage-screen.poster-goodfellas .film-stage-frame {
  background-image: url("img/media/films/goodfellas.webp");
}
.film-stage-screen.poster-taxi-driver .film-stage-frame {
  background-image: url("img/media/films/taxi-driver.webp");
}
.film-stage-screen.poster-baahubali .film-stage-frame {
  background-image: url("img/media/films/baahubali.webp");
}
.film-stage-screen.poster-kantara .film-stage-frame {
  background-image: url("img/media/films/kantara.webp");
}
.film-stage-screen.poster-sse .film-stage-frame {
  background-image: url("img/media/films/sse.webp");
}
.film-stage-screen.poster-ford-ferrari .film-stage-frame {
  background-image: url("img/media/films/ford-v-ferrari.webp");
}
.film-stage-screen.poster-interstellar .film-stage-frame {
  background-image: url("img/media/films/interstellar.webp");
}

/* ── FOOTER ─────────────────────────── */
footer {
  padding: 64px 0 48px;
  margin-top: 64px;
  border-top: 1px solid var(--rule);
}
footer .col {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.footer-name {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: 22px;
  color: var(--ink);
}
.footer-links { display: flex; gap: 20px; }
.footer-links a {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.15s var(--ease-out-quart);
}
.footer-links a:hover { color: var(--ink); }

/* ── WORK LIVE LINK ─────────────────── */
.work-live-link {
  display: inline-block;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 10px;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 1px;
  transition: color 0.15s var(--ease-out-quart), border-color 0.15s var(--ease-out-quart), transform 0.2s var(--ease-out-quint);
}
.work-live-link:hover { color: var(--accent); border-color: var(--accent); transform: translateX(2px); }

/* ── RESUME LINK ────────────────────── */
.resume-link {
  display: inline-block;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid currentColor;
  margin-top: 20px;
  padding-bottom: 2px;
  transition: color 0.15s var(--ease-out-quart), border-color 0.15s var(--ease-out-quart), transform 0.2s var(--ease-out-quint);
}
.resume-link:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
  transform: translateX(2px);
}

/* ── EMPTY STATE (content-gated pages) ─ */
.empty-state {
  padding: 48px 0;
  border-top: 1px solid var(--rule);
}
.empty-state p {
  font-size: 15px;
  color: var(--muted);
  max-width: 40ch;
  line-height: 1.65;
}

.build-item {
  transition: border-color 0.22s var(--ease-out-quart);
}

.build-title,
.build-link {
  transition: color 0.18s var(--ease-out-quart), border-color 0.18s var(--ease-out-quart), transform 0.22s var(--ease-out-quint);
}

.build-item:hover,
.build-item:focus-within {
  border-bottom-color: var(--rule-strong);
}

.build-item:hover .build-title,
.build-item:focus-within .build-title {
  transform: translateX(2px);
}

.build-item:hover .build-link,
.build-item:focus-within .build-link {
  transform: translateX(2px);
}

@keyframes reveal-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes copied-flash {
  0% {
    color: var(--ink);
    transform: translateY(0);
  }
  45% {
    color: var(--accent);
    transform: translateY(-1px);
  }
  100% {
    color: var(--ink);
    transform: translateY(0);
  }
}

/* ── RESPONSIVE ─────────────────────── */
@media (max-width: 720px) {
  :root { --pad: var(--pad-m); }
  nav .col { gap: 14px; flex-wrap: wrap; }
  nav a.nav-link { font-size: 10px; padding: 2px 0; }
  .hero-name { font-size: clamp(44px, 12vw, 72px); }
  .bio p { font-size: 16px; }
  .vinyl-scroll-wrap {
    margin-left: -10px;
    margin-right: -10px;
  }
  .vinyl-scroll-wrap::before,
  .vinyl-scroll-wrap::after {
    width: 10px;
  }
  .vinyl-disc { width: 108px; height: 108px; }
  .vinyl-card { width: 108px; }
  .vinyl-row { padding-left: 10px; padding-right: 10px; }
  .vinyl-scroll-hint { margin-left: 10px; }
  .film-stage-frame { border-radius: 20px; }
  .film-stage-screen { order: -1; }
  .ledger-top { display: grid; gap: 6px; }
  .ledger-meta { white-space: normal; }
  footer .col { flex-direction: column; gap: 20px; }
  .footer-links { flex-wrap: wrap; gap: 14px; }
  .now-item { flex-direction: column; gap: 4px; }
  .now-tag { width: auto; }
}

@media (min-width: 780px) {
  .film-stage-poster {
    grid-template-columns: 284px minmax(0, 1fr);
    align-items: start;
  }

  .film-stage-poster .film-stage-screen {
    position: sticky;
    top: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal-step,
  .scroll-reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}
