/* ==========================================================
   88 Keys Academy — Shrusti Vernekar
   ========================================================== */

:root {
  --ink: #0a090d;
  --ink-2: #111017;
  --ink-3: #18161f;
  --line: rgba(243, 234, 216, 0.1);
  --line-2: rgba(243, 234, 216, 0.18);
  --ivory: #f3ead8;
  --ivory-dim: rgba(243, 234, 216, 0.66);
  --ivory-faint: rgba(243, 234, 216, 0.4);
  --gold: #d6ad60;
  --gold-hi: #f4d58d;
  --gold-lo: #9c7a3c;
  --rose: #c98b8b;
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --gutter: clamp(16px, 5vw, 72px);
  --maxw: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--ivory);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.locked { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--gold); color: var(--ink); }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.08; margin: 0; letter-spacing: -0.01em; }
h2 { font-size: clamp(2.4rem, 5.5vw, 4.4rem); }
h2 em, h1 em { font-style: italic; color: var(--gold); }
p { margin: 0 0 1em; }

.eyebrow, .opus {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.4rem;
}
.opus::before { content: ""; display: inline-block; width: 28px; height: 1px; background: var(--gold); vertical-align: middle; margin-right: 14px; }
.nw { white-space: nowrap; }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--ivory-dim); max-width: 60ch; }

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 30px;
  border-radius: 100px;
  font-size: 0.82rem; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  transition: transform .4s var(--ease), background .4s var(--ease), color .4s, border-color .4s, box-shadow .4s;
  overflow: hidden;
  white-space: nowrap;
}
.btn-gold { background: linear-gradient(135deg, var(--gold-hi), var(--gold) 50%, var(--gold-lo)); color: #1a1408; box-shadow: 0 10px 40px -10px rgba(214, 173, 96, 0.55); }
.btn-gold::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.55) 50%, transparent 70%); transform: translateX(-120%); transition: transform .9s var(--ease); }
.btn-gold:hover::after { transform: translateX(120%); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 16px 50px -10px rgba(214, 173, 96, 0.75); }
.btn-ghost { border: 1px solid var(--line-2); color: var(--ivory); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-hi); transform: translateY(-2px); }
.btn-sm { padding: 11px 20px; font-size: 0.72rem; }
.btn-block { width: 100%; white-space: normal; text-align: center; line-height: 1.4; }
.btn-text { color: var(--ivory-dim); font-size: 0.85rem; letter-spacing: 0.08em; border-bottom: 1px solid transparent; padding: 4px 0; transition: color .3s, border-color .3s; }
.btn-text:hover { color: var(--gold-hi); border-color: var(--gold); }
.arrow { display: inline-block; transition: transform .4s var(--ease); }
.btn:hover .arrow { transform: translateY(3px); }
.btn-block:hover .arrow { transform: translateX(4px); }

/* ---------- Grain + vignette ---------- */
.grain {
  pointer-events: none; position: fixed; inset: -50%; z-index: 90; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0%,100% { transform: translate(0,0); } 20% { transform: translate(-5%,3%); } 40% { transform: translate(3%,-6%); }
  60% { transform: translate(-7%,2%); } 80% { transform: translate(5%,5%); }
}

/* ---------- Cursor ---------- */
.cursor-dot, .cursor-ring { position: fixed; top: 0; left: 0; pointer-events: none; z-index: 200; border-radius: 50%; opacity: 0; transition: opacity .3s; }
.cursor-dot { width: 6px; height: 6px; background: var(--gold-hi); margin: -3px 0 0 -3px; box-shadow: 0 0 12px var(--gold); }
.cursor-ring { width: 38px; height: 38px; border: 1px solid rgba(214,173,96,.5); margin: -19px 0 0 -19px; transition: opacity .3s, width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), background .35s; }
body.has-cursor .cursor-dot, body.has-cursor .cursor-ring { opacity: 1; }
body.cursor-hover .cursor-ring { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: rgba(214,173,96,.08); }

/* ---------- Progress ---------- */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 120; }
.progress span { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--gold-lo), var(--gold-hi)); transform-origin: left; transform: scaleX(0); box-shadow: 0 0 10px var(--gold); }

/* ---------- Click ripples ---------- */
#ripples { position: fixed; inset: 0; pointer-events: none; z-index: 150; overflow: hidden; }
.ripple { position: absolute; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; border: 1px solid var(--gold); animation: ripple 1.4s var(--ease) forwards; }
@keyframes ripple { to { transform: scale(18); opacity: 0; } }
.float-note { position: absolute; font-family: var(--serif); color: var(--gold-hi); font-size: 26px; text-shadow: 0 0 14px var(--gold); animation: floatNote 2.2s var(--ease) forwards; }
@keyframes floatNote { 0% { transform: translate(-50%,-50%) scale(.4) rotate(0); opacity: 0; } 15% { opacity: 1; } 100% { transform: translate(calc(-50% + var(--dx)), calc(-50% - 140px)) scale(1.1) rotate(var(--rot)); opacity: 0; } }

/* ==========================================================
   INTRO
   ========================================================== */
#intro { position: fixed; inset: 0; z-index: 500; display: grid; place-items: center; }
.curtain { position: absolute; top: 0; bottom: 0; width: 50.5%; background: radial-gradient(ellipse at center, #15131b 0%, #070609 80%); transition: transform 1.8s cubic-bezier(.77,0,.18,1); }
.curtain-left { left: 0; }
.curtain-right { right: 0; }
.curtain::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, rgba(255,255,255,.012) 0 2px, transparent 2px 60px); }
.intro-inner { position: relative; text-align: center; padding: 24px; transition: opacity .8s, transform 1.2s var(--ease); }
.intro-logo { display: block; width: min(340px, 68vw, 46vh); height: auto; margin: 0 auto; opacity: 0; animation: logoIn 2s .3s var(--ease) forwards; filter: drop-shadow(0 0 40px rgba(214,173,96,.18)); }
@keyframes logoIn { from { opacity: 0; transform: translateY(20px) scale(.96); filter: blur(6px) drop-shadow(0 0 40px rgba(214,173,96,0)); } to { opacity: 1; transform: none; filter: blur(0) drop-shadow(0 0 40px rgba(214,173,96,.18)); } }
.intro-rule { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 18px auto 22px; opacity: 0; animation: fadeUp 1.2s 1.1s var(--ease) forwards; }
.intro-rule span { width: 70px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.intro-rule span:last-child { transform: scaleX(-1); }
.intro-rule i { font-style: normal; color: var(--gold); }
.intro-line { color: var(--ivory-dim); font-size: .95rem; opacity: 0; animation: fadeUp 1.2s 1.3s var(--ease) forwards; }
.intro-actions { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 28px; opacity: 0; animation: fadeUp 1.2s 1.6s var(--ease) forwards; }
#intro.open .curtain-left { transform: translateX(-101%); }
#intro.open .curtain-right { transform: translateX(101%); }
#intro.open .intro-inner { opacity: 0; transform: scale(1.06); }
#intro.gone { display: none; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes sheen { to { background-position: -250% 0; } }

/* ==========================================================
   NAV
   ========================================================== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px var(--gutter);
  transition: padding .5s var(--ease), background .5s, border-color .5s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled { padding-top: 14px; padding-bottom: 14px; border-color: var(--line); }
/* blur lives on a pseudo-element: backdrop-filter on .nav itself would trap the fixed mobile menu inside the bar */
.nav::before { content: ""; position: absolute; inset: 0; z-index: -2; background: rgba(10, 9, 13, .72); backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3); opacity: 0; transition: opacity .5s; }
.nav.scrolled::before { opacity: 1; }
.menu-open .nav::before { opacity: 0; }
.menu-open .nav { border-color: transparent; }
body.menu-open { overflow: hidden; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { flex-shrink: 0; width: auto; height: 42px; }
.brand-text { font-family: var(--serif); font-size: 1.3rem; line-height: 1; display: flex; flex-direction: column; white-space: nowrap; }
.brand-text em { font-family: var(--sans); font-style: normal; font-size: .58rem; letter-spacing: .32em; text-transform: uppercase; color: var(--ivory-faint); margin-top: 5px; }
.nav-links { display: flex; gap: clamp(16px, 2.4vw, 36px); }
.nav-links a { white-space: nowrap; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ivory-dim); position: relative; padding: 6px 0; transition: color .3s; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gold); transform: scaleX(0); transition: transform .4s var(--ease); }
.nav-links a:hover { color: var(--ivory); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-right { display: flex; align-items: center; gap: 14px; }

.sound-toggle { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; transition: border-color .3s; }
.sound-toggle:hover { border-color: var(--gold); }
.bars { display: flex; align-items: flex-end; gap: 2px; height: 14px; }
.bars i { width: 2px; height: 100%; background: var(--gold); border-radius: 1px; animation: eq 1s ease-in-out infinite; transform-origin: bottom; }
.bars i:nth-child(2) { animation-delay: -.3s; } .bars i:nth-child(3) { animation-delay: -.6s; } .bars i:nth-child(4) { animation-delay: -.15s; }
.sound-toggle.muted .bars i { animation: none; transform: scaleY(.18); background: var(--ivory-faint); }
.sound-toggle.nudge { animation: nudge 1s ease-in-out 3; border-color: var(--gold); }
@keyframes nudge { 50% { box-shadow: 0 0 0 8px rgba(214,173,96,.25); transform: scale(1.08); } }
@keyframes eq { 0%,100% { transform: scaleY(.25); } 50% { transform: scaleY(1); } }

.menu-btn { display: none; width: 40px; height: 40px; position: relative; }
.menu-btn span { position: absolute; left: 10px; right: 10px; height: 1px; background: var(--ivory); transition: transform .4s var(--ease), top .4s var(--ease); }
.menu-btn span:first-child { top: 16px; } .menu-btn span:last-child { top: 23px; }
.menu-open .menu-btn span:first-child { top: 20px; transform: rotate(45deg); }
.menu-open .menu-btn span:last-child { top: 20px; transform: rotate(-45deg); }

/* ==========================================================
   HERO
   ========================================================== */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; padding: 120px var(--gutter) 140px;
  background: radial-gradient(ellipse 80% 60% at 50% 40%, #1d1822 0%, var(--ink) 70%); }
#strings { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: pan-y; }
.hero-vignette { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at center, transparent 30%, rgba(10,9,13,.55) 70%, var(--ink) 100%); }
.hero-content { position: relative; z-index: 2; max-width: 980px; pointer-events: none; }
.hero-content a, .hero-content button { pointer-events: auto; }
.hero-title { font-family: var(--serif); line-height: 1.08; letter-spacing: -0.01em; font-size: clamp(3rem, 8.4vw, 7.6rem); font-weight: 300; margin: 0 0 30px; text-shadow: 0 4px 40px rgba(10,9,13,.9); }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero-title .line > span { display: inline-block; transform: translateY(110%); transition: transform 1.6s var(--ease); }
.hero-title .line:nth-child(2) > span { transition-delay: .18s; }
body.ready .hero-title .line > span { transform: none; }
.shimmer { background: linear-gradient(120deg, var(--gold-lo), var(--gold-hi) 40%, #fff6dc 50%, var(--gold-hi) 60%, var(--gold-lo)); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent !important; animation: sheen 7s linear infinite; padding-right: .08em; }
.hero-sub { font-size: clamp(1.02rem, 1.5vw, 1.22rem); color: var(--ivory-dim); max-width: 600px; margin: 0 auto 40px; text-shadow: 0 2px 20px var(--ink); }
.hero-sub strong { color: var(--ivory); font-weight: 500; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-hint { position: absolute; bottom: 92px; left: 0; right: 0; z-index: 2; font-family: var(--serif); font-style: italic; font-size: 1.1rem; color: var(--ivory-faint); pointer-events: none; transition: opacity 1s; margin: 0; }
.hero-hint.done { opacity: 0; }
.spark { color: var(--gold); display: inline-block; animation: twinkle 2s ease-in-out infinite; }
@keyframes twinkle { 50% { transform: scale(1.4) rotate(45deg); opacity: .5; } }
.scroll-cue { position: absolute; bottom: 28px; left: 50%; width: 1px; height: 50px; background: var(--line-2); overflow: hidden; z-index: 2; }
.scroll-cue span { position: absolute; top: 0; left: 0; width: 100%; height: 40%; background: var(--gold); animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(-100%); } 100% { transform: translateY(260%); } }

/* ---------- Marquee ---------- */
.marquee { border-block: 1px solid var(--line); overflow: hidden; padding: 22px 0; background: var(--ink-2); }
.marquee-track { display: flex; align-items: center; gap: 40px; width: max-content; animation: marquee 48s linear infinite; }
.marquee span { font-family: var(--serif); font-style: italic; font-size: clamp(1.4rem, 2.6vw, 2.2rem); color: var(--ivory-dim); white-space: nowrap; }
.marquee i { font-style: normal; color: var(--gold); font-size: 1.2rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ==========================================================
   SECTIONS
   ========================================================== */
.section { padding: clamp(60px, 7.5vw, 104px) var(--gutter); max-width: calc(var(--maxw) + 2 * var(--gutter)); margin: 0 auto; position: relative; }
.section-head { margin-bottom: clamp(32px, 4vw, 56px); max-width: 800px; }
.section-head h2 { margin-bottom: 22px; }

.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1.2s var(--ease), transform 1.2s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Play ---------- */
.play .section-head { margin-inline: auto; text-align: center; }
.play .lead { margin-inline: auto; }
.stage { background: linear-gradient(180deg, var(--ink-2), #0d0c11); border: 1px solid var(--line); border-radius: 28px; padding: clamp(16px, 3vw, 34px); box-shadow: 0 60px 120px -40px rgba(0,0,0,.8), inset 0 1px 0 rgba(255,255,255,.04); position: relative; }
.stage::before { content: ""; position: absolute; inset: -1px; border-radius: 29px; padding: 1px; background: linear-gradient(160deg, rgba(214,173,96,.5), transparent 30%, transparent 70%, rgba(214,173,96,.3)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.stage-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.songs { display: flex; flex-wrap: wrap; gap: 8px; }
.song { padding: 10px 18px; border-radius: 100px; border: 1px solid var(--line); font-family: var(--serif); font-size: 1.12rem; color: var(--ivory-dim); transition: all .35s var(--ease); line-height: 1.2; }
.song small { font-family: var(--sans); font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ivory-faint); margin-left: 6px; }
.song:hover { border-color: var(--line-2); color: var(--ivory); }
.song.active { border-color: var(--gold); color: var(--gold-hi); background: rgba(214,173,96,.08); }
.modes { display: flex; gap: 10px; }
.modes .btn.on { box-shadow: 0 0 0 2px var(--ink), 0 0 0 3px var(--gold); }

.guide { display: flex; align-items: center; gap: 20px; margin-bottom: 10px; min-height: 30px; }
.guide-text { font-family: var(--serif); font-style: italic; font-size: 1.2rem; color: var(--ivory-dim); flex: 1; }
.guide-text b { font-style: normal; color: var(--gold-hi); font-weight: 500; font-family: var(--sans); font-size: .9rem; padding: 2px 8px; border: 1px solid var(--gold-lo); border-radius: 6px; margin: 0 2px; }
.guide-progress { width: min(240px, 30%); height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.guide-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold-lo), var(--gold-hi)); transition: width .4s var(--ease); box-shadow: 0 0 10px var(--gold); }

.piano-wrap { border-radius: 16px; overflow: hidden; background: #050507; border: 1px solid var(--line); }
.piano-scroll { overflow-x: auto; scrollbar-width: thin; scrollbar-color: var(--gold-lo) transparent; }
.piano-inner { position: relative; min-width: 760px; }
#waterfall { display: block; width: 100%; height: clamp(110px, 14vw, 180px); background: linear-gradient(180deg, #050507 0%, #0b0a10 100%); }
.piano { position: relative; display: flex; height: clamp(170px, 18vw, 230px); background: #000; padding-top: 6px; border-top: 2px solid var(--gold-lo); box-shadow: inset 0 10px 18px -8px rgba(0,0,0,.9); user-select: none; -webkit-user-select: none; touch-action: none; }
.key { position: relative; cursor: pointer; }
.key.white { flex: 1; margin: 0 1px; border-radius: 0 0 7px 7px; background: linear-gradient(180deg, #e9e3d6 0%, #fbf8f1 70%, #ece5d6 100%); box-shadow: inset 0 -6px 0 #d4ccbb, 0 2px 3px rgba(0,0,0,.5); transition: background .12s, box-shadow .12s, transform .12s; transform-origin: top; }
.key.black { position: absolute; top: 6px; z-index: 2; height: 62%; border-radius: 0 0 5px 5px; background: linear-gradient(180deg, #1a1a1f 0%, #2a2930 85%, #18171c 100%); box-shadow: inset 0 -5px 0 #0b0b0e, inset 1px 0 0 rgba(255,255,255,.08), 0 4px 8px rgba(0,0,0,.6); transition: background .12s, box-shadow .12s, transform .12s; transform-origin: top; }
.key .lbl { position: absolute; bottom: 12px; left: 0; right: 0; text-align: center; font-size: .66rem; letter-spacing: .06em; font-weight: 600; color: rgba(10,9,13,.38); pointer-events: none; }
.key .nn { position: absolute; bottom: 30px; left: 0; right: 0; text-align: center; font-family: var(--serif); font-size: .9rem; color: rgba(10,9,13,.28); pointer-events: none; }
.key.black .lbl { color: rgba(243,234,216,.35); bottom: 8px; }
.key.white.down { background: linear-gradient(180deg, #e0c58c 0%, #f4d58d 60%, #d9b56a 100%); box-shadow: inset 0 -2px 0 #b08a46, 0 0 30px rgba(244,213,141,.6); transform: scaleY(.985); }
.key.black.down { background: linear-gradient(180deg, #8a6a30 0%, #d6ad60 100%); box-shadow: inset 0 -2px 0 #6a5020, 0 0 24px rgba(244,213,141,.6); transform: scaleY(.98); }
.key.hint::after { content: ""; position: absolute; left: 50%; bottom: 52px; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: var(--gold-hi); box-shadow: 0 0 0 0 rgba(244,213,141,.7), 0 0 20px var(--gold); animation: pulse 1.2s ease-out infinite; }
.key.black.hint::after { bottom: 28px; width: 10px; height: 10px; margin-left: -5px; }
.key.white.hint { background: linear-gradient(180deg, #e9e3d6 0%, #fff4d6 70%, #f2dfb0 100%); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(244,213,141,.7), 0 0 20px var(--gold); } 100% { box-shadow: 0 0 0 18px rgba(244,213,141,0), 0 0 20px var(--gold); } }
.key.wrong { animation: shake .35s; }
@keyframes shake { 25% { transform: translateX(-3px); } 75% { transform: translateX(3px); } }
.keys-hint { margin: 16px 0 0; text-align: center; font-size: .78rem; color: var(--ivory-faint); }
kbd { font-family: var(--sans); font-size: .7rem; padding: 2px 7px; border: 1px solid var(--line-2); border-radius: 5px; color: var(--ivory-dim); background: var(--ink-3); }

.finale { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 24px; background: rgba(5,5,7,.7); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); opacity: 0; visibility: hidden; transition: opacity .6s, visibility .6s; }
.finale.show { opacity: 1; visibility: visible; }
.finale-card { max-width: 520px; text-align: center; padding: 50px 36px; border-radius: 28px; background: radial-gradient(ellipse at top, #241e18, var(--ink-2) 70%); border: 1px solid rgba(214,173,96,.35); box-shadow: 0 40px 120px rgba(0,0,0,.7), 0 0 80px -20px rgba(214,173,96,.35); transform: translateY(30px) scale(.96); transition: transform .8s var(--ease); }
.finale.show .finale-card { transform: none; }
.finale-card .opus::before { display: none; }
.finale-card h3 { font-size: clamp(2rem, 4.5vw, 2.8rem); margin-bottom: 16px; }
.finale-card p { color: var(--ivory-dim); }
.finale-actions { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 28px; }

/* ---------- Staff divider ---------- */
.staff { position: relative; height: 96px; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.staff svg { width: 100%; height: 100%; }
.staff-lines line { stroke: var(--line-2); stroke-width: 1; vector-effect: non-scaling-stroke; }
.staff-notes { position: absolute; inset: 0 var(--gutter); display: flex; justify-content: space-around; }
.staff-notes span { font-family: var(--serif); font-size: 46px; color: var(--gold); line-height: 1; transform: translateY(calc(var(--y) - 40px)); opacity: 0; transition: transform 1s var(--ease), opacity 1s; transition-delay: calc(var(--i) * 0.12s); text-shadow: 0 0 14px rgba(214,173,96,.4); }
.staff.in .staff-notes span { opacity: 1; transform: translateY(var(--y)); }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.portrait { position: relative; }
.portrait-frame { position: relative; aspect-ratio: 4/5; border-radius: 220px 220px 20px 20px; overflow: hidden; background: radial-gradient(ellipse at 50% 30%, #2a2219, #110f14 70%); border: 1px solid rgba(214,173,96,.3); }
.portrait-frame::after { content: ""; position: absolute; inset: 12px; border-radius: 210px 210px 12px 12px; border: 1px solid rgba(214,173,96,.18); pointer-events: none; }
.portrait-frame > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; filter: saturate(.9) contrast(1.05); }
.portrait-fallback { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  background:
    repeating-linear-gradient(90deg, transparent 0 calc(100%/7 - 1px), rgba(214,173,96,.08) calc(100%/7 - 1px) calc(100%/7)) bottom/100% 32% no-repeat,
    radial-gradient(ellipse at 50% 35%, rgba(214,173,96,.18), transparent 60%); }
.mono-logo { width: 62%; height: auto; filter: drop-shadow(0 0 30px rgba(214,173,96,.25)); }
.mono { font-family: var(--serif); font-style: italic; font-size: clamp(6rem, 12vw, 9rem); line-height: 1; color: var(--gold); text-shadow: 0 0 40px rgba(214,173,96,.35); }
.mono-sub { font-size: .7rem; letter-spacing: .4em; text-transform: uppercase; color: var(--ivory-faint); }
.portrait-caption { position: absolute; bottom: -22px; left: 50%; transform: translateX(-50%); white-space: nowrap; background: var(--ink); border: 1px solid var(--line-2); padding: 10px 22px; border-radius: 100px; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ivory-dim); z-index: 2; }
.portrait-caption span { color: var(--gold); margin-right: 6px; }
.about-copy h2 { margin-bottom: 14px; }
.about-sub { font-family: var(--serif); font-style: italic; font-size: clamp(1.4rem, 2.4vw, 1.8rem); color: var(--gold); margin-bottom: 26px; }
.about-copy > .about-close { color: var(--ivory); font-family: var(--serif); font-style: italic; font-size: 1.35rem; line-height: 1.5; }
.about-copy > p:not(.lead):not(.opus):not(.signature):not(.about-sub):not(.about-close) { color: var(--ivory-dim); max-width: 60ch; }
.pillars { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 24px; }
.pillars li { display: flex; gap: 20px; align-items: flex-start; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.pillar-icon { flex: 0 0 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(214,173,96,.4); display: grid; place-items: center; color: var(--gold); font-size: 1.3rem; font-family: var(--serif); }
.pillars strong { font-family: var(--serif); font-size: 1.35rem; font-weight: 500; display: block; margin-bottom: 2px; }
.pillars p { color: var(--ivory-dim); margin: 0; font-size: .95rem; }
.signature { font-family: var(--serif); font-style: italic; font-size: 2.4rem; color: var(--gold); margin: 36px 0 0; }

/* ---------- Journey ---------- */
.movements { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.movement { position: relative; padding: 38px 28px 32px; border-radius: 22px; border: 1px solid var(--line); background: linear-gradient(180deg, var(--ink-2), var(--ink)); overflow: hidden; transition: transform .6s var(--ease), border-color .5s, box-shadow .6s; cursor: pointer; }
.movement::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at var(--mx, 50%) var(--my, 0%), rgba(214,173,96,.18), transparent 60%); opacity: 0; transition: opacity .5s; }
.movement:hover { transform: translateY(-8px); border-color: rgba(214,173,96,.45); box-shadow: 0 30px 60px -30px rgba(214,173,96,.35); }
.movement:hover::before { opacity: 1; }
.movement > * { position: relative; }
.mv-num { display: block; font-family: var(--serif); font-size: 4.6rem; line-height: 1; color: transparent; -webkit-text-stroke: 1px var(--gold); margin-bottom: 26px; transition: color .5s; }
.movement:hover .mv-num { color: var(--gold); }
.mv-tempo { font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.mv-tempo i { font-family: var(--serif); text-transform: none; letter-spacing: 0; font-size: 1rem; }
.movement h3 { font-size: 2rem; margin-bottom: 14px; }
.movement p:not(.mv-tempo) { color: var(--ivory-dim); font-size: .94rem; }
.mv-chord { display: inline-block; margin-top: 10px; font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ivory-faint); border-top: 1px solid var(--line); padding-top: 12px; }
.mv-chord::before { content: "♪ "; color: var(--gold); }
.mv-dots { display: none; justify-content: center; gap: 10px; margin-top: 18px; }
.mv-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--line-2); cursor: pointer; transition: background .3s, transform .3s; }
.mv-dots i.on { background: var(--gold); transform: scale(1.3); box-shadow: 0 0 10px rgba(214,173,96,.6); }
.for-touch { display: none; }
@media (max-width: 640px) { .for-hover { display: none; } .for-touch { display: inline; } }
.movement.ring { animation: ringGlow 1.2s var(--ease); }
@keyframes ringGlow { 0% { box-shadow: 0 0 0 0 rgba(214,173,96,.5); } 100% { box-shadow: 0 0 0 24px rgba(214,173,96,0); } }

/* ---------- Quote ---------- */
.quote { position: relative; padding: clamp(80px, 11vw, 150px) var(--gutter); text-align: center; overflow: hidden; background: radial-gradient(ellipse at center, #1b1620 0%, var(--ink) 70%); border-block: 1px solid var(--line); }
#quoteNotes { position: absolute; inset: 0; width: 100%; height: 100%; }
.quote blockquote { position: relative; margin: 0 auto; max-width: 1000px; }
.quote p { font-family: var(--serif); font-weight: 300; font-size: clamp(2rem, 5vw, 4rem); line-height: 1.2; margin: 0; }
.quote em { color: var(--gold); }

/* ---------- Online ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); }
.step { padding: 40px 28px 40px 0; border-right: 1px solid var(--line); position: relative; }
.step:not(:first-child) { padding-left: 28px; }
.step:last-child { border-right: 0; }
.step::before { content: ""; position: absolute; top: -1px; left: 0; height: 1px; width: 0; background: var(--gold); transition: width 1.4s var(--ease) .3s; }
.step.in::before { width: 100%; }
.step-n { font-family: var(--serif); font-style: italic; font-size: 1.1rem; color: var(--gold); display: block; margin-bottom: 26px; }
.step h3 { font-size: 1.7rem; margin-bottom: 12px; }
.step p { color: var(--ivory-dim); font-size: .94rem; margin: 0; }
.needs { margin-top: 48px; padding: 34px; border-radius: 22px; border: 1px dashed var(--line-2); display: flex; flex-wrap: wrap; align-items: center; gap: 24px 40px; }
.needs-title { font-family: var(--serif); font-style: italic; font-size: 1.6rem; color: var(--gold); margin: 0; }
.needs-list { display: flex; flex-wrap: wrap; gap: 14px 30px; }
.needs-list span { color: var(--ivory-dim); font-size: .95rem; }
.needs-list b { margin-right: 6px; font-weight: 400; }

/* ---------- Plans ---------- */
.plans { position: relative; max-width: 1000px; margin: 0 auto; }
.plan {
  position: sticky; top: calc(110px + var(--i) * 26px);
  display: grid; grid-template-columns: 5fr 6fr; gap: 20px 56px; align-items: center;
  min-height: 380px; padding: clamp(32px, 4.5vw, 56px);
  margin-bottom: 7vh; border-radius: 28px; border: 1px solid var(--line-2);
  background: linear-gradient(160deg, #1a1820 0%, #121117 60%);
  box-shadow: 0 -24px 60px -20px rgba(0,0,0,.85);
  overflow: hidden;
  transform-origin: 50% 0;
  transform: scale(calc(1 - var(--p, 0) * 0.07));
  filter: brightness(calc(1 - var(--p, 0) * 0.45));
  will-change: transform, filter;
}
/* the last card needs room inside .plans to stick too. Sticky ignores padding and counts the card's
   own margin, so the room comes from a spacer element after it */
.plan:last-child { margin-bottom: 0; }
.plans::after { content: ""; display: block; height: 16vh; }
.plan.featured { background: radial-gradient(ellipse at 20% 0%, #33291c 0%, #1a1712 45%, #121117 80%); border-color: rgba(214,173,96,.55); box-shadow: 0 -24px 60px -20px rgba(0,0,0,.85), 0 0 80px -30px rgba(214,173,96,.35); }
.plan-head { position: relative; z-index: 1; }
.plan-head .btn { margin-top: 6px; }
.plan-num { position: absolute; right: 28px; top: 4px; font-family: var(--serif); font-style: italic; font-size: clamp(6rem, 13vw, 10rem); line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(214,173,96,.16); pointer-events: none; }
.plan-tag { font-size: .68rem; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); }
.plan h3 { font-size: clamp(2.3rem, 4vw, 3.2rem); margin-bottom: 10px; }
.plan-price { color: var(--ivory-faint); font-size: .95rem; margin-bottom: 26px; }
.plan-price span { font-family: var(--serif); font-size: 2rem; color: var(--ivory); }
.plan ul { position: relative; z-index: 1; list-style: none; padding: 0 0 0 clamp(0px, 4vw, 48px); margin: 0; display: grid; gap: 16px; border-left: 1px solid var(--line); }
.plan li { color: var(--ivory-dim); font-size: 1rem; padding-left: 28px; position: relative; }
.plan li::before { content: "♪"; position: absolute; left: 0; color: var(--gold); }

/* ---------- FAQ ---------- */
.faq-list { max-width: 900px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 28px 50px 28px 0; font-family: var(--serif); font-size: clamp(1.3rem, 2.2vw, 1.75rem); position: relative; transition: color .3s; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-family: var(--sans); font-weight: 300; font-size: 1.6rem; color: var(--gold); transition: transform .4s var(--ease); }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq summary:hover { color: var(--gold-hi); }
.faq details p { color: var(--ivory-dim); max-width: 70ch; padding-bottom: 28px; margin: 0; animation: fadeUp .6s var(--ease); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 110px); align-items: start; }
.contact-copy h2 { margin-bottom: 24px; }
.contact-links { display: grid; gap: 14px; margin-top: 36px; }
.contact-links a { display: inline-flex; align-items: center; gap: 14px; font-family: var(--serif); font-size: 1.4rem; color: var(--ivory); transition: color .3s; width: fit-content; }
.contact-links a span { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; font-family: var(--sans); font-size: .9rem; color: var(--gold); }
.contact-links a:hover { color: var(--gold-hi); }
.contact-form { padding: clamp(28px, 4vw, 48px); border-radius: 26px; border: 1px solid var(--line); background: var(--ink-2); display: grid; gap: 22px; }
.field { position: relative; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field input, .field select, .field textarea { width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line-2); padding: 24px 0 10px; color: var(--ivory); font: inherit; font-size: 1rem; outline: none; border-radius: 0; transition: border-color .3s; resize: vertical; -webkit-appearance: none; appearance: none; }
.field select { cursor: pointer; background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%); background-position: calc(100% - 12px) 60%, calc(100% - 7px) 60%; background-size: 5px 5px; background-repeat: no-repeat; }
.field select option { background: var(--ink-2); color: var(--ivory); }
.field label { position: absolute; left: 0; top: 22px; color: var(--ivory-faint); pointer-events: none; transition: all .3s var(--ease); font-size: 1rem; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label,
.field select:focus + label, .field select:valid + label, .field label.fixed { top: 0; font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.field.error input, .field.error select { border-color: var(--rose); }
.form-note { margin: 0; text-align: center; font-size: .9rem; color: var(--ivory-dim); min-height: 1.4em; }
.form-note.ok { color: var(--gold-hi); font-family: var(--serif); font-style: italic; font-size: 1.2rem; }

/* ---------- Floating WhatsApp ---------- */
.wa-fab { position: fixed; right: max(18px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom)); z-index: 110;
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px 12px 14px; border-radius: 100px;
  background: linear-gradient(135deg, var(--gold-hi), var(--gold) 55%, var(--gold-lo)); color: #1a1408;
  font-size: .78rem; font-weight: 600; letter-spacing: .06em;
  box-shadow: 0 14px 40px -10px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.08) inset;
  opacity: 0; visibility: hidden; transform: translateY(20px); transition: opacity .5s var(--ease), transform .5s var(--ease), visibility .5s; }
.wa-fab.show { opacity: 1; visibility: visible; transform: none; }
.wa-fab:hover { transform: translateY(-2px); }
@media (max-width: 640px) { .wa-fab span { display: none; } .wa-fab { padding: 14px; } }

/* ---------- Footer ---------- */
.footer { position: relative; border-top: 1px solid var(--line); padding: 0 var(--gutter) 26px; text-align: center; overflow: hidden; }
.footer-keys { position: relative; height: 84px; margin: 0 calc(-1 * var(--gutter)) 50px; display: flex; touch-action: pan-y; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; cursor: pointer; }
.footer-keys .fw { flex: 1; border-right: 1px solid rgba(10,9,13,.9); border-radius: 0 0 4px 4px; background: linear-gradient(180deg, #e9e3d6, #fbf8f1); transition: background .25s; }
.footer-keys .fb { position: absolute; top: 0; height: 58%; z-index: 1; border-radius: 0 0 4px 4px; background: linear-gradient(180deg, #121116, #2a2930); transition: background .25s; }
.footer-keys .fw.lit { background: linear-gradient(180deg, #e0c58c, #f4d58d); transition: none; }
.footer-keys .fb.lit { background: linear-gradient(180deg, #8a6a30, #d6ad60); transition: none; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.footer-logo img { width: min(170px, 46vw); height: auto; }
.footer p { color: var(--ivory-faint); margin: 0; font-size: .9rem; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 4px; }
.footer-links a { display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px; border-radius: 100px; border: 1px solid var(--line-2); color: var(--ivory-dim); font-size: .88rem; transition: color .3s, border-color .3s, background .3s; }
.footer-links a span { color: var(--gold); display: inline-flex; }
.footer-links a:hover { color: var(--gold-hi); border-color: rgba(214,173,96,.5); background: rgba(214,173,96,.06); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 10px 24px; flex-wrap: wrap;
  max-width: var(--maxw); margin: 48px auto 0; padding-top: 22px; border-top: 1px solid var(--line); text-align: left; }
.footer .copy, .footer .credit { font-size: .74rem; letter-spacing: .06em; }
.footer .credit a { color: var(--gold); transition: color .3s; }
.footer .credit a:hover { color: var(--gold-hi); }
.footer-bottom .copy { flex: 1 1 auto; }
.footer-bottom .credit { text-align: right; }
@media (max-width: 640px) {
  /* stay in the corners on phones: each side wraps within its own half */
  .footer-bottom { flex-wrap: nowrap; align-items: flex-start; gap: 16px; }
  .footer-bottom .copy, .footer-bottom .credit { flex: 1 1 50%; font-size: .68rem; letter-spacing: .03em; line-height: 1.6; }
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 1080px) {
  .movements { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step:nth-child(2) { border-right: 0; }
  .step:nth-child(3) { padding-left: 0; }
  .step:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 1100px) {
  .nav-links { position: fixed; inset: 0; background: var(--ink); flex-direction: column; align-items: center; justify-content: center; gap: 26px; opacity: 0; visibility: hidden; transition: opacity .5s, visibility .5s; z-index: -1; }
  .nav-links a { font-family: var(--serif); font-size: 2rem; letter-spacing: 0; text-transform: none; color: var(--ivory); }
  .menu-open .nav-links { opacity: 1; visibility: visible; }
  .menu-btn { display: block; }
}
@media (max-width: 920px) {
  .nav-right .btn { display: none; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .portrait { max-width: 420px; margin: 0 auto 30px; width: 100%; }
  .plan { grid-template-columns: 1fr; gap: 0; min-height: 0; top: calc(84px + var(--i) * 16px); margin-bottom: 6vh; padding: 28px 26px; }
  .plan h3 { font-size: 2.1rem; margin-bottom: 4px; }
  .plan-price { margin-bottom: 18px; }
  .plan-price span { font-size: 1.6rem; }
  .plan-head .btn { padding: 12px 22px; font-size: .72rem; }
  .plan li { font-size: .92rem; }
  .plan-num { font-size: 5rem; right: 18px; }
  .plan ul { border-left: 0; border-top: 1px solid var(--line); padding: 18px 0 0; margin-top: 20px; gap: 10px; }
}
@media (max-width: 640px) {
  /* swipe carousel instead of four tall stacked cards */
  .movements { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    margin: 0 calc(-1 * var(--gutter)); padding: 6px var(--gutter) 10px; scroll-padding-inline: var(--gutter); scrollbar-width: none; }
  .movements::-webkit-scrollbar { display: none; }
  .movement { flex: 0 0 84%; scroll-snap-align: start; padding: 30px 24px 26px; }
  .movements.in-view .movement.reveal { opacity: 1; transform: none; }
  .movement:hover { transform: none; }
  .mv-num { font-size: 3.6rem; margin-bottom: 18px; }
  .mv-dots { display: flex; }
  .steps { grid-template-columns: 1fr; }
  .step, .step:not(:first-child) { padding: 32px 0; border-right: 0; border-top: 1px solid var(--line); }
  .brand-text { font-size: 1.15rem; }
  .field-row { grid-template-columns: 1fr; }
  .stage-bar { flex-direction: column; align-items: stretch; }
  .modes { justify-content: stretch; }
  .modes .btn { flex: 1; }
  .guide { flex-direction: column; align-items: stretch; gap: 10px; }
  .guide-progress { width: 100%; }
  .keys-hint { display: none; }
  .hero-hint { font-size: .95rem; padding: 0 20px; }
  .hero-cta .btn { width: 100%; }
  .staff-notes span { font-size: 32px; }
  .needs { padding: 26px; }
}

@media (hover: none) {
  .cursor-dot, .cursor-ring { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
