/* =========================================================================
   SOUNDFRAME — styles.css
   Strictly monochrome white-on-black + one warm cream brand accent.
   Two reserved gradients only: gold→amber (premium) and red→pink (music).
   ========================================================================= */

:root {
  --bg:            #000000;
  --brand-cream:   #F4F1EA;
  --text:          #FFFFFF;
  --text-2:        rgba(255,255,255,0.5);
  --text-3:        rgba(255,255,255,0.6);
  --hairline:      rgba(255,255,255,0.12);
  --app-primary:   #007AFF;
  --app-accent:    #FF9500;
  --premium-start: #FFD700;
  --premium-end:   #FFA500;
  --music-start:   #FC3C44;
  --music-end:     #FA57C1;
  --scrim:         linear-gradient(to bottom, transparent, rgba(0,0,0,0.8));

  --glass-fill:    rgba(255,255,255,0.06);
  --glass-edge:    0.5px solid rgba(255,255,255,0.12);
  --glass-blur:    blur(24px) saturate(120%);

  --ff-display: "Archivo Narrow", system-ui, sans-serif;
  --ff-body:    "DM Sans", system-ui, sans-serif;

  --s-4: 4px;  --s-8: 8px;  --s-12: 12px; --s-16: 16px; --s-20: 20px;
  --s-24: 24px; --s-32: 32px; --s-48: 48px; --s-64: 64px; --s-96: 96px; --s-128: 128px;
}

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

html { scroll-behavior: auto; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--ff-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

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

/* visible focus ring — never rely on hover/scroll alone */
:focus-visible {
  outline: 2px solid rgba(255,255,255,0.9);
  outline-offset: 2px;
  border-radius: 4px;
}

::selection { background: var(--brand-cream); color: #000; }

/* skip link */
.skip-link {
  position: fixed; top: -100px; left: 16px; z-index: 9999;
  background: var(--brand-cream); color: #000; padding: 10px 18px;
  border-radius: 10px; font-family: var(--ff-body); font-weight: 500;
}
.skip-link:focus { top: 16px; }

/* =========================== TYPE SCALE =================================== */
.display-title {
  font-family: var(--ff-display); font-weight: 600;
  font-size: clamp(48px, 7vw, 72px); letter-spacing: 0.06em;
  text-transform: uppercase; line-height: 1.08; text-wrap: pretty;
}
.section-title {
  font-family: var(--ff-display); font-weight: 500;
  font-size: clamp(22px, 3vw, 28px); letter-spacing: 0.05em;
  text-transform: uppercase; line-height: 1.1;
}
.eyebrow {
  font-family: var(--ff-display); font-weight: 500; font-size: 13px;
  text-transform: uppercase; letter-spacing: 0.18em; color: var(--brand-cream); white-space: nowrap;
}
.body {
  font-family: var(--ff-body); font-weight: 400; font-size: clamp(16px, 1.25vw, 18px);
  line-height: 1.6; color: rgba(255,255,255,0.82); text-wrap: pretty;
}
.caption {
  font-family: var(--ff-body); font-weight: 300; font-size: 14px;
  color: rgba(255,255,255,0.5); line-height: 1.5;
}
/* EN alternate beneath ES display copy */
.alt {
  font-family: var(--ff-display); font-weight: 400;
  text-transform: uppercase; letter-spacing: 0.05em;
  color: rgba(255,255,255,0.32); line-height: 1.05;
}
.alt-body { color: rgba(255,255,255,0.4); font-style: normal; }

/* =========================== GLASS LANGUAGE ============================== */
.glass {
  background: var(--glass-fill);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: var(--glass-edge);
}
.glass-card { border-radius: 16px; padding: 20px; }
.glass-btn  { border-radius: 12px; padding: 12px 20px; cursor: pointer;
  font-family: var(--ff-body); font-weight: 500; font-size: 15px; color: var(--text);
  background: var(--glass-fill); border: var(--glass-edge);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  transition: transform .2s ease-out, box-shadow .2s ease-out, background .2s; }
.glass-btn:hover { transform: scale(1.04); box-shadow: 0 0 10px rgba(255,255,255,0.3); }
.glass-btn:active { transform: scale(.98); opacity: .85; }

.pill {
  border-radius: 999px; padding: 8px 16px; font-family: var(--ff-body);
  font-weight: 400; font-size: 14px; color: var(--text);
  background: rgba(255,255,255,0.12); border: var(--glass-edge);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  transition: transform .2s ease-out, box-shadow .2s, background .2s, color .2s;
  white-space: nowrap; cursor: default;
}
.pill.active, .pill[aria-selected="true"] { background: #fff; color: #000; border-color: #fff; }
.pill.clickable { cursor: pointer; }
.pill.clickable:hover { transform: scale(1.05); box-shadow: 0 0 10px rgba(255,255,255,0.3); }

/* =========================== CTA / APP STORE ============================= */
.cta-primary {
  background: var(--brand-cream); color: #000; border: none;
  border-radius: 12px; padding: 13px 24px; cursor: pointer;
  font-family: var(--ff-body); font-weight: 500; font-size: 15px;
  transition: transform .2s ease-out, box-shadow .2s;
}
.cta-primary:hover { transform: scale(1.04); box-shadow: 0 0 16px rgba(244,241,234,0.4); }
.cta-primary:active { transform: scale(.98); opacity: .9; }

.appstore-badge {
  display: inline-flex; align-items: center; gap: 12px;
  background: #000; border: var(--glass-edge); border-radius: 14px;
  padding: 12px 22px; cursor: pointer;
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  transition: transform .2s ease-out, box-shadow .2s;
}
.appstore-badge:hover { transform: scale(1.03); box-shadow: 0 0 14px rgba(255,255,255,0.3); }
.appstore-badge .apple-glyph { font-size: 30px; line-height: 1; color: #fff; }
.appstore-badge .as-small { font-size: 11px; color: rgba(255,255,255,0.7); letter-spacing: .02em; }
.appstore-badge .as-big { font-family: var(--ff-display); font-weight: 500; font-size: 20px;
  letter-spacing: .02em; color: #fff; line-height: 1.05; }

/* =========================== BRAND WORDMARK ============================= */
.wordmark {
  font-family: var(--ff-display); font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--brand-cream); display: inline-flex;
  align-items: baseline; gap: 0.16em; white-space: nowrap;
}
.wordmark .bk { color: var(--brand-cream); opacity: .85; }

/* =========================== PULSE LOADER =============================== */
.pulse { position: relative; width: 96px; height: 96px; }
.pulse .ring, .pulse .dot {
  position: absolute; inset: 0; margin: auto; border-radius: 50%;
  border: 1.5px solid var(--brand-cream);
}
.pulse .r-outer { width: 96px; height: 96px; opacity: .42;
  animation: pulse-outer .75s ease-in-out infinite alternate; }
.pulse .r-mid   { width: 64px; height: 64px; opacity: .70;
  animation: pulse-mid .75s ease-in-out .10s infinite alternate; }
.pulse .r-inner { width: 36px; height: 36px; opacity: 1;
  animation: pulse-inner .75s ease-in-out .20s infinite alternate; }
.pulse .dot { width: 10px; height: 10px; background: var(--brand-cream); border: none;
  animation: pulse-dot .75s ease-in-out infinite alternate; }
@keyframes pulse-outer { from { transform: scale(1); } to { transform: scale(1.18); } }
@keyframes pulse-mid   { from { transform: scale(1); } to { transform: scale(1.12); } }
@keyframes pulse-inner { from { transform: scale(1); } to { transform: scale(1.07); } }
@keyframes pulse-dot   { from { transform: scale(1); opacity: .85; } to { transform: scale(1.18); opacity: 1; } }

/* =========================== PRELOADER =============================== */
#preloader {
  position: fixed; inset: 0; z-index: 1000; background: #000;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 28px; transition: opacity .6s ease; 
}
#preloader.hidden { opacity: 0; pointer-events: none; }
#preloader .pl-word { font-size: clamp(28px, 5vw, 44px); }
#preloader .pl-cap { color: rgba(255,255,255,0.45); font-size: 13px; letter-spacing: .2em;
  text-transform: uppercase; font-family: var(--ff-display); }

/* =========================== NAV =============================== */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px clamp(20px, 4vw, 48px);
  transition: background .4s ease, border-color .4s ease, backdrop-filter .4s ease;
  border-bottom: 1px solid transparent;
}
#nav.scrolled {
  background: rgba(0,0,0,0.5);
  -webkit-backdrop-filter: blur(18px) saturate(120%); backdrop-filter: blur(18px) saturate(120%);
  border-bottom: 1px solid var(--hairline);
}
#nav.dim { opacity: .35; }
#nav .nav-word { font-size: 19px; }
#nav .nav-right { display: flex; align-items: center; gap: 10px; }
#nav .nav-links { display: flex; align-items: center; gap: 6px; }
#nav .nav-link {
  font-family: var(--ff-body); font-size: 14px; color: rgba(255,255,255,0.8);
  padding: 8px 14px; border-radius: 999px; cursor: pointer; transition: transform .2s, background .2s, box-shadow .2s;
}
#nav .nav-link:hover { transform: scale(1.04); background: rgba(255,255,255,0.06); box-shadow: 0 0 10px rgba(255,255,255,0.18); }
.lang-toggle {
  display: inline-flex; align-items: center; border-radius: 999px;
  border: var(--glass-edge); background: rgba(255,255,255,0.06); overflow: hidden;
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  font-family: var(--ff-display); letter-spacing: .08em; font-size: 12px;
}
.lang-toggle button { background: none; border: none; color: rgba(255,255,255,0.55);
  padding: 7px 12px; cursor: pointer; font: inherit; text-transform: uppercase; transition: color .2s, background .2s; }
.lang-toggle button.active { background: #fff; color: #000; }
.lang-toggle .sep { color: rgba(255,255,255,0.25); padding: 0 2px; }
.nav-cta { font-size: 13px; padding: 9px 16px; }

/* hamburger (mobile) */
.hamburger { display: none; background: none; border: var(--glass-edge); border-radius: 10px;
  width: 40px; height: 40px; cursor: pointer; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.06); }
.hamburger span { display: block; width: 18px; height: 1.5px; background: #fff; position: relative; }
.hamburger span::before, .hamburger span::after { content: ""; position: absolute; left: 0; width: 18px; height: 1.5px; background: #fff; }
.hamburger span::before { top: -6px; } .hamburger span::after { top: 6px; }

/* =========================== STAGE / CANVAS ============================ */
/* centered display titles need a definite width or they mis-measure height
   in a flex column (and their EN alt then overlaps) */
#enter .display-title { max-width: 20ch; margin: 0 auto; }
#close-sec .display-title { max-width: 15ch; margin: 0 auto; }
.price-head .display-title { max-width: 28ch; margin: 0 auto; }

#stage { position: fixed; inset: 0; z-index: 1; }
#scene-canvas { position: fixed; inset: 0; width: 100vw; height: 100vh; display: block; z-index: 1; }
#spacer { position: relative; z-index: 2; width: 100%; height: 640vh; }

/* overlay layer for cinematic beats — pinned full viewport, pointer pass-through */
#overlays { position: fixed; inset: 0; z-index: 50; pointer-events: none; }
.beat {
  position: absolute; inset: 0; display: flex; align-items: center;
  opacity: 0; visibility: hidden; will-change: opacity, transform;
}
.beat .inner { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 clamp(24px, 6vw, 96px); }
.beat .pointer { pointer-events: auto; }

/* hero / beat 1 */
#beat1 { flex-direction: column; justify-content: center; text-align: center; }
#beat1 .inner { display: flex; flex-direction: column; align-items: center; gap: clamp(12px, 1.8vh, 22px); }
#beat1 .hero-word { font-size: clamp(26px, 4.4vw, 52px); will-change: transform, opacity; }
#beat1 .display-title { font-size: clamp(30px, 4.6vw, 58px); max-width: 20ch; line-height: 1.04; }
#beat1 .alt { font-size: clamp(13px, 1.5vw, 18px); }
#beat1 .body { max-width: 58ch; }
.scroll-cue { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 18px; }
.scroll-cue .line { width: 1px; height: 46px; background: linear-gradient(to bottom, rgba(255,255,255,0.6), transparent);
  animation: bob 2s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: translateY(0); opacity: .8; } 50% { transform: translateY(8px); opacity: .35; } }

/* beat 2 / beat 4 text blocks anchored bottom-left for cinematic framing */
.beat.anchor-bl { align-items: flex-end; }
.beat.anchor-bl .inner { padding-bottom: clamp(64px, 12vh, 140px); }
.beat .copyblock { max-width: 760px; display: flex; flex-direction: column; gap: 18px; }
.beat .copyblock .display-title { font-size: clamp(26px, 3.4vw, 46px); line-height: 1.06; max-width: 19ch; }

/* enter title (welcome inside the frame) */
#enter { justify-content: center; text-align: center; }
#enter .inner { display: flex; justify-content: center; }

/* =========================== APP LAYER (beat 3) ======================== */
#applayer {
  position: fixed; inset: 0; z-index: 40; opacity: 0; visibility: hidden;
  display: flex; align-items: center; justify-content: center;
}
/* faint TV bezel framing the viewport while "inside the TV" */
#app-bezel { position: fixed; inset: clamp(12px, 2.4vw, 30px); z-index: 45; pointer-events: none;
  border: 2px solid rgba(20,20,20,0.9); border-radius: 14px;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.05), inset 0 0 120px rgba(0,0,0,0.7);
  opacity: 0; visibility: hidden; }

.cap-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden;
  display: flex; align-items: center; justify-content: center; }
.cap-art { position: absolute; inset: 0; overflow: hidden; }
.cap-art img { width: 100%; height: 100%; object-fit: cover; }
.cap-art::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.35) 45%, rgba(0,0,0,0.15) 100%); }
.kb { animation: kenburns 18s linear infinite alternate; }
@keyframes kenburns { from { transform: scale(1.05) translate(0,0); } to { transform: scale(1.18) translate(-3%, -2%); } }

.cap-card { position: absolute; z-index: 6; top: clamp(88px, 15vh, 140px); left: clamp(24px,6vw,96px);
  max-width: 440px; display: flex; flex-direction: column; gap: 14px; }
.cap-card .tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.cap-progress { position: fixed; left: clamp(24px,6vw,96px); bottom: clamp(20px,4vh,40px);
  display: flex; gap: 6px; z-index: 46; opacity: 0; transition: opacity .4s; }
.cap-progress .seg { width: 26px; height: 2px; background: rgba(255,255,255,0.2); border-radius: 2px; transition: background .3s; }
.cap-progress .seg.on { background: var(--brand-cream); }

/* =========================== APP CHROME MOCKS ========================== */
/* Home hero carousel */
.appchrome { position: absolute; z-index: 3; }
.home-rail { position: absolute; left: 0; right: 0; bottom: clamp(24px,4.5vh,40px);
  display: flex; gap: 14px; padding: 0 clamp(24px,6vw,96px); overflow: hidden; justify-content: flex-end; }
.home-slide .cap-card { margin-bottom: clamp(150px, 24vh, 220px); }
.home-chip { flex: 0 0 auto; width: 168px; height: 104px; border-radius: 12px; overflow: hidden;
  position: relative; border: var(--glass-edge); transition: transform .2s; }
.home-chip img { width: 100%; height: 100%; object-fit: cover; }
.home-chip .lbl { position: absolute; left: 10px; bottom: 8px; font-family: var(--ff-display);
  text-transform: uppercase; letter-spacing: .04em; font-size: 13px; z-index: 2; }
.home-chip::after { content:""; position:absolute; inset:0; background: linear-gradient(to top, rgba(0,0,0,.7), transparent 60%); }
.home-chip.featured { box-shadow: 0 0 0 2px #fff, 0 0 14px rgba(255,255,255,.3); }

/* gallery grid wall */
.grid-wall { position: absolute; inset: 0; display: grid; gap: 2px;
  grid-template-columns: repeat(4, 1fr); grid-auto-rows: 1fr; }
.grid-wall .tile { position: relative; overflow: hidden; }
.grid-wall .tile img { width: 100%; height: 100%; object-fit: cover; }
.grid-wall .tile .lbl { position: absolute; left: 10px; bottom: 8px; z-index: 2;
  font-family: var(--ff-display); text-transform: uppercase; letter-spacing: .04em; font-size: 12px;
  color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.8); }
.grid-wall .tile::after { content:""; position:absolute; inset:0;
  background: linear-gradient(to top, rgba(0,0,0,.6), transparent 55%); }
.grid-veil { position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(to right, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.25) 40%, rgba(0,0,0,0.55) 100%); }

/* bottom shelf (fullscreen controls) */
.bottom-shelf { position: absolute; left: 50%; transform: translateX(-50%);
  bottom: clamp(28px,6vh,70px); display: flex; gap: 10px; align-items: center; z-index: 4;
  padding: 12px 16px; border-radius: 18px; }

/* now-playing card (music) */
.np-card { position: absolute; left: clamp(24px,6vw,96px); bottom: clamp(48px,10vh,120px);
  z-index: 4; width: min(420px, 80vw); border-radius: 16px; padding: 18px; display: flex; gap: 16px; align-items: center; }
.np-card .cover { width: 84px; height: 84px; border-radius: 10px; overflow: hidden; flex: 0 0 auto; border: var(--glass-edge); }
.np-card .cover img { width: 100%; height: 100%; object-fit: cover; }
.np-meta { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
.np-meta .t { font-family: var(--ff-display); font-size: 18px; letter-spacing: .03em; text-transform: uppercase; }
.np-meta .a { font-size: 13px; color: var(--text-3); }
.np-controls { display: flex; gap: 14px; margin-top: 6px; align-items: center; }
.np-controls .ctl { width: 30px; height: 30px; display: grid; place-items: center; color: #fff; cursor: pointer; opacity: .85; }
.music-line { position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: linear-gradient(90deg, var(--music-start), var(--music-end)); z-index: 5; }
.source-pills { position: absolute; right: clamp(24px,6vw,96px); top: clamp(80px,14vh,140px);
  display: flex; flex-direction: column; gap: 8px; z-index: 4; align-items: flex-end; }

/* now-playing detail (magazine) — pinned bottom-right so it clears the card */
.detail-wrap { position: absolute; z-index: 3; right: clamp(24px,6vw,96px); bottom: clamp(44px,9vh,100px);
  display: grid; grid-template-columns: 190px 1fr; gap: clamp(20px,3vw,40px);
  width: min(580px, 80vw); align-items: center; }
.detail-cover { aspect-ratio: 1; border-radius: 14px; overflow: hidden; border: var(--glass-edge); position: relative; }
.detail-cover img { width: 100%; height: 100%; object-fit: cover; }
.detail-right { display: flex; flex-direction: column; gap: 16px; }
.badge-quality { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  padding: 5px 12px; border-radius: 999px; font-family: var(--ff-body); font-size: 12px; font-weight: 500;
  color: #1a1300; background: linear-gradient(90deg, var(--premium-start), var(--premium-end)); }
.person-row { display: flex; gap: 12px; flex-wrap: wrap; }
.person { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 72px; }
.person .ph { width: 56px; height: 56px; border-radius: 50%; overflow: hidden; border: var(--glass-edge); background: #161616; }
.person .ph img { width: 100%; height: 100%; object-fit: cover; }
.person .nm { font-size: 11px; color: var(--text-3); text-align: center; line-height: 1.3; }
.sim-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.press-strip { display: flex; gap: 8px; flex-wrap: wrap; margin: 2px 0; }
.press-thumb { width: 50px; height: 64px; border-radius: 8px; overflow: hidden; border: var(--glass-edge); flex: 0 0 auto; }
.press-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* =========================== AMBIENT AUDIO DOCK ======================== */
.audio-dock {
  position: fixed; right: clamp(16px, 3vw, 28px); bottom: clamp(16px, 3vw, 28px); z-index: 215;
  display: flex; align-items: center; gap: 12px; padding: 9px 14px 9px 13px; border-radius: 999px;
  background: rgba(18,18,20,0.62); border: var(--glass-edge); color: #fff; cursor: pointer;
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  font-family: var(--ff-body); transition: transform .2s ease-out, box-shadow .2s;
}
.audio-dock:hover { transform: scale(1.03); box-shadow: 0 0 18px rgba(252,60,68,0.28); }
.audio-dock:active { transform: scale(.98); }
.audio-dock .ad-meta { display: flex; flex-direction: column; line-height: 1.12; text-align: left; max-width: 200px; }
.audio-dock .ad-song { font-family: var(--ff-display); text-transform: uppercase; letter-spacing: .04em; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.audio-dock .ad-artist { font-size: 11px; color: var(--text-3); white-space: nowrap; }
.audio-dock .ad-ic { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: rgba(255,255,255,0.08); }
.audio-dock .ad-ic .icon { width: 14px; height: 14px; }
.audio-dock .eq { display: flex; align-items: flex-end; gap: 2.5px; height: 16px; }
.audio-dock .eq i { width: 3px; height: 4px; border-radius: 2px; background: linear-gradient(var(--music-start), var(--music-end)); }
body.audio-playing .audio-dock .eq i { animation: eqbar .9s ease-in-out infinite; }
.audio-dock .eq i:nth-child(2) { animation-delay: .18s; }
.audio-dock .eq i:nth-child(3) { animation-delay: .36s; }
.audio-dock .eq i:nth-child(4) { animation-delay: .54s; }
@keyframes eqbar { 0%, 100% { height: 4px; } 50% { height: 15px; } }
@media (max-width: 600px) { .audio-dock .ad-meta { display: none; } }

/* info overlay (on-screen) */
.info-overlay { position: absolute; left: 50%; transform: translateX(-50%); bottom: clamp(40px,8vh,90px);
  z-index: 4; max-width: 380px; width: min(380px, 70vw); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.info-overlay .io-title { font-family: var(--ff-display); font-size: 22px; text-transform: uppercase; letter-spacing: .04em; }
.info-overlay .io-row { font-size: 13px; color: var(--text-3); }
.transport { position: absolute; right: clamp(24px,6vw,96px); bottom: clamp(48px,10vh,120px); z-index: 4;
  display: flex; gap: 10px; padding: 10px 14px; border-radius: 16px; align-items: center; }
.transport .ctl { width: 30px; height: 30px; display: grid; place-items: center; cursor: pointer; opacity: .85; }
.prem-hint { position: absolute; right: clamp(24px,6vw,96px); top: clamp(80px,14vh,140px); z-index: 4;
  padding: 6px 14px; border-radius: 999px; font-size: 12px; font-weight: 500; color: #1a1300;
  background: linear-gradient(90deg, var(--premium-start), var(--premium-end)); }
.icon { width: 16px; height: 16px; fill: currentColor; }

/* =========================== MULTI-TV CARD ============================= */
#beat4 .mtv-card { position: absolute; right: clamp(24px,6vw,80px); top: 50%; transform: translateY(-50%);
  width: min(320px, 82vw); border-radius: 16px; padding: 20px; z-index: 60; pointer-events: auto; }
.mtv-card .mtv-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.mtv-remote { display: flex; gap: 12px; justify-content: center; padding: 12px 0; margin-bottom: 14px;
  border-radius: 12px; background: rgba(255,255,255,0.04); border: var(--glass-edge); }
.mtv-remote .ctl { width: 34px; height: 34px; display: grid; place-items: center; cursor: pointer; }
.device-list { display: flex; flex-direction: column; gap: 8px; }
.device { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px;
  border-radius: 10px; background: rgba(255,255,255,0.04); border: var(--glass-edge); font-size: 14px; }
.device .badge-master { font-size: 11px; font-weight: 500; padding: 3px 10px; border-radius: 999px; background: #fff; color: #000; }
.device .dot-on { width: 7px; height: 7px; border-radius: 50%; background: var(--brand-cream); box-shadow: 0 0 8px var(--brand-cream); }

/* =========================== PRICING (DOM section) ===================== */
#pricing-sec, #close-sec { position: relative; z-index: 70; background: #000; }
.section-pad { padding: clamp(80px,12vh,140px) clamp(24px,6vw,96px); max-width: 1100px; margin: 0 auto; }
.price-head { text-align: center; display: flex; flex-direction: column; gap: 14px; align-items: center; margin-bottom: 48px; }
.plan-toggle { display: inline-flex; border-radius: 999px; border: var(--glass-edge); overflow: hidden; }
.plan-toggle button { background: rgba(255,255,255,0.06); border: none; color: rgba(255,255,255,0.6);
  padding: 9px 18px; cursor: pointer; font-family: var(--ff-body); font-size: 14px; transition: background .2s, color .2s; white-space: nowrap; }
.plan-toggle button.active { background: #fff; color: #000; }
.price-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; position: relative; }
.price-card { border-radius: 16px; padding: 32px; display: flex; flex-direction: column; gap: 18px; position: relative; }
.price-card.premium {
  background:
    linear-gradient(#100e0a, #100e0a) padding-box,
    linear-gradient(135deg, var(--premium-start), var(--premium-end)) border-box;
  border: 1.5px solid transparent; }
.price-card .pc-name { font-family: var(--ff-display); text-transform: uppercase; letter-spacing: .06em; font-size: 22px; }
.price-card .pc-price { font-family: var(--ff-display); font-size: clamp(34px,5vw,46px); letter-spacing: .02em; }
.price-card .pc-sub { color: var(--text-3); font-size: 15px; }
.price-card ul { list-style: none; display: flex; flex-direction: column; gap: 10px; margin: 4px 0; }
.price-card li { font-size: 15px; color: rgba(255,255,255,0.82); display: flex; gap: 10px; align-items: flex-start; }
.price-card li::before { content: ""; flex: 0 0 auto; width: 6px; height: 6px; border-radius: 50%; background: var(--brand-cream); margin-top: 8px; }
.price-card.premium li::before { background: var(--premium-start); }
.badge-prem { align-self: flex-start; padding: 4px 12px; border-radius: 999px; font-family: var(--ff-body);
  font-size: 12px; font-weight: 600; color: #1a1300; background: linear-gradient(90deg, var(--premium-start), var(--premium-end)); }
.price-foot { text-align: center; margin-top: 36px; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.watermark-s { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; z-index: 0; opacity: .04; }
.watermark-s span { font-family: var(--ff-display); font-weight: 600; font-size: 46vh; color: var(--brand-cream); line-height: 1; }

/* =========================== CLOSE / FOOTER ============================ */
#close-sec { min-height: 100vh; display: flex; flex-direction: column; justify-content: space-between; }
.close-hero { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: 24px; padding: clamp(80px,14vh,160px) clamp(24px,6vw,96px); position: relative; overflow: hidden; }
.close-montage { position: absolute; inset: 0; z-index: 0; }
.close-montage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.close-montage::after { content:""; position:absolute; inset:0; background: rgba(0,0,0,0.62); }
.close-hero > * { position: relative; z-index: 1; }
.close-hero .close-word { font-size: clamp(26px,5vw,40px); }

footer { border-top: 1px solid var(--hairline); padding: clamp(40px,7vh,72px) clamp(24px,6vw,96px); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr auto; gap: 40px; max-width: 1100px; margin: 0 auto; align-items: start; }
.footer-col h4 { font-family: var(--ff-display); text-transform: uppercase; letter-spacing: .12em; font-size: 12px;
  color: rgba(255,255,255,0.5); margin-bottom: 14px; font-weight: 500; }
.footer-col a { display: block; font-size: 14px; color: rgba(255,255,255,0.75); padding: 5px 0; cursor: pointer; transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-brand .tag { color: var(--text-3); font-size: 14px; margin-top: 12px; max-width: 28ch; }
.footer-bottom { max-width: 1100px; margin: 40px auto 0; padding-top: 24px; border-top: 1px solid var(--hairline);
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-bottom .cap { color: var(--text-2); font-size: 13px; }

/* =========================== REDUCED-MOTION / FALLBACK ================= */
#fallback { display: none; }
body.fallback #stage, body.fallback #overlays, body.fallback #applayer,
body.fallback #app-bezel, body.fallback #spacer, body.fallback .cap-progress { display: none !important; }
body.fallback #fallback { display: block; position: relative; z-index: 5; }
.fb-section { min-height: 100vh; display: flex; align-items: center; position: relative; overflow: hidden;
  padding: clamp(80px,12vh,140px) clamp(24px,6vw,96px); }
.fb-section .fb-art { position: absolute; inset: 0; z-index: 0; }
.fb-section .fb-art img { width: 100%; height: 100%; object-fit: cover; }
.fb-section .fb-art::after { content:""; position:absolute; inset:0;
  background: linear-gradient(to right, rgba(0,0,0,0.86) 0%, rgba(0,0,0,0.6) 45%, rgba(0,0,0,0.4) 100%); }
.fb-section .fb-inner { position: relative; z-index: 1; max-width: 1100px; margin: 0 auto; width: 100%;
  display: flex; flex-direction: column; gap: 18px; }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }

/* =========================== RESPONSIVE =============================== */
@media (max-width: 1023px) {
  #beat4 .mtv-card { right: clamp(16px,4vw,36px); transform: none; top: clamp(80px,12vh,112px); bottom: auto; width: min(280px, 64vw); }
}
@media (max-width: 767px) {
  #nav .nav-links { display: none; }
  #nav .nav-cta { display: none; }
  .hamburger { display: flex; }
  .nav-word.full { display: none; }
  .grid-wall { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .price-grid { grid-template-columns: 1fr; }
  .cap-card { margin-left: clamp(20px,6vw,40px); margin-right: 20px; }
  /* drop expensive blur on small screens for perf */
  .glass, .pill, .glass-btn, .np-card, .info-overlay, .transport, .bottom-shelf, #beat4 .mtv-card {
    -webkit-backdrop-filter: none !important; backdrop-filter: none !important; background: rgba(20,20,20,0.82); }
}

/* =========================================================================
   MOBILE CINEMATIC — portrait phones now run the full 3D journey, so the
   in-app slide chrome (originally positioned for wide screens) is reflowed to
   a clean top-text / bottom-mock stack. Secondary floaters are hidden so a
   narrow screen never has colliding widgets.
   ========================================================================= */
@media (max-width: 640px) {
  /* shared info card → pinned near the top, full width */
  .cap-card { inset: clamp(68px, 11vh, 96px) 16px auto 16px; margin: 0; max-width: none; gap: 10px; }
  .cap-card .eyebrow { font-size: 12px; }
  .cap-card .section-title { font-size: clamp(19px, 5.6vw, 25px); }
  .cap-card .body { font-size: 13.5px; line-height: 1.5; }
  .cap-card .tags { gap: 6px; }
  .cap-card .pill { padding: 6px 11px; font-size: 12.5px; }

  /* hide secondary floating widgets that would collide on a narrow screen */
  .source-pills, .prem-hint, .transport, .press-strip { display: none !important; }

  /* HOME — carousel rail a touch tighter */
  .home-rail { bottom: 18px; gap: 10px; padding: 0 16px; justify-content: flex-start; }
  .home-chip { width: 128px; height: 80px; }

  /* GALLERIES — darken the top of the grid so the overlaid card text stays legible */
  .grid-veil { background: linear-gradient(to bottom, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.35) 42%, rgba(0,0,0,0.6) 100%); }

  /* FULLSCREEN — control shelf full width, centered, wraps */
  .bottom-shelf { left: 16px; right: 16px; transform: none; bottom: 22px; justify-content: center; flex-wrap: wrap; }

  /* MUSIC — now-playing card spans the bottom */
  .np-card { left: 16px; right: 16px; width: auto; bottom: 22px; padding: 14px; gap: 12px; }
  .np-card .cover { width: 60px; height: 60px; }

  /* DETAIL — magazine becomes a compact cover + text row pinned to the bottom */
  .detail-wrap { left: 16px; right: 16px; bottom: 20px; width: auto;
    grid-template-columns: 72px 1fr; gap: 14px; align-items: center; }
  .detail-right { gap: 8px; }
  .detail-right .section-title { font-size: 19px; }
  .detail-right .caption { font-size: 12px; }
  .badge-quality { font-size: 11px; padding: 4px 10px; }

  /* ON-SCREEN — artwork info card spans the bottom */
  .info-overlay { left: 16px; right: 16px; width: auto; max-width: none; transform: none; bottom: 22px; padding: 16px; }

  /* MULTI-TV — copy at top, compact control card at the bottom. Hide the
     feature chips + remote row so the long copy and the card both fit a phone. */
  #beat4.anchor-bl { align-items: flex-start; }
  #beat4 .inner { padding-top: clamp(72px, 11vh, 104px); padding-bottom: 0; }
  #beat4 .copyblock .display-title { font-size: clamp(21px, 5.6vw, 28px); }
  #beat4-chips { display: none !important; }
  #beat4 .mtv-card { position: absolute; left: 16px; right: 16px; top: auto; bottom: 18px;
    transform: none; width: auto; padding: 14px 16px; }
  #beat4 .mtv-card .mtv-remote { display: none; }
  #beat4 .mtv-card .mtv-head { margin-bottom: 10px; }
  #beat4 .device { padding: 9px 12px; font-size: 13px; }

  /* shrink long beat copy (beat 2 & 4) so it never collides with bottom chrome */
  #beat2 .copyblock .display-title { font-size: clamp(22px, 6vw, 30px); }
  .beat .copyblock .body { font-size: 13.5px; line-height: 1.5; }

  /* progress segments clear of the audio dock */
  .cap-progress { left: 16px; bottom: 14px; }

  /* lift every bottom-pinned slide card above the floating audio dock so its
     bottom-right corner is never covered (the dock + progress live in the strip below) */
  .np-card, .info-overlay, .detail-wrap, .bottom-shelf, #beat4 .mtv-card { bottom: 80px; }
}

/* mobile nav drawer */
#nav-drawer { position: fixed; inset: 0; z-index: 300; background: rgba(0,0,0,0.9);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  display: none; flex-direction: column; align-items: center; justify-content: center; gap: 22px; }
#nav-drawer.open { display: flex; }
#nav-drawer a { font-family: var(--ff-display); text-transform: uppercase; letter-spacing: .08em; font-size: 22px; color: #fff; cursor: pointer; }
#nav-drawer .close-x { position: absolute; top: 22px; right: 22px; font-size: 28px; color: #fff; cursor: pointer; background: none; border: none; }

@media (prefers-reduced-motion: reduce) {
  .kb, .scroll-cue .line, .pulse .ring, .pulse .dot, .audio-dock .eq i { animation: none !important; }
  .reveal { transition: opacity .4s ease; transform: none; }
}
