* { box-sizing: border-box; }

:root {
  --bg: #fff;
  --surface: #f5f5f5;
  --text: #111111;
  --muted: #7a7a7a;
  --line: #c8c8c8;
  --shadow: 0 16px 38px rgba(0, 0, 0, 0.08);
}

body[data-theme="dark"] {
  --bg: #000000;
  --surface: #000000;
  --text: #ffffff;
  --muted: #b8b8b8;
  --line: #464646;
  --shadow: 0 20px 48px rgba(0, 0, 0, 0.28);
}

html, body {
  margin: 0;
  min-height: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "IBM Plex Sans", sans-serif;
  transition: background-color .2s ease, color .2s ease;
}

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

button {
  background: none;
  border: 0;
  cursor: pointer;
}

a {
  color: inherit;
}

.app-shell {


  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 34px 38px 0;
  transition: background-color .2s ease, box-shadow .2s ease;
}

.top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}

.site-name {
  font-size: 38px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.05em;
  text-transform: uppercase;
}

.theme-toggle {
  padding: 10px 12px;
  border: 1px solid var(--line);
  font-size: 11px;
  line-height: 1;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.rule {
  border-top: 1px solid var(--line);
  margin-top: 20px;
}

.hero {
  margin: 42px 0 42px;
  font-size: clamp(46px, 4.4vw, 68px);
  line-height: 0.95;
  letter-spacing: -0.055em;
  font-weight: 400;
  text-transform: uppercase;
}

.main-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  align-items: start;
  min-height: 560px;
}

.sidebar {
  border-right: 1px solid var(--line);
  padding-top: 14px;
  min-height: 520px;
}

.nav-link {
  display: block;
  width: 100%;
  text-align: left;
  padding: 18px 0 18px;
  font-size: 21px;
  line-height: 1;
  text-transform: uppercase;
  position: relative;
  letter-spacing: -0.02em;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 90%;
  border-bottom: 1px solid var(--line);
}

.nav-link:last-child::after {
  border-bottom: 0;
}

.content-column {
  padding-left: 48px;
}

.content-stage {
  display: flex;
  align-items: flex-start;
  padding: 12px 0 24px;
  min-height: 300px;
}

.content-stage__inner {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .22s ease, transform .22s ease;
  width: min(100%, 860px);
}

.content-stage__inner.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.stage-kicker {
  font-size: 13px;
  line-height: 1;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.stage-title {
  margin: 0 0 16px;
  font-size: clamp(44px, 4vw, 60px);
  line-height: 0.94;
  letter-spacing: -0.05em;
  font-weight: 700;
  text-transform: uppercase;
}

.stage-meta {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  margin-bottom: 22px;
  font-size: 16px;
  min-height: 22px;
}

.stage-copy {
  font-size: 17px;
  line-height: 1.58;
  max-width: 50ch;
  margin: 0 0 16px;
}

.load-button {
  margin-top: 10px;
  border: 1px solid var(--text);
  padding: 12px 14px;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}


.load-button:hover {
  background-color:black;
  color:white;
}

.section-label {
  font-size: 16px;
  line-height: 1;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.project-row {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;
  border-top: 1px solid var(--line);
  padding: 18px 0 18px;
  text-align: left;
  transition: background-color .18s ease;
}

.project-row:last-child {
  border-bottom: 1px solid var(--line);
}

.project-row:hover,
.project-row.is-active {
  background: color-mix(in srgb, var(--text) 3%, transparent);
}

.project-title {
  font-size: 24px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.project-year {
  font-size: 21px;
  line-height: 1;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}

/* =========================
   PLAYER
========================= */

.player-bar {
  display: grid;
  gap: 14px;
  border-top: 1px solid var(--line);
  padding: 18px 0 28px;
  margin-top: 18px;
}

.player-top {
  display: grid;
  gap: 10px;
}

.player-now-playing {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  min-width: 0;
}

.eq-visualizer {
  width: 100%;
  height: 40px;
  display: block;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 2px;
}

.scrub-wrap {
  position: relative;
  width: 100%;
  margin-top: 4px;
  display: flex;
  align-items: center;
}

.scrub-rail {
  position: absolute;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--line);
  pointer-events: none;
}

#progress {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  position: relative;
  z-index: 1;
  margin: 0;
}

#progress::-webkit-slider-runnable-track {
  height: 4px;
  background: transparent;
}

#progress::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: var(--text);
  margin-top: -6px;
  border: 0;
}

#progress::-moz-range-track {
  height: 4px;
  background: transparent;
}

#progress::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: var(--text);
  border: 0;
}

.player-bottom {
  display: flex;
  align-items: center;
  gap: 18px;
}

.player-controls {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  flex: 0 0 auto;
}

.player-times {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex: 0 0 auto;
}

.time {
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.player-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: inherit;
}

.menu-icon {
  margin-left: auto;
}

.icon-svg {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.icon-svg svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
  display: block;
}

/* =========================
   MOBILE
========================= */

@media (max-width: 900px) {
  .app-shell {
 
    padding: 22px 18px 0;
    overflow: hidden;
  }

  .site-name {
    font-size: 24px;
  }

  .theme-toggle {
    font-size: 10px;
    padding: 8px 10px;
  }

  .hero {
    margin: 30px 0 32px;
    font-size: clamp(30px, 9vw, 30px);
    max-width: 100%;
  }

  .main-grid {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .sidebar {
    border-right: 0;
    min-height: auto;
    padding-top: 0;
  }

  .nav-link {
    font-size: 18px;
    padding: 16px 0 16px;
  }

  .nav-link::after {
    width: 100%;
  }

  .content-column {
    padding-left: 0;
  }

  .content-stage {
    min-height: 300px;
    padding: 18px 0 26px;
  }

  .content-stage__inner {
    width: 100%;
  }

  .stage-title {
    font-size: 34px;
  }

  .stage-meta {
    font-size: 14px;
    margin-bottom: 16px;
  }

  .stage-copy {
    font-size: 15px;
    line-height: 1.55;
    max-width: none;
  }

  .section-label {
    font-size: 13px;
    margin-bottom: 14px;
    margin-top: 4px;
  }

  .project-title {
    font-size: 20px;
  }

  .project-year {
    font-size: 17px;
  }

  .eq-visualizer {
    height: 34px;
  }

  .player-bottom {
    gap: 14px;
  }
}
