*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black: #080808;
  --off: #0e0e0e;
  --dim: #141414;
  --border: rgba(255,255,255,0.06);
  --border-mid: rgba(255,255,255,0.1);
  --muted: rgba(255,255,255,0.52);
  --text: rgba(255,255,255,0.85);
  --accent: rgba(255,255,255,0.5);
  --ease: cubic-bezier(0.4,0,0.2,1);
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Helvetica Neue', 'Inter', Arial, sans-serif;
}

html { scroll-behavior: smooth; }
body {
  background: var(--black);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 40px;
  background: rgba(8,8,8,0.92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
}

.nav-logo {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  font-weight: 300;
}

.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
  font-weight: 300;
}
.nav-links a:hover, .nav-links a.active { color: #fff; }
.nav-lock { opacity: 0.35; margin-left: 3px; font-size: 9px; }

/* ── PAGES ── */
.page { display: none; min-height: 100vh; }
.page.active { display: block; }

/* ── HERO ── */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--dim);
}

.hero-video-wrap {
  position: absolute;
  inset: 0;
}

.hero-video-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
  pointer-events: none;
  transform: scale(1.05);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
    rgba(8,8,8,0.15) 0%,
    rgba(8,8,8,0) 35%,
    rgba(8,8,8,0.75) 75%,
    rgba(8,8,8,1) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 40px 48px;
}

.hero-eyebrow {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
  font-weight: 300;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 200;
  line-height: 1.0;
  letter-spacing: -0.01em;
  color: #fff;
}

/* ── TICKER ── */
.ticker-wrap {
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
  background: var(--off);
}

.ticker {
  display: flex;
  white-space: nowrap;
  animation: ticker-scroll 28s linear infinite;
}

.ticker span {
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  padding-right: 40px;
  font-weight: 300;
}

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── SECTION ── */
.section { padding: 0 0 80px; }

.section-header {
  padding: 36px 40px 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
}

.section-label {
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 300;
}

/* ── TRACKS GRID ── */
.tracks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1px;
  background: var(--border);
}

.track-card {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  cursor: pointer;
  background: var(--dim);
}

.track-card-cover {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease), filter 0.4s var(--ease);
  filter: brightness(0.7) saturate(0.8);
}

.track-card:hover .track-card-cover {
  transform: scale(1.04);
  filter: brightness(0.35) saturate(0.6);
}

.track-card-placeholder {
  width: 100%; height: 100%;
  background: var(--dim);
  display: flex;
  align-items: center;
  justify-content: center;
}

.track-card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.track-card:hover .track-card-overlay,
.track-card.playing .track-card-overlay { opacity: 1; }

.track-genre {
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 5px;
  font-weight: 300;
}

.track-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 200;
  color: #fff;
  line-height: 1.15;
}

.track-client {
  font-size: 10px;
  color: rgba(255,255,255,0.3);
  margin-top: 3px;
  font-weight: 300;
}

.track-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.track-play-icon {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s;
}

.track-card.playing .track-play-icon {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.5);
}

.waveform-bars {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 18px;
  opacity: 0;
  transition: opacity 0.3s;
}

.track-card.playing .waveform-bars { opacity: 1; }

.waveform-bars span {
  display: block;
  width: 2px;
  background: rgba(255,255,255,0.5);
  border-radius: 2px;
}

.track-card.playing .waveform-bars span {
  animation: wave 0.7s ease-in-out infinite alternate;
}

.waveform-bars span:nth-child(1) { animation-delay: 0.00s; }
.waveform-bars span:nth-child(2) { animation-delay: 0.12s; }
.waveform-bars span:nth-child(3) { animation-delay: 0.06s; }
.waveform-bars span:nth-child(4) { animation-delay: 0.18s; }
.waveform-bars span:nth-child(5) { animation-delay: 0.03s; }

@keyframes wave {
  from { height: 3px; }
  to   { height: 16px; }
}

/* ── PLAYER BAR ── */
#player-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 99;
  background: rgba(14,14,14,0.97);
  border-top: 1px solid var(--border-mid);
  backdrop-filter: blur(16px);
  padding: 0 40px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 20px;
  transform: translateY(100%);
  transition: transform 0.35s var(--ease);
}

#player-bar.visible { transform: translateY(0); }

#player-cover {
  width: 38px; height: 38px;
  border-radius: 2px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--dim);
  display: none;
}

#player-info { min-width: 140px; }
#player-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 300;
  color: #fff;
  line-height: 1.2;
}
#player-genre {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.08em;
  margin-top: 1px;
}

#player-progress {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 480px;
}

#progress-track {
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.1);
  cursor: pointer;
  position: relative;
}

#progress-fill {
  height: 100%;
  background: rgba(255,255,255,0.55);
  width: 0%;
  transition: width 0.1s linear;
}

.time-label {
  font-size: 10px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  min-width: 32px;
  font-weight: 300;
}

#player-controls { display: flex; align-items: center; gap: 12px; }

.ctrl-btn {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  transition: color 0.2s;
}
.ctrl-btn:hover { color: #fff; }
.ctrl-btn.primary { color: #fff; }

/* ── ABOUT ── */
.about-wrap {
  padding: 100px 40px 80px;
  max-width: 1100px;
  margin: 0 auto;
}

.about-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
  margin-bottom: 80px;
  padding-bottom: 80px;
  border-bottom: 1px solid var(--border);
}

.about-name {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 8vw, 7rem);
  font-weight: 200;
  line-height: 0.92;
  letter-spacing: -0.02em;
  color: #fff;
}

.about-tagline {
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 24px;
  font-weight: 300;
}

.about-bio {
  color: rgba(255,255,255,0.5);
  font-size: 14px;
  line-height: 1.85;
  margin-bottom: 20px;
  font-weight: 300;
}

.about-credits { margin-top: 32px; }

.credit-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
}

.credit-label {
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 300;
  min-width: 100px;
}

.credit-value { color: var(--text); font-weight: 300; }

.about-links {
  margin-top: 32px;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.about-link {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
  font-weight: 300;
}

.about-link:hover { color: #fff; border-color: rgba(255,255,255,0.4); }

.about-images {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--border);
}

.about-img-wrap {
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--dim);
}

.about-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(15%);
  transition: filter 0.5s, transform 0.6s var(--ease);
}

.about-img-wrap:hover img {
  filter: grayscale(0%);
  transform: scale(1.03);
}

/* ── PROJECTS ── */
.projects-gate {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gate-box { text-align: center; max-width: 320px; }

.gate-title {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 200;
  color: #fff;
  margin-bottom: 6px;
}

.gate-sub {
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 36px;
  font-weight: 300;
}

.gate-input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border-mid);
  color: #fff;
  font-family: var(--font-body);
  font-size: 13px;
  padding: 12px 0;
  outline: none;
  text-align: center;
  letter-spacing: 0.2em;
  margin-bottom: 24px;
  transition: border-color 0.2s;
  font-weight: 300;
}

.gate-input:focus { border-color: rgba(255,255,255,0.4); }
.gate-input.error { border-color: rgba(255,80,80,0.6); animation: shake 0.35s; }

@keyframes shake {
  0%,100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

.gate-btn {
  background: none;
  border: 1px solid var(--border-mid);
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 12px 32px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
  font-weight: 300;
}

.gate-btn:hover { color: #fff; border-color: rgba(255,255,255,0.3); }

.projects-content { display: none; }
.projects-content.unlocked {
  display: block;
  padding: 100px 0 80px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 1px;
  background: var(--border);
}

.project-item { background: var(--off); }

.project-clip { width: 100%; aspect-ratio: 16/9; background: var(--dim); }
.project-clip iframe { width: 100%; height: 100%; border: none; }

.project-info { padding: 20px 24px 28px; }

.project-year {
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
  font-weight: 300;
}

.project-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 200;
  color: #fff;
  margin-bottom: 4px;
}

.project-client {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 10px;
  font-weight: 300;
}

.project-desc {
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  line-height: 1.75;
  margin-bottom: 16px;
  font-weight: 300;
}

.full-link {
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid var(--border-mid);
  padding-bottom: 2px;
  transition: color 0.2s;
  font-weight: 300;
}

.full-link:hover { color: #fff; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {

  /* ── NAV: logo left, links right, clear separation ── */
  nav {
    padding: 0 20px;
    height: 56px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    background: rgba(8,8,8,0.98);
  }

  .nav-logo {
    font-size: 11px;
    letter-spacing: 0.18em;
    white-space: nowrap;
  }

  .nav-links {
    gap: 20px;
  }

  .nav-links a {
    font-size: 9px;
    letter-spacing: 0.14em;
    white-space: nowrap;
  }

  .nav-lock { display: none; }

  /* ── HERO: fix iframe so video fills screen ── */
  .hero {
    height: 100svh;
    min-height: 500px;
  }

  .hero-video-wrap {
    position: absolute;
    inset: 0;
    overflow: hidden;
  }

  .hero-video-wrap iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 177.78vh;
    min-width: 100%;
    height: 56.25vw;
    min-height: 100%;
    transform: translate(-50%, -50%);
  }

  .hero-content {
    padding: 0 20px 36px;
  }

  .hero-headline {
    font-size: 2.8rem;
  }

  .hero-eyebrow {
    font-size: 9px;
    letter-spacing: 0.16em;
  }

  /* ── SOUND: hide center button on mobile, keep corner ── */
  .sound-center { display: none; }

  .sound-controls {
    bottom: 20px;
    right: 20px;
  }

  /* ── TICKER ── */
  .ticker-wrap { padding: 8px 0; }

  /* ── TRACKS ── */
  .section-header { padding: 24px 20px 14px; }

  .track-category-header { padding: 20px 20px 14px; }

  .tracks-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .track-title { font-size: 1.1rem; }

  /* ── ABOUT ── */
  .about-wrap { padding: 72px 20px 60px; }
  .about-header { grid-template-columns: 1fr; gap: 28px; }
  .about-name { font-size: 3.2rem; }
  .about-images { grid-template-columns: 1fr 1fr; }

  /* ── PROJECTS ── */
  .projects-content.unlocked { padding: 72px 0 60px; }
  .projects-grid { grid-template-columns: 1fr; }

  /* ── PLAYER BAR ── */
  #player-bar { padding: 0 16px; gap: 12px; }
  #player-progress { display: none; }
  #player-cover { width: 32px; height: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  .waveform-bars span { animation: none !important; height: 6px !important; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ── SOUND CONTROLS ── */
/* Center mute button */
.sound-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.sound-center.visible {
  opacity: 1;
  pointer-events: auto;
}

.mute-btn-center {
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  color: rgba(255,255,255,0.75);
  cursor: pointer;
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s, border-color 0.25s, color 0.25s;
  backdrop-filter: blur(4px);
}

.mute-btn-center:hover {
  background: rgba(0,0,0,0.55);
  border-color: rgba(255,255,255,0.5);
  color: #fff;
}

/* Corner sound controls */
.sound-controls {
  position: absolute;
  bottom: 32px;
  right: 40px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
}

.mute-btn {
  background: none;
  border: none;
  color: rgba(255,255,255,0.5);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  transition: color 0.2s;
  flex-shrink: 0;
}

.mute-btn:hover { color: #fff; }
.mute-btn.unmuted { color: rgba(255,255,255,0.85); }

.volume-wrap {
  position: relative;
  width: 100px;
  height: 20px;
  display: flex;
  align-items: center;
}

.volume-slider {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
  margin: 0;
}

.volume-track {
  width: 100%;
  height: 1px;
  background: rgba(255,255,255,0.15);
  border-radius: 1px;
  overflow: hidden;
  pointer-events: none;
}

.volume-fill {
  height: 100%;
  background: rgba(255,255,255,0.55);
  border-radius: 1px;
  transition: width 0.05s;
}

/* ── TRACK CATEGORIES ── */
.track-category {
  margin-bottom: 0;
}

.track-category-header {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 28px 40px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.track-category-label {
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.28);
  font-weight: 300;
}

.track-category-line {
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.05);
}

/* ── SOUNDCLOUD SECTION ── */
.sc-section {
  padding: 0 0 100px;
}

.sc-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 36px 40px 24px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
}

.sc-header-left {
  display: flex;
  align-items: baseline;
  gap: 16px;
}

.sc-label {
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 300;
}

.sc-sublabel {
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.18);
  font-weight: 300;
}

.sc-external {
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.2);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
  font-weight: 300;
}

.sc-external:hover { color: var(--muted); }

.sc-player-wrap {
  position: relative;
  background: #111;
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.sc-player-wrap iframe {
  display: block;
}

.sc-overlay-top,
.sc-overlay-bottom {
  display: none;
}

@media (max-width: 768px) {
  .sc-header { padding: 24px 20px 18px; flex-direction: column; gap: 10px; }
  .sc-player-wrap iframe { height: 400px; }
}

/* ── SCROLL TEASER ── */
.sc-teaser-wrap {
  padding: 0;
  position: relative;
}

/* Fade background from black to white */
.sc-fade-bg {
  position: sticky;
  top: 0;
  height: 0;
  z-index: 0;
}

.sc-teaser-block {
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 40px;
  position: relative;
  z-index: 1;
}

/* Each line fades in and out via JS scroll tracking */
.sc-teaser-line {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 200;
  line-height: 1.05;
  letter-spacing: -0.01em;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s cubic-bezier(0.4,0,0.2,1),
              transform 0.9s cubic-bezier(0.4,0,0.2,1),
              color 0.6s ease;
  display: block;
}

.sc-teaser-line.fade-in {
  opacity: 1;
  transform: translateY(0);
}

.sc-teaser-line.fade-out {
  opacity: 0;
  transform: translateY(-16px);
  transition: opacity 0.4s cubic-bezier(0.4,0,0.2,1),
              transform 0.4s cubic-bezier(0.4,0,0.2,1),
              color 0.6s ease;
}

/* Block 1: dark bg, white text */
#sc-teaser-1 {
  background: transparent;
}

#sc-teaser-1 .sc-teaser-line:first-child { color: #fff; }
#sc-teaser-1 .sc-teaser-line--accent     { color: rgba(255,255,255,0.32); }

/* Block 2: transitioning bg, text adapts */
#sc-teaser-2 {
  background: transparent;
}

#sc-teaser-2 .sc-teaser-line { color: #111; }

#sc-player-section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s cubic-bezier(0.4,0,0.2,1) 0.1s,
              transform 0.9s cubic-bezier(0.4,0,0.2,1) 0.1s;
  position: relative;
  z-index: 1;
}

#sc-player-section.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 768px) {
  .sc-teaser-line { font-size: clamp(2.2rem, 12vw, 4rem); }
  .sc-teaser-block { padding: 0 24px; }
}

/* ── VIDEO CARDS ── */
.track-card-video {
  filter: brightness(0.75);
  transition: filter 0.4s var(--ease);
}
