/* ---------- shared ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #100f0d;
  color: #ece9e1;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button { font-family: inherit; }

@keyframes wave    { 0%, 100% { transform: scaleY(0.28); } 50% { transform: scaleY(1); } }
@keyframes eq      { 0%, 100% { transform: scaleY(0.35); } 50% { transform: scaleY(1); } }
@keyframes bob     { 0%, 100% { transform: scaleY(0.9); } 50% { transform: scaleY(1.08); } }
@keyframes fadein  { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes kenburns-home { from { transform: scale(1.02); } to { transform: scale(1.13); } }
@keyframes kenburns { from { transform: scale(1.04); } to { transform: scale(1.16); } }
@keyframes kenburns-slide {
  from { transform: scale(1.03); }
  to   { transform: scale(1.11); }
}
@keyframes ring    { to { transform: rotate(360deg); } }
@keyframes popin   { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes sheet-in {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}
@keyframes sheet-out {
  from { transform: translateY(0); }
  to   { transform: translateY(100%); }
}
@keyframes sheet-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes sheet-fade-out {
  from { opacity: 1; }
  to   { opacity: 0; }
}

.mono { font-family: 'Space Grotesk', monospace; }

/* ---------- HOME ---------- */
.home {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

.site-header {
  position: absolute; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(22px + env(safe-area-inset-top)) 58px 22px;
  background: transparent;
}
.wordmark {
  font: 700 20px/1 'Helvetica Neue', Arial;
  letter-spacing: 0.08em;
  color: #fff;
  text-decoration: none;
  text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}
.site-nav {
  display: flex; align-items: center; gap: 32px;
  font-size: 16px; letter-spacing: 0.01em;
}
.site-nav a {
  color: rgba(255,255,255,0.82);
  text-decoration: none;
  text-shadow: 0 2px 20px rgba(0,0,0,0.5);
  transition: color .15s ease;
}
.site-nav a:hover { color: #fff; }
.pill-cta {
  flex: none; white-space: nowrap;
  background: #fff; color: #141414 !important;
  border-radius: 999px; padding: 9px 18px;
  font-weight: 600; text-decoration: none;
}

/* hero */
.hero {
  position: relative; height: 900px;
  overflow: hidden; background: #0c0b09;
  scroll-margin-top: 76px;
}
.hero-slideshow { position: absolute; inset: 0; }
.hero-slide {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.6s ease-in-out;
  transform-origin: 58% 42%;
  animation: kenburns-home 26s ease-in-out infinite alternate;
}
.hero-slide.visible { opacity: 1; }
.hero-scrim-top {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(12,11,9,0.6) 0%, rgba(12,11,9,0) 24%);
}
.hero-scrim-bottom {
  position: absolute; left: 0; right: 0; bottom: -80px; height: 100%;
  background: linear-gradient(to top, #100f0d 12%, rgba(16,15,13,0.75) 34%, rgba(16,15,13,0.3) 58%, rgba(16,15,13,0.06) 82%, rgba(16,15,13,0) 100%);
  pointer-events: none;
}
.hero-content {
  position: absolute; inset: 0;
  z-index: 3; color: #fff;
  display: flex; flex-direction: column;
  align-items: flex-start;
  padding: 90px 58px 56px;
}
.hero-main {
  flex: 1; display: flex; flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  max-width: 1100px;
  padding-bottom: 40px;
}
.hero-title {
  font-size: 78px; line-height: 1; letter-spacing: -0.035em;
  font-weight: 700; margin: 0 0 22px;
  text-shadow: 0 4px 60px rgba(0,0,0,0.55);
}
.hero-desc {
  font-size: 18px; line-height: 1.5;
  color: rgba(255,255,255,0.9);
  margin: 0 0 34px;
  text-shadow: 0 1px 30px rgba(0,0,0,0.6);
}
.hero-cta {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 18px 34px;
  border-radius: 999px;
  background: #fff; color: #141414;
  font: 600 18px/1 'Space Grotesk', system-ui, sans-serif;
  text-decoration: none;
  box-shadow: 0 14px 34px -8px rgba(0,0,0,0.55);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.hero-cta:hover { transform: translateY(-1px); box-shadow: 0 18px 38px -8px rgba(0,0,0,0.6); }
.hero-cta-icon { display: block; margin-left: -2px; }
.hero-wave { flex: 1; }
.hero-wave-bars {
  display: flex; align-items: center; gap: 2px; height: 46px;
}
.hero-wave-bars i {
  flex: 1; border-radius: 1px;
  transform-origin: bottom;
}
.hero-time-row {
  display: flex; justify-content: space-between;
  margin-top: 9px;
  font: 500 11px/1 'Space Grotesk', monospace;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.06em;
}

/* soundscapes section */
.section { scroll-margin-top: 76px; }
#soundscapes { padding-top: 60px; }
.collection-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  padding: 44px 58px 26px; gap: 40px;
}
.collection-title {
  font-size: 34px; font-weight: 700;
  letter-spacing: -0.02em; margin: 0;
  color: #f4f1ea;
}
.collection-count {
  font: 500 12px/1 'Space Grotesk', monospace;
  color: rgba(255,255,255,0.42);
  letter-spacing: 0.08em;
}
.filters {
  display: flex; gap: 9px; flex-wrap: wrap;
  justify-content: flex-end;
  max-width: 660px;
}
.filter {
  padding: 11px 18px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.2);
  background: transparent;
  color: rgba(255,255,255,0.62);
  font: 500 15px/1 'Space Grotesk', sans-serif;
  letter-spacing: 0.01em;
  cursor: pointer; white-space: nowrap;
  transition: all .18s;
}
.filter:hover {
  color: #fff;
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.3);
}
.filter.active {
  background: #f2efe8;
  color: #141414;
  border-color: #f2efe8;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px 10px;
  padding: 12px 48px 90px;
}
.card {
  animation: fadein 0.4s ease both;
  display: block;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  padding: 10px;
  border-radius: 8px;
  outline: 1px solid transparent;
  background: transparent;
  transition: outline-color .18s, background-color .18s;
}
/* Hover-only affordances — skip on touch so the first tap navigates. */
@media (hover: hover) {
  .card:hover {
    outline-color: rgba(255,255,255,0.18);
    background: rgba(255,255,255,0.03);
  }
  .card:hover .card-play {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
  }
  .card:hover .art-img {
    transform: scale(1.08);
    transition: transform 6s ease-out;
  }
}
.card-art {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 5px;
  background: #1b1a16;
}
.card-art .art-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 4s ease-out;
}
.card-art .art-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,9,7,0.35) 0%, transparent 45%);
}
.card-play {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  transition: transform .35s ease, opacity .4s ease;
  opacity: 0;
  pointer-events: none;
  width: 52px; height: 52px;
  border: none; border-radius: 999px;
  background: rgba(255,255,255,0.96);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(0,0,0,0.45);
}
.card-play .play-tri {
  color: #141414;
  display: block;
  transform: translateX(1px);
}
.card-play .pause-bars { display: flex; gap: 3px; }
.card-play .pause-bars i {
  width: 3px; height: 12px; background: #141414; display: block;
}
.card-eq {
  position: absolute; right: 14px; bottom: 18px;
  display: flex; align-items: flex-end; gap: 3px;
  height: 20px;
  filter: drop-shadow(0 1px 4px rgba(0,0,0,0.6));
}
.card-eq i {
  width: 3px; height: 100%;
  background: #fff; display: block;
  transform-origin: bottom;
  animation: eq 0.9s ease-in-out infinite;
}
.card-title-row {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-top: 15px; gap: 12px;
}
.card-title {
  font-size: 17px; font-weight: 600;
  letter-spacing: -0.015em;
  color: #f4f1ea;
}
.card-title a { color: inherit; text-decoration: none; }
.card-title a:hover { color: #fff; }
.card-dur {
  font: 500 11px/1 'Space Grotesk', monospace;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.06em; white-space: nowrap;
}
.card-desc {
  font-size: 13.5px; line-height: 1.5;
  color: rgba(255,255,255,0.55);
  margin-top: 5px;
}
.card-wave {
  display: flex; align-items: center; gap: 2px;
  height: 22px; margin-top: 12px;
}
.card-wave i {
  flex: 1;
  background: rgba(255,255,255,0.85);
  display: block;
  transform-origin: center;
  animation: wave 1.1s ease-in-out infinite;
}

/* Wrapper around about + contact so the texture and glow can span both
   sections without adding scroll below the page. */
.about-wrap {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.about-wrap::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.07) 1px, transparent 1.2px);
  background-size: 22px 22px;
  background-position: 0 0;
  /* Fade in from the top, hold, then fade to background by the bottom. */
  -webkit-mask-image: linear-gradient(to bottom,
    transparent 0%, #000 8%, #000 55%, transparent 100%);
          mask-image: linear-gradient(to bottom,
    transparent 0%, #000 8%, #000 55%, transparent 100%);
  z-index: -2;
  pointer-events: none;
}
.about-wrap::after {
  content: '';
  position: absolute;
  left: 50%; top: 0;
  width: 140vw; height: 1100px;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at center,
    rgba(244, 241, 234, 0.055) 0%,
    rgba(244, 241, 234, 0.025) 30%,
    transparent 70%);
  z-index: -1;
  pointer-events: none;
  filter: blur(40px);
}

/* about */
.about {
  border-top: 1px solid rgba(255,255,255,0.09);
  padding: 120px 48px 120px;
  text-align: center;
  scroll-margin-top: 76px;
}
.about-eyebrow {
  font: 500 12px/1 'Space Grotesk', monospace;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 28px;
}
.about-h {
  font-size: 58px; line-height: 1.05; letter-spacing: -0.03em;
  font-weight: 700; margin: 0 auto 90px;
  max-width: 1100px; color: #f6f3ec;
}
.value-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 1280px;
  margin: 0 auto;
}
.value-card {
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(20,18,15,0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 12px;
  padding: 44px 30px 40px;
  text-align: center;
}
.value-icon {
  width: 56px; height: 56px;
  margin: 0 auto 26px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.16);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.85);
}
.value-title {
  font-size: 17px; font-weight: 600;
  margin-bottom: 12px;
  color: #f4f1ea;
}
.value-body {
  font-size: 14px; line-height: 1.6;
  color: rgba(255,255,255,0.55);
  max-width: 240px;
  margin: 0 auto;
}
.made-for-label {
  font: 500 11px/1 'Space Grotesk', monospace;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin: 96px 0 24px;
}
.made-for-pills {
  display: flex; gap: 10px; flex-wrap: wrap;
  justify-content: center;
}
.made-for-pills span {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid rgba(255,255,255,0.16);
  color: rgba(255,255,255,0.82);
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 14px;
}
.made-for-pills svg { color: rgba(255,255,255,0.65); }

/* contact */
.contact {
  position: relative;
  padding: 100px 48px 44px;
  scroll-margin-top: 76px;
}
.contact-card {
  max-width: 1180px;
  margin: 0 auto 60px;
  border: 1px solid rgba(255,255,255,0.09);
  background: rgba(255,255,255,0.02);
  border-radius: 14px;
  padding: 80px 40px 84px;
  text-align: center;
}
.contact-icon {
  width: 56px; height: 56px;
  margin: 0 auto 30px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.16);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.85);
}
.contact-h {
  font-size: 44px; line-height: 1.02; letter-spacing: -0.03em;
  font-weight: 700; margin: 0 0 18px;
  color: #f6f3ec;
}
.contact-sub {
  font-size: 16px; line-height: 1.6;
  color: rgba(255,255,255,0.6);
  max-width: 720px; margin: 0 auto 34px;
}
.contact-cta {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none;
  background: #fff; color: #141414;
  border-radius: 999px;
  padding: 14px 26px;
  font-size: 15px; font-weight: 600;
  white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease;
}
.contact-cta:hover { transform: translateY(-1px); box-shadow: 0 12px 28px -8px rgba(0,0,0,0.5); }
.footer-strip {
  padding-top: 30px;
  display: flex; justify-content: center;
  color: rgba(255,255,255,0.42);
  font-size: 13px;
}
.footer-copy {
  font: 500 11px/1 'Space Grotesk', monospace;
  letter-spacing: 0.06em;
  text-align: center;
}

/* ---------- PLAYER ---------- */
.player {
  position: relative;
  height: 100vh;
  height: 100dvh;
  min-height: 720px;
  overflow: hidden;
  background: #0b0a08;
  color: #f4f1ea;
}
.player-backdrop {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  transform-origin: 56% 44%;
  animation: kenburns 32s ease-in-out infinite alternate;
  opacity: 0.72;
}
.player-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.72;
}
.player-video.kenburns {
  transform-origin: 56% 44%;
  animation: kenburns 32s ease-in-out infinite alternate;
}

/* Slideshow: 2-layer crossfade with per-image Ken Burns */
.player-slideshow { position: absolute; inset: 0; }
.slide-layer {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.8s ease;
  transform-origin: 56% 44%;
  will-change: opacity, transform;
}
.slide-layer.visible { opacity: 0.72; }
.slide-layer.animating {
  animation: kenburns-slide 17s ease-in-out both;
}
.player-slideshow.paused .slide-layer.animating {
  animation-play-state: paused;
}
.player-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(to top,
    rgba(9,8,6,0.9) 0%,
    rgba(9,8,6,0.2) 40%,
    rgba(9,8,6,0.05) 68%,
    rgba(9,8,6,0.45) 100%);
}
.player-particles {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  opacity: 0.85;
  mix-blend-mode: screen;
  transition: opacity .6s ease;
}
.player.no-sparkles .player-particles { display: none; }

/* Slide credit pill (bottom-left on desktop, bottom-center on mobile) */
.slide-credit {
  position: absolute; left: 44px; bottom: 40px; z-index: 6;
  display: inline-flex; align-items: center; gap: 14px;
  padding: 14px 22px 14px 18px;
  border-radius: 999px;
  color: rgba(255,255,255,0.88);
  font: 500 12.5px/1 'Space Grotesk', 'Helvetica Neue', Arial, sans-serif;
  letter-spacing: 0.02em;
  text-decoration: none;
  background: rgba(20,18,15,0.32);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
  pointer-events: auto;
  opacity: 0;
  transition: opacity .7s ease, background .25s ease, border-color .25s ease,
              transform .25s ease, box-shadow .25s ease, color .25s ease;
}
.slide-credit.visible { opacity: 1; }
.slide-credit:hover {
  color: #fff;
  background: rgba(20,18,15,0.5);
  border-color: rgba(255,255,255,0.28);
  transform: translateY(-1px);
  box-shadow: 0 4px 18px rgba(0,0,0,0.35);
}
.slide-credit:hover .slide-credit-icon { color: #fff; }
.slide-credit-icon {
  width: 15px; height: 15px;
  color: rgba(255,255,255,0.7);
  flex: none;
  transition: color .25s ease;
}
.slide-credit-text { display: inline-flex; flex-direction: column; gap: 5px; line-height: 1.2; }
.slide-credit-name { font-weight: 600; }
.slide-credit-loc { color: rgba(255,255,255,0.65); font-size: 11px; letter-spacing: 0.06em; }

/* Player top bar */
.player-top {
  position: absolute; top: 0; left: 0; right: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(26px + env(safe-area-inset-top)) 44px 26px;
}
.back-link {
  display: inline-flex; align-items: center; gap: 10px;
  color: rgba(255,255,255,0.72);
  text-decoration: none; font-size: 14px;
  transition: color .18s ease, transform .18s ease;
}
.back-link:hover { color: #fff; transform: translateX(-2px); }
.back-caret {
  width: 10px; height: 14px;
  display: block;
}
.player-wordmark {
  font: 700 16px/1 'Helvetica Neue', Arial;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.9);
}
.top-spacer { width: 90px; }

/* Player bottom (title + transport) */
.player-bottom {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 5;
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  padding: 0 32px 56px;
}
.player-title {
  font-size: 68px; line-height: 0.94; letter-spacing: -0.04em;
  font-weight: 700; margin: 0 0 14px;
  text-shadow: 0 2px 44px rgba(0,0,0,0.6);
}
.player-desc {
  font-size: 16.5px; line-height: 1.6;
  color: rgba(255,255,255,0.72);
  max-width: 560px; margin: 0 0 40px;
  max-height: 240px; overflow: hidden;
  text-shadow: 0 1px 24px rgba(0,0,0,0.5);
}
.transport {
  display: flex; align-items: center; gap: 34px;
}
.transport-btn {
  flex: none; width: 52px; height: 52px;
  border-radius: 999px; cursor: pointer;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.13);
  display: flex; align-items: center; justify-content: center;
  transition: background .18s ease, border-color .18s ease, opacity .6s ease;
  transform: translateZ(0);
  will-change: background-color, border-color;
  color: #f4f1ea;
}
.transport-btn .transport-icon { opacity: 0.5; transition: opacity .18s ease; }
.transport-btn:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.26); }
.transport-btn:hover .transport-icon { opacity: 1; }

/* Idle: hide chrome, dim transport slightly. Playback controls remain interactive. */
.player .back-link,
.player .player-wordmark,
.player .player-title,
.player .corner-controls {
  transition: opacity .6s ease, transform .6s ease;
}
.player .player-desc {
  transition: opacity .6s ease, transform .6s ease, max-height .6s ease, margin-bottom .6s ease;
}
.player .transport { transition: opacity .6s ease, transform .6s ease; transform-origin: 50% 100%; }
.player.idle .back-link,
.player.idle .player-wordmark,
.player.idle .corner-controls,
.player.idle .slide-credit {
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
}
.player.idle .player-desc {
  opacity: 0;
  pointer-events: none;
  max-height: 0;
  margin-bottom: 0;
}
.player.idle .player-title {
  opacity: 0.55;
  transform: translateY(0) scale(0.5);
  transform-origin: 50% 100%;
}
.player.idle .transport { opacity: 0.35; transform: scale(0.7); }
.player.idle .transport-btn { opacity: 0; pointer-events: none; }

/* Play button + seek ring */
.play-wrap {
  position: relative;
  width: 92px; height: 92px;
}
.seek-ring {
  position: absolute;
  top: -14px; left: -14px;
  width: 120px; height: 120px;
  transform: rotate(-90deg);
  pointer-events: none;
  overflow: visible;
}
.seek-track,
.seek-progress {
  stroke-width: 2;
  transition: stroke-width 0.18s ease, stroke 0.18s ease;
}
.seek-track    { stroke: rgba(255,255,255,0.22); }
.seek-progress { stroke: rgba(255,255,255,0.55); }
.seek-hit {
  stroke: transparent;
  stroke-width: 18;
  pointer-events: stroke;
  cursor: pointer;
  touch-action: none;
}
.play-wrap:hover .seek-track,
.play-wrap.seeking .seek-track {
  stroke-width: 7;
  stroke: rgba(255,255,255,0.16);
}
.play-wrap:hover .seek-progress,
.play-wrap.seeking .seek-progress {
  stroke-width: 7;
  stroke: #fff;
}
.play-btn {
  position: absolute; inset: 0;
  width: 92px; height: 92px;
  border-radius: 999px; border: none; cursor: pointer;
  background: #f4f1ea;
  color: #141414;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 14px 40px -10px rgba(0,0,0,0.7);
}
.play-icon, .transport-icon { display: block; }

/* Corner controls (mixer / loop / view triggers) */
.corner-controls {
  position: absolute; bottom: 40px; right: 44px; z-index: 12;
  display: flex; align-items: flex-end; gap: 12px;
}
.pop-anchor { position: relative; }
.frost-btn {
  display: inline-flex; align-items: center; gap: 11px;
  height: 46px; padding: 0 18px;
  border-radius: 999px; cursor: pointer;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  color: #f4f1ea;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font: 500 13.5px/1 'Space Grotesk', sans-serif;
  letter-spacing: 0.01em;
  transition: background .18s;
}
.frost-btn:hover { background: rgba(255,255,255,0.14); }
.frost-btn.open  { background: rgba(255,255,255,0.16); }
.frost-btn svg   { opacity: 0.9; }
.caret {
  width: 0; height: 0;
  border-style: solid; border-width: 5px 4px 0 4px;
  border-color: rgba(255,255,255,0.7) transparent transparent transparent;
  transition: transform .18s;
}
.frost-btn.open .caret { transform: rotate(180deg); }

.loop-ring {
  position: absolute; inset: 0;
  pointer-events: none;
  overflow: visible;
  opacity: 0;
  z-index: 2;
  transition: opacity .25s;
  filter: drop-shadow(0 0 4px rgba(0,0,0,0.55));
}
.loop-ring.active { opacity: 1; }
.loop-ring rect {
  fill: none;
  stroke: #fff;
  stroke-width: 2;
  stroke-linecap: round;
}

/* Popovers (desktop) / bottom sheets (tablet/mobile — see responsive block) */
.popover {
  position: absolute; right: 0; bottom: calc(100% + 12px);
  padding: 18px; border-radius: 18px;
  background: rgba(24,22,18,0.92);
  border: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 24px 60px -16px rgba(0,0,0,0.8);
  animation: popin 0.16s ease both;
}
.popover.loop-pop {
  min-width: 220px;
  padding: 8px;
  border-radius: 16px;
}
.popover.mixer-pop { width: 300px; }
.popover.view-pop { min-width: 260px; padding: 8px; border-radius: 16px; }

.view-option {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; width: 100%;
  border: none; cursor: pointer; border-radius: 10px;
  padding: 12px 12px;
  font: 500 14px/1 'Space Grotesk', sans-serif;
  letter-spacing: 0.01em;
  text-align: left;
  background: transparent;
  color: rgba(255,255,255,0.85);
}
.view-option:hover { color: #fff; background: rgba(255,255,255,0.06); }
.view-switch {
  flex: none; position: relative;
  width: 30px; height: 18px; border-radius: 999px;
  background: rgba(255,255,255,0.18);
  transition: background .18s;
}
.view-switch::after {
  content: ''; position: absolute; top: 2px; left: 2px;
  width: 14px; height: 14px; border-radius: 999px;
  background: #f4f1ea;
  transition: transform .18s;
}
.view-option.on .view-switch { background: rgba(255,255,255,0.55); }
.view-option.on .view-switch::after { transform: translateX(12px); }

.view-divider {
  height: 1px; margin: 8px 12px;
  background: rgba(255,255,255,0.08);
}
.view-speed {
  padding: 6px 12px 12px;
  color: rgba(255,255,255,0.85);
  font: 500 13px/1 'Space Grotesk', sans-serif;
}
.view-speed.disabled { opacity: 0.45; }
.view-speed-top {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 8px;
}
.view-speed-val {
  font-variant-numeric: tabular-nums;
  color: rgba(255,255,255,0.7);
  font-size: 12px;
  letter-spacing: 0.04em;
}
.view-speed input[type="range"] {
  width: 100%;
  -webkit-appearance: none; appearance: none;
  background: transparent;
  height: 20px;
  cursor: pointer;
}
.view-speed input[type="range"]:disabled { cursor: not-allowed; }
.view-speed input[type="range"]::-webkit-slider-runnable-track {
  height: 3px; border-radius: 2px;
  background: rgba(255,255,255,0.22);
}
.view-speed input[type="range"]::-moz-range-track {
  height: 3px; border-radius: 2px;
  background: rgba(255,255,255,0.22);
}
.view-speed input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 14px; height: 14px; border-radius: 50%;
  background: #f4f1ea; border: none;
  margin-top: -5.5px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.4);
}
.view-speed input[type="range"]::-moz-range-thumb {
  width: 14px; height: 14px; border-radius: 50%;
  background: #f4f1ea; border: none;
  box-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

/* Motion off: freeze all Ken Burns / slideshow animations */
.player.no-motion .player-backdrop,
.player.no-motion .player-video.kenburns,
.player.no-motion .slide-layer,
.player.no-motion .slide-layer.animating {
  animation: none !important;
  transform: none !important;
}

/* Track paused: pause (don't reset) Ken Burns / slideshow animations */
.player.paused .player-backdrop,
.player.paused .player-video.kenburns,
.player.paused .slide-layer.animating {
  animation-play-state: paused !important;
}

/* Popover chrome */
.pop-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px;
}
.pop-label {
  font: 500 10px/1 'Space Grotesk', monospace;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(255,255,255,0.42);
}
.reset-btn {
  border: none; background: transparent; cursor: pointer;
  font: 500 11px/1 'Space Grotesk', sans-serif;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.5);
  padding: 2px;
}
.reset-btn:hover { color: #fff; }

.loop-header {
  font: 500 10px/1 'Space Grotesk', monospace;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  padding: 10px 12px 8px;
}
.loop-option {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; border: none; cursor: pointer; border-radius: 10px;
  padding: 12px 12px;
  font: 500 15px/1 'Space Grotesk', sans-serif;
  letter-spacing: 0.01em;
  text-align: left;
  background: transparent;
  color: rgba(255,255,255,0.72);
}
.loop-option:hover { color: #fff; }
.loop-option.active {
  background: rgba(255,255,255,0.1);
  color: #fff;
}

/* Mixer stems */
.stems { display: flex; flex-direction: column; gap: 18px; }
.stem-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 9px;
}
.stem-name {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 500; color: #f4f1ea;
}
.stem-icon {
  color: rgba(255,255,255,0.72);
  flex: none;
}
.stem-pct {
  font: 500 11px/1 'Space Grotesk', monospace;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.04em;
}
.stem-track {
  position: relative; height: 20px;
  display: flex; align-items: center;
  cursor: pointer;
  touch-action: none;
  user-select: none;
}
.stem-rail {
  position: absolute; left: 0; right: 0;
  height: 4px; border-radius: 999px;
  background: rgba(255,255,255,0.16);
}
.stem-fill {
  position: absolute; left: 0;
  height: 4px; border-radius: 999px;
  background: #f4f1ea;
}
.stem-knob {
  position: absolute;
  width: 14px; height: 14px; border-radius: 999px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
  transform: translateX(-50%);
}

/* Sheet backdrop — hidden entirely on desktop; the responsive block below
   shows it only on tablet/mobile when a popover is open. */
.sheet-backdrop { display: none; }

/* ==========================================================================
   RESPONSIVE
   All viewport-breakpoint overrides live below, ordered widest → narrowest so
   smaller-viewport rules override wider ones on source order alone.
   Add new responsive tweaks here — NOT interleaved with base rules — to avoid
   the base-rule-defined-after-media-query cascade bug we've hit before.
   ========================================================================== */

@media (max-width: 1000px) {
  /* about */
  .value-grid { grid-template-columns: repeat(2, 1fr); }
  .about-h { font-size: 44px; }
}

@media (max-width: 900px) {
  /* home hero */
  .hero { height: 760px; }
  .hero-title { font-size: 46px; }
  .hero-desc { font-size: 16px; }
  .hero-content { padding: 72px 32px 44px; }
  .hero-scrim-top {
    background: linear-gradient(to bottom,
      #000 0%,
      rgba(0,0,0,0.85) calc(env(safe-area-inset-top) + 8px),
      rgba(0,0,0,0.35) calc(env(safe-area-inset-top) + 60px),
      rgba(0,0,0,0) calc(env(safe-area-inset-top) + 120px));
  }
  .site-header { padding: calc(22px + env(safe-area-inset-top)) 32px 22px; }

  /* soundscapes: title stacks above filters; filters scroll horizontally */
  .collection-head {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 18px;
    padding: 44px 32px 22px;
  }
  .collection-head > .filters {
    justify-content: flex-start;
    max-width: none;
    flex-wrap: nowrap;
    align-self: stretch;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    margin: 0 -32px;
    padding: 2px 32px;
  }
  .collection-head > .filters::-webkit-scrollbar { display: none; }
  .filter { flex: none; }
  .card-grid { gap: 6px 4px; padding: 8px 24px 90px; }

  /* player container + top fade to blend with black status bar */
  .player { min-height: 0; }
  .player::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0;
    height: calc(env(safe-area-inset-top) + 120px);
    background: linear-gradient(to bottom,
      #000 0%,
      rgba(0,0,0,0.85) calc(env(safe-area-inset-top) + 8px),
      rgba(0,0,0,0.35) calc(env(safe-area-inset-top) + 60px),
      rgba(0,0,0,0) 100%);
    z-index: 9;
    pointer-events: none;
  }

  /* player top bar: back-link becomes a frost pill */
  .player-top {
    padding: calc(20px + env(safe-area-inset-top)) 16px 0;
    align-items: flex-start;
  }
  .back-link {
    height: 44px;
    padding: 0 16px 0 13px;
    gap: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #f4f1ea;
    font-size: 14px;
  }

  /* player bottom: smaller title, smaller play button, centered credit below */
  .player-title { font-size: 36px; }
  .player-desc { font-size: 15px; }
  .player-bottom { padding: 0 24px calc(88px + env(safe-area-inset-bottom)); }
  .play-wrap, .play-btn { width: 72px; height: 72px; }
  .seek-ring { top: -12px; left: -12px; width: 96px; height: 96px; }
  .slide-credit {
    left: 50%; right: auto;
    bottom: calc(20px + env(safe-area-inset-bottom));
    transform: translateX(-50%);
    padding: 8px 14px 8px 12px;
    gap: 10px;
    font-size: 11px;
  }
  .slide-credit-icon { width: 13px; height: 13px; }
  .slide-credit-loc { font-size: 10px; }
  .slide-credit-text { gap: 3px; }
  .player.idle .slide-credit { transform: translateX(-50%) translateY(6px); }
  .slide-credit:hover { transform: translateX(-50%) translateY(-1px); }

  /* corner controls move to top-right, buttons become icon-only 44px circles */
  .corner-controls {
    top: calc(20px + env(safe-area-inset-top)); right: 16px; bottom: auto;
    gap: 8px;
    z-index: 60;
    align-items: flex-start;
  }
  .frost-btn {
    width: 44px; height: 44px; padding: 0;
    justify-content: center; gap: 0;
    border-radius: 999px;
  }
  .frost-btn > span:not(.caret) { display: none; }
  .frost-btn .caret { display: none; }

  /* Popovers become bottom sheets with backdrop + slide-in/out animations */
  .sheet-backdrop:not([hidden]) {
    display: block;
    position: fixed; inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 55;
    animation: sheet-fade 0.2s ease both;
  }
  .sheet-backdrop.closing { animation: sheet-fade-out 0.22s ease both; }
  .popover {
    position: fixed;
    left: 0; right: 0; bottom: 0; top: auto;
    width: auto; min-width: 0; max-width: none;
    max-height: 78vh;
    overflow-y: auto;
    padding: 22px 20px calc(28px + env(safe-area-inset-bottom));
    border-radius: 22px 22px 0 0;
    border-bottom: none;
    animation: sheet-in 0.28s cubic-bezier(.22,.61,.36,1) both;
    z-index: 60;
  }
  .popover.mixer-pop,
  .popover.loop-pop,
  .popover.view-pop {
    width: auto; min-width: 0;
    padding: 22px 12px calc(28px + env(safe-area-inset-bottom));
    border-radius: 22px 22px 0 0;
  }
  .popover.mixer-pop { padding: 22px 20px calc(28px + env(safe-area-inset-bottom)); }
  .popover.closing { animation: sheet-out 0.24s cubic-bezier(.55,.06,.68,.19) both; }

  /* Larger touch targets inside sheets */
  .pop-header { padding: 4px 6px 14px; }
  .loop-header { padding: 4px 12px 10px; }
  .loop-option, .view-option { padding: 14px 14px; font-size: 15px; }
  .view-switch { width: 44px; height: 26px; }
  .view-switch::after { width: 22px; height: 22px; top: 2px; left: 2px; }
  .view-option.on .view-switch::after { transform: translateX(18px); }
  .stems { gap: 20px; }
}

@media (max-width: 560px) {
  /* home hero */
  .hero { height: 640px; }
  .hero-title { font-size: 40px; }
  .hero-content { padding: 64px 24px 36px; }
  .site-header { padding: calc(20px + env(safe-area-inset-top)) 24px 20px; }
  .site-nav { display: none; }

  /* soundscapes: single column with generous vertical breathing room */
  .collection-head { padding: 36px 24px 18px; }
  .collection-head > .filters { margin: 0 -24px; padding: 2px 24px; }
  .card-grid {
    grid-template-columns: 1fr;
    gap: 28px 0;
    padding: 8px 16px 72px;
  }
  .card { padding: 4px; }

  /* about */
  .about { padding: 80px 24px; }
  .value-grid { grid-template-columns: 1fr; }
  .about-h { font-size: 34px; }
  .about-h br { display: none; }

  /* contact */
  .contact { padding: 72px 24px 32px; }
  .contact-card { padding: 60px 24px 64px; }
  .contact-h { font-size: 32px; }

  /* player */
  .player-title { font-size: 26px; }
  .player-wordmark { display: none; }
}
