/* =========================================================
   Kai Piano Studios — main stylesheet
   Edit colors, fonts and sizes in the :root block below.
   ========================================================= */

:root {
  /* Colors */
  /* Royal plum on cream */
  --bg: #F5EEE2;          /* page background (cream) */
  --cream: #FCF9F2;       /* cards and panels */
  --sand: #EADFCB;
  --ink: #1D1520;         /* text and dark cards */
  --red: #5A2350;         /* the accent: royal plum (named "red" in the code) */
  --gold: #BFA06A;        /* champagne details: lines, underlines, staff */
  --rule: rgba(191, 160, 106, .55);  /* champagne hairlines */
  --line: rgba(29, 21, 32, 0.14);    /* thin borders */
  --brown: #43294A;       /* only used in the keyboard gradient */
  --staff: var(--gold); --staff-op: .85;
  --swirl: var(--gold); --swirl-op: .6;

  /* Fonts */
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Sizes */
  --max: 1100px;
  --pad: 24px;
  --hero-title: clamp(52px, 9vw, 104px);
  --section-title: clamp(40px, 6vw, 70px);
  --card-title: 30px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px; /* keeps anchor targets clear of the sticky header */
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.02;
  margin: 0 0 0.4em;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1em; }

a { color: inherit; }

.accent { font-style: italic; font-weight: 500; color: var(--red); }

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  width: 100%;
  max-width: calc(var(--max) + var(--pad) * 2);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.skip-link {
  position: absolute; left: -999px; top: 8px;
  background: var(--ink); color: var(--cream);
  padding: 8px 14px; border-radius: 999px; z-index: 100;
}
.skip-link:focus { left: 12px; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(28,23,20,.14); }
.btn-red   { background: var(--red); color: var(--cream); }
.btn-black { background: var(--ink); color: var(--cream); }
.btn-cream { background: var(--cream); color: var(--ink); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line); }

.link {
  font-weight: 700; text-decoration: none; color: var(--red);
  border-bottom: 1px solid currentColor; padding-bottom: 1px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245, 237, 225, 0.92);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding-top: env(safe-area-inset-top);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 76px;
}

.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-icon { width: 40px; height: 30px; flex: none; }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-kai {
  font-family: var(--serif); font-weight: 700; font-size: 30px;
  letter-spacing: 0.18em;
}
.logo-sub {
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.28em;
  font-weight: 500; margin-top: 3px;
}

.nav { display: flex; gap: 32px; }
.nav a {
  text-decoration: none; font-weight: 500; font-size: 15px;
  padding: 6px 0; border-bottom: 1px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--ink); font-weight: 700; }

.header-actions { display: flex; align-items: center; gap: 10px; }
.menu-btn {
  display: none;
  width: 44px; height: 44px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--cream);
  cursor: pointer; padding: 0;
  align-items: center; justify-content: center;
}
.menu-btn span, .menu-btn span::before, .menu-btn span::after {
  display: block; width: 18px; height: 1.5px; background: var(--ink);
  position: relative; transition: transform .2s ease;
}
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; }
.menu-btn span::before { top: -6px; }
.menu-btn span::after  { top: 6px; }
.menu-btn[aria-expanded="true"] span { background: transparent; }
.menu-btn[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span::after  { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Sheet music motifs ---------- */
.swirl {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none; z-index: 0;
}
.swirl path {
  fill: none; stroke: var(--swirl, var(--ink)); stroke-opacity: var(--swirl-op, .35); stroke-width: 1.5;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: draw 3.5s ease forwards;
}
.swirl path:nth-child(2) { animation-delay: .12s; }
.swirl path:nth-child(3) { animation-delay: .24s; }
.swirl path:nth-child(4) { animation-delay: .36s; }
.swirl path:nth-child(5) { animation-delay: .48s; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.faint-notes {
  position: absolute; left: 2%; top: 8%;
  width: clamp(140px, 22vw, 260px);
  opacity: .07; pointer-events: none; z-index: 0;
}

.staff {
  display: flex; flex-direction: column; gap: 9px;
  width: 78%;
}
.staff i { display: block; height: 1px; background: var(--staff, currentColor); opacity: var(--staff-op, .5); }

/* 3D keyboard */
.keyboard-wrap { perspective: 800px; }
.keyboard {
  position: relative;
  display: flex;
  width: 560px; height: 190px;
  transform: rotateX(38deg) rotateZ(-16deg);
  transform-style: preserve-3d;
  filter: drop-shadow(0 30px 30px rgba(0,0,0,.45));
}
.key-white {
  flex: 1; height: 100%;
  background: linear-gradient(#FCF8F1, #EDE3D3);
  border: 1px solid rgba(28,23,20,.35);
  border-radius: 0 0 6px 6px;
  box-shadow: inset 0 -8px 0 rgba(28,23,20,.08);
}
.key-black {
  position: absolute; top: 0;
  width: calc(100% / 14 * 0.6); height: 62%;
  background: linear-gradient(#3a2e26, #110d0b);
  border-radius: 0 0 4px 4px;
  box-shadow: 0 4px 0 #000, inset 0 -6px 0 rgba(255,255,255,.06);
  transform: translateX(-50%);
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 56px 0 88px; }
.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr 1fr;
  gap: 48px; align-items: center;
}
.hero h1 { font-size: var(--hero-title); margin-bottom: 0.2em; }
.slogan {
  font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: clamp(24px, 2.6vw, 32px); line-height: 1.25;
  max-width: 22ch; margin-bottom: 1.4em;
}
.hero-panel {
  position: relative;
  aspect-ratio: 1 / 1;
  max-height: 520px;
  border-radius: 40px 40px 40px 220px;
  background: linear-gradient(145deg, var(--ink), var(--brown));
  overflow: hidden;
  display: grid; place-items: center;
}
.hero-panel .keyboard-wrap { transform: translate(6%, 4%) scale(.95); }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section-label {
  display: flex; align-items: center; gap: 20px;
  font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: 28px; margin: 0 0 40px;
  text-align: center;
}
.section-label::before, .section-label::after {
  content: ""; flex: 1; height: 1px; background: var(--rule, var(--line));
}
.page-title { font-size: var(--section-title); }
.intro { font-size: 19px; max-width: 60ch; }

/* Lesson cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 24px; }
.lesson-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 26px;
  overflow: hidden;
  display: flex; flex-direction: column;
  text-align: center;
}
.lesson-pic {
  position: relative;
  height: 190px;
  display: grid; place-items: center;
  overflow: hidden;
}
.pic-black { background: var(--ink); color: var(--cream); }
.pic-sand  { background: var(--sand); color: var(--ink); }
.pic-red   { background: var(--red); color: var(--cream); }
.lesson-pic .mini-keys {
  position: absolute; bottom: -10px; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 3px;
}
.lesson-pic .mini-keys b {
  width: 22px; height: 54px; background: var(--cream);
  border-radius: 0 0 4px 4px; opacity: .92;
}
.lesson-body { padding: 26px 26px 30px; display: flex; flex-direction: column; flex: 1; align-items: center; }
.lesson-body h3 { font-size: var(--card-title); }
.lesson-body p { flex: 1; }
.price {
  font-family: var(--serif); font-weight: 700; font-size: 34px;
  margin: 4px 0 18px;
}
.price small { font-family: var(--sans); font-size: 14px; font-weight: 500; }
.lesson-card.large .lesson-pic { height: 230px; }
.lesson-card.large .lesson-body { text-align: left; align-items: flex-start; }
.lesson-card.large ul { padding-left: 1.1em; margin: 0 0 1.2em; }

/* About split */
.split {
  display: grid; grid-template-columns: 0.85fr 1.15fr;
  gap: 56px; align-items: center;
}
.arch-photo {
  aspect-ratio: 4 / 5;
  border-radius: 999px 999px 24px 24px;
  background: var(--sand);
  border: 1px solid var(--line);
  overflow: hidden;
  display: grid; place-items: center;
  color: rgba(28,23,20,.5);
  font-size: 14px; text-align: center; padding: 24px;
}
.arch-photo img { width: 100%; height: 100%; object-fit: cover; }
.split h2 { font-size: var(--section-title); }

/* Why it works */
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.why-card {
  padding: 32px 28px;
  border-radius: 30px 30px 30px 8px;
  min-height: 230px;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.why-card:nth-child(even) { border-radius: 30px 30px 8px 30px; }
.why-card h3 { font-size: var(--card-title); margin-bottom: .3em; }
.why-card p { margin: 0; }
.why-red   { background: var(--red); color: var(--cream); }
.why-cream { background: var(--cream); border: 1px solid var(--line); }
.why-sand  { background: var(--sand); }
.why-black { background: var(--ink); color: var(--cream); }
.why-num {
  font-family: var(--serif); font-style: italic; font-size: 20px;
  opacity: .7; margin-bottom: auto; padding-bottom: 24px;
}

/* Social pills */
.socials { display: flex; flex-wrap: wrap; gap: 10px; }
.pill {
  display: inline-flex; padding: 9px 20px;
  border: 1px solid var(--line); border-radius: 999px;
  text-decoration: none; font-weight: 700; font-size: 14px;
  transition: background .2s ease, color .2s ease;
}
.pill:hover { background: var(--ink); color: var(--cream); }

/* Call to action band */
.cta {
  position: relative; overflow: hidden;
  background: var(--ink); color: var(--cream);
  border-radius: 28px;
  padding: clamp(40px, 6vw, 72px);
  min-height: 300px;
  display: flex; align-items: center;
}
.cta-content { position: relative; z-index: 1; max-width: 460px; }
.cta h2 { font-style: italic; font-weight: 500; font-size: clamp(38px, 5.4vw, 62px); }
.cta .email { display: block; margin-top: 14px; font-size: 14px; opacity: .75; }
.cta-keys {
  position: absolute; right: -120px; top: 50%;
  transform: translateY(-50%);
  opacity: .9;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--rule, var(--line));
  margin-top: 72px;
  padding: 36px 0 calc(36px + env(safe-area-inset-bottom));
}
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.footer-tag {
  font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: 20px; margin: 0;
}
.copyright { font-size: 13px; opacity: .72; margin-top: 18px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 8px var(--pad) 20px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .menu-btn { display: inline-flex; }
}

@media (max-width: 820px) {
  .hero { padding-top: 28px; }
  .hero-grid, .split { grid-template-columns: 1fr; gap: 36px; }
  .hero-panel { border-radius: 40px 40px 40px 120px; max-height: 420px; }
  .hero-panel .keyboard-wrap { transform: translate(4%, 4%) scale(.7); }
  .arch-photo { max-width: 380px; width: 100%; margin: 0 auto; }
  .cta { flex-direction: column; align-items: flex-start; }
  .cta { padding-bottom: 170px; }
  .cta-keys { top: auto; bottom: -40px; right: -140px; transform: scale(.6); transform-origin: bottom right; }
}

@media (max-width: 520px) {
  .header-actions .btn { padding: 11px 18px; font-size: 14px; }
  .logo-kai { font-size: 24px; letter-spacing: .14em; }
  .logo-sub { letter-spacing: .2em; }
  .header-inner { gap: 8px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

/* Respect reduced-motion settings */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .swirl path { animation: none; stroke-dashoffset: 0; }
  .btn, .pill { transition: none; }
  .btn:hover { transform: none; }
}

/* ---------- Shop / Resources ---------- */
.shop-hero { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }

.featured {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  background: var(--ink); color: var(--cream);
  border-radius: 30px 30px 30px 8px; overflow: hidden;
}
.featured-cover {
  position: relative; min-height: 300px;
  background: linear-gradient(145deg, var(--ink), var(--brown));
  display: grid; place-items: center; overflow: hidden;
}
.featured-body { padding: clamp(32px, 5vw, 56px); display: flex; flex-direction: column; justify-content: center; }
.featured-body h2 { font-size: clamp(34px, 4.4vw, 50px); }
.featured .price small { opacity: .7; }
.tag {
  display: inline-block; align-self: flex-start;
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .14em;
  padding: 5px 12px; border-radius: 999px;
  border: 1px solid currentColor; opacity: .85; margin-bottom: 16px;
}

/* paper "sheet" mockup used on product covers */
.sheet {
  width: 42%; aspect-ratio: 8.5 / 11;
  background: var(--cream); color: var(--ink);
  border-radius: 4px;
  box-shadow: 0 18px 30px rgba(0,0,0,.28);
  transform: rotate(-5deg);
  padding: 9% 8%;
  display: flex; flex-direction: column; gap: 10%;
}
.sheet strong { font-family: var(--serif); font-size: clamp(12px, 1.6vw, 18px); line-height: 1.05; }
.sheet .staff { width: 100%; gap: 4px; }
.sheet .staff i { opacity: .45; }

.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.chip {
  font: 700 14px var(--sans); color: var(--ink);
  padding: 9px 18px; border-radius: 999px;
  border: 1px solid var(--line); background: transparent; cursor: pointer;
}
.chip[aria-pressed="true"] { background: var(--ink); color: var(--cream); border-color: var(--ink); }

.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 22px; }
.product {
  background: var(--cream); border: 1px solid var(--line);
  border-radius: 26px; overflow: hidden;
  display: flex; flex-direction: column;
}
.product[hidden] { display: none; }
.product-cover { aspect-ratio: 4 / 3; display: grid; place-items: center; }
.product-cover .sheet { width: 38%; }
.product-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.product-body h3 { font-size: 26px; margin-bottom: .25em; }
.product-body p { font-size: 15px; flex: 1; }
.product-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.product-foot .price { font-size: 26px; margin: 0; }
.product-foot .btn { padding: 10px 20px; font-size: 14px; }
.product .tag { color: var(--red); border-color: rgba(90,35,80,.35); margin-bottom: 12px; }

.free-band {
  border: 1px solid var(--line); border-radius: 28px;
  background: var(--sand);
  padding: clamp(32px, 5vw, 56px);
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center;
}
.free-band h2 { font-size: clamp(34px, 4.4vw, 50px); }

@media (max-width: 820px) {
  .featured, .free-band { grid-template-columns: 1fr; }
  .featured-cover { min-height: 240px; }
}

/* ---------- Logo scale ---------- */
.logo-icon .lk-w { fill: transparent; transition: fill .12s ease; }
.logo-icon .lk-b { fill: var(--ink); transition: fill .12s ease; }
.logo-icon .lit { fill: var(--red); }
.logo-icon .lk-b.lit { fill: var(--red); }

/* ---------- Name ---------- */
.eyebrow {
  font-size: 13px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .18em; color: var(--red); margin-bottom: 10px;
}
.aka { font-family: var(--serif); font-size: clamp(22px, 2.4vw, 28px); font-style: italic; margin-top: -4px; }

/* ---------- Combined lessons card ---------- */
.services-grid { grid-template-columns: 1fr; }
.tracks { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; width: 100%; margin: 6px 0 14px; }
.track { background: var(--bg); border: 1px solid var(--line); border-radius: 20px 20px 20px 6px; padding: 20px 22px 6px; }
.track:nth-child(even) { border-radius: 20px 20px 6px 20px; }
.track h3 { font-size: 26px; margin-bottom: .3em; }
.track ul { font-size: 15px; }
.price-row { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.price-row .price { margin: 0; }
.note { font-size: 14px; opacity: .75; margin: 16px 0 0; }
.lesson-card .tag { color: var(--red); border-color: rgba(90,35,80,.35); }
@media (max-width: 820px) {
  .services-grid, .tracks { grid-template-columns: 1fr; }
}

/* ---------- Champagne details ---------- */
.accent {
  text-decoration: underline; text-decoration-color: var(--gold);
  text-decoration-thickness: 1px; text-underline-offset: .14em;
}
.pill { border-color: var(--rule); }
.featured .price { color: #D2B47E; }
.cta { box-shadow: inset 0 0 0 1px var(--rule); }

/* ---------- Quote band (shown with bold motion) ---------- */
.dark-band { display: none; }
.dark-band blockquote {
  margin: 0 auto; max-width: 13em; text-wrap: balance;
  font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: clamp(38px, 6vw, 72px); line-height: 1.05;
}
.dark-band blockquote .hl { color: var(--gold, #D2B47E); }
.dark-band p { margin: 22px 0 0; font-size: 13px; letter-spacing: .22em; text-transform: uppercase; opacity: .7; }
.dark-band .band-staff { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 14px; opacity: .12; }
.dark-band .band-staff i { height: 1px; background: var(--gold, var(--cream)); }


/* ---------- Photo and video in the arch ---------- */
.arch-photo { position: relative; padding: 0; }
.arch-photo img { object-position: 58% 30%; }
.arch-video { background: var(--ink); }
.arch-video video { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; display: block; }
.play-btn {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 76px; height: 76px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--cream); color: var(--red);
  display: grid; place-items: center;
  box-shadow: 0 10px 30px rgba(0,0,0,.3);
  transition: transform .2s ease;
}
.play-btn svg { width: 30px; height: 30px; margin-left: 4px; }
.play-btn:hover { transform: translate(-50%, -50%) scale(1.06); }
.video-label {
  position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%);
  background: rgba(28,23,20,.75); color: var(--cream);
  font-size: 13px; font-weight: 700; padding: 6px 14px; border-radius: 999px; white-space: nowrap;
}
.arch-video.playing .play-btn, .arch-video.playing .video-label { display: none; }

/* ---------- Per-page ending variations ---------- */
.cta-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.cta-sand { background: var(--sand); color: var(--ink); }
.cta-sand h2, .cta-light h2 { font-style: normal; font-weight: 700; }
.cta-red { background: var(--red); color: var(--cream); }
.cta-light { background: var(--cream); color: var(--ink); border: 1px solid var(--line); }
.cta-staff {
  position: absolute; right: -40px; top: 50%; transform: translateY(-50%) rotate(-8deg);
  width: 42%; display: flex; flex-direction: column; gap: 16px; opacity: .35;
}
.cta-staff i { height: 1.5px; background: var(--staff, var(--ink)); }
.cta-sheets { position: absolute; right: 8%; top: 50%; transform: translateY(-50%); width: 260px; height: 220px; }
.cta-sheets .sheet { position: absolute; width: 130px; }
.cta-sheets .sheet:first-child { left: 0; top: 10px; transform: rotate(-8deg); }
.cta-sheets .sheet:last-child { left: 110px; top: 0; transform: rotate(6deg); }
@media (max-width: 820px) {
  .cta-staff { width: 90%; top: auto; bottom: 30px; transform: rotate(-8deg); opacity: .2; }
  .cta-sheets { position: relative; right: auto; top: auto; transform: none; margin: 30px auto 0; }
  .cta-sand, .cta-light { padding-bottom: clamp(40px, 6vw, 72px); }
}


/* ---------- Video: black and white, autoplay ---------- */
.arch-video video { filter: grayscale(1) contrast(1.05); }
.sound-btn {
  position: absolute; right: 16px; bottom: 16px; display: none;
  border: 0; cursor: pointer; border-radius: 999px; padding: 8px 16px;
  font: 700 13px var(--sans); background: var(--cream); color: var(--ink);
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
}
.arch-video.autoplaying .sound-btn { display: inline-block; }
.arch-video.autoplaying .play-btn, .arch-video.autoplaying .video-label { display: none; }

/* ---------- Faint notes behind page titles ---------- */
.page-head { position: relative; overflow: hidden; }
.page-head .container { position: relative; z-index: 1; }
.page-notes { left: max(0px, calc(50% - 620px)); top: 10px; width: clamp(130px, 18vw, 220px); }

/* ---------- Products: 3 + 3 ---------- */
.products { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .products { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) { .products { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .products { grid-template-columns: 1fr; } }

/* ---------- Help page ---------- */
.faq-wrap { display: grid; gap: 48px; }
.faq-group { max-width: 820px; }
.faq-title { font-size: 34px; margin-bottom: 14px; }
.faq { border-top: 1px solid var(--line); }
.faq:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 4px; font-weight: 700; font-size: 18px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-family: var(--serif); font-size: 30px; line-height: 1;
  color: var(--red); transition: transform .2s ease; flex: none;
}
.faq[open] summary::after { transform: rotate(45deg); }
.faq-a { padding: 0 4px 18px; max-width: 64ch; }
.cta-outline {
  background: transparent; color: var(--ink);
  border: 1.5px solid var(--ink); justify-content: center; text-align: center;
}
.cta-outline .cta-content { max-width: 560px; margin: 0 auto; }
.cta-outline h2 { font-style: normal; font-weight: 700; }

/* ---------- Page transitions ---------- */
@keyframes page-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
main { animation: page-in .45s ease both; }
body.leaving main, body.leaving .site-footer { opacity: 0; transform: translateY(-6px); transition: opacity .22s ease, transform .22s ease; }

/* ---------- Mobile polish ---------- */
a, button, summary { -webkit-tap-highlight-color: transparent; }
.btn:active { transform: translateY(0) scale(.97); }

@media (prefers-reduced-motion: reduce) {
  main { animation: none; }
  body.leaving main, body.leaving .site-footer { transition: none; }
}
.word-mask { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.word { display: inline-block; }

/* ---------- Tablet balance ---------- */
@media (min-width: 600px) and (max-width: 900px) {
  .cards:not(.services-grid) { grid-template-columns: 1fr 1fr; }
  .cards:not(.services-grid) > :nth-child(3):last-child { grid-column: 1 / -1; }
}
@media (max-width: 599px) { .cards:not(.services-grid) { grid-template-columns: 1fr; } }
@media (max-width: 820px) {
  .cta { padding-bottom: 210px; }
  .cta-keys { bottom: -30px; right: -90px; transform: scale(.75); }
  .cta-sand, .cta-light, .cta-outline { padding-bottom: clamp(40px, 6vw, 72px); }
}
@media (max-width: 820px) {
  .cta:has(.cta-keys) { padding-bottom: 0; }
  .cta-keys {
    position: relative; top: auto; right: auto; bottom: auto;
    transform: none; opacity: 1;
    align-self: flex-end; margin: 8px -70px -50px 0;
  }
}
@media (max-width: 520px) { .cta-keys { transform: scale(.8); transform-origin: right bottom; margin: -10px -110px -40px 0; } }

/* =========================================================
   HERO STAGE (keyboard panel)
   ========================================================= */
@property --sx { syntax: '<percentage>'; inherits: true; initial-value: 25%; }
@property --sy { syntax: '<percentage>'; inherits: true; initial-value: 18%; }
.hero-panel::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(circle at var(--sx) var(--sy), rgba(255, 236, 205, .26), transparent 46%),
    radial-gradient(ellipse at 50% 110%, rgba(201, 166, 107, .18), transparent 60%);
  animation: spotlight 10s ease-in-out infinite alternate;
}
.hero-panel.follow::before { animation: none; }
@keyframes spotlight {
  0%   { --sx: 18%; --sy: 16%; }
  50%  { --sx: 62%; --sy: 30%; }
  100% { --sx: 82%; --sy: 14%; }
}
.hero-panel .keyboard span { cursor: pointer; transition: transform .08s ease, background .12s ease, box-shadow .12s ease; }
.hero-panel .key-white.down {
  background: linear-gradient(#F3E2C2, #E2C796);
  transform: translateY(3px);
  box-shadow: inset 0 -4px 0 rgba(28,23,20,.08), 0 0 22px rgba(226, 199, 150, .85);
}
.hero-panel .key-black.down {
  background: linear-gradient(#9A2A27, var(--red));
  transform: translateX(-50%) translateY(2px);
  box-shadow: 0 2px 0 #000, 0 0 18px rgba(154, 42, 39, .9);
}
.note-layer { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.float-note {
  position: absolute; width: 20px; color: #EAD3A6;
  animation: note-rise 1.7s cubic-bezier(.2,.7,.3,1) forwards;
}
.float-note svg { width: 100%; height: auto; }
@keyframes note-rise {
  0%   { opacity: 0; transform: translate(-50%, 0) scale(.5) rotate(0deg); }
  15%  { opacity: 1; }
  100% { opacity: 0; transform: translate(calc(-50% + var(--drift)), -150px) scale(1.1) rotate(-14deg); }
}
.panel-hint {
  position: absolute; left: 26px; top: 24px; z-index: 3;
  font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: rgba(252, 248, 241, .8); border: 1px solid rgba(252, 248, 241, .28);
  padding: 7px 13px; border-radius: 999px; transition: opacity .4s ease;
}
.panel-hint.hide { opacity: 0; }
.hero-panel .keyboard-wrap { position: relative; z-index: 2; }

/* =========================================================
   BOLD MOTION (preview option)
   ========================================================= */


.bold-on .hero h1 .bword { display: inline-block; white-space: nowrap; }
.bold-on .hero h1 .char {
  display: inline-block; transform-origin: 50% 100%;
  animation: char-in .9s cubic-bezier(.2, .9, .25, 1) both;
  animation-delay: calc(var(--i) * 45ms + .1s);
}
@keyframes char-in { from { opacity: 0; transform: translateY(70%) rotate(10deg) scale(.9); } to { opacity: 1; transform: none; } }
.bold-on .hero .slogan { animation: page-in .9s .7s ease both; }
.bold-on .hero .btn { animation: page-in .9s .9s ease both; }
.bold-on .hero-panel { animation: panel-in 1.2s .2s cubic-bezier(.2,.8,.2,1) both; }
@keyframes panel-in { from { opacity: 0; clip-path: inset(100% 0 0 0 round 40px); } to { opacity: 1; clip-path: inset(0 0 0 0 round 40px); } }

.bold-on .reveal {
  opacity: 0; transform: translateY(70px) scale(.97);
  transition: opacity 1s cubic-bezier(.2,.8,.2,1) var(--d, 0s), transform 1.1s cubic-bezier(.2,.8,.2,1) var(--d, 0s);
}
.bold-on .reveal.in { opacity: 1; transform: none; }
.bold-on .split > .arch-photo.reveal { opacity: 1; transform: none; }
.bold-on .split > .arch-photo.reveal::after {
  content: ""; position: absolute; inset: 0; z-index: 5; background: var(--bg);
  transition: transform 1.4s cubic-bezier(.7, 0, .2, 1) .1s;
}
.bold-on .split > .arch-photo.reveal.in::after { transform: translateY(-101%); }
.bold-on .lesson-card, .bold-on .product { transition: transform .25s ease, opacity 1s, box-shadow .25s ease; will-change: transform; }
.bold-on .lesson-card:hover, .bold-on .product:hover { box-shadow: 0 24px 50px rgba(28,23,20,.14); }

/* show the quote band in bold too */
.bold-on .dark-band { display: block; position: relative; overflow: hidden; background: var(--ink); color: var(--cream); padding: clamp(80px, 12vw, 150px) 0; margin: 40px 0; text-align: center; }
.bold-on .dark-band .qw { transition: opacity .2s linear; }

/* Why it works: cards stack as you scroll (desktop) */
@media (min-width: 900px) {
  .bold-on .why-grid { display: block; max-width: 760px; margin: 0 auto; }
  .bold-on .why-card {
    position: sticky; min-height: 300px; margin-bottom: 28px;
    box-shadow: 0 -10px 40px rgba(28,23,20,.10);
    padding: 44px 44px; font-size: 19px;
  }
  .bold-on .why-card h3 { font-size: 46px; }
  .bold-on .why-card:nth-child(1) { top: 110px; }
  .bold-on .why-card:nth-child(2) { top: 134px; }
  .bold-on .why-card:nth-child(3) { top: 158px; }
  .bold-on .why-card:nth-child(4) { top: 182px; }
  .bold-on .why-card.reveal { transform: none; opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-panel::before { animation: none; }
  .float-note { display: none; }
}

.logo-sub { white-space: nowrap; }
@media (max-width: 420px) { .logo-kai { font-size: 22px; } .logo-icon { width: 34px; height: 26px; } .header-actions .btn { padding: 10px 15px; } }

/* ---------- Booking pop-up ---------- */
.book-pop {
  position: fixed; z-index: 95; left: 14px; right: 14px; bottom: calc(24px + env(safe-area-inset-bottom));
  margin: 0 auto; max-width: 420px;
  background: var(--cream); color: var(--ink); border: 1px solid var(--line);
  border-radius: 24px 24px 24px 8px; padding: 26px 26px 24px;
  box-shadow: 0 24px 60px rgba(28,23,20,.25); animation: page-in .3s ease both;
}
.book-pop[hidden] { display: none; }
.book-pop .book-title { font-family: var(--serif); font-weight: 700; font-size: 28px; margin: 0 0 6px; }
.book-pop p { margin: 0 0 10px; font-size: 15px; }
.book-pop .book-email { font-weight: 700; font-size: 17px; word-break: break-all; user-select: all; }
.book-copy { margin-top: 6px; }
.book-close {
  position: absolute; right: 14px; top: 12px; width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--line); background: transparent; font-size: 22px; line-height: 1; cursor: pointer; color: var(--ink);
}

.book-note { font-size: 14px; margin: 16px 0 0; opacity: .85; }
.book-note a { color: inherit; font-weight: 700; }

.book-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 16px 0 6px; }
.book-opt {
  display: flex; align-items: center; justify-content: center;
  padding: 13px 10px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--bg); color: var(--ink); text-decoration: none; font-weight: 700; font-size: 15px;
  transition: background .2s ease, color .2s ease;
}
.book-opt:hover { background: var(--ink); color: var(--cream); }
.book-email-row { margin-top: 12px; }

/* ---------- Student reviews ---------- */
.reviews { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.review {
  background: var(--cream); border: 1px solid var(--line);
  border-radius: 26px 26px 26px 8px; padding: 30px 28px 26px; margin: 0;
  display: flex; flex-direction: column;
}
.review:nth-child(even) { border-radius: 26px 26px 8px 26px; }
.review::before {
  content: "\201C"; font-family: var(--serif); font-size: 72px; line-height: .6;
  color: var(--red); height: 34px; display: block;
}
.review blockquote { margin: 0 0 20px; font-family: var(--serif); font-size: 22px; line-height: 1.35; flex: 1; }
.review figcaption { font-size: 14px; font-weight: 700; }
.review figcaption span { display: block; font-weight: 400; opacity: .75; }
.reviews-cta { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; margin-top: 32px; text-align: center; }
.reviews-cta p { margin: 0; }
@media (max-width: 900px) { .reviews { grid-template-columns: 1fr; } }
.book-cal { width: 100%; margin-top: 8px; }
.book-pop .book-or { text-align: center; font-size: 13px; opacity: .7; margin: 14px 0 0; }
.book-pop .book-options { margin-top: 8px; }
.review { transition: opacity .45s ease, transform .45s ease; }
.review.swap { opacity: 0; transform: translateY(8px); }
.review .new-tag {
  align-self: flex-start; margin-bottom: 12px;
  font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--red); border: 1px solid currentColor; border-radius: 999px; padding: 4px 10px;
}
.review { position: relative; }
.review .new-tag { position: absolute; top: 24px; right: 24px; margin: 0; }

/* ---------- Reviews (fixed three) ---------- */
.review blockquote { font-size: 19px; line-height: 1.45; }

/* ---------- Review form ---------- */
.review-modal {
  position: fixed; inset: 0; z-index: 96; background: rgba(28, 23, 20, .45);
  display: grid; place-items: center; padding: 16px;
  padding-bottom: calc(16px + env(safe-area-inset-bottom));
}
.review-modal[hidden] { display: none; }
.review-form {
  position: relative; width: min(480px, 100%); max-height: calc(100vh - 32px); overflow: auto;
  background: var(--cream); border-radius: 26px 26px 26px 8px; padding: 30px 28px 28px;
  display: flex; flex-direction: column; box-shadow: 0 24px 60px rgba(28,23,20,.3);
}
.review-form .form-intro { font-size: 15px; margin: 0 0 18px; }
.review-form label { font-size: 14px; font-weight: 700; margin: 12px 0 6px; }
.review-form input:not([type="checkbox"]), .review-form select, .review-form textarea {
  font: 400 16px var(--sans); color: var(--ink);
  background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; width: 100%;
}
.review-form textarea { resize: vertical; min-height: 120px; }
.review-form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; margin: 16px 0 4px; }
.review-form .check input { margin-top: 4px; accent-color: var(--red); width: 18px; height: 18px; flex: none; }
.review-form button[type="submit"] { margin-top: 18px; align-self: flex-start; }
.form-error { color: var(--red); font-size: 14px; font-weight: 700; margin: 12px 0 0; }
.form-thanks p { margin: 0 0 8px; }
.review-form [hidden] { display: none !important; }
.review-form .book-title { font-family: var(--serif); font-weight: 700; font-size: 30px; margin: 0 0 6px; }
.review-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.product-body h3 { font-size: 23px; }
.product-cover .sheet { width: 44%; padding: 8% 7%; } .product-cover .sheet strong { font-size: 12px; line-height: 1.15; overflow-wrap: anywhere; }

/* ---------- Spacing polish ---------- */
.section#contact { padding-top: 24px; }
.site-footer { margin-top: 24px; }
.lesson-card.large .lesson-pic { height: 150px; }
#follow { padding-bottom: 48px; }
@media (min-width: 821px) {
  .free-band { grid-template-columns: 1fr auto; }
  .free-band .socials { flex-wrap: nowrap; }
}

/* ---------- Lesson pricing ---------- */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; width: 100%; margin: 0 0 20px; }
.plan {
  position: relative; border: 1px solid var(--line); border-radius: 20px;
  padding: 20px 22px; background: var(--cream);
}
.plan-best { border: 1.5px solid var(--red); }
.plan-badge {
  position: absolute; top: -11px; left: 20px; background: var(--red); color: var(--cream);
  font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px;
}
.plan .plan-name { font-weight: 700; font-size: 15px; margin: 0 0 4px; }
.plan .plan-price { font-family: var(--serif); font-weight: 700; font-size: 38px; line-height: 1.1; margin: 0 0 6px; }
.plan .plan-price small { font-family: var(--sans); font-size: 14px; font-weight: 500; }
.plan .plan-note { font-size: 14px; margin: 0; opacity: .8; }
@media (max-width: 560px) { .plans { grid-template-columns: 1fr; gap: 20px; } }

/* ---------- Square review cards, long reviews scroll inside ---------- */
.review { aspect-ratio: 1 / 1; min-height: 0; overflow: hidden; }
.review blockquote { flex: 1; min-height: 0; overflow-y: auto; padding-right: 8px; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--sand) transparent; }
.review blockquote.scrolls {
  -webkit-mask-image: linear-gradient(#000 80%, transparent);
  mask-image: linear-gradient(#000 80%, transparent);
}
.review blockquote.scrolls.at-end { -webkit-mask-image: none; mask-image: none; }
.review figcaption { margin-top: 16px; }
.scroll-hint { font-size: 12px; font-weight: 700; color: var(--red); margin: 8px 0 0; }
@media (max-width: 900px) { .review { aspect-ratio: auto; height: 340px; } }

/* extra faint notes behind the Services title */
.page-notes.notes-b { left: auto; right: max(24px, calc(50% - 560px)); top: 18px; width: clamp(60px, 7vw, 96px); transform: rotate(10deg); }
.page-notes.notes-c { left: auto; right: max(150px, calc(50% - 300px)); top: auto; bottom: 0; width: clamp(90px, 11vw, 150px); transform: rotate(-8deg); }
@media (max-width: 700px) {
  .page-notes.notes-b { right: 10px; top: 6px; }
  .page-notes.notes-c { right: 34%; bottom: -10px; }
}

/* ---------- Shop deals ---------- */
.fine-print { font-size: 13px; opacity: .7; margin: -6px 0 18px; }
.featured .price small { font-family: var(--sans); font-size: 14px; font-weight: 700; color: var(--gold); margin-left: 6px; }
.deals { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.deal {
  position: relative; background: var(--cream); border: 1px solid var(--line);
  border-radius: 26px 26px 26px 8px; padding: 30px 30px 26px;
}
.deal-best { border: 1.5px solid var(--red); border-radius: 26px 26px 8px 26px; }
.deal .deal-name { font-weight: 700; font-size: 15px; margin: 0 0 2px; }
.deal .deal-save { font-family: var(--serif); font-weight: 700; font-size: 44px; line-height: 1.1; margin: 0 0 8px; color: var(--red); }
.deal .deal-how { font-size: 15px; margin: 0 0 18px; }
.code-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.code {
  font: 700 17px/1 var(--sans); letter-spacing: .14em;
  padding: 12px 18px; border-radius: 12px; border: 1.5px dashed var(--gold); background: var(--bg);
  user-select: all;
}
.copy-code { padding: 10px 20px; font-size: 14px; }
.deals-link { text-align: center; margin: 26px 0 0; }
@media (max-width: 760px) { .deals { grid-template-columns: 1fr; gap: 26px; } }
.featured-list { margin: 0 0 18px; padding-left: 1.1em; font-size: 15px; opacity: .92; }
.featured-list li { margin-bottom: 4px; }
.featured-list li::marker { color: var(--gold); }
.learn-way { font-size: 15px; font-style: italic; margin: 0 0 24px; }
