/* ==========================================================================
   Darkbloom Productions — Cinematic Noir
   All motion is pure CSS. Load animations play once; nothing loops.
   Every animation has a prefers-reduced-motion fallback that lands on
   the final frame (see the media query at the bottom).
   ========================================================================== */

/* ---- Self-hosted fonts (latin subsets) ---- */
@font-face {
  font-family: 'Italiana';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/italiana-normal-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+2010-2027, U+2030-205E;
}
@font-face {
  font-family: 'Work Sans';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/work-sans-italic-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+2010-2027, U+2030-205E;
}
@font-face {
  font-family: 'Work Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/work-sans-normal-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+2010-2027, U+2030-205E;
}
@font-face {
  font-family: 'Work Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/work-sans-normal-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+2010-2027, U+2030-205E;
}

/* ---- Tokens ---- */
:root {
  --accent: #5F4B8B;            /* noir violet */
  --bg: #0B0A09;
  --bg-well: #080706;
  --bg-panel: #0E0C0B;
  --bone: #E9E3D5;
  --tile-ivory: #F5F2EB;
  --hairline: rgba(233, 227, 213, .12);
  --mono: ui-monospace, Menlo, monospace;
}

/* ---- Base ---- */
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--bone);
  font-family: 'Work Sans', sans-serif;
  font-size: 13.5px;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--bone); text-decoration: none; }
a:hover { color: var(--accent); }
::selection { background: var(--accent); color: var(--bg); }
img { max-width: 100%; }

/* ---- Film grain (static texture, not animated) ---- */
.grain {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  opacity: .07;
  background-image: url('data:image/svg+xml;utf8,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%22160%22 height=%22160%22%3E%3Cfilter id=%22n%22%3E%3CfeTurbulence type=%22fractalNoise%22 baseFrequency=%220.9%22 numOctaves=%222%22/%3E%3C/filter%3E%3Crect width=%22160%22 height=%22160%22 filter=%22url(%23n)%22 opacity=%220.55%22/%3E%3C/svg%3E');
}

/* ---- Nav ---- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding: 22px 4vw;
  background: linear-gradient(rgba(11, 10, 9, .86), rgba(11, 10, 9, 0));
}
.nav-wordmark {
  font-family: 'Italiana', serif;
  font-size: 17px;
  letter-spacing: .32em;
}
.nav-links { display: flex; gap: 32px; flex-wrap: wrap; }
.nav-links a {
  font-size: 10.5px;
  letter-spacing: .38em;
  text-transform: uppercase;
  color: rgba(233, 227, 213, .6);
}
.nav-links a:hover { color: var(--accent); }
@media (max-width: 640px) {
  .nav { padding: 16px 5vw; }
  .nav-links { gap: 16px; }
  .nav-links a { font-size: 9.5px; letter-spacing: .26em; }
}

/* ---- Section headers ---- */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 18px;
  flex-wrap: wrap;
  padding: 0 4vw;
}
.section-title { margin: 0; display: flex; align-items: baseline; gap: 18px; }
.section-index {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .3em;
  color: var(--accent);
}
.section-name {
  font-family: 'Italiana', serif;
  font-weight: 400;
  font-size: 30px;
  letter-spacing: .3em;
}

/* ==========================================================================
   01 · HOME
   ========================================================================== */
.home {
  min-height: 100vh;
  min-height: 100svh;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 110px 6vw 90px;
  box-sizing: border-box;
  background:
    radial-gradient(ellipse 70% 50% at 50% 30%, rgba(95, 75, 139, .10), transparent 65%),
    var(--bg);
}

/* Load entrance — staggered fade-up, each plays exactly once */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}
/* Title-card reveal — once per load, never on scroll */
@keyframes title-card {
  from { opacity: 0; transform: scale(1.03); }
  to   { opacity: 1; transform: scale(1); }
}
/* Anamorphic glint — light band sweeps the wordmark once on hover */
@keyframes glint {
  from { background-position: -10% 0; }
  to   { background-position: 120% 0; }
}
/* Scroll cue — fades in once, then holds (no loop) */
@keyframes cue-in {
  from { opacity: 0; }
  to   { opacity: .55; }
}

.home-mark { animation: fade-up 1.4s ease .1s both; }
.home-mark img {
  width: 210px;
  height: 210px;
  object-fit: contain;
  filter: invert(0.91) sepia(0.06);
}
.wordmark {
  position: relative;
  margin: 42px 0 0;
  font-family: 'Italiana', serif;
  font-weight: 400;
  font-size: clamp(2.8rem, 8.5vw, 7rem);
  letter-spacing: .16em;
  text-indent: .16em;
  line-height: 1.05;
  animation: title-card 1.6s cubic-bezier(.33, 1, .5, 1) both;
}
.wordmark-glint {
  position: absolute;
  inset: 0;
  display: block;
  color: transparent;
  pointer-events: none;
  background-image: linear-gradient(115deg, transparent 36%, rgba(255, 253, 244, .6) 45%, #FFFFFF 50%, rgba(255, 253, 244, .6) 55%, transparent 64%);
  background-size: 260% 100%;
  background-repeat: no-repeat;
  background-position: -10% 0;
  -webkit-background-clip: text;
  background-clip: text;
  opacity: 0;
  filter: drop-shadow(0 0 14px rgba(255, 251, 238, .55)) drop-shadow(0 0 40px rgba(255, 251, 238, .3));
}
.wordmark:hover .wordmark-glint {
  opacity: 1;
  animation: glint .8s cubic-bezier(.3, .1, .3, 1) both;
}
.home-sub {
  margin: 10px 0 0;
  font-size: 11.5px;
  letter-spacing: .72em;
  text-indent: .72em;
  color: rgba(233, 227, 213, .55);
  animation: fade-up 1.4s ease .5s both;
}
.home-intro {
  margin: 30px 0 0;
  max-width: 520px;
  font-size: 13.5px;
  line-height: 1.75;
  letter-spacing: .04em;
  color: rgba(233, 227, 213, .6);
  animation: fade-up 1.4s ease .6s both;
}
.home-rule {
  width: 56px;
  height: 1px;
  background: var(--accent);
  margin: 40px 0 0;
  animation: fade-up 1.4s ease .65s both;
}
.scroll-cue {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  animation: cue-in 1.8s ease 1.4s both;
}
.scroll-cue-label {
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: .5em;
  color: rgba(233, 227, 213, .9);
}
.scroll-cue-line {
  display: block;
  width: 1px;
  height: 42px;
  background: linear-gradient(rgba(233, 227, 213, .9), transparent);
}

/* ==========================================================================
   02 · WORK
   ========================================================================== */
.work { padding-top: 110px; }

/* ---- Featured slider (manual advance only — no autoplay) ---- */
.slider {
  position: relative;
  height: 92vh;
  height: 92svh;
  min-height: 540px;
  margin-top: 36px;
  overflow: hidden;
  background: var(--bg-well);
  outline: none;
}
.slider:focus-visible { box-shadow: inset 0 0 0 1px var(--accent); }

.slide {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1.35s ease;
}
.slide.is-active { z-index: 2; opacity: 1; pointer-events: auto; }
.slide-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.08) brightness(.52);
}
.slide-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 48% at var(--gx, 40%) 36%, color-mix(in oklab, var(--accent) 20%, transparent), transparent 64%),
    linear-gradient(rgba(10, 9, 8, .25), rgba(10, 9, 8, .4));
}
.slide-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  border: 1px solid rgba(233, 227, 213, .45);
  background: rgba(8, 7, 6, .45);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color .4s, background .4s, transform .4s;
}
.slide-play:hover {
  border-color: var(--accent);
  background: rgba(8, 7, 6, .7);
  transform: translate(-50%, -50%) scale(1.07);
}
.slide-play-tri {
  display: block;
  width: 0;
  height: 0;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-left: 14px solid var(--bone);
  margin-left: 5px;
}
.slide-scrim-bottom {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 60%;
  background: linear-gradient(transparent, rgba(7, 6, 6, .55) 45%, rgba(7, 6, 6, .96));
  pointer-events: none;
}
.slide-scrim-diag {
  position: absolute;
  inset: 0;
  background: linear-gradient(104deg, rgba(7, 6, 6, .66) 0%, rgba(7, 6, 6, .3) 30%, transparent 55%);
  pointer-events: none;
}
.slide-text {
  position: absolute;
  left: 5vw;
  bottom: 9vh;
  max-width: 760px;
  padding-right: 5vw;
  text-shadow: 0 2px 26px rgba(7, 6, 6, .95), 0 1px 8px rgba(7, 6, 6, .85);
}
.slide-n {
  margin: 0 0 12px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .35em;
  color: var(--accent);
}
.slide-title {
  margin: 0;
  font-family: 'Italiana', serif;
  font-weight: 400;
  font-size: clamp(1.9rem, 3.8vw, 3.5rem);
  letter-spacing: .04em;
  line-height: 1.12;
}
.slide-credit {
  margin: 14px 0 0;
  font-size: 13px;
  letter-spacing: .12em;
  color: rgba(233, 227, 213, .6);
}

.slider-arrow {
  position: absolute;
  z-index: 10;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(233, 227, 213, .25);
  background: rgba(8, 7, 6, .4);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color .4s;
}
.slider-arrow:hover { border-color: var(--accent); }
.slider-prev { left: 22px; }
.slider-next { right: 22px; }
.chev { display: block; width: 9px; height: 9px; }
.chev-left {
  border-left: 1px solid var(--bone);
  border-bottom: 1px solid var(--bone);
  transform: rotate(45deg);
  margin-left: 4px;
}
.chev-right {
  border-right: 1px solid var(--bone);
  border-top: 1px solid var(--bone);
  transform: rotate(45deg);
  margin-right: 4px;
}
.slider-counter {
  position: absolute;
  z-index: 10;
  right: 5vw;
  bottom: 9vh;
  margin: 0;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .25em;
  color: rgba(233, 227, 213, .6);
}
.slider-dots {
  position: absolute;
  z-index: 10;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}
.dot {
  width: 28px;
  height: 16px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  display: flex;
  align-items: center;
}
.dot span {
  display: block;
  width: 100%;
  height: 2px;
  background: rgba(233, 227, 213, .22);
  transition: background .4s;
}
.dot.is-active span { background: var(--accent); }

/* ---- Heard On (logo contact sheet) ---- */
.heard-on { padding: 96px 4vw 0; }
.section-head-minor {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 18px;
  flex-wrap: wrap;
}
.minor-title {
  margin: 0;
  font-family: 'Italiana', serif;
  font-weight: 400;
  font-size: 23px;
  letter-spacing: .14em;
}
.tile-grid {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);   /* 24 tiles → 12 even rows */
  gap: 14px;
}
@media (min-width: 560px)  { .tile-grid { grid-template-columns: repeat(3, 1fr); } }  /* 8 rows */
@media (min-width: 860px)  { .tile-grid { grid-template-columns: repeat(4, 1fr); } }  /* 6 rows */
@media (min-width: 1200px) { .tile-grid { grid-template-columns: repeat(6, 1fr); } }  /* 4 rows */
.tile {
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border: 1px solid var(--hairline);
  box-sizing: border-box;
  background: var(--tile-ivory);
  display: flex;
  align-items: center;
  justify-content: center;
}
.tile img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 16%;
  box-sizing: border-box;
  filter: grayscale(1);
}

/* ==========================================================================
   03 · MUSIC
   ========================================================================== */
.music { padding-top: 150px }
/* The gutter lives on the column, not the section: .section-head brings its
   own 4vw, so putting it on .music too would double it for the header. The
   calc keeps the content exactly 980px wide once the viewport is wide enough,
   while still holding the player off the screen edge on narrow ones. */
.music-inner {
  max-width: calc(980px + 8vw);
  margin: 0 auto;
  padding: 0 4vw;
  box-sizing: border-box;
}
.music-heading {
  margin: 34px 0 0;
  font-family: 'Italiana', serif;
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  letter-spacing: .04em;
}
.disco-frame {
  margin-top: 32px;
  border: 1px solid rgba(233, 227, 213, .14);
  border-top: 2px solid var(--accent);
  background: var(--bg-panel);
}
.disco-frame iframe {
  display: block;
  width: 100%;
  height: 70vh;
  min-height: 480px;
  border: none;
  background: var(--bg-panel);
}
.music-cta { margin: 22px 0 0; }
.music-cta a {
  font-size: 12px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: rgba(233, 227, 213, .65);
  border-bottom: 1px solid rgba(233, 227, 213, .25);
  padding-bottom: 4px;
}
.music-cta a:hover { color: var(--accent); border-color: var(--accent); }

/* ==========================================================================
   04 · PARTNERS
   ========================================================================== */
.partners { padding-top: 150px; }
.partner-tiles {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  border-top: 1px solid var(--hairline);
}
.partner-tile {
  min-height: 56vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 6vw;
  box-sizing: border-box;
}
.partner-tile + .partner-tile { border-left: 1px solid var(--hairline); }
.partner-tile img {
  filter: invert(0.91) sepia(0.06);
  opacity: .9;
  height: auto;
}
.partner-tile:first-child img { width: min(300px, 60%); }
.partner-tile:last-child img { width: min(210px, 46%); }

.partner-row {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);   /* 6 cells → even rows at 2/3/6 */
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
@media (min-width: 640px)  { .partner-row { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .partner-row { grid-template-columns: repeat(6, 1fr); } }
.partner-cell {
  aspect-ratio: 3 / 2;
  background: var(--tile-ivory);
  border-right: 1px solid var(--hairline);
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
}
.partner-cell:last-child { border-right: none; }
.partner-cell img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 18%;
  box-sizing: border-box;
  filter: grayscale(1);
}

/* ==========================================================================
   05 · CONTACT
   ========================================================================== */
.contact { padding-top: 150px; }
.people {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.person {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
}
.person + .person { border-left: 1px solid var(--hairline); }
.person-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.06) brightness(.78);
}
.person-scrim {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 55%;
  background: linear-gradient(transparent, rgba(7, 6, 6, .62) 55%, rgba(7, 6, 6, .95));
  pointer-events: none;
}
.person-text {
  position: absolute;
  left: 6%;
  right: 6%;
  bottom: 7vh;
  text-shadow: 0 2px 22px rgba(7, 6, 6, .95), 0 1px 8px rgba(7, 6, 6, .85);
}
.person-name {
  margin: 0;
  font-family: 'Italiana', serif;
  font-weight: 400;
  font-size: clamp(1.9rem, 2.6vw, 2.4rem);
  letter-spacing: .1em;
}
.person-role {
  margin: 10px 0 14px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .3em;
  color: rgba(233, 227, 213, .65);
}
.person-email {
  font-size: 13px;
  letter-spacing: .06em;
  color: rgba(233, 227, 213, .85);
  border-bottom: 1px solid rgba(233, 227, 213, .35);
  padding-bottom: 3px;
}
.person-email:hover { color: var(--accent); border-color: var(--accent); }

.closing-cta { text-align: center; padding: 130px 0 110px; }
.closing-cta a {
  font-family: 'Italiana', serif;
  font-size: clamp(2.2rem, 5vw, 4rem);
  letter-spacing: .08em;
  transition: color .4s;
}

/* ---- Footer ---- */
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 26px 4vw;
  border-top: 1px solid var(--hairline);
}
.footer p {
  margin: 0;
  font-size: 11px;
  letter-spacing: .14em;
  color: rgba(233, 227, 213, .4);
}
.footer a {
  font-size: 11px;
  letter-spacing: .2em;
  color: rgba(233, 227, 213, .55);
}

/* ==========================================================================
   Lightbox (iframe injected on demand by main.js)
   ========================================================================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(5, 4, 4, .94);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5vw;
  box-sizing: border-box;
}
.lightbox[hidden] { display: none; }
.lightbox-frame {
  position: relative;
  width: min(1240px, 100%);
}
.lightbox-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}
.lightbox-watch {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .28em;
  color: rgba(233, 227, 213, .6);
}
.lightbox-close {
  background: none;
  border: none;
  color: var(--bone);
  font-family: 'Work Sans', sans-serif;
  font-size: 15px;
  letter-spacing: .3em;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
}
.lightbox-close:hover { color: var(--accent); }
.lightbox-player { aspect-ratio: 16 / 9; }
.lightbox-player iframe {
  width: 100%;
  height: 100%;
  border: 1px solid rgba(233, 227, 213, .2);
  background: #000;
  display: block;
}

/* ==========================================================================
   Scroll reveals — CSS transitions triggered by a class; each element
   reveals once. Without JS everything stays visible.
   ========================================================================== */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 1.1s ease, transform 1.1s ease;
}
.js [data-reveal].is-revealed { opacity: 1; transform: none; }

/* ==========================================================================
   Reduced motion — every animation and transition collapses to its
   final frame; nothing moves, everything renders fully visible.
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0ms !important;
  }
  .wordmark:hover .wordmark-glint { animation: none; opacity: 0; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
