/* ═══════════════════════════════════════════
   ROYALKART — SCROLL SCRUB WEBSITE
   style.css
═══════════════════════════════════════════ */

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

:root {
  --gold:    #C9A84C;
  --gold-l:  #E8C96A;
  --gold-s:  rgba(201,168,76,0.15);
  --cream:   #F2EBD9;
  --ink:     #000000;
  --glass-bg:   rgba(4, 4, 14, 0.58);
  --glass-border: rgba(255,255,255,0.07);
  --glass-blur: blur(20px) saturate(150%);
  --font-d:  'Cormorant Garamond', 'Playfair Display', serif;
  --font-b:  'Jost', 'Outfit', sans-serif;
}

html {
  scroll-behavior: auto;
}

body {
  background: #000;
  color: var(--cream);
  font-family: var(--font-b);
  overflow-x: hidden;
  /* Prevent rubber-band / pull-to-refresh from disrupting the scroll scrub
     (Chrome/Firefox honour this; Safari gracefully ignores it) */
  overscroll-behavior: none;
}

/* ════════════════════════════════
   LOADER
════════════════════════════════ */
#loader {
  position: fixed;
  inset: 0;
  background: #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  transition: opacity 0.8s ease;
  gap: 1.8rem;
}

#loader.hidden {
  opacity: 0;
  pointer-events: none;
}

#loader-logo {
  width: clamp(140px, 18vw, 240px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 24px rgba(201,168,76,0.35));
}

/* em not used in image logo */
#loader-logo em {
  display: none;
}

#loader-bar-wrap {
  width: clamp(180px, 30vw, 280px);
  height: 2px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  overflow: hidden;
}

#loader-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--gold), var(--gold-l));
  transition: width 0.15s ease;
  border-radius: 2px;
}

#loader-text {
  font-size: 0.65rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: rgba(242,235,217,0.35);
}

/* ════════════════════════════════
   PROGRESS BAR
════════════════════════════════ */
#progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--gold), var(--gold-l));
  box-shadow: 0 0 8px rgba(201,168,76,0.7);
  z-index: 200;
  pointer-events: none;
  transition: width 0.08s linear;
}

/* ════════════════════════════════
   STICKY NAV
════════════════════════════════ */
#sticky-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 1.2rem 2.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 150;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
  background: rgba(2, 2, 8, 0.7);
  backdrop-filter: blur(16px) saturate(120%);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

#sticky-nav.visible {
  opacity: 1;
  pointer-events: all;
}

.nav-logo {
  font-family: var(--font-d);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.4em;
  color: var(--gold);
  text-transform: uppercase;
}

.nav-logo em {
  font-style: italic;
}

.nav-cta {
  font-size: 0.62rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgba(242,235,217,0.45);
  text-decoration: none;
  transition: color 0.3s;
}

.nav-cta:hover {
  color: var(--gold);
}

/* ════════════════════════════════
   PAGE WRAP
════════════════════════════════ */
#page-wrap {
  position: relative;
  z-index: 2;
  background: transparent;
  /* Allow vertical panning so touch devices don't fight the scrub */
  touch-action: pan-y;
}

/* ════════════════════════════════
   NEBULA BACKGROUND
════════════════════════════════ */
#nebula-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 60% 50% at 20% 20%, #0D0820 0%, transparent 55%),
    radial-gradient(ellipse 50% 60% at 80% 80%, #050A1A 0%, transparent 50%),
    radial-gradient(ellipse 80% 80% at 50% 50%, #04040F 0%, #000000 75%),
    #000;
  animation: nebula-drift 25s ease-in-out infinite alternate;
}

/* ════════════════════════════════
   STAR LAYER
════════════════════════════════ */
#stars-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

#stars-layer canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

@keyframes nebula-drift {
  0%   {
    background:
      radial-gradient(ellipse 60% 50% at 20% 20%, #0D0820 0%, transparent 55%),
      radial-gradient(ellipse 50% 60% at 80% 80%, #050A1A 0%, transparent 50%),
      radial-gradient(ellipse 80% 80% at 50% 50%, #04040F 0%, #000000 75%),
      #000;
  }
  33%  {
    background:
      radial-gradient(ellipse 55% 65% at 75% 15%, #06041A 0%, transparent 55%),
      radial-gradient(ellipse 70% 45% at 25% 85%, #0D0820 0%, transparent 50%),
      radial-gradient(ellipse 80% 80% at 50% 50%, #050510 0%, #000000 75%),
      #000;
  }
  66%  {
    background:
      radial-gradient(ellipse 50% 70% at 55% 65%, #06091A 0%, transparent 55%),
      radial-gradient(ellipse 80% 55% at 10% 35%, #080618 0%, transparent 50%),
      radial-gradient(ellipse 80% 80% at 50% 50%, #04040E 0%, #000000 75%),
      #000;
  }
  100% {
    background:
      radial-gradient(ellipse 60% 50% at 82% 25%, #0D0820 0%, transparent 55%),
      radial-gradient(ellipse 50% 60% at 18% 75%, #050A1A 0%, transparent 50%),
      radial-gradient(ellipse 80% 80% at 50% 50%, #04040F 0%, #000000 75%),
      #000;
  }
}

/* ════════════════════════════════
   BRAND COLOR TINT
════════════════════════════════ */
#color-tint {
  position: fixed;
  inset: 0;
  z-index: 4;                /* above canvas (z-index:3), below panels (z-index:10) */
  pointer-events: none;
  background: transparent;
  transition: background 2s ease;
  opacity: 1;
}

/* ════════════════════════════════
   VIGNETTE (dark edges keep focus on center)
════════════════════════════════ */
#vignette {
  position: fixed;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  background: radial-gradient(
    ellipse 90% 90% at 50% 50%,
    transparent 40%,
    rgba(0,0,0,0.55) 100%
  );
}

/* ════════════════════════════════
   SCROLL CONTAINER (sticky)
════════════════════════════════ */
#scroll-container {
  background: transparent !important;
  position: -webkit-sticky; /* iOS Safari < 13 requires the prefix */
  position: sticky;
  top: 0;
  width: 100vw;
  height: 100vh;                        /* fallback for very old browsers */
  height: calc(var(--vh, 1vh) * 100);   /* iOS Safari: matches window.innerHeight */
  overflow: hidden;
  z-index: 2;
}

/* ════════════════════════════════
   CANVAS GLOW (brand color spotlight behind product)
════════════════════════════════ */
#canvas-glow {
  position: absolute;
  top: 50%;
  left: 50%;          /* centered on full-screen canvas */
  transform: translate(-50%, -50%);
  width: 55vmin;
  height: 55vmin;
  border-radius: 50%;
  pointer-events: none;
  z-index: 2;
  transition: background 2s ease, opacity 2s ease;
  filter: blur(70px);
  opacity: 0;
  background: radial-gradient(circle, rgba(201,168,76,0.3) 0%, transparent 65%);
  will-change: background, opacity;
}

/* ════════════════════════════════
   CANVAS  — full viewport, opaque video frames
════════════════════════════════ */
#hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 100%;
  display: block;
  mix-blend-mode: normal;
  z-index: 3;
}

/* ════════════════════════════════
   SCROLL HINT
════════════════════════════════ */
#scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  z-index: 10;
  opacity: 1;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

#scroll-hint.hidden {
  opacity: 0;
}

#scroll-hint span {
  font-size: 0.6rem;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: rgba(242,235,217,0.3);
}

.sh-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold);
  animation: sh-bounce 1.9s ease-in-out infinite;
}

@keyframes sh-bounce {
  0%, 100% { transform: translateY(0);    opacity: 1;   }
  50%       { transform: translateY(10px); opacity: 0.2; }
}

/* ════════════════════════════════
   OVERLAY PANELS (general)
════════════════════════════════ */
.overlay-panel {
  position: absolute;
  z-index: 10;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.overlay-panel.visible {
  opacity: 1;
}

/* Opening panel — left column, clear of canvas */
#panel-opening {
  top: 0;
  left: 0;
  bottom: 0;
  right: auto;
  width: 40%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 6vh 4vw;
}

#panel-opening.visible {
  opacity: 1;
}

#panel-opening .panel-eyebrow {
  font-family: var(--font-b);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0;
}

#panel-opening .panel-title {
  font-family: var(--font-d);
  font-size: clamp(2.8rem, 5vw, 5.5rem);
  font-weight: 600;
  line-height: 0.92;
  letter-spacing: 0.01em;
  background: linear-gradient(
    135deg,
    #F0D878 0%,
    #C9A84C 30%,
    #F2EBD9 55%,
    #C9A84C 75%,
    #E8C96A 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 40px rgba(201,168,76,0.35));
  margin: 0;
}

#panel-opening .panel-sub {
  font-family: var(--font-b);
  font-size: 0.78rem;
  font-weight: 300;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: rgba(242,235,217,0.65);
  margin: 0;
}

/* Family complete — left side to match brand panels */
#panel-family {
  bottom: auto;
  top: 8%;
  left: 4%;
  transform: translateY(-8px);
  text-align: left;
}

#panel-family.visible {
  transform: translateY(0);
}

/* ════════════════════════════════
   BRAND PANELS
════════════════════════════════ */
.brand-panel {
  bottom: 10%;
  left: 6%;
  width: 420px;           /* fixed — all cards same width */
  transform: translateY(28px);
  font-size: 1.4em; 
  /* Glass card */
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 2px;
  padding: 2.52rem 2.8rem 2.24rem;
  /* Colored top edge line */
  box-shadow:
    inset 0 1px 0 0 var(--bp-accent, var(--gold)),
    0 24px 64px rgba(0,0,0,0.6),
    0 0 0 1px rgba(255,255,255,0.03);
  overflow: hidden;
}

.brand-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    var(--bp-accent, var(--gold)) 0%,
    transparent 80%
  );
  opacity: 0.9;
}

.brand-panel.visible {
  transform: translateY(0);
}

/* ─── MOBILE (≤ 680px) ───────────────────────── */
@media (max-width: 680px) {

  /* Canvas: full viewport on mobile — video fills screen */
  #hero-canvas {
    width: 100%;
    height: 100%;
    top: 0;
    bottom: auto;
    left: 0;
    right: 0;
  }

  #canvas-glow {
    left: 50%;
    top: 50%;        /* follows canvas center */
  }

  /* Opening panel: compact block at bottom-center on mobile */
  #panel-opening {
    width: 100%;
    height: auto;
    top: auto;
    bottom: 14%;
    left: 0;
    padding: 0 6vw 2vh;
    justify-content: flex-end;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
  }

  #panel-opening .panel-title {
    font-size: clamp(2rem, 7.5vw, 2.8rem);
  }

  /* Brand panels: horizontally centered */
  .brand-panel {
    left: 50%;
    bottom: 5%;
    width: min(90vw, 300px);
    transform: translateX(-50%) translateY(20px);
    text-align: center;
    padding: 1.4rem 1.4rem 1.2rem;
  }

  .brand-panel.visible {
    transform: translateX(-50%) translateY(0);
  }

  .brand-panel::before {
    right: 0;
  }

  /* Scroll hint: centered at bottom */
  #scroll-hint {
    right: auto;
    left: 50%;
    transform: translateX(-50%);
    bottom: 2.5rem;
  }

  /* Finale heading: compact */
  #finale-heading {
    padding: 1.4rem 1.8rem;
    margin-bottom: 0.8rem;
    width: 88vw;
    max-width: 360px;
  }

  .finale-title {
    font-size: clamp(1.5rem, 5.5vw, 2.2rem);
  }

  /* Disc hotspot rings: keep visible on mobile, JS controls exact size/position. */
  #disc-hotspots {
    display: flex;
  }

  /* Disc labels: JS sets bottom dynamically in drawFrame().
     Only override the gap here for tighter mobile spacing. */
  #disc-labels {
    gap: clamp(8px, 2.5vw, 22px);
    bottom: 30%; /* fallback before JS runs */
  }

  .disc-label span {
    font-size: clamp(0.4rem, 1.6vw, 0.58rem);
    letter-spacing: 0.14em;
  }

  /* CTAs: stack vertically */
  #finale-ctas {
    flex-direction: column;
    align-items: center;
    width: 86vw;
    gap: 0.7rem;
    bottom: 1.5%;
  }

  .btn {
    padding: 0.85rem 1.8rem;
    width: 100%;
    text-align: center;
    font-size: 0.68rem;
  }

  /* Nav: tighter on mobile */
  #sticky-nav {
    padding: 0.9rem 1.4rem;
  }

  .nav-logo { font-size: 0.72rem; }

  .nav-cta { font-size: 0.56rem; }

  #replay-hint {
    bottom: 0.5rem;
    font-size: 0.5rem;
  }
}

.bp-index {
  font-family: var(--font-b);
  font-size: 0.6rem;
  font-weight: 300;
  letter-spacing: 0.55em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: rgba(242,235,217,0.5);
}

.bp-index::after {
  content: '';
  flex: 1;
  height: 1px;
  background: currentColor;
  opacity: 0.25;
  max-width: 36px;
}

.bp-name {
  font-family: var(--font-d);
  font-size: 2.4rem;        /* fixed — prevents height variation between cards */
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: 0.02em;
  color: var(--cream);
  margin-bottom: 0.8rem;
}

.bp-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1.4rem;
}

.bp-cats span {
  font-family: var(--font-b);
  font-size: 0.55rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.88);
  padding: 3px 10px;
  border: 1px solid currentColor; /* currentColor = rgba(255,255,255,0.88) */
  border-radius: 20px;
}

.bp-tagline {
  font-family: var(--font-d);
  font-size: clamp(0.8rem, 1.4vw, 1rem);
  font-style: italic;
  font-weight: 300;
  letter-spacing: 0.12em;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.bp-tagline::before {
  content: '';
  width: 20px;
  height: 1px;
  background: currentColor;
}

/* ════════════════════════════════
   FINALE OVERLAY
════════════════════════════════ */
#finale-overlay {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1s ease;
}

#finale-overlay.visible {
  opacity: 1;
  pointer-events: all;
}

#finale-heading {
  text-align: center;
  margin-bottom: 2rem;
  padding: 2rem 3.5rem;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 3px;
  box-shadow:
    inset 0 1px 0 0 rgba(201,168,76,0.4),
    0 32px 80px rgba(0,0,0,0.7);
}

.finale-eyebrow {
  font-family: var(--font-b);
  font-size: 0.6rem;
  font-weight: 300;
  letter-spacing: 0.6em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.9rem;
}

.finale-title {
  font-family: var(--font-d);
  font-size: clamp(2rem, 4.5vw, 4rem);
  font-weight: 600;
  color: var(--cream);
  letter-spacing: 0.02em;
  line-height: 1.1;
}
 
/* Disc labels — clearly below the logo circles */
#disc-labels {
  position: absolute;
  bottom: 10%;
  left: 50%;
  transform: translateX(-50%);
  
  /* CRITICAL: Shrink-wrap and sync layout structure with the hotspots */
  width: max-content; 
  display: flex;
  justify-content: center;
  
  /* gap must match hotspot gap exactly */
  gap: clamp(25px, 5.3vw, 135px); 
  
  pointer-events: none; /* Keeps labels from accidentally breaking mouse clicks */
}

.disc-label {
  width: var(--hs-size, clamp(65px, 9vw, 135px));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.disc-label span {
  font-family: var(--font-b);
  font-size: clamp(0.45rem, 1.0vw, 0.96rem);
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(242, 235, 217, 0.88);
  text-align: center;
  white-space: nowrap;
}

/* Disc hotspots — positioned over logo circles in canvas frame */
#disc-hotspots {
  position: absolute;
  bottom: 15%;
  left: 50%;
  transform: translateX(-50%);
  
  width: max-content; 
  display: flex;
  justify-content: center;
  
  /* gap ~9vw matches the actual inter-disc center-to-center spacing in the video */
  gap: clamp(25px, 5vw, 135px); 
  
  pointer-events: none;
}

.disc-hotspot {
  width: var(--hs-size, clamp(65px, 9vw, 135px));
  aspect-ratio: 1 / 1; 
  border-radius: 50%;
  background: transparent;
  border: 2px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  pointer-events: none; /* disabled until finale is visible */
}

#finale-overlay.visible .disc-hotspot {
  pointer-events: auto;
}

/* 1. GREEN KILLER - #4EA063 */
#hs-gk:hover {
  border-color: #4EA063;
  box-shadow: 0 0 25px rgba(78, 160, 99, 0.5);
}

/* 2. KALLISTO - #5080D0 */
#hs-ka:hover {
  border-color: #5080D0;
  box-shadow: 0 0 25px rgba(80, 128, 208, 0.5);
}

/* 3. GREEN RIVER - #F08060 */
#hs-gr:hover {
  border-color: #3D7A50;
  box-shadow: 0 0 25px rgba(61, 122, 80, 0.5);
}

/* 4. KALLISTO LUXE - #7060C0 */
#hs-kl:hover {
  border-color: #7060C0;
  box-shadow: 0 0 25px rgba(112, 96, 192, 0.5);
}

/* 5. THE SOLE CARE - #3D7A50 */
#hs-sc:hover {
  border-color: #F08060;
  box-shadow: 0 0 25px rgba(240, 128, 96, 0.5);
}

/* CTAs — anchored to very bottom */
#finale-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  position: absolute;
  bottom: 2%;
}

.btn {
  font-family: var(--font-d);
  font-size: 0.72rem;
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 1rem 2.8rem;
  border-radius: 50px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-block;
  border: 1.5px solid;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-l));
  color: var(--ink);
  border-color: var(--gold-l);
  box-shadow: 0 0 30px rgba(201,168,76,0.3), 0 4px 16px rgba(0,0,0,0.4);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--gold-l), #F0D878);
  border-color: #F0D878;
  box-shadow: 0 0 50px rgba(201,168,76,0.5), 0 8px 24px rgba(0,0,0,0.5);
  transform: translateY(-2px);
}

.btn-secondary {
  background: rgba(255,255,255,0.04);
  color: var(--cream);
  border-color: rgba(242,235,217,0.18);
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

.btn-secondary:hover {
  background: rgba(201,168,76,0.08);
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(201,168,76,0.15), 0 8px 24px rgba(0,0,0,0.4);
}

#replay-hint {
  position: absolute;
  bottom: 2rem;
  font-size: 0.58rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: rgba(242,235,217,0.2);
}

/* ════════════════════════════════
   SCROLL SPACER
════════════════════════════════ */
#scroll-spacer {
  /* Height set by JS */
}

/* ════════════════════════════════
   NOISE GRAIN
════════════════════════════════ */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.45;
  mix-blend-mode: overlay;
}

/* ════════════════════════════════
   DISC HOTSPOT HOVER GLOW
════════════════════════════════ */
.disc-hotspot:hover {
  border-color: rgba(201,168,76,0.6);
  box-shadow: 0 0 28px rgba(201,168,76,0.25), inset 0 0 20px rgba(201,168,76,0.06);
}

/* ════════════════════════════════
   REDUCED MOTION
════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  #nebula-bg { animation: none; }
  .sh-dot { animation: none; }
  * { transition-duration: 0.01ms !important; }
}

/* ─── TABLET (681px – 1024px) ─────────────────── */
@media (min-width: 681px) and (max-width: 1024px) {

  #panel-opening {
    width: 44%;
    padding: 5vh 3vw 5vh 4vw;
  }

  #panel-opening .panel-title {
    font-size: clamp(2.4rem, 4vw, 3.6rem);
  }

  .brand-panel {
    width: 260px;
    padding: 1.6rem 1.7rem 1.4rem;
  }

  .bp-name {
    font-size: 2.1rem;
  }

  /* Canvas: full viewport on tablet too */
  /* #hero-canvas width override removed — inherits 100% from base */

  #canvas-glow {
    left: 50%;
  }

  #scroll-hint {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
  }

  #finale-heading {
    padding: 1.8rem 2.8rem;
  }

  #finale-ctas {
    gap: 0.8rem;
  }

  .btn {
    padding: 0.9rem 2.2rem;
  }
}

/* ─── Very small phones (≤ 380px) ─────────────── */
@media (max-width: 380px) {

  #panel-opening .panel-title {
    font-size: 1.9rem;
  }

  .brand-panel {
    width: 93vw;
  }

  .disc-label {
    width: 44px;
  }

  #disc-hotspots,
  #disc-labels {
    gap: 6px;
  }

  .disc-label span {
    font-size: 0.36rem;
    letter-spacing: 0.09em;
  }

  .finale-title {
    font-size: 1.5rem;
  }

  #finale-heading {
    padding: 1.2rem 1.4rem;
    width: 94vw;
  }
}
