/* ==========================================================================
   2N2T — shared stylesheet
   Edit the variables in :root to restyle the whole site.
   ========================================================================== */

:root {
  color-scheme: dark;
  /* Colours */
  --color-bg: #0e0e10;
  --color-surface: #18181b;
  --color-surface-2: #222226;
  --color-text: #f2efe9;
  --color-muted: #a1a1aa;
  --color-accent: #f05a32;
  --color-accent-contrast: #0e0e10;
  --color-border: #2c2c31;
  --color-overlay: rgba(10, 10, 12, 0.55);
  --color-overlay-strong: rgba(10, 10, 12, 0.92);
  --color-lightbox: rgba(10, 10, 12, 0.97);

  /* Fonts (system stacks = zero font downloads) */
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif; /* headings (Google Fonts, loaded on every page) */
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --font-cine: var(--font-display);  /* Video Production panels */
  --font-label: var(--font-display); /* small spaced labels */

  /* Type scale */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.25rem;
  --text-xl: clamp(1.5rem, 1.2rem + 1.5vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.4rem + 3vw, 3.5rem);

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);

  /* Layout */
  --max-width: 1200px;
  --header-height: 64px;
  --logo-height: 48px;
  /* Homepage showreel (hero): the widest picture shape inside the YouTube video.
     2.4 crops black bars from cinemascope (2.39:1) footage on desktop.
     Use 1.78 if the video has no black bars. */
  --showreel-ratio: 2.4;
  --radius: 6px;
  --transition: 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, video, iframe { display: block; max-width: 100%; }
a { color: inherit; }
a:hover { color: var(--color-accent); }
button { font: inherit; color: inherit; }
h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 var(--space-4);
}
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link {
  position: absolute; left: var(--space-4); top: -100px; z-index: 100;
  background: var(--color-accent); color: var(--color-accent-contrast);
  padding: var(--space-2) var(--space-4); border-radius: var(--radius);
}
.skip-link:focus { top: var(--space-4); }

/* ---------- Page background images (set in the CMS) ----------
   A fixed layer behind everything, darkened so text stays readable. It fades
   in once loaded. Fixed with a pseudo-element (not background-attachment)
   so it also stays still on phones. */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(rgba(14, 14, 16, var(--wallpaper-dim, 0.7)), rgba(14, 14, 16, var(--wallpaper-dim, 0.7))),
    var(--wallpaper, none) center / cover no-repeat;
  opacity: 0; transition: opacity 0.8s ease;
}
body.has-wallpaper::before { opacity: 1; }
/* Footer sits on a solid band so it stays easy to read. */
body.has-wallpaper .site-footer { background: rgba(14, 14, 16, 0.85); }

/* ---------- Header + dropdown menu ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-height);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 0 var(--gutter);
  background: rgba(14, 14, 16, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}
.logo { grid-column: 1; grid-row: 1; justify-self: start; display: block; line-height: 0; }
.logo img { height: var(--logo-height); width: auto; }
.logo:hover img { opacity: 0.85; }

/* Hamburger button, top right (three lines → X when open) */
.menu-toggle {
  grid-column: 3; grid-row: 1; justify-self: end;
  width: 44px; height: 44px; margin-right: -10px;
  display: grid; place-items: center;
  background: none; border: 0; cursor: pointer; border-radius: var(--radius);
}
.menu-toggle:hover { background: var(--color-surface-2); }
.menu-icon, .menu-icon::before, .menu-icon::after, .menu-icon span {
  display: block; width: 22px; height: 2px; border-radius: 2px;
  background: var(--color-text);
  transition: transform var(--transition), opacity var(--transition);
}
.menu-icon { position: relative; background: transparent; }
.menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; }
.menu-icon::before { top: -7px; }
.menu-icon::after { top: 7px; }
.menu-toggle[aria-expanded="true"] .menu-icon span { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-icon::before { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-icon::after { transform: translateY(-7px) rotate(-45deg); }

/* Dropdown panel */
.site-nav {
  position: absolute; top: 100%; right: 0;
  width: 100%; max-width: 320px;
  background: var(--color-surface);
  border: 1px solid var(--color-border); border-top: 0;
  border-radius: 0 0 0 var(--radius);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  padding: var(--space-3) 0;
}
.js .site-nav {
  visibility: hidden; opacity: 0; transform: translateY(-8px);
  transition: opacity var(--transition), transform var(--transition), visibility 0s linear 0.35s;
}
.js .site-nav.is-open {
  visibility: visible; opacity: 1; transform: none;
  transition: opacity var(--transition), transform var(--transition), visibility 0s;
}
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav a {
  display: block; text-decoration: none;
  padding: var(--space-3) var(--gutter);
  font-family: var(--font-display); font-weight: 700;
  font-size: var(--text-lg); text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--color-muted);
  border-left: 3px solid transparent;
}
.site-nav a:hover, .site-nav a:focus-visible { color: #fff; }
.site-nav a[aria-current="page"] { color: #fff; }

/* ---------- Main / page intro ---------- */
main { display: block; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 var(--gutter); }
.page-intro { padding: var(--space-7) 0 var(--space-6); }
.page-intro h1 { font-size: var(--text-2xl); text-transform: uppercase; }
.page-intro p { color: var(--color-muted); max-width: 60ch; margin: 0; }
.section { padding-bottom: var(--space-8); }
.section-title {
  font-size: var(--text-xl); margin-bottom: var(--space-5);
  display: flex; align-items: baseline; gap: var(--space-3);
}
.section-title small {
  font-family: var(--font-body); font-size: var(--text-sm);
  color: var(--color-muted); font-weight: 400;
}
.empty { color: var(--color-muted); }

/* ---------- Homepage ---------- */
/* Header sits over the hero video, then turns solid once you scroll. */
.site-header--overlay {
  position: fixed; left: 0; right: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), transparent) border-box;
  border-bottom-color: transparent;
  backdrop-filter: none; -webkit-backdrop-filter: none;
  transition: background-color var(--transition), border-color var(--transition);
}
.site-header--overlay.is-solid {
  background: rgba(14, 14, 16, 0.9);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom-color: var(--color-border);
}

/* Hero: full-screen showreel */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  height: 100vh; height: 100svh; min-height: 480px;
}
.hero-media { position: absolute; inset: 0; z-index: -2; container-type: size; background: #000; }
.hero-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; scale: max(1, calc(var(--showreel-ratio) * 9 / 16)); }
.hero-poster.is-custom { scale: 1; }
.js .hero-poster { opacity: 0; transition: opacity 0.6s ease; }
.js .hero-poster.is-loaded { opacity: 1; } /* phone image from the CMS: no black bars to crop */
.hero-yt { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
/* Sized so the video's picture (not any black bars) covers the screen. */
.hero-yt iframe {
  position: absolute; top: 50%; left: 50%; border: 0;
  width: max(100cqw, calc(max(var(--showreel-ratio), 1.7778) * 100cqh));
  height: calc(max(100cqw, calc(max(var(--showreel-ratio), 1.7778) * 100cqh)) * 9 / 16);
  transform: translate(-50%, -50%) scale(1.08);
  opacity: 0; transition: opacity 1.2s ease;
}
.hero-yt.is-playing iframe { opacity: 1; }
/* HD background from your own showreel file (fills the screen, no zoom needed). */
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1s ease; }
.hero-video.is-playing { opacity: 1; }
/* Just a soft fade at the top (behind the menu) and bottom (into the page). */
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to bottom, rgba(8, 8, 10, 0.35) 0%, transparent 18%),
    linear-gradient(to top, var(--color-bg) 0%, rgba(14, 14, 16, 0.4) 14%, transparent 35%);
}

/* Intro section under the video */
.home-intro {
  max-width: 1600px; margin: 0 auto;
  padding: var(--space-8) var(--gutter) 0;
  display: grid; gap: var(--space-5);
}
.home-intro-text { max-width: 60ch; }
.home-intro-text p { margin: 0 0 var(--space-4); color: var(--color-muted); font-size: var(--text-lg); line-height: 1.6; }
.home-intro-text p:last-child { margin-bottom: var(--space-5); }
.home-intro .hero-title { margin-bottom: 0; }
.home-intro-body { margin-top: var(--space-6); }
.home-intro-reel:empty { display: none; }
.hero-eyebrow {
  margin: 0 0 var(--space-3); font-size: var(--text-sm); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.18em; color: var(--color-accent);
}
.hero-title {
  margin: 0 0 var(--space-5);
  font-size: clamp(2.4rem, 1.4rem + 5vw, 5.5rem); font-weight: 800;
  line-height: 0.98; letter-spacing: -0.03em; max-width: 14ch; text-wrap: balance;
}
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-5); }
.hero-play {
  display: inline-flex; align-items: center; gap: var(--space-3);
  padding: var(--space-4) var(--space-6);
  border: 0; border-radius: 999px; cursor: pointer;
  background: var(--color-text); color: var(--color-bg); font-weight: 700;
  transition: transform var(--transition), background-color var(--transition);
}
.hero-play:hover { transform: scale(1.04); background: #fff; }
.hero-link { text-decoration: none; font-weight: 600; color: var(--color-text); }
.hero-link:hover { color: var(--color-accent); }
.hero-scroll {
  position: absolute; left: 50%; bottom: var(--space-5); translate: -50% 0;
  width: 26px; height: 42px; border: 2px solid rgba(255, 255, 255, 0.6); border-radius: 14px;
}
.hero-scroll span {
  position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px;
  border-radius: 2px; background: var(--color-text);
  animation: scroll-cue 1.8s ease-in-out infinite;
}
@keyframes scroll-cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* The tap-to-play showreel tile is for phones only (see the phone layout below). */
.hero-tile { display: none; }

/* Phones: no full-screen video. The showreel is a 16:9 tile, the same size as
   the Selected work tiles, at the top; the intro section follows. */
@media (max-width: 639px) {
  .site-header--overlay { background: rgba(14, 14, 16, 0.92); border-bottom-color: var(--color-border); }
  .hero {
    height: auto; min-height: 0; overflow: visible; isolation: auto;
    padding: calc(var(--header-height) + var(--space-5)) var(--gutter) 0;
  }
  .hero::after, .hero-scroll, .hero-play, .hero-link { display: none; }
  .hero-media {
    position: relative; inset: auto; z-index: auto;
    aspect-ratio: 16 / 9; overflow: hidden; container-type: normal;
  }
  .hero-tile {
    display: block; position: absolute; inset: 0; width: 100%; padding: 0; border: 0; cursor: pointer;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75), transparent 55%); color: var(--color-text); text-align: left;
  }
  .hero-tile .work-info { position: absolute; left: 16px; right: 16px; bottom: 14px; width: auto; padding-top: 0; }
  .hero-tile .cine-kicker { font-size: 0.7rem; letter-spacing: 0.2em; margin-bottom: 4px; }
  .hero-tile .cine-title { font-size: clamp(1.5rem, 7vw, 2rem); }
  .hero-tile { border-radius: 14px; overflow: hidden; }
  .hero-media { border-radius: 14px; }
  .home-intro { padding-top: var(--space-6); gap: var(--space-4); }
  .home-intro .hero-title { font-size: clamp(2rem, 9vw, 2.6rem); }
  .home-intro-text p { font-size: var(--text-base); }
  .home-intro-text p:last-child { margin-bottom: 0; }
  .home-intro-body { margin-top: var(--space-4); }
  .home-intro-reel { display: none; } /* phones show the showreel tile at the top */
}

/* Sections below the hero */
.home-section { padding: var(--space-8) var(--gutter) 0; max-width: 1600px; margin: 0 auto; }
.home-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-4);
  margin-bottom: var(--space-5);
}
.home-head h2 { margin: 0; font-size: var(--text-xl); text-transform: uppercase; letter-spacing: 0.02em; }
.home-head a { color: var(--color-muted); text-decoration: none; font-size: var(--text-sm); white-space: nowrap; }
.home-head a:hover { color: var(--color-accent); }

/* Selected work: big cinematic tiles; the first one runs full width. */
.work-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-4); grid-template-columns: 1fr; }
/* Homepage video tiles: the Video Production cinematic look, in a grid. */
.work-tile {
  position: relative; width: 100%; aspect-ratio: 16 / 9;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto 1fr auto; column-gap: 20px;
  padding: 24px 26px; border: 0; border-radius: 20px; cursor: pointer; overflow: clip; isolation: isolate;
  background: var(--color-surface); color: var(--color-text); text-align: left;
}
.work-tile > img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2;
  transform: scale(1.02); transition: transform 1.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.work-tile > img.thumb-letterboxed { scale: 1.34; }
.work-tile::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(5, 6, 8, 0.82) 0%, rgba(5, 6, 8, 0.45) 40%, rgba(5, 6, 8, 0) 66%),
    linear-gradient(0deg, rgba(5, 6, 8, 0.72) 0%, rgba(5, 6, 8, 0) 50%);
}
.work-tile:hover > img, .work-tile:focus-visible > img { transform: scale(1.07); }
.work-tile:focus-visible { outline-offset: -3px; }
.work-tile .cine-index { font-size: 0.85rem; }
.work-tile .cine-index b { font-size: 2rem; }
.work-info { grid-column: 1; grid-row: 3; align-self: end; width: min(100%, 560px); display: block; padding-top: var(--space-4); }
.work-tile .cine-kicker { font-size: 0.85rem; letter-spacing: 0.26em; margin-bottom: var(--space-2); }
.work-tile .cine-title { font-size: clamp(1.9rem, 1rem + 2.2vw, 3.2rem); }
.work-tile .cine-title.long { font-size: clamp(1.6rem, 0.9rem + 1.6vw, 2.4rem); }
.work-tile .cine-credits { font-size: 0.82rem; margin-top: var(--space-3); }
.work-tile .cine-credits dt, .work-tile .cine-credits dd { padding: 5px 0; }
.work-tile .cine-watch { grid-column: 2; grid-row: 3; justify-self: end; justify-content: flex-start; font-size: 0.9rem; letter-spacing: 0.24em; }
.work-tile .cine-watch span { padding: 10px 16px; }
.work-tile .cine-watch span + span { padding: 10px 13px; }
.work-tile .cine-watch svg { width: 18px; height: 18px; }
.work-tile:hover .cine-watch, .work-tile:focus-visible .cine-watch { background: var(--color-text); color: #0b0b0d; }
/* Small tiles (phones, or two-across on narrower screens) keep just the
   number, label and title: each tile adapts to its own width. */
.work-tile { container-type: inline-size; }
@container (max-width: 560px) {
  .work-tile .cine-credits, .work-tile .cine-watch { display: none; }
  .work-tile { padding: 12px 16px 14px; }
  .work-info { width: auto; padding-top: var(--space-2); }
  .work-tile .cine-index { font-size: 0.7rem; }
  .work-tile .cine-index b { font-size: 1.4rem; }
  .work-tile .cine-kicker { font-size: 0.7rem; letter-spacing: 0.2em; margin-bottom: 4px; }
  .work-tile .cine-title, .work-tile .cine-title.long,
  .work-grid > li:first-child .work-tile .cine-title { font-size: clamp(1.4rem, 7.5cqi, 2rem); }
  .work-tile .cine-song { font-size: clamp(0.85rem, 4.2cqi, 1.1rem); margin-top: 0.25em; }
}
@media (max-width: 639px) {
  .work-tile { border-radius: 14px; }
}
@container (max-width: 560px) {
  .work-info { text-shadow: 0 1px 12px rgba(0, 0, 0, 0.6); }
}

/* Fallback YouTube thumbnails have black bars; zoom to crop them off. */
img.thumb-letterboxed { scale: 1.34; }
.video-poster img.thumb-letterboxed { scale: 1.34; }

/* Photography / Music tiles */
.more-grid { display: grid; gap: var(--space-4); grid-template-columns: 1fr; }
.more-tile {
  position: relative; display: flex; align-items: flex-end; aspect-ratio: 3 / 2;
  overflow: hidden; isolation: isolate; text-decoration: none;
}
.more-tile img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2;
  filter: brightness(0.65); transition: transform 1.2s cubic-bezier(0.2, 0.7, 0.2, 1), filter 0.6s ease;
}
.more-tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent 60%); }
.more-label { padding: var(--space-5); display: grid; gap: var(--space-1); }
.more-title { font-family: var(--font-display); font-weight: 800; font-size: var(--text-2xl); text-transform: uppercase; line-height: 1; color: var(--color-text); }
.more-sub { font-size: var(--text-sm); color: rgba(255, 255, 255, 0.8); transition: color var(--transition); }
.more-tile:hover img, .more-tile:focus-visible img { transform: scale(1.05); filter: brightness(0.85); }
.more-tile:hover .more-sub, .more-tile:focus-visible .more-sub { color: var(--color-accent); }

.home-cta { text-align: center; padding: var(--space-8) var(--gutter); max-width: 720px; margin: 0 auto; }
.home-cta h2 { font-size: var(--text-2xl); text-transform: uppercase; margin-bottom: var(--space-3); }
.home-cta p { color: var(--color-muted); margin: 0 0 var(--space-5); }

/* Fade-up as sections scroll into view (only when JavaScript is running). */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* Pop-up video player */
.video-modal {
  position: fixed; inset: 0; z-index: 200;
  background: var(--color-lightbox);
  display: grid; place-items: center; padding: var(--space-7) var(--space-4);
}
.video-modal[hidden] { display: none; }
.video-modal-frame { width: min(100%, 1400px, calc((100svh - 8rem) * 16 / 9)); aspect-ratio: 16 / 9; background: #000; }
.video-modal-frame iframe, .video-modal-frame video { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Video Production: cinematic panels ---------- */
.vp-intro { padding: var(--space-7) var(--gutter) var(--space-6); max-width: 1600px; margin: 0 auto; }
.vp-label { font-family: var(--font-label); font-weight: 700; letter-spacing: 0.32em; text-transform: uppercase; font-size: 0.85rem; color: var(--color-accent); margin: 0 0 var(--space-2); }
.vp-intro h1 { font-family: var(--font-cine); font-weight: 900; font-size: clamp(3.2rem, 2rem + 6vw, 8rem); line-height: 0.9; letter-spacing: 0.01em; text-transform: uppercase; margin: 0; }
.vp-intro p:last-child { margin: var(--space-4) 0 0; max-width: 52ch; color: var(--color-muted); }

.cine-list {
  list-style: none; margin: 0 auto; padding: 0 var(--gutter) var(--space-8); max-width: 1600px; display: grid; gap: 0;
  --hold: 45vh;     /* scrolling a panel stays fully visible before the next one slides over it */
  --stack-step: 10px; /* each covered panel sits this much lower, so the stack's edges show */
}
/* Each panel sticks briefly near the top so the next one slides up over it. */
.cine-list > li {
  position: sticky;
  top: calc(var(--header-height) + 12px + min(var(--i, 0), 4) * var(--stack-step));
  margin-bottom: var(--hold);
}
.cine-list > li:last-child { margin-bottom: 0; }
/* As the next panel slides over, this one sinks back into the stack (set by main.js). */
.cine-list > li > .cine {
  transform-origin: 50% 0;
  transform: scale(calc(1 - 0.06 * var(--covered, 0)));
  filter: brightness(calc(1 - 0.45 * var(--covered, 0)));
  will-change: transform, filter;
}
/* The panel is 16:9 (capped to fit the screen below the stack), and grows
   taller only when its text needs more room. Text sits in a grid: number at
   the top, label/title/credits bottom-left, Watch bottom-right. */
.cine {
  --pad: clamp(24px, 4.5vw, 64px);
  position: relative; isolation: isolate; overflow: clip; width: 100%;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto 1fr auto; column-gap: 24px;
  min-height: max(460px, min(calc((min(100vw, 1600px) - 2 * var(--gutter)) * 9 / 16), calc(100vh - var(--header-height) - 76px)));
  border: 0; border-radius: 28px; padding: var(--pad); cursor: pointer; text-align: left;
  color: var(--color-text); background: #111; box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.35);
}
.cine > img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2;
  transform: scale(1.02); transition: transform 1.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.cine > img.thumb-letterboxed { scale: 1.34; }
.cine:hover > img, .cine:focus-visible > img { transform: scale(1.07); }
/* Darkened left and bottom for the text, soft vignette at the edges. */
.cine::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(5, 6, 8, 0.82) 0%, rgba(5, 6, 8, 0.45) 38%, rgba(5, 6, 8, 0) 62%),
    linear-gradient(0deg, rgba(5, 6, 8, 0.7) 0%, rgba(5, 6, 8, 0) 45%),
    radial-gradient(120% 100% at 50% 50%, transparent 60%, rgba(0, 0, 0, 0.45) 100%);
}
.cine:focus-visible { outline-offset: -4px; }
.cine-index { grid-column: 1 / -1; grid-row: 1; justify-self: start; font-family: var(--font-cine); font-weight: 700; font-size: 1.05rem; letter-spacing: 0.2em; opacity: 0.85; }
.cine-index b { display: block; font-weight: 900; font-size: 2.6rem; letter-spacing: 0; line-height: 1; }
.cine-body { grid-column: 1; grid-row: 3; align-self: end; width: min(100%, 640px); display: block; padding-top: var(--space-6); }
.cine-kicker { display: block; font-family: var(--font-label); font-weight: 700; font-size: 1rem; letter-spacing: 0.3em; text-transform: uppercase; margin: 0 0 var(--space-3); opacity: 0.92; }
.cine-title { display: block; font-family: var(--font-cine); font-weight: 900; text-transform: uppercase; line-height: 0.86; letter-spacing: 0.005em; margin: 0; font-size: clamp(3rem, 1.5rem + 5vw, 7.5rem); text-wrap: balance; }
.cine-title.long { font-size: clamp(2.2rem, 1.2rem + 3.2vw, 4.8rem); }
/* Song name: a smaller heading under the artist. */
.cine-song { display: block; font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; font-size: clamp(1.3rem, 0.9rem + 1.2vw, 2.1rem); line-height: 1.05; margin-top: 0.35em; color: rgba(242, 239, 233, 0.82); }
.work-tile .cine-song { font-size: clamp(1rem, 0.7rem + 0.8vw, 1.45rem); }
.cine-credits { display: grid; grid-template-columns: auto 1fr; margin: var(--space-5) 0 0; border-top: 1px solid rgba(242, 239, 233, 0.55); font-family: var(--font-cine); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; font-size: 1rem; }
.cine-credits dt, .cine-credits dd { margin: 0; padding: 7px 0; border-bottom: 1px solid rgba(242, 239, 233, 0.55); }
.cine-credits dt { opacity: 0.7; padding-right: var(--space-6); }
.cine-credits dd { text-align: right; }
.cine-watch {
  grid-column: 2; grid-row: 3; align-self: end; justify-self: end;
  display: inline-flex; align-items: stretch; overflow: hidden;
  border: 1.5px solid rgba(242, 239, 233, 0.9); border-radius: 10px;
  font-family: var(--font-cine); font-weight: 800; letter-spacing: 0.28em; text-transform: uppercase; font-size: 1.05rem;
  background: rgba(5, 6, 8, 0.15); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  transition: background-color 0.3s, color 0.3s;
}
.cine-watch span { display: flex; align-items: center; padding: 14px 22px; }
.cine-watch span + span { border-left: 1.5px dashed currentColor; padding: 14px 18px; }
.cine-watch svg { width: 22px; height: 22px; }
.cine:hover .cine-watch, .cine:focus-visible .cine-watch { background: var(--color-text); color: #0b0b0d; }

@media (max-width: 760px) {
  .cine-list { --hold: 30vh; --stack-step: 8px; }
  .cine { --pad: 20px; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr auto auto; row-gap: var(--space-4); border-radius: 20px;
    min-height: min(calc((100vw - 2 * var(--gutter)) * 5 / 4), calc(100svh - var(--header-height) - 60px)); }
  .cine::after { background: linear-gradient(0deg, rgba(5, 6, 8, 0.92) 0%, rgba(5, 6, 8, 0.55) 45%, rgba(5, 6, 8, 0) 75%), radial-gradient(120% 100% at 50% 40%, transparent 55%, rgba(0, 0, 0, 0.45) 100%); }
  .cine-body { width: auto; padding-top: var(--space-4); }
  .cine-title { font-size: clamp(2.6rem, 11vw, 3.6rem); }
  .cine-title.long { font-size: clamp(2rem, 8vw, 2.6rem); }
  .cine-kicker { font-size: 0.78rem; letter-spacing: 0.3em; }
  .cine-credits { font-size: 0.82rem; margin-top: var(--space-4); }
  .cine-watch { grid-column: 1; grid-row: 4; justify-self: stretch; justify-content: space-between; font-size: 0.95rem; }
  .cine-index b { font-size: 2rem; }
}
@media (prefers-reduced-motion: reduce) {
  .cine-list > li { position: static; margin-bottom: var(--space-5); }
  .cine-list > li > .cine { transform: none; filter: none; }
}

/* ---------- Film ---------- */
.grid {
  display: grid; gap: var(--space-5);
  grid-template-columns: 1fr;
}
.featured-grid { display: grid; gap: var(--space-6); grid-template-columns: 1fr; }
.video-card { margin: 0; }
.video-card figcaption { padding-top: var(--space-3); }
.video-card h3 { font-size: var(--text-lg); margin: 0 0 var(--space-1); }
.video-card .meta { font-size: var(--text-sm); color: var(--color-muted); margin: 0; }
.video-card .video-category { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.14em; color: var(--color-accent); margin-bottom: var(--space-1); }
.video-frame {
  position: relative; aspect-ratio: 16 / 9; width: 100%;
  background: var(--color-surface); border-radius: var(--radius); overflow: hidden;
}
.video-frame iframe, .video-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-frame video { object-fit: cover; background: #000; }
.video-poster {
  position: absolute; inset: 0; width: 100%; height: 100%;
  padding: 0; border: 0; cursor: pointer; background: transparent;
}
.video-poster img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition), filter var(--transition); filter: brightness(0.8); }
.video-poster:hover img, .video-poster:focus-visible img { transform: scale(1.03); filter: brightness(1); }
.badge {
  position: absolute; top: var(--space-3); left: var(--space-3);
  font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.12em;
  background: var(--color-overlay-strong); padding: var(--space-1) var(--space-2); border-radius: 3px;
}

/* ---------- Photography gallery ---------- */
.gallery { columns: 1; column-gap: var(--space-4); }
.gallery-item {
  break-inside: avoid; margin: 0 0 var(--space-4);
  display: block; width: 100%; padding: 0; border: 0;
  background: var(--color-surface); border-radius: var(--radius);
  overflow: hidden; cursor: zoom-in; position: relative;
}
.gallery-item img { width: 100%; height: auto; transition: transform var(--transition), opacity var(--transition); }
.gallery-item:hover img, .gallery-item:focus-visible img { transform: scale(1.03); opacity: 0.85; }

/* Photography category cards */
.category-grid {
  display: grid; gap: var(--space-4);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
}
.category-card {
  position: relative; display: block; aspect-ratio: 4 / 3;
  border-radius: var(--radius); overflow: hidden; isolation: isolate;
  background: var(--color-surface); text-decoration: none;
}
.category-card img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2;
  filter: brightness(0.75); transition: transform var(--transition), filter var(--transition);
}
.category-card::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, var(--color-overlay-strong), transparent 65%);
}
.category-label { position: absolute; left: var(--space-4); right: var(--space-4); bottom: var(--space-4); display: grid; }
.category-title {
  font-family: var(--font-display); font-weight: 800; font-size: var(--text-xl);
  text-transform: uppercase; line-height: 1.05; color: var(--color-text);
}
.category-count { font-size: var(--text-sm); color: var(--color-muted); transition: color var(--transition); }
.category-card:hover img, .category-card:focus-visible img { transform: scale(1.05); filter: brightness(0.95); }
.category-card:hover .category-count, .category-card:focus-visible .category-count { color: var(--color-accent); }
.back-link { margin: 0 0 var(--space-3); font-size: var(--text-sm); }
.back-link a { color: var(--color-muted); text-decoration: none; }
.back-link a:hover { color: var(--color-accent); }

/* Featured photos (main Photography page): justified rows. main.js sets each
   tile's width and height so every photo shows uncropped at its real shape and
   each row fills the width exactly. */
.justified { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.justified > li { flex: none; min-width: 0; }
.feature-tile {
  position: relative; display: block; width: 100%; height: 100%;
  padding: 0; border: 0; overflow: hidden; cursor: zoom-in;
  background: var(--color-surface); color: var(--color-text);
}
.feature-tile img {
  display: block; width: 100%; height: 100%; object-fit: cover; /* box already matches the photo's shape */
  transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1), filter var(--transition);
}
.feature-tile:hover img, .feature-tile:focus-visible img { transform: scale(1.02); filter: brightness(0.85); }
/* Caption: a lower-third overlay that fades in when you hover over the photo. */
.feature-caption {
  position: absolute; left: 0; right: 0; bottom: 0; height: 33.4%;
  display: flex; align-items: flex-end;
  padding: var(--space-3) var(--space-4);
  background: linear-gradient(to top, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.45) 55%, transparent 100%);
  line-height: 1.35; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
  font-size: var(--text-xs); font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; text-align: left;
  opacity: 0; transform: translateY(6px); transition: opacity var(--transition), transform var(--transition);
}
.feature-tile:hover .feature-caption, .feature-tile:focus-visible .feature-caption { opacity: 1; transform: none; }
.featured-section { padding-bottom: var(--space-8); }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: var(--color-lightbox);
  display: grid; grid-template-rows: 1fr auto; place-items: center;
  padding: var(--space-7) var(--space-4) var(--space-4);
}
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; display: contents; }
.lightbox img {
  max-width: 100%; max-height: calc(100vh - 8rem); max-height: calc(100svh - 8rem);
  width: auto; height: auto; object-fit: contain; border-radius: 2px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}
.lightbox figcaption { color: var(--color-muted); font-size: var(--text-sm); text-align: center; padding-top: var(--space-3); }
.lb-btn {
  position: absolute; border: 0; cursor: pointer;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--color-surface-2); color: var(--color-text);
  font-size: 1.5rem; line-height: 1; display: grid; place-items: center;
}
.lb-btn:hover { background: var(--color-accent); color: var(--color-accent-contrast); }
.lb-close { top: var(--space-3); right: var(--space-3); }
.lb-prev, .lb-next { bottom: var(--space-4); }
.lb-prev { left: var(--space-4); }
.lb-next { right: var(--space-4); }
.no-scroll { overflow: hidden; }

/* ---------- Music ---------- */
.track-list {
  list-style: none; margin: 0; padding: 0; counter-reset: track;
  display: grid; gap: var(--space-7) var(--space-6);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 350px));
  align-items: start;
}
.track { counter-increment: track; display: grid; gap: var(--space-2); align-content: start; }
.track-head { display: flex; gap: var(--space-3); align-items: baseline; }
.track-head::before {
  content: counter(track, decimal-leading-zero);
  font-family: var(--font-mono); font-size: var(--text-sm); color: var(--color-accent);
}
.track h3 { font-size: var(--text-lg); margin: 0; }
.track .meta { font-size: var(--text-sm); color: var(--color-muted); margin: 0; }
.track .meta a { color: var(--color-accent); text-decoration: none; }
.track .meta a:hover { text-decoration: underline; }
.track .notes { margin: 0; color: var(--color-muted); }
.track audio { width: 100%; height: 40px; margin-top: var(--space-2); }
.track .bandcamp {
  width: 100%; border: 0; border-radius: var(--radius);
  background: var(--color-surface); margin-bottom: var(--space-2);
}

.band-list {
  display: grid; gap: var(--space-7) var(--space-6);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
}
.band h3 { font-size: var(--text-lg); margin-bottom: var(--space-3); }
.band .notes { margin: 0 0 var(--space-4); color: var(--color-muted); }
.band .spotify { width: 100%; height: 352px; border: 0; border-radius: 12px; background: var(--color-surface); }

/* ---------- Buttons ---------- */
.button {
  display: inline-block; cursor: pointer;
  background: var(--color-accent); color: var(--color-accent-contrast);
  border: 0; border-radius: var(--radius);
  padding: var(--space-3) var(--space-5);
  font-weight: 700; text-decoration: none; letter-spacing: 0.02em;
  transition: filter var(--transition), transform var(--transition);
}
.button:hover { color: var(--color-accent-contrast); filter: brightness(1.1); transform: translateY(-1px); }

/* ---------- About ---------- */
.about { display: grid; gap: var(--space-6); }
.about-portrait { width: 100%; max-width: 480px; height: auto; border-radius: var(--radius); }
.about-text { max-width: 65ch; }
.about-text p { color: var(--color-muted); }
.about-text p a:not(.button) { color: var(--color-accent); }
.about-text .lede { font-size: var(--text-lg); color: var(--color-text); line-height: 1.5; margin-top: 0; }
.about-heading {
  font-size: var(--text-sm); text-transform: uppercase; letter-spacing: 0.15em;
  color: var(--color-accent); margin: var(--space-6) 0 var(--space-3);
}
.services { list-style: none; margin: 0 0 var(--space-6); padding: 0; }
.services li { display: grid; gap: var(--space-1); padding: var(--space-3) 0; border-top: 1px solid var(--color-border); }
.services li:last-child { border-bottom: 1px solid var(--color-border); }
.services span { color: var(--color-muted); font-size: var(--text-sm); }

/* ---------- Contact ---------- */
.contact { display: grid; gap: var(--space-7); }
.contact-details .about-heading:first-child { margin-top: 0; }
.contact-details p { margin: 0; color: var(--color-muted); }
.contact-email { font-size: var(--text-lg); color: var(--color-text); word-break: break-word; }
.contact-social { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.contact-social a { color: var(--color-muted); text-decoration: none; }
.contact-social a:hover { color: var(--color-accent); }
.contact-form { display: grid; gap: var(--space-4); align-content: start; }
.form-field { display: grid; gap: var(--space-2); }
/* Labels match the Email / Based in / Follow headings opposite. */
.form-field label {
  font-family: var(--font-display); font-weight: 700; font-size: var(--text-sm);
  text-transform: uppercase; letter-spacing: 0.15em; color: var(--color-text);
}
.form-field input, .form-field select, .form-field textarea {
  width: 100%; font: inherit; color: var(--color-text);
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius); padding: var(--space-3);
}
.form-field textarea { resize: vertical; min-height: 140px; }
/* The dropdown gets the same look as the text boxes, with a thin arrow. */
.form-field select {
  appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f2efe9' stroke-width='1.6'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 18px;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: 2px solid var(--color-accent); outline-offset: 0; border-color: transparent; }
.contact-form .button { justify-self: start; }
.form-note { margin: 0; font-size: var(--text-sm); color: var(--color-muted); }
.form-success a { color: var(--color-accent); }
.form-success {
  margin: 0; padding: var(--space-3) var(--space-4); border-radius: var(--radius);
  background: var(--color-surface-2); border-left: 3px solid var(--color-accent);
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--color-border);
  padding: var(--space-6) var(--gutter);
  display: flex; flex-direction: column; gap: var(--space-4);
  font-size: var(--text-sm); color: var(--color-muted);
}
.site-footer a { text-decoration: none; }
.footer-email { font-size: var(--text-lg); color: var(--color-text); }
.social { display: flex; flex-wrap: wrap; gap: var(--space-4); list-style: none; margin: 0; padding: 0; }
.site-footer p { margin: 0; }

/* ---------- Breakpoints (mobile-first) ---------- */
@media (min-width: 640px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .gallery { columns: 2; }
  .lb-prev, .lb-next { top: 50%; bottom: auto; translate: 0 -50%; }
}

@media (min-width: 900px) {
  /* Intro on the left, showreel tile on the right. */
  .home-intro { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.25fr); gap: var(--space-8); align-items: center; padding-top: var(--space-8); }
  .home-intro .hero-title { font-size: clamp(2.4rem, 1.2rem + 3.6vw, 4.8rem); }
  .home-intro-text p { font-size: var(--text-base); }
  .home-intro-reel .work-tile { aspect-ratio: 16 / 10; }
  /* Desktop (every page): menu links across the top instead of the menu button. */
  .site-header { grid-template-columns: auto 1fr; }
  .site-header .menu-toggle { display: none; }
  .js .site-header .site-nav, .site-header .site-nav {
    position: static; grid-column: 2; justify-self: end;
    visibility: visible; opacity: 1; transform: none; transition: none;
    width: auto; max-width: none; padding: 0;
    background: none; border: 0; box-shadow: none; border-radius: 0;
  }
  .site-header .site-nav ul { display: flex; gap: var(--space-6); }
  .site-header .site-nav a {
    padding: var(--space-2) 0; border: 0;
    font-family: var(--font-body); font-weight: 600; font-size: var(--text-sm);
    letter-spacing: 0.12em; color: rgba(255, 255, 255, 0.6);
    transition: color var(--transition);
  }
  .site-header .site-nav a:hover, .site-header .site-nav a:focus-visible { background: none; color: #fff; }
  .site-header .site-nav a[aria-current="page"] { color: #fff; }
  .work-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-5); }
  .work-grid > li:first-child, .work-grid > li:last-child:nth-child(even) { grid-column: 1 / -1; }
  .work-grid > li:first-child .work-tile { aspect-ratio: 21 / 9; }
  .work-grid > li:first-child .cine-title { font-size: clamp(2.6rem, 1rem + 3.4vw, 5rem); }
  .work-grid > li:first-child .cine-title.long { font-size: clamp(2rem, 1rem + 2.2vw, 3.4rem); }
  .work-grid > li:first-child .work-info { width: min(100%, 680px); }
  .more-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-5); }
  .featured-grid { grid-template-columns: repeat(2, 1fr); }
  .featured-grid > :only-child { grid-column: 1 / -1; }
  .grid { grid-template-columns: repeat(3, 1fr); }
  .about { grid-template-columns: minmax(280px, 420px) 1fr; gap: var(--space-8); align-items: start; }
  .about-portrait { position: sticky; top: calc(var(--header-height) + var(--space-5)); }
  .contact { grid-template-columns: 1fr 1.4fr; gap: var(--space-8); }
  .gallery { columns: 3; }
  .site-footer { flex-direction: row; align-items: center; justify-content: space-between; }
}


@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- 3D photo field (Photography) ---------- */
/* The stage stays pinned under the header while the page scrolls past it;
   main.js sets the section's height (how far you scroll to fly through). */
.field { position: relative; min-height: calc(100svh - var(--header-height)); }
.field-stage {
  position: sticky; top: var(--header-height);
  height: calc(100svh - var(--header-height));
  overflow: hidden;
  perspective: 900px; perspective-origin: 50% 50%;
  background: var(--color-bg);
  cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none;
  -webkit-touch-callout: none;
}
.field-item img { -webkit-touch-callout: none; }
.field.is-dragging .field-stage, .field.is-dragging .field-item { cursor: grabbing; }
.field-world {
  position: absolute; left: 50%; top: 50%; width: 0; height: 0;
  transform-style: preserve-3d;
}
.field-item {
  position: absolute; left: 0; top: 0;
  padding: 0; border: 0; background: #1a1a1d; cursor: zoom-in;
  visibility: hidden; will-change: transform, opacity;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
}
.field-item img { display: block; width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-drag: none; }
.field-item::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.12); transition: background var(--transition); }
.field-item:hover::after, .field-item:focus-visible::after { background: transparent; }
.field-item:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }

/* Arrival: the gallery name, then a quick-fire slideshow under it. */
.field-intro {
  position: absolute; inset: 0; z-index: 3;
  display: grid; place-items: center; pointer-events: none;
}
.field-title {
  margin: 0 0 18vh; text-align: center;
  font-family: var(--font-display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(3rem, 1rem + 8vw, 9rem); line-height: 0.9; letter-spacing: 0.01em;
  color: #fff; text-shadow: 0 2px 30px rgba(0, 0, 0, 0.5);
  opacity: 0; transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.8s cubic-bezier(.2, .7, .2, 1);
}
.field.is-intro .field-title, .field.is-ready .field-title { opacity: 1; transform: none; }
.field-intro.is-leaving .field-title { opacity: 0; transform: translateY(-10px); transition-duration: 0.5s; }
.field-intro.is-done { display: none; }
.field-flash { position: absolute; z-index: 2; overflow: hidden; background: #000; }
.field-flash img { display: block; width: 100%; height: 100%; object-fit: cover; }

.field-hint {
  position: absolute; left: var(--gutter); bottom: 22px; z-index: 4; margin: 0;
  font-size: var(--text-xs, 0.75rem); letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5); opacity: 0; transition: opacity 0.6s ease 0.4s;
}
.field.is-ready .field-hint { opacity: 1; }

/* Tags: one per gallery. Choosing one changes the photos in the field. */
.field-tags {
  position: absolute; right: var(--gutter); bottom: 16px; z-index: 4;
  display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end;
  max-width: calc(100% - 2 * var(--gutter) - 200px);
  opacity: 0; transition: opacity 0.6s ease 0.2s;
}
.field.is-ready .field-tags { opacity: 1; }
.field-tag {
  font: 500 0.85rem/1 var(--font-body); letter-spacing: 0.02em;
  padding: 9px 16px; border-radius: 999px; cursor: pointer;
  color: rgba(255, 255, 255, 0.6); background: rgba(14, 14, 16, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.22);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}
.field-tag:hover, .field-tag:focus-visible { color: #fff; border-color: rgba(255, 255, 255, 0.6); }
.field-tag[aria-pressed="true"] { color: #0e0e10; background: #fff; border-color: #fff; }

.field-hint .hint-touch { display: none; }
@media (hover: none) {
  .field-hint .hint-mouse { display: none; }
  .field-hint .hint-touch { display: inline; }
}
@media (max-width: 639px) {
  /* Phones: the hint sits centred just above the tags. */
  .field-hint { left: 0; right: 0; bottom: 62px; text-align: center; font-size: 0.68rem; }
  /* Phones: one swipeable row of tags along the bottom. */
  .field-tags {
    left: 0; right: 0; bottom: 12px; max-width: none;
    flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto;
    padding: 0 var(--gutter); scrollbar-width: none;
  }
  .field-tags::-webkit-scrollbar { display: none; }
  .field-tag { flex: none; padding: 8px 14px; }
}

/* Music page: everything in capitals. */
body[data-page="music"] main { text-transform: uppercase; }
/* Desktop: the whole Music page sits centred — heading, intro, players and bands. */
@media (min-width: 900px) {
  body[data-page="music"] .page-intro { text-align: center; }
  body[data-page="music"] .page-intro p { margin: 0 auto; }
  body[data-page="music"] .section-title { justify-content: center; }
  .track-list { justify-content: center; }
  .band-list { grid-template-columns: repeat(auto-fit, minmax(340px, 420px)); justify-content: center; }
  .band h3 { text-align: center; }
}

/* ---------- Menu: Video Production → Live In Session ---------- */
.site-nav .sub-nav { list-style: none; margin: 0; padding: 0; }
/* Phones and the menu panel: Live In Session sits indented under Video Production. */
.site-nav .sub-nav a { padding-left: calc(var(--gutter) + 22px); font-size: var(--text-base); }
@media (min-width: 900px) {
  .site-header .site-nav .has-sub { position: relative; }
  .site-header .site-nav .has-sub > a::after {
    content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 8px;
    border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
    transform: translateY(-3px) rotate(45deg); opacity: 0.8;
  }
  .site-header .site-nav .sub-nav {
    display: block; position: absolute; top: 100%; left: -18px; min-width: 210px;
    padding: 8px 0; margin-top: 8px;
    background: rgba(14, 14, 16, 0.96); border: 1px solid var(--color-border); border-radius: 10px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
    opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: opacity var(--transition), transform var(--transition), visibility 0s linear 0.3s;
  }
  /* An invisible bridge so the dropdown stays open while the pointer moves down to it. */
  .site-header .site-nav .sub-nav::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
  .site-header .site-nav .has-sub:hover .sub-nav, .site-header .site-nav .has-sub:focus-within .sub-nav {
    opacity: 1; visibility: visible; transform: none;
    transition: opacity var(--transition), transform var(--transition), visibility 0s;
  }
  .site-header .site-nav .sub-nav a { display: block; padding: 10px 18px; font-size: var(--text-sm); white-space: nowrap; }
}

/* ---------- Live In Session page ---------- */
/* The heading lines up with the sections below it. */
.vp-intro.session-hero { max-width: var(--max-width); }
.vp-intro .vp-more { margin-top: var(--space-4); }
.vp-more a { color: var(--color-accent); text-decoration: none; font-weight: 600; letter-spacing: 0.02em; }
.vp-more a:hover { text-decoration: underline; }
.session-hero p#ses-intro { margin: var(--space-4) 0 0; max-width: 56ch; color: var(--color-muted); font-size: var(--text-lg); }
.vp-intro p.ses-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-5); margin: var(--space-6) 0 0; max-width: none; }
.ses-jump { color: var(--color-text); text-decoration: none; font-weight: 600; letter-spacing: 0.02em; }
.ses-jump:hover { color: var(--color-accent); }

.pkg-grid { display: grid; gap: var(--space-5); grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); align-items: stretch; }
.pkg {
  position: relative; display: flex; flex-direction: column; gap: var(--space-3);
  padding: var(--space-6) var(--space-5); border-radius: 14px;
  background: rgba(24, 24, 27, 0.92); border: 1px solid var(--color-border);
}
.pkg.is-featured { border-color: var(--color-accent); box-shadow: 0 0 0 1px var(--color-accent) inset; }
.pkg-badge {
  position: absolute; top: -12px; left: var(--space-5);
  font: 700 0.72rem/1 var(--font-display); letter-spacing: 0.2em; text-transform: uppercase;
  background: var(--color-accent); color: var(--color-accent-contrast); padding: 7px 10px; border-radius: 999px;
}
.pkg-name { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--color-muted); }
.pkg-price { margin: 0; font-family: var(--font-cine); font-weight: 900; font-size: clamp(2.8rem, 2rem + 2.4vw, 4rem); line-height: 0.9; }
.pkg-note { margin: 0; color: var(--color-muted); font-size: var(--text-sm); }
.pkg-features { list-style: none; margin: var(--space-2) 0 0; padding: var(--space-4) 0 0; border-top: 1px solid var(--color-border); display: grid; gap: var(--space-2); }
.pkg-features li { position: relative; padding-left: 26px; }
.pkg-features li::before {
  content: ""; position: absolute; left: 2px; top: 0.35em; width: 12px; height: 7px;
  border-left: 1.5px solid var(--color-accent); border-bottom: 1.5px solid var(--color-accent); transform: rotate(-45deg);
}
.ses-extras { margin-top: var(--space-7); max-width: 640px; }
.ses-extras .about-heading { margin-top: 0; }
.extras { list-style: none; margin: 0; padding: 0; }
.extras li { display: flex; justify-content: space-between; gap: var(--space-4); padding: var(--space-3) 0; border-bottom: 1px solid var(--color-border); }
.extras-price { font-family: var(--font-display); font-weight: 700; font-size: var(--text-lg); white-space: nowrap; }
.ses-note { margin: var(--space-5) 0 0; color: var(--color-muted); font-size: var(--text-sm); max-width: 70ch; }

.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: var(--space-5); grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.steps li { counter-increment: step; padding-top: var(--space-4); border-top: 1px solid var(--color-border); }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; font-family: var(--font-cine); font-weight: 900; font-size: 2.6rem; line-height: 1; color: var(--color-accent); margin-bottom: var(--space-3); }
.steps h3 { font-size: var(--text-lg); text-transform: uppercase; margin: 0 0 var(--space-2); }
.steps p { margin: 0; color: var(--color-muted); }
.ses-text { margin-top: var(--space-5); max-width: 70ch; }
.ses-text p { color: var(--color-muted); }

.ses-members { display: grid; gap: var(--space-8); }
.ses-member { display: grid; gap: var(--space-5) var(--space-6); align-items: center; }
.ses-team-photo {
  aspect-ratio: 4 / 5; border-radius: 14px; overflow: hidden; max-width: 420px; width: 100%;
  background: linear-gradient(160deg, #222226, #141416); display: grid; place-items: center;
}
.ses-team-photo span { font-family: var(--font-cine); font-weight: 900; font-size: clamp(3rem, 2rem + 4vw, 6rem); text-transform: uppercase; color: rgba(255, 255, 255, 0.08); }
.ses-team-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ses-team-name { font-family: var(--font-cine); font-weight: 900; font-size: clamp(2.6rem, 1.8rem + 3vw, 5rem); line-height: 0.9; text-transform: uppercase; margin: 0; }
.ses-team-text .ses-text { margin-top: var(--space-4); }
.ses-team-link a { color: var(--color-accent); text-decoration: none; font-weight: 600; }
.ses-team-link a:hover { text-decoration: underline; }
/* Photos under a bio, and the studio's photos: a tidy grid; click for full size. */
.ses-gallery { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
@media (min-width: 640px) { .ses-gallery { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); } }
.ses-member .ses-gallery { grid-column: 1 / -1; }
.ses-photo { display: block; width: 100%; aspect-ratio: 3 / 2; padding: 0; border: 0; border-radius: 10px; overflow: hidden; cursor: zoom-in; background: var(--color-surface); }
.ses-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s cubic-bezier(.2, .7, .2, 1); }
.ses-photo:hover img, .ses-photo:focus-visible img { transform: scale(1.04); }
/* The studio */
.ses-studio .ses-team-name { margin-bottom: 0; }
.ses-studio .ses-gallery { margin-top: var(--space-6); }
.gear { margin-top: var(--space-7); }
.gear .about-heading { margin-top: 0; }
.gear-grid { display: grid; gap: var(--space-5) var(--space-6); grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.gear-group h4 { margin: 0 0 var(--space-2); font-family: var(--font-display); font-weight: 700; font-size: var(--text-lg); text-transform: uppercase; letter-spacing: 0.04em; }
.gear-group ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.gear-group li { color: var(--color-muted); padding-bottom: 6px; border-bottom: 1px solid var(--color-border); }
.ses-studio .ses-team-link { margin-top: var(--space-5); }
@media (min-width: 900px) {
  .ses-member { grid-template-columns: minmax(260px, 420px) 1fr; column-gap: var(--space-8); }
  /* Every other person: portrait on the right. */
  .ses-member:nth-child(even) { grid-template-columns: 1fr minmax(260px, 420px); }
  .ses-member:nth-child(even) .ses-team-photo { order: 2; }
  .ses-member:nth-child(even) .ses-team-text { order: 1; }
  .ses-member .ses-gallery { order: 3; }
}

/* Packages: intro line, small notes, prices by artist; extras in two columns on desktop. */
.pkg-intro { margin: calc(-1 * var(--space-2)) 0 var(--space-4); color: var(--color-muted); max-width: 60ch; }
.pkg-tags { list-style: none; margin: 0 0 var(--space-6); padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2); }
.pkg-tags li { font-size: var(--text-sm); font-weight: 600; padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--color-border); }
.pkg-rates { margin: var(--space-1) 0 0; display: grid; grid-template-columns: 1fr auto; }
.pkg-rates dt, .pkg-rates dd { margin: 0; padding: 10px 0; border-bottom: 1px solid var(--color-border); }
.pkg-rates dt { color: var(--color-muted); }
.pkg-rates dd { font-family: var(--font-display); font-weight: 800; font-size: 1.45rem; line-height: 1.1; text-align: right; }
.pkg-rates + .pkg-features { border-top: 0; padding-top: var(--space-2); }
@media (min-width: 900px) {
  .ses-extras { max-width: none; }
  .extras { display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--space-7); }
}
/* Package names are the card headings. */
.pkg-name { font-size: 1.7rem; letter-spacing: 0.08em; color: var(--color-text); font-weight: 800; }
@media (min-width: 900px) {
  /* Extras read down each column, like the rate card. */
  .extras { display: block; columns: 2; column-gap: var(--space-7); }
  .extras li { break-inside: avoid; }
}

/* The Team: a portrait set to "As uploaded" shows the whole photo at its own
   shape, and gets a wider column so landscape photos aren't tiny. */
.ses-team-photo.is-original { aspect-ratio: auto; max-width: none; background: none; }
.ses-team-photo.is-original img { height: auto; }
@media (min-width: 900px) {
  .ses-member.has-wide-photo { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
  .ses-member.has-wide-photo:nth-child(even) { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
}
