/* ═══════════════════════════════════════════════════════════
   MUSICUNSCRIPTED — Minimal Style
   ═══════════════════════════════════════════════════════════ */

:root {
  --bg:            #0a0a0a;
  --bg-alt:        #0f0f0f;
  --bg-elev:       #141414;
  --line:          rgba(255,255,255,.07);
  --line-strong:   rgba(255,255,255,.14);
  --ink:           #f5f5f5;
  --ink-mute:      #9a9a9a;
  --ink-dim:       #6a6a6a;
  --accent:        #e8d5b7;
  --accent-strong: #f0deba;
  --accent-ink:    #1a1310;
  --danger:        #ff6b6b;
  --success:       #6ade7c;
  --radius:        10px;
  --radius-sm:     6px;
  --container:     1120px;
  --header-h:      72px;
  --font-body:     'Inter', system-ui, -apple-system, sans-serif;
  --font-display:  'Space Grotesk', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
button { font-family: inherit; cursor: pointer; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 720px; }
.visually-hidden { position: absolute !important; clip: rect(1px,1px,1px,1px); width: 1px; height: 1px; overflow: hidden; }

/* ── HEADER ── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--header-h); z-index: 100;
}
.site-header::before {
  content: ""; position: absolute; inset: 0;
  transition: background .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled::before {
  background: rgba(10,10,10,.72);
  backdrop-filter: blur(18px);
  border-bottom-color: var(--line);
}
.header-inner {
  height: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  position: relative; z-index: 1;
}
.brand { display: flex; align-items: center; }
.brand-logo { height: 22px; width: auto; display: block; }
.nav { display: flex; align-items: center; gap: 32px; }
.nav a {
  font-size: 14px; font-weight: 400;
  color: rgba(255,255,255,.72);
  transition: color .2s;
}
.nav a:hover { color: var(--ink); }
.header-cta { display: flex; align-items: center; gap: 10px; }
.header-cta .btn-ghost { color: rgba(255,255,255,.8); }
.nav-toggle {
  display: none;
  background: transparent; border: 0; width: 38px; height: 38px;
  padding: 8px; color: var(--ink);
}
.nav-toggle span {
  display: block; height: 1.5px; background: currentColor;
  margin: 5px 0; border-radius: 2px;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 18px; border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 500; letter-spacing: .01em;
  border: 1px solid transparent; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
  text-decoration: none;
}
.btn-lg { padding: 13px 26px; font-size: 14px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--ink); color: #0a0a0a; }
.btn-primary:hover { background: #fff; color: #0a0a0a; }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-outline:hover { border-color: rgba(255,255,255,.4); background: rgba(255,255,255,.04); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { color: var(--accent); }

/* ── HERO ── */
.hero { position: relative; overflow: hidden; min-height: 92vh; display: flex; align-items: center; }
.hero-bg {
  position: absolute; inset: 0;
  background: url("../img/hero-bg.jpg") center/cover no-repeat;
  filter: saturate(1.02) contrast(1.02);
}
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10,10,10,.55) 0%, rgba(10,10,10,.35) 40%, rgba(10,10,10,.9) 100%),
    radial-gradient(ellipse at 40% 50%, rgba(0,0,0,.2) 0%, rgba(0,0,0,.7) 80%);
}
.hero-inner { position: relative; z-index: 2; padding: 130px 0 90px; max-width: 720px; }
.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 11px; font-weight: 500;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 22px;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.2rem, 5.4vw, 3.8rem);
  line-height: 1.04;
  letter-spacing: -.02em;
  margin: 0 0 22px;
  color: #fff;
}
.hero-lead {
  font-size: clamp(1rem, 1.25vw, 1.1rem);
  color: rgba(245,245,245,.78);
  max-width: 520px;
  margin: 0 0 32px;
  line-height: 1.6;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── SECTIONS ── */
.section { padding: clamp(72px, 9vw, 110px) 0; position: relative; }
.section-alt { background: var(--bg-alt); }

.section-head { max-width: 640px; margin: 0 auto clamp(48px, 6vw, 72px); text-align: center; }
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  font-weight: 500;
  letter-spacing: -.02em;
  line-height: 1.15;
  margin: 0 0 14px;
  color: #fff;
}
.lead {
  color: var(--ink-mute);
  font-size: 1rem;
  line-height: 1.65;
  margin: 0;
}

/* ── PILLARS ── */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.pillar { padding: 0; }
.pillar-num {
  font-family: var(--font-display);
  font-size: 11px; font-weight: 600;
  color: var(--accent);
  letter-spacing: .16em;
  margin-bottom: 16px;
}
.pillar h3 {
  font-family: var(--font-display);
  font-size: 1.15rem; font-weight: 500; letter-spacing: -.005em;
  margin: 0 0 10px; color: #fff;
}
.pillar p { color: var(--ink-mute); margin: 0; font-size: .95rem; line-height: 1.6; }

/* ── INSTRUMENT GRID ── */
.instrument-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.instrument-card {
  display: block;
  padding: 26px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: background .2s, border-color .2s, transform .2s;
  color: var(--ink) !important;
}
.instrument-card:hover {
  border-color: var(--line-strong);
  background: rgba(255,255,255,.02);
  transform: translateY(-2px);
}
.instrument-card h3 {
  font-family: var(--font-display);
  font-size: 1.02rem; font-weight: 500;
  margin: 0 0 4px; color: #fff;
}
.instrument-card p { margin: 0; font-size: .82rem; color: var(--ink-mute); }
.instrument-card .arrow {
  display: inline-block; margin-top: 14px;
  font-size: .78rem; color: var(--accent); letter-spacing: .08em;
}

/* ── TEACHER GRID (Category pages) ── */
.teacher-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.teacher-card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .25s, transform .25s;
}
.teacher-card:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.teacher-photo {
  aspect-ratio: 3 / 4;
  overflow: hidden; position: relative;
  background: #0a0a0a;
}
.teacher-photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 25%;
  transition: transform .5s;
}
.teacher-card:hover .teacher-photo img { transform: scale(1.03); }
.teacher-photo--placeholder {
  display: grid; place-items: center;
  background: linear-gradient(180deg, #181818 0%, #0a0a0a 100%);
}
.teacher-body { padding: 20px 22px; }
.teacher-body h3 {
  font-family: var(--font-display);
  font-size: 1.05rem; font-weight: 500;
  margin: 0 0 3px; color: #fff;
}
.teacher-role { color: var(--accent); font-size: .78rem; margin: 0 0 10px; letter-spacing: .04em; }
.teacher-body p:last-child { color: var(--ink-mute); font-size: .88rem; margin: 0; line-height: 1.55; }
.teacher-card--placeholder .teacher-body h3 { color: var(--ink-mute); font-style: italic; }

/* ── CTA / AUTH ── */
.section-cta { padding: clamp(60px, 8vw, 100px) 0; text-align: center; }
.cta-inner { max-width: 640px; margin: 0 auto; }
.cta-inner h2 { font-family: var(--font-display); font-size: clamp(1.7rem, 3vw, 2.2rem); font-weight: 500; margin: 0 0 14px; color: #fff; }
.cta-inner p { color: var(--ink-mute); margin: 0 0 28px; font-size: 1rem; }
.cta-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── FAQ ── */
.faq-list { display: grid; gap: 10px; }
.faq-list details {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
  transition: border-color .2s;
}
.faq-list summary {
  font-family: var(--font-display);
  font-size: 1rem; font-weight: 500;
  color: #fff; cursor: pointer;
  list-style: none;
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+"; color: var(--accent); font-size: 1.2rem; font-weight: 300;
  transition: transform .25s;
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { color: var(--ink-mute); margin: 10px 0 0; font-size: .92rem; line-height: 1.65; }

/* ── FOOTER ── */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 48px 0 24px;
  background: var(--bg);
}
.footer-inner {
  display: grid; grid-template-columns: 1.3fr 2fr; gap: 48px;
  margin-bottom: 32px;
}
.footer-logo { height: 20px; margin-bottom: 12px; }
.footer-brand p { color: var(--ink-mute); font-size: .88rem; margin: 0; max-width: 320px; line-height: 1.55; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.footer-label {
  font-family: var(--font-display);
  font-size: 10px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 12px;
}
.footer-cols ul { list-style: none; padding: 0; margin: 0; }
.footer-cols li { margin-bottom: 7px; }
.footer-cols a { color: var(--ink-mute); font-size: .85rem; }
.footer-cols a:hover { color: var(--ink); }
.footer-bottom {
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
  color: var(--ink-dim); font-size: .78rem;
}
.footer-bottom p { margin: 0; }

/* ═══════════════════════════════════════════════════════════
   CATEGORY-PAGE HERO
   ═══════════════════════════════════════════════════════════ */
.cat-hero {
  padding: 140px 0 60px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-alt);
}
.cat-hero .breadcrumb {
  font-size: 12px; color: var(--ink-dim); margin: 0 0 16px; letter-spacing: .06em;
}
.cat-hero .breadcrumb a { color: var(--ink-mute); }
.cat-hero h1 {
  font-family: var(--font-display); font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 500; letter-spacing: -.015em; margin: 0 0 12px; color: #fff;
}
.cat-hero p { color: var(--ink-mute); font-size: 1rem; margin: 0; max-width: 560px; }

/* ═══════════════════════════════════════════════════════════
   AUTH PAGES
   ═══════════════════════════════════════════════════════════ */
.auth-wrap {
  min-height: 100vh; display: grid; place-items: center;
  padding: 100px 20px 60px;
}
.auth-card {
  width: 100%; max-width: 420px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
}
.auth-card .brand { justify-content: center; margin: 0 auto 24px; }
.auth-card h1 {
  font-family: var(--font-display);
  font-size: 1.5rem; font-weight: 500; text-align: center;
  margin: 0 0 8px; color: #fff;
}
.auth-card .auth-sub { text-align: center; color: var(--ink-mute); font-size: .9rem; margin: 0 0 26px; }
.auth-form { display: grid; gap: 12px; }
.auth-form label { font-size: 12px; color: var(--ink-mute); margin-bottom: 4px; letter-spacing: .04em; }
.auth-form input {
  background: rgba(0,0,0,.35);
  border: 1px solid var(--line-strong);
  color: var(--ink);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 14px;
  font-family: inherit;
  transition: border-color .2s, background .2s;
  width: 100%;
}
.auth-form input:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(0,0,0,.55);
}
.auth-form .field { display: flex; flex-direction: column; }
.auth-form .btn { margin-top: 8px; }
.auth-alt { text-align: center; margin: 20px 0 0; font-size: .88rem; color: var(--ink-mute); }
.auth-alt a { color: var(--accent); }
.auth-msg {
  padding: 12px 14px; border-radius: var(--radius-sm);
  font-size: .88rem; margin: 0 0 16px;
}
.auth-msg--error { background: rgba(255,107,107,.1); color: var(--danger); border: 1px solid rgba(255,107,107,.25); }
.auth-msg--ok { background: rgba(106,222,124,.1); color: var(--success); border: 1px solid rgba(106,222,124,.25); }

/* ═══════════════════════════════════════════════════════════
   DASHBOARD
   ═══════════════════════════════════════════════════════════ */
.dash-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10,10,10,.85);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}
.dash-header .header-inner { height: auto; }
.dash-header .brand-logo { height: 20px; }
.dash-user { display: flex; align-items: center; gap: 14px; color: var(--ink-mute); font-size: 13px; }
.dash-user .name { color: var(--ink); font-weight: 500; }
.dash-main { padding: 40px 0 80px; }
.dash-welcome { margin-bottom: 40px; }
.dash-welcome h1 { font-family: var(--font-display); font-size: 1.8rem; font-weight: 500; margin: 0 0 8px; color: #fff; }
.dash-welcome p { color: var(--ink-mute); margin: 0; }
.status-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; padding: 4px 10px; border-radius: 100px;
  margin-left: 12px; vertical-align: middle;
}
.status-badge--active { background: rgba(106,222,124,.12); color: var(--success); border: 1px solid rgba(106,222,124,.3); }
.status-badge--pending { background: rgba(232,213,183,.1); color: var(--accent); border: 1px solid rgba(232,213,183,.3); }
.status-badge--paused { background: rgba(255,107,107,.12); color: var(--danger); border: 1px solid rgba(255,107,107,.3); }

.dash-sec { margin-bottom: 48px; }
.dash-sec-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 22px; border-bottom: 1px solid var(--line); padding-bottom: 12px;
}
.dash-sec-head h2 { font-family: var(--font-display); font-size: 1.15rem; font-weight: 500; margin: 0; color: #fff; }
.dash-sec-head .meta { font-size: .85rem; color: var(--ink-dim); }

.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.video-card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .25s, border-color .25s;
}
.video-card:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.video-thumb {
  aspect-ratio: 16/9;
  background: #000;
  position: relative;
  overflow: hidden;
}
.video-thumb iframe { width: 100%; height: 100%; border: 0; display: block; }
.video-thumb--locked {
  display: grid; place-items: center;
  color: var(--ink-mute); font-size: 14px; letter-spacing: .04em;
}
.video-thumb--locked::before {
  content: "🔒"; font-size: 28px; margin-bottom: 8px; display: block;
}
.video-body { padding: 16px 18px; }
.video-body h3 { font-family: var(--font-display); font-size: .98rem; font-weight: 500; margin: 0 0 4px; color: #fff; }
.video-body p { margin: 0; font-size: .82rem; color: var(--ink-mute); }
.video-body .tag { font-size: 10px; color: var(--accent); letter-spacing: .12em; text-transform: uppercase; }

.dash-empty {
  padding: 60px 20px; text-align: center;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--ink-mute);
}
.dash-empty h3 { font-family: var(--font-display); font-weight: 500; margin: 0 0 8px; color: #fff; }

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .instrument-grid { grid-template-columns: repeat(3, 1fr); }
  .teacher-grid    { grid-template-columns: repeat(2, 1fr); }
  .video-grid      { grid-template-columns: repeat(2, 1fr); }
  .footer-inner    { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 720px) {
  .nav { display: none; }
  .nav-toggle { display: block; }
  .header-cta .btn:not(:last-child) { display: none; }

  .nav.is-open {
    display: flex; flex-direction: column;
    position: fixed; top: var(--header-h); left: 0; right: 0;
    background: rgba(10,10,10,.98);
    backdrop-filter: blur(20px);
    padding: 24px; border-bottom: 1px solid var(--line);
    align-items: stretch; gap: 0;
  }
  .nav.is-open a {
    padding: 14px 4px; border-bottom: 1px solid var(--line);
    font-size: 15px; color: var(--ink);
  }

  .pillars, .how-grid, .instrument-grid { grid-template-columns: 1fr; gap: 28px; }
  .teacher-grid { grid-template-columns: 1fr; }
  .video-grid { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .dash-user .name { display: none; }
}

@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .hero h1 { font-size: clamp(1.9rem, 8vw, 2.4rem); }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }
  .footer-cols { grid-template-columns: 1fr; gap: 24px; }
  .auth-card { padding: 28px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}

/* ═══════════════════════════════════════════════════════════
   VIDEO HERO + SCROLLYTELLING
   ═══════════════════════════════════════════════════════════ */
.hero-story {
  position: relative;
  min-height: 300vh; /* 3 slides x 1 viewport */
}
.hero-video-wrap {
  position: sticky; top: 0;
  width: 100%; height: 100vh;
  overflow: hidden;
  background: #000;
}
.hero-video-wrap video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero-video-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10,10,10,.55) 0%, rgba(10,10,10,.35) 40%, rgba(10,10,10,.85) 100%);
  z-index: 1;
}
.story-slide {
  height: 100vh;
  display: flex; align-items: center;
  position: relative; z-index: 2;
  margin-top: -100vh; /* overlay on video */
  opacity: 0; transform: translateY(20px);
  transition: opacity .8s ease, transform .8s ease;
  pointer-events: none;
}
.story-slide:first-of-type { margin-top: -100vh; }
.story-slide + .story-slide { margin-top: 0; }
.story-slide.is-active { opacity: 1; transform: translateY(0); pointer-events: auto; }
.story-slide h1, .story-slide h2 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5.6vw, 4rem);
  font-weight: 500; line-height: 1.04; letter-spacing: -.025em;
  margin: 0 0 16px; color: #fff;
  max-width: 780px;
}
.story-lead {
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  color: rgba(245,245,245,.82);
  margin: 0 0 32px;
  max-width: 480px;
}
.story-slide .hero-cta, .story-slide .btn { flex-wrap: wrap; }

/* ═══════════════════════════════════════════════════════════
   STUDENT STORY (Alvin)
   ═══════════════════════════════════════════════════════════ */
.story-grid {
  display: grid; grid-template-columns: 5fr 7fr; gap: 60px; align-items: center;
}
.story-photo {
  border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 4/5;
  background: #0a0a0a;
}
.story-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.story-copy .eyebrow { margin-bottom: 20px; }
.story-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  font-weight: 500; letter-spacing: -.015em; line-height: 1.2;
  margin: 0 0 20px; color: #fff;
}
.story-copy .lead { margin: 0 0 20px; color: var(--ink-mute); font-size: 1.05rem; line-height: 1.65; }
.story-quote { color: var(--accent); font-size: .88rem; letter-spacing: .04em; margin: 0; }

/* ═══════════════════════════════════════════════════════════
   CTA WITH BACKGROUND IMAGE
   ═══════════════════════════════════════════════════════════ */
.cta-bg { position: relative; overflow: hidden; text-align: center; padding: clamp(80px, 10vw, 130px) 0; }
.cta-bg-image {
  position: absolute; inset: 0;
  background: url("../img/hero-bg.jpg") center/cover no-repeat;
  transform: scale(1.02);
  filter: saturate(1.02);
}
.cta-bg-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10,10,10,.5) 0%, rgba(10,10,10,.75) 100%);
}
.cta-bg .cta-inner { position: relative; z-index: 2; }
.cta-bg .cta-inner h2 { color: #fff; }

/* Mobile hero-story */
@media (max-width: 720px) {
  .hero-story { min-height: 300vh; }
  .story-slide h1, .story-slide h2 { font-size: clamp(1.9rem, 8vw, 2.6rem); }
  .story-lead { font-size: 1rem; }
  .story-grid { grid-template-columns: 1fr; gap: 30px; }
}

/* ═══════════════════════════════════════════════════════════
   Instruments — inline CTA below the grid
   ═══════════════════════════════════════════════════════════ */
.instrument-cta {
  margin-top: 40px;
  display: flex; align-items: center; justify-content: center;
  gap: 20px; flex-wrap: wrap;
}
.instrument-cta-note {
  font-size: .85rem; color: var(--ink-mute); letter-spacing: .01em;
}

/* ═══════════════════════════════════════════════════════════
   Scrollytelling — alternate alignment: L → R → L
   ═══════════════════════════════════════════════════════════ */
/* Slide 1 — left */
.story-slide[data-slide="0"] .container {
  text-align: left;
}
.story-slide[data-slide="0"] .container > * {
  margin-left: 0; margin-right: auto;
}
.story-slide[data-slide="0"] .hero-cta {
  justify-content: flex-start;
}

/* Slide 2 — right */
.story-slide[data-slide="1"] .container {
  text-align: right;
}
.story-slide[data-slide="1"] .container > * {
  margin-left: auto; margin-right: 0;
}
.story-slide[data-slide="1"] .container h1,
.story-slide[data-slide="1"] .container h2 {
  max-width: 780px; margin-left: auto; margin-right: 0;
}
.story-slide[data-slide="1"] .story-lead {
  max-width: 480px; margin-left: auto; margin-right: 0;
}
.story-slide[data-slide="1"] .hero-cta {
  justify-content: flex-end;
}

/* Slide 3 — left */
.story-slide[data-slide="2"] .container {
  text-align: left;
}
.story-slide[data-slide="2"] .container > * {
  margin-left: 0; margin-right: auto;
}
.story-slide[data-slide="2"] .hero-cta {
  justify-content: flex-start;
}

/* ═══════════════════════════════════════════════════════════
   MOBILE POLISH (extra)
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 720px) {

  /* Hero-story — auf Mobile alle Slides linksbündig (schöner) */
  .story-slide[data-slide="1"] .container,
  .story-slide[data-slide="1"] .container > *,
  .story-slide[data-slide="1"] .hero-cta {
    text-align: left !important;
    margin-left: 0 !important; margin-right: auto !important;
    justify-content: flex-start !important;
  }

  /* Video-Höhe auf Mobile leicht reduzieren, Content darüber tighter */
  .hero-video-wrap { height: 100vh; }
  .story-slide { height: 100vh; padding: 0 0 40px; }

  /* Instruments-Grid → 1 Spalte auf Mobile ist ok, aber CTA-Note darunter */
  .instrument-cta {
    flex-direction: column; gap: 12px; margin-top: 28px;
  }
  .instrument-cta .btn { width: 100%; justify-content: center; }
  .instrument-cta-note { text-align: center; font-size: .82rem; }

  /* Pillars: bei Mobile nur 20px gap, nicht 40 */
  .pillars { gap: 24px !important; }
  .pillar-num { margin-bottom: 10px; }

  /* Story-Grid (Alvin) auf Mobile schön stapeln */
  .story-grid { grid-template-columns: 1fr !important; gap: 24px; }
  .story-photo { max-height: 380px; aspect-ratio: auto; }
  .story-photo img { object-position: center 20%; }

  /* Section-Padding auf Mobile reduzieren */
  .section { padding: 56px 0 !important; }
  .section-cta { padding: 60px 0 !important; }

  /* Cat-Hero Mobile */
  .cat-hero { padding: 110px 0 40px !important; }
  .cat-hero h1 { font-size: clamp(1.6rem, 6vw, 2rem) !important; }

  /* FAQ minimal auf Mobile */
  .faq-list summary { font-size: .95rem; }

  /* Video-card Mobile Grid → 1 col */
  .video-grid { grid-template-columns: 1fr !important; }

  /* Auth-Formulare */
  .auth-wrap { padding: 80px 16px 40px; }
  .auth-card { padding: 28px 22px; }
  .auth-form input { font-size: 16px; /* iOS no-zoom */ }
}

@media (max-width: 480px) {
  /* Header noch kompakter */
  .site-header { height: 60px; }
  .brand-logo { height: 18px !important; }
  .header-cta .btn { padding: 8px 14px !important; font-size: 12px !important; }

  /* Hero-story Titel noch kleiner */
  .story-slide h1, .story-slide h2 { font-size: clamp(1.7rem, 8vw, 2.2rem) !important; }
  .story-lead { font-size: .95rem !important; }

  /* Instrument-Card kompakter */
  .instrument-card { padding: 20px 18px; }
  .instrument-card h3 { font-size: 1rem; }
  .instrument-card p { font-size: .8rem; }

  /* Story-Photo (Alvin Teaser) noch kompakter */
  .story-photo { max-height: 320px; }

  /* CTA-Buttons full-width */
  .hero-cta, .cta-buttons { flex-direction: column; }
  .hero-cta .btn, .cta-buttons .btn { width: 100%; justify-content: center; }
}

/* ═══════════════════════════════════════════════════════════
   INSTRUMENT CARDS — with background images
   ═══════════════════════════════════════════════════════════ */
.instrument-card {
  position: relative;
  min-height: 320px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform .3s ease, border-color .3s ease;
  display: flex; align-items: flex-end;
}
.instrument-card::before {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg,
      rgba(10,10,10,0) 0%,
      rgba(10,10,10,0) 55%,
      rgba(10,10,10,.62) 92%,
      rgba(10,10,10,.82) 100%);
  transition: background .3s ease;
}
.instrument-card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,.4) 100%);
  opacity: 0;
  transition: opacity .3s ease;
}
.instrument-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}
.instrument-card:hover::before {
  background:
    linear-gradient(180deg,
      rgba(10,10,10,0) 0%,
      rgba(10,10,10,0) 45%,
      rgba(10,10,10,.55) 92%,
      rgba(10,10,10,.78) 100%);
}
.instrument-card-inner {
  position: relative; z-index: 1;
  padding: 24px 22px;
  width: 100%;
}
.instrument-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem; font-weight: 500;
  color: #fff !important;
  margin: 0 0 4px;
  text-shadow: 0 2px 6px rgba(0,0,0,.85), 0 0 20px rgba(0,0,0,.5);
}
.instrument-card p {
  margin: 0; font-size: .85rem;
  color: rgba(245,245,245,.95);
  text-shadow: 0 1px 4px rgba(0,0,0,.85), 0 0 14px rgba(0,0,0,.5);
}
.instrument-card .arrow {
  display: inline-block; margin-top: 14px;
  font-size: .78rem;
  color: var(--accent);
  letter-spacing: .08em;
  opacity: .9;
  transition: transform .25s ease, opacity .25s ease;
}
.instrument-card:hover .arrow {
  transform: translateX(4px);
  opacity: 1;
}

/* Mobile — larger touch, portrait ratio */
@media (max-width: 720px) {
  .instrument-card { min-height: 220px; }
  .instrument-card-inner { padding: 20px 18px; }
  .instrument-card h3 { font-size: 1.05rem; }
  .instrument-card p { font-size: .85rem; }
}

/* ═══════════════════════════════════════════════════════════
   NAV DROPDOWN (Instruments submenu)
   ═══════════════════════════════════════════════════════════ */
.has-submenu { position: relative; }
.submenu-trigger { display: inline-flex; align-items: center; gap: 4px; cursor: pointer; }
.submenu-trigger .caret { font-size: 10px; opacity: .7; transition: transform .2s; }
.has-submenu.is-open .submenu-trigger .caret,
.has-submenu:hover .submenu-trigger .caret,
.has-submenu:focus-within .submenu-trigger .caret { transform: rotate(180deg); opacity: 1; }
.submenu {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(4px);
  min-width: 200px;
  background: rgba(15,15,15,.98);
  backdrop-filter: blur(16px);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 8px 0;
  opacity: 0; visibility: hidden;
  transition: opacity .2s, visibility .2s, transform .2s;
  z-index: 200;
  box-shadow: 0 10px 40px rgba(0,0,0,.4);
}
.submenu a {
  display: block;
  padding: 10px 20px;
  font-size: 13px;
  color: rgba(255,255,255,.82) !important;
  white-space: nowrap;
  transition: background .15s, color .15s;
}
.submenu a:hover {
  background: rgba(232,213,183,.08);
  color: var(--accent) !important;
}
.has-submenu.is-open .submenu,
.has-submenu:hover .submenu,
.has-submenu:focus-within .submenu {
  opacity: 1; visibility: visible;
  transform: translateX(-50%) translateY(0);
}
@media (hover: none) {
  .has-submenu:hover .submenu { opacity: 0; visibility: hidden; }
  .has-submenu.is-open .submenu { opacity: 1; visibility: visible; }
}

/* ═══════════════════════════════════════════════════════════
   INSTRUMENT GRID — 3 columns, centered second row
   ═══════════════════════════════════════════════════════════ */
.instrument-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 22px;
}
.instrument-grid > .instrument-card:nth-child(1),
.instrument-grid > .instrument-card:nth-child(2),
.instrument-grid > .instrument-card:nth-child(3) { grid-column: span 2; }
.instrument-grid > .instrument-card:nth-child(4) { grid-column: 2 / span 2; }
.instrument-grid > .instrument-card:nth-child(5) { grid-column: 4 / span 2; }

/* Cards: full portrait ratio so image is not cropped */
.instrument-card {
  aspect-ratio: 4 / 5;
  min-height: unset;
}
.instrument-card-inner {
  padding: 28px 26px;
}
.instrument-card h3 { font-size: 1.35rem; }
.instrument-card p  { font-size: .95rem; }

/* Tablet — 2 columns 2/2/1 */
@media (max-width: 900px) {
  .instrument-grid { grid-template-columns: repeat(4, 1fr); gap: 18px; }
  .instrument-grid > .instrument-card:nth-child(1),
  .instrument-grid > .instrument-card:nth-child(2),
  .instrument-grid > .instrument-card:nth-child(3),
  .instrument-grid > .instrument-card:nth-child(4) { grid-column: span 2; }
  .instrument-grid > .instrument-card:nth-child(5) { grid-column: 2 / span 2; }
}

/* Mobile — 1 column */
@media (max-width: 600px) {
  .instrument-grid { grid-template-columns: 1fr; gap: 16px; }
  .instrument-grid > .instrument-card { grid-column: 1 !important; aspect-ratio: 5 / 4; }
  .instrument-card h3 { font-size: 1.15rem; }
  .instrument-card p  { font-size: .88rem; }

  /* Mobile-Menü: Dropdown inline, nur bei is-open */
  .has-submenu .submenu {
    position: static; transform: none;
    background: transparent; border: 0; padding: 0 0 0 16px;
    box-shadow: none; backdrop-filter: none; margin-top: 6px;
    max-height: 0; overflow: hidden;
    opacity: 0; visibility: hidden;
    transition: max-height .25s ease, opacity .25s ease, visibility .25s ease;
  }
  .has-submenu.is-open .submenu {
    max-height: 500px; opacity: 1; visibility: visible;
  }
  .has-submenu .submenu a { padding: 8px 4px; font-size: 14px; }
}

/* ═══════════════════════════════════════════════════════════
   SCHEDULE
   ═══════════════════════════════════════════════════════════ */
.waitlist-instructor {
  display: grid; grid-template-columns: 120px 1fr;
  gap: 24px; align-items: center;
  padding: 24px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  margin-bottom: 40px;
}
.waitlist-instructor-photo {
  width: 120px; height: 120px;
  border-radius: 50%; overflow: hidden;
  background: #0a0a0a;
}
.waitlist-instructor-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.waitlist-instructor-body h3 {
  font-family: var(--font-display); font-size: 1.2rem; font-weight: 500;
  color: #fff; margin: 6px 0 2px;
}
.waitlist-instructor-body .waitlist-role { color: var(--accent); font-size: .85rem; margin: 0 0 10px; letter-spacing: .04em; }
.waitlist-instructor-body p { color: var(--ink-mute); margin: 0 0 16px; font-size: .95rem; }
.waitlist-instructor-body .btn { margin-top: 4px; }

.schedule-legend {
  display: flex; gap: 24px; margin-bottom: 28px;
  color: var(--ink-mute); font-size: .85rem;
  padding-bottom: 20px; border-bottom: 1px solid var(--line);
}
.legend-dot {
  display: inline-block; width: 10px; height: 10px; border-radius: 50%;
  margin-right: 6px; vertical-align: -1px;
}
.legend-private { background: var(--accent); }
.legend-group   { background: #6ade7c; }

.schedule-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px; }
.schedule-day {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 16px;
  min-height: 220px;
}
.schedule-day-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.schedule-day-head h3 { font-family: var(--font-display); font-size: 1rem; font-weight: 500; color: #fff; margin: 0; }
.schedule-day-head span { font-size: .72rem; color: var(--ink-dim); }
.schedule-empty { color: var(--ink-dim); text-align: center; margin: 40px 0; }

.schedule-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.schedule-slot {
  padding: 10px 12px;
  background: rgba(255,255,255,.02);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  border-left-width: 2px;
}
.slot-private { border-left-color: var(--accent); }
.slot-group   { border-left-color: #6ade7c; }
.slot-time {
  font-family: var(--font-display);
  font-size: .82rem; font-weight: 500;
  color: #fff; letter-spacing: .02em;
  margin-bottom: 4px;
}
.slot-dash { color: var(--ink-dim); margin: 0 2px; }
.slot-instr { font-size: .82rem; color: var(--ink); font-weight: 500; }
.slot-meta { font-size: .72rem; color: var(--ink-mute); margin-top: 2px; }
.slot-type { color: var(--accent); font-weight: 500; }
.slot-group .slot-type { color: #6ade7c; }
.slot-sep { color: var(--ink-dim); margin: 0 4px; }
.slot-note { font-size: .72rem; color: var(--ink-mute); font-style: italic; margin-top: 6px; }

@media (max-width: 1024px) {
  .schedule-week { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .schedule-week { grid-template-columns: 1fr; }
  .waitlist-instructor { grid-template-columns: 1fr; text-align: left; }
  .waitlist-instructor-photo { width: 80px; height: 80px; }
}

/* ═══════════════════════════════════════════════════════════
   INSTRUCTOR — Timezone + Availability calendar
   ═══════════════════════════════════════════════════════════ */
.teacher-tz {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; color: var(--ink-mute);
  padding: 5px 10px 5px 8px;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--line);
  border-radius: 100px;
  margin: 0 0 14px;
  letter-spacing: .02em;
}
.tz-flag { font-size: 14px; line-height: 1; }

.availability {
  margin-top: 20px;
  padding: 16px;
  background: rgba(0,0,0,.25);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.availability-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 12px;
}
.avail-title {
  font-family: var(--font-display);
  font-size: 11px; font-weight: 500;
  text-transform: uppercase; letter-spacing: .14em;
  color: var(--ink-mute);
}
.avail-status {
  font-size: 10px; letter-spacing: .06em;
  padding: 3px 8px; border-radius: 100px;
  text-transform: uppercase; font-weight: 600;
}
.avail-status--open { background: rgba(106,222,124,.14); color: #6ade7c; border: 1px solid rgba(106,222,124,.28); }
.avail-status--full { background: rgba(255,107,107,.14); color: #ff9a9a; border: 1px solid rgba(255,107,107,.28); }

.availability-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.avail-day {
  aspect-ratio: 1/1;
  min-height: 42px;
  padding: 4px 3px 3px;
  background: rgba(255,255,255,.02);
  border: 1px solid var(--line);
  border-radius: 5px;
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
  cursor: help;
  position: relative;
}
.avail-day:hover {
  transform: translateY(-1px);
  background: rgba(255,255,255,.05);
  border-color: var(--line-strong);
}
.avail-day--closed {
  opacity: .35;
  cursor: not-allowed;
  filter: grayscale(1);
}
.avail-day--closed:hover { transform: none; background: rgba(255,255,255,.02); }
.day-lbl {
  font-size: 8.5px; text-transform: uppercase; letter-spacing: .06em;
  color: var(--ink-dim); font-weight: 500;
}
.day-num {
  font-family: var(--font-display);
  font-size: 13px; font-weight: 500; color: var(--ink);
  line-height: 1;
}
.day-dots { display: flex; gap: 3px; align-items: center; min-height: 6px; }
.dot {
  display: inline-block;
  width: 5px; height: 5px; border-radius: 50%;
}
.dot--private { background: var(--accent); }
.dot--group   { background: #6ade7c; }
.dot--closed  { background: var(--ink-dim); }

.availability-legend {
  display: flex; gap: 14px; margin-top: 12px;
  font-size: 10px; color: var(--ink-mute);
  letter-spacing: .04em; padding-top: 10px;
  border-top: 1px solid var(--line);
}
.availability-legend .dot { margin-right: 5px; vertical-align: 1px; }

/* Instructor grid: 2 cols on desktop for richer cards */
@media (min-width: 900px) {
  .teacher-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
  .availability-grid { gap: 3px; }
  .avail-day { min-height: 38px; padding: 3px 2px 2px; }
  .day-num { font-size: 12px; }
  .day-lbl { font-size: 8px; }
  .availability-legend { flex-wrap: wrap; font-size: 9px; gap: 10px; }
}

/* ═══════════════════════════════════════════════════════════
   AUTH — Back-to-home link
   ═══════════════════════════════════════════════════════════ */
.auth-back-home {
  display: inline-block;
  font-size: 13px; color: var(--ink-mute);
  margin: 0 auto 24px; text-align: center;
  padding: 6px 12px;
  border-radius: 100px; background: rgba(255,255,255,.04);
  border: 1px solid var(--line);
  transition: color .2s, border-color .2s, background .2s;
}
.auth-back-home:hover { color: var(--ink); border-color: var(--line-strong); background: rgba(255,255,255,.08); }

/* ═══════════════════════════════════════════════════════════
   CONTACT FORM
   ═══════════════════════════════════════════════════════════ */
.contact-form {
  display: grid; gap: 14px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cf-field { display: flex; flex-direction: column; gap: 6px; }
.cf-field label { font-size: 12px; color: var(--ink-mute); letter-spacing: .04em; }
.cf-field input,
.cf-field textarea {
  background: rgba(0,0,0,.35);
  border: 1px solid var(--line-strong);
  color: var(--ink);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 15px;
  font-family: inherit;
  transition: border-color .2s, background .2s;
}
.cf-field input:focus, .cf-field textarea:focus {
  outline: none; border-color: var(--accent); background: rgba(0,0,0,.55);
}
.cf-field textarea { resize: vertical; min-height: 120px; }
.cf-actions { grid-template-columns: auto 1fr; align-items: center; }
.cf-msg { margin: 0; font-size: .9rem; color: var(--accent); }
.cf-msg.is-error { color: var(--danger); }
.cf-msg.is-ok    { color: var(--success); }
.cf-fine { color: var(--ink-dim); font-size: .8rem; margin: 4px 0 0; }
@media (max-width: 600px) {
  .cf-row { grid-template-columns: 1fr; }
  .cf-actions { grid-template-columns: 1fr; text-align: center; }
}

/* ═══════════════════════════════════════════════════════════
   CALENDAR — clickable day cells
   ═══════════════════════════════════════════════════════════ */
.avail-day--action { cursor: pointer; text-decoration: none; color: inherit; }
.avail-day--action:hover {
  border-color: var(--accent) !important;
  background: rgba(232,213,183,.08) !important;
  color: inherit;
}
.avail-day--waitlist { cursor: pointer !important; opacity: .5; }
.avail-day--waitlist:hover {
  opacity: 1;
  border-color: rgba(255,107,107,.4) !important;
  background: rgba(255,107,107,.08) !important;
  filter: grayscale(0);
}

/* ═══════════════════════════════════════════════════════════
   CHATBOT — floating widget
   ═══════════════════════════════════════════════════════════ */
.chatbot-launcher {
  position: fixed; bottom: 24px; right: 24px; z-index: 400;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink);
  border: none; box-shadow: 0 10px 30px rgba(0,0,0,.4);
  cursor: pointer; display: grid; place-items: center;
  transition: transform .2s, background .2s;
}
.chatbot-launcher:hover { transform: scale(1.06); background: var(--accent-strong); }
.chatbot-launcher svg { width: 22px; height: 22px; }
.chatbot-launcher .chatbot-badge {
  position: absolute; top: -2px; right: -2px;
  width: 12px; height: 12px; border-radius: 50%;
  background: #6ade7c; border: 2px solid var(--bg);
}

.chatbot-panel {
  position: fixed; bottom: 96px; right: 24px; z-index: 400;
  width: 360px; max-width: calc(100vw - 32px);
  max-height: 520px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
  display: none; flex-direction: column;
  overflow: hidden;
}
.chatbot-panel.is-open { display: flex; }
.chatbot-head {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.02);
  display: flex; align-items: center; justify-content: space-between;
}
.chatbot-head h4 {
  font-family: var(--font-display); font-size: .95rem; font-weight: 500; margin: 0; color: #fff;
}
.chatbot-head .chatbot-sub { font-size: 11px; color: var(--ink-dim); margin: 2px 0 0; }
.chatbot-close {
  background: transparent; border: 0; color: var(--ink-mute); cursor: pointer; padding: 4px;
  font-size: 20px; line-height: 1;
}
.chatbot-close:hover { color: var(--ink); }
.chatbot-messages {
  flex: 1; overflow-y: auto; padding: 16px 18px;
  display: flex; flex-direction: column; gap: 10px;
}
.chat-msg {
  max-width: 78%; padding: 10px 14px; border-radius: 14px;
  font-size: 13.5px; line-height: 1.5;
  word-wrap: break-word;
}
.chat-msg--bot {
  background: rgba(255,255,255,.06); color: var(--ink);
  border-bottom-left-radius: 4px; align-self: flex-start;
}
.chat-msg--user {
  background: var(--accent); color: var(--accent-ink);
  border-bottom-right-radius: 4px; align-self: flex-end;
}
.chatbot-input {
  border-top: 1px solid var(--line);
  padding: 12px; display: flex; gap: 8px;
}
.chatbot-input input {
  flex: 1; background: rgba(0,0,0,.35);
  border: 1px solid var(--line-strong); color: var(--ink);
  border-radius: 20px; padding: 10px 14px;
  font-size: 13.5px; font-family: inherit;
}
.chatbot-input input:focus { outline: none; border-color: var(--accent); }
.chatbot-input button {
  background: var(--accent); color: var(--accent-ink);
  border: 0; border-radius: 20px; padding: 10px 16px;
  font-size: 13px; font-weight: 600; cursor: pointer;
}
.chatbot-input button:hover { background: var(--accent-strong); }
.chatbot-quick {
  display: flex; flex-wrap: wrap; gap: 6px;
  padding: 8px 12px 12px;
  border-top: 1px solid var(--line);
}
.chatbot-quick button {
  background: transparent; color: var(--ink-mute);
  border: 1px solid var(--line-strong); border-radius: 100px;
  padding: 5px 11px; font-size: 11px; cursor: pointer;
  transition: color .2s, border-color .2s;
}
.chatbot-quick button:hover { color: var(--accent); border-color: var(--accent); }

@media (max-width: 480px) {
  .chatbot-panel { right: 12px; left: 12px; width: auto; bottom: 80px; }
  .chatbot-launcher { right: 16px; bottom: 16px; }
}

/* ═══════════════════════════════════════════════════════════
   PAGE HERO with video background (stories, etc.)
   ═══════════════════════════════════════════════════════════ */
.page-hero {
  position: relative;
  min-height: 58vh;
  overflow: hidden;
  display: flex; align-items: flex-end;
  padding: 140px 0 60px;
}
.page-hero-video { position: absolute; inset: 0; z-index: 0; }
.page-hero-video video { width: 100%; height: 100%; object-fit: cover; display: block; }
.page-hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10,10,10,.5) 0%, rgba(10,10,10,.3) 40%, rgba(10,10,10,.9) 100%);
}
.page-hero-content { position: relative; z-index: 2; }
.page-hero-content h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 500; letter-spacing: -.02em; line-height: 1.05;
  color: #fff; margin: 0 0 14px;
}
.page-hero-content p:not(.eyebrow):not(.breadcrumb) {
  color: rgba(245,245,245,.85);
  max-width: 560px;
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 0;
}
@media (max-width: 720px) {
  .page-hero { min-height: 46vh; padding: 100px 0 40px; }
  .page-hero-content h1 { font-size: clamp(1.8rem, 8vw, 2.4rem); }
}

/* ═══════════════════════════════════════════════════════════════════
   MOBILE POLISH v2 — comprehensive refresh
   ═══════════════════════════════════════════════════════════════════ */

/* ── Tablet & below (≤900px) ── */
@media (max-width: 900px) {
  :root { --header-h: 64px; }

  .container { padding: 0 20px; }
  .container-narrow { padding: 0 20px; }

  .site-header { height: var(--header-h); }
  .nav { display: none; }
  .nav-toggle {
    display: flex; flex-direction: column; justify-content: center;
    width: 42px; height: 42px; padding: 10px;
    border: 1px solid rgba(255,255,255,.2); border-radius: 8px;
    background: rgba(0,0,0,.3);
  }
  .site-header.is-scrolled .nav-toggle {
    border-color: var(--line-strong); background: rgba(255,255,255,.05);
  }
  .header-cta .btn { display: none; }
  .header-cta .btn.btn-primary { display: inline-flex; padding: 8px 14px; font-size: 12px; }

  .nav.is-open {
    display: flex; flex-direction: column;
    position: fixed; top: var(--header-h); left: 0; right: 0;
    background: rgba(10,10,10,.98);
    backdrop-filter: blur(20px);
    padding: 20px; gap: 0;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    border-bottom: 1px solid var(--line);
    z-index: 99;
  }
  .nav.is-open > a,
  .nav.is-open .has-submenu > .submenu-trigger {
    display: block;
    padding: 16px 4px; font-size: 16px; color: var(--ink) !important;
    border-bottom: 1px solid var(--line);
  }
  .nav.is-open .has-submenu .submenu {
    display: block;
    position: static; transform: none;
    background: transparent; border: 0; padding: 4px 0 8px 16px;
    box-shadow: none; backdrop-filter: none;
  }
  .nav.is-open .has-submenu .submenu a { padding: 10px 4px; font-size: 14px; border: 0; }
  .nav.is-open .has-submenu.is-open .submenu-trigger .caret { transform: rotate(180deg); }

  .hero-story { min-height: 200vh; }
  .story-slide { height: 100vh; padding: 90px 0 40px; }
  .story-slide h1, .story-slide h2 {
    font-size: clamp(1.7rem, 8vw, 2.4rem) !important;
    line-height: 1.1 !important;
    max-width: 100% !important;
    margin: 0 0 14px !important;
  }
  .story-lead { font-size: 1rem !important; margin: 0 0 22px !important; max-width: 100% !important; }
  .story-slide .hero-cta,
  .story-slide[data-slide="0"] .hero-cta,
  .story-slide[data-slide="1"] .hero-cta {
    flex-direction: column; align-items: stretch !important;
    justify-content: flex-start !important;
    text-align: left !important;
  }
  .story-slide .btn { width: 100%; justify-content: center; }
  .story-slide[data-slide="1"] .container,
  .story-slide[data-slide="1"] .container > *,
  .story-slide[data-slide="1"] .container h2,
  .story-slide[data-slide="1"] .story-lead {
    text-align: left !important;
    margin-left: 0 !important;
    margin-right: auto !important;
    max-width: 100% !important;
  }

  .section { padding: 50px 0 !important; }
  .section-cta, .cta-bg { padding: 60px 0 !important; }
  .section-head { margin-bottom: 32px !important; }
  .section-head h2 { font-size: clamp(1.4rem, 6vw, 1.9rem) !important; }

  .pillars { grid-template-columns: 1fr !important; gap: 28px !important; }

  .instrument-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }
  .instrument-grid > .instrument-card:nth-child(1),
  .instrument-grid > .instrument-card:nth-child(2),
  .instrument-grid > .instrument-card:nth-child(3),
  .instrument-grid > .instrument-card:nth-child(4),
  .instrument-grid > .instrument-card:nth-child(5) {
    grid-column: auto !important;
  }
  .instrument-grid > .instrument-card:nth-child(5) { grid-column: span 2 !important; }
  .instrument-card { aspect-ratio: 5/6 !important; }
  .instrument-card-inner { padding: 18px !important; }
  .instrument-card h3 { font-size: 1.05rem !important; }
  .instrument-card p { font-size: .82rem !important; }
  .instrument-cta { flex-direction: column !important; gap: 12px !important; margin-top: 24px !important; }
  .instrument-cta .btn { width: 100%; justify-content: center; }

  .teacher-grid { grid-template-columns: 1fr !important; gap: 18px !important; }
  .teacher-card { max-width: 100%; }
  .teacher-body { padding: 20px 20px 22px !important; }
  .teacher-body h3 { font-size: 1.1rem !important; }
  .teacher-role  { font-size: .8rem !important; }
  .teacher-tz { font-size: .74rem !important; padding: 4px 9px 4px 7px; }

  .availability { padding: 12px !important; margin-top: 16px !important; }
  .availability-head { margin-bottom: 10px !important; }
  .avail-title { font-size: 10px !important; }
  .avail-status { font-size: 9.5px !important; padding: 3px 7px !important; }
  .availability-grid { gap: 4px !important; grid-template-columns: repeat(7, 1fr) !important; }
  .avail-day { min-height: 46px !important; padding: 5px 3px 4px !important; }
  .day-num { font-size: 13px !important; }
  .day-lbl { font-size: 8.5px !important; }
  .day-dots { min-height: 5px !important; gap: 3px !important; }
  .dot { width: 4.5px !important; height: 4.5px !important; }
  .availability-legend {
    flex-wrap: wrap; font-size: 10px !important; gap: 10px !important;
    padding-top: 10px !important;
  }

  .cta-bg .cta-inner h2 { font-size: clamp(1.4rem, 6vw, 1.9rem); }
  .cta-buttons { flex-direction: column; }
  .cta-buttons .btn { width: 100%; justify-content: center; }

  .page-hero { min-height: 44vh !important; padding: 100px 0 40px !important; }
  .page-hero-content h1 { font-size: clamp(1.7rem, 8vw, 2.4rem) !important; }
  .page-hero-content p:not(.eyebrow):not(.breadcrumb) { font-size: .95rem !important; }

  .story-grid { grid-template-columns: 1fr !important; gap: 24px !important; }
  .story-photo { max-height: 320px; aspect-ratio: 4/3; }
  .story-copy h2 { font-size: clamp(1.4rem, 6vw, 1.9rem) !important; }

  .cat-hero { padding: 100px 0 40px !important; }
  .cat-hero h1 { font-size: clamp(1.7rem, 7vw, 2.2rem) !important; }
  .cat-hero p:not(.eyebrow):not(.breadcrumb) { font-size: .92rem !important; }

  .contact-form { padding: 20px !important; gap: 12px !important; }
  .cf-row { grid-template-columns: 1fr !important; gap: 12px !important; }
  .cf-actions { grid-template-columns: 1fr !important; text-align: center; gap: 10px !important; }
  .cf-actions .btn { width: 100%; justify-content: center; }
  .cf-field input, .cf-field textarea { font-size: 16px !important; padding: 12px 14px !important; }

  .footer-inner { grid-template-columns: 1fr !important; gap: 32px !important; margin-bottom: 24px !important; }
  .footer-cols { grid-template-columns: repeat(2, 1fr) !important; gap: 28px !important; }
  .footer-bottom { flex-direction: column !important; gap: 8px !important; text-align: center; padding-top: 20px; }

  .auth-wrap { padding: 90px 16px 40px !important; }
  .auth-card { padding: 26px 22px !important; }
  .auth-card h1 { font-size: 1.3rem !important; }
  .auth-form input { font-size: 16px !important; padding: 12px 14px !important; }
  .auth-back-home { display: inline-block; margin-bottom: 20px; font-size: 12px; padding: 5px 11px; }

  .dash-main { padding: 32px 0 60px !important; }
  .dash-welcome h1 { font-size: 1.35rem !important; }
  .dash-welcome h1 .status-badge { display: block; margin: 8px 0 0; }
  .video-grid { grid-template-columns: 1fr !important; gap: 14px !important; }
  .dash-sec-head { flex-wrap: wrap; gap: 8px; }

  .chatbot-launcher { width: 52px; height: 52px; right: 16px; bottom: 16px; }
  .chatbot-panel {
    right: 12px !important; left: 12px !important; width: auto !important;
    bottom: 80px !important; max-height: 68vh !important;
  }
  .chatbot-head { padding: 14px 16px; }
  .chatbot-messages { padding: 14px 16px; }
  .chat-msg { font-size: 13.5px; max-width: 82%; }
  .chatbot-quick { padding: 8px 12px 10px; gap: 5px; }
  .chatbot-quick button { padding: 5px 10px; font-size: 11px; }
  .chatbot-input { padding: 10px; }
  .chatbot-input input { font-size: 16px !important; padding: 10px 12px; }
}

/* ── Small phones (≤480px) ── */
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .container-narrow { padding: 0 16px; }
  :root { --header-h: 58px; }

  .brand-logo { height: 18px !important; }
  .header-cta .btn.btn-primary { padding: 6px 11px !important; font-size: 11px !important; }

  .story-slide { padding: 80px 0 30px; }
  .story-slide h1, .story-slide h2 { font-size: 1.7rem !important; }
  .story-lead { font-size: .92rem !important; }

  .section { padding: 40px 0 !important; }
  .section-cta, .cta-bg { padding: 50px 0 !important; }

  .instrument-grid { grid-template-columns: 1fr !important; }
  .instrument-grid > .instrument-card:nth-child(5) { grid-column: 1 !important; }
  .instrument-card { aspect-ratio: 5/4 !important; }

  .avail-day { min-height: 42px !important; }
  .day-num { font-size: 12px !important; }

  .footer-cols { grid-template-columns: 1fr !important; gap: 24px !important; }
  .footer-label { font-size: 11px; }
  .footer-cols a { font-size: .88rem; }
}

/* ── Landscape phones ── */
@media (max-height: 500px) and (orientation: landscape) {
  .hero-story { min-height: 200vh; }
  .story-slide { padding: 80px 0 20px; height: 100vh; }
  .story-slide h1, .story-slide h2 { font-size: 1.6rem !important; }
  .story-lead { font-size: .9rem !important; margin: 0 0 14px !important; }
  .hero-cta { flex-direction: row !important; }
  .hero-cta .btn { width: auto !important; padding: 8px 16px; font-size: 12px; }
}
