/* =================================================================
   Component + page styles
   ================================================================= */

/* ---------- NAV ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in oklch, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: background var(--dur) var(--ease);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.monogram {
  width: 34px; height: 34px; display: grid; place-items: center;
  border: 1px solid var(--ink); border-radius: 50%;
  font-family: var(--serif); font-size: 19px; font-weight: 600; line-height: 1;
  transition: all 0.4s var(--ease);
}
.brand:hover .monogram { background: var(--ink); color: var(--bg); }
.brand-name { font-family: var(--serif); font-size: 21px; font-weight: 600; letter-spacing: -0.01em; }
.brand-role { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-3); margin-top: 1px; }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-link {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-2); padding: 9px 14px; border-radius: var(--radius);
  transition: color 0.25s var(--ease), background 0.25s var(--ease), box-shadow 0.3s var(--ease), text-shadow 0.3s var(--ease);
  position: relative;
}
.nav-link:hover {
  color: var(--ink);
  background: var(--accent-soft);
  box-shadow: 0 0 12px var(--accent-soft), inset 0 0 0 1px color-mix(in oklch, var(--accent) 22%, transparent);
  text-shadow: 0 0 8px color-mix(in oklch, var(--accent) 45%, transparent);
}
.nav-link.active { color: var(--accent); }
.nav-link.active::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 1.5px; background: var(--accent);
}

.nav-burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-burger span { width: 22px; height: 1.5px; background: var(--ink); transition: 0.3s var(--ease); }
.nav-burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
.nav-mobile { display: none; }

.theme-toggle {
  background: none; border: 1px solid var(--line-2); color: var(--ink-2);
  width: 34px; height: 34px; border-radius: 50%; cursor: pointer; display: grid; place-items: center;
  margin-left: 8px; transition: 0.3s var(--ease); font-size: 14px;
}
.theme-toggle:hover { border-color: var(--ink); color: var(--ink); }

/* ---------- SPLASH ---------- */
.splash {
  min-height: 100svh; position: relative; display: flex; flex-direction: column;
  overflow: hidden;
}
.splash-media { position: absolute; inset: 0; z-index: 0; }

/* background slideshow */
.splash-show { position: absolute; inset: 0; overflow: hidden; }
.splash-show-base { position: absolute; inset: 0; z-index: 0; }
.splash-show-frame {
  position: absolute; inset: 0; z-index: 1;
  /* No size pop on crossfade: the ken-burns is a PAUSED animation that only
     advances while .active (via animation-play-state), instead of being added
     on .active and removed on exit. Removing a running animation reverts the
     transform to its base value WITHOUT a transition (transitions don't fire
     off an animated value) — that snap is the pop. Pausing instead FREEZES the
     current scale, so the outgoing frame holds its size and just fades out;
     re-activating resumes from the frozen scale, also pop-free. */
  opacity: 0; transform: scale(1.08);
  transition: opacity 3.8s var(--ease);
}
.splash-show-frame.active { opacity: 1; }
.splash-show-frame image-slot { pointer-events: none; }
@media (prefers-reduced-motion: no-preference) {
  .splash-show-frame { transform: scale(1.04); animation: splash-kenburns 16s linear forwards paused; }
  .splash-show-frame.active { animation-play-state: running; }
}
@keyframes splash-kenburns {
  from { transform: scale(1.04); }
  to   { transform: scale(1.18); }
}

.splash-veil {
  position: absolute; inset: 0; z-index: 1;
  -webkit-backdrop-filter: blur(3.1px) saturate(1.03);
  backdrop-filter: blur(3.1px) saturate(1.03);
  /* small soft frost behind the top kickers (top band halved) + lower band (halved) */
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 1%, transparent 9%, transparent 68%, #000 89%, #000 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 1%, transparent 9%, transparent 68%, #000 89%, #000 100%);
  background: linear-gradient(180deg,
    color-mix(in oklch, var(--bg) 10%, transparent) 0%,
    transparent 16%,
    color-mix(in oklch, var(--bg) 5%, transparent) 46%,
    color-mix(in oklch, var(--bg) 24%, transparent) 100%);
}
/* ---- dynamic foreground contrast ----
   JS samples the brightness of the photo behind the lower-left text cluster
   and tags .splash with .bg-dark (light type) or .bg-light (dark type). The
   --splash-fg vars + a soft legibility scrim cross-fade with the slideshow so
   the name/roles/tagline never get lost against a busy frame.
   --splash-scrim is always-on (subtle) and strengthens on detected dark frames.
   bg-light uses dark ink so no shadow is needed there. */
.splash {
  --splash-fg:   var(--ink);
  --splash-fg-2: var(--ink-2);
  --splash-fg-3: var(--ink-3);
  --splash-scrim: 0 1px 3px rgba(0,0,0,0.30), 0 3px 20px rgba(0,0,0,0.20);
}
.splash.bg-dark {
  --splash-fg:   oklch(0.93 0.010 85);
  --splash-fg-2: oklch(0.85 0.010 85);
  --splash-fg-3: oklch(0.74 0.010 85);
  --splash-scrim: 0 1px 2px rgba(0,0,0,0.62), 0 2px 28px rgba(0,0,0,0.52);
}
.splash.bg-light {
  --splash-fg:   oklch(0.28 0.018 60);
  --splash-fg-2: oklch(0.38 0.016 60);
  --splash-fg-3: oklch(0.50 0.014 62);
  --splash-scrim: none;
}
.splash-name,
.splash-body .lead,
.splash-role,
.splash-tc,
.splash-enter,
.splash-top .kicker { transition: color 0.8s var(--ease), text-shadow 0.8s var(--ease); }

.splash-name { color: var(--splash-fg); text-shadow: var(--splash-scrim); }
.splash-body .lead { color: var(--splash-fg-2); text-shadow: var(--splash-scrim); }
.splash-roles .splash-role { color: var(--splash-fg-2); text-shadow: var(--splash-scrim); }
.splash-tc, .splash-tc .tc-digits { color: var(--splash-fg-3); }
.splash-enter { color: var(--splash-fg-3); }
.splash-enter .kicker { color: var(--splash-fg-3); }

/* buttons + social icons pick up the adaptive ink on a dark frame */
.splash.bg-dark .splash-body .btn {
  border-color: color-mix(in oklch, var(--splash-fg) 70%, transparent);
  color: var(--splash-fg); text-shadow: none;
}
.splash.bg-dark .splash-body .btn:hover { background: var(--splash-fg); color: oklch(0.2 0.02 60); border-color: var(--splash-fg); }
.splash.bg-dark .splash-body .btn-ghost { border-color: color-mix(in oklch, var(--splash-fg) 38%, transparent); color: var(--splash-fg-2); }
.splash.bg-dark .splash-body .social-btn { border-color: color-mix(in oklch, var(--splash-fg) 38%, transparent); color: var(--splash-fg-2); }
.splash.bg-dark .splash-body .social-btn:hover { background: var(--splash-fg); color: oklch(0.2 0.02 60); border-color: var(--splash-fg); }
.splash.bg-dark .splash-body .social-sep { color: var(--splash-fg-3); }

.splash-top { position: relative; z-index: 2; padding-top: 30px; }
.splash-top .kicker { color: var(--accent); text-shadow: 1px 1px 0 rgba(0,0,0,0.75), 0 2px 10px rgba(0,0,0,0.45); }
.splash.bg-light .splash-top .kicker { text-shadow: 1px 1px 0 rgba(0,0,0,0.55), 0 1px 6px rgba(0,0,0,0.3); }
.splash-top-inner { display: flex; justify-content: space-between; align-items: center; }
.splash-body { position: relative; z-index: 2; flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: clamp(16px, 2.4vh, 30px); padding-bottom: clamp(30px, 5vw, 70px); min-height: 0; }
/* bottom-third cluster scaled to 60% (40% smaller), pinned to lower-left so it
   stays anchored where the eye expects it. Whole cluster scales up gently on
   hover. */
.splash-body { transform: scale(0.6); transform-origin: 0 100%; transition: transform 0.55s var(--ease); will-change: transform; }
.splash-body:hover { transform: scale(1); }
.splash-name { font-family: var(--serif); font-weight: 500; line-height: 1.08; letter-spacing: -0.02em; font-size: clamp(34px, min(7.7vw, 9.8vh), 115px); }
.splash-roles { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.splash-role { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2); }
.splash-role .dot { width: 7px; height: 7px; border-radius: 50%; }
.splash-enter { position: relative; z-index: 2; padding-bottom: 24px; display: flex; justify-content: space-between; align-items: flex-end; }
.splash-tc { font-family: var(--mono); font-size: 12.1px; letter-spacing: 0.1em; color: var(--ink-3); display: inline-flex; align-items: center; gap: 8px; }
.splash-tc .tc-digits { color: var(--ink-2); font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }
.splash-tc .tc-fps { color: var(--ink-2); }
.splash-tc .tc-rec {
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 0 color-mix(in oklch, var(--accent) 60%, transparent);
  animation: tc-rec 1.6s var(--ease) infinite;
}
@keyframes tc-rec {
  0%   { opacity: 1;   box-shadow: 0 0 0 0 color-mix(in oklch, var(--accent) 55%, transparent); }
  70%  { opacity: 0.35; box-shadow: 0 0 0 6px color-mix(in oklch, var(--accent) 0%, transparent); }
  100% { opacity: 1;   box-shadow: 0 0 0 0 color-mix(in oklch, var(--accent) 0%, transparent); }
}
@media (prefers-reduced-motion: reduce) {
  .splash-tc .tc-rec { animation: none; }
}

/* running timecode — floats top-center, above everything, on every page but splash */
.tc-top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 300;
  height: 68px; display: flex; align-items: center; justify-content: center;
  pointer-events: none;
}
.tc-top .nav-tc { pointer-events: auto; }
.nav-tc {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em;
  color: var(--ink-3);
}
.nav-tc .tc-digits { color: var(--ink-2); font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }
.nav-tc .tc-rec {
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
  animation: tc-rec 1.6s var(--ease) infinite;
}

/* footer timecode — inline inside the meta line */
.footer-tc { font: inherit; letter-spacing: inherit; color: inherit; }
.footer-tc .tc-digits { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }
@media (prefers-reduced-motion: reduce) {
  .nav-tc .tc-rec { animation: none; }
}

@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(7px); } }
.scrollcue { display: inline-flex; flex-direction: column; align-items: center; gap: 8px; cursor: pointer; }
.scrollcue .chev { animation: floaty 2.2s var(--ease) infinite; }
@media (prefers-reduced-motion: reduce) { .scrollcue .chev { animation: none; } }

/* ---------- GRADE REVEAL (before/after slider) ---------- */
.grade {
  position: relative; width: 100%; overflow: hidden; user-select: none; cursor: ew-resize;
  border: 1px solid var(--line); background: var(--surface-2);
}
.grade-layer { position: absolute; inset: 0; }
.grade-after { z-index: 1; }
.grade-before { z-index: 2; }
.grade-tag {
  position: absolute; top: 14px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em;
  text-transform: uppercase; padding: 4px 9px; background: color-mix(in oklch, var(--bg) 70%, transparent);
  backdrop-filter: blur(4px); border: 1px solid var(--line); border-radius: 2px; z-index: 4;
}
.grade-handle { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--bg); z-index: 5; pointer-events: none; box-shadow: 0 0 0 1px color-mix(in oklch, var(--ink) 25%, transparent); }
.grade-knob {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 42px; height: 42px; border-radius: 50%; background: var(--bg); border: 1px solid var(--ink);
  display: grid; place-items: center; font-family: var(--mono); font-size: 13px; color: var(--ink);
}

/* ---------- POST CARDS ---------- */
.posts-list { display: flex; flex-direction: column; }
.post-row {
  display: grid; grid-template-columns: 96px 1fr auto; gap: 28px; align-items: baseline;
  padding: 26px 0; border-top: 1px solid var(--line); cursor: pointer;
  transition: background 0.3s var(--ease);
}
.post-row:last-child { border-bottom: 1px solid var(--line); }
.post-row:hover { background: var(--surface-2); }
.post-row:hover .post-title { color: var(--accent); }
.post-num { font-family: var(--mono); font-size: 12px; color: var(--ink-3); }
.post-title { font-family: var(--serif); font-size: clamp(24px, 3vw, 36px); font-weight: 500; line-height: 1.05; transition: color 0.3s var(--ease); letter-spacing: -0.01em; }
.post-excerpt { color: var(--ink-2); margin-top: 8px; max-width: 60ch; font-size: 15.5px; }
.post-side { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }

.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(20px, 3vw, 40px); }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; cursor: pointer; transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.45s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 24px 48px -28px color-mix(in oklch, var(--ink) 40%, transparent); border-color: var(--line-2); }
.card-body { padding: 22px 24px 26px; }
.card-title { font-family: var(--serif); font-size: 27px; font-weight: 500; line-height: 1.08; margin-top: 6px; transition: color 0.3s var(--ease); }
.card:hover .card-title { color: var(--accent); }

/* ---------- BLOG ---------- */
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filter {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 9px 16px; border: 1px solid var(--line-2); border-radius: 100px; color: var(--ink-2);
  background: transparent; cursor: pointer; transition: 0.3s var(--ease);
}
.filter:hover { border-color: var(--ink); color: var(--ink); }
.filter.active { background: var(--ink); border-color: var(--ink); color: var(--bg); }

/* ---------- ALBUM ---------- */
.album-grid { columns: 3; column-gap: clamp(14px, 1.6vw, 22px); }
.album-grid > * { break-inside: avoid; margin-bottom: clamp(14px, 1.6vw, 22px); }
.album-item { position: relative; cursor: pointer; overflow: hidden; border: 1px solid var(--line); }
.album-item .ph, .album-item image-slot { transition: transform 0.7s var(--ease); }
.album-item:hover .ph, .album-item:hover image-slot { transform: scale(1.04); }
.album-item-cap {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 16px; opacity: 0; transition: opacity 0.4s var(--ease); pointer-events: none;
  background: linear-gradient(to top, color-mix(in oklch, var(--ink) 80%, transparent), transparent 60%);
}
.album-item:hover .album-item-cap { opacity: 1; }
.album-item-cap .t { font-family: var(--serif); font-size: 20px; color: oklch(0.96 0.01 80); }
.album-item-cap .m { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em; color: oklch(0.85 0.01 80); text-transform: uppercase; }

/* projects — imdb credits link */
.imdb-credits-link {
  display: flex; width: fit-content; align-items: center; gap: 8px;
  margin: 18px auto 0;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-2); text-decoration: none;
  padding: 8px 14px 8px 10px;
  border: 1px solid var(--line); border-radius: var(--radius);
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease),
              background 0.3s var(--ease), box-shadow 0.3s var(--ease),
              transform 0.3s var(--ease);
}
.imdb-credits-link:hover {
  color: oklch(0.82 0.14 84);
  border-color: oklch(0.82 0.14 84 / 0.55);
  background: oklch(0.82 0.14 84 / 0.07);
  box-shadow: 0 0 16px oklch(0.82 0.14 84 / 0.22);
  transform: translateY(-1px);
}
.imdb-credits-link svg { flex-shrink: 0; transition: opacity 0.3s var(--ease); }
.imdb-credits-link:hover svg { opacity: 0.95; }
.imdb-credits-link .arrow { transition: transform 0.3s var(--ease); }
.imdb-credits-link:hover .arrow { transform: translateX(3px); }

/* projects grid */
.project-role-head {
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent);
  margin-bottom: clamp(20px, 3vw, 32px);
  padding-bottom: 12px; border-bottom: 1px solid var(--line);
}
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: clamp(24px, 4vw, 40px) clamp(16px, 2.5vw, 28px);
}
.project-card {
  display: flex; flex-direction: column; gap: 10px;
  text-decoration: none; color: inherit;
}
.project-poster {
  border-radius: calc(var(--radius) + 1px);
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.project-card:hover .project-poster {
  transform: translateY(-5px);
  box-shadow: 0 18px 40px -12px color-mix(in oklch, var(--ink) 38%, transparent);
}
.project-info { display: flex; flex-direction: column; gap: 3px; }
.project-title { font-family: var(--serif); font-size: 14px; line-height: 1.35; color: var(--ink); }
.project-year { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em; color: var(--ink-3); }
@media (max-width: 480px) {
  .projects-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
}

/* lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 8000; background: color-mix(in oklch, oklch(0.12 0.01 60) 92%, transparent);
  backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; padding: 4vw;
  opacity: 0; pointer-events: none; transition: opacity 0.4s var(--ease);
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox-inner { max-width: min(1320px, 94vw); width: 100%; display: flex; flex-direction: column; align-items: center; }
.lightbox-frame { width: 100%; aspect-ratio: 3/2; }
/* Lightbox photo: shown at natural aspect, scaled to the largest size that
   fits both the width and the viewport height — no crop, full stored quality. */
.lb-photo { display: block; max-width: 100%; max-height: 84vh; width: auto; height: auto;
  object-fit: contain; box-shadow: 0 24px 60px rgba(0,0,0,0.5); }
.lightbox-meta { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-top: 18px; width: 100%; color: oklch(0.9 0.01 80); flex-wrap: wrap; }
.lb-close, .lb-nav { position: absolute; background: none; border: 1px solid oklch(0.6 0.01 80 / 0.5); color: oklch(0.92 0.01 80); width: 46px; height: 46px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; font-size: 18px; transition: 0.3s var(--ease); }
.lb-close:hover, .lb-nav:hover { border-color: oklch(0.92 0.01 80); }
.lb-close { top: 4vw; right: 4vw; }
.lb-nav.prev { left: 2vw; top: 50%; transform: translateY(-50%); }
.lb-nav.next { right: 2vw; top: 50%; transform: translateY(-50%); }

/* ---------- PAGE HEADER ---------- */
.page-head { padding: clamp(50px, 8vw, 100px) 0 clamp(34px, 5vw, 60px); }
.page-title { font-family: var(--serif); font-weight: 500; font-size: clamp(46px, 8vw, 110px); line-height: 0.92; letter-spacing: -0.02em; }

/* ---------- NOW / lists ---------- */
.now-grid { display: grid; grid-template-columns: 200px 1fr; gap: clamp(16px, 3vw, 50px); padding: 30px 0; border-top: 1px solid var(--line); }
.now-grid:last-child { border-bottom: 1px solid var(--line); }

.work-row { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; padding: 24px 0; border-top: 1px solid var(--line); transition: 0.3s var(--ease); }
.work-row:last-child { border-bottom: 1px solid var(--line); }
.work-row:hover { padding-left: 12px; }
.work-row:hover .work-title { color: var(--accent); }
.work-title { font-family: var(--serif); font-size: clamp(22px, 2.6vw, 32px); font-weight: 500; transition: color 0.3s var(--ease); }

/* ---------- links page ---------- */
.links-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.link-card {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); transition: 0.35s var(--ease); cursor: pointer;
}
.link-card:hover { background: var(--ink); color: var(--bg); transform: translateY(-2px); }
.link-card:hover .faint, .link-card:hover .meta { color: color-mix(in oklch, var(--bg) 70%, transparent); }

/* ---------- contact ---------- */
.contact-mail { font-family: var(--serif); font-size: clamp(30px, 6vw, 76px); font-weight: 500; line-height: 1; letter-spacing: -0.02em; transition: color 0.3s var(--ease); display: inline-block; }
.contact-mail:hover { color: var(--accent); }

/* ---------- FOOTER ---------- */
.footer { border-top: 1px solid var(--line); padding-top: 50px; padding-bottom: 40px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; margin-bottom: 50px; }
.footer-col h4 { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 16px; font-weight: 500; }
.footer-col a { display: block; color: var(--ink-2); padding: 5px 0; transition: color 0.25s var(--ease); font-size: 15px; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding-top: 22px; border-top: 1px solid var(--line); }

/* ---------- page transition ---------- */
/* Animate transform only — base opacity stays 1 so content is NEVER hidden
   when the animation doesn't run to completion (print/PDF, background tabs,
   capture contexts). */
.page { animation: pagein 0.5s var(--ease) both; }
@keyframes pagein { from { transform: translateY(8px); } to { transform: none; } }
@media print, (prefers-reduced-motion: reduce) {
  .page { animation: none !important; transform: none !important; opacity: 1 !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .album-grid { columns: 2; }
}
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .nav-mobile {
    position: fixed; inset: 68px 0 0; z-index: 99; background: var(--bg);
    display: flex; flex-direction: column; padding: 24px var(--gutter);
    transform: translateX(100%); transition: transform 0.45s var(--ease); border-top: 1px solid var(--line);
  }
  .nav-mobile.open { transform: none; }
  .nav-mobile a { font-family: var(--serif); font-size: 34px; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--ink); }
  .nav-mobile a.active { color: var(--accent); }
  .feature-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .now-grid { grid-template-columns: 1fr; gap: 8px; }
  .links-grid { grid-template-columns: 1fr; }
  .post-row { grid-template-columns: 1fr; gap: 6px; }
  .post-side { align-items: flex-start; text-align: left; flex-direction: row; gap: 14px; margin-top: 8px; }
  .post-num { display: none; }
}
@media (max-width: 600px) {
  /* The centered floating timecode (.tc-top) and the brand name compete for
     the narrow header. Collapse the brand to just the monogram so the
     timecode keeps the center clear — the logo still links to the splash. */
  .brand > :not(.monogram) { display: none; }
}
@media (max-width: 560px) {
  .album-grid { columns: 1; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}
