/* ==========================================================
   Harmony Music stylesheet
   1. Variables  2. Base  3. Nav  4. Stage  5. Hero  6. Features  7. Listen  8. Pricing  9. Process  10. Footer  11. Hall scene  12. Book
   ========================================================== */

/* ==========================================================
   1. VARIABLES: colors, fonts, sizes, spacing
   ========================================================== */

:root {
  /* ---------- Colors ---------- */
  --color-bg:            #0b0405;   /* page background, near black with a maroon tint */
  --color-bg-raised:     #150709;   /* cards, panels */
  --color-bg-glass:      rgba(28, 12, 14, 0.55);
  --color-border:        rgba(245, 233, 228, 0.12);
  --color-border-strong: rgba(245, 233, 228, 0.24);

  --color-primary:       #79212a;   /* main brand color */
  --color-primary-hover: #8e2a34;
  --color-primary-light: #c25a66;   /* lighter tint for text on dark backgrounds */
  --color-primary-soft:  #e3a1a8;

  --color-maroon:        #600008;   /* logo dark */
  --color-crimson:       #9b1c2e;   /* logo mid */
  --color-rose:          #d04a5e;   /* logo light */
  --color-rose-soft:     #e88c98;
  --color-cream:         #f5e9e4;   /* main text */

  --color-text:          var(--color-cream);
  --color-text-muted:    rgba(245, 233, 228, 0.66);
  --color-text-faint:    rgba(245, 233, 228, 0.42);
  --color-accent:        var(--color-primary);
  --color-accent-hover:  var(--color-primary-hover);
  --color-on-accent:     #ffffff;

  /* spotlight glow at the top of the hero */
  --glow-spot:   rgba(245, 233, 228, 0.16);
  --glow-rose:   rgba(121, 33, 42, 0.45);
  --shade-text:  rgba(11, 4, 5, 0.7);   /* dark pool behind the hero text */

  --title-shadow:    0 4px 40px rgba(0, 0, 0, 0.6);   /* soft shadow behind the hero headline */
  --nav-scrolled-bg: rgba(16, 6, 8, 0.82);          /* nav pill once you scroll */
  --menu-bg:         rgb(16, 6, 8);                 /* mobile menu (solid so the page doesn't show through) */
  --deck-shadow:     0 40px 80px rgba(0, 0, 0, 0.6);   /* turntable shadow */
  --features-bg:     #f5eee6;   /* light background the "What you get" section fades to */
  --footer-bg:       #0f0607;   /* footer background */
  --hall-height:     100svh;    /* height of the hall scene above the footer */
  --mini-deck-w:     clamp(250px, 27vw, 390px);   /* turntable in front of the hall scene */

  /* light pricing panel */
  --panel-bg:      #fbf7f2;
  --card-bg:       #f3ece3;
  --card-text:     #2b1215;
  --card-muted:    rgba(43, 18, 21, 0.66);
  --card-border:   rgba(121, 33, 42, 0.12);

  /* sound waves over the hall photos in the pricing cards */
  --hall-wave:     rgba(255, 255, 255, 0.16);
  --hall-glow:     rgba(255, 255, 255, 0.06);
  --pricing-bg:        var(--panel-bg);            /* light background of the whole pricing section */
  --waveform:          rgba(121, 33, 42, 0.12);    /* live audio waveform behind the pricing cards */
  --waveform-height:   44%;                         /* height of the waveform band */
  --pulse-time:    0.9s;      /* time between sound pulses in the hall photos */

  /* ---------- Font families ---------- */
  --font-display: "Fraunces", "Cooper Black", Georgia, serif;
  --font-display-settings: "SOFT" 100, "opsz" 144;   /* soft, chunky serifs like the ad */
  --font-body:    "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-script:  "Caveat", "Segoe Print", "Bradley Hand", cursive;   /* handwritten notes */

  /* ---------- Font weights ---------- */
  --weight-regular: 400;
  --weight-medium:  500;
  --weight-bold:    700;
  --weight-black:   800;
  --weight-display: 500;   /* weight of the Fraunces headings, lower = lighter */
  --weight-brand:   700;   /* the HARMONY MUSIC name in the nav */
  --weight-hero:    500;   /* weight of the big hero heading */

  /* ---------- Fluid type scale (min at 360px, max at 1440px) ---------- */
  --text-2xs:  clamp(0.6875rem, 0.66rem + 0.12vw, 0.75rem);   /* 11 to 12 */
  --text-xs:   clamp(0.75rem, 0.72rem + 0.14vw, 0.8125rem);   /* 12 to 13 */
  --text-sm:   clamp(0.875rem, 0.85rem + 0.12vw, 0.9375rem);  /* 14 to 15 */
  --text-base: clamp(1rem, 0.96rem + 0.19vw, 1.125rem);       /* 16 to 18 */
  --text-lg:   clamp(1.125rem, 1.06rem + 0.3vw, 1.3125rem);   /* 18 to 21 */
  --text-xl:   clamp(1.375rem, 1.24rem + 0.6vw, 1.75rem);     /* 22 to 28 */
  --text-2xl:  clamp(1.75rem, 1.5rem + 1.1vw, 2.5rem);        /* 28 to 40 */
  --text-3xl:  clamp(2.25rem, 1.8rem + 2vw, 3.5rem);          /* 36 to 56 */
  --text-hero: clamp(3rem, 1.8rem + 4.8vw, 6.5rem);            /* 48 to 104 */
  --text-hall: clamp(2.5rem, 1.6rem + 3.6vw, 5rem);            /* 40 to 80, heading over the hall photo */

  --leading-tight:  0.95;
  --leading-snug:   1.25;
  --leading-normal: 1.55;

  --tracking-tight: -0.02em;
  --tracking-wide:  0.08em;
  --tracking-wider: 0.16em;

  /* ---------- Spacing scale ---------- */
  --space-3xs: 0.25rem;  /* 4  */
  --space-2xs: 0.5rem;   /* 8  */
  --space-xs:  0.75rem;  /* 12 */
  --space-sm:  1rem;     /* 16 */
  --space-md:  1.5rem;   /* 24 */
  --space-lg:  2rem;     /* 32 */
  --space-xl:  3rem;     /* 48 */
  --space-2xl: 4rem;     /* 64 */
  --space-3xl: 6rem;     /* 96 */

  /* fluid section padding */
  --space-section: clamp(4rem, 2.5rem + 6vw, 8rem);

  /* ---------- Layout ---------- */
  --container-max:    1240px;
  --container-narrow: 760px;
  --gutter:           clamp(1rem, 0.6rem + 2vw, 2.5rem);
  --nav-height:       64px;
  --hotspot-size:     14px;
  --deck-max:         600px;   /* max width of the turntable */
  --pricing-max:      980px;   /* width of the light pricing panel */
  --node-size:        200px;   /* rings around each step number */
  --orb-size:         84px;    /* the little record with the step number */
  --vinyl-spin:       1.8s;    /* one turn of the step records */
  --wave-scale:       2.3;     /* how far the sound waves ripple out */
  --step-gap:         var(--space-lg);   /* space between the steps */
  --hero-content-max: 720px;   /* width of the hero text column */
  --hero-speaker-room: 48svh;  /* space left under the text for the speaker on portrait screens */
  --features-scroll:   300vh;  /* how long the features section stays pinned while scrolling */
  --feature-card-w:    250px;  /* width of each feature text block */
  --feature-spread:    clamp(560px, 54vw, 820px);  /* gap between the left and right text blocks */
  --feature-line-gap:  14px;   /* space between a text block and its line */

  /* ---------- Radii ---------- */
  --radius-sm:   8px;
  --radius-md:   14px;
  --radius-lg:   24px;
  --radius-xl:   36px;
  --radius-pill: 999px;

  /* ---------- Shadows ---------- */
  --shadow-soft:  0 10px 30px rgba(0, 0, 0, 0.35);
  --shadow-glow:  0 0 0 1px var(--color-border), 0 12px 40px rgba(0, 0, 0, 0.5);
  --shadow-rose:  0 10px 30px rgba(121, 33, 42, 0.55);

  /* ---------- Motion ---------- */
  --ease-out:      cubic-bezier(0.22, 1, 0.36, 1);
  --duration-fast: 160ms;
  --duration-base: 280ms;
  --duration-slow: 700ms;

  /* ---------- Layers ---------- */
  --z-canvas: 0;
  --z-content: 2;
  --z-grain: 40;
  --z-nav: 50;
  --z-menu: 60;
}

/* ==========================================================
   2. BASE: reset, typography, buttons
   ========================================================== */

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

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

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }

h1, h2, h3, p { margin: 0; }

ul { margin: 0; padding: 0; list-style: none; }

:focus-visible {
  outline: 2px solid var(--color-primary-light);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* fine film grain over the whole page */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: var(--z-grain);
  pointer-events: none;
  opacity: 0.06;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%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");
}

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

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Buttons ---------- */

/* Pill button with a round icon on the left */
.btn-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-3xs) var(--space-md) var(--space-3xs) var(--space-3xs);
  min-height: 48px;
  border-radius: var(--radius-pill);
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  transition: transform var(--duration-fast) var(--ease-out),
              background-color var(--duration-base) var(--ease-out),
              box-shadow var(--duration-base) var(--ease-out);
}

.btn-pill:hover { transform: translateY(-2px); }

.btn-pill__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
}

.btn-pill__icon svg { width: 18px; height: 18px; }

.btn-pill--primary {
  background: var(--color-accent);
  color: var(--color-on-accent);
  box-shadow: var(--shadow-rose);
}
.btn-pill--primary:hover { background: var(--color-accent-hover); }
.btn-pill--primary .btn-pill__icon { background: var(--color-cream); color: var(--color-primary); }

.btn-pill--ghost {
  border: 1px solid var(--color-border-strong);
  background: var(--color-bg-glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.btn-pill--ghost:hover { border-color: var(--color-primary-light); }
.btn-pill--ghost .btn-pill__icon { background: var(--color-primary); color: var(--color-cream); }

/* Bracket button: corner marks instead of a border */
.btn-bracket {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2xs);
  min-height: 48px;
  padding: var(--space-xs) var(--space-lg);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-text);
  transition: color var(--duration-base) var(--ease-out);
}

/* a pill outline masked so only the four rounded corners show */
.btn-bracket::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border: 1px solid var(--color-text-muted);
  border-radius: var(--radius-pill);
  transition: inset var(--duration-base) var(--ease-out), border-color var(--duration-base) var(--ease-out);
  --mx: 26px;   /* how far each corner reaches along the top and bottom */
  --my: 16px;   /* how far each corner reaches down the sides */
  -webkit-mask:
    linear-gradient(to right, #000 var(--mx), transparent var(--mx) calc(100% - var(--mx)), #000 calc(100% - var(--mx))),
    linear-gradient(to bottom, #000 var(--my), transparent var(--my) calc(100% - var(--my)), #000 calc(100% - var(--my)));
  -webkit-mask-composite: source-in;
  mask:
    linear-gradient(to right, #000 var(--mx), transparent var(--mx) calc(100% - var(--mx)), #000 calc(100% - var(--mx))),
    linear-gradient(to bottom, #000 var(--my), transparent var(--my) calc(100% - var(--my)), #000 calc(100% - var(--my)));
  mask-composite: intersect;
}

.btn-bracket:hover { color: var(--color-primary-soft); }
.btn-bracket:hover::before { inset: -4px; border-color: var(--color-primary-light); }

/* Small label with a dot, used above headings */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2xs);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-primary-light);
  box-shadow: 0 0 10px var(--color-primary);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ==========================================================
   3. NAV: floating pill
   ========================================================== */

.nav {
  position: fixed;
  inset: var(--space-sm) 0 auto 0;
  z-index: var(--z-nav);
  display: flex;
  justify-content: center;
  padding-inline: var(--gutter);
  pointer-events: none;
}

.nav__pill {
  pointer-events: auto;
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-md);
  height: var(--nav-height);
  padding: var(--space-2xs) var(--space-2xs) var(--space-2xs) var(--space-md);
  border-radius: var(--radius-pill);
  background: var(--color-bg-glass);
  border: 1px solid var(--color-border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), var(--shadow-soft);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  transition: background-color var(--duration-base) var(--ease-out);
}

.nav.is-scrolled .nav__pill { background: var(--nav-scrolled-bg); }

/* slides away when scrolling down, comes back when scrolling up */
.nav { transition: transform var(--duration-slow) var(--ease-out); }
.nav.is-hidden { transform: translateY(calc(-100% - var(--space-sm) - 8px)); }

.nav__brand {
  display: flex;
  align-items: center;
  gap: var(--space-2xs);
  font-family: var(--font-display);
  font-variation-settings: var(--font-display-settings);
  font-size: var(--text-sm);
  font-weight: var(--weight-brand);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav__brand img { width: 34px; height: auto; }
.nav__brand b { color: var(--color-primary-light); font-weight: inherit; margin-left: 0.3em; }

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-3xs);
}

.nav__links a {
  display: block;
  padding: var(--space-2xs) var(--space-xs);
  border-radius: var(--radius-pill);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  transition: color var(--duration-fast), background-color var(--duration-fast);
}

.nav__links a:hover {
  color: var(--color-text);
  background: rgba(245, 233, 228, 0.06);
}

.nav__links-cta { display: none; }

.nav__call {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2xs);
  height: 100%;
  padding: 0 var(--space-sm) 0 var(--space-3xs);
  border-radius: var(--radius-pill);
  background: var(--color-accent);
  color: var(--color-on-accent);
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  white-space: nowrap;
  transition: background-color var(--duration-base) var(--ease-out);
}

.nav__call:hover { background: var(--color-accent-hover); }

.nav__call-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--color-cream);
  color: var(--color-primary);
}

.nav__call-icon svg { width: 16px; height: 16px; }

.nav__toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  position: relative;
}

.nav__toggle span {
  position: absolute;
  left: 50%;
  width: 16px;
  height: 1.5px;
  background: var(--color-text);
  transform: translateX(-50%);
  transition: transform var(--duration-base) var(--ease-out), top var(--duration-base) var(--ease-out);
}

.nav__toggle span:first-child { top: 18px; }
.nav__toggle span:last-child  { top: 24px; }

.nav__toggle[aria-expanded="true"] span:first-child { top: 21px; transform: translateX(-50%) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child  { top: 21px; transform: translateX(-50%) rotate(-45deg); }

/* ---------- Tablet and mobile ---------- */
@media (max-width: 900px) {
  .nav__pill {
    width: 100%;
    gap: var(--space-2xs);
    padding-left: var(--space-sm);
  }

  .nav__brand { margin-right: auto; }

  .nav__toggle { display: block; }

  .nav__links {
    position: absolute;
    top: calc(100% + var(--space-2xs));
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--space-2xs);
    border-radius: var(--radius-lg);
    background: var(--menu-bg);
    border: 1px solid var(--color-border);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: var(--shadow-soft);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity var(--duration-base) var(--ease-out),
                transform var(--duration-base) var(--ease-out),
                visibility var(--duration-base);
  }

  .nav__links.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav__links a {
    padding: var(--space-sm);
    border-radius: var(--radius-md);
    font-size: var(--text-base);
  }

  .nav__links-cta { display: block; }
  .nav__links-cta a { color: var(--color-primary-soft); }
}

@media (max-width: 520px) {
  .nav__call { padding-right: var(--space-3xs); }
  .nav__call-text { display: none; }
}

@media (max-width: 380px) {
  .nav__pill { padding-left: var(--space-xs); }
  .nav__brand { font-size: var(--text-xs); letter-spacing: 0.02em; gap: 6px; }
  .nav__brand img { width: 28px; }
  .nav__call-icon { width: 34px; height: 34px; }
  .nav__toggle { width: 40px; height: 40px; }
  .nav__toggle span:first-child { top: 16px; }
  .nav__toggle span:last-child  { top: 22px; }
  .nav__toggle[aria-expanded="true"] span:first-child,
  .nav__toggle[aria-expanded="true"] span:last-child { top: 19px; }
}

/* ==========================================================
   4. STAGE: holds the 3D speaker canvas. The canvas sticks to the
   screen while the hero and features scroll over it.
   ========================================================== */

.stage {
  position: relative;
  background: var(--color-bg);
  overflow: clip;   /* keeps the 3D speaker from peeking into the next section */
}

.stage__canvas {
  position: sticky;
  top: 0;
  display: block;
  width: 100%;
  height: 100vh;
  height: 100svh;
  z-index: var(--z-canvas);
  opacity: 0;
  transition: opacity 1.2s var(--ease-out);
}

.stage__canvas.is-ready { opacity: 1; }

/* the hero slides up over the canvas, so the canvas lets go at the end of the stage */
.stage__canvas + section {
  margin-top: -100vh;
  margin-top: -100svh;
}

.stage > section {
  position: relative;
  z-index: var(--z-content);
}

/* ==========================================================
   5. HERO
   ========================================================== */

.hero {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow: hidden;

  /* where the stage light and text shade sit (changed on mobile) */
  --spot-x: 70%;
  --shade-x: 22%;
  --shade-y: 50%;
}

/* stage light from above the speaker, dark pool behind the text */
.hero__spot {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 34% 40% at var(--shade-x) var(--shade-y), var(--shade-text), transparent 100%),
    radial-gradient(ellipse 22% 60% at var(--spot-x) -10%, var(--glow-spot), transparent 72%),
    radial-gradient(ellipse 40% 50% at var(--spot-x) 0%, var(--glow-rose), transparent 75%);
}


/* ---------- Content (left column) ---------- */

.hero__inner {
  position: relative;
  z-index: var(--z-content);
  flex: 1;
  display: flex;
  align-items: center;
  padding-top: calc(var(--nav-height) + var(--space-2xl));
  padding-bottom: var(--space-2xl);
}

.hero__content {
  max-width: var(--hero-content-max);
}

.hero__title {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: var(--weight-hero);
  font-variation-settings: var(--font-display-settings);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  text-shadow: var(--title-shadow);
}

.hero__line { display: block; }

.hero__title em {
  font-style: normal;
  color: var(--color-primary-light);
}

.hero__text {
  max-width: 46ch;
  margin-top: var(--space-lg);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--color-text-muted);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

/* ---------- Price tag next to the speaker ---------- */

.hero__tag {
  position: absolute;
  z-index: var(--z-content);
  left: 0;
  top: 0;
  display: flex;
  align-items: flex-start;
  gap: 2px;
  text-align: left;
  pointer-events: none;
  opacity: 0;
  /* JS sets --tag-x / --tag-y to the lower right corner of the speaker on screen */
  transform: translate(var(--tag-x, -999px), calc(var(--tag-y, -999px) - 70%));
  transition: opacity var(--duration-slow) var(--ease-out);
}

.hero__tag.is-visible { opacity: var(--tag-fade, 1); }   /* JS fades it out as you scroll */

.hero__tag-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-2xs);
}

.hero__tag-price {
  padding: var(--space-2xs) var(--space-sm);
  border-radius: var(--radius-pill);
  background: var(--color-bg-glass);
  border: 1px solid var(--color-border-strong);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--color-primary-soft);
  font-family: var(--font-display);
  font-variation-settings: var(--font-display-settings);
  font-size: var(--text-base);
  font-weight: var(--weight-display);
  box-shadow: var(--shadow-soft);
  transform: rotate(-3deg);
}

/* handwritten note, like the one on the ad */
.hero__tag-note {
  font-family: var(--font-script);
  font-size: var(--text-xl);
  font-weight: 700;
  line-height: 1.05;
  color: var(--color-text-muted);
  transform: rotate(-3deg);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.hero__tag-arrow {
  width: 56px;
  height: 46px;
  flex-shrink: 0;
  margin-top: 26px;
  color: var(--color-text-muted);
}

/* ---------- Entrance animation ---------- */

@keyframes hero-rise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}

.hero__line,
.hero__text,
.hero__actions {
  animation: hero-rise var(--duration-slow) var(--ease-out) both;
}

.hero__line:nth-child(1) { animation-delay: 180ms; }
.hero__line:nth-child(2) { animation-delay: 260ms; }
.hero__line:nth-child(3) { animation-delay: 340ms; }
.hero__text              { animation-delay: 460ms; }
.hero__actions           { animation-delay: 560ms; }

/* ---------- Portrait screens: text on top, speaker below ---------- */
/* matches the portrait switch in hero-scene.js (aspect below 0.85) */

@media (max-aspect-ratio: 17/20) {
  .hero {
    --spot-x: 50%;
    --shade-x: 50%;
    --shade-y: 30%;
  }

  .hero__inner {
    align-items: flex-start;
    padding-top: calc(var(--nav-height) + var(--space-xl));
    padding-bottom: var(--hero-speaker-room);
  }

  .hero__text { margin-top: var(--space-md); }
  .hero__actions { margin-top: var(--space-lg); }

  .hero__tag-note,
  .hero__tag-arrow { display: none; }
}

@media (max-width: 520px) {
  .hero__actions { gap: var(--space-xs); }
  .hero__actions .btn-pill { flex: 1 1 auto; justify-content: flex-start; }
}

/* ==========================================================
   6. FEATURES: speaker in the centre, 4 points around it
   ========================================================== */

.features {
  height: var(--features-scroll);

  /* light theme for this section (the background itself is faded in by speaker-scene.js) */
  --color-text:          #2b1215;
  --color-text-muted:    rgba(43, 18, 21, 0.7);
  --color-text-faint:    rgba(43, 18, 21, 0.45);
  --color-bg-glass:      rgba(255, 255, 255, 0.72);
  --color-border:        rgba(121, 33, 42, 0.14);
  --color-border-strong: rgba(121, 33, 42, 0.38);
  --color-primary-light: #79212a;
  --glow-spot:           rgba(255, 255, 255, 0.7);
  --glow-rose:           rgba(255, 255, 255, 0);
  --shadow-soft:         0 12px 30px rgba(121, 33, 42, 0.1);
  color: var(--color-text);
}

.features .features__title { color: var(--color-primary); }

.features .hotspot {
  background: var(--color-primary);
  color: var(--color-cream);
  box-shadow: 0 0 0 5px rgba(121, 33, 42, 0.2);
}

/* stays on screen while the section scrolls */
.features__pin {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}

.features__spot {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--duration-slow) var(--ease-out);
  background:
    radial-gradient(ellipse 20% 60% at 50% -10%, var(--glow-spot), transparent 72%),
    radial-gradient(ellipse 40% 50% at 50% 0%, var(--glow-rose), transparent 75%);
}

.features.is-active .features__spot { opacity: 1; }

.features__head {
  position: absolute;
  top: calc(var(--nav-height) + var(--space-xl));
  left: 0;
  right: 0;
  text-align: center;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--duration-slow) var(--ease-out), transform var(--duration-slow) var(--ease-out);
}

.features.is-active .features__head { opacity: 1; transform: none; }

.section-title,
.features__title {
  margin-top: var(--space-xs);
  font-family: var(--font-display);
  font-variation-settings: var(--font-display-settings);
  font-size: var(--text-3xl);
  font-weight: var(--weight-display);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
}

/* ---------- Leader lines and dots (positioned by speaker-scene.js) ---------- */

.features__lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
}

.features__line {
  fill: none;
  stroke: var(--color-border-strong);
  stroke-width: 1;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset var(--duration-slow) var(--ease-out);
}

.features__line.is-on { stroke-dashoffset: 0; }

.features__dots {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hotspot {
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: var(--hotspot-size);
  height: var(--hotspot-size);
  border-radius: 50%;
  background: var(--color-cream);
  color: var(--color-primary);
  font-size: 0;                      /* number only shows on portrait screens */
  font-weight: var(--weight-bold);
  box-shadow: 0 0 0 5px rgba(121, 33, 42, 0.55);
  transform: translate(calc(var(--x, -99px) - 50%), calc(var(--y, -99px) - 50%)) scale(0);
  transition: transform var(--duration-base) var(--ease-out);
}

.hotspot.is-on {
  transform: translate(calc(var(--x, -99px) - 50%), calc(var(--y, -99px) - 50%)) scale(1);
}

.hotspot::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1px solid var(--color-primary-light);
  animation: hotspot-ping 2s var(--ease-out) infinite;
}

@keyframes hotspot-ping {
  from { transform: scale(1); opacity: 0.8; }
  to   { transform: scale(2.4); opacity: 0; }
}

/* ---------- Cards ---------- */

.features__cards {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.feature {
  position: absolute;
  width: var(--feature-card-w);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity var(--duration-slow) var(--ease-out), transform var(--duration-slow) var(--ease-out);
  pointer-events: auto;
}

.feature.is-on { opacity: 1; transform: none; }

.feature--tl,
.feature--bl { right: calc(50% + var(--feature-spread) / 2); text-align: right; }

.feature--tr,
.feature--br { left: calc(50% + var(--feature-spread) / 2); }

.feature--tl,
.feature--tr { top: 32%; }

.feature--bl,
.feature--br { top: 62%; }

.feature__num {
  display: block;
  font-family: var(--font-display);
  font-variation-settings: var(--font-display-settings);
  font-size: var(--text-sm);
  font-weight: var(--weight-display);
  color: var(--color-primary-light);
}

.feature__title {
  margin-top: var(--space-3xs);
  font-family: var(--font-display);
  font-variation-settings: var(--font-display-settings);
  font-size: var(--text-xl);
  font-weight: var(--weight-display);
  line-height: var(--leading-snug);
}

.feature__text {
  margin-top: var(--space-2xs);
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
  color: var(--color-text-muted);
}

/* narrower screens: cards closer to the speaker */
@media (max-width: 1180px) {
  :root {
    --feature-card-w: 210px;
    --feature-spread: clamp(400px, 50vw, 560px);
  }
}

/* portrait screens: speaker on top, cards in a 2x2 grid below, numbered dots */
@media (max-aspect-ratio: 17/20) {
  .features__head { top: calc(var(--nav-height) + var(--space-lg)); }

  .features__lines { display: none; }

  .hotspot {
    font-size: var(--text-2xs);
    --hotspot-size: 20px;
  }

  .features__cards {
    inset: auto var(--gutter) var(--space-md);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xs);
  }

  .feature {
    position: static;
    width: auto;
    padding: var(--space-xs);
    text-align: left;
  }

  .feature__num { font-size: var(--text-2xs); }
  .feature__title { font-size: var(--text-sm); }
  .feature__text {
    font-size: var(--text-2xs);
    margin-top: var(--space-3xs);
  }
}

/* tablets in portrait: same 2x2 grid, but with room to breathe */
@media (max-aspect-ratio: 17/20) and (min-width: 600px) {
  .features__cards {
    left: 50%;
    right: auto;
    width: min(720px, calc(100% - 2 * var(--gutter)));
    transform: translateX(-50%);
    gap: var(--space-sm);
    bottom: var(--space-xl);
  }
  .feature { padding: var(--space-sm) var(--space-md); }
  .feature__num { font-size: var(--text-xs); }
  .feature__title { font-size: var(--text-lg); }
  .feature__text { font-size: var(--text-sm); margin-top: var(--space-2xs); }
}

/* phones held sideways (short, wide screens): compact cards so they don't stack on each other */
@media (min-aspect-ratio: 17/20) and (max-height: 540px) {
  .features { --feature-spread: clamp(200px, calc(100vw - 420px), 380px); }
  .features__head { top: calc(var(--nav-height) + var(--space-sm)); }
  .features__head .eyebrow { display: none; }
  .features__title { font-size: var(--text-xl); }
  .feature {
    width: 190px;
    padding: var(--space-2xs) var(--space-sm);
  }
  .feature__num { font-size: var(--text-2xs); }
  .feature__title { font-size: var(--text-sm); margin-top: 0; }
  .feature__text { display: none; }
  .feature--tl,
  .feature--tr { top: 42%; }
  .feature--bl,
  .feature--br { top: 68%; }

  .hero__inner { padding-top: calc(var(--nav-height) + var(--space-lg)); padding-bottom: var(--space-lg); }
  .hero__title { font-size: clamp(2rem, 11vh, 3.25rem); }
  .hero__text { font-size: var(--text-sm); }
}

/* ==========================================================
   7. LISTEN: turntable with samples
   ========================================================== */

.listen {
  position: relative;
  padding-block: var(--space-section);
  background: var(--color-bg);
}

.listen__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  grid-template-areas:
    "head   deck"
    "tracks deck";
  column-gap: var(--space-2xl);
  row-gap: var(--space-xl);
  align-items: center;
}

.listen__head   { grid-area: head; align-self: end; }
.tracks         { grid-area: tracks; align-self: start; }
.deck           { grid-area: deck; width: 100%; max-width: var(--deck-max); justify-self: center; }

.listen__lead {
  max-width: 42ch;
  margin-top: var(--space-md);
  color: var(--color-text-muted);
}

/* ---------- Track list ---------- */

.tracks {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--color-border);
}

.track {
  display: grid;
  grid-template-columns: 2.5rem 1fr auto;
  align-items: center;
  gap: var(--space-sm);
  width: 100%;
  padding: var(--space-sm) var(--space-xs);
  border-bottom: 1px solid var(--color-border);
  text-align: left;
  transition: background-color var(--duration-fast), color var(--duration-fast);
}

.track:hover { background: rgba(245, 233, 228, 0.04); }

.track__num {
  font-family: var(--font-display);
  font-variation-settings: var(--font-display-settings);
  font-weight: var(--weight-display);
  font-size: var(--text-sm);
  color: var(--color-text-faint);
}

.track__title {
  font-size: var(--text-base);
  font-weight: var(--weight-medium);
}

.track__time {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  font-variant-numeric: tabular-nums;
}

.track[aria-pressed="true"] .track__num,
.track[aria-pressed="true"] .track__title { color: var(--color-primary-soft); }

/* ---------- Turntable (the plinth is the box itself) ---------- */

.turntable {
  position: relative;
  width: 100%;
  aspect-ratio: 1.3 / 1;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(ellipse 80% 60% at 30% 0%, rgba(255, 255, 255, 0.06), transparent 70%),
    linear-gradient(150deg, #201c1e 0%, #121011 60%, #0c0a0b 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: var(--deck-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

/* platter: metal rim with strobe dots */
.turntable__platter {
  position: absolute;
  left: 6%;
  top: 7%;
  height: 86%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(from 20deg, #2b2a2d, #4c4b50, #2b2a2d, #3e3d42, #2b2a2d, #4c4b50, #2b2a2d);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.turntable__platter::before {
  content: "";
  position: absolute;
  inset: 1.2%;
  border-radius: 50%;
  background: repeating-conic-gradient(rgba(255, 255, 255, 0.28) 0 1.2deg, transparent 1.2deg 4deg);
  -webkit-mask: radial-gradient(circle, transparent 0 96%, #000 96.5%);
  mask: radial-gradient(circle, transparent 0 96%, #000 96.5%);
}

/* the record: fine grooves plus a few track gaps; rotated by JS */
.turntable__record {
  position: absolute;
  inset: 4.5%;
  border-radius: 50%;
  background:
    radial-gradient(circle, transparent 0 56%, rgba(255, 255, 255, 0.05) 56.4% 57.2%, transparent 57.6%),
    radial-gradient(circle, transparent 0 72%, rgba(255, 255, 255, 0.05) 72.4% 73.2%, transparent 73.6%),
    radial-gradient(circle, transparent 0 86%, rgba(255, 255, 255, 0.04) 86.4% 87.2%, transparent 87.6%),
    repeating-radial-gradient(circle, #0c0c0d 0 1.1px, #18181a 1.5px 2.3px);
  box-shadow: inset 0 0 0 3px #060606, 0 3px 8px rgba(0, 0, 0, 0.7);
}

.turntable__label {
  position: absolute;
  inset: 33%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #8e2a34, var(--color-primary) 60%, #5e1820);
  color: var(--color-cream);
  text-align: center;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.4);
  container-type: size;   /* text below is sized from the label, so it fits on big and small records */
}

/* like a real record: logo and name above the centre hole, side info below it */
.turntable__label img {
  width: 34%;
  height: auto;
  margin-top: 13cqw;
}

.turntable__label-name {
  font-family: var(--font-display);
  font-variation-settings: var(--font-display-settings);
  font-weight: var(--weight-display);
  margin-top: 2cqw;
  font-size: 7.5cqw;
  line-height: 1.1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.turntable__label-side {
  margin-top: 17cqw;   /* leaves room for the spindle in the middle */
  font-size: 6cqw;
  line-height: 1.2;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0.7;
}

/* light reflections stay still while the record turns */
.turntable__sheen {
  position: absolute;
  inset: 4.5%;
  border-radius: 50%;
  pointer-events: none;
  background: conic-gradient(from 35deg,
    transparent 0deg, rgba(255, 255, 255, 0.09) 25deg, transparent 55deg,
    transparent 180deg, rgba(255, 255, 255, 0.07) 205deg, transparent 235deg);
  -webkit-mask: radial-gradient(circle, transparent 0 33%, #000 34%);
  mask: radial-gradient(circle, transparent 0 33%, #000 34%);
}

.turntable__spindle {
  position: absolute;
  pointer-events: none;
  left: 50%;
  top: 50%;
  width: 3%;
  aspect-ratio: 1;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle at 35% 35%, #f2f2f2, #8a8a8e 60%, #3a3a3e);
}

/* ---------- Tonearm ---------- */

.turntable__arm-base {
  position: absolute;
  left: 86.15%;
  top: 14%;
  height: 17%;
  aspect-ratio: 1;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle at 40% 35%, #3a393d, #1c1b1e 70%);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.turntable__arm-rest {
  position: absolute;
  left: 81.2%;
  top: 82%;
  width: 3.4%;
  height: 7%;
  border-radius: 4px;
  background: linear-gradient(#2c2b2f, #161518);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.5);
}

.turntable__arm {
  position: absolute;
  left: 77.4%;
  top: 5.45%;
  width: 13.2%;
  height: 85.5%;
  overflow: visible;
  transform-origin: 66.67% 10%;
  transform: rotate(var(--arm-angle, -2deg));
  transition: transform 0.9s var(--ease-out);
  filter: drop-shadow(6px 10px 6px rgba(0, 0, 0, 0.55));
}

.turntable.is-tracking .turntable__arm { transition: transform 0.4s linear; }

.arm__tube {
  fill: none;
  stroke: #c9c9cd;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.arm__weight { fill: #3a393d; stroke: #55545a; stroke-width: 1; }
.arm__pivot  { fill: #d6d6da; stroke: #8a8a90; stroke-width: 2; }
.arm__head   { fill: #2a292d; stroke: #4a494e; stroke-width: 1; }
.arm__cart   { fill: var(--color-primary); }

/* ---------- Controls ---------- */

.turntable__power {
  position: absolute;
  left: 3%;
  bottom: 5%;
  width: 11%;
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8%;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 30%, #4a494e, #232226 70%);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  color: var(--color-cream);
  transition: transform var(--duration-fast) var(--ease-out);
  container-type: inline-size;   /* the label below is sized from the button, so it always fits */
}

.turntable__power:active { transform: scale(0.94); }

.turntable__power-text {
  font-size: 16cqw;
  font-weight: var(--weight-bold);
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.turntable__led {
  width: 14%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #3a1216;
  transition: background-color var(--duration-base), box-shadow var(--duration-base);
}

.turntable[data-state="on"] .turntable__led {
  background: #ff5468;
  box-shadow: 0 0 8px #ff5468, 0 0 16px rgba(255, 84, 104, 0.6);
}

/* handwritten "Press me!" under the start button, hides once it's on */
.turntable__hint {
  position: absolute;
  top: 100%;
  left: 12%;
  display: flex;
  align-items: flex-start;
  gap: 2px;
  margin-top: 2px;
  color: var(--color-text);
  pointer-events: none;
  transform: rotate(-4deg);
  transform-origin: left top;
  transition: opacity var(--duration-base) var(--ease-out);
}

.turntable[data-state="on"] .turntable__hint { opacity: 0; }

.turntable__hint-arrow {
  width: 54px;
  height: 44px;
  flex-shrink: 0;
  margin-top: -14px;
}

.turntable__hint-text {
  margin-top: 16px;
  font-family: var(--font-script);
  font-size: var(--text-2xl);
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.turntable__speed {
  position: absolute;
  left: 3%;
  top: 5%;
  display: flex;
  gap: 4px;
}

.turntable__speed span {
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  font-size: clamp(0.45rem, 1vw, 0.6rem);
  font-weight: var(--weight-bold);
  color: rgba(245, 233, 228, 0.45);
  background: rgba(255, 255, 255, 0.05);
}

.turntable__speed .is-active {
  color: var(--color-cream);
  background: var(--color-primary);
}

.turntable__volume {
  position: absolute;
  right: 2.5%;
  top: 36%;
  height: 46%;
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 6px;
  font-size: clamp(0.45rem, 1vw, 0.6rem);
  font-weight: var(--weight-bold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(245, 233, 228, 0.5);
}

.turntable__volume input {
  flex: 1;
  width: 18px;
  margin: 0;
  writing-mode: vertical-lr;
  direction: rtl;
  accent-color: var(--color-primary);
  cursor: pointer;
}

/* ---------- 3D version (turntable-3d.js adds .turntable--3d when WebGL works) ---------- */

/* while the 3D deck loads, keep its space but hide the flat one, so it doesn't flash first
   (has-3d is set in the page head; turntable--flat brings the flat deck back if 3D fails) */
.has-3d .turntable:not(.turntable--3d):not(.turntable--flat) {
  aspect-ratio: 1.45 / 1;
  background: none;
  border: 0;
  box-shadow: none;
}

.has-3d .turntable:not(.turntable--3d):not(.turntable--flat) > * { visibility: hidden; }
.has-3d .turntable:not(.turntable--flat) + .now-playing { margin-top: var(--space-xl); }

.turntable__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0;
  transition: opacity 0.6s var(--ease-out);
}

.turntable__canvas.is-ready { opacity: 1; }

.turntable--3d {
  aspect-ratio: 1.45 / 1;
  background: none;
  border: 0;
  box-shadow: none;
}

.turntable--3d .turntable__platter,
.turntable--3d .turntable__arm,
.turntable--3d .turntable__arm-base,
.turntable--3d .turntable__arm-rest,
.turntable--3d .turntable__speed { display: none; }

/* the real start button sits invisibly on top of the 3D one */
.turntable--3d .turntable__power {
  left: var(--btn-x, 10%);
  top: var(--btn-y, 85%);
  bottom: auto;
  width: var(--btn-size, 11%);
  height: var(--btn-size, auto);
  transform: translate(-50%, -50%);
  background: none;
  box-shadow: none;
}

.turntable--3d .turntable__power:active { transform: translate(-50%, -50%); }
.turntable--3d .turntable__power > * { opacity: 0; }
.turntable--3d .turntable__power:focus-visible {
  outline: 2px solid var(--color-primary-light);
  outline-offset: 2px;
}

/* the real volume slider sits invisibly on the 3D fader, loud end at the back */
.turntable--3d .turntable__volume {
  left: var(--vol-x, 92%);
  top: var(--vol-y, 60%);
  right: auto;
  width: 36px;
  height: var(--vol-len, 40%);
  transform: translate(-50%, -50%) rotate(var(--vol-rot, 0rad));
  border-radius: var(--radius-pill);
}

.turntable--3d .turntable__volume span { display: none; }
.turntable--3d .turntable__volume input { width: 100%; opacity: 0; cursor: grab; }
.turntable--3d .turntable__volume input:active { cursor: grabbing; }
/* outline only for keyboard users, not when the fader is dragged with a mouse */
.turntable--3d .turntable__volume:has(input:focus-visible) {
  outline: 2px solid var(--color-primary-light);
  outline-offset: 2px;
}

/* the small deck in front of the hall photo: no box shadow round the 3D one */
.turntable--3d.turntable--mini { box-shadow: none; }

/* less room needed under the 3D deck */
.turntable--3d + .now-playing { margin-top: var(--space-xl); }

/* "Press me!" follows the 3D button */
.turntable--3d .turntable__hint {
  top: calc(var(--btn-y, 85%) + var(--btn-size, 40px) * 0.62);
  left: calc(var(--btn-x, 10%) - var(--btn-size, 40px) * 0.1);
  z-index: 2;
}

/* ---------- Now playing ---------- */

.now-playing {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas:
    "eq info time"
    "bar bar bar";
  align-items: center;
  column-gap: var(--space-sm);
  row-gap: var(--space-xs);
  margin-top: var(--space-3xl);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-lg);
  background: var(--color-bg-glass);
  border: 1px solid var(--color-border);
}

.now-playing__info { grid-area: info; display: flex; flex-direction: column; min-width: 0; }

.now-playing__label {
  font-size: var(--text-2xs);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-text-faint);
}

.now-playing__title {
  font-weight: var(--weight-bold);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.now-playing__time {
  grid-area: time;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-variant-numeric: tabular-nums;
}

.now-playing__bar {
  grid-area: bar;
  height: 3px;
  border-radius: var(--radius-pill);
  background: var(--color-border);
  overflow: hidden;
}

.now-playing__bar span {
  display: block;
  height: 100%;
  width: var(--progress, 0%);
  background: var(--color-primary-light);
  transition: width 0.25s linear;
}

/* little EQ bars, they move while music is playing */
.eq {
  grid-area: eq;
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 22px;
}

.eq i {
  width: 4px;
  height: 30%;
  border-radius: 2px;
  background: var(--color-primary-light);
}

.listen.is-playing .eq i { animation: eq-bounce 0.9s ease-in-out infinite; }
.listen.is-playing .eq i:nth-child(2) { animation-delay: -0.3s; animation-duration: 0.7s; }
.listen.is-playing .eq i:nth-child(3) { animation-delay: -0.5s; animation-duration: 1.1s; }
.listen.is-playing .eq i:nth-child(4) { animation-delay: -0.2s; animation-duration: 0.8s; }
.listen.is-playing .eq i:nth-child(5) { animation-delay: -0.6s; animation-duration: 1s; }

@keyframes eq-bounce {
  0%, 100% { height: 25%; }
  50%      { height: 100%; }
}

/* ---------- Mobile ---------- */

@media (max-width: 900px) {
  .listen__inner {
    grid-template-columns: 1fr;
    grid-template-areas:
      "head"
      "deck"
      "tracks";
    row-gap: var(--space-lg);
  }
}

/* ==========================================================
   8. PRICING: two cards with a hall seen from above
   ========================================================== */

.pricing {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: var(--space-section);
  background: var(--pricing-bg);
}

.pricing__panel {
  position: relative;
  max-width: var(--pricing-max);
  margin-inline: auto;
  padding-inline: clamp(0rem, 2vw, 1rem);
  color: var(--card-text);
}

/* ---------- Live audio waveform behind the cards (js/pricing-waveform.js) ---------- */

.pricing__waveform {
  position: absolute;
  left: 0;
  right: 0;
  top: 55%;
  z-index: -1;
  height: var(--waveform-height);
  transform: translateY(-50%);
  pointer-events: none;
  /* fade out towards the left and right edges */
  -webkit-mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

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

.pricing__head {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.pricing__pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2xs);
  padding: var(--space-3xs) var(--space-sm);
  border-radius: var(--radius-pill);
  border: 1px solid var(--card-border);
  background: #fff;
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  color: var(--color-primary);
}

.pricing__pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-primary);
}

.pricing__title {
  margin-top: var(--space-sm);
  text-wrap: balance;
  font-family: var(--font-display);
  font-variation-settings: var(--font-display-settings);
  font-weight: var(--weight-display);
  font-size: var(--text-3xl);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--color-primary);
}

.pricing__sub {
  margin-top: var(--space-sm);
  color: var(--card-muted);
}

.pricing__cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-md);
}

/* ---------- Card ---------- */

.price-card {
  display: flex;
  flex-direction: column;
  padding: var(--space-md);
  border-radius: var(--radius-lg);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
}

.price-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  min-height: 28px;
  margin-bottom: var(--space-sm);
}

.price-card__name {
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}

.price-card__img {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(121, 33, 42, 0.12);
}

.price-card__price {
  display: flex;
  align-items: baseline;
  gap: var(--space-2xs);
  margin-top: var(--space-md);
}

.price-card__amount {
  font-family: var(--font-display);
  font-variation-settings: var(--font-display-settings);
  font-weight: var(--weight-display);
  font-size: var(--text-3xl);
  line-height: 1;
  color: var(--color-primary);
}

.price-card__per {
  font-size: var(--text-sm);
  color: var(--card-muted);
}

.price-card__desc {
  margin-top: var(--space-xs);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--card-border);
  font-size: var(--text-sm);
  color: var(--card-muted);
}

.price-card__list {
  display: grid;
  gap: var(--space-xs);
  margin: var(--space-md) 0 var(--space-lg);
  padding: 0;
  list-style: none;
  font-size: var(--text-sm);
}

.price-card__list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2xs);
}

.price-card__check {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
  fill: none;
  stroke: var(--color-primary);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.price-card__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2xs);
  margin-top: auto;
  min-height: 48px;
  border-radius: var(--radius-pill);
  background: #fff;
  border: 1px solid var(--card-border);
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  color: var(--card-text);
  transition: transform var(--duration-fast) var(--ease-out), background-color var(--duration-base) var(--ease-out);
}

.price-card__btn:hover { transform: translateY(-2px); }

.price-card__btn--primary {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-cream);
  box-shadow: var(--shadow-rose);
}

.price-card__btn--primary:hover { background: var(--color-primary-hover); }

.price-card__arrow {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Hall photo with sound waves ---------- */

.price-card__img { position: relative; }
.price-card__img img { display: block; width: 100%; height: auto; }

/* where each speaker sits in the photo and how far its sound reaches */
.hall-sound--one   { --sx: 71%; --sy: 12%; --wave-d: 150%; }
.hall-sound--left  { --sx: 29.6%; --sy: 12%; --wave-d: 120%; clip-path: inset(0 50% 0 0); }
.hall-sound--right { --sx: 71%; --sy: 12%; --wave-d: 120%; clip-path: inset(0 0 0 50%); }

.hall-sound {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* soft glow around the speaker */
.hall-sound::before,
.hall-sound span {
  content: "";
  position: absolute;
  left: var(--sx);
  top: var(--sy);
  width: var(--wave-d);
  aspect-ratio: 1;
  translate: -50% -50%;
  border-radius: 50%;
}

.hall-sound::before {
  background: radial-gradient(closest-side, var(--hall-glow), transparent);
  animation: hall-breathe var(--pulse-time) ease-in-out infinite;
}

/* waves pulsing outwards */
.hall-sound span {
  background: radial-gradient(closest-side, transparent 45%, var(--hall-wave) 80%, transparent);
  opacity: 0;
  animation: hall-pulse calc(var(--pulse-time) * 3) var(--ease-out) infinite;
}

.hall-sound span:nth-child(2) { animation-delay: var(--pulse-time); }
.hall-sound span:nth-child(3) { animation-delay: calc(var(--pulse-time) * 2); }

@keyframes hall-pulse {
  0%   { transform: scale(0.15); opacity: 0; }
  12%  { opacity: 1; }
  100% { transform: scale(1); opacity: 0; }
}

@keyframes hall-breathe {
  0%, 100% { opacity: 0.75; }
  50%      { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .step__orb::before { animation: none; }
  .step.is-active .step__wave { animation: none; }
  .hall-sound::before { animation: none; }
  .hall-sound span { display: none; }
}

@media (max-width: 760px) {
  .pricing__cards { grid-template-columns: 1fr; }
}

/* ==========================================================
   9. PROCESS: how it works, a timeline that lights up as you scroll
   ========================================================== */

.process {
  position: relative;
  overflow: hidden;
  padding-block: var(--space-section);
  background: var(--color-bg);
}

/* faint grid fading out from the top left corner */
.process__grid {
  position: absolute;
  top: 0;
  left: 0;
  width: min(70%, 900px);
  height: 70%;
  pointer-events: none;
  --cell: 44px;
  background-image:
    linear-gradient(rgba(245, 233, 228, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 233, 228, 0.05) 1px, transparent 1px);
  background-size: var(--cell) var(--cell);
  -webkit-mask-image: radial-gradient(ellipse 100% 100% at 0 0, #000 10%, transparent 70%);
  mask-image: radial-gradient(ellipse 100% 100% at 0 0, #000 10%, transparent 70%);
}

.process__sq {
  position: absolute;
  left: calc(var(--x) * var(--cell) + 1px);
  top: calc(var(--y) * var(--cell) + 1px);
  width: calc(var(--cell) / 2.4);
  height: calc(var(--cell) / 2.4);
  background: rgba(245, 233, 228, 0.07);
}

.process__title {
  position: relative;
  text-align: center;
  font-family: var(--font-display);
  font-variation-settings: var(--font-display-settings);
  font-weight: var(--weight-display);
  font-size: var(--text-3xl);
  line-height: 1.12;
  letter-spacing: var(--tracking-tight);
}

.process__title em {
  font-style: normal;
  color: var(--color-primary-light);
}

/* ---------- Timeline ---------- */

.process__timeline {
  position: relative;
  max-width: 940px;
  margin: var(--space-2xl) auto 0;
}

/* faint line behind the steps */
.process__timeline::before,
.process__progress {
  content: "";
  position: absolute;
  left: 50%;
  top: calc(var(--node-size) / 2);
  width: 1px;
  transform: translateX(-50%);
}

.process__timeline::before {
  bottom: calc(var(--node-size) / 2);
  background: var(--color-border);
}

/* the part of the line that fills in as you scroll (height set by JS) */
.process__progress {
  width: 2px;
  height: var(--progress, 0px);
  background: linear-gradient(to bottom, var(--color-primary-light), var(--color-primary));
  box-shadow: 0 0 12px rgba(194, 90, 102, 0.7);
  z-index: 1;
}

.process__steps {
  position: relative;
  display: grid;
  gap: var(--step-gap);
  margin: 0;
  padding: 0;
  list-style: none;
}

.step {
  display: grid;
  grid-template-columns: 1fr var(--node-size) 1fr;
  align-items: center;
  column-gap: var(--space-xl);
}

.step__node {
  grid-column: 2;
  grid-row: 1;
  position: relative;
  display: grid;
  place-items: center;
  width: var(--node-size);
  aspect-ratio: 1;
  z-index: 2;
}

/* two soft rings around the number */
.step__node::before,
.step__node::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(245, 233, 228, 0.06);
  transition: opacity var(--duration-slow) var(--ease-out), transform var(--duration-slow) var(--ease-out);
}

.step__node::before {
  inset: 0;
  background: radial-gradient(circle, rgba(121, 33, 42, 0.16), rgba(121, 33, 42, 0.04) 60%, transparent 72%);
  opacity: 0.35;
  transform: scale(0.85);
}

.step__node::after {
  inset: 20%;
  background: radial-gradient(circle, rgba(121, 33, 42, 0.28), rgba(121, 33, 42, 0.06) 70%);
  border-color: rgba(245, 233, 228, 0.08);
  opacity: 0.4;
  transform: scale(0.9);
}

/* each step is a little vinyl record with the number on its label */
.step__orb {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  width: var(--orb-size);
  aspect-ratio: 1;
  border-radius: 50%;
  font-family: var(--font-display);
  font-variation-settings: var(--font-display-settings);
  font-weight: var(--weight-display);
  font-size: calc(var(--orb-size) * 0.26);
  color: var(--color-cream);
  filter: grayscale(0.9) brightness(0.5);
  transform: scale(0.9);
  transition: filter var(--duration-slow) var(--ease-out), transform var(--duration-slow) var(--ease-out), box-shadow var(--duration-slow) var(--ease-out);
}

/* the record: grooves, two track gaps, maroon label with a small dot so you can see it turn */
.step__orb::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 30%, rgba(245, 233, 228, 0.8) 0 1.5px, transparent 2px),
    radial-gradient(circle closest-side, #9a2c38 0 30%, var(--color-primary) 38%, #4a0f16 44% 46%, transparent 46.5%),
    radial-gradient(circle closest-side, transparent 0 62%, rgba(255, 255, 255, 0.07) 62.5% 64%, transparent 64.5% 80%, rgba(255, 255, 255, 0.06) 80.5% 82%, transparent 82.5%),
    repeating-radial-gradient(circle closest-side, #0e0e0f 0 1px, #1c1c1e 1.4px 2.2px);
  box-shadow: 0 0 0 2px #060606, 0 8px 20px rgba(0, 0, 0, 0.6);
  animation: vinyl-spin var(--vinyl-spin) linear infinite;
  animation-play-state: paused;
}

/* light reflection that stays still while the record turns */
.step__orb::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 50%;
  background: conic-gradient(from 30deg,
    transparent 0deg, rgba(255, 255, 255, 0.14) 25deg, transparent 55deg,
    transparent 180deg, rgba(255, 255, 255, 0.1) 205deg, transparent 235deg);
  -webkit-mask: radial-gradient(circle closest-side, transparent 0 47%, #000 48%);
  mask: radial-gradient(circle closest-side, transparent 0 47%, #000 48%);
}

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

/* sound waves rippling out from the record */
.step__wave {
  position: absolute;
  width: var(--orb-size);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1.5px solid rgba(194, 90, 102, 0.75);
  opacity: 0;
  pointer-events: none;
}

.step.is-active .step__wave { animation: step-wave 2.4s var(--ease-out) infinite; }
.step.is-active .step__wave + .step__wave { animation-delay: 1.2s; }

@keyframes step-wave {
  0%   { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(var(--wave-scale)); opacity: 0; }
}

.step__body {
  grid-row: 1;
  max-width: 34ch;
  opacity: 0.25;
  transform: translateY(14px);
  transition: opacity var(--duration-slow) var(--ease-out), transform var(--duration-slow) var(--ease-out);
}

.step--right .step__body { grid-column: 3; justify-self: start; text-align: left; }
.step--left  .step__body { grid-column: 1; justify-self: end;   text-align: right; }

.step__title {
  font-family: var(--font-display);
  font-variation-settings: var(--font-display-settings);
  font-weight: var(--weight-display);
  font-size: var(--text-xl);
  line-height: var(--leading-snug);
}

.step__text {
  margin-top: var(--space-2xs);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* lit up once the scroll reaches the step */
.step.is-active .step__orb  { filter: none; transform: scale(1); box-shadow: 0 0 34px rgba(200, 73, 90, 0.45); }
.step.is-active .step__orb::before { animation-play-state: running; }
.step.is-active .step__node::before { opacity: 1; transform: scale(1); }
.step.is-active .step__node::after  { opacity: 1; transform: scale(1); }
.step.is-active .step__body { opacity: 1; transform: none; }

.process__cta {
  display: flex;
  justify-content: center;
  margin-top: var(--space-2xl);
}

/* ---------- Mobile: line on the left, text on the right ---------- */

@media (max-width: 760px) {
  :root {
    --node-size: 110px;
    --orb-size: 56px;
    --wave-scale: 1.9;
    --step-gap: var(--space-sm);
  }

  .process__timeline::before,
  .process__progress { left: calc(var(--node-size) / 2); }

  .step {
    grid-template-columns: var(--node-size) 1fr;
    column-gap: var(--space-sm);
  }

  .step__node { grid-column: 1; }

  .step--right .step__body,
  .step--left .step__body {
    grid-column: 2;
    justify-self: start;
    text-align: left;
  }
}

/* ==========================================================
   10. FOOTER
   ========================================================== */

.footer {
  position: relative;
  overflow: hidden;
  padding-top: calc(var(--space-section) + var(--mini-deck-w) * 0.2);
  background:
    radial-gradient(ellipse 50% 40% at 50% 0%, rgba(121, 33, 42, 0.35), transparent 70%),
    var(--footer-bg);
  border-top: 1px solid var(--color-border);
}

/* closing call to action */
.footer__cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
  padding-bottom: var(--space-2xl);
  text-align: center;
}

.footer__cta-title {
  max-width: 16ch;
  font-family: var(--font-display);
  font-variation-settings: var(--font-display-settings);
  font-weight: var(--weight-display);
  font-size: var(--text-3xl);
  line-height: 1.1;
  letter-spacing: var(--tracking-tight);
  text-wrap: balance;
}

.footer__cta-title em {
  font-style: normal;
  color: var(--color-primary-light);
}

/* columns */
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr auto;
  gap: var(--space-xl);
  padding-block: var(--space-xl);
  border-top: 1px solid var(--color-border);
}

.footer__logo {
  width: 150px;
  height: auto;
}

.footer__tagline {
  max-width: 32ch;
  margin-top: var(--space-md);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.footer__heading {
  margin-bottom: var(--space-sm);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-text-faint);
}

.footer__col ul {
  display: grid;
  gap: var(--space-xs);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.footer__col a {
  transition: color var(--duration-fast);
}

.footer__col a:hover { color: var(--color-primary-soft); }

/* bottom bar */
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
  padding-block: var(--space-md);
  border-top: 1px solid var(--color-border);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

.footer__top { transition: color var(--duration-fast); }
.footer__top:hover { color: var(--color-text); }

/* quick actions: sit under the Explore and Contact columns */
.footer__actions {
  grid-column: 2 / 4;
  grid-row: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-sm);
}

.footer__icons {
  display: flex;
  gap: var(--space-xs);
}

.footer__icons a {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--color-border-strong);
  border-radius: 50%;
  color: var(--color-cream);
  transition: background var(--duration-fast), border-color var(--duration-fast), transform var(--duration-fast);
}

.footer__icons a:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  transform: translateY(-2px);
}

.footer__icons svg { width: 20px; height: 20px; }

/* Site credit: the Highlinq card (same design as on chikchak, in
   Harmony's maroon, rose and cream). Sits at the end of the footer grid. */
.credit-card {
  --credit-card-w: 17rem;
  position: relative;
  z-index: 0;
  align-self: start;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  grid-column: 4;
  grid-row: 1 / span 2;
  width: var(--credit-card-w);
  margin: var(--space-xs) var(--space-sm) var(--space-md) 0;
  padding: var(--space-sm) var(--space-sm) 1.25rem;
  border-radius: var(--radius-md);
  color: #ffffff;
  transform: rotate(4deg);
  transition: transform var(--duration-base) var(--ease-out);
}

/* two layers behind the content: the cream card at the back, the maroon card on top */
.credit-card::before,
.credit-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.credit-card::before {
  z-index: -2;
  background: var(--color-cream);
  transform: rotate(-9deg) translate(-0.5rem, 0.5rem);
  transition: transform var(--duration-base) var(--ease-out);
}

.credit-card::after {
  z-index: -1;
  background: var(--color-primary);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.credit-card:hover { transform: rotate(1deg) translateY(-4px); }
.credit-card:hover::before { transform: rotate(-5deg) translate(-0.5rem, 0.5rem); }

.credit-card:focus-visible {
  outline: 2px solid var(--color-rose);
  outline-offset: 4px;
}

/* a tiny browser window, standing in for "a website" */
.credit-card__window {
  display: grid;
  gap: 0.5rem;
  width: 100%;
  margin-bottom: var(--space-sm);
  padding: 0.75rem 0.75rem 1rem;
  border: 3px solid var(--color-rose);
  border-radius: var(--radius-sm);
  background: #ffffff;
}

.credit-card__dots {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 0.5rem;
}

.credit-card__dots i {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: var(--radius-pill);
  background: #eadfdb;
}

.credit-card__dots i:first-child { background: var(--color-rose); }

.credit-card__logo {
  justify-self: center;
  width: 72%;
  height: auto;
  margin: 0.5rem 0 0.25rem;
}

.credit-card__chip {
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  background: var(--color-cream);
  color: var(--color-primary);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
}

.credit-card__title {
  margin-top: 0.75rem;
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  line-height: 1.25;
}

.credit-card__text {
  margin-top: 0.25rem;
  padding-right: 2.5rem;
  font-size: var(--text-sm);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.78);
}

.credit-card__text u {
  color: var(--color-rose-soft);
  font-weight: var(--weight-bold);
  text-underline-offset: 3px;
}

.credit-card__arrow {
  position: absolute;
  right: -1rem;
  bottom: -1rem;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-pill);
  background: var(--color-cream);
  color: var(--color-primary);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.credit-card__arrow svg {
  width: 1.5rem;
  height: 1.5rem;
  transition: transform var(--duration-base) var(--ease-out);
}

.credit-card:hover .credit-card__arrow svg { transform: translate(3px, -3px); }

/* not enough room for the card beside the links: it drops under them, centred */
@media (max-width: 900px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .footer__actions { grid-column: 1 / -1; grid-row: auto; }
  .credit-card { grid-column: 1 / -1; grid-row: auto; justify-self: center; margin-top: var(--space-md); }
}

@media (max-width: 480px) {
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}

/* ==========================================================
   11. HALL SCENE: full-width 3D hall, tap the record to play
   ========================================================== */

.hall-scene {
  position: relative;
  z-index: 3;
  overflow: visible;
  height: 100vh;
  height: var(--hall-height);
  min-height: 560px;
  background: var(--color-bg);
}

.hall-scene__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0;
  transition: opacity 1s var(--ease-out);
}

.hall-scene__canvas.is-ready { opacity: 1; }

/* soft fades so the scene blends into the sections around it */
.hall-scene::before,
.hall-scene::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 22%;
  z-index: 1;
  pointer-events: none;
}

.hall-scene::before { top: 0; height: 34%; background: linear-gradient(var(--color-bg) 10%, rgba(11, 4, 5, 0.6) 55%, transparent); }
.hall-scene::after  { bottom: 0; height: 14%; background: linear-gradient(transparent, var(--footer-bg)); }

.hall-scene__head {
  position: absolute;
  top: var(--space-2xl);
  left: 0;
  right: 0;
  z-index: 2;
  text-align: center;
  pointer-events: none;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.7);
}

.hall-scene__head .section-title { font-size: var(--text-hall); }

.hall-scene__head .section-title em {
  font-style: normal;
  color: var(--color-primary-light);
}

/* ---------- Hall photo (used instead of the 3D scene for now) ---------- */

.hall-scene--photo .hall-scene__canvas { display: none; }

.hall-photo {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--color-bg);
}

.hall-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 55%;                 /* keep in step with PHOTO.focus in hall-photo.js */
  filter: brightness(0.78) saturate(0.95);
  transition: filter 1.2s var(--ease-out);
}

.hall-scene.is-playing .hall-photo img { filter: brightness(0.9) saturate(1.05); }

/* dim the edges so the bright room sits in the dark page */
.hall-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 75% 70% at 50% 55%, transparent 40%, rgba(11, 4, 5, 0.55) 100%),
    linear-gradient(rgba(121, 33, 42, 0.12), rgba(121, 33, 42, 0.12));
}

/* sound waves from each speaker, only while the music plays, each on its own side of the mechitza */
.hall-sound--photo {
  z-index: 1;
  opacity: 0;
  transition: opacity 0.6s var(--ease-out);
}

.hall-scene.is-playing .hall-sound--photo { opacity: 1; }
.hall-sound--photo-left  { clip-path: inset(0 calc(100% - var(--mid, 50%)) 0 0); }
.hall-sound--photo-right { clip-path: inset(0 0 0 var(--mid, 50%)); }

/* not taller than the photo is wide, so both speakers stay in view on tablets and phones */
.hall-scene.hall-scene--photo {
  height: clamp(480px, 95vw, 100svh);
  min-height: 0;
  /* stronger waves than on the pricing cards, the room is bright */
  --hall-wave: rgba(255, 228, 220, 0.6);
  --hall-glow: rgba(255, 214, 200, 0.28);
}

/* phones: a longer dark fade at the top so the two-line heading stays readable */
@media (max-width: 600px) {
  .hall-scene.hall-scene--photo::before { height: 46%; }
}

/* ---------- Turntable in front of the scene (reuses the Listen deck styles) ---------- */

.hall-deck {
  position: absolute;
  left: 50%;
  bottom: calc(var(--mini-deck-w) / 1.3 * -0.32);   /* hangs over the bottom edge of the scene */
  z-index: 3;
  width: var(--mini-deck-w);
  transform: translateX(-50%);
}

.turntable--mini {
  width: 100%;
  border-radius: var(--radius-md);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.turntable--mini .turntable__record { cursor: pointer; }
.turntable--mini .turntable__power { width: 14%; }   /* a touch bigger on the small deck */
.turntable--mini .turntable__arm,
.turntable--mini .turntable__arm-base,
.turntable--mini .turntable__arm-rest { pointer-events: none; }

.turntable--mini .turntable__record:focus-visible {
  outline: 2px solid var(--color-primary-light);
  outline-offset: 4px;
  border-radius: 50%;
}

/* soft pulsing glow around the record until it plays */
.turntable--mini .turntable__platter::after {
  content: "";
  position: absolute;
  inset: -4%;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(208, 74, 94, 0.6), 0 0 26px rgba(208, 74, 94, 0.55);
  animation: deck-invite 1.8s ease-in-out infinite;
  pointer-events: none;
}

.turntable--mini[data-state="on"] .turntable__platter::after { animation: none; opacity: 0; }

@keyframes deck-invite {
  0%, 100% { opacity: 0.25; }
  50%      { opacity: 1; }
}

/* handwritten note to the left of the deck */
.hall-deck__hint {
  position: absolute;
  z-index: 2;   /* arrow stays on top of the deck */
  right: calc(100% + 6px);
  top: 4%;
  display: flex;
  align-items: flex-end;
  gap: 2px;
  color: var(--color-cream);
  pointer-events: none;
  transform: rotate(-6deg);
  transition: opacity var(--duration-base) var(--ease-out);
}

.hall-scene.is-playing .hall-deck__hint { opacity: 0; }

.hall-deck__hint-text {
  margin-bottom: 30px;
  font-family: var(--font-script);
  font-size: var(--text-2xl);
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
}

.hall-deck__hint-arrow { width: 56px; height: 46px; flex-shrink: 0; }

.hall-deck__now {
  position: absolute;
  top: calc(100% + var(--space-sm));
  left: 50%;
  width: max-content;
  max-width: 90vw;
  transform: translateX(-50%);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-align: center;
}

@media (max-width: 600px) {
  .hall-scene { height: 85svh; }
}

@media (max-width: 860px) {
  .hall-deck__hint { right: auto; left: 50%; top: auto; bottom: calc(100% + 4px); transform: translateX(-60%) rotate(-5deg); }
  .hall-deck__hint-text { margin-bottom: 0; font-size: var(--text-xl); }
  .hall-deck__hint-arrow { width: 40px; height: 34px; transform: rotate(40deg); }
}

/* ==========================================================
   12. BOOK: name and phone, we call back
   ========================================================== */

.book {
  position: relative;
  padding-block: var(--space-section);
  background:
    radial-gradient(ellipse 50% 60% at 80% 50%, rgba(121, 33, 42, 0.28), transparent 70%),
    var(--color-bg);
}

.book__card {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
  max-width: 1040px;
  margin-inline: auto;
  padding: clamp(1.5rem, 1rem + 3vw, 3.5rem);
  border-radius: var(--radius-xl);
  background: var(--color-bg-glass);
  border: 1px solid var(--color-border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-soft);
}

.book__intro .section-title em {
  font-style: normal;
  color: var(--color-primary-light);
}

.book__lead {
  max-width: 42ch;
  margin-top: var(--space-md);
  color: var(--color-text-muted);
}

.book__points {
  display: grid;
  gap: var(--space-xs);
  margin-top: var(--space-lg);
  font-size: var(--text-sm);
}

.book__points li {
  display: flex;
  align-items: center;
  gap: var(--space-2xs);
}

.book__points svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  fill: none;
  stroke: var(--color-primary-soft);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Form ---------- */

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

/* Turnstile bot check: usually invisible, so keep it out of the layout.
   If Cloudflare needs the visitor to click, book.js adds .is-visible. */
.book__turnstile {
  position: absolute;
}
.book__turnstile.is-visible {
  position: static;
}

.book__field {
  display: grid;
  gap: var(--space-2xs);
}

.book__label {
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-text-faint);
}

.book__field input {
  width: 100%;
  min-height: 52px;
  padding: 0 var(--space-md);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-strong);
  background: rgba(0, 0, 0, 0.3);
  color: var(--color-text);
  font: inherit;
  font-size: var(--text-base);
  transition: border-color var(--duration-fast), box-shadow var(--duration-fast);
}

.book__field input::placeholder { color: var(--color-text-faint); }

.book__field input:focus {
  outline: none;
  border-color: var(--color-primary-light);
  box-shadow: 0 0 0 4px rgba(194, 90, 102, 0.2);
}

.book__field input[aria-invalid="true"] { border-color: #e05a6e; }

.book__submit {
  justify-self: start;
  margin-top: var(--space-2xs);
}

.book__submit[disabled] { opacity: 0.6; cursor: progress; }

.book__status {
  min-height: 1.4em;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.book__status.is-success { color: #8fd19e; }
.book__status.is-error   { color: #f08a96; }
.book__status a { text-decoration: underline; }

.book__small {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

.book__small a { color: var(--color-text-muted); text-decoration: underline; }

/* privacy note: deliberately tiny */
.book__privacy {
  margin-top: calc(var(--space-md) * -0.5);
  font-size: 0.6875rem;
  line-height: 1.4;
  color: var(--color-text-faint);
  opacity: 0.8;
}

@media (max-width: 860px) {
  .book__card { grid-template-columns: 1fr; gap: var(--space-xl); }
  .book__submit { justify-self: stretch; }
}

