/* ============================================================
   Bhasha — cream, ink, one burnt orange.
   Display: Playfair Display. UI: Inter. Devanagari: Noto Serif.
   ============================================================ */

:root {
  --cream: #fcf4e9;
  --band: #f9e8d4;
  --card: #fdf6ee;
  --ink: #2a1d14;
  --ink-soft: #6f5b4c;
  --ink-mute: #93806f;
  --orange: #c64e02;
  --orange-deep: #a13d01;
  --orange-soft: #f7e1cb;
  --line: #eddcc7;
  --line-soft: #f2e5d4;
  --ok: #4f7a3f;
  --dark: #32281c;
  --shadow: 0 18px 44px rgba(88, 50, 20, .07);
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, Segoe UI, Roboto, sans-serif;
  --dev: "Noto Serif Devanagari", var(--serif);
  --wrap: 1160px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; letter-spacing: -.01em; margin: 0; color: var(--ink); }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }
.wrap.narrow { max-width: 840px; }

.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--cream); padding: 10px 16px; z-index: 999; }
.skip:focus { left: 0; }

/* ---------------------------------------------------------------- nav */
.nav {
  position: sticky; top: 0; z-index: 60;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
  padding: 16px max(32px, calc((100vw - 1160px) / 2));
  background: var(--cream);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.nav.stuck { border-bottom-color: var(--line); }
.nav .nav-cta { justify-self: end; }

.logo { display: flex; flex-direction: column; line-height: 1.05; justify-self: start; }
.logo-word { font-family: var(--serif); font-size: 27px; font-weight: 600; letter-spacing: -.02em; }
.logo-sub { font-size: 8px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-mute); margin-top: 4px; }

.nav-links { display: flex; gap: 30px; font-size: 13.5px; color: var(--ink); }
.nav-links a { position: relative; padding: 3px 0; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .22s ease;
}
.nav-links a:hover::after { transform: scaleX(1); }

/* contact in the top bar — mailto, so it works with no script and no backend */
.nav-links .nav-mail {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--orange-deep); font-weight: 500;
}
.nav-links .nav-mail .ico { width: 14px; height: 14px; }
.nav-links .nav-mail::after { background: var(--orange-deep); }
.nav-mobile .nav-mail { color: var(--orange-deep); font-weight: 500; }

.nav-toggle { display: none; justify-self: end; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 1.5px; background: var(--ink); margin: 5px 0; }

.nav-mobile {
  position: sticky; top: 66px; z-index: 59;
  display: grid; gap: 2px; padding: 10px max(22px, calc((100vw - 1160px) / 2)) 18px;
  background: var(--cream); border-bottom: 1px solid var(--line);
}
.nav-mobile[hidden] { display: none; }
.nav-mobile a { padding: 11px 0; border-bottom: 1px solid var(--line-soft); font-size: 15px; }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border-radius: 999px; font-size: 14px; font-weight: 500;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .16s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn span { transition: transform .2s ease; }
.btn:hover span { transform: translate(2px, -2px); }
.btn-primary { background: var(--orange); color: #fff8ef; }
.btn-primary:hover { background: var(--orange-deep); transform: translateY(-1px); }
.btn-ghost { background: transparent; border-color: #dfc9ae; color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-outline { background: var(--card); border-color: var(--line); }
.btn-outline:hover { border-color: var(--orange); color: var(--orange-deep); }
.btn-sm { padding: 9px 18px; font-size: 13px; }
.btn.full { width: 100%; }

/* ---------------------------------------------------------------- shared */
.eyebrow, .kicker {
  font-size: 11px; letter-spacing: .17em; text-transform: uppercase;
  color: var(--orange); font-weight: 600;
}
.kicker.center, .section-title.center, .section-sub.center { text-align: center; }
.section-title { font-size: clamp(28px, 3vw, 38px); line-height: 1.14; margin-top: 8px; }
.section-title.center { max-width: 34ch; margin-left: auto; margin-right: auto; text-wrap: balance; }
.section-sub { color: var(--ink-soft); margin-top: 12px; max-width: 72ch; font-size: 15px; }
.section-sub.center { margin-left: auto; margin-right: auto; max-width: 72ch; }
.fineprint { font-size: 12px; color: var(--ink-mute); margin-top: 18px; }

.section { padding: 78px 0; }
.band { background: var(--band); padding: 56px 0 62px; }
.band-lesson { padding: 62px 0; }

/* ---------------------------------------------------------------- hero */
.hero { padding: 34px 0 0; }
.hero-inner {
  max-width: var(--wrap); margin: 0 auto; padding-left: 32px;
  display: grid; grid-template-columns: minmax(0, 1fr) 540px; align-items: end; gap: 56px;
}
.hero-copy { padding-bottom: 56px; }

.hero-copy h1 { font-size: clamp(40px, 5vw, 62px); line-height: 1.02; margin-top: 16px; letter-spacing: -.025em; }
.h-line { display: block; }
.h-line.accent { color: var(--orange); }
.lede { margin-top: 20px; color: var(--ink-soft); font-size: 16px; max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-note { display: flex; align-items: center; gap: 9px; margin-top: 26px; font-size: 12.5px; color: var(--ink-mute); }

/* contact line in the hero banner */
.hero-contact {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px;
  margin-top: 10px; font-size: 12.5px; color: var(--ink-mute);
}
.hero-contact a {
  display: inline-flex; align-items: center; gap: 7px;
  color: var(--orange-deep); font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, color .2s ease;
}
.hero-contact a:hover { border-bottom-color: currentColor; }
.hero-contact .ico { width: 15px; height: 15px; }
.ico { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.4; flex: none; }

.hero-art {
  margin: 0; justify-self: end;
  width: 540px;
  margin-right: min(0px, calc((1160px - 100vw) / 2));
  border-radius: 50% 50% 0 0 / 84% 84% 0 0;
  overflow: hidden;
  background: #f9dfbe;
}
.arch-art { width: 100%; height: auto; }

/* ---------------------------------------------------------------- cards */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 34px; }
.feature {
  display: grid; grid-template-columns: 46px 1fr; column-gap: 14px; align-items: center;
  background: var(--card); border: 1px solid #f0dfc9; border-radius: 14px; padding: 20px;
}
.feature h3 { font-size: 18px; font-family: var(--sans); font-weight: 600; letter-spacing: -.005em; }
.feature p { grid-column: 1 / -1; color: var(--ink-soft); font-size: 14px; margin-top: 14px; }
.f-ico {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  background: var(--orange-soft); color: var(--orange); font-size: 18px;
}

/* ---------------------------------------------------------------- curriculum */
.section-head .section-title { max-width: 24ch; }

.curriculum-grid {
  display: grid; grid-template-columns: 290px 1fr 300px; gap: 20px;
  margin-top: 34px; align-items: start;
}
.levels { display: grid; gap: 10px; }
.level {
  display: grid; gap: 3px; text-align: left; padding: 13px 16px; cursor: pointer;
  background: var(--card); border: 1px solid var(--line); border-radius: 11px;
  transition: background .18s ease, border-color .18s ease;
}
.level strong { font-size: 14px; font-weight: 600; }
.level span { font-size: 12.5px; color: var(--ink-mute); }
.level:hover { border-color: #dcc4a6; }
.level.active { background: var(--orange); border-color: var(--orange); color: #fff7ec; }
.level.active span { color: rgba(255, 247, 236, .78); }

.level-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 22px 24px; box-shadow: var(--shadow); min-height: 322px;
}
.level-tag { font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--orange); font-weight: 600; }
.level-card h3 { font-size: 26px; margin-top: 6px; }
.level-desc { color: var(--ink-soft); font-size: 14px; margin-top: 6px; max-width: 34ch; }
.level-steps { margin: 14px 0 0; padding-left: 18px; display: grid; gap: 5px; font-size: 14px; }
.level-steps li::marker { color: var(--orange); font-weight: 600; }
.milestone { margin-top: 16px; padding: 10px 13px; border-radius: 9px; background: #fbeada; font-size: 13px; color: #6b3a1c; }

.teacher-photo { margin: 0; }
.teacher-photo img {
  /* show the portrait in its own 2:3 frame — a forced aspect-ratio crop cut
     her head and read as a stretched image on a phone */
  width: 100%; height: auto; border-radius: 12px; display: block;
}
.teacher-photo figcaption { font-size: 11.5px; color: var(--ink-mute); margin-top: 8px; }

.more-subjects {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px 20px;
  margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line);
}
.ms-label { font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-mute); font-weight: 600; }
.more-subjects ul { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; }
.more-subjects li {
  display: flex; align-items: center; gap: 8px; padding: 7px 12px;
  background: var(--card); border: 1px solid var(--line); border-radius: 999px; font-size: 13px;
}
.more-subjects em { font-style: normal; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--orange); }
.more-subjects li:nth-child(n+2) em { color: var(--ink-mute); }

/* ---------------------------------------------------------------- modules */
.modules-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 34px; align-items: start; }
.module-col {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 20px; display: flex; flex-direction: column; height: 100%;
}
.mc-level { font-size: 9.5px; letter-spacing: .15em; text-transform: uppercase; color: var(--orange); font-weight: 600; }
.module-col h3 { font-size: 19px; margin-top: 5px; }
.mc-list { list-style: none; counter-reset: mod; margin: 16px 0 18px; padding: 0; display: grid; gap: 11px; }
.mc-list li {
  counter-increment: mod; position: relative; padding-left: 24px;
  display: grid; gap: 2px;
}
.mc-list li::before {
  content: counter(mod); position: absolute; left: 0; top: 1px;
  font-size: 10px; font-weight: 600; color: var(--orange);
  width: 16px; height: 16px; border-radius: 50%; background: var(--orange-soft);
  display: grid; place-items: center;
}
.mc-list strong { font-size: 13.5px; font-weight: 600; line-height: 1.35; }
.mc-list span { font-size: 11.5px; color: var(--ink-mute); line-height: 1.45; }
.mc-foot {
  margin-top: auto; padding-top: 13px; border-top: 1px solid var(--line-soft);
  font-size: 12px; color: #6b3a1c; line-height: 1.5;
}

.board-note { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; gap: 18px; align-items: flex-start; }
.bn-label { flex: none; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--orange); font-weight: 600; padding-top: 3px; }
.board-note p { font-size: 13.5px; color: var(--ink-soft); max-width: 92ch; }

/* ---------------------------------------------------------------- faculty */
.band-teachers { padding: 62px 0; }
.teachers-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 34px; }
.teacher-card {
  background: var(--card); border: 1px solid #f0dfc9; border-radius: 14px;
  padding: 20px; display: flex; flex-direction: column;
}
.tc-top { display: flex; gap: 13px; align-items: center; }
.tc-mono {
  width: 44px; height: 44px; border-radius: 50%; flex: none;
  display: grid; place-items: center; background: var(--orange-soft);
  color: var(--orange-deep); font-family: var(--serif); font-size: 16px; letter-spacing: .02em;
}
.tc-name { font-size: 18px; }
.tc-role { font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--orange); font-weight: 600; margin-top: 3px; }
.tc-quals { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.tc-quals span {
  font-size: 10.5px; padding: 4px 9px; border-radius: 999px;
  background: var(--cream); border: 1px solid var(--line); color: var(--ink-soft);
}
.tc-list { margin: 16px 0 0; display: grid; gap: 9px; }
.tc-list div { display: grid; grid-template-columns: 74px 1fr; gap: 10px; align-items: baseline; }
.tc-list dt { font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-mute); }
.tc-list dd { margin: 0; font-size: 12.5px; color: var(--ink-soft); }

/* ---------------------------------------------------------------- lesson */
.lesson-grid { display: grid; grid-template-columns: 340px 1fr; gap: 48px; align-items: start; }
.lesson-copy .section-title { max-width: 22ch; }

.quiz-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 22px 26px 20px; }
.quiz-head { display: flex; align-items: center; gap: 16px; }
.quiz-badge { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--orange); }
.quiz-progress { flex: 1; height: 3px; background: #eddbc5; border-radius: 999px; overflow: hidden; }
.quiz-progress span { display: block; height: 100%; width: 25%; background: var(--orange); transition: width .35s ease; }
.quiz-count { font-size: 11.5px; color: var(--ink-mute); font-variant-numeric: tabular-nums; }
.quiz-q { font-size: clamp(20px, 2.1vw, 26px); margin-top: 18px; }
.quiz-opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 18px; }
.opt {
  padding: 14px 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--cream);
  cursor: pointer; text-align: center; font-size: 14.5px;
  transition: border-color .18s ease, background .18s ease;
}
.opt:hover { border-color: #d9bf9f; }
.opt.correct { border-color: var(--ok); background: #eef4e9; color: #35572a; }
.opt.wrong { border-color: #b8543f; background: #fbebe6; color: #8a3222; }
.opt:disabled { cursor: default; }
.quiz-foot { display: flex; align-items: center; gap: 16px; margin-top: 16px; }
.quiz-feedback { flex: 1; font-size: 13px; color: var(--ink-soft); min-height: 20px; }
.quiz-feedback.ok { color: var(--ok); }
.quiz-feedback.no { color: #8a3222; }
.quiz-foot .btn { padding: 11px 20px; font-size: 13.5px; }

/* ---------------------------------------------------------------- pricing */
.pricing-grid { display: grid; grid-template-columns: 250px repeat(3, 1fr); gap: 18px; align-items: stretch; }
.pricing-head .section-title { font-size: clamp(24px, 2.4vw, 31px); }
.pricing-head .section-sub { font-size: 14px; }
.plan {
  position: relative; background: var(--card); border: 1px solid var(--line);
  border-radius: 15px; padding: 22px 20px; display: flex; flex-direction: column;
}
.plan.featured { border-color: var(--orange); background: #fdf3ea; }
.ribbon {
  position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  background: var(--orange); color: #fff8ef; font-size: 9.5px; letter-spacing: .12em;
  text-transform: uppercase; font-weight: 600; padding: 4px 12px; border-radius: 999px; white-space: nowrap;
}
.plan h3 { font-size: 18px; font-family: var(--sans); font-weight: 600; }
.price { font-family: var(--serif); font-size: 40px; line-height: 1; margin-top: 10px; }
.price span { font-size: 20px; vertical-align: 8px; margin-right: 1px; }
.plan-sub { font-size: 11.5px; color: var(--ink-mute); margin-top: 5px; }
.plan ul { list-style: none; margin: 16px 0 20px; padding: 0; display: grid; gap: 8px; font-size: 13px; }
.plan li { display: flex; gap: 8px; color: var(--ink-soft); }
.plan li::before { content: "✓"; color: var(--orange); font-weight: 600; }
.plan .btn { margin-top: auto; padding: 10px 16px; font-size: 13px; }

/* ---------------------------------------------------------------- quotes */
.quotes blockquote {
  margin: 0; background: var(--card); border: 1px solid #f0dfc9; border-radius: 14px;
  padding: 22px; display: flex; flex-direction: column; gap: 14px;
}
.quotes p { font-family: var(--serif); font-size: 16.5px; line-height: 1.5; }
.quotes footer { font-size: 12px; color: var(--ink-mute); }

/* ---------------------------------------------------------------- faq */
.faq-section { padding: 66px 0; }
.faq { margin-top: 24px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; padding: 17px 0; font-family: var(--serif); font-size: 18px;
  list-style: none; display: flex; justify-content: space-between; gap: 20px; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--orange); font-size: 20px; line-height: 1; transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { padding: 0 0 18px; color: var(--ink-soft); font-size: 14px; max-width: 68ch; }

/* ---------------------------------------------------------------- teacher + contact */
.teacher-section { padding: 58px 0 66px; }
.teacher-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 44px; align-items: start; }

.teacher-head { display: flex; gap: 22px; align-items: flex-start; }
.teacher-tile { width: 190px; height: auto; border-radius: 10px; flex: none; }
.teacher-head .section-title { max-width: 15ch; }

.teacher-copy > .section-sub { margin-top: 18px; max-width: 52ch; }

.cred-list { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 8px 26px; margin: 22px 0 0; }
.cred-list div { border-left: 2px solid var(--orange-soft); padding-left: 11px; }
.cred-list dt { font-size: 13px; font-weight: 600; }
.cred-list dd { margin: 1px 0 0; font-size: 11.5px; color: var(--ink-mute); }
.teacher-points { list-style: none; padding: 0; margin: 22px 0 26px; display: grid; gap: 8px; font-size: 14px; color: var(--ink-soft); }
.teacher-points li { display: flex; gap: 10px; }
.teacher-points li::before { content: "—"; color: var(--orange); }

.teacher-stats {
  display: grid; grid-template-columns: repeat(3, auto); justify-content: start;
  gap: 0 28px; margin: 0 0 26px; padding: 18px 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.teacher-stats div + div { border-left: 1px solid var(--line); padding-left: 28px; }
.teacher-stats dt { font-family: var(--serif); font-size: 26px; line-height: 1; }
.teacher-stats dd { margin: 4px 0 0; font-size: 11.5px; color: var(--ink-mute); }

.contact-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 24px; box-shadow: var(--shadow); }
.contact-card h3 { font-size: 23px; margin-top: 6px; }
.contact-sub { font-size: 13.5px; color: var(--ink-soft); margin-top: 6px; }
#contactForm { margin-top: 18px; display: grid; gap: 12px; }
#contactForm[hidden] { display: none; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
label { display: grid; gap: 5px; font-size: 12px; color: var(--ink-soft); }
input, select, textarea {
  width: 100%; padding: 10px 12px; font: inherit; font-size: 13.5px; color: var(--ink);
  background: var(--cream); border: 1px solid var(--line); border-radius: 8px;
  transition: border-color .18s ease, box-shadow .18s ease;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(198, 78, 2, .12); }
textarea { resize: vertical; min-height: 66px; }
input.invalid, textarea.invalid { border-color: #b8543f; background: #fdf3ef; }
.form-note { font-size: 11px; color: var(--ink-mute); text-align: center; margin-top: 8px; }
.form-note a { color: var(--orange-deep); text-decoration: underline; text-underline-offset: 2px; }

/* Google Form embed — the frame scrolls on its own, so the card height stays
   predictable on a phone. */
.form-embed {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}
.form-embed iframe { display: block; width: 100%; height: 620px; border: 0; }
@media (max-width: 640px) {
  .form-embed iframe { height: 74vh; min-height: 480px; }
}
.form-success { display: grid; gap: 10px; place-items: start; padding-top: 6px; }
.form-success[hidden] { display: none; }
.tick { width: 40px; height: 40px; border-radius: 50%; background: #eef4e9; color: var(--ok); display: grid; place-items: center; font-size: 18px; }
.form-success h4 { font-size: 20px; }
.form-success p { font-size: 13.5px; color: var(--ink-soft); }
.form-success a { color: var(--orange-deep); text-decoration: underline; text-underline-offset: 3px; }

/* ---------------------------------------------------------------- footer */
.footer { background: var(--dark); color: #f4e7d8; padding: 26px 0; }
.footer-top { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-brand { display: flex; flex-direction: column; line-height: 1.05; }
.footer .logo-word { color: var(--cream); font-size: 25px; }
.footer .logo-sub { color: rgba(244, 231, 216, .55); margin-top: 4px; }
.footer-mid { font-size: 13px; color: rgba(244, 231, 216, .72); }
.footer-top-link { font-size: 13px; color: rgba(244, 231, 216, .85); }
.footer-top-link:hover { color: #fff; }
.footer-mail { color: #f0ba8a; text-decoration: underline; text-underline-offset: 3px; }

/* ---------------------------------------------------------------- scroll chapters
   Two sticky teaching moments: the vowels arriving one at a time, then three
   glyphs joining into a word. Only opacity and transforms move, progress is
   measured from the pane's own travel (not the window height), and every tall
   track is gated behind html.mo — so reduced motion, a failed script or a
   crawler all get a short, static, readable section instead of a dead scroll. */

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.chapter { position: relative; background: var(--cream); }
.chapter-track { position: relative; }
html.mo .chapter-track { height: 330vh; }
html.mo .chapter-word .chapter-track { height: 270vh; }

.chapter-pane {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 2.6vh, 26px);
  padding: clamp(16px, 4vh, 34px) 32px clamp(20px, 4vh, 40px);
  text-align: center;
  overflow: hidden;
  background: radial-gradient(130% 88% at 50% -6%, #fdf7ed 0%, var(--cream) 58%);
}
html.mo .chapter-pane {
  position: sticky;
  top: var(--nav-h, 72px);
  height: calc(100svh - var(--nav-h, 72px));
}
@supports not (height: 100svh) {
  html.mo .chapter-pane { height: calc(100vh - var(--nav-h, 72px)); }
}

.chapter-head { max-width: 42ch; }
.chapter-title {
  font-size: clamp(21px, 3.4vw, 33px); line-height: 1.16;
  margin-top: 6px; text-wrap: balance;
}

/* ---------- chapter one: the vowels ---------- */
.letter-stage { position: relative; display: grid; place-items: center; width: 100%; min-height: 0; }
.letter-glow {
  position: absolute; width: min(66vmin, 440px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(198, 78, 2, .14), rgba(198, 78, 2, .04) 48%, transparent 70%);
  pointer-events: none;
}
/* One glyph at a time, rolled through a soft window. Crossfading two
   half-opacity Devanagari letters never reads cleanly — the conjuncts and
   matras smear — so the drum keeps exactly one shape legible and lets the
   mask do the blending. */
.letter-window {
  position: relative;
  width: 100%;
  height: 1.32em;
  font-size: clamp(100px, 26vw, 200px);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 17%, #000 83%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0, #000 17%, #000 83%, transparent 100%);
}
.letter-deck { position: absolute; inset: 0; }
.letter-deck .letter {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  font-family: var(--dev);
  font-size: 1em;
  line-height: 1.32;
  color: var(--orange);
  opacity: var(--o, 0);
  transform: translate3d(0, calc(-50% + var(--y, 0) * 1.32em), 0);
  will-change: transform;
}
.letter-deck .letter.is-first { --o: 1; --y: 0; }

.letter-read { display: grid; justify-items: center; gap: 3px; min-height: 74px; align-content: center; }
.letter-roman {
  font-family: var(--serif); font-style: italic; font-size: clamp(17px, 2.6vw, 21px);
  color: var(--ink-soft); letter-spacing: .02em;
}
.letter-ex {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 8px;
  font-size: 14.5px; color: var(--ink-soft);
}
.letter-word { font-family: var(--dev); font-size: 21px; color: var(--ink); }
.letter-gloss { color: var(--ink-mute); }
.letter-ex.is-swap { animation: letterSwap .44s cubic-bezier(.22, .61, .36, 1) both; }
@keyframes letterSwap {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: none; }
}

.chapter-dots { display: flex; gap: 7px; margin-top: 12px; }
.chapter-dots i {
  width: 6px; height: 6px; border-radius: 50%; background: var(--line);
  transition: background .3s ease, transform .3s ease;
}
.chapter-dots i.on { background: var(--orange); transform: scale(1.4); }

/* ---------- chapter two: the word ---------- */
.chapter-word .chapter-pane { background: radial-gradient(130% 88% at 50% -6%, #fcefdc 0%, var(--band) 60%); }
.word-stage {
  display: grid; justify-items: center; align-content: center;
  gap: clamp(10px, 2.4vh, 22px); width: 100%;
}
.word {
  display: flex; align-items: baseline; justify-content: center;
  font-family: var(--dev); font-weight: 400;
  font-size: clamp(56px, 16.5vw, 164px); line-height: 1.3;
  color: var(--ink); direction: ltr;
}
.word span { display: inline-block; will-change: transform; }
.word [data-part="0"] { transform: translate3d(calc(var(--x, 0px) * -1), 0, 0); }
.word [data-part="1"] { transform: translate3d(0, calc(var(--x, 0px) * -.5), 0); color: var(--orange); }
.word [data-part="2"] { transform: translate3d(var(--x, 0px), 0, 0); }
.word-rule {
  display: block; width: clamp(110px, 22vw, 210px); height: 1px;
  background: linear-gradient(90deg, transparent, var(--orange), transparent);
  transform: scaleX(var(--m, 0)); opacity: calc(.25 + var(--m, 0) * .75);
}
.word-mean {
  font-family: var(--serif); font-size: clamp(15px, 2.3vw, 19px); color: var(--ink-soft);
  opacity: var(--m, 0);
  transform: translateY(calc((1 - var(--m, 0)) * 9px));
}

/* ---------- static fallback: reduced motion, no JS ---------- */
@media (prefers-reduced-motion: reduce) {
  .chapter-pane { padding: 64px 32px; }
  .letter-deck .letter { display: none; }
  .letter-deck .letter.is-first { display: block; --o: 1; --y: 0; }
  .chapter-dots { display: none; }
  .word-mean, .word-rule { --m: 1; }
}
html:not(.mo) .chapter-pane { padding: 64px 32px; }
html:not(.mo) .chapter-dots { display: none; }
html:not(.mo) .letter-deck .letter { display: none; }
html:not(.mo) .letter-deck .letter.is-first { display: block; --o: 1; --y: 0; }
html:not(.mo) .word-mean, html:not(.mo) .word-rule { --m: 1; }

@media (max-width: 640px) {
  html.mo .chapter-track { height: 280vh; }
  html.mo .chapter-word .chapter-track { height: 230vh; }
  .chapter-pane { padding-left: 20px; padding-right: 20px; }
  .letter-read { min-height: 66px; }
}

/* ---------------------------------------------------------------- reveal */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1120px) {
  .curriculum-grid { grid-template-columns: 250px 1fr 250px; }
  .hero-inner { grid-template-columns: minmax(0, 1fr) 440px; gap: 32px; }
  .hero-art { width: 440px; }
  .pricing-grid { grid-template-columns: repeat(3, 1fr); }
  .pricing-head { grid-column: 1 / -1; }
}

@media (max-width: 1120px) {
  .modules-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 940px) {
  .nav { grid-template-columns: 1fr auto; padding: 13px 22px; }
  .teachers-grid { grid-template-columns: 1fr; }
  .boards-note { flex-direction: column; }
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: block; }
  .wrap { padding: 0 22px; }

  .hero { padding-top: 22px; }
  .hero-inner { grid-template-columns: 1fr; padding: 0 22px; gap: 28px; }
  .hero-copy { padding-bottom: 0; }
  .hero-art { width: 100%; max-width: 520px; justify-self: start; margin-right: 0; border-radius: 50% 50% 0 0 / 62% 62% 0 0; }

  .cards-3, .quotes, .teacher-grid, .lesson-grid { grid-template-columns: 1fr; }
  .curriculum-grid { grid-template-columns: 1fr; }
  .teacher-photo { max-width: 340px; }
  .pricing-grid { grid-template-columns: 1fr; }
  .quiz-opts { grid-template-columns: 1fr; }
  .quiz-foot { flex-direction: column; align-items: stretch; }
  .cred-list { grid-template-columns: 1fr 1fr; }
  .level-card { min-height: 0; }
  .section { padding: 56px 0; }
  .band { padding: 46px 0; }
}

@media (max-width: 620px) {
  .hero-copy h1 { font-size: 38px; }
  .modules-grid { grid-template-columns: 1fr; }
  .board-note { flex-direction: column; gap: 8px; }
  .tc-list div { grid-template-columns: 68px 1fr; }
  .teacher-head { flex-direction: column; gap: 16px; }
  .teacher-tile { width: 100%; max-width: 260px; }
  .row { grid-template-columns: 1fr; }
  .cred-list { grid-template-columns: 1fr; }
  .quiz-card, .contact-card { padding: 20px; }
  .footer-top { flex-direction: column; align-items: flex-start; gap: 14px; }
}
