/* ═════════════════════════════════════════════════════════════
   MARSHALL — monochrome foundation (REDESIGN.md, sitting 1)
   Paper + ink, one accent. Satoshi display, Plex Mono annotations.
   ═════════════════════════════════════════════════════════════ */

/* ── Fonts (self-hosted) ─────────────────────────────────────── */
@font-face { font-family:'Satoshi'; src:url('../fonts/satoshi-500.woff2') format('woff2'); font-weight:500; font-display:swap; }
@font-face { font-family:'Satoshi'; src:url('../fonts/satoshi-700.woff2') format('woff2'); font-weight:700; font-display:swap; }
@font-face { font-family:'Satoshi'; src:url('../fonts/satoshi-900.woff2') format('woff2'); font-weight:900; font-display:swap; }
@font-face { font-family:'Plex Mono'; src:url('../fonts/plexmono-400.woff2') format('woff2'); font-weight:400; font-display:swap; }
@font-face { font-family:'Plex Mono'; src:url('../fonts/plexmono-500.woff2') format('woff2'); font-weight:500; font-display:swap; }

/* ── Tokens ──────────────────────────────────────────────────── */
:root {
  --paper:    #f4f2ee;
  --ink:      #141312;
  --ink-60:   #5d5a55;
  --ink-30:   #b9b5ae;
  --hairline: #e2dfd9;
  --cinder:   #c44c16;   /* the one accent: links, active, play, focus */

  --font-display: 'Satoshi', -apple-system, sans-serif;
  --font-mono:    'Plex Mono', ui-monospace, 'SF Mono', monospace;

  /* legacy aliases — kept component CSS reads these */
  --bg:        var(--paper);
  --text:      var(--ink);
  --muted:     var(--ink-60);
  --border:    var(--hairline);
  --accent:    var(--cinder);
  --dark:      var(--ink);
  --font-serif: var(--font-display);   /* serif retired — headings go Satoshi */
  --font-sans:  var(--font-display);

  --topbar-h: 0px;
  --nav-h:    56px;
  --header-h: 56px;
  --wrap:     none;
  --pad:      3vw;
  --radius:   2px;
}

/* ── Reset & base ────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 15px;
  line-height: 1.6;
  scroll-behavior: smooth;
}
body { min-height: 100vh; overflow-x: clip; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: balance;
}
p { text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

::selection { background: var(--ink); color: var(--paper); }
:focus-visible { outline: 1px solid var(--cinder); outline-offset: 3px; }

.wrap { max-width: none; margin: 0; padding: 0 var(--pad); }

.mono {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-60);
}

/* ── Nav ─────────────────────────────────────────────────────── */
#site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 90;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
#site-header.scrolled { border-bottom-color: var(--hairline); }

.nav-main {
  display: flex; align-items: center; gap: 26px;
  height: var(--nav-h); padding: 0 var(--pad);
}
.nav-logo {
  font-weight: 900; font-size: 16px; letter-spacing: -0.02em;
  margin-right: auto;
  transition: font-variation-settings .25s, color .2s;
}
.nav-group { display: flex; align-items: center; gap: 22px; list-style: none; }
.nav-group a {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-60); padding: 4px 0;
  border-bottom: 1px solid transparent;
  transition: color .2s, border-color .2s;
}
.nav-group a:hover { color: var(--ink); border-bottom-color: var(--cinder); }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--ink); margin: 4px 0; transition: transform .25s, opacity .25s; }

/* ── Hero ────────────────────────────────────────────────────── */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 0 var(--pad) 64px;
  overflow: clip;
}
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-media img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.04);
  animation: heroColourIn 2.2s ease .9s forwards;
}
@keyframes heroColourIn { to { filter: grayscale(0) contrast(1); } }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(20,19,18,.58), transparent 52%);
}
.hero-title {
  color: #fff;
  font-size: clamp(48px, 9vw, 110px);
  font-weight: 900; letter-spacing: -0.03em; line-height: .95;
}
.hero-line {
  color: #efedea; font-size: 17px; font-weight: 500;
  max-width: 46ch; margin-top: 14px;
}
.hero-link {
  display: inline-block; width: max-content; margin-top: 24px;
  font-family: var(--font-mono); font-size: 12px;
  letter-spacing: .08em; text-transform: uppercase; color: #fff;
  border-bottom: 2px solid var(--cinder); padding-bottom: 4px;
}
/* Letterbox bars — close in as the hero exits (cinema language) */
.hero-bar {
  position: absolute; left: 0; right: 0; height: 11vh;
  background: var(--ink); z-index: 5; pointer-events: none;
  transform: scaleY(0);
}
.hero-bar-top { top: 0; transform-origin: top; }
.hero-bar-bot { bottom: 0; transform-origin: bottom; }

/* ── Section structure ───────────────────────────────────────── */
.section { padding: 84px 0; }
.section .wrap { padding: 0 var(--pad); }

.section-masthead {
  display: flex; align-items: baseline; gap: 14px;
  border-bottom: 1px solid var(--ink);
  padding: 0 0 10px; margin-bottom: 30px;
}
.section-name {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 30px); font-weight: 700;
  letter-spacing: -0.02em; color: var(--ink);
  text-transform: none;
}
.section-count {
  margin-left: auto;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .08em; text-transform: uppercase; color: var(--ink-30);
}

/* ── Footer base hooks (footer detail styles retained below) ─── */
.site-footer { border-top: 1px solid var(--hairline); }

/* ═════════════════════════════════════════════════════════════
   MOTION — approved v3 system (REDESIGN.md §6)
   Pure CSS scroll-driven; static fallback via @supports.
   ═════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {

    /* Side-entering sections — sweep from alternating sides */
    .section {
      animation: secSweepL both cubic-bezier(.16,1,.3,1);
      animation-timeline: view();
      /* length-based range: completes once 85vh of the section has entered,
         so taller-than-viewport sections don't stall mid-sweep */
      animation-range: entry 0% entry 85vh;
    }
    .section:nth-of-type(even) { animation-name: secSweepR; }
    @keyframes secSweepL { from { transform: translateX(-75vw) scale(.92); opacity:.01; } to { transform:none; opacity:1; } }
    @keyframes secSweepR { from { transform: translateX(75vw)  scale(.92); opacity:.01; } to { transform:none; opacity:1; } }

    /* Mastheads counter-sweep */
    .section-masthead {
      animation: headSweepR both cubic-bezier(.16,1,.3,1);
      animation-timeline: view();
      animation-range: entry 0% entry 90vh;
    }
    .section:nth-of-type(even) .section-masthead { animation-name: headSweepL; }
    @keyframes headSweepR { from { transform: translateX(26vw);  opacity:0; } to { transform:none; opacity:1; } }
    @keyframes headSweepL { from { transform: translateX(-26vw); opacity:0; } to { transform:none; opacity:1; } }

    /* Hero letterbox exit + recede */
    .hero-bar     { animation: barClose both linear; animation-timeline: view(); animation-range: exit 0% exit 90%; }
    @keyframes barClose { to { transform: scaleY(1); } }
    .hero-media   { animation: heroRecede both linear; animation-timeline: view(); animation-range: exit 0% exit 100%; }
    @keyframes heroRecede { to { transform: scale(.96); } }

    /* Scroll progress hairline (Alive Kit) */
    body::before {
      content: ""; position: fixed; top: 0; left: 0; right: 0; height: 2px;
      background: var(--cinder); z-index: 99;
      transform-origin: left; transform: scaleX(0);
      animation: pageProgress both linear;
      animation-timeline: scroll();
    }
    @keyframes pageProgress { to { transform: scaleX(1); } }
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-media img { animation: none; filter: grayscale(0); }
}

/* ── Mobile nav + responsive base ────────────────────────────── */
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-group {
    position: fixed; inset: var(--nav-h) 0 auto 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--hairline);
    padding: 8px var(--pad) 16px;
    display: none;
  }
  .nav-main.open .nav-group { display: flex; }
  .nav-group a { padding: 10px 0; font-size: 13px; }
  .hero { padding-bottom: 48px; }
  .section { padding: 56px 0; }
}

/* ═════════════════════════════════════════════════════════════
   COMPONENT STYLES — carried over on new tokens; each section
   gets its full restyle in sittings 2-4 (REDESIGN.md §10)
   ═════════════════════════════════════════════════════════════ */
/* ─────────────────────────────────────────────────────────────
   WORK SECTION — large player + highlight bank
   ───────────────────────────────────────────────────────────── */
.section-work { background: var(--paper); }

/* Player wrapper — full content width */
.work-player-wrap { margin-bottom: 40px; }

/* Stage: 16:9 box holding either poster or iframe */
.work-player-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
}
.work-player-stage iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* Poster image inside stage */
.work-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(1);
  transition: filter .3s ease;
}
.work-player-stage:hover .work-poster { filter: grayscale(0); }

/* Play affordance over poster */
.work-poster-play {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.work-play-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--cinder);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  padding-left: 4px;
  box-shadow: 0 8px 32px rgba(20,19,18,.45);
  transition: transform .25s cubic-bezier(.16,1,.3,1), box-shadow .25s;
}
.work-poster-play:hover .work-play-icon,
.work-poster-play:focus-visible .work-play-icon {
  transform: scale(1.12);
  box-shadow: 0 12px 40px rgba(20,19,18,.55);
}

/* Annotation line under player */
.work-player-anno {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  line-height: 1.5;
}
.work-anno-title {
  font-weight: 700;
  color: var(--ink);
}
.work-anno-sep {
  color: var(--ink-30);
  margin: 0 2px;
}
.work-anno-sub {
  color: var(--ink-60);
}

/* Highlight bank — responsive grid */
.work-bank {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}

/* Individual tile */
.work-tile {
  cursor: pointer;
  outline: none;
}
.work-tile-img-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--ink);
}
.work-tile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(1);
  transition: filter .3s ease, transform .3s cubic-bezier(.16,1,.3,1);
}
.work-tile:hover .work-tile-img { filter: grayscale(0); transform: translateY(-6px); }
.work-tile--active .work-tile-img { filter: grayscale(0); }

/* Lift + shadow on hover (img-wrap tracks the transform) */
.work-tile:hover .work-tile-img-wrap {
  box-shadow: 0 18px 40px -18px rgba(20,19,18,.35);
}

/* Active tile: cinder outline */
.work-tile--active .work-tile-img-wrap {
  outline: 2px solid var(--cinder);
  outline-offset: 0;
}

/* Tile metadata */
.work-tile-meta {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.work-tile-title {
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.work-tile-sub {
  color: var(--ink-60);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

/* Skeleton shimmer (retained for initial load) */
.skeleton-thumb {
  aspect-ratio: 16 / 9;
  background: linear-gradient(90deg, #f0efeb 25%, #e8e7e2 50%, #f0efeb 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: var(--radius);
}
@keyframes shimmer { to { background-position: -200% 0; } }

/* Mobile: 2 columns */
@media (max-width: 760px) {
  .work-bank { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}

/* Reduced motion: no lift, images stay colour */
@media (prefers-reduced-motion: reduce) {
  .work-tile-img { filter: grayscale(0); transition: none; }
  .work-tile:hover .work-tile-img { transform: none; }
  .work-poster { filter: grayscale(0); transition: none; }
}

/* ─────────────────────────────────────────────────────────────
   THE ARCHIVE — index table + accordion
   ───────────────────────────────────────────────────────────── */
.section-clients { background: var(--paper); }

/* Keep legacy album-* classes alive (modal playlist uses them) */
.album-play { display: none; }
.album-blurb { font-size: 11px; color: rgba(255,255,255,0.6); line-height: 1.5; margin-top: 2px; }

/* ── Index list */
.archive-list {
  border-top: 1px solid var(--hairline);
}

/* ── Row */
.archive-row {
  display: flex;
  align-items: baseline;
  gap: 0;
  padding: 14px 0;
  border-bottom: 1px solid var(--hairline);
  cursor: pointer;
  transition: background .2s;
  border-radius: var(--radius);
}
.archive-row:hover {
  background: rgba(255,255,255,0.55);
}
.archive-row:focus-visible {
  outline: 1px solid var(--cinder);
  outline-offset: -1px;
}

.archive-row-name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  flex-shrink: 0;
  transition: transform .25s cubic-bezier(.16,1,.3,1);
}
.archive-row:hover .archive-row-name {
  transform: translateX(8px);
}

/* Dot leader */
.archive-row-leader {
  flex: 1;
  min-width: 12px;
  height: 1px;
  border-bottom: 1px dotted var(--ink-30);
  margin: 0 10px;
  align-self: center;
  margin-bottom: 4px;
}

.archive-row-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-60);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Chevron */
.archive-chevron {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-right: 1.5px solid var(--ink-60);
  border-bottom: 1.5px solid var(--ink-60);
  transform: rotate(-45deg) translateY(1px);
  transition: transform .25s cubic-bezier(.16,1,.3,1), border-color .2s;
}
.archive-row--open .archive-chevron {
  transform: rotate(45deg) translateY(-1px);
  border-color: var(--cinder);
}
.archive-row:hover .archive-chevron {
  border-color: var(--cinder);
}

/* ── Accordion panel */
.archive-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .45s cubic-bezier(.16,1,.3,1);
  overflow: hidden;
}
.archive-panel-inner {
  overflow: hidden;
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: 0;
  transition: padding .45s cubic-bezier(.16,1,.3,1);
}
.archive-row--open + .archive-panel .archive-panel-inner {
  padding: 20px 0 24px;
}

/* Player */
.archive-player {
  width: 100%;
}
.archive-player-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
}
.archive-player-stage iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.archive-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
  transition: filter .3s;
}
.archive-player-stage:hover .archive-poster { filter: grayscale(0); }

/* Thumb grid */
.archive-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  align-content: start;
}

.archive-thumb {
  cursor: pointer;
  outline: none;
}
.archive-thumb:focus-visible .archive-thumb-img-wrap {
  outline: 1px solid var(--cinder);
  outline-offset: 2px;
}
.archive-thumb-img-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--hairline);
  transition: box-shadow .3s;
}
.archive-thumb-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(1);
  transition: filter .3s cubic-bezier(.16,1,.3,1), transform .3s cubic-bezier(.16,1,.3,1);
}
.archive-thumb:hover .archive-thumb-img-wrap img {
  filter: grayscale(0);
  transform: translateY(-6px);
}
.archive-thumb:hover .archive-thumb-img-wrap {
  box-shadow: 0 18px 40px -18px rgba(20,19,18,.35);
}
.archive-thumb--active .archive-thumb-img-wrap {
  outline: 2px solid var(--cinder);
  outline-offset: 0;
}
.archive-thumb--active .archive-thumb-img-wrap img { filter: grayscale(0); }

.archive-thumb-title {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-60);
  margin-top: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 760px) {
  .archive-panel-inner {
    grid-template-columns: 1fr;
  }
  .archive-thumbs {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .archive-thumb-img-wrap img { filter: grayscale(0); transition: none; }
  .archive-thumb:hover .archive-thumb-img-wrap img { transform: none; }
  .archive-poster { filter: grayscale(0); }
}

/* ─────────────────────────────────────────────────────────────
   ELECTRA SECTION
   ───────────────────────────────────────────────────────────── */
.section-electra { background: var(--paper); }

.electra-band {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 28px;
  align-items: start;
}

/* LEFT: poster tile */
.electra-poster-tile {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--ink);
  cursor: pointer;
}
.electra-poster-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
  transition: filter .3s cubic-bezier(.16,1,.3,1), transform .3s cubic-bezier(.16,1,.3,1);
}
.electra-poster-tile:hover img {
  filter: grayscale(0);
  transform: translateY(-6px);
}
.electra-poster-tile:hover {
  box-shadow: 0 18px 40px -18px rgba(20,19,18,.35);
}
.electra-poster-tile iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.electra-poster-tile--playing { cursor: default; }
.electra-poster-tile--playing:hover { box-shadow: none; }

/* RIGHT: copy */
.electra-copy { padding-top: 8px; }

.electra-heading {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 14px;
}
.electra-body {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-60);
  max-width: 60ch;
  margin-bottom: 20px;
}

/* Stills strip */
.electra-stills-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.electra-still-tile {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--hairline);
  cursor: pointer;
}
.electra-still-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(1);
  transition: filter .3s cubic-bezier(.16,1,.3,1), transform .3s cubic-bezier(.16,1,.3,1);
}
.electra-still-tile:hover img {
  filter: grayscale(0);
  transform: translateY(-6px);
}
.electra-still-tile:hover {
  box-shadow: 0 18px 40px -18px rgba(20,19,18,.35);
}

@media (max-width: 760px) {
  .electra-band {
    grid-template-columns: 1fr;
  }
  .electra-stills-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .electra-poster-tile img,
  .electra-still-tile img { filter: grayscale(0); transition: none; }
  .electra-poster-tile:hover img,
  .electra-still-tile:hover img { transform: none; }
}

/* ─────────────────────────────────────────────────────────────
   PHOTOGRAPHY — masonry + view-more
   ───────────────────────────────────────────────────────────── */
.section-photography { background: var(--paper); }

/* Three explicit column divs — JS distributes round-robin */
.photo-masonry {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  align-items: start;
}

.photo-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Scroll-driven column drift — middle drifts opposite to outers */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .photo-col:nth-child(1) {
      animation: colDriftDown linear both;
      animation-timeline: view();
      animation-range: cover 0% cover 100%;
    }
    .photo-col:nth-child(2) {
      animation: colDriftUp linear both;
      animation-timeline: view();
      animation-range: cover 0% cover 100%;
    }
    .photo-col:nth-child(3) {
      animation: colDriftDown linear both;
      animation-timeline: view();
      animation-range: cover 0% cover 100%;
    }
    @keyframes colDriftDown { from { transform: translateY(-15px); } to { transform: translateY(15px); } }
    @keyframes colDriftUp   { from { transform: translateY(30px);  } to { transform: translateY(-30px); } }
  }
}

/* Individual photo tile */
.photo-tile {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border-radius: var(--radius);
  background: var(--hairline);
}
.photo-tile img {
  width: 100%;
  height: auto;
  display: block;
  filter: grayscale(1);
  transition: filter .3s cubic-bezier(.16,1,.3,1), transform .3s cubic-bezier(.16,1,.3,1);
}
.photo-tile:hover img {
  filter: grayscale(0);
  transform: translateY(-6px);
}
.photo-tile:hover {
  box-shadow: 0 18px 40px -18px rgba(20,19,18,.35);
}

/* Caption under image — mono annotation voice */
.photo-tile-caption {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-60);
  padding: 6px 0 2px;
}

/* Hidden tiles — toggled by View more */
.photo-tile--hidden {
  display: none;
}
.photo-tile--entering {
  display: block;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .35s cubic-bezier(.16,1,.3,1), transform .35s cubic-bezier(.16,1,.3,1);
}
/* @starting-style for browsers that support it */
@supports (selector(:has(*))) {
  .photo-tile--entering {
    opacity: 1;
    transform: translateY(0);
  }
}

/* View more / fewer button */
.photo-more-wrap {
  display: flex;
  justify-content: center;
  padding: 32px 0 8px;
}
.photo-more-btn {
  background: none;
  border: 1px solid var(--hairline);
  border-radius: 20px;
  padding: 9px 28px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-60);
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.photo-more-btn:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

@media (max-width: 760px) {
  .photo-masonry { grid-template-columns: repeat(3, 1fr); gap: 5px; }
  .photo-col { gap: 5px; }
}

/* Reduced motion: colour always, no lifts, no drift */
@media (prefers-reduced-motion: reduce) {
  .photo-tile img { filter: grayscale(0); transition: none; }
  .photo-tile:hover img { transform: none; }
  .photo-col { animation: none; }
}

/* ─────────────────────────────────────────────────────────────
   BTS SECTION
   ───────────────────────────────────────────────────────────── */
.section-bts { background: var(--paper); }

.bts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
}

.bts-tile {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border-radius: var(--radius);
  background: var(--hairline);
  aspect-ratio: 1;
}
.bts-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(1);
  transition: filter .3s cubic-bezier(.16,1,.3,1), transform .3s cubic-bezier(.16,1,.3,1);
}
.bts-tile:hover img {
  filter: grayscale(0);
  transform: translateY(-6px);
}
.bts-tile:hover {
  box-shadow: 0 18px 40px -18px rgba(20,19,18,.35);
}

/* Video play triangle overlay */
.bts-play-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--cinder);
  pointer-events: none;
  text-shadow: 0 2px 8px rgba(20,19,18,.45);
  transition: opacity .2s;
}
.bts-tile:hover .bts-play-icon { opacity: .7; }

@media (prefers-reduced-motion: reduce) {
  .bts-tile img { filter: grayscale(0); transition: none; }
  .bts-tile:hover img { transform: none; }
}

/* ─────────────────────────────────────────────────────────────
   ABOUT
   ───────────────────────────────────────────────────────────── */
.section-about { background: var(--paper); }

/* Two-column card */
.about-grid-new {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

/* LEFT column */
.about-left {
  position: sticky;
  top: calc(var(--header-h) + 24px);
}

.about-portrait-tile {
  position: relative;
  width: 100%;
  max-width: 260px;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--hairline);
  margin-bottom: 18px;
}
.about-portrait-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(1);
  transition: filter .3s cubic-bezier(.16,1,.3,1);
}
.about-portrait-tile:hover img { filter: grayscale(0); }

.about-name {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 6px;
}
.about-title-line {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-60);
  margin-bottom: 20px;
}

/* Skills chips */
.about-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.about-chip {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-60);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 5px 14px;
  cursor: default;
  transition: background .2s, color .2s, border-color .2s;
}
.about-chip:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

/* RIGHT column */
.about-right { padding-top: 4px; }

.about-body-text {
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink-60);
  max-width: 60ch;
  margin-bottom: 32px;
}
.about-body-text p + p { margin-top: 14px; }

.about-contact {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding-top: 20px;
  border-top: 1px solid var(--hairline);
}
.about-contact-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-60);
}
.about-contact-link {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--cinder);
  text-decoration: none;
  transition: text-decoration .15s;
}
.about-contact-link:hover { text-decoration: underline; }

@media (max-width: 760px) {
  .about-grid-new { grid-template-columns: 1fr; gap: 28px; }
  .about-left { position: static; }
  .about-portrait-tile { aspect-ratio: 3 / 2; max-width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .about-portrait-tile img { filter: grayscale(0); transition: none; }
}

/* Keep legacy about-grid intact for sub-page about.html */
.about-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: clamp(40px, 5vw, 72px);
  align-items: start;
}
.about-portrait-wrap { position: sticky; top: calc(var(--header-h) + 24px); }
.about-portrait-frame { position: relative; margin-bottom: 16px; }
.about-portrait-frame::after { display: none; }
.about-portrait { position: relative; aspect-ratio: 3/4; border-radius: var(--radius); overflow: hidden; background: linear-gradient(160deg, #c8bfb0, #9a8878); }
.about-portrait img { width: 100%; height: 100%; object-fit: cover; }
.about-portrait-caption { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.about-portrait-caption-line { flex: 1; height: 1px; background: var(--border); }
.about-portrait-label { font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.about-stats { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; }
.about-stat { border: 1px solid var(--border); border-radius: var(--radius); padding: 11px 14px; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.about-stat-value { font-size: 15px; font-weight: 500; color: var(--text); line-height: 1.2; }
.about-stat-label { font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); flex-shrink: 0; }
.about-skills-block { margin-top: 10px; background: var(--dark); border-radius: var(--radius); padding: 16px 18px; }
.about-skills-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.about-skills-label { font-size: 10px; font-weight: 500; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,0.3); }
.about-skills-count { font-size: 10px; color: rgba(255,255,255,0.15); }
.about-skills { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.about-skills li { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); border-radius: 3px; padding: 6px 12px; font-size: 11.5px; font-weight: 400; color: rgba(255,255,255,0.65); letter-spacing: 0.2px; }
.about-skills li::before { content: ''; width: 4px; height: 4px; border-radius: 50%; background: var(--accent); flex-shrink: 0; opacity: 0.7; }
.about-text { padding-top: 4px; }
.about-eyebrow { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); font-weight: 500; margin-bottom: 14px; }
.about-headline { font-family: var(--font-serif); font-size: clamp(28px, 3.2vw, 44px); font-weight: 700; letter-spacing: -0.5px; margin-bottom: 22px; line-height: 1.1; }
.about-rule { width: 32px; height: 1px; background: var(--border); margin-bottom: 24px; }
.about-body { font-size: 15px; line-height: 1.85; color: var(--muted); font-weight: 300; }
.about-body strong { color: var(--text); font-weight: 400; }
.about-body p + p { margin-top: 16px; }
@media (max-width: 760px) {
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .about-portrait-wrap { position: static; }
  .about-portrait { aspect-ratio: 3/2; }
  .about-stats { flex-direction: row; flex-wrap: wrap; }
  .about-stat { flex: 1 1 calc(50% - 3px); }
}

/* ─────────────────────────────────────────────────────────────
   FOOTER
   ───────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--dark);
  padding: 80px 0 40px;
  color: #fff;
}
.footer-cta {
  font-family: var(--font-serif);
  font-size: clamp(32px, 5vw, 64px);
  font-weight: 900;
  letter-spacing: -1.5px;
  line-height: 1;
  margin-bottom: 16px;
  color: #fff;
}
.footer-sub {
  font-size: 14px;
  color: rgba(255,255,255,0.35);
  margin-bottom: 28px;
  font-weight: 300;
}
.footer-email {
  display: inline-block;
  font-size: 13px;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
  padding: 11px 28px;
  border-radius: 3px;
  letter-spacing: 0.5px;
  transition: border-color 0.2s, background 0.2s;
}
.footer-email:hover { border-color: var(--accent); background: rgba(229,57,27,0.1); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.footer-sig {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 900;
  color: rgba(255,255,255,0.2);
}
.footer-links { display: flex; gap: 20px; }
.footer-links a { font-size: 11px; color: rgba(255,255,255,0.25); letter-spacing: 0.5px; transition: color 0.2s; }
.footer-links a:hover { color: rgba(255,255,255,0.6); }
.footer-copy { font-size: 11px; color: rgba(255,255,255,0.2); }

/* ─────────────────────────────────────────────────────────────
   VIDEO MODAL
   ───────────────────────────────────────────────────────────── */
.modal, .lightbox { position: fixed; inset: 0; display: none; z-index: 9000; }
.modal[aria-hidden="false"], .lightbox[aria-hidden="false"] { display: block; }

.modal-backdrop, .lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.72);
  backdrop-filter: blur(8px);
  animation: fade-in 0.25s ease;
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

.modal-dialog {
  position: relative;
  max-width: min(900px, 94vw);
  margin: 4vh auto;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 24px 80px rgba(0,0,0,0.5);
  max-height: 92vh;
  overflow-y: auto;
  opacity: 0;
  transform: scale(0.92);
  animation: dialog-in 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
@keyframes dialog-in { to { opacity: 1; transform: scale(1); } }

.modal-close {
  position: absolute;
  top: 12px; right: 12px;
  background: rgba(0,0,0,0.07);
  border: none;
  border-radius: 4px;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  color: #333;
  cursor: pointer;
  transition: background 0.15s;
  z-index: 1;
}
.modal-close:hover { background: rgba(0,0,0,0.13); }

.modal-body { padding: 16px; display: flex; flex-direction: column; gap: 12px; }

.player-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 4px;
  overflow: hidden;
  background: #000;
}
.player-container iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Playlist */
.playlist { display: flex; flex-direction: column; gap: 2px; max-height: 260px; overflow-y: auto; }
.playlist:empty { display: none; }

.playlist-category {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  padding: 12px 8px 4px;
  border-top: 1px solid var(--border);
  margin-top: 4px;
}
.playlist-category:first-child { border-top: none; margin-top: 0; padding-top: 4px; }

.playlist-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 7px 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.15s;
  border: 1px solid transparent;
}
.playlist-card:hover { background: #f5f4f0; }
.playlist-card.active { background: #f0ede6; border-color: var(--border); }

.playlist-thumb {
  position: relative;
  width: 80px; height: 46px;
  flex-shrink: 0;
  border-radius: 3px;
  overflow: hidden;
  background: #1a1410;
}
.playlist-thumb img { width: 100%; height: 100%; object-fit: cover; }
.playlist-thumb .play {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; color: #fff;
  background: rgba(0,0,0,0.35);
  opacity: 0; transition: opacity 0.15s;
}
.playlist-card:hover .play, .playlist-card.active .play { opacity: 1; }

.playlist-meta { flex: 1; min-width: 0; }
.playlist-title {
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ─────────────────────────────────────────────────────────────
   LIGHTBOX
   ───────────────────────────────────────────────────────────── */
.lightbox-close {
  position: fixed; top: 16px; right: 20px; z-index: 9001;
  background: rgba(20,19,18,0.55);
  border: none; border-radius: 4px;
  color: var(--paper); font-size: 20px;
  cursor: pointer; padding: 6px 12px;
  transition: background .15s;
}
.lightbox-close:hover { background: rgba(20,19,18,.82); }

/* Prev / next arrows */
.lightbox-arrow {
  position: fixed;
  top: 50%; transform: translateY(-50%);
  z-index: 9001;
  background: none;
  border: none;
  color: var(--paper);
  font-size: 48px;
  line-height: 1;
  cursor: pointer;
  padding: 8px 14px;
  opacity: .65;
  transition: opacity .2s, color .2s;
  user-select: none;
}
.lightbox-arrow:hover { opacity: 1; color: var(--cinder); }
.lightbox-prev { left: 12px; }
.lightbox-next { right: 12px; }

/* Figure holds image + caption — centred in the overlay */
.lightbox-figure {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 48px 80px;
  pointer-events: none;
}
.lightbox-figure img,
.lightbox-figure .lb-video {
  pointer-events: auto;
  max-width: 100%;
  max-height: 80vh;
  border-radius: var(--radius);
  box-shadow: 0 24px 80px rgba(0,0,0,.6);
  animation: lb-in .3s ease;
  view-transition-name: none;
}
.lightbox-figure .lb-video {
  width: min(860px, 94vw);
  aspect-ratio: 16/9;
  background: #000;
}
@keyframes lb-in {
  from { opacity: 0; transform: scale(.9); }
  to   { opacity: 1; transform: scale(1); }
}

/* Caption bar — mono annotation voice */
.lightbox-caption {
  pointer-events: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px;
  max-width: min(860px, 94vw);
  width: 100%;
}
.lb-caption-text {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-30);
}
.lb-caption-exif {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-60);
}

/* View-transition morph: tile img -> lightbox img */
@supports (view-transition-name: lb) {
  ::view-transition-old(lb) { animation: none; }
  ::view-transition-new(lb) { animation: none; }
}

@media (max-width: 600px) {
  .lightbox-figure { padding: 48px 20px; }
  .lightbox-arrow { font-size: 36px; padding: 6px 10px; }
}

/* ─────────────────────────────────────────────────────────────
   SUB-PAGE STYLES (not actively maintained but kept tidy)
   ───────────────────────────────────────────────────────────── */
body:not(.home) { background: var(--bg); }
body:not(.home) .site-nav-legacy {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.container { max-width: 1200px; margin: 0 auto; padding: 32px var(--pad); }
.container.narrow { max-width: 820px; }
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 700;
  margin-bottom: 28px;
}

/* Video grid (sub-pages) */
.video-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.video-grid .card { grid-column: span 4; }
.video-grid .card--full { grid-column: span 12; }
.video-grid .card--half { grid-column: span 6; }
.video-grid .card--full .thumb { aspect-ratio: 21/9; }
@media (max-width: 1024px) { .video-grid .card { grid-column: span 6; } }
@media (max-width: 600px) {
  .video-grid .card,
  .video-grid .card--full,
  .video-grid .card--half { grid-column: span 12; }
}

.album-grid-legacy { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.image-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }

/* Cards (sub-pages) */
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.25s, box-shadow 0.25s;
  opacity: 0;
  transform: translateY(12px);
  animation: card-in 0.5s ease forwards;
}
@keyframes card-in { to { opacity: 1; transform: translateY(0); } }
.card:hover { transform: translateY(-3px); box-shadow: 0 12px 36px rgba(0,0,0,0.07); }
.card .thumb { position: relative; aspect-ratio: 16/9; background: #1c1a16; overflow: hidden; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; opacity: 0.9; transition: transform 0.4s, opacity 0.3s; }
.card:hover .thumb img { transform: scale(1.04); opacity: 1; }
.card .play {
  position: absolute; top: 50%; left: 50%;
  width: 46px; height: 46px;
  transform: translate(-50%,-50%) scale(0.85);
  background: rgba(255,255,255,0.9);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; padding-left: 2px;
  opacity: 0; transition: opacity 0.2s, transform 0.2s;
}
.card:hover .play { opacity: 1; transform: translate(-50%,-50%) scale(1); }
.card .meta { padding: 12px 14px; }
.card .title { font-size: 13px; font-weight: 500; color: var(--text); margin-bottom: 3px; }
.card .sub   { font-size: 12px; color: var(--muted); }
.card.album .thumb { aspect-ratio: 3/2; }
.card.album .thumb .album-logo {
  position: absolute; top: 10px; left: 10px;
  height: 24px; max-width: 68px;
  object-fit: contain;
  background: rgba(0,0,0,0.5); border-radius: 3px; padding: 3px 6px;
}

/* About (sub-page) */
.about {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  align-items: start;
  padding: 48px 0;
}
.about-media img { width: 100%; border-radius: var(--radius); aspect-ratio: 4/5; object-fit: cover; border: 1px solid var(--border); }
.about-copy h1 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 20px; }
.about-copy p { color: var(--muted); line-height: 1.75; margin-bottom: 12px; }
.about-copy h2 { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin: 28px 0 12px; }
.badge-list { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.badge-list li { background: #f4f3ef; border: 1px solid var(--border); border-radius: 3px; padding: 5px 12px; font-size: 12px; color: var(--text); }
@media (max-width: 680px) { .about { grid-template-columns: 1fr; gap: 24px; } }

/* Video embed / carousel */
.video-embed { position: relative; aspect-ratio: 16/9; margin: 24px 0; border-radius: var(--radius); overflow: hidden; background: #000; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.carousel { position: relative; overflow: hidden; border-radius: var(--radius); margin: 24px 0; }
.carousel-track { display: flex; transition: transform 0.4s ease; }
.carousel-track img { width: 100%; flex-shrink: 0; object-fit: cover; aspect-ratio: 16/9; }
.carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  background: rgba(255,255,255,0.9); border: 1px solid var(--border); border-radius: 50%;
  width: 40px; height: 40px; color: var(--text); font-size: 20px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s;
}
.carousel-btn:hover { background: #fff; }
.carousel-btn.prev { left: 12px; } .carousel-btn.next { right: 12px; }

/* Masonry gallery */
.masonry-gallery { column-count: 3; column-gap: 12px; }
@media (min-width: 1300px) { .masonry-gallery { column-count: 4; } }
@media (max-width: 780px)  { .masonry-gallery { column-count: 2; } }
@media (max-width: 480px)  { .masonry-gallery { column-count: 1; } }
.masonry-item {
  break-inside: avoid; margin-bottom: 12px;
  border-radius: var(--radius); overflow: hidden; background: var(--border);
  opacity: 0; animation: card-in 0.5s ease forwards;
}
.masonry-item img { width: 100%; height: auto; display: block; object-fit: cover; cursor: pointer; transition: transform 0.35s; }
.masonry-item:hover img { transform: scale(1.03); }
.masonry-item figcaption { font-size: 0.75rem; color: var(--muted); padding: 7px 10px 9px; }

/* Sub-page nav */
.site-nav {
  position: sticky; top: 0; z-index: 100;
  width: 100%; display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.9);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px);
  height: 52px;
}
.site-nav ul { display: flex; gap: 4px; list-style: none; padding: 0 20px; align-items: center; flex-wrap: wrap; }
.site-nav a { color: var(--muted); padding: 6px 12px; border-radius: 3px; font-size: 13px; font-weight: 500; transition: color 0.15s, background 0.15s; }
.site-nav a:hover { color: var(--text); background: rgba(0,0,0,0.03); }
.site-nav a.active { color: var(--text); }

.section-sp { padding: 48px 0 24px; }

.site-footer-legacy { border-top: 1px solid var(--border); margin-top: 48px; padding: 24px; font-size: 13px; color: var(--muted); display: flex; justify-content: space-between; }
.site-footer-legacy a { color: var(--muted); transition: color 0.2s; }
.site-footer-legacy a:hover { color: var(--text); }

/* ─────────────────────────────────────────────────────────────
   HOME NETWORK — publisher edit button & hub link
   ───────────────────────────────────────────────────────────── */
.hub-link { color: var(--accent) !important; border: 1px solid rgba(229,57,27,0.3); border-radius: 3px !important; padding: 4px 10px !important; }
.hub-link:hover { background: rgba(229,57,27,0.07) !important; }

#edit-btn {
  position: fixed; top: 14px; right: 16px; z-index: 9999;
  font-size: 16px; line-height: 1; padding: 7px 9px;
  border-radius: 6px;
  background: rgba(255,255,255,0.85); backdrop-filter: blur(6px);
  border: 1px solid var(--border);
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s;
  text-decoration: none;
}
#edit-btn.visible { opacity: 1; pointer-events: auto; }
#edit-btn:hover { background: rgba(229,57,27,0.08); border-color: rgba(229,57,27,0.4); }

/* ═════════════════════════════════════════════════════════════
   COLOUR TORCH (sitting 5) — colour follows the cursor in tiles
   ═════════════════════════════════════════════════════════════ */
@media (hover: hover) {
  [data-torch] { position: relative; }
  .torch-layer {
    position: absolute;
    object-fit: cover;
    filter: none !important;
    pointer-events: none;
    opacity: 0;
    transition: opacity .3s ease;
    /* larger, softer spotlight */
    -webkit-mask-image: radial-gradient(circle 220px at var(--tx, 50%) var(--ty, 50%), #000 45%, transparent 80%);
            mask-image: radial-gradient(circle 220px at var(--tx, 50%) var(--ty, 50%), #000 45%, transparent 80%);
    z-index: 2;
  }
  [data-torch]:hover .torch-layer { opacity: 1; }
  /* Active/playing tiles never need the spotlight (they stay full colour) */
  .work-tile--active .torch-layer,
  .archive-thumb--active .torch-layer { opacity: 0 !important; }
}

/* Scroll saturation: tiles regain colour while in the central viewport band and
   fade to greyscale entering/leaving. Layered under the torch so colour returns
   on scroll AND the cursor spotlight still pops. Greyscale-at-rest fallback when
   scroll-timelines are unsupported. */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .work-tile img:not(.torch-layer),
    .photo-tile img:not(.torch-layer),
    .bts-tile img:not(.torch-layer),
    .electra-still-tile img:not(.torch-layer),
    .archive-thumb img:not(.torch-layer) {
      animation: tileSat both linear;
      animation-timeline: view();
      animation-range: cover 0% cover 100%;
    }
    @keyframes tileSat {
      0%       { filter: grayscale(1); }
      25%, 75% { filter: grayscale(0); }
      100%     { filter: grayscale(1); }
    }
    .work-tile--active img:not(.torch-layer),
    .archive-thumb--active img:not(.torch-layer) {
      animation: none !important;
      filter: grayscale(0) !important;
    }
  }
}
