:root {
  color-scheme: dark;
  --black: #020202;
  --ink: #080807;
  --white: #f6efe2;
  --muted: rgba(246, 239, 226, 0.66);
  --soft: rgba(246, 239, 226, 0.24);
  --amber: #d69b52;
  --ember: #fb4b2e;
  --blue: #80c4ff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--black);
  overflow-x: hidden;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 50% 0%, rgba(214, 155, 82, 0.12), transparent 28rem),
    var(--black);
  color: var(--white);
  font-family: "Inter", system-ui, sans-serif;
  overflow-x: hidden;
}

a,
button {
  color: inherit;
  font: inherit;
}

a {
  text-decoration: none;
}

button {
  border: 0;
}

.chapter-video,
.frame-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.chapter-video {
  object-fit: cover;
  filter: grayscale(0.15) contrast(1.12) brightness(0.72);
}

.film-vignette,
.film-frame::before,
.film-frame::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
}

.eyebrow,
.hero-line,
.micro-footer,
.corner-nav,
.scroll-cue {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.34em;
  text-transform: uppercase;
}

.site-chrome,
.micro-footer {
  position: fixed;
  z-index: 30;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  padding: 18px 22px;
}

.site-chrome {
  top: 0;
}

.corner-brand {
  justify-self: start;
  display: inline-grid;
  align-items: center;
  width: clamp(92px, 10vw, 148px);
}

.corner-brand img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 42px;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.62));
}

.corner-nav {
  justify-self: center;
  display: flex;
  gap: 18px;
  font-size: 9px;
}

.corner-nav a {
  opacity: 0.64;
  transition: opacity 180ms ease, color 180ms ease;
}

.corner-nav a.is-active,
.corner-nav a:hover {
  color: var(--white);
  opacity: 1;
}

.scroll-meter {
  justify-self: end;
  width: min(24vw, 180px);
  height: 1px;
  background: rgba(246, 239, 226, 0.2);
}

.scroll-meter span {
  display: block;
  width: calc(var(--scroll-progress, 0) * 100%);
  height: 100%;
  background: linear-gradient(90deg, var(--amber), var(--ember));
}

.micro-footer {
  bottom: 0;
  pointer-events: none;
  grid-template-columns: 1fr 1fr;
  font-size: 8px;
}

.micro-footer span:last-child {
  justify-self: end;
}

.noise-canvas,
.wave-canvas {
  position: fixed;
  inset: 0;
  z-index: 4;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.wave-canvas {
  z-index: 8;
  mix-blend-mode: screen;
  opacity: 0.82;
}

main {
  position: relative;
  z-index: 1;
}

.scroll-film {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #020202;
  pointer-events: none;
}

.scroll-film video,
.scroll-film-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.scroll-film video {
  z-index: 1;
  object-fit: cover;
  filter: grayscale(0.08) contrast(1.16) brightness(0.68);
  transform: scale(calc(1.04 + var(--scroll-progress, 0) * 0.08));
}

.scroll-film-fallback {
  z-index: 0;
  background-size: cover;
  background-position: center;
  filter: grayscale(0.15) contrast(1.12) brightness(0.56);
}

.scroll-film-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    radial-gradient(circle at 50% 44%, transparent 0 24%, rgba(0,0,0,0.42) 58%, #000 100%),
    linear-gradient(180deg, rgba(0,0,0,0.16), rgba(0,0,0,0.84)),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.045) 0 1px, transparent 1px 5px);
}

.chapter {
  position: relative;
  min-height: 185vh;
}

.opening,
.closing {
  min-height: 210vh;
}

.film-frame {
  position: sticky;
  top: 0;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #020202;
  isolation: isolate;
}

.clear-frame {
  background: transparent;
}

.film-frame::before {
  z-index: 6;
  opacity: 0.22;
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,0.07) 0 1px, transparent 1px 5px),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.035) 0 1px, transparent 1px 12px);
  mix-blend-mode: overlay;
}

.film-frame::after {
  z-index: 7;
  background:
    linear-gradient(90deg, #000 0 4.5vw, transparent 12vw, transparent calc(100% - 12vw), #000 calc(100% - 4.5vw) 100%),
    linear-gradient(180deg, #000 0 5vh, transparent 22vh, transparent calc(100% - 20vh), #000 100%);
}

.chapter-video {
  z-index: -3;
  transform: scale(calc(1.06 + var(--scene-progress, 0) * 0.08));
}

.fallback-photo {
  z-index: -4;
}

.frame-photo {
  z-index: -3;
  background-size: cover;
  background-position: center;
  opacity: 0.7;
  filter: grayscale(0.24) contrast(1.16) brightness(0.72);
  transform:
    translate3d(0, calc((var(--scene-progress, 0) - 0.5) * -7vh), 0)
    scale(calc(1.08 + var(--scene-progress, 0) * 0.08));
}

.align-left {
  background-position: 30% center;
}

.dim-photo {
  opacity: 0.48;
  filter: grayscale(0.4) contrast(1.08) brightness(0.54);
}

.film-vignette {
  z-index: -1;
  background:
    radial-gradient(circle at 50% 46%, transparent 0 30%, rgba(0,0,0,0.25) 66%, rgba(0,0,0,0.72) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.1), rgba(0,0,0,0.54));
}

.chapter-number {
  position: absolute;
  z-index: 9;
  right: 8vw;
  top: 17vh;
  color: rgba(246, 239, 226, 0.16);
  font-family: "Cinzel", Georgia, serif;
  font-size: clamp(72px, 16vw, 230px);
  font-weight: 800;
  line-height: 1;
}

.chapter-copy,
.sound-panel {
  position: relative;
  z-index: 10;
  width: min(980px, calc(100% - 44px));
  opacity: var(--cue-presence, calc(0.38 + var(--scene-presence, 0) * 0.62));
  transform:
    translate3d(
      calc(var(--cue-x, 0) * 1vw),
      calc(var(--cue-y, calc((0.5 - var(--scene-progress, 0)) * 12)) * 1vh),
      0
    )
    scale(var(--cue-scale, 1));
  transition: opacity 120ms linear, transform 120ms linear;
  will-change: opacity, transform;
}

.hero-copy,
.final-copy {
  text-align: center;
}

.left-copy {
  justify-self: start;
  margin-left: clamp(24px, 10vw, 150px);
  max-width: 640px;
}

.sound-panel {
  align-self: end;
  margin-bottom: 16vh;
  max-width: 820px;
  padding-inline: 22px;
  text-align: center;
}

h1,
h2 {
  margin: 0;
  font-family: "Cinzel", Georgia, serif;
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-wrap: balance;
  text-shadow: 0 0 38px rgba(0, 0, 0, 0.88);
}

h1 {
  font-size: clamp(64px, 14vw, 190px);
}

h2 {
  font-size: clamp(36px, 7vw, 102px);
}

.eyebrow {
  margin-bottom: 16px;
  color: rgba(246, 239, 226, 0.72);
}

.hero-line,
.chapter-copy p:not(.eyebrow),
.sound-panel p:not(.eyebrow) {
  max-width: 680px;
  margin: 24px auto 0;
  color: rgba(246, 239, 226, 0.72);
  font-size: clamp(13px, 1.35vw, 18px);
  font-weight: 600;
  line-height: 1.8;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.left-copy p:not(.eyebrow) {
  margin-left: 0;
}

.scroll-cue {
  position: absolute;
  z-index: 12;
  left: 50%;
  bottom: 9vh;
  transform: translateX(-50%);
  font-size: 9px;
}

.scroll-cue::after {
  display: block;
  width: 1px;
  height: 54px;
  margin: 12px auto 0;
  background: linear-gradient(180deg, var(--white), transparent);
  content: "";
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 26px;
}

.pill-row a,
.pill-row button {
  display: inline-grid;
  place-items: center;
  min-height: 34px;
  padding: 0 18px;
  border: 1px solid rgba(246, 239, 226, 0.38);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.22);
  color: var(--muted);
  cursor: pointer;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
  transition: border-color 180ms ease, color 180ms ease, background 180ms ease;
}

.pill-row a:hover,
.pill-row button:hover {
  border-color: rgba(246, 239, 226, 0.82);
  background: rgba(246, 239, 226, 0.08);
  color: var(--white);
}

.gallery-frame {
  align-content: center;
  gap: 40px;
  padding: 14vh 0;
}

.gallery-copy {
  text-align: center;
}

.gallery-strip {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: clamp(10px, 2vw, 24px);
  width: min(1120px, calc(100% - 44px));
  transform: translate3d(calc((0.5 - var(--scene-progress, 0)) * 8vw), 0, 0);
}

.gallery-strip img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  filter: grayscale(0.34) contrast(1.1) brightness(0.75);
  opacity: calc(0.5 + var(--scene-presence, 0) * 0.5);
}

.presskit-page {
  min-height: 100vh;
  background: #050504;
}

.presskit-main {
  position: relative;
  z-index: 1;
}

.presskit-hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 120px 22px 80px;
}

.presskit-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: center;
  filter: grayscale(0.18) contrast(1.12) brightness(0.45);
  transform: scale(1.06);
}

.presskit-hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 50% 42%, transparent 0 24%, rgba(0,0,0,0.52) 62%, #050504 100%),
    linear-gradient(180deg, rgba(0,0,0,0.25), #050504 100%);
  content: "";
}

.presskit-copy {
  width: min(980px, 100%);
  text-align: center;
}

.presskit-copy p:not(.eyebrow),
.presskit-body {
  max-width: 780px;
  margin: 24px auto 0;
  color: rgba(246, 239, 226, 0.74);
  font-size: clamp(14px, 1.5vw, 19px);
  font-weight: 600;
  line-height: 1.9;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.presskit-section {
  width: min(1120px, calc(100% - 44px));
  margin: 0 auto;
  padding: 90px 0;
  border-top: 1px solid rgba(246, 239, 226, 0.18);
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 6vw, 86px);
}

.presskit-list {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  color: rgba(246, 239, 226, 0.76);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1.7;
  text-transform: uppercase;
}

.presskit-list li {
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(246, 239, 226, 0.13);
}

.presskit-assets {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.presskit-assets a {
  min-height: 54px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(246, 239, 226, 0.28);
  border-radius: 8px;
  background: rgba(246, 239, 226, 0.04);
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.presskit-gallery {
  width: min(1120px, calc(100% - 44px));
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0 auto 110px;
}

.presskit-gallery img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: grayscale(0.22) contrast(1.08) brightness(0.8);
}

.tracks-page {
  min-height: 100vh;
  background: #050504;
}

.tracks-main {
  position: relative;
  z-index: 1;
}

.tracks-hero {
  position: relative;
  min-height: 72svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 120px 22px 80px;
}

.tracks-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: center;
  filter: grayscale(0.2) contrast(1.12) brightness(0.44);
  transform: scale(1.06);
}

.tracks-hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 50% 42%, transparent 0 24%, rgba(0,0,0,0.52) 62%, #050504 100%),
    linear-gradient(180deg, rgba(0,0,0,0.2), #050504 100%);
  content: "";
}

.tracks-section {
  width: min(1120px, calc(100% - 44px));
  margin: 0 auto 120px;
}

.tracks-grid {
  display: grid;
  gap: 16px;
}

.track-card {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  min-height: 146px;
  padding: 14px;
  border: 1px solid rgba(246, 239, 226, 0.16);
  border-radius: 8px;
  background: rgba(246, 239, 226, 0.035);
}

.track-card.is-selected {
  border-color: rgba(214, 155, 82, 0.58);
  background: rgba(214, 155, 82, 0.08);
}

.track-card img {
  width: 120px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 6px;
  filter: grayscale(0.12) contrast(1.08) brightness(0.86);
}

.track-card h2 {
  font-size: clamp(26px, 4vw, 54px);
  letter-spacing: 0.08em;
}

.track-card p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.track-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.track-links a,
.track-play {
  min-height: 32px;
  display: inline-grid;
  place-items: center;
  padding: 0 14px;
  border: 1px solid rgba(246, 239, 226, 0.28);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.22);
  color: var(--muted);
  cursor: pointer;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.site-player {
  position: fixed;
  z-index: 40;
  right: 22px;
  bottom: 42px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  width: min(330px, calc(100% - 44px));
  padding: 10px 12px;
  border: 1px solid rgba(246, 239, 226, 0.22);
  border-radius: 8px;
  background: rgba(2, 2, 2, 0.72);
  backdrop-filter: blur(18px);
}

.player-toggle {
  width: 54px;
  height: 34px;
  border: 1px solid rgba(246, 239, 226, 0.34);
  border-radius: 999px;
  background: rgba(246, 239, 226, 0.08);
  color: var(--white);
  cursor: pointer;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.player-meta {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.player-meta span,
.player-meta small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-meta span {
  color: var(--white);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.player-meta small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

@media (max-width: 820px) {
  .site-chrome {
    grid-template-columns: 1fr auto;
    padding: 14px;
  }

  .corner-nav {
    position: fixed;
    right: 14px;
    bottom: 16px;
    max-width: calc(100% - 28px);
    justify-content: flex-end;
    gap: 10px;
    font-size: 8px;
  }

  .scroll-meter {
    display: none;
  }

  .micro-footer {
    display: none;
  }

  .chapter {
    min-height: 170vh;
  }

  .film-frame::after {
    background:
      linear-gradient(180deg, #000 0 5vh, transparent 20vh, transparent calc(100% - 22vh), #000 100%);
  }

  .left-copy {
    justify-self: center;
    margin-left: 0;
    text-align: center;
  }

  .chapter-number {
    right: 18px;
    top: 13vh;
  }

  .gallery-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .two-column,
  .presskit-gallery {
    grid-template-columns: 1fr;
  }

  .track-card {
    grid-template-columns: 88px minmax(0, 1fr);
  }

  .track-card img {
    width: 88px;
  }

  .track-links {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .presskit-section {
    padding: 64px 0;
  }
}

@media (max-width: 520px) {
  .corner-brand {
    width: 84px;
  }

  .corner-nav {
    left: 14px;
    justify-content: space-between;
  }

  .corner-nav a:nth-child(2),
  .corner-nav a:nth-child(4) {
    display: none;
  }

  .eyebrow,
  .hero-line,
  .scroll-cue {
    letter-spacing: 0.22em;
  }

  .gallery-strip {
    width: min(320px, calc(100% - 44px));
    grid-template-columns: 1fr;
  }

  .gallery-strip img {
    aspect-ratio: 16 / 10;
  }

  .presskit-assets {
    grid-template-columns: 1fr;
  }

  .track-card {
    grid-template-columns: 1fr;
  }

  .track-card img {
    width: 100%;
    aspect-ratio: 16 / 10;
  }

  .site-player {
    right: 14px;
    bottom: 54px;
    width: calc(100% - 28px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
    scroll-behavior: auto !important;
  }

  .chapter-video,
  .frame-photo,
  .chapter-copy,
  .sound-panel,
  .gallery-strip {
    transform: none !important;
  }
}
