/* ==========================================================================
   Nexus Mastering — Core Stylesheet
   Design language: Apple-inspired dark minimalism
   Contains: reset, design tokens, typography, layout, components
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Colour palette — black / charcoal / graphite */
  --bg-primary: #050506;
  --bg-secondary: #0a0a0c;
  --bg-elevated: #0f0f12;
  --bg-elevated-2: #151518;
  --surface-glass: rgba(255, 255, 255, 0.045);
  --surface-glass-strong: rgba(255, 255, 255, 0.07);
  --border-hairline: rgba(255, 255, 255, 0.09);
  --border-hairline-strong: rgba(255, 255, 255, 0.16);

  /* Text */
  --text-primary: #f5f5f7;
  --text-secondary: #a1a1a6;
  --text-tertiary: #6e6e73;
  --text-inverse: #0a0a0c;

  /* Accent — used sparingly for glows, links, focus states */
  --accent: #5b7cfa;
  --accent-2: #9b7cf7;
  --accent-gradient: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  --accent-glow: rgba(91, 124, 250, 0.35);

  /* Elevation & effects */
  --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.55);
  --shadow-glow: 0 0 40px var(--accent-glow);
  --blur-glass: saturate(180%) blur(20px);

  /* Radii */
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-full: 999px;

  /* Spacing scale */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --space-3xl: 9rem;

  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI",
    "Inter", Roboto, Helvetica, Arial, sans-serif;
  --font-serif: "New York", "Iowan Old Style", Georgia, serif;

  /* Motion */
  --ease-apple: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --duration-fast: 0.2s;
  --duration-base: 0.4s;
  --duration-slow: 0.8s;

  /* Layout */
  --container-max: 1240px;
  --container-narrow: 820px;
  --nav-height: 76px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

html,
body {
  height: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.5;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
}

button {
  cursor: pointer;
}

/* Respect reduced motion preference across the entire site */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* Focus visibility for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* Skip link for keyboard users */
.skip-link {
  position: absolute;
  top: -60px;
  left: var(--space-sm);
  background: var(--bg-elevated);
  color: var(--text-primary);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-hairline-strong);
  z-index: 1000;
  transition: top var(--duration-fast) var(--ease-smooth);
}

.skip-link:focus {
  top: var(--space-sm);
}

/* --------------------------------------------------------------------------
   3. Typography
   -------------------------------------------------------------------------- */
h1,
h2,
h3,
h4 {
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--text-primary);
}

.display-1 {
  font-size: clamp(2.75rem, 7vw, 6rem);
  font-weight: 700;
  letter-spacing: -0.04em;
}

.display-2 {
  font-size: clamp(2.25rem, 5vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.035em;
}

h2,
.heading-lg {
  font-size: clamp(1.9rem, 3.4vw, 2.75rem);
}

h3,
.heading-md {
  font-size: clamp(1.4rem, 2.2vw, 1.85rem);
}

h4,
.heading-sm {
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.65;
}

.lede {
  font-size: clamp(1.1rem, 1.6vw, 1.4rem);
  color: var(--text-secondary);
  font-weight: 400;
  line-height: 1.55;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-sm);
}

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

.text-gradient {
  background: linear-gradient(180deg, var(--text-primary) 20%, var(--text-secondary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* --------------------------------------------------------------------------
   4. Layout primitives
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-md);
}

.container-narrow {
  width: 100%;
  max-width: var(--container-narrow);
  margin-inline: auto;
  padding-inline: var(--space-md);
}

.section {
  padding-block: var(--space-2xl);
  position: relative;
}

.section-header {
  max-width: 640px;
  margin-bottom: var(--space-xl);
}

.section-header.centered {
  margin-inline: auto;
  text-align: center;
}

main {
  display: block;
  padding-top: var(--nav-height);
}

.grid {
  display: grid;
  gap: var(--space-md);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.divider {
  height: 1px;
  width: 100%;
  background: var(--border-hairline);
  border: none;
}

/* Decorative background glow used behind hero / CTA sections */
.bg-glow {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.bg-glow::before,
.bg-glow::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.28;
}

.bg-glow::before {
  width: 620px;
  height: 620px;
  top: -180px;
  left: -140px;
  background: var(--accent);
}

.bg-glow::after {
  width: 560px;
  height: 560px;
  bottom: -220px;
  right: -160px;
  background: var(--accent-2);
}

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 2rem;
  border-radius: var(--radius-full);
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: transform var(--duration-fast) var(--ease-smooth),
    box-shadow var(--duration-fast) var(--ease-smooth),
    background-color var(--duration-fast) var(--ease-smooth),
    border-color var(--duration-fast) var(--ease-smooth);
  border: 1px solid transparent;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--text-primary);
  color: var(--text-inverse);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  box-shadow: var(--shadow-glow), var(--shadow-md);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--surface-glass);
  color: var(--text-primary);
  border: 1px solid var(--border-hairline-strong);
  backdrop-filter: var(--blur-glass);
  -webkit-backdrop-filter: var(--blur-glass);
}

.btn-secondary:hover {
  background: var(--surface-glass-strong);
  transform: translateY(-2px);
}

.btn-ghost {
  color: var(--text-primary);
  padding-inline: 0.25rem;
  border-radius: var(--radius-sm);
}

.btn-ghost::after {
  content: "→";
  display: inline-block;
  transition: transform var(--duration-fast) var(--ease-smooth);
}

.btn-ghost:hover::after {
  transform: translateX(4px);
}

.btn-block {
  width: 100%;
}

.btn-row {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   6. Badge / Pill
   -------------------------------------------------------------------------- */
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-full);
  background: var(--surface-glass);
  border: 1px solid var(--border-hairline-strong);
  backdrop-filter: var(--blur-glass);
  -webkit-backdrop-filter: var(--blur-glass);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  box-shadow: var(--shadow-sm);
}

.badge-pill .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-gradient);
  box-shadow: 0 0 10px var(--accent-glow);
}

/* --------------------------------------------------------------------------
   7. Cards
   -------------------------------------------------------------------------- */
.card {
  background: linear-gradient(180deg, var(--bg-elevated) 0%, var(--bg-secondary) 100%);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  transition: transform var(--duration-base) var(--ease-apple),
    border-color var(--duration-base) var(--ease-smooth),
    box-shadow var(--duration-base) var(--ease-smooth);
}

.card:hover {
  border-color: var(--border-hairline-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-6px);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--surface-glass-strong);
  border: 1px solid var(--border-hairline);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
}

.card-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--text-primary);
}

.card h3 {
  margin-bottom: 0.6rem;
}

.card p {
  font-size: 0.98rem;
}

/* Glass variant for cards over imagery */
.card-glass {
  background: var(--surface-glass);
  border: 1px solid var(--border-hairline-strong);
  backdrop-filter: var(--blur-glass);
  -webkit-backdrop-filter: var(--blur-glass);
  border-radius: var(--radius-md);
}

/* --------------------------------------------------------------------------
   8. Media placeholders (used until real photography is supplied)
   -------------------------------------------------------------------------- */
.media-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-hairline);
  box-shadow: var(--shadow-lg);
  background: var(--bg-elevated);
}

.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --------------------------------------------------------------------------
   9. Stats
   -------------------------------------------------------------------------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  text-align: center;
}

.stat-item .stat-number {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-item .stat-label {
  color: var(--text-tertiary);
  font-size: 0.92rem;
  margin-top: 0.4rem;
}

/* --------------------------------------------------------------------------
   10. Testimonials
   -------------------------------------------------------------------------- */
.testimonial-card {
  padding: var(--space-lg);
}

.testimonial-quote {
  font-size: 1.2rem;
  color: var(--text-primary);
  font-weight: 400;
  line-height: 1.5;
  margin-bottom: var(--space-md);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent-gradient);
  flex-shrink: 0;
}

.author-name {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.95rem;
}

.author-role {
  color: var(--text-tertiary);
  font-size: 0.85rem;
}

/* --------------------------------------------------------------------------
   11. Forms
   -------------------------------------------------------------------------- */
.form-group {
  margin-bottom: var(--space-md);
  text-align: left;
}

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.form-control {
  width: 100%;
  padding: 0.9rem 1.1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-hairline-strong);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 1rem;
  transition: border-color var(--duration-fast) var(--ease-smooth),
    box-shadow var(--duration-fast) var(--ease-smooth);
}

.form-control::placeholder {
  color: var(--text-tertiary);
}

.form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-glow);
  outline: none;
}

textarea.form-control {
  resize: vertical;
  min-height: 140px;
}

.form-note {
  font-size: 0.82rem;
  color: var(--text-tertiary);
  margin-top: 0.5rem;
}

/* Contact form spam trap — kept off-screen rather than display:none,
   which some bots skip */
.form-trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  margin-top: var(--space-sm);
  font-size: 0.92rem;
  display: none;
}

.form-status.is-visible {
  display: block;
}

.form-status.success {
  color: #6fe3a3;
}

.form-status.error {
  color: #ff8383;
}

/* --------------------------------------------------------------------------
   12. Pricing cards
   -------------------------------------------------------------------------- */
.pricing-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.pricing-card.featured {
  border-color: var(--border-hairline-strong);
  background: linear-gradient(180deg, var(--bg-elevated-2) 0%, var(--bg-secondary) 100%);
  position: relative;
}

.pricing-card.featured::before {
  content: "Most Popular";
  position: absolute;
  top: -13px;
  left: var(--space-lg);
  background: var(--accent-gradient);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
}

.pricing-name {
  font-size: 1.1rem;
  font-weight: 600;
}

.pricing-price {
  font-size: 2.6rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.pricing-price span {
  font-size: 1rem;
  color: var(--text-tertiary);
  font-weight: 500;
}

.pricing-features {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  color: var(--text-secondary);
  font-size: 0.94rem;
}

.pricing-features li::before {
  content: "";
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--surface-glass-strong);
  border: 1px solid var(--border-hairline-strong);
  background-image: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M9 16.2l-3.5-3.5L4 14.2l5 5 11-11-1.5-1.5z'/></svg>") center/60% no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M9 16.2l-3.5-3.5L4 14.2l5 5 11-11-1.5-1.5z'/></svg>") center/60% no-repeat;
}

/* --------------------------------------------------------------------------
   13. FAQ (accordion)
   -------------------------------------------------------------------------- */
.faq-item {
  border-bottom: 1px solid var(--border-hairline);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-md) 0;
  text-align: left;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
}

.faq-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  position: relative;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform var(--duration-base) var(--ease-apple);
}

.faq-icon::before {
  width: 100%;
  height: 2px;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}

.faq-icon::after {
  width: 2px;
  height: 100%;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
}

.faq-item.open .faq-icon::after {
  transform: translateX(-50%) rotate(90deg);
  opacity: 0;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--duration-base) var(--ease-apple);
}

.faq-answer p {
  padding-bottom: var(--space-md);
  font-size: 0.98rem;
}

/* --------------------------------------------------------------------------
   14. Timeline (About page)
   -------------------------------------------------------------------------- */
.timeline {
  position: relative;
  padding-left: var(--space-lg);
  border-left: 1px solid var(--border-hairline);
}

.timeline-item {
  position: relative;
  padding-bottom: var(--space-xl);
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: calc(var(--space-lg) * -1 - 5px);
  top: 4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-gradient);
  box-shadow: 0 0 0 4px var(--bg-primary), 0 0 14px var(--accent-glow);
}

.timeline-year {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

/* --------------------------------------------------------------------------
   15. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-hairline);
  padding-block: var(--space-xl) var(--space-lg);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: var(--space-lg);
  padding-bottom: var(--space-xl);
}

.footer-brand .logo {
  margin-bottom: var(--space-sm);
}

.footer-brand p {
  max-width: 320px;
  font-size: 0.94rem;
}

.footer-heading {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: var(--space-sm);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.94rem;
  transition: color var(--duration-fast) var(--ease-smooth);
}

.footer-links a:hover {
  color: var(--text-primary);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border-hairline);
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.footer-copyright {
  color: var(--text-tertiary);
  font-size: 0.86rem;
}

.social-icons {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.social-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border-hairline-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--duration-fast) var(--ease-smooth),
    transform var(--duration-fast) var(--ease-smooth),
    border-color var(--duration-fast) var(--ease-smooth);
}

.social-icon svg {
  width: 16px;
  height: 16px;
  stroke: var(--text-secondary);
  transition: stroke var(--duration-fast) var(--ease-smooth);
}

.social-icon:hover {
  background: var(--surface-glass-strong);
  border-color: var(--border-hairline-strong);
  transform: translateY(-3px);
}

.social-icon:hover svg {
  stroke: var(--text-primary);
}

/* --------------------------------------------------------------------------
   16. Logo
   -------------------------------------------------------------------------- */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.logo img {
  height: 30px;
  width: auto;
}

/* --------------------------------------------------------------------------
   17. Page hero (secondary pages)
   -------------------------------------------------------------------------- */
.page-hero {
  padding-block: var(--space-2xl) var(--space-xl);
  position: relative;
  overflow: hidden;
}

.page-hero .eyebrow {
  display: block;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: var(--text-tertiary);
  margin-bottom: var(--space-md);
}

.breadcrumb a {
  color: var(--text-tertiary);
  transition: color var(--duration-fast) var(--ease-smooth);
}

.breadcrumb a:hover {
  color: var(--text-primary);
}

/* --------------------------------------------------------------------------
   18. Utility classes
   -------------------------------------------------------------------------- */
.flex {
  display: flex;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.gap-sm {
  gap: var(--space-sm);
}

.gap-md {
  gap: var(--space-md);
}

.mt-lg {
  margin-top: var(--space-lg);
}

.mt-xl {
  margin-top: var(--space-xl);
}

.mb-lg {
  margin-bottom: var(--space-lg);
}

.tag {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  border-radius: var(--radius-full);
  background: var(--surface-glass);
  border: 1px solid var(--border-hairline);
  color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   19. Track player (artist pages — placeholder embed until real audio
   files or streaming embeds are supplied)
   -------------------------------------------------------------------------- */
.track-player {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
}

.track-play-btn {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--duration-fast) var(--ease-smooth);
}

.track-play-btn:hover {
  transform: scale(1.08);
}

.track-play-btn svg {
  width: 18px;
  height: 18px;
  fill: #fff;
}

.track-info {
  flex-grow: 1;
  min-width: 0;
}

.track-title {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 1rem;
}

.track-meta {
  color: var(--text-tertiary);
  font-size: 0.85rem;
  margin-top: 0.1rem;
}

.track-waveform {
  flex-shrink: 0;
  width: 140px;
}

/* --------------------------------------------------------------------------
   20. Gallery grid (artist pages)
   -------------------------------------------------------------------------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-sm);
}

.gallery-grid .img-zoom {
  border-radius: var(--radius-md);
  border: 1px solid var(--border-hairline);
  aspect-ratio: 1;
}

/* --------------------------------------------------------------------------
   21. Streaming platform toggle (Spotify / Apple Music embed switcher)
   -------------------------------------------------------------------------- */
.embed-toggle {
  position: relative;
  display: inline-flex;
  padding: 0.3rem;
  background: var(--surface-glass);
  border: 1px solid var(--border-hairline-strong);
  border-radius: var(--radius-full);
  backdrop-filter: var(--blur-glass);
  -webkit-backdrop-filter: var(--blur-glass);
}

.embed-toggle-btn {
  position: relative;
  z-index: 1;
  width: 150px;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  color: var(--text-secondary);
  transition: color var(--duration-fast) var(--ease-smooth);
}

.embed-toggle-btn.active {
  color: var(--text-inverse);
}

.embed-toggle-indicator {
  position: absolute;
  top: 0.3rem;
  left: 0.3rem;
  width: 150px;
  height: calc(100% - 0.6rem);
  background: var(--text-primary);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
  transition: transform var(--duration-base) var(--ease-apple);
  z-index: 0;
}

.embed-toggle.is-apple-music .embed-toggle-indicator {
  transform: translateX(150px);
}

.embed-panels {
  max-width: 660px;
  margin-inline: auto;
}

.embed-panel {
  display: none;
}

.embed-panel.is-active {
  display: block;
  animation: fadeIn 0.5s var(--ease-apple) both;
}

/* Click-to-load placeholder shown until the visitor chooses to load the players */
.embed-consent {
  max-width: 560px;
  margin: 0 auto;
  padding: var(--space-lg);
  text-align: center;
  border: 1px dashed var(--border-hairline-strong);
  border-radius: var(--radius-md);
  background: var(--surface-glass);
}

.embed-consent-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto var(--space-sm);
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--surface-glass-strong);
  color: var(--text-primary);
}

.embed-consent-icon svg {
  width: 26px;
  height: 26px;
  stroke: currentColor;
}

.embed-consent .heading-sm {
  margin-bottom: 0.5rem;
}

.embed-consent p {
  margin: 0 auto var(--space-md);
  max-width: 440px;
  font-size: 0.95rem;
}

.embed-consent .embed-consent-note {
  margin: var(--space-sm) auto 0;
  font-size: 0.82rem;
  color: var(--text-tertiary);
}

.embed-consent-note a {
  color: var(--text-secondary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

[data-embed-consent]:not(.is-loaded) .embed-panel {
  display: none !important;
}

[data-embed-consent].is-loaded .embed-consent {
  display: none;
}

/* --------------------------------------------------------------------------
   Legal pages (privacy.html)
   -------------------------------------------------------------------------- */
.legal-updated {
  margin-top: var(--space-sm);
  font-size: 0.88rem;
  color: var(--text-tertiary);
}

.legal h2 {
  font-size: 1.45rem;
  letter-spacing: -0.01em;
  margin: var(--space-xl) 0 var(--space-sm);
  scroll-margin-top: calc(var(--nav-height) + 1rem);
}

.legal p,
.legal li {
  color: var(--text-secondary);
  line-height: 1.7;
}

.legal p + p {
  margin-top: var(--space-sm);
}

.legal ul {
  margin: var(--space-sm) 0;
  padding-left: 1.3rem;
  list-style: disc;
}

.legal li + li {
  margin-top: 0.45rem;
}

.legal strong {
  color: var(--text-primary);
}

.legal a {
  color: var(--text-primary);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
}

.legal code {
  font-size: 0.88em;
  padding: 0.1em 0.4em;
  border-radius: 6px;
  background: var(--surface-glass-strong);
  color: var(--text-primary);
}

.legal-summary {
  padding: var(--space-md) var(--space-lg);
  border: 1px solid var(--border-hairline-strong);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, var(--bg-elevated) 0%, var(--bg-secondary) 100%);
}

.legal-summary h2 {
  margin-top: 0;
}

.legal-table-wrap {
  overflow-x: auto;
  margin: var(--space-sm) 0;
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
}

.legal-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.legal-table th {
  text-align: left;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  padding: 0.8rem 1rem;
  background: var(--surface-glass);
  border-bottom: 1px solid var(--border-hairline);
}

.legal-table td {
  padding: 0.9rem 1rem;
  vertical-align: top;
  color: var(--text-secondary);
  line-height: 1.6;
  border-bottom: 1px solid var(--border-hairline);
}

.legal-table tr:last-child td {
  border-bottom: none;
}

.footer-copyright a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-copyright a:hover {
  color: var(--text-primary);
}

.form-note a {
  color: var(--text-secondary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* --------------------------------------------------------------------------
   22. Before / after (A/B) player (homepage, js/ab-player.js)
   -------------------------------------------------------------------------- */
.ab-section {
  padding-top: var(--space-xl);
}

.ab-intro {
  max-width: 640px;
  margin-bottom: var(--space-lg);
}

.ab-intro p {
  margin-top: var(--space-sm);
  color: var(--text-secondary);
}

.ab-player {
  --ab-played: #f5f5f7;
  --ab-rest: rgba(255, 255, 255, 0.2);
  border: 1px solid var(--border-hairline-strong);
  border-radius: 12px;
  background: var(--bg-elevated);
  padding: 1.25rem 1.5rem 1rem;
}

.ab-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.ab-art {
  width: 64px;
  height: 64px;
  border-radius: 6px;
  object-fit: cover;
  flex: none;
}

.ab-track {
  display: grid;
  gap: 0.1rem;
  margin-right: auto;
  min-width: 0;
}

.ab-artist {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.ab-title {
  font-size: 1.15rem;
  font-weight: 600;
}

/* Original ◯— Mastered */
.ab-switch-wrap {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.ab-label {
  background: none;
  border: 0;
  padding: 0.25rem 0;
  font: inherit;
  font-size: 0.95rem;
  color: var(--text-tertiary);
  cursor: pointer;
  transition: color 0.15s ease;
}

.ab-label.is-active {
  color: var(--text-primary);
  font-weight: 600;
}

.ab-switch {
  position: relative;
  width: 52px;
  height: 30px;
  flex: none;
  border-radius: 999px;
  border: 1px solid var(--border-hairline-strong);
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: background 0.2s ease;
}

.ab-switch[aria-checked="true"] {
  background: #f5f5f7;
}

.ab-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #f5f5f7;
  transition: transform 0.2s var(--ease-apple), background 0.2s ease;
}

.ab-switch[aria-checked="true"] .ab-knob {
  transform: translateX(22px);
  background: var(--bg-primary);
}

.ab-switch:focus-visible,
.ab-play:focus-visible,
.ab-seek:focus-visible {
  outline: 2px solid #f5f5f7;
  outline-offset: 3px;
}

.ab-body {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.25rem;
}

.ab-play {
  position: relative;
  width: 52px;
  height: 52px;
  flex: none;
  border-radius: 50%;
  border: 0;
  background: #f5f5f7;
  color: var(--bg-primary);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.ab-play svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.ab-icon-pause,
.ab-spinner,
.ab-player.is-playing .ab-icon-play,
.ab-player.is-loading .ab-icon-play {
  display: none;
}

.ab-player.is-playing .ab-icon-pause {
  display: block;
}

.ab-player.is-loading .ab-spinner {
  display: block;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid currentColor;
  border-right-color: transparent;
  animation: ab-spin 0.8s linear infinite;
}

@keyframes ab-spin {
  to { transform: rotate(360deg); }
}

.ab-wave {
  position: relative;
  flex: 1;
  min-width: 0;
  height: 64px;
}

.ab-wave canvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* The seek slider sits invisibly over the waveform: click or drag anywhere on it. */
.ab-seek {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.ab-time {
  flex: none;
  min-width: 5.5em;
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.ab-status:empty {
  display: none;
}

.ab-status {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.ab-noscript {
  margin-top: 1rem;
  display: grid;
  gap: 0.4rem;
}

.ab-noscript audio {
  width: 100%;
}

.ab-credit {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-tertiary);
}

.ab-credit a {
  color: var(--text-secondary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 600px) {
  .ab-player {
    padding: 1rem;
  }

  .ab-switch-wrap {
    width: 100%;
    justify-content: center;
    margin-top: 0.25rem;
  }

  .ab-body {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .ab-wave {
    flex-basis: calc(100% - 52px - 0.75rem);
    height: 52px;
  }

  .ab-time {
    width: 100%;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ab-knob,
  .ab-switch {
    transition: none;
  }
}

.ab-tip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.9rem;
  font-size: 0.85rem;
  color: var(--text-tertiary);
}

.ab-tip svg {
  width: 16px;
  height: 16px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* --------------------------------------------------------------------------
   23. Privacy policy: contents list and jump links
   -------------------------------------------------------------------------- */
.legal-toc {
  margin-top: var(--space-lg);
  padding: var(--space-md) var(--space-lg);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  scroll-margin-top: calc(var(--nav-height) + 1rem);
}

.legal-toc h2 {
  margin: 0 0 var(--space-sm);
  font-size: 1.1rem;
}

.legal .legal-toc ol {
  margin: 0;
  padding-left: 1.4rem;
  columns: 2;
  column-gap: var(--space-lg);
}

.legal .legal-toc ol > li {
  break-inside: avoid;
  margin: 0 0 0.3rem;
}

.legal .legal-toc ul {
  margin: 0.3rem 0 0.4rem;
  padding-left: 1rem;
  list-style: none;
}

.legal .legal-toc ul li {
  margin: 0 0 0.15rem;
  font-size: 0.92rem;
}

.legal .legal-toc ul li::before {
  content: "– ";
  color: var(--text-tertiary);
}

.legal .legal-toc a {
  text-decoration: none;
}

.legal .legal-toc a:hover {
  text-decoration: underline;
}

.legal-back {
  margin-top: var(--space-md);
  font-size: 0.88rem;
}

.legal .legal-back a {
  color: var(--text-tertiary);
  text-decoration: none;
}

.legal .legal-back a:hover {
  color: var(--text-secondary);
}

/* Rows of the "What we collect" table can be linked to; the one you jump to is highlighted briefly. */
.legal-table tr[id] {
  scroll-margin-top: calc(var(--nav-height) + 1.5rem);
}

.legal-table tr:target td {
  animation: legal-flash 2.4s ease-out;
}

@keyframes legal-flash {
  0%, 30% { background: rgba(255, 255, 255, 0.08); }
  100% { background: transparent; }
}

@media (max-width: 640px) {
  .legal .legal-toc ol {
    columns: 1;
  }

  .legal-toc {
    padding: var(--space-sm) var(--space-md);
  }
}

@media (prefers-reduced-motion: reduce) {
  .legal-table tr:target td {
    animation: none;
    background: rgba(255, 255, 255, 0.06);
  }
}

/* --------------------------------------------------------------------------
   A/B player: "mastering is on" glow. When the switch is on Mastered, the
   track's colours (--ab-glow-1 / --ab-glow-2, set on the player from the
   artwork) glow in from the corners and slowly breathe; the waveform, switch
   and label pick up the colour too.
   -------------------------------------------------------------------------- */
.ab-player {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: border-color 0.6s ease, box-shadow 0.6s ease;
}

.ab-player > :not(.ab-glow) {
  position: relative;
  z-index: 1;
}

.ab-glow {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.9s ease;
}

.ab-glow::before,
.ab-glow::after {
  content: "";
  position: absolute;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
}

.ab-glow::before {
  top: -260px;
  left: -180px;
  background: var(--ab-glow-1, var(--accent));
}

.ab-glow::after {
  bottom: -280px;
  right: -160px;
  background: var(--ab-glow-2, var(--accent-2));
}

.ab-player[data-version="master"] {
  --ab-played: var(--ab-glow-1, #f5f5f7);
  border-color: color-mix(in srgb, var(--ab-glow-1, #fff) 35%, transparent);
  box-shadow: 0 0 60px -20px color-mix(in srgb, var(--ab-glow-1, #fff) 45%, transparent);
}

.ab-player[data-version="master"] .ab-glow {
  opacity: 1;
}

.ab-player[data-version="master"] .ab-glow::before {
  animation: ab-breathe 7s ease-in-out infinite;
}

.ab-player[data-version="master"] .ab-glow::after {
  animation: ab-breathe 7s ease-in-out infinite 3.5s;
}

@keyframes ab-breathe {
  0%, 100% { opacity: 0.38; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.12); }
}

.ab-player[data-version="master"] .ab-switch[aria-checked="true"] {
  background: var(--ab-glow-1, #f5f5f7);
  border-color: transparent;
}

.ab-player[data-version="master"] .ab-label.is-active {
  color: var(--ab-glow-1, var(--text-primary));
}

@media (prefers-reduced-motion: reduce) {
  .ab-glow {
    transition: none;
  }

  .ab-player[data-version="master"] .ab-glow::before,
  .ab-player[data-version="master"] .ab-glow::after {
    animation: none;
  }
}
