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

:root {
  --bg:         #060606;
  --bg-raised:  #0c0c0c;
  --bg-card:    #111111;
  --text:       #e4e4e4;
  --text-dim:   #888888;
  --text-muted: #555555;
  --accent:     #e8dcc8;
  --accent-dim: #a89878;
  --glow:       rgba(232, 220, 200, 0.06);
  --border:     rgba(255,255,255,0.06);

  --font-sans: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  --font-mono: 'Space Mono', 'Courier New', monospace;
  --controller-h: 140px;
}

html, body {
  height: 100%;
  overflow: hidden;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-weight: 300;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; transition: opacity 0.25s; }
a:hover { opacity: 0.7; }

/* ── Grain overlay ────────────────────────────────────────── */
.grain {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 180px;
}

/* ── Background video ─────────────────────────────────────── */
.bg-video {
  position: fixed;
  inset: 0;
  z-index: 0;
}

.bg-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  clip-path: inset(0 0 6% 0);
}

.bg-video__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(6, 6, 6, 0.55) 0%,
    rgba(6, 6, 6, 0.45) 30%,
    rgba(6, 6, 6, 0.6) 60%,
    rgba(6, 6, 6, 0.95) 100%
  );
  transition: background 0.1s;
}

/* ── Panels container ─────────────────────────────────────── */
.panels {
  position: fixed;
  inset: 0;
  bottom: var(--controller-h);
  z-index: 10;
}

.panel {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
  overflow-y: auto;
  padding: 40px;
  padding-top: 60px;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0px, black var(--title-clearance, 120px), black calc(100% - 160px), transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0px, black var(--title-clearance, 120px), black calc(100% - 160px), transparent 100%);
}

.panel--active {
  opacity: 1;
  visibility: visible;
}

/* ── Panel content layouts ────────────────────────────────── */
.panel__content {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
}

.panel__content--center {
  text-align: center;
}

.panel__content--split {
  display: flex;
  gap: 48px;
  align-items: center;
  transition: gap 0.4s ease;
}

.panel__content--tracks {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 900px;
}

.panel__content--specs {
  display: flex;
  flex-direction: column;
  gap: 48px;
  max-width: 900px;
}

.panel__content--book {
  max-width: 600px;
}

/* ── Panel typography ─────────────────────────────────────── */
.panel__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--accent-dim);
  margin-bottom: 28px;
}

.panel__heading {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 24px;
}

.panel__body {
  font-size: 16px;
  color: var(--text-dim);
  line-height: 1.8;
  margin-bottom: 32px;
}

.panel__quote-block {
  position: relative;
  padding: 32px 36px;
  border: 1px solid var(--border);
  margin-top: 16px;
}

.panel__quote-mark {
  position: absolute;
  top: -8px; left: 20px;
  font-size: 52px;
  font-weight: 300;
  color: var(--accent-dim);
  line-height: 1;
}

.panel__quote {
  font-size: 16px;
  font-style: italic;
  color: var(--text-dim);
  line-height: 1.7;
}

.panel__left {
  flex: 1 1 0;
  min-width: 0;
}

.panel__right {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
  transition: opacity 0.4s ease;
}

.panel__video {
  width: 100%;
  max-width: 360px;
  height: auto;
  display: block;
  clip-path: inset(0 0 6% 0);
  margin-bottom: -6%;
  transition: max-width 0.4s ease;
}

/* ── Hero (home panel) ────────────────────────────────────── */
.hero__title {
  position: fixed;
  top: 40px;
  left: 40px;
  z-index: 60;
  font-size: clamp(60px, 13vw, 170px);
  font-weight: 700;
  line-height: 0.85;
  letter-spacing: -5px;
  cursor: pointer;
  transition: opacity 0.3s;
}

.hero__title:hover { opacity: 0.7; }

.hero__tagline {
  position: fixed;
  bottom: calc(var(--controller-h) - 56px);
  left: 40px;
  z-index: 55;
  font-size: clamp(8px, 1.1vw, 13px);
  font-weight: 300;
  color: var(--text-muted);
  letter-spacing: clamp(1px, 0.3vw, 3px);
  text-transform: uppercase;
  white-space: nowrap;
  transition: top 0.4s ease, bottom 0.4s ease, left 0.4s ease, right 0.4s ease, opacity 0.4s ease;
}

.hero__pre {
  position: fixed;
  bottom: calc(var(--controller-h) - 56px);
  right: 40px;
  z-index: 55;
  font-family: var(--font-mono);
  font-size: clamp(8px, 1vw, 12px);
  letter-spacing: clamp(1px, 0.4vw, 4px);
  text-transform: uppercase;
  color: var(--text-dim);
  white-space: nowrap;
  transition: top 0.4s ease, bottom 0.4s ease, left 0.4s ease, right 0.4s ease, opacity 0.4s ease;
}

/* ── Track cards ──────────────────────────────────────────── */
.track-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}

.track-card__number {
  font-family: var(--font-mono);
  font-size: 48px;
  font-weight: 700;
  color: rgba(232, 220, 200, 0.06);
  line-height: 1;
  margin-bottom: 8px;
  display: block;
}

.track-card__title {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 300;
  letter-spacing: -1px;
  margin-bottom: 8px;
}

.track-card__hook {
  font-size: 14px;
  color: var(--text-dim);
  font-style: italic;
  line-height: 1.6;
  margin-bottom: 12px;
}

.track-card__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}

.track-card__dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--text-muted);
}

.track-card__player {
  overflow: hidden;
}

.track-card__player iframe { display: block; }

.link-arrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--text-muted);
  transition: color 0.3s;
  text-align: center;
  display: block;
  padding-top: 16px;
}
.link-arrow:hover { color: var(--accent); opacity: 1; }

/* ── Specs grid ───────────────────────────────────────────── */
.specs-grid {
  display: flex;
  gap: 80px;
  margin-bottom: 16px;
}

.specs-grid__value {
  display: block;
  font-size: clamp(56px, 10vw, 100px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -3px;
  color: var(--accent);
  margin-bottom: 12px;
}

.specs-grid__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Specs mini table */
.specs-mini {
  border: 1px solid var(--border);
  overflow: hidden;
}

.specs-mini__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}

.specs-mini__row:last-child { border-bottom: none; }
.specs-mini__row:hover { background: var(--glow); }

.specs-mini__key { font-size: 14px; color: var(--text-dim); }
.specs-mini__val {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
}

/* Testimonials row */
.testimonials-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
}

.testimonial-mini {
  padding: 28px;
  background: var(--bg);
  transition: background 0.3s, transform 0.3s;
}

.testimonial-mini:hover {
  background: var(--bg-raised);
  transform: translateY(-4px);
}

.testimonial-mini p {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 16px;
}

.testimonial-mini span {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ── Contact form ─────────────────────────────────────────── */
.contact-form { margin-top: 32px; }

.contact-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact-form__group { margin-bottom: 20px; }

.contact-form__label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.contact-form__input {
  width: 100%;
  padding: 14px 0;
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--text);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  outline: none;
  transition: border-color 0.3s;
}

.contact-form__input::placeholder { color: var(--text-muted); }
.contact-form__input:focus { border-color: var(--accent-dim); }
.contact-form__textarea { resize: vertical; min-height: 80px; }

.contact-form__btn {
  width: 100%;
  padding: 16px;
  margin-top: 8px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  background: var(--accent);
  color: var(--bg);
  border: none;
  cursor: pointer;
  transition: background 0.3s;
}

.contact-form__btn:hover { background: #fff; }

.contact-links {
  display: flex;
  gap: 28px;
  justify-content: center;
  margin-top: 36px;
}

.contact-links a {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.3s;
}

.contact-links a:hover { color: var(--accent); opacity: 1; }

/* ── Equalizer transition overlay ─────────────────────────── */
.eq-transition {
  position: fixed;
  inset: 0;
  bottom: var(--controller-h);
  z-index: 50;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease-out;
}

.eq-transition.active { opacity: 1; }
.eq-transition.fading { opacity: 0; }

.eq-transition canvas {
  width: 100%;
  height: 100%;
}

/* ── DJ Controller ────────────────────────────────────────── */
.controller {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--controller-h);
  z-index: 100;
  display: flex;
  justify-content: center;
  padding: 0 20px;
}

.controller__body {
  position: relative;
  width: 100%;
  max-width: 520px;
  height: 100%;
  background: linear-gradient(
    180deg,
    #1a1a1a 0%,
    #111111 40%,
    #0d0d0d 100%
  );
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-left: 1px solid rgba(255, 255, 255, 0.04);
  border-right: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 16px 16px 0 0;
  box-shadow:
    0 -4px 30px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px 32px 12px;
  gap: 8px;
}

.controller__brand {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--text-muted);
  opacity: 0.5;
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
}

.controller__knobs {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

/* Home / Play button (Traktor-style) */
.controller__home {
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #c42020 0%, #8a1010 60%, #5c0a0a 100%);
  box-shadow:
    0 2px 6px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.05),
    inset 0 1px 0 rgba(255, 150, 150, 0.25),
    inset 0 -1px 0 rgba(0, 0, 0, 0.3);
  transition: box-shadow 0.2s, transform 0.15s;
}

.controller__home svg {
  width: 14px;
  height: 14px;
  fill: rgba(255, 255, 255, 0.9);
  margin-left: 2px;
}

.controller__home:hover {
  box-shadow:
    0 2px 12px rgba(180, 30, 30, 0.5),
    0 0 0 1px rgba(255, 100, 100, 0.15),
    0 0 20px rgba(180, 30, 30, 0.25),
    inset 0 1px 0 rgba(255, 150, 150, 0.25),
    inset 0 -1px 0 rgba(0, 0, 0, 0.3);
}

.controller__home:active {
  transform: translateY(-50%) scale(0.93);
  background: linear-gradient(180deg, #a01818 0%, #6a0c0c 60%, #4a0808 100%);
  box-shadow:
    0 1px 4px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 100, 100, 0.08),
    inset 0 1px 0 rgba(255, 150, 150, 0.15),
    inset 0 -1px 0 rgba(0, 0, 0, 0.4);
}

.controller__led {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-dim);
  box-shadow: 0 0 8px rgba(232, 220, 200, 0.3);
  opacity: 0.6;
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  transition: opacity 0.3s, box-shadow 0.3s;
}

.controller__led.pulse {
  opacity: 1;
  box-shadow: 0 0 14px rgba(232, 220, 200, 0.6);
}

/* Screw details */
.controller__body::before,
.controller__body::after {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle, #333 30%, #1a1a1a 70%);
  border: 1px solid rgba(255, 255, 255, 0.03);
  top: 12px;
}

.controller__body::before { left: 16px; }
.controller__body::after { right: 16px; }

/* ── DJ Knobs ────────────────────────────────────────────── */
.knob {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}

.knob:active { cursor: grabbing; }

.knob__dial {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #2a2a2a 0%, #151515 50%, #0a0a0a 100%);
  box-shadow:
    0 2px 6px rgba(0, 0, 0, 0.5),
    0 0 0 2px rgba(255, 255, 255, 0.03),
    inset 0 1px 1px rgba(255, 255, 255, 0.05);
  transition: box-shadow 0.3s;
}

.knob:hover .knob__dial {
  box-shadow:
    0 2px 10px rgba(0, 0, 0, 0.5),
    0 0 0 2px rgba(232, 220, 200, 0.08),
    0 0 16px rgba(232, 220, 200, 0.04),
    inset 0 1px 1px rgba(255, 255, 255, 0.05);
}

.knob.active .knob__dial {
  box-shadow:
    0 2px 10px rgba(0, 0, 0, 0.5),
    0 0 0 2px rgba(232, 220, 200, 0.15),
    0 0 24px rgba(232, 220, 200, 0.08),
    inset 0 1px 1px rgba(255, 255, 255, 0.05);
}

.knob__indicator {
  position: absolute;
  top: 5px;
  left: 50%;
  width: 2px;
  height: 12px;
  background: var(--accent);
  transform: translateX(-50%);
  border-radius: 1px;
  box-shadow: 0 0 5px rgba(232, 220, 200, 0.3);
  transition: box-shadow 0.3s;
}

.knob.active .knob__indicator {
  box-shadow: 0 0 8px rgba(232, 220, 200, 0.6);
}

.knob__label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.3s;
}

.knob:hover .knob__label { color: var(--text-dim); }
.knob.active .knob__label { color: var(--accent); }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1100px) {
  .panel__content--split { gap: 48px; }
  .specs-grid { gap: 48px; }
}

@media (max-width: 900px) {
  .hero__title {
    font-size: clamp(48px, 10vw, 100px);
    top: 24px;
    left: 24px;
  }

  .panel { padding: 24px; align-items: flex-start; padding-top: var(--title-clearance, 120px); }
  .panel__content--split {
    flex-direction: column;
    gap: 32px;
  }

  /* Video on top when stacked */
  .panel__right { order: -1; }
  .panel__video { max-width: 280px; }
  .panel__content--tracks { max-width: 100%; }
  .panel__content--specs { max-width: 100%; }
  .panel__content--book { max-width: 100%; }

  .track-card { gap: 12px; }
  .track-card__title { font-size: clamp(20px, 4vw, 28px); }

  .testimonials-row { grid-template-columns: 1fr; }
  .specs-grid { flex-direction: column; gap: 24px; }
  .specs-grid__value { font-size: clamp(40px, 8vw, 64px); }

  .controller__body { max-width: 420px; padding: 16px 24px 12px; }
  .controller__knobs { gap: 28px; }
}

@media (max-width: 600px) {
  :root { --controller-h: 110px; }

  .hero__title {
    font-size: clamp(40px, 12vw, 72px);
    letter-spacing: -3px;
    top: 16px;
    left: 16px;
  }


  .panel { padding: 16px; padding-top: var(--title-clearance, 100px); }
  .panel__label { font-size: 10px; letter-spacing: 3px; margin-bottom: 16px; }
  .panel__heading { font-size: clamp(24px, 6vw, 36px); margin-bottom: 16px; }
  .panel__body { font-size: 14px; }

  .panel__video { max-width: 200px; }
  .panel__content--split { gap: 24px; }

  .track-card__title { font-size: 20px; }
  .track-card__hook { font-size: 12px; }
  .track-card__player iframe { height: 100px; }

  .specs-mini__row { padding: 12px 16px; }
  .specs-mini__key { font-size: 12px; }
  .specs-mini__val { font-size: 11px; }

  .testimonial-mini { padding: 20px; }
  .testimonial-mini p { font-size: 13px; }

  .contact-form__row { grid-template-columns: 1fr; }
  .contact-form__input { font-size: 14px; }
  .contact-links { flex-direction: column; align-items: center; gap: 12px; }

  .controller__body { max-width: 340px; padding: 12px 20px 10px; }
  .controller__knobs { gap: 20px; }
  .knob__dial { width: 38px; height: 38px; }
  .knob__indicator { height: 9px; top: 4px; }
  .knob__label { font-size: 8px; letter-spacing: 1.5px; }
  .controller__brand { font-size: 7px; letter-spacing: 3px; }
}

@media (max-height: 700px) {
  .hero__title {
    font-size: clamp(40px, 8vw, 80px);
  }

  .panel { padding-top: var(--title-clearance, 80px); }
  .panel__heading { font-size: clamp(24px, 4vw, 36px); }
  .specs-grid__value { font-size: clamp(36px, 6vw, 56px); }
  .testimonials-row { gap: 1px; }
  .testimonial-mini { padding: 16px; }
  .testimonial-mini p { font-size: 12px; margin-bottom: 8px; }
}
