/* ================================
   KIRO — Design System
   ================================ */

/* ── Custom cursor ── */
* { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='16'%3E%3Cpath d='M2,1 L2,13 L5,10 L7,14.5 L8.5,13.8 L6.5,9.5 L10.5,9.5 Z' fill='%23c8930a' stroke='rgba(15,8,1,0.75)' stroke-width='1' stroke-linejoin='round'/%3E%3C/svg%3E") 2 1, auto !important; }
.cursor { display: none; }

:root {
  --bg:           #2a1608;
  --bg-surface:   #341a09;
  --bg-card:      #502e16;
  --bg-elevated:  #633918;

  --gold:         #c8930a;
  --gold-light:   #e8b840;
  --gold-dim:     #7a5a10;
  --gold-faint:   rgba(200, 147, 10, 0.07);

  --text:         #f0e4cc;
  --text-muted:   #9a8060;
  --text-faint:   #5a3c20;

  --lamp-glow:    rgba(210, 140, 30, 0.22);
  --border:       rgba(200, 147, 10, 0.16);
  --border-faint: rgba(255, 255, 255, 0.05);

  --font-serif:   'Playfair Display', Georgia, serif;
  --font-sans:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --section-gap:  140px;
  --ease:         cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out:     cubic-bezier(0, 0, 0.2, 1);
}

/* ================================
   LIGHT THEME
   ================================ */

/* ── Светлая тема ── */

[data-theme="light"] {
  --bg:           #efe8d8;
  --bg-surface:   #e4dbc9;
  --bg-card:      #faf5ec;
  --bg-elevated:  #ffffff;

  --gold:         #a07500;
  --gold-light:   #c49200;
  --gold-dim:     #c8a048;
  --gold-faint:   rgba(160, 117, 0, 0.09);

  --text:         #1a1610;
  --text-muted:   #4a3e2c;
  --text-faint:   #8a7455;

  --lamp-glow:    rgba(180, 130, 20, 0.14);
  --border:       rgba(154, 110, 4, 0.2);
  --border-faint: rgba(0, 0, 0, 0.07);
}

[data-theme="light"] .hero__lamp {
  background: radial-gradient(ellipse at center,
    rgba(180, 130, 20, 0.18) 0%,
    rgba(160, 110, 10, 0.08) 35%,
    transparent 65%
  );
}

[data-theme="light"] .nav.scrolled {
  background: rgba(245, 240, 232, 0.94);
}

[data-theme="light"] .beats,
[data-theme="light"] .music {
  background: var(--bg-surface);
}

[data-theme="light"] .footer {
  background: var(--bg-surface);
}

[data-theme="light"] .footer__lamp {
  background: radial-gradient(ellipse, rgba(154,110,4,0.07) 0%, transparent 70%);
}

[data-theme="light"] .about__img-placeholder {
  background: radial-gradient(ellipse at 50% 35%, rgba(154,110,4,0.12) 0%, var(--bg-card) 65%);
}

[data-theme="light"] .hero__grain,
[data-theme="light"] .footer__grain {
  opacity: 0.15;
  mix-blend-mode: multiply;
}

[data-theme="light"] .bottom-player {
  background: rgba(237, 232, 222, 0.97);
}

[data-theme="light"] .btn--gold {
  color: #080705;
}
[data-theme="light"] .btn--gold:hover {
  box-shadow: 0 10px 40px rgba(200, 147, 10, 0.28);
}

[data-theme="light"] .bp__btn { color: #080705; }

[data-theme="light"] .checkout-overlay {
  background: rgba(9, 8, 5, 0.6);
}

[data-theme="light"] .theme-toggle__icon--dark  { display: none; }
[data-theme="light"] .theme-toggle__icon--light { display: block; }

[data-theme="light"] .nav__links.open {
  background: rgba(245, 240, 232, 0.98);
}

/* ================================
   RESET
   ================================ */

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

html { scroll-behavior: smooth; }

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

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; color: inherit; }

/* ================================
   THEME TOGGLE BUTTON
   ================================ */

.theme-toggle {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 200;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-faint);
  background: var(--bg-card);
  color: var(--text-muted);
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s var(--ease);
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.theme-toggle:hover {
  border-color: var(--gold-dim);
  color: var(--gold);
  transform: scale(1.1);
}

.theme-toggle__icon--light { display: none; }
.theme-toggle__icon--dark  { display: block; }

/* ================================
   GRAIN
   ================================ */

.hero__grain,
.footer__grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.35;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
  background-size: 300px 300px;
}

/* ================================
   CONTAINER
   ================================ */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ================================
   BUTTONS
   ================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 100px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: all 0.28s var(--ease);
  position: relative;
}

.btn--gold {
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 60%, #a07208 100%);
  color: #f0e4cc;
  box-shadow: 0 2px 12px rgba(200, 147, 10, 0.2);
}
.btn--gold:hover {
  background: linear-gradient(135deg, #f0c040 0%, var(--gold-light) 60%, var(--gold) 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(200, 147, 10, 0.35);
}

.btn--ghost {
  border: 1px solid var(--border);
  color: var(--text-muted);
}
.btn--ghost:hover {
  border-color: var(--gold-dim);
  color: var(--text);
  background: rgba(200, 147, 10, 0.05);
}

.btn--nav {
  border: 1px solid var(--border-faint);
  color: var(--text-muted);
  padding: 10px 22px;
  font-size: 11px;
  border-radius: 100px;
}
.btn--nav:hover {
  border-color: var(--gold-dim);
  color: var(--gold-light);
  background: rgba(200, 147, 10, 0.05);
}

/* ================================
   SECTION
   ================================ */

.section { padding: var(--section-gap) 0; }

.section__header { text-align: center; margin-bottom: 64px; }

.section__tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.section__title {
  font-family: var(--font-serif);
  font-size: clamp(36px, 5vw, 54px);
  font-weight: 600;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 20px;
}

.section__desc {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 460px;
  margin: 0 auto;
  line-height: 1.75;
}

/* ================================
   NAV
   ================================ */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 48px;
  transition: all 0.4s var(--ease);
}

.nav.scrolled {
  padding: 16px 48px;
  background: rgba(42, 22, 8, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-faint);
}

.nav__logo {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--gold-light);
}

.nav__links { display: flex; align-items: center; gap: 40px; }

.nav__link {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  transition: color 0.2s;
}
.nav__link:hover { color: var(--text); }

.nav__burger { display: none; flex-direction: column; gap: 5px; padding: 4px; z-index: 101; }
.nav__burger span { display: block; width: 24px; height: 1px; background: var(--text-muted); transition: all 0.3s; }

/* ================================
   HERO
   ================================ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 140px 32px 100px;
}

.hero__lamp {
  position: absolute;
  top: -260px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 900px;
  background: radial-gradient(ellipse at center,
    rgba(240, 175, 50, 0.2)  0%,
    rgba(210, 130, 20, 0.11) 28%,
    rgba(180, 90,  8, 0.05)  55%,
    transparent 72%
  );
  pointer-events: none;
  z-index: 0;
  animation: lampPulse 7s ease-in-out infinite;
}

.hero__cord {
  position: fixed;
  top: 0;
  right: 12%;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 28vh;
  z-index: 5;
  pointer-events: auto;
  cursor: pointer !important;
  transform-origin: top center;
  transition: opacity 0.4s;
  /* Prevent WebKit flickering when JS applies transform each rAF frame */
  will-change: transform;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.hero__cord::after {
  content: '';
  position: absolute;
  inset: 0 -20px;
}

@media (max-width: 768px) {
  .hero__cord::after {
    inset: 0 -32px;
  }
}


@media (max-width: 768px) {
  .hero__cord {
    right: 11%;
    height: 18vh;
  }
}

.hero__cord-line {
  width: 4px;
  flex: 1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='24'%3E%3Cpath d='M2,0 C0,6 0,12 2,12' stroke='rgba(140,90,4,0.4)' stroke-width='0.85' fill='none' stroke-linecap='round'/%3E%3Cpath d='M2,0 C4,6 4,12 2,12' stroke='rgba(225,168,22,0.55)' stroke-width='0.85' fill='none' stroke-linecap='round'/%3E%3Cpath d='M2,12 C4,18 4,24 2,24' stroke='rgba(225,168,22,0.55)' stroke-width='0.85' fill='none' stroke-linecap='round'/%3E%3Cpath d='M2,12 C0,18 0,24 2,24' stroke='rgba(140,90,4,0.45)' stroke-width='0.85' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: repeat-y;
  background-size: 4px 24px;
  transform-origin: top center;
  mask-image: linear-gradient(to bottom, transparent 0%, black 4%, black 96%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 4%, black 96%, transparent 100%);
}

.hero__cord-knob {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--gold-light), var(--gold));
  box-shadow: 0 0 10px 3px rgba(200, 147, 10, 0.35);
  flex-shrink: 0;
  transition: background 0.5s, box-shadow 0.5s;
  padding: 0;
  border: none;
  outline: none;
}

[data-theme="light"] .hero__cord-knob {
  background: radial-gradient(circle at 35% 35%, #fffbe8, #c8a84c);
  box-shadow: 0 0 10px 4px rgba(200, 160, 50, 0.55);
}

@keyframes knobFlash {
  0%   { transform: scale(1); }
  35%  { transform: scale(3); box-shadow: 0 0 22px 10px rgba(200, 147, 10, 0.85); }
  65%  { transform: scale(1.6); box-shadow: 0 0 14px 5px rgba(200, 147, 10, 0.5); }
  100% { transform: scale(1); }
}
.hero__cord-knob.flash {
  animation: knobFlash 0.55s cubic-bezier(0.36, 0.07, 0.19, 0.97) forwards;
}

@keyframes knobJiggle {
  0%   { transform: translateX(0); }
  20%  { transform: translateX(-2px); }
  45%  { transform: translateX(2px); }
  70%  { transform: translateX(-1.5px); }
  100% { transform: translateX(0); }
}
.hero__cord-knob.jiggling {
  animation: knobJiggle 0.18s ease-in-out infinite;
}


@keyframes lampPulse {
  0%, 100% { opacity: 1;    transform: translateX(-50%) scale(1); }
  50%       { opacity: 0.72; transform: translateX(-50%) scale(1.06); }
}


.hero__content {
  position: relative;
  z-index: 2;
  max-width: 860px;
}

.hero__eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out) 0.15s forwards;
}

.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(90px, 20vw, 220px);
  font-weight: 700;
  line-height: 0.88;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 36px;
  opacity: 0;
  animation: fadeUp 0.9s var(--ease-out) 0.3s forwards;
}

.hero__tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(19px, 2.6vw, 26px);
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 64px;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out) 0.5s forwards;
  letter-spacing: 0.01em;
}

.hero__cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out) 0.7s forwards;
}

.hero__scroll {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 2;
  opacity: 0;
  animation: fadeIn 1s var(--ease-out) 1.6s forwards;
}

.hero__scroll-text {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.hero__scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, var(--gold-dim), transparent);
  animation: scrollLine 2.2s ease-in-out infinite;
}

@keyframes scrollLine {
  0%     { transform: scaleY(0); transform-origin: top;    opacity: 1; }
  50%    { transform: scaleY(1); transform-origin: top;    opacity: 1; }
  50.01% { transform: scaleY(1); transform-origin: bottom; opacity: 1; }
  100%   { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ================================
   BEATS
   ================================ */

.beats {
  background: var(--bg-surface);
  position: relative;
}

.beats::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border), transparent);
}

.beats__filters {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 52px;
}

.filter {
  padding: 8px 20px;
  border: 1px solid var(--border-faint);
  border-radius: 100px;
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  transition: all 0.2s;
  font-family: var(--font-sans);
}

.filter:hover { border-color: var(--border); color: var(--text); }
.filter.active { background: var(--gold-faint); border-color: var(--gold-dim); color: var(--gold-light); }

.beats__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

/* Beat Card */
.beat-card {
  background: var(--bg-card);
  padding: 28px;
  border: 1px solid var(--border-faint);
  border-radius: 16px;
  transition: all 0.3s var(--ease);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.beat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(200,147,10,0.06) 0%, transparent 55%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.beat-card:hover { border-color: var(--border); transform: translateY(-2px); }
.beat-card:hover::before { opacity: 1; }

.beat-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 16px;
}

.beat-card__meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

.beat-card__genre {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(200, 147, 10, 0.1);
  border: 1px solid rgba(200, 147, 10, 0.18);
  padding: 3px 10px;
  border-radius: 100px;
}

.beat-card__bpm { font-size: 11px; color: var(--text-muted); font-weight: 300; }
.beat-card__type-badge { font-size: 10px; color: var(--text-faint); letter-spacing: 0.08em; }

.beat-card__title {
  font-family: 'Barlow Condensed', var(--font-sans);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 5px;
  line-height: 1.2;
  letter-spacing: 0.01em;
}

.beat-card__mood { font-size: 12px; color: var(--text-muted); font-style: italic; margin-bottom: 8px; }

.beat-card__room {
  font-family: 'Caveat', cursive;
  font-size: 13px;
  color: var(--gold-dim);
  opacity: 0.6;
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}

/* Waveform */
.beat-card__waveform {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 54px;
  margin-bottom: 20px;
  cursor: pointer;
}

.waveform-bar {
  flex: 1;
  background: linear-gradient(to top, var(--bg-elevated), rgba(255,255,255,0.07));
  border-radius: 2px 2px 1px 1px;
  transition: background 0.3s, box-shadow 0.3s;
  min-height: 3px;
  transform-origin: center;
}

.beat-card:hover .waveform-bar {
  background: linear-gradient(to top, var(--bg-elevated), rgba(200,147,10,0.1));
}

.beat-card.playing .waveform-bar {
  background: linear-gradient(to top, var(--gold), var(--gold-light));
  box-shadow: 0 0 6px rgba(200, 147, 10, 0.4);
  animation: waveAnim var(--dur, 0.7s) ease-in-out var(--delay, 0s) infinite alternate;
}

@keyframes waveAnim {
  from { transform: scaleY(0.18); }
  to   { transform: scaleY(1); }
}

.beat-card__controls { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }

.beat-card__play {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
  transition: all 0.22s;
  color: var(--text);
}

.beat-card__play:hover { border-color: var(--gold); color: var(--gold); transform: scale(1.06); }
.beat-card.playing .beat-card__play { background: var(--gold); border-color: var(--gold); color: #060504; }

.beat-card__time { font-size: 11px; color: var(--text-faint); letter-spacing: 0.05em; }

.beat-card__take {
  width: 100%;
  margin-top: auto;
  padding: 12px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.beat-card__take:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.beat-card__licenses { display: flex; gap: 6px; }

.license-btn {
  flex: 1;
  padding: 10px 6px;
  border: 1px solid var(--border-faint);
  border-radius: 100px;
  text-align: center;
  font-family: var(--font-sans);
  font-size: 10px;
  color: var(--text-muted);
  transition: all 0.2s;
  line-height: 1.4;
}

.license-btn:not(:disabled):hover {
  border-color: var(--gold-dim);
  color: var(--text);
  background: var(--gold-faint);
}

.license-btn__name { display: block; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 3px; }
.license-btn__price { display: block; color: var(--gold); font-weight: 500; font-size: 11px; }

.license-btn:disabled { opacity: 0.3; cursor: not-allowed; }
.license-btn:disabled .license-btn__price { color: var(--text-faint); }

/* ================================
   LICENSES SECTION
   ================================ */

.licenses { border-top: 1px solid var(--border-faint); }

.licenses__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  max-width: 960px;
  margin: 0 auto;
}

.license-card {
  padding: 40px 32px;
  background: var(--bg-card);
  border: 1px solid var(--border-faint);
  position: relative;
  transition: border-color 0.3s;
}

.license-card:hover { border-color: var(--border); }

.license-card--featured {
  background: var(--bg-elevated);
  border-color: var(--gold-dim);
}

.license-card__badge {
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: #080705;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 16px;
  white-space: nowrap;
}

.license-card__icon { font-size: 22px; margin-bottom: 16px; }

.license-card__name {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.license-card__price { font-size: 28px; font-weight: 600; color: var(--gold-light); margin-bottom: 24px; }

.license-card__list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }

.license-card__list li {
  font-size: 13px;
  color: var(--text-muted);
  padding-left: 18px;
  position: relative;
}

.license-card__list li::before { content: '—'; position: absolute; left: 0; color: var(--gold-dim); }

.license-card__note {
  display: block;
  font-size: 11px;
  color: var(--text-faint);
  font-style: italic;
  border-top: 1px solid var(--border-faint);
  padding-top: 16px;
}

/* ================================
   ABOUT
   ================================ */

.about {
  border-top: 1px solid var(--border-faint);
  overflow: hidden;
}

.about__inner--full {
  position: relative;
}

.about__inner--full::after {
  content: 'K';
  position: absolute;
  right: -80px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-serif);
  font-size: clamp(200px, 28vw, 340px);
  font-weight: 700;
  color: var(--gold);
  opacity: 0.04;
  line-height: 1;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.about__text {
  position: relative;
  z-index: 1;
}

.about__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about__inner--full {
  grid-template-columns: 1fr;
  max-width: 640px;
}

.about__visual { position: relative; }

.about__frame {
  aspect-ratio: 3/4;
  background: var(--bg-card);
  border: 1px solid var(--border-faint);
  position: relative;
  overflow: hidden;
}

.about__img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at 50% 35%, rgba(200,147,10,0.14) 0%, transparent 65%);
}

.about__lamp-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold-light);
  box-shadow: 0 0 50px 24px rgba(210,150,30,0.22);
  animation: lampPulse 5s ease-in-out infinite;
}

.about__frame-label {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.about__text .section__tag { display: block; text-align: left; margin-bottom: 16px; }

.about__text .section__title {
  text-align: left;
  margin-bottom: 24px;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(40px, 5.5vw, 64px);
  font-weight: 600;
  line-height: 1.05;
}

.about__text p {
  font-family: 'Lora', Georgia, serif;
  font-size: 16px;
  color: var(--text-muted);
  line-height: 2;
  margin-bottom: 20px;
}

.about__links { display: flex; gap: 24px; flex-wrap: wrap; margin-top: 40px; }

.about__social {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-faint);
  padding-bottom: 3px;
  transition: all 0.2s;
}

.about__social:hover { color: var(--gold); border-color: var(--gold-dim); }

/* ================================
   MUSIC
   ================================ */

.music {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-faint);
  text-align: center;
}

.music__coming-soon {
  max-width: 460px;
  margin: 0 auto;
  padding: 60px 40px;
  border: 1px solid var(--border-faint);
  background: var(--bg-card);
}

.music__icon { font-size: 44px; color: var(--gold-dim); margin-bottom: 24px; display: block; line-height: 1; }

.music__coming-soon h3 { font-family: var(--font-serif); font-size: 24px; color: var(--text); margin-bottom: 12px; }
.music__coming-soon p { font-size: 14px; color: var(--text-muted); margin-bottom: 28px; line-height: 1.75; }

/* ================================
   BLOG
   ================================ */

.blog {
  border-top: 1px solid var(--border-faint);
}

.blog .section__header {
  text-align: left;
  margin-bottom: 32px;
}

.blog .section__tag {
  font-family: 'Caveat', cursive;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: none;
}

.blog .section__title {
  font-family: 'Caveat', cursive;
  font-size: clamp(52px, 8vw, 88px);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 12px;
}

.blog .section__desc {
  font-family: 'Lora', Georgia, serif;
  font-style: italic;
  font-size: 15px;
  text-align: left;
  margin: 0;
}

.blog__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  max-width: 720px;
}

.blog-card {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border-faint);
  padding: 36px 0 36px 28px;
  border-left: 2px solid var(--border-faint);
  transition: border-left-color 0.25s, transform 0.25s;
  cursor: pointer;
  position: relative;
}

.blog-card:first-child {
  border-top: 1px solid var(--border-faint);
}

.blog-card:hover {
  border-left-color: var(--gold);
  transform: translateX(6px);
}

.blog-card__date {
  font-family: 'Caveat', cursive;
  font-size: 15px;
  color: var(--gold);
  letter-spacing: 0.02em;
  margin-bottom: 10px;
  font-weight: 400;
}

.blog-card__title {
  font-family: 'Caveat', cursive;
  font-size: 32px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 12px;
}

.blog-card:first-child .blog-card__title {
  font-size: 40px;
}

.blog-card__excerpt {
  font-family: 'Lora', Georgia, serif;
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.9;
  margin-bottom: 18px;
  max-width: 560px;
}

.blog-card__read {
  font-family: 'Caveat', cursive;
  font-size: 16px;
  font-weight: 600;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.01em;
}

.blog-card__read::after { content: '→'; transition: transform 0.2s; }
.blog-card:hover .blog-card__read::after { transform: translateX(6px); }

/* ================================
   FOOTER
   ================================ */

/* ================================
   MANIFESTO
   ================================ */

.manifesto {
  padding: 120px 0;
  border-top: 1px solid var(--border-faint);
  border-bottom: 1px solid var(--border-faint);
  position: relative;
  overflow: hidden;
}

.manifesto::before {
  content: '\201C';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -52%);
  font-family: var(--font-serif);
  font-size: clamp(240px, 36vw, 440px);
  color: var(--gold);
  opacity: 0.04;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.manifesto__quote {
  font-family: var(--font-serif);
  font-size: clamp(26px, 4vw, 46px);
  font-style: italic;
  color: var(--text);
  line-height: 1.45;
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
  border: none;
  padding: 0;
  position: relative;
  z-index: 1;
}

/* ================================
   NEWSLETTER
   ================================ */

.newsletter__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 72px 0;
  border-top: 1px solid var(--border-faint);
  border-bottom: 1px solid var(--border-faint);
}

.newsletter__title {
  font-family: var(--font-serif);
  font-size: 36px;
  color: var(--text);
  margin: 12px 0 16px;
  line-height: 1.2;
}

.newsletter__desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

.newsletter__form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.newsletter__input {
  background: var(--bg-elevated);
  border: 1px solid var(--border-faint);
  border-radius: 100px;
  padding: 14px 20px;
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
}
.newsletter__input::placeholder { color: var(--text-faint); }
.newsletter__input:focus { border-color: var(--gold); }

.newsletter__btn {
  padding: 14px;
  background: var(--gold);
  border: none;
  border-radius: 2px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #0d0b08;
  cursor: pointer;
  transition: background 0.2s;
}
.newsletter__btn:hover { background: var(--gold-light); }
.newsletter__btn:disabled { opacity: 0.6; cursor: not-allowed; }

.newsletter__msg {
  font-size: 13px;
  min-height: 18px;
}
.newsletter__msg--ok  { color: var(--gold); }
.newsletter__msg--err { color: #e05c5c; }

@media (max-width: 768px) {
  .newsletter__inner {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 52px 0;
  }
  .newsletter__title { font-size: 28px; }
}

.footer {
  position: relative;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-faint);
  overflow: hidden;
}

.footer__lamp {
  position: absolute;
  bottom: -300px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(200,147,10,0.07) 0%, transparent 70%);
  pointer-events: none;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  padding: 80px 0 60px;
  border-bottom: 1px solid var(--border-faint);
  position: relative;
  z-index: 1;
}

.footer__logo { font-family: var(--font-serif); font-size: 32px; font-weight: 700; color: var(--gold-light); margin-bottom: 12px; letter-spacing: 0.06em; }
.footer__tagline { font-size: 11px; color: var(--text-muted); letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 8px; }
.footer__domain  { font-size: 13px; color: var(--text-faint); }

.footer__contact h3 { font-family: var(--font-serif); font-size: 20px; color: var(--text); margin-bottom: 10px; }
.footer__contact p  { font-size: 13px; color: var(--text-muted); margin-bottom: 16px; }

.footer__email {
  display: inline-block;
  font-size: 14px;
  color: var(--gold);
  border-bottom: 1px solid var(--gold-dim);
  padding-bottom: 2px;
  margin-bottom: 28px;
  transition: color 0.2s;
}
.footer__email:hover { color: var(--gold-light); }

.footer__socials { display: flex; gap: 10px; }

.footer__socials a {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-faint);
  border-radius: 12px;
  color: var(--text-muted);
  transition: all 0.25s var(--ease);
  padding: 0;
  flex-shrink: 0;
}
.footer__socials a:hover {
  color: var(--gold);
  border-color: var(--gold-dim);
  background: var(--gold-faint);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(200, 147, 10, 0.15);
}

.footer__bottom {
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 1;
}

.footer__bottom p { font-size: 11px; color: var(--text-faint); letter-spacing: 0.06em; }

.footer__legal {
  padding: 16px 0 20px;
  font-size: 11px;
  color: var(--text-faint);
  letter-spacing: 0.04em;
  text-align: center;
  border-top: 1px solid var(--border-faint);
  position: relative;
  z-index: 1;
}

/* ================================
   CHECKOUT MODAL
   ================================ */

.checkout-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(20, 10, 4, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}

.checkout-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.checkout-modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  max-width: 420px;
  width: 100%;
  padding: 40px;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s var(--ease);
}

.checkout-overlay.open .checkout-modal {
  transform: translateY(0);
}

.checkout-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border-faint);
  color: var(--text-muted);
  font-size: 13px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}
.checkout-close:hover { border-color: var(--border); color: var(--text); }

.checkout-header { margin-bottom: 28px; }
.checkout-header .section__tag { display: block; margin-bottom: 8px; }

.checkout-title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.checkout-price {
  font-size: 28px;
  font-weight: 600;
  color: var(--gold-light);
}

.checkout-label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.checkout-input {
  width: 100%;
  padding: 13px 18px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-faint);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 300;
  outline: none;
  transition: border-color 0.2s;
  border-radius: 100px;
}
.checkout-input:focus { border-color: var(--border); }
.checkout-input::placeholder { color: var(--text-faint); }

.checkout-note {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.6;
}

.checkout-pay {
  width: 100%;
  justify-content: center;
  padding: 16px;
  font-size: 13px;
  margin-bottom: 16px;
}

.checkout-terms {
  font-size: 11px;
  color: var(--text-faint);
  line-height: 1.6;
  text-align: center;
}
.checkout-terms a { color: var(--gold-dim); border-bottom: 1px solid var(--text-faint); }
.checkout-terms a:hover { color: var(--gold); }

.checkout-error {
  margin-top: 12px;
  font-size: 12px;
  color: #e05050;
  min-height: 18px;
  text-align: center;
}

/* ================================
   SCROLL REVEAL
   ================================ */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s var(--ease-out), transform 0.65s var(--ease-out);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ================================
   RESPONSIVE
   ================================ */

@media (max-width: 900px) {
  :root { --section-gap: 100px; }
  .licenses__grid { grid-template-columns: 1fr; }
  .about__inner { grid-template-columns: 1fr; gap: 48px; }
  .about__frame { aspect-ratio: 16/9; }
}

@media (max-width: 768px) {
  :root { --section-gap: 80px; }
  .nav { padding: 20px 24px; }
  .nav.scrolled { padding: 14px 24px; }
  .nav__links { display: none; }
  .nav__burger { display: flex; }

  .about__inner--full::after {
    right: auto;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 180px;
    opacity: 0.035;
  }

  .nav__links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    background: rgba(42, 22, 8, 0.98);
    align-items: center;
    justify-content: center;
    gap: 32px;
    z-index: 100;
  }
  .nav__links.open .nav__link { font-size: 20px; }

  .hero__title { font-size: clamp(64px, 22vw, 120px); }
  .beats__grid { grid-template-columns: 1fr; }
  .cursor { display: none; }
  * { cursor: auto !important; }
  .blog__grid  { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; gap: 48px; padding: 60px 0 40px; }
  .footer__bottom { flex-direction: column; gap: 6px; text-align: center; }
  .container { padding: 0 20px; }
}

/* ================================
   LICENSE SLOT & Q-BUTTON
   ================================ */

.license-slot {
  display: flex;
  align-items: stretch;
  gap: 4px;
}

.license-slot .license-btn {
  flex: 1;
  border-radius: 0;
}

.license-q {
  flex-shrink: 0;
  width: 28px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-faint);
  color: var(--text-faint);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-sans);
}
.license-q:hover {
  color: var(--gold);
  border-color: var(--border);
  background: var(--gold-faint);
}

/* ================================
   LICENSE INFO MODAL
   ================================ */

.post-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 900;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s;
}
.post-overlay.open { opacity: 1; pointer-events: all; }

.post-modal {
  background: var(--bg-card);
  border: 1px solid var(--border-faint);
  border-radius: 2px;
  width: min(680px, 92vw);
  max-height: 85vh;
  overflow-y: auto;
  padding: 48px 52px;
  position: relative;
  transform: translateY(16px);
  transition: transform 0.25s;
}
.post-overlay.open .post-modal { transform: translateY(0); }

.post-close {
  position: absolute; top: 20px; right: 22px;
  background: none; border: none;
  color: var(--text-faint); font-size: 18px; cursor: pointer;
  transition: color 0.2s;
}
.post-close:hover { color: var(--text); }

.post-modal__date {
  font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--text-faint); margin-bottom: 14px;
}
.post-modal__title {
  font-family: var(--font-serif);
  font-size: 26px; color: var(--text);
  margin-bottom: 28px; line-height: 1.3;
}
.post-modal__body p {
  font-size: 15px; line-height: 1.8;
  color: var(--text-muted); margin-bottom: 18px;
}

@media (max-width: 600px) {
  .post-modal { padding: 32px 24px; }
  .post-modal__title { font-size: 20px; }
}

.lic-overlay {
  position: fixed; inset: 0;
  z-index: 450;
  background: rgba(10, 5, 2, 0.75);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s var(--ease);
  backdrop-filter: blur(6px);
}
.lic-overlay.open {
  opacity: 1; pointer-events: all;
}

.lic-modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  width: 100%; max-width: 440px;
  max-height: 90vh; overflow-y: auto;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.35s cubic-bezier(.16,1,.3,1);
}
.lic-overlay.open .lic-modal {
  transform: translateY(0);
}

.lic-close {
  position: absolute; top: 14px; right: 16px;
  background: none; border: none;
  color: var(--text-muted); font-size: 16px;
  cursor: pointer; line-height: 1; padding: 4px;
  transition: color 0.2s;
}
.lic-close:hover { color: var(--text); }

.lic-modal__beat {
  font-family: var(--font-serif);
  font-size: 18px;
  color: var(--text);
  letter-spacing: 0.05em;
  margin-bottom: 20px;
}

.lic-tabs {
  display: flex;
  border-bottom: 1px solid var(--border-faint);
}
.lic-tab {
  flex: 1; padding: 16px 10px;
  font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-muted); cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  background: none; border-top: none; border-left: none; border-right: none;
  font-family: var(--font-sans);
}
.lic-tab.active { color: var(--gold); border-bottom-color: var(--gold); }
.lic-tab:hover:not(.active) { color: var(--text); }

.lic-content { padding: 28px 28px 32px; }

.lic-price {
  font-family: var(--font-serif);
  font-size: 30px; color: var(--gold-light);
  letter-spacing: 0.02em; margin-bottom: 6px;
}

.lic-tagline {
  font-family: var(--font-serif);
  font-style: italic; font-size: 16px;
  color: var(--text); margin-bottom: 14px;
  line-height: 1.4;
}

.lic-desc {
  font-size: 13px; color: var(--text-muted);
  line-height: 1.8; margin-bottom: 22px;
}

.lic-list {
  list-style: none; display: flex; flex-direction: column; gap: 8px;
  margin-bottom: 20px;
}
.lic-check {
  font-size: 13px; display: flex; align-items: baseline; gap: 10px;
}
.lic-check--yes { color: var(--text); }
.lic-check--yes::before { content: ''; }
.lic-check--no  { color: var(--text-faint); text-decoration: line-through; }

.lic-note {
  font-size: 11px; color: var(--text-muted);
  letter-spacing: 0.04em; line-height: 1.6;
  border-top: 1px solid var(--border-faint);
  padding-top: 16px; margin-bottom: 20px;
}

.lic-buy-btn {
  width: 100%;
  justify-content: center;
  padding: 15px;
  font-size: 12px;
}

/* ================================
   CART
   ================================ */

.cart-btn {
  position: relative;
  background: none;
  border: 1px solid var(--border-faint);
  color: var(--text-muted);
  width: 38px; height: 38px;
  border-radius: 100px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.cart-btn:hover { color: var(--gold); border-color: var(--border); }

.cart-badge {
  position: absolute;
  top: -6px; right: -6px;
  background: var(--gold);
  color: #090700;
  font-size: 9px; font-weight: 700;
  min-width: 16px; height: 16px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
  line-height: 1;
}

.cart-overlay {
  position: fixed; inset: 0;
  z-index: 400;
  background: rgba(5, 4, 2, 0.6);
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s var(--ease);
}
.cart-overlay.open {
  opacity: 1; pointer-events: all;
}

.cart-sidebar {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 420px; max-width: 100vw;
  background: var(--bg-card);
  border-left: 1px solid var(--border-faint);
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(.16, 1, .3, 1);
}
.cart-overlay.open .cart-sidebar {
  transform: translateX(0);
}

.cart-sidebar__header {
  display: flex; align-items: center;
  padding: 22px 24px;
  border-bottom: 1px solid var(--border-faint);
  flex-shrink: 0;
}
.cart-sidebar__title {
  font-family: var(--font-serif);
  font-size: 20px; font-weight: 600;
  color: var(--text); flex: 1;
  letter-spacing: 0.03em;
}
.cart-sidebar__close {
  background: none; border: none;
  color: var(--text-muted); font-size: 18px;
  cursor: pointer; line-height: 1; padding: 4px;
  transition: color 0.2s;
}
.cart-sidebar__close:hover { color: var(--text); }

.cart-sidebar__items {
  flex: 1; overflow-y: auto;
  padding: 16px 24px;
}

.cart-item {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-faint);
}
.cart-item__info { flex: 1; min-width: 0; }
.cart-item__title {
  font-family: var(--font-serif);
  font-size: 15px; color: var(--text);
  letter-spacing: 0.03em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cart-item__license {
  font-size: 10px; color: var(--text-muted);
  letter-spacing: 0.1em; text-transform: uppercase;
  margin-top: 3px;
}
.cart-item__price {
  font-size: 14px; color: var(--gold);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}
.cart-item__remove {
  background: none; border: none;
  color: var(--text-faint); font-size: 14px;
  cursor: pointer; padding: 4px;
  line-height: 1; flex-shrink: 0;
  transition: color 0.2s;
}
.cart-item__remove:hover { color: var(--text-muted); }

.cart-sidebar__empty {
  flex: 1; display: none;
  flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 40px 24px;
  color: var(--text-muted); font-size: 14px;
}

.cart-sidebar__footer {
  padding: 20px 24px 28px;
  border-top: 1px solid var(--border-faint);
  flex-shrink: 0;
}

.cart-total {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 20px;
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-muted);
}
.cart-total__sum {
  font-family: var(--font-serif);
  font-size: 24px; color: var(--gold-light);
  letter-spacing: 0.02em;
  text-transform: none;
}

.cart-pay-btn {
  width: 100%;
  justify-content: center;
  padding: 16px;
  font-size: 13px;
  margin-top: 4px;
  margin-bottom: 12px;
}

[data-theme="light"] .cart-sidebar {
  background: var(--bg-card);
}

@media (max-width: 480px) {
  .cart-sidebar { width: 100vw; }
}

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

.bottom-player {
  position: fixed;
  bottom: 0;
  left: 0; right: 0;
  z-index: 200;
  background: rgba(30, 14, 6, 1);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(.16, 1, .3, 1);
  pointer-events: none;
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.bottom-player.visible {
  transform: translateY(0);
  pointer-events: auto;
}

.bp__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 12px 28px 14px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.bp__left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 0 0 auto;
  max-width: 230px;
}

.bp__btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--gold);
  border: none;
  color: #06040100;
  font-size: 13px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, transform 0.15s;
  flex-shrink: 0;
  color: #090700;
}
.bp__btn:hover { background: var(--gold-light); transform: scale(1.06); }

.bp__info { min-width: 0; }
.bp__title {
  font-family: var(--font-serif);
  font-size: 13px;
  color: var(--text);
  letter-spacing: 0.05em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  line-height: 1.2;
}
.bp__genre {
  font-size: 9px;
  color: var(--text-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 3px;
}

.bp__right {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.bp__progress {
  height: 3px;
  background: var(--border-faint);
  border-radius: 2px;
  cursor: pointer;
  position: relative;
  overflow: visible;
}
.bp__progress::after {
  content: '';
  position: absolute;
  inset: -6px 0;
}
.bp__progress:hover .bp__fill { background: var(--gold-light); }

.bp__fill {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  background: var(--gold);
  border-radius: 2px;
  width: 0;
  transition: width 0.1s linear;
  pointer-events: none;
}

.bp__times {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--text-faint);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.03em;
}

.bp__close {
  background: none; border: none;
  color: var(--text-faint);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 6px;
  flex-shrink: 0;
  transition: color 0.2s;
}
.bp__close:hover { color: var(--text-muted); }

.bp__viz {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  opacity: 0.18;
  pointer-events: none;
}

[data-theme="light"] .bottom-player {
  background: rgba(232, 224, 210, 1);
}

body.player-open { padding-bottom: calc(70px + env(safe-area-inset-bottom, 0)); }

@media (max-width: 768px) {
  .bottom-player { display: none !important; }
  body.player-open { padding-bottom: 0; }
}

/* ================================
   ENVELOPE CONTACT MODAL
   ================================ */

.env-overlay {
  position: fixed; inset: 0;
  z-index: 850;
  background: rgba(6, 3, 1, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
}
.env-overlay.open { opacity: 1; pointer-events: all; }

.env-scene { perspective: 1400px; }

.env {
  width: min(540px, 92vw);
  position: relative;
  transform: translateY(28px) scale(0.95);
  opacity: 0;
  transition: transform 0.55s cubic-bezier(.16,1,.3,1), opacity 0.4s;
}
.env-overlay.open .env {
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* ── CARD — envelope container ── */
.env__card {
  border-radius: 3px;
  box-shadow:
    0 70px 180px rgba(0,0,0,0.75),
    0 12px 40px rgba(0,0,0,0.4),
    0 0 0 1px rgba(200,147,10,0.3),
    0 0 40px rgba(200,120,10,0.08);
  position: relative;
  overflow: hidden;
  min-height: 300px;
  background: #2a1808;
}

/* ── ENVELOPE FACE — kraft cover ── */
.env__cover {
  position: absolute;
  inset: 0;
  z-index: 4;
  background:
    repeating-linear-gradient(
      45deg,
      transparent 0px, transparent 2px,
      rgba(200,147,10,0.055) 2px, rgba(200,147,10,0.055) 3px
    ),
    repeating-linear-gradient(
      -45deg,
      transparent 0px, transparent 2px,
      rgba(200,147,10,0.04) 2px, rgba(200,147,10,0.04) 3px
    ),
    linear-gradient(155deg, #3e2210 0%, #2a1808 35%, #321c0c 60%, #3a2010 100%);
  pointer-events: none;
  transition: opacity 0.28s 0.42s ease;
}
.env__cover::after {
  content: '';
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(200,147,10,0.28);
  border-radius: 1px;
  pointer-events: none;
}
.env.is-open .env__cover {
  opacity: 0;
  transition: opacity 0.32s 0.48s ease;
}

.env__folds {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
}

/* ── FLAP — 3D hinge at top ── */
.env__flap-wrap {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 158px;
  transform-origin: top center;
  transform-style: preserve-3d;
  transform: rotateX(0deg);
  z-index: 7;
  transition: transform 0.8s cubic-bezier(.4,0,.2,1) 0.05s;
}
.env.is-open .env__flap-wrap {
  transform: rotateX(-178deg);
  transition: transform 0.9s cubic-bezier(.4,0,.2,1) 0.08s;
}

.env__flap-front {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      45deg,
      transparent 0px, transparent 2px,
      rgba(200,147,10,0.055) 2px, rgba(200,147,10,0.055) 3px
    ),
    linear-gradient(178deg, #4a2a12 0%, #361e0c 55%, #2c180a 100%);
  clip-path: polygon(0% 0%, 100% 0%, 50% 100%);
  backface-visibility: hidden;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.35));
}

.env__flap-back {
  position: absolute;
  inset: 0;
  background: linear-gradient(10deg, #2e1a0a, #3e2412);
  clip-path: polygon(0% 0%, 100% 0%, 50% 100%);
  transform: rotateX(180deg);
  backface-visibility: hidden;
}

/* ── WAX SEAL ── */
.env__seal {
  position: absolute;
  top: 126px; left: 50%;
  transform: translateX(-50%);
  width: 78px; height: 78px;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 28%,
    #f0d070 0%, #d4a820 32%, #a87010 66%, #7a5008 100%);
  color: rgba(18, 8, 0, 0.88);
  font-family: var(--font-serif);
  font-size: 32px; font-weight: 700;
  font-style: italic;
  display: flex; align-items: center; justify-content: center;
  box-shadow:
    0 0 0 3px rgba(160,100,8,0.3),
    0 0 0 6px rgba(120,70,4,0.12),
    0 10px 30px rgba(0,0,0,0.65),
    0 2px 8px rgba(0,0,0,0.4),
    inset 0 2px 4px rgba(255,230,100,0.5),
    inset 0 -2px 5px rgba(0,0,0,0.32);
  z-index: 8;
  pointer-events: none;
  transition:
    transform 0.42s 0.32s cubic-bezier(.34,1.56,.64,1),
    opacity 0.32s 0.28s;
}
.env__seal::before {
  content: '';
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  border: 1px solid rgba(255,210,60,0.22);
  pointer-events: none;
}
.env.is-open .env__seal {
  transform: translateX(-50%) scale(0) rotate(30deg);
  opacity: 0;
  transition:
    transform 0.3s 0s cubic-bezier(.36,.07,.19,.97),
    opacity 0.24s 0.04s;
}

/* ── LETTER — slides up when open ── */
.env__inner {
  position: relative;
  z-index: 2;
  background: #faf5e8;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition:
    max-height 0s 0.28s,
    opacity 0.18s 0s,
    transform 0.18s 0s;
}
.env.is-open .env__inner {
  max-height: 920px;
  overflow: visible;
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
  transition:
    max-height 0.72s 0.62s cubic-bezier(.4,0,.2,1),
    opacity 0.42s 0.82s ease,
    transform 0.48s 0.80s cubic-bezier(.16,1,.3,1);
}

/* ── CLOSE ── */
.env__close {
  position: absolute;
  top: 12px; right: 14px;
  z-index: 10;
  background: none; border: none;
  color: rgba(80,50,16,0.3);
  font-size: 16px;
  cursor: pointer;
  padding: 8px;
  line-height: 1;
  transition: color 0.2s, transform 0.2s;
}
.env__close:hover { color: rgba(80,50,16,0.7); transform: scale(1.15); }

/* ── LETTERHEAD ── */
.env__letterhead {
  position: absolute;
  top: 22px; right: 48px;
  font-family: var(--font-serif);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 4px;
  color: rgba(80,50,16,0.22);
  text-transform: uppercase;
  z-index: 3;
}

/* ── HEADER — greeting ── */
.env__header {
  min-height: 158px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 48px 24px;
  position: relative;
}
.env__header::before {
  content: '';
  position: absolute;
  bottom: 0; left: 48px; right: 48px;
  height: 1px;
  background: linear-gradient(to right,
    transparent,
    rgba(160,110,30,0.2) 20%,
    rgba(160,110,30,0.2) 80%,
    transparent);
}
.env__header::after {
  content: '✦';
  position: absolute;
  bottom: -1px; left: 50%;
  transform: translateX(-50%);
  font-size: 9px;
  color: rgba(150,100,20,0.35);
  background: #faf5e8;
  padding: 0 10px;
  line-height: 0;
}

.env__greeting {
  font-family: 'Caveat', cursive;
  font-size: 24px;
  font-weight: 600;
  color: rgba(46,26,6,0.45);
  line-height: 1.2;
  margin-bottom: 2px;
}
.env__greeting-name {
  font-family: var(--font-serif);
  font-size: 46px;
  font-weight: 700;
  font-style: italic;
  color: #2e1c06;
  display: block;
  line-height: 1;
}
.env__sub {
  font-family: 'Lora', Georgia, serif;
  font-size: 13px;
  font-style: italic;
  color: rgba(80,50,16,0.38);
  margin-top: 5px;
}

/* ── FORM ── */
.env__form {
  padding: 22px 48px 44px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.env__field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.env__field-label {
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(120,80,20,0.45);
}
.env__field-opt {
  font-size: 9px;
  color: rgba(120,80,20,0.25);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 300;
}

.env__input {
  background: transparent;
  border: none;
  border-bottom: 1.5px solid rgba(80,50,16,0.15);
  color: #2a1c06;
  font-family: 'Lora', Georgia, serif;
  font-size: 15px;
  font-weight: 400;
  padding: 7px 0 10px;
  outline: none;
  transition: border-color 0.25s;
  width: 100%;
  border-radius: 0;
}
.env__input::placeholder {
  color: rgba(80,50,16,0.25);
  font-style: italic;
}
.env__input:focus { border-bottom-color: rgba(160,110,25,0.55); }

.env__textarea {
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 29px,
    rgba(80,50,16,0.09) 29px,
    rgba(80,50,16,0.09) 30px
  );
  border: none;
  border-bottom: 1.5px solid rgba(80,50,16,0.15);
  color: #2a1c06;
  font-family: 'Lora', Georgia, serif;
  font-size: 15px;
  font-weight: 400;
  padding: 7px 0 0;
  outline: none;
  transition: border-color 0.25s;
  width: 100%;
  min-height: 90px;
  resize: none;
  line-height: 30px;
  border-radius: 0;
}
.env__textarea::placeholder {
  color: rgba(80,50,16,0.25);
  font-style: italic;
  line-height: 1.6;
}
.env__textarea:focus { border-bottom-color: rgba(160,110,25,0.55); }

/* ── SUBMIT BUTTON — letter style ── */
.env__submit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  border: 1.5px solid rgba(160,110,25,0.3);
  color: rgba(120,75,10,0.75);
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  padding: 14px 20px;
  cursor: pointer;
  transition: background 0.25s, border-color 0.25s, color 0.25s;
  width: 100%;
  margin-top: 2px;
}
.env__submit svg {
  width: 16px; height: 16px;
  transition: transform 0.2s;
  flex-shrink: 0;
}
.env__submit:hover {
  background: rgba(160,110,25,0.06);
  border-color: rgba(160,110,25,0.55);
  color: rgba(100,60,5,1);
}
.env__submit:hover svg { transform: translateX(5px); }

.env__msg {
  font-size: 13px;
  min-height: 16px;
  font-family: var(--font-sans);
}
.env__msg--ok  { color: #5a7a30; }
.env__msg--err { color: #b04040; }

/* Light theme: kraft envelope instead of dark */
[data-theme="light"] .env__card { background: #b8844a; }
[data-theme="light"] .env__cover {
  background:
    repeating-linear-gradient(
      45deg,
      transparent 0px, transparent 2px,
      rgba(0,0,0,0.05) 2px, rgba(0,0,0,0.05) 3px
    ),
    repeating-linear-gradient(
      -45deg,
      transparent 0px, transparent 2px,
      rgba(0,0,0,0.04) 2px, rgba(0,0,0,0.04) 3px
    ),
    linear-gradient(148deg, #cc9656 0%, #b8844a 30%, #b07a40 58%, #bc8848 82%, #c89258 100%);
}
[data-theme="light"] .env__cover::after {
  border-color: rgba(20,8,0,0.12);
}
[data-theme="light"] .env__card {
  box-shadow:
    0 70px 180px rgba(0,0,0,0.4),
    0 12px 40px rgba(0,0,0,0.2),
    0 0 0 1px rgba(0,0,0,0.1);
}
[data-theme="light"] .env__folds line {
  stroke: rgba(20,8,0,0.18) !important;
}
[data-theme="light"] .env__flap-front {
  background:
    repeating-linear-gradient(45deg, transparent 0 2px, rgba(0,0,0,0.04) 2px 3px),
    linear-gradient(175deg, #d4a060 0%, #c69052 60%, #bc8848 100%);
}
[data-theme="light"] .env__flap-back {
  background: linear-gradient(10deg, #9e7840, #b88c52);
}
[data-theme="light"] .env__seal {
  box-shadow:
    0 0 0 3px rgba(160,100,8,0.35),
    0 0 0 6px rgba(120,70,4,0.15),
    0 10px 28px rgba(0,0,0,0.5),
    0 2px 8px rgba(0,0,0,0.3),
    inset 0 2px 4px rgba(255,230,100,0.5),
    inset 0 -2px 5px rgba(0,0,0,0.28);
}

@media (max-width: 600px) {
  .env__header { min-height: 140px; padding: 0 24px 18px; }
  .env__form   { padding: 18px 24px 36px; }
  .env__greeting-name { font-size: 36px; }
}

/* ================================
   PRELOADER
   ================================ */

#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #1a0d03;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.85s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.85s;
}
#preloader.done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.preloader__glow {
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 147, 10, 0.22) 0%, transparent 65%);
  opacity: 0;
  animation: preloaderGlow 1.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
.preloader__word {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(72px, 14vw, 130px);
  font-weight: 400;
  color: #e8b840;
  letter-spacing: 0.35em;
  text-indent: 0.35em;
  opacity: 0;
  position: relative;
  animation: preloaderFadeIn 1.1s cubic-bezier(0.4, 0, 0.2, 1) 0.25s forwards;
}
@keyframes preloaderFadeIn {
  from { opacity: 0; letter-spacing: 0.6em; text-indent: 0.6em; filter: blur(10px); }
  to   { opacity: 1; letter-spacing: 0.35em; text-indent: 0.35em; filter: blur(0); }
}
@keyframes preloaderGlow {
  0%   { opacity: 0; transform: scale(0.5); }
  40%  { opacity: 1; }
  100% { opacity: 0.45; transform: scale(1.4); }
}

/* ================================
   CORD — grab cursor
   ================================ */

.hero__cord        { cursor: grab; }
.hero__cord:active { cursor: grabbing; }

/* ================================
   LAMP — music reaction
   ================================ */

.hero__lamp {
  filter: brightness(calc(1 + var(--lamp-live, 0) * 0.9));
}

/* ================================
   BEAT CARD — progress bar
   ================================ */

.beat-card__progress {
  height: 3px;
  background: var(--bg-elevated);
  border-radius: 0 0 12px 12px;
  overflow: hidden;
  margin-top: 14px;
  opacity: 0;
  transition: opacity 0.3s;
}
.beat-card.playing .beat-card__progress { opacity: 1; }

.beat-card__progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--gold-dim), var(--gold-light));
  border-radius: 0 0 12px 12px;
  transition: width 0.25s linear;
}

/* ================================
   BEAT CARDS — staggered reveal
   ================================ */

.beat-card.reveal {
  transition-delay: calc(var(--i, 0) * 0.07s);
}
