/* ==========================================================================
   Section themes — same logo, nav, base + mono type everywhere; each section
   changes color, display type and texture. Selected by <html data-theme="…">.
   ========================================================================== */

/* ---------------------------------------------------------------- theme tokens */
html[data-theme="commercial"] {
  --bg: #ffffff;
  --fg: #0c0c0b;
  --muted: #66635e;          /* 5.9:1 on white */
  --line: rgba(12, 12, 11, 0.14);
  --surface: #f3f2ef;
  --accent: #0c0c0b;
  --accent-fg: #ffffff;
  --header-bg: rgba(255, 255, 255, 0.9);
  --vimeo-color: #ffffff;
}
html[data-theme="rave"] {
  --bg: #0c0c0b;
  --fg: #f2efe9;
  --muted: #9a968f;
  --surface: #151514;
  --accent: #ff5b14;         /* sodium light — 6.3:1 on --bg */
  --accent-fg: #0c0c0b;
  --rec: #ff5b14;
  --font-display: "Big Shoulders Display", var(--font-base);
  --vimeo-color: #ff5b14;
}
html[data-theme="music"] {
  --bg: #080808;
  --fg: #f2efe9;
  --muted: #958f84;
  --accent: #c9a15b;
  --accent-fg: #080808;
  --rec: #c9a15b;
  --font-display: "Syncopate", var(--font-base);
  --vimeo-color: #c9a15b;
}
html[data-theme="narrative"] {
  --bg: #ede6da;
  --fg: #231a12;
  --muted: #6e5f50;          /* 5.2:1 on --bg */
  --line: rgba(35, 26, 18, 0.16);
  --surface: #e3d9c9;
  --accent: #231a12;
  --accent-fg: #ede6da;
  --rec: #b4592f;
  --header-bg: rgba(237, 230, 218, 0.9);
  --font-display: "Newsreader", Georgia, serif;
  --vimeo-color: #e0a36b;
}

/* ================================================================ LANDING */
/* hero: full-bleed reel framed like a viewfinder */
.hero { position: relative; isolation: isolate; height: 100svh; min-height: 560px; max-height: 1100px; color: #f2efe9; overflow: hidden; }
.hero-media { position: absolute; inset: 0; z-index: -1; background: #000; container-type: size; }
.hero-media > img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.62) contrast(1.05); }
.hero-media iframe { opacity: 0; transition: opacity 1.2s var(--ease); }
.hero-media.is-playing iframe { opacity: 1; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(8, 8, 8, 0.85), rgba(8, 8, 8, 0) 45%), linear-gradient(to bottom, rgba(8, 8, 8, 0.7), rgba(8, 8, 8, 0) 22%);
}

.viewfinder { position: absolute; inset: calc(var(--header-h) + 12px) var(--gutter) var(--gutter); pointer-events: none; }
.viewfinder i { position: absolute; width: 28px; height: 28px; border: 0 solid rgba(242, 239, 233, 0.75); }
.viewfinder i:nth-child(1) { top: 0; left: 0; border-width: 1px 0 0 1px; }
.viewfinder i:nth-child(2) { top: 0; right: 0; border-width: 1px 1px 0 0; }
.viewfinder i:nth-child(3) { bottom: 0; left: 0; border-width: 0 0 1px 1px; }
.viewfinder i:nth-child(4) { bottom: 0; right: 0; border-width: 0 1px 1px 0; }
.vf-rec {
  position: absolute; top: 16px; left: 20px; display: flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
}
.vf-rec::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--rec); animation: rec 1.6s steps(1) infinite; }
.vf-tc { position: absolute; top: 16px; right: 20px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; font-variant-numeric: tabular-nums; }
@keyframes rec { 50% { opacity: 0; } }

.hero-bottom {
  position: absolute; left: 0; right: 0; bottom: calc(var(--gutter) + 24px);
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 40px;
  padding-inline: calc(var(--gutter) + 20px);
}
.hero-name { font-size: clamp(48px, 9.5vw, 152px); font-weight: 500; letter-spacing: -0.05em; line-height: 0.88; }
.hero-roles { margin-top: 18px; color: rgba(242, 239, 233, 0.82); }
.hero .btn { color: #f2efe9; }
.hero .btn:hover { background: #f2efe9; color: #0c0c0b; }
@media (max-width: 600px) {
  .vf-tc { display: none; }
  .hero-bottom { padding-inline: calc(var(--gutter) + 12px); bottom: calc(var(--gutter) + 16px); }
}

/* index of the four sections */
.index { position: relative; isolation: isolate; padding-top: clamp(64px, 9vw, 128px); }
.index-head { display: flex; justify-content: space-between; padding-bottom: 16px; }
.index-list { border-top: 1px solid var(--line); }
.index-row {
  display: grid; grid-template-columns: 5ch minmax(0, 1fr) minmax(0, 22ch); align-items: center; gap: 24px;
  padding: clamp(18px, 2.4vw, 32px) var(--gutter); border-bottom: 1px solid var(--line);
  max-width: var(--max); margin-inline: auto; transition: opacity 0.4s var(--ease);
}
.ir-num, .ir-desc { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.ir-desc { text-align: right; }
.ir-name { font-size: clamp(56px, 10.5vw, 176px); line-height: 0.86; transition: transform 0.6s var(--ease); }
.ir-media { position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity 0.6s var(--ease); pointer-events: none; }
.ir-media img, .ir-media video { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.42) saturate(1.1); }
.index-list:hover .index-row { opacity: 0.32; }
.index-list .index-row:hover, .index-list .index-row:focus-visible { opacity: 1; }
.index-row:hover .ir-media, .index-row:focus-visible .ir-media { opacity: 1; }
.index-row:hover .ir-name { transform: translateX(14px); }
.index-row:hover .ir-desc, .index-row:hover .ir-num { color: var(--fg); }

/* each section name set in its own display face */
.ir-name--rave { font-family: "Big Shoulders Display", var(--font-base); font-weight: 900; text-transform: uppercase; letter-spacing: -0.01em; }
.ir-name--commercial { font-weight: 500; letter-spacing: -0.055em; }
.ir-name--narrative { font-family: "Newsreader", Georgia, serif; font-style: italic; font-weight: 400; letter-spacing: -0.03em; }
.ir-name--music { font-family: "Syncopate", var(--font-base); font-weight: 700; text-transform: uppercase; font-size: clamp(40px, 7.4vw, 124px); letter-spacing: -0.02em; }

@media (hover: none), (max-width: 760px) {
  .index-row { position: relative; grid-template-columns: 1fr; gap: 6px; min-height: 46vw; align-content: end; isolation: isolate; }
  .ir-desc { text-align: left; }
  .ir-media { opacity: 0.9; }
  .index-list:hover .index-row { opacity: 1; }
}

/* ================================================================ COMMERCIAL (interim — full redesign next) */
.c-intro {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px 32px; align-items: end;
  padding-top: calc(var(--header-h) + clamp(64px, 10vw, 150px));
}
.c-intro-main { grid-column: span 8; }
.c-intro-side { grid-column: span 4; }
.c-title { font-size: clamp(44px, 7vw, 112px); font-weight: 500; letter-spacing: -0.05em; line-height: 0.95; margin-top: 20px; }
.c-lede { font-size: 17px; color: var(--muted); max-width: 40ch; }
.c-services { margin: 28px 0 0; border-top: 1px solid var(--line); }
.c-services li { display: flex; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.c-services li span { font-family: var(--font-mono); font-size: 12px; color: var(--muted); width: 3ch; padding-top: 2px; }
.clients {
  margin-top: clamp(64px, 9vw, 120px); padding: 24px 0; border-block: 1px solid var(--line);
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px clamp(28px, 5vw, 72px);
}
.clients p { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-right: auto; }
.clients ul { display: flex; flex-wrap: wrap; gap: 12px clamp(28px, 5vw, 64px); }
.clients li { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.work-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px; margin: clamp(72px, 10vw, 140px) 0 32px; }
.work-head h2 { font-size: clamp(28px, 3vw, 40px); font-weight: 500; letter-spacing: -0.03em; }
.filters { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.chip {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
  padding: 6px 0; border-bottom: 1px solid transparent; transition: color 0.2s, border-color 0.2s;
}
.chip:hover { color: var(--fg); }
.chip[aria-pressed="true"] { color: var(--fg); border-color: var(--fg); }
.work-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(48px, 6vw, 88px) clamp(16px, 2vw, 32px); }
.tile--featured { grid-column: 1 / -1; }
.tile--featured .tile-media { aspect-ratio: 2.2 / 1; }
.tile--featured .tile-title { font-size: clamp(24px, 2.4vw, 32px); }
.c-cta {
  margin-top: clamp(96px, 12vw, 180px); padding-top: 24px; border-top: 1px solid var(--line);
  display: grid; grid-template-columns: minmax(0, 1.5fr) auto; gap: 32px; align-items: end;
}
.c-cta h2 { font-size: clamp(32px, 4.4vw, 64px); font-weight: 500; letter-spacing: -0.04em; line-height: 1; }
.c-cta p { margin-top: 16px; color: var(--muted); max-width: 46ch; }
@media (max-width: 900px) {
  .c-intro-main, .c-intro-side { grid-column: 1 / -1; }
  .c-cta { grid-template-columns: 1fr; justify-items: start; }
}
@media (max-width: 680px) {
  .work-grid { grid-template-columns: 1fr; }
  .tile--featured .tile-media { aspect-ratio: 16 / 9; }
}

/* ================================================================ RAVE */
html[data-theme="rave"] body::after {
  content: ""; position: fixed; inset: 0; z-index: 45; pointer-events: none;
  background: var(--noise); background-size: 200px; opacity: 0.05;
}
html[data-theme="rave"] .next-project strong,
html[data-theme="rave"] .project-title { font-weight: 900; text-transform: uppercase; letter-spacing: -0.01em; }

/* opening frame */
.rave-open { position: relative; isolation: isolate; height: 88svh; min-height: 520px; max-height: 980px; overflow: hidden; }
.ro-media { position: absolute; inset: 0; z-index: -1; background: #000; }
.ro-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 38%; filter: brightness(0.55) contrast(1.08); }
.ro-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, var(--bg) 0%, rgba(12, 12, 11, 0) 50%), linear-gradient(to bottom, rgba(12, 12, 11, 0.7), rgba(12, 12, 11, 0) 22%); }
.ro-inner { position: absolute; left: 0; right: 0; bottom: 0; padding-bottom: clamp(28px, 4vw, 48px); max-width: var(--max); margin-inline: auto; }
.ro-title {
  font-family: var(--font-display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(96px, 22vw, 340px); line-height: 0.8; letter-spacing: -0.01em; margin: 10px 0 0 -0.03em;
}
.ro-row {
  display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px;
  margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line);
}
.ro-row p { max-width: 44ch; color: rgba(242, 239, 233, 0.8); }

/* artists / events switch: hard-edged bar */
.rave-switch { display: grid; grid-template-columns: 1fr 1fr; margin-top: clamp(40px, 6vw, 80px); box-shadow: inset 0 0 0 1px var(--fg); }
.rave-switch button {
  display: flex; justify-content: space-between; align-items: baseline; text-align: left; gap: 12px;
  font-family: var(--font-display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(30px, 5vw, 72px); line-height: 1; padding: 0.24em 0.32em;
  transition: background 0.25s, color 0.25s;
}
.rave-switch button + button { box-shadow: inset 1px 0 0 var(--fg); }
.rave-switch sup { font-family: var(--font-mono); font-weight: 400; font-size: 12px; letter-spacing: 0.08em; }
.rave-switch [aria-selected="true"] { background: var(--fg); color: var(--bg); }
.rave-switch [aria-selected="false"]:hover { background: rgba(242, 239, 233, 0.08); }

/* the stack — duotone name blocks (black + one ink from the set lights) */
.stack { display: flex; flex-direction: column; align-items: center; padding-top: clamp(56px, 8vw, 104px); }
.stack-block {
  --size: min(clamp(56px, 17vw, 184px), calc((100vw - 2 * var(--gutter)) * 1.75 / var(--len)));
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; flex-direction: column; align-items: center;
  padding: 0.08em 0.2em 0.04em; margin-top: -0.02em;
  font-family: "Big Shoulders Display", var(--font-base); font-weight: 900; text-transform: uppercase;
  line-height: 0.9; letter-spacing: -0.005em; color: #f2efe9;
  font-size: calc(var(--size) * var(--jitter) * var(--fit, 1));
  background: var(--ink);
  transform: translateX(var(--shift)) rotate(var(--tilt));
  transition: transform 0.5s var(--ease);
}
.sb-media { position: absolute; inset: 0; z-index: -1; container-type: size; mix-blend-mode: multiply; transition: mix-blend-mode 0s 0.25s; }
.sb-media > img {
  width: 100%; height: 100%; object-fit: cover; object-position: var(--focus, 50% 40%);
  filter: grayscale(1) contrast(1.3) brightness(1.15); transition: filter 0.6s var(--ease), transform 1s var(--ease);
}
.sb-media.is-playing { mix-blend-mode: normal; }
.sb-tint { display: none; }
.sb-name { position: relative; white-space: nowrap; text-shadow: 0 0.02em 0.12em rgba(0, 0, 0, 0.45); }
.sb-meta {
  display: flex; gap: 0.9em; align-items: center; margin: 0.5em 0 0.9em; white-space: nowrap;
  font-family: var(--font-mono); font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em;
  font-size: max(10px, 0.085em); background: rgba(12, 12, 11, 0.7); padding: 0.35em 0.7em;
}
.sb-tag { color: var(--accent); font-weight: 500; }

a.stack-block:hover, a.stack-block:focus-visible, .stack-block.is-active { z-index: 5; transform: translateX(var(--shift)) rotate(0deg); }
a.stack-block:hover .sb-media, a.stack-block:focus-visible .sb-media, .stack-block.is-active .sb-media { mix-blend-mode: normal; transition-delay: 0s; }
a.stack-block:hover .sb-media > img, a.stack-block:focus-visible .sb-media > img, .stack-block.is-active .sb-media > img {
  filter: brightness(0.7); transform: scale(1.04);
}
.stack .empty { color: var(--muted); }

/* coverage page */
.coverage { padding-top: calc(var(--header-h) + 20px); }
.cov-head { padding-bottom: clamp(36px, 5vw, 64px); }
.cov-title { display: flex; justify-content: center; margin-top: clamp(24px, 4vw, 48px); font-size: inherit; font-weight: inherit; }
.cov-title .stack-block { --size: min(clamp(64px, 15vw, 240px), calc((100vw - 2 * var(--gutter)) * 1.75 / var(--len))); }
.cov-slate { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; margin-top: 28px; }

.cov-sec-head { display: flex; justify-content: space-between; padding-bottom: 14px; }

/* clip strip: vertical clips side by side on black; swipe on phones */
.cov-clips { padding-bottom: clamp(56px, 7vw, 104px); }
.clip-rail {
  display: flex; gap: 10px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; padding-inline: var(--gutter); scrollbar-width: none;
}
.clip-rail::-webkit-scrollbar { display: none; }
.clip-rail > :first-child { margin-left: auto; }
.clip-rail > :last-child { margin-right: auto; }
.rail-clip {
  position: relative; flex: 0 0 auto; height: min(76svh, 760px); aspect-ratio: var(--ratio, 0.5625);
  background: #000; overflow: hidden; scroll-snap-align: center;
}
.rail-clip > img, .rail-clip > video { width: 100%; height: 100%; object-fit: cover; transition: filter 0.4s; }
.rail-clip:hover > img, .rail-clip:hover > video { filter: brightness(1.1); }
.rail-clip iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 700px) { .rail-clip { height: auto; width: 70vw; } }

/* stills: tight cropped mosaic */
.canvas { position: relative; width: 100%; background: #000; opacity: 0; transition: opacity 0.6s var(--ease); }
.canvas.is-ready { opacity: 1; }
.cv-tile { position: absolute; display: block; overflow: hidden; padding: 0; background: #111; }
.cv-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease), filter 0.4s; }
.cv-photo:hover img { transform: scale(1.03); filter: brightness(1.08); }
.cv-clip-play { position: absolute; inset: 0; z-index: 1; display: block; cursor: pointer; }
.cv-clip-label {
  position: absolute; left: 12px; bottom: 12px; z-index: 2; display: flex; align-items: center; gap: 8px; pointer-events: none;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: #f2efe9;
  background: rgba(12, 12, 11, 0.72); padding: 5px 8px;
}
.cv-clip-label::before { content: ""; width: 0; height: 0; border-style: solid; border-width: 4px 0 4px 7px; border-color: transparent transparent transparent var(--accent); }
.rail-clip:hover .cv-clip-label, .rail-clip:focus-within .cv-clip-label { background: var(--accent); color: var(--accent-fg); }
.is-live .cv-clip-label { display: none; }
html[data-theme="rave"] .coverage + .site-footer { margin-top: 0; }

/* ================================================================ COMING-SOON STUBS */
.soon { min-height: 80svh; display: grid; place-content: center; text-align: center; gap: 20px; padding-top: var(--header-h); }
.soon h1 { font-family: var(--font-display); font-size: clamp(56px, 10vw, 160px); line-height: 0.9; letter-spacing: -0.03em; font-weight: 500; }
html[data-theme="rave"] .soon h1, html[data-theme="music"] .soon h1 { text-transform: uppercase; font-weight: 900; letter-spacing: 0; }
html[data-theme="music"] .soon h1 { font-weight: 700; font-size: clamp(40px, 8vw, 120px); }
html[data-theme="narrative"] .soon h1 { font-style: italic; font-weight: 400; }
.soon p { color: var(--muted); }
.soon .btn { justify-self: center; }
