/* ==========================================================================
   onlythesexy — style.css
   Moody luxe R&B/soul artist site. Fraunces (display) + Switzer (body).
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  /* Type scale — fluid, clamp(min, preferred, max) */
  --text-xs: clamp(0.72rem, 0.7rem + 0.1vw, 0.78rem);
  --text-sm: clamp(0.84rem, 0.82rem + 0.1vw, 0.9rem);
  --text-base: clamp(1rem, 0.97rem + 0.15vw, 1.08rem);
  --text-lg: clamp(1.15rem, 1.1rem + 0.25vw, 1.3rem);
  --text-xl: clamp(1.4rem, 1.3rem + 0.5vw, 1.7rem);
  --text-2xl: clamp(1.8rem, 1.6rem + 1vw, 2.4rem);
  --text-3xl: clamp(2.4rem, 2rem + 2vw, 3.6rem);
  --text-hero: clamp(3.2rem, 2.4rem + 5vw, 7rem);

  /* Spacing — 4px scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  --radius-sm: 4px;
  --radius-md: 10px;
  --radius-lg: 18px;
  --radius-full: 999px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --transition-interactive: 180ms var(--ease-out);

  --font-display: 'Fraunces', 'Iowan Old Style', ui-serif, serif;
  --font-body: 'Switzer', 'Inter', ui-sans-serif, system-ui, sans-serif;

  --side-rail-width: 84px;
  --container-max: 1240px;

  color-scheme: dark;
}

/* Dark theme (default) — near-black, amber gold, deep wine */
:root,
[data-theme='dark'] {
  --color-bg: #120d0a;
  --color-surface: #1c140f;
  --color-surface-2: #241a14;
  --color-surface-offset: #2c2018;
  --color-divider: #3a2c22;
  --color-border: #4a3728;
  --color-text: #f4ece0;
  --color-text-muted: #b9a58e;
  --color-text-faint: #7d6c5a;
  --color-text-inverse: #16100b;

  --color-primary: #e0a53f;
  --color-primary-hover: #efb955;
  --color-primary-active: #c68f2e;
  --color-primary-highlight: #4a3a20;

  --color-wine: #8c2c40;
  --color-wine-hover: #a7364e;
  --color-wine-active: #6e2233;

  --shadow-sm: 0 1px 3px oklch(0 0 0 / 0.4);
  --shadow-md: 0 8px 24px oklch(0 0 0 / 0.45);
  --shadow-lg: 0 20px 60px oklch(0 0 0 / 0.55);
  --shadow-glow: 0 0 32px oklch(0.75 0.14 75 / 0.35);
}

[data-theme='light'] {
  color-scheme: light;
  --color-bg: #f7f0e6;
  --color-surface: #fbf6ee;
  --color-surface-2: #fdfaf5;
  --color-surface-offset: #efe1c9;
  --color-divider: #e2d0ae;
  --color-border: #d5bd93;
  --color-text: #251a10;
  --color-text-muted: #6d5842;
  --color-text-faint: #a08a6c;
  --color-text-inverse: #f7f0e6;

  --color-primary: #a86a20;
  --color-primary-hover: #8f5818;
  --color-primary-active: #744610;
  --color-primary-highlight: #ecd8ab;

  --color-wine: #83263a;
  --color-wine-hover: #6b1e2f;
  --color-wine-active: #521725;

  --shadow-sm: 0 1px 3px oklch(0 0 0 / 0.1);
  --shadow-md: 0 8px 24px oklch(0 0 0 / 0.1);
  --shadow-lg: 0 20px 60px oklch(0 0 0 / 0.14);
  --shadow-glow: 0 0 32px oklch(0.6 0.12 75 / 0.25);
}

/* ---------- Fonts ----------
   Switzer + Fraunces are loaded via <link> tags in index.html
   (Fontshare / Google Fonts CSS APIs) — no @font-face needed here. */

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-6);
}
.section {
  padding-block: var(--space-24);
  position: relative;
}
.section-head {
  margin-bottom: var(--space-12);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: var(--space-4);
}
.eyebrow::before {
  content: '';
  width: 22px;
  height: 1px;
  background: var(--color-primary);
}
.section-title {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 500;
  font-size: var(--text-3xl);
  color: var(--color-text);
}
.section-title em {
  font-style: italic;
  color: var(--color-primary);
}
.section-sub {
  color: var(--color-text-muted);
  font-size: var(--text-lg);
  margin-top: var(--space-4);
  max-width: 56ch;
}

/* ---------- Body / grain texture ---------- */
body {
  background-color: var(--color-bg);
  position: relative;
  overflow-x: clip;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Side rails (decorative, desktop only) ---------- */
.side-rail {
  position: fixed;
  top: 0;
  bottom: 0;
  width: var(--side-rail-width);
  z-index: 5;
  pointer-events: none;
  overflow: hidden;
  display: none;
}
.side-rail.left {
  left: 0;
}
.side-rail.right {
  right: 0;
}
.side-rail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) sepia(0.35) brightness(0.55) contrast(1.05);
  opacity: 0.55;
}
.side-rail::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    var(--color-bg) 0%,
    transparent 12%,
    transparent 88%,
    var(--color-bg) 100%
  );
}
.side-rail::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    oklch(0.15 0.02 40 / 0.2),
    oklch(0.6 0.12 75 / 0.12) 50%,
    oklch(0.15 0.02 40 / 0.2)
  );
}
.side-rail .rail-label {
  position: absolute;
  bottom: var(--space-10);
  left: 50%;
  transform: translateX(-50%) rotate(180deg);
  writing-mode: vertical-rl;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-primary-highlight);
  font-weight: 600;
  z-index: 2;
}
.side-rail.right .rail-label {
  color: oklch(0.85 0.1 75 / 0.85);
}
@media (min-width: 1400px) {
  .side-rail {
    display: block;
  }
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-6);
  background: linear-gradient(
    to bottom,
    oklch(0.05 0.02 40 / 0.72) 0%,
    oklch(0.05 0.02 40 / 0.45) 65%,
    transparent 100%
  );
  transition:
    background var(--transition-interactive),
    box-shadow var(--transition-interactive),
    backdrop-filter var(--transition-interactive);
}
.site-header.scrolled {
  background: oklch(from var(--color-bg) l c h / 0.82);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid var(--color-divider);
}
.brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--color-text);
  text-decoration: none;
}
.brand svg {
  width: 40px;
  height: 40px;
  color: var(--color-primary);
}
.brand-word {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: var(--text-xl);
  letter-spacing: 0.01em;
}
.brand-word b {
  font-style: normal;
  color: var(--color-primary);
  font-weight: 500;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}
.main-nav a {
  font-size: var(--text-sm);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--color-text-muted);
  text-decoration: none;
  position: relative;
  padding-block: var(--space-1);
}
.main-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: var(--color-primary);
  transition: width var(--transition-interactive);
}
.main-nav a:hover {
  color: var(--color-text);
}
.main-nav a:hover::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}
.theme-toggle,
.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  background: var(--color-surface);
}
.theme-toggle:hover,
.menu-toggle:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.theme-toggle svg,
.menu-toggle svg {
  width: 18px;
  height: 18px;
}
.theme-toggle .icon-moon {
  display: none;
}
[data-theme='light'] .theme-toggle .icon-sun {
  display: none;
}
[data-theme='light'] .theme-toggle .icon-moon {
  display: block;
}
.menu-toggle {
  display: none;
}

/* Mobile nav */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--color-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 250ms var(--ease-out),
    visibility 250ms;
}
.mobile-nav.open {
  opacity: 1;
  visibility: visible;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--color-text);
  text-decoration: none;
}
.mobile-nav a:hover {
  color: var(--color-primary);
}
.mobile-nav .close-btn {
  position: absolute;
  top: var(--space-6);
  right: var(--space-6);
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
}

@media (max-width: 860px) {
  .main-nav {
    display: none;
  }
  .menu-toggle {
    display: inline-flex;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero-media video,
.hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, var(--color-bg) 0%, oklch(0.1 0.02 40 / 0.35) 42%, oklch(0.1 0.02 40 / 0.15) 65%, oklch(0.1 0.02 40 / 0.55) 100%),
    linear-gradient(to right, oklch(0.08 0.02 40 / 0.55) 0%, transparent 35%, transparent 65%, oklch(0.08 0.02 40 / 0.55) 100%);
}
.hero-inner {
  position: relative;
  z-index: 1;
  padding: 0 var(--space-6) var(--space-20);
  max-width: var(--container-max);
  margin-inline: auto;
  width: 100%;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-primary-hover);
  font-size: var(--text-sm);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: var(--space-6);
  text-shadow: 0 2px 16px oklch(0 0 0 / 0.75), 0 1px 3px oklch(0 0 0 / 0.9);
}
.hero-eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-primary);
  box-shadow: 0 0 10px var(--color-primary);
  animation: pulse-dot 2s var(--ease-in-out) infinite;
}
@keyframes pulse-dot {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}
.hero-title {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-style: italic;
  font-weight: 500;
  font-size: var(--text-hero);
  line-height: 0.95;
  letter-spacing: 0.03em;
  color: #f7efe2;
  text-shadow: 0 4px 40px oklch(0 0 0 / 0.5);
}
.hero-title .accent {
  color: var(--color-primary);
  font-style: normal;
}
.hero-tagline {
  margin-top: var(--space-6);
  font-size: var(--text-lg);
  color: #e5d9c5;
  max-width: 46ch;
  text-shadow: 0 2px 16px oklch(0 0 0 / 0.6), 0 1px 3px oklch(0 0 0 / 0.75);
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-top: var(--space-10);
}
.hero-scroll-cue {
  position: absolute;
  bottom: var(--space-8);
  right: var(--space-6);
  z-index: 1;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: #e5d9c5;
  font-size: var(--text-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.hero-scroll-cue svg {
  width: 16px;
  height: 16px;
  animation: bob 1.8s var(--ease-in-out) infinite;
}
@keyframes bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(6px);
  }
}
.hero-mute-btn {
  position: absolute;
  bottom: var(--space-8);
  left: var(--space-6);
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  border: 1px solid oklch(0.9 0.05 75 / 0.35);
  background: oklch(0.1 0.02 40 / 0.4);
  backdrop-filter: blur(6px);
  color: #f0e5d3;
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.hero-mute-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary-hover);
}
.hero-mute-btn svg {
  width: 15px;
  height: 15px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-8);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
}
.btn svg {
  width: 16px;
  height: 16px;
}
.btn-primary {
  background: var(--color-primary);
  color: #1a1208;
  box-shadow: var(--shadow-glow);
}
.btn-primary:hover {
  background: var(--color-primary-hover);
  transform: translateY(-1px);
}
.btn-primary:active {
  background: var(--color-primary-active);
  transform: translateY(0);
}
.btn-ghost {
  border-color: oklch(0.9 0.05 75 / 0.4);
  color: #f0e5d3;
  background: oklch(0.1 0.02 40 / 0.25);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover {
  border-color: var(--color-primary);
  color: var(--color-primary-hover);
}

/* ---------- Marquee / "flash" banner ---------- */
.flash-banner {
  position: relative;
  background: linear-gradient(90deg, var(--color-wine), #4a1c28 55%, var(--color-wine));
  border-block: 1px solid oklch(0.6 0.12 40 / 0.4);
  overflow: hidden;
  padding-block: var(--space-3);
  z-index: 3;
}
.flash-banner .marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 26s linear infinite;
}
.flash-banner:hover .marquee-track {
  animation-play-state: paused;
}
.marquee-group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding-inline: var(--space-6);
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-lg);
  color: #fce9c9;
  text-shadow: 0 0 18px oklch(0.8 0.16 75 / 0.55);
  white-space: nowrap;
}
.marquee-item svg {
  width: 14px;
  height: 14px;
  color: var(--color-primary);
  flex-shrink: 0;
}
@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
/*------------Links----------*/
.music {
  background: bar(--color-surface);
 .link-portrait {
  position: relative;
  align-items: center !important;
}
}
  .music-row-forced {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: center !important; /* Centering rule: pushes content to the exact horizontal middle */
    white-space: nowrap !important;
    gap: 12px !important;
    width: 100% !important;             /* Force container to stretch across the page width */
    margin: 0 auto !important;          /* Standard fallback centering for web layouts */
  }

  .music-text-forced {
    display: inline-block !important;
     font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-xl);
  color: var(--color-text)
    align-items: center !important
  }

  .music-icons-forced {
    display: flex !important;
    flex-direction: row !important;
    gap: 8px !important;
    align-items: center !important
  }

  .music-icons-forced a {
    display: inline-block !important;
    line-height: 1 !important;
    vertical-align: middle !important;
    align-items: center !important
  }
 
}
}
/* ---------- Bio ---------- */
.bio {
  background: var(--color-surface);
}
.bio-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: var(--space-16);
  align-items: center;
}
.bio-portrait {
  position: relative;
}
.bio-portrait img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/5;
  object-fit: cover;
}
.bio-portrait .frame-tag {
  position: absolute;
  bottom: var(--space-6);
  left: var(--space-6);
  background: oklch(0.12 0.02 40 / 0.75);
  backdrop-filter: blur(8px);
  border: 1px solid oklch(0.9 0.05 75 / 0.25);
  color: #f0e5d3;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.bio-copy p {
  color: var(--color-text-muted);
  font-size: var(--text-base);
  margin-bottom: var(--space-5);
  max-width: 62ch;
}
.bio-copy p:first-of-type {
  font-size: var(--text-lg);
  color: var(--color-text);
}
.bio-quote {
  border-left: 2px solid var(--color-primary);
  padding-left: var(--space-6);
  margin: var(--space-8) 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-xl);
  color: var(--color-text);
}
.bio-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-8);
}
.fact {
  padding: var(--space-4);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-md);
  background: var(--color-surface-2);
}
.fact .fact-label {
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  margin-bottom: var(--space-1);
}
.fact .fact-value {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-primary);
}

/* BTS strip */
.bts-strip {
  margin-top: var(--space-16);
}
.bts-strip .bts-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
}
.bts-strip img {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}
.bts-strip figcaption {
  margin-top: var(--space-2);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-faint);
}

@media (max-width: 900px) {
  .bio-grid {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }
  .bio-facts {
    grid-template-columns: repeat(3, 1fr);
  }
  .bts-strip .bts-images {
    grid-template-columns: 1fr;
  }
}

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  cursor: zoom-in;
  aspect-ratio: 1;
}
.gallery-item.tall {
  aspect-ratio: 1/1.35;
  grid-row: span 2;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms var(--ease-out);
}
.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, oklch(0.08 0.02 40 / 0.55), transparent 55%);
  opacity: 0;
  transition: opacity var(--transition-interactive);
}
.gallery-item .gallery-icon {
  position: absolute;
  bottom: var(--space-3);
  right: var(--space-3);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: oklch(0.1 0.02 40 / 0.55);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f0e5d3;
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity var(--transition-interactive),
    transform var(--transition-interactive);
}
.gallery-item .gallery-icon svg {
  width: 14px;
  height: 14px;
}
.gallery-item:hover img {
  transform: scale(1.06);
}
.gallery-item:hover::after,
.gallery-item:hover .gallery-icon {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery-item.tall {
    grid-row: auto;
    aspect-ratio: 1;
  }
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: oklch(0.06 0.02 40 / 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 250ms var(--ease-out),
    visibility 250ms;
}
.lightbox.open {
  opacity: 1;
  visibility: visible;
}
.lightbox img {
  max-width: min(90vw, 900px);
  max-height: 82vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid oklch(0.9 0.05 75 / 0.3);
  background: oklch(0.1 0.02 40 / 0.5);
  color: #f0e5d3;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  border-color: var(--color-primary);
  color: var(--color-primary-hover);
}
.lightbox-close {
  top: var(--space-6);
  right: var(--space-6);
}
.lightbox-prev {
  left: var(--space-6);
  top: 50%;
  transform: translateY(-50%);
}
.lightbox-next {
  right: var(--space-6);
  top: 50%;
  transform: translateY(-50%);
}
.lightbox-close svg,
.lightbox-prev svg,
.lightbox-next svg {
  width: 20px;
  height: 20px;
}
.lightbox-counter {
  position: absolute;
  bottom: var(--space-6);
  left: 50%;
  transform: translateX(-50%);
  color: var(--color-text-faint);
  font-size: var(--text-sm);
  letter-spacing: 0.1em;
}

/* ---------- Audio player ---------- */
.audio-section {
  background: var(--color-surface);
}
.player {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: var(--space-10);
  background: linear-gradient(150deg, var(--color-surface-2), var(--color-surface-offset));
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.player-art {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 1;
  box-shadow: var(--shadow-md);
}
.player-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 8s linear;
}
.player-art.is-playing img {
  transform: scale(1.08) rotate(0.5deg);
}
.player-art::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px oklch(0.9 0.05 75 / 0.15);
}
.player-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-5);
  min-width: 0;
}
.now-playing-label {
  font-size: var(--text-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.eq-bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 12px;
}
.eq-bars span {
  width: 2px;
  background: var(--color-primary);
  border-radius: 1px;
  animation: eq 0.9s ease-in-out infinite;
  animation-play-state: paused;
  height: 30%;
}
.player.is-playing .eq-bars span {
  animation-play-state: running;
}
.eq-bars span:nth-child(1) {
  animation-delay: -0.6s;
}
.eq-bars span:nth-child(2) {
  animation-delay: -0.2s;
}
.eq-bars span:nth-child(3) {
  animation-delay: -0.8s;
}
.eq-bars span:nth-child(4) {
  animation-delay: -0.4s;
}
@keyframes eq {
  0%,
  100% {
    height: 25%;
  }
  50% {
    height: 100%;
  }
}
.track-title {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-2xl);
  color: var(--color-text);
}
.track-meta {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}
.seek-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.time {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  min-width: 3.4em;
  font-variant-numeric: tabular-nums;
}
input[type='range'] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  border-radius: var(--radius-full);
  background: var(--color-divider);
  cursor: pointer;
}
input[type='range']::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--color-primary);
  box-shadow: 0 0 0 3px oklch(from var(--color-primary) l c h / 0.2);
  margin-top: -1px;
}
input[type='range']::-moz-range-thumb {
  width: 13px;
  height: 13px;
  border: none;
  border-radius: 50%;
  background: var(--color-primary);
}
.seek-bar {
  --pct: 0%;
  background: linear-gradient(
    to right,
    var(--color-primary) 0%,
    var(--color-primary) var(--pct),
    var(--color-divider) var(--pct)
  );
}
.player-controls {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}
.transport-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  color: var(--color-text);
  background: var(--color-surface);
}
.transport-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.transport-btn.play-pause {
  width: 58px;
  height: 58px;
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #1a1208;
}
.transport-btn.play-pause:hover {
  background: var(--color-primary-hover);
}
.transport-btn svg {
  width: 18px;
  height: 18px;
}
.transport-btn.play-pause svg {
  width: 22px;
  height: 22px;
}
.volume-row {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-left: auto;
}
.volume-row svg {
  width: 16px;
  height: 16px;
  color: var(--color-text-faint);
}
.volume-row input[type='range'] {
  width: 90px;
}

.playlist {
  margin-top: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.playlist-item {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  width: 100%;
  text-align: left;
  color: var(--color-text-muted);
}
.playlist-item:hover {
  background: var(--color-surface-2);
  border-color: var(--color-divider);
}
.playlist-item.active {
  background: var(--color-primary-highlight);
  border-color: var(--color-primary);
  color: var(--color-text);
}
.playlist-item .track-num {
  font-size: var(--text-xs);
  width: 1.6em;
  color: var(--color-text-faint);
}
.playlist-item.active .track-num {
  color: var(--color-primary);
}
.playlist-item .pl-title {
  flex: 1;
  font-weight: 600;
  font-size: var(--text-sm);
}
.playlist-item .pl-dur {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  font-variant-numeric: tabular-nums;
}
.playlist-item svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

@media (max-width: 760px) {
  .player {
    grid-template-columns: 1fr;
  }
  .player-art {
    max-width: 200px;
  }
  .volume-row {
    display: none;
  }
}

/* ---------- Video ---------- */
.video-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 16/9;
  background: #000;
}
.video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.video-caption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: var(--space-5);
  flex-wrap: wrap;
  gap: var(--space-3);
}
.video-caption h3 {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-xl);
  color: var(--color-text);
}
.video-caption span {
  color: var(--color-text-faint);
  font-size: var(--text-sm);
}

/* ---------- Mailing list ---------- */
.mailing {
  background: linear-gradient(150deg, var(--color-wine), #3d1622 65%, #23101a);
  position: relative;
  overflow: hidden;
}
.mailing::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, oklch(0.6 0.14 75 / 0.18), transparent 55%);
}
.mailing-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
}
.mailing .eyebrow {
  color: #f6cf8f;
  justify-content: center;
}
.mailing .eyebrow::before {
  display: none;
}
.mailing .section-title {
  color: #fbf1e2;
}
.mailing .section-title em {
  color: #f6cf8f;
}
.mailing p {
  color: #e6cdd2;
  margin-top: var(--space-4);
}
.mail-form {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-8);
  flex-wrap: wrap;
  justify-content: center;
}
.mail-form input[type='text'],
.mail-form input[type='email'] {
  flex: 1;
  min-width: 200px;
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-full);
  border: 1px solid oklch(0.9 0.05 75 / 0.35);
  background: oklch(0.1 0.02 40 / 0.35);
  color: #fbf1e2;
}
.mail-form input::placeholder {
  color: #d8b9be;
}
.mail-form input:focus-visible {
  outline: 2px solid #f6cf8f;
}
.mail-form .btn-primary {
  flex-shrink: 0;
}
.mail-note {
  margin-top: var(--space-4);
  font-size: var(--text-xs);
  color: #d8b9be;
}
.mail-success {
  display: none;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-8);
  color: #f6cf8f;
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-lg);
}
.mail-success.show {
  display: flex;
}
.mail-success svg {
  width: 20px;
  height: 20px;
}
.mail-error {
  color: #f2a3a3;
  font-size: var(--text-sm);
  margin-top: var(--space-3);
  display: none;
}
.mail-error.show {
  display: block;
}

@media (max-width: 560px) {
  .mail-form {
    flex-direction: column;
  }
  .mail-form .btn-primary {
    justify-content: center;
  }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-bg);
  border-top: 1px solid var(--color-divider);
  padding-block: var(--space-16) var(--space-8);
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-10);
  flex-wrap: wrap;
  padding-bottom: var(--space-10);
  border-bottom: 1px solid var(--color-divider);
}
.footer-brand {
  max-width: 340px;
}
.footer-brand .brand {
  margin-bottom: var(--space-4);
}
.footer-brand p {
  color: var(--color-text-faint);
  font-size: var(--text-sm);
}
.footer-links {
  display: flex;
  gap: var(--space-16);
  flex-wrap: wrap;
}
.footer-col h4 {
  font-size: var(--text-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  margin-bottom: var(--space-4);
}
.footer-col a {
  display: block;
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: var(--text-sm);
  margin-bottom: var(--space-3);
}
.footer-col a:hover {
  color: var(--color-primary);
}
.footer-social {
  display: flex;
  gap: var(--space-3);
}
.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
}
.footer-social a:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.footer-social svg {
  width: 16px;
  height: 16px;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
  padding-top: var(--space-6);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}
.back-to-top {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-text-muted);
  text-decoration: none;
}
.back-to-top:hover {
  color: var(--color-primary);
}
.back-to-top svg {
  width: 14px;
  height: 14px;
}

/* ---------- Scroll reveal (opacity-only, no CLS) ---------- */
.reveal {
  opacity: 1;
}
@supports (animation-timeline: view()) {
  .reveal {
    opacity: 0;
    animation: reveal-fade linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 55%;
  }
}
@keyframes reveal-fade {
  to {
    opacity: 1;
  }
}

/* ---------- Side-rail clearance overrides (kept last for cascade priority) ---------- */
@media (min-width: 1400px) {
  .site-header {
    padding-inline: calc(var(--space-6) + var(--side-rail-width));
  }
  .hero-mute-btn {
    left: calc(var(--space-6) + var(--side-rail-width));
  }
  .hero-scroll-cue {
    right: calc(var(--space-6) + var(--side-rail-width));
  }
}

/* ---------- Misc ---------- */
.badge-live {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-primary);
}
