/* ============================================================
   just a pilates princess — justapilatesprincess.com
   Palette drawn from the logo: lavender watercolor + plum ink,
   with one marigold accent for the desi side of desilates.
   ============================================================ */

:root {
  --lilac-wash: #f2ecf9;
  --lilac-tint: #e4d8f2;
  --lilac-deep: #cdb9e6;
  --ink: #33224b;
  --ink-soft: #5a4678;
  --violet: #7b5ea7;
  --marigold: #c98b2d;
  --marigold-soft: #e8c98a;
  --night: #241735;
  --night-ink: #efe8f9;
  --paper: #fdfcfe;

  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Karla", "Helvetica Neue", Arial, sans-serif;
  --font-telugu: "Suravaram", "Noto Serif Telugu", serif;

  --measure: 62ch;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(51, 34, 75, 0.1);
  color-scheme: light;
}

/* ---------- dark mode (moonlight mode) ---------- */
/* stamped on <html> by the inline script in each page's head;
   follows the system preference until the nav toggle overrides it */
:root[data-theme="dark"] {
  --lilac-wash: #191026;
  --lilac-tint: #2b1e44;
  --lilac-deep: #3d2b60;
  --ink: #efe8f9;
  --ink-soft: #bcabdb;
  --violet: #a98fd4;
  --marigold: #dfa958;
  --marigold-soft: #e8c98a;
  --night: #120b1e;
  --night-ink: #efe8f9;
  --paper: #241834;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  color-scheme: dark;
}

:root[data-theme="dark"] body {
  background-image:
    radial-gradient(55rem 40rem at 85% -5%, rgba(61, 43, 96, 0.5), transparent 60%),
    radial-gradient(40rem 32rem at -10% 30%, rgba(43, 30, 68, 0.7), transparent 60%),
    radial-gradient(45rem 38rem at 60% 80%, rgba(232, 201, 138, 0.06), transparent 65%);
}

:root[data-theme="dark"] .site-header {
  background: rgba(25, 16, 38, 0.85);
  border-bottom-color: rgba(232, 201, 138, 0.18);
}

:root[data-theme="dark"] .hero-tags li { background: rgba(36, 24, 52, 0.6); }

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--lilac-wash);
  /* layered radial gradients = soft watercolor blotches, like the logo bg */
  background-image:
    radial-gradient(55rem 40rem at 85% -5%, rgba(205, 185, 230, 0.55), transparent 60%),
    radial-gradient(40rem 32rem at -10% 30%, rgba(255, 255, 255, 0.7), transparent 60%),
    radial-gradient(45rem 38rem at 60% 80%, rgba(220, 204, 240, 0.4), transparent 65%);
  background-attachment: fixed;
}

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

/* the whole site speaks in lowercase — princess energy, like the logo.
   form controls don't inherit text-transform, so they're listed explicitly;
   inputs stay untransformed so visitors' typing keeps its own case. */
body, button, select, option { text-transform: lowercase; }
input, textarea, .keep-case { text-transform: none; }

a { color: var(--violet); }

::selection { background: var(--lilac-deep); color: var(--ink); }

/* ---------- type ---------- */

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: 0.01em;
}

h1 { font-size: clamp(2.6rem, 7vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 4.5vw, 2.9rem); }
h3 { font-size: 1.45rem; }

.eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.22em;
  text-transform: lowercase;
  color: var(--marigold);
  display: block;
  margin-bottom: 0.9rem;
}

.telugu { font-family: var(--font-telugu); font-weight: 400; }
.eyebrow .telugu { font-size: 1.5em; vertical-align: -0.12em; }

/* the name lockup: నేహా · neha · just a pilates princess
   (gold name, purple brand — used in the hero eyebrow and footers) */
.name-lockup {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.55rem;
}
.name-te, .name-sep { color: var(--marigold); }
.name-en { color: var(--violet); }

.lede {
  font-size: 1.2rem;
  color: var(--ink-soft);
  max-width: var(--measure);
}

/* ---------- layout primitives ---------- */

.wrap {
  width: min(1080px, 92vw);
  margin-inline: auto;
}

section { padding: 5.5rem 0; }

.section-head { max-width: var(--measure); margin-bottom: 3rem; }
.section-head p { margin-top: 1rem; color: var(--ink-soft); }

/* wispy gold hairlines between sections — slim hand-drawn strokes
   that fade out at both ends. subtle in both themes. */
.divider {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.5rem 0;
  color: var(--marigold);
}
.divider svg { width: min(440px, 72vw); height: 42px; }

/* ---------- header / nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(242, 236, 249, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(123, 94, 167, 0.15);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1.5rem;
  padding: 1.05rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: var(--ink);
}
.brand img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}
.brand-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: lowercase;
  line-height: 1.35;
}
.brand-name small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  color: var(--marigold);
  margin-top: 3px;
}
.brand-name small .telugu { font-size: 1.35em; vertical-align: -0.1em; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  list-style: none;
  margin-left: auto;
}
.nav-links a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
}
.nav-links a:hover { color: var(--violet); }
.nav-links a[aria-current="page"]:not(.nav-cta) {
  color: var(--violet);
  border-bottom: 2px solid var(--marigold);
  padding-bottom: 2px;
}

.nav-cta {
  background: var(--ink);
  color: var(--lilac-wash) !important;
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
}
.nav-cta:hover { background: var(--violet); }
/* on the booking page itself the pill keeps its shape — a deeper
   violet fill and a slim gold ring mark "you're already here" */
.nav-cta[aria-current="page"] {
  background: var(--violet);
  box-shadow: 0 0 0 1.5px var(--marigold);
}
.nav-cta[aria-current="page"]:hover { background: var(--ink); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  color: var(--ink);
}

.theme-toggle {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid rgba(123, 94, 167, 0.4);
  background: transparent;
  color: var(--marigold);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.15s ease;
}
.theme-toggle:hover { background: rgba(123, 94, 167, 0.12); }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-decoration: none;
  padding: 0.85rem 1.9rem;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }
.btn-solid { background: var(--ink); color: var(--lilac-wash); }
.btn-solid:hover { background: var(--marigold); border-color: var(--marigold); color: var(--night); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: rgba(51, 34, 75, 0.07); }
.btn-moon { background: var(--marigold); border-color: var(--marigold); color: var(--night); }
.btn-moon:hover { background: var(--marigold-soft); border-color: var(--marigold-soft); }

/* ---------- hero ---------- */

.hero {
  min-height: 88vh;
  display: grid;
  align-items: center;
  padding: 4rem 0 5rem;
  position: relative;
  overflow: hidden;
}

/* big crescent arc — the recurring moon motif */
.hero::after {
  content: "";
  position: absolute;
  right: -18vw;
  top: -30vh;
  width: 70vw;
  height: 70vw;
  border-radius: 50%;
  border: 1.5px solid rgba(123, 94, 167, 0.3);
  pointer-events: none;
}
.hero::before {
  content: "";
  position: absolute;
  right: -14vw;
  top: -26vh;
  width: 62vw;
  height: 62vw;
  border-radius: 50%;
  border: 1px solid rgba(123, 94, 167, 0.18);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 46rem) auto;
  align-items: center;
  gap: 3.5rem;
}

.hero-logo img {
  width: clamp(180px, 22vw, 300px);
  height: clamp(180px, 22vw, 300px);
  border-radius: 50%;
  object-fit: cover;
  /* hairline gold ring straight on the badge edge, soft drop below */
  box-shadow:
    0 0 0 2.5px var(--marigold),
    0 24px 60px rgba(51, 34, 75, 0.18);
}

.hero .crown {
  color: var(--marigold);
  margin-bottom: 1.2rem;
}

.hero h1 em {
  font-style: italic;
  color: var(--violet);
}

.hero .lede { margin-top: 1.4rem; }

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.4rem;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 2.6rem;
  list-style: none;
}
.hero-tags li {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.9rem;
  border: 1px solid rgba(123, 94, 167, 0.4);
  border-radius: 999px;
  color: var(--ink-soft);
  background: rgba(253, 252, 254, 0.6);
}

/* ---------- pillars (what I teach) ---------- */

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}

.pillar {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
  box-shadow: var(--shadow);
  border-top: 3px solid var(--lilac-deep);
}
.pillar:nth-child(2) { border-top-color: var(--marigold-soft); }
.pillar:nth-child(3) { border-top-color: var(--violet); }
.pillar h3 { margin-bottom: 0.6rem; }
.pillar p { color: var(--ink-soft); font-size: 0.98rem; }
.pillar .telugu-mark {
  font-family: var(--font-telugu);
  font-size: 1.5rem;
  color: var(--marigold);
  display: block;
  margin-bottom: 0.8rem;
}

/* ---------- programs: the morning → moonlight arc ---------- */

.programs { padding-bottom: 0; }

.program-list { display: grid; gap: 1.6rem; }

.program {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  gap: 1.6rem;
  align-items: center;
  background: var(--paper);
  border-radius: var(--radius);
  padding: 1.9rem 2.1rem;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.program:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 38px rgba(51, 34, 75, 0.16);
}

.program-icon {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.program h3 { margin-bottom: 0.35rem; }
.program p { color: var(--ink-soft); font-size: 0.98rem; max-width: 48ch; }
.program .when {
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: lowercase;
  color: var(--marigold);
  display: block;
  margin-bottom: 0.4rem;
}
.program .go {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--violet);
}

/* time-of-day tints — the page moves from dawn to dusk */
.program--dawn   .program-icon { background: linear-gradient(135deg, #fbeedd, #f3dff0); color: #b06a2c; }
.program--midday .program-icon { background: linear-gradient(135deg, #f7e7c8, #eed3a0); color: #a8741f; }
.program--day    .program-icon { background: linear-gradient(135deg, #efe6fa, #dccef0); color: var(--violet); }
.program--dusk   .program-icon { background: linear-gradient(135deg, #dccef0, #b9a3d9); color: #4c3670; }
.program--sunset .program-icon { background: linear-gradient(135deg, #f6ddc9, #dcb8e0); color: #ad5a38; }
.program--night  .program-icon { background: linear-gradient(135deg, #3a2a55, #241735); color: var(--marigold-soft); }

.program--night {
  background: var(--night);
  color: var(--night-ink);
}
.program--night p { color: #bfaedd; }
.program--night .when { color: var(--marigold-soft); }
.program--night .go { color: var(--marigold-soft); }

/* ---------- desilates level cards (numbered: a real progression) ---------- */

.gold-word { color: var(--marigold); font-style: italic; }

.levels-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}

.level-card {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  /* gilded: warm gold wash over paper, so they read as their own family */
  background:
    linear-gradient(160deg, rgba(232, 201, 138, 0.28), rgba(232, 201, 138, 0.06) 65%),
    var(--paper);
  border: 1px solid rgba(201, 139, 45, 0.35);
  border-top: 3px solid var(--marigold);
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
  box-shadow: 0 10px 30px rgba(201, 139, 45, 0.14);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.level-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 38px rgba(201, 139, 45, 0.25);
}
.level-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 2.3rem;
  line-height: 1;
  color: var(--marigold);
}
.level-card h3 { font-size: 1.3rem; }
.level-card p { color: var(--ink-soft); font-size: 0.94rem; flex-grow: 1; }
.level-go {
  font-weight: 700;
  font-size: 0.86rem;
  letter-spacing: 0.06em;
  color: var(--marigold);
}
.level-card:hover .level-go { text-decoration: underline; }

/* ---------- credentials & testimonials ---------- */

.cred-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 2.5rem;
  align-items: stretch;
}

.quals { display: grid; gap: 1.2rem; align-content: start; }

.qual-card {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
  background: var(--paper);
  border-radius: var(--radius);
  padding: 1.6rem 1.7rem;
  box-shadow: var(--shadow);
}
.qual-mark { color: var(--marigold); flex-shrink: 0; margin-top: 0.25rem; }
.qual-card h3 { font-size: 1.3rem; margin-bottom: 0.35rem; }
.qual-card h3 a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1.5px solid var(--marigold-soft);
}
.qual-card h3 a:hover { color: var(--violet); }
.qual-card p { color: var(--ink-soft); font-size: 0.93rem; }

.testimonial {
  position: relative;
  display: flex;
  flex-direction: column;
  background: linear-gradient(150deg, var(--lilac-tint), var(--paper));
  border-radius: var(--radius);
  padding: 3.2rem 2.4rem 1.6rem;
  box-shadow: var(--shadow);
  margin: 0;
}
.testimonial-mark {
  position: absolute;
  top: 0.6rem;
  left: 1.6rem;
  font-family: var(--font-display);
  font-size: 4.5rem;
  line-height: 1;
  color: var(--marigold);
}
.testimonial blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.45rem;
  line-height: 1.45;
  color: var(--ink);
  min-height: 11rem;
  transition: opacity 0.25s ease;
}
.testimonial blockquote.fading { opacity: 0; }
.testimonial-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: auto;
  padding-top: 1.4rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
}
.testimonial-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid rgba(123, 94, 167, 0.4);
  background: transparent;
  color: var(--violet);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.testimonial-btn:hover { background: var(--ink); color: var(--lilac-wash); border-color: var(--ink); }

/* ---------- upcoming events: little tear-off calendar pages ---------- */

.events-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.6rem;
}

.event-card {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  background: var(--paper);
  border-radius: var(--radius);
  padding: 1.9rem 2rem;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.event-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 38px rgba(51, 34, 75, 0.16);
}

/* the calendar page — pinned at a tilt, straightens when you reach for it */
.event-cal {
  flex-shrink: 0;
  width: 94px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--lilac-wash);
  box-shadow: 0 0 0 1.5px var(--marigold-soft), 0 8px 20px rgba(51, 34, 75, 0.14);
  text-align: center;
  transform: rotate(-3deg);
  transition: transform 0.22s ease;
}
.event-card:hover .event-cal { transform: rotate(0deg); }

.event-month {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.34em;
  text-indent: 0.34em; /* recenters the tracked-out text */
  padding: 0.36rem 0 0.3rem;
  color: var(--night);
  background: linear-gradient(120deg, var(--marigold), var(--marigold-soft));
  /* perforated edge — the page is waiting to be torn off */
  border-bottom: 1.5px dashed var(--paper);
}

.event-day {
  display: block;
  font-family: var(--font-display);
  font-size: 3.1rem;
  font-weight: 600;
  line-height: 1;
  padding: 0.5rem 0 0.05rem;
  color: var(--ink);
}

.event-dow {
  display: block;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--ink-soft);
  padding-bottom: 0.55rem;
}

.event-info h3 { font-size: 1.35rem; margin-bottom: 0.3rem; }
.event-info p { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 0.9rem; }

.event-go {
  font-weight: 700;
  font-size: 0.86rem;
  letter-spacing: 0.06em;
  color: var(--marigold);
}
.event-card:hover .event-go { text-decoration: underline; }

/* on the home page the grid ends with a soft pointer to the events page */
.events-more { margin-top: 1.8rem; }
.events-more a {
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  color: var(--violet);
  text-decoration: none;
  border-bottom: 1.5px solid var(--marigold-soft);
  padding-bottom: 2px;
}
.events-more a:hover { color: var(--marigold); }

/* ---------- events page: the scrapbook (past events) ---------- */

.past-event { margin-bottom: 3.8rem; }
.past-event:last-child { margin-bottom: 0; }

.past-event-head {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  margin-bottom: 1.3rem;
}

/* the page has already been torn off this calendar — it goes quiet
   lilac and leans the other way, resting instead of reaching */
.event-cal--past {
  transform: rotate(3deg);
  box-shadow: 0 0 0 1.5px var(--lilac-deep), 0 8px 20px rgba(51, 34, 75, 0.1);
}
.event-cal--past .event-month {
  background: linear-gradient(120deg, var(--lilac-deep), var(--lilac-tint));
  color: var(--ink);
  border-bottom-color: var(--paper);
}

.past-event-head .event-info h3 { font-size: 1.45rem; }
.past-event-head .event-info p { margin-bottom: 0; }
.past-event-blurb {
  margin-top: 0.35rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.08rem;
  max-width: 52ch;
}

/* horizontal film-strip of photos & clips — loops forever, scrolls on touch.
   (no scroll-snap: the loop quietly teleports near the seams, and snapping
   would fight those jumps) */
.media-strip {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 0.3rem 0.2rem 1.1rem;
  scrollbar-width: thin;
  scrollbar-color: var(--lilac-deep) transparent;
}
.media-strip::-webkit-scrollbar { height: 8px; }
.media-strip::-webkit-scrollbar-thumb { background: var(--lilac-deep); border-radius: 999px; }
.media-strip::-webkit-scrollbar-track { background: transparent; }

.media-item {
  flex: 0 0 auto;
  height: min(300px, 60vw);
  border: none;
  padding: 0;
  border-radius: 14px;
  overflow: hidden;
  background: var(--lilac-tint);
  box-shadow: 0 0 0 1.5px rgba(232, 201, 138, 0.55), 0 10px 26px rgba(51, 34, 75, 0.14);
  cursor: zoom-in;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.media-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 0 1.5px var(--marigold-soft), 0 16px 34px rgba(51, 34, 75, 0.2);
}
.media-item--video { cursor: default; position: relative; }

/* little gold expand button riding the corner of each clip */
.media-expand {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid rgba(232, 201, 138, 0.7);
  background: rgba(36, 23, 53, 0.55);
  color: #efe8f9;
  display: grid;
  place-items: center;
  cursor: pointer;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
.media-expand:hover { background: rgba(36, 23, 53, 0.85); color: var(--marigold-soft); }

.media-item img,
.media-item video {
  height: 100%;
  width: auto;
  max-width: min(560px, 82vw);
  object-fit: cover;
  display: block;
}

/* until the photos arrive, a soft dashed keepsake card holds the spot */
.media-empty {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  background: linear-gradient(150deg, var(--lilac-tint), var(--paper));
  border: 1.5px dashed var(--lilac-deep);
  border-radius: var(--radius);
  padding: 1.5rem 1.8rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}
.media-empty-crown { color: var(--marigold); flex-shrink: 0; display: grid; }

/* tap a photo and it floats up out of the night */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(18, 11, 30, 0.88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.2rem;
}
.lightbox.open { display: flex; }
.lightbox img,
.lightbox video {
  max-width: min(1000px, 94vw);
  max-height: 84vh;
  width: auto;
  border-radius: 14px;
  box-shadow: 0 0 0 1.5px var(--marigold-soft), 0 30px 80px rgba(0, 0, 0, 0.55);
}
.lightbox-close {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid rgba(232, 201, 138, 0.6);
  background: rgba(239, 232, 249, 0.08);
  color: #efe8f9;
  font-size: 1.2rem;
  cursor: pointer;
}
.lightbox-close:hover { background: rgba(239, 232, 249, 0.18); }

/* ---------- moonlight band (dark closing section) ---------- */

.moonlight {
  margin-top: 5.5rem;
  background: var(--night);
  background-image:
    radial-gradient(2px 2px at 20% 30%, rgba(232, 201, 138, 0.8), transparent),
    radial-gradient(1.5px 1.5px at 70% 20%, rgba(239, 232, 249, 0.7), transparent),
    radial-gradient(2px 2px at 85% 60%, rgba(232, 201, 138, 0.5), transparent),
    radial-gradient(1.5px 1.5px at 40% 70%, rgba(239, 232, 249, 0.5), transparent),
    radial-gradient(1px 1px at 55% 40%, rgba(239, 232, 249, 0.8), transparent);
  color: var(--night-ink);
  padding: 5.5rem 0;
}
.moonlight .eyebrow { color: var(--marigold-soft); }
.moonlight .lede { color: #bfaedd; margin-top: 0.9rem; max-width: 46ch; }
.moonlight .hero-ctas { margin-top: 2.2rem; }
.moonlight-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 4rem;
}
.moon-mark { color: var(--marigold-soft); }
.moon-mark img {
  width: 210px;
  height: 210px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow:
    0 0 0 2px var(--marigold-soft),
    0 0 55px rgba(232, 201, 138, 0.22);
}

/* the crest with a love letter propped beside it */
.moonlight-aside {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.moonlight-aside > * { flex: none; }

.mail-card {
  position: relative;
  order: -1; /* letter leads the row, crest closes it */
  width: 224px;
  aspect-ratio: 1;
  transform: rotate(-3deg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  text-align: center;
  padding: 1.4rem 1.5rem;
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--night-ink);
  background:
    radial-gradient(14rem 10rem at 80% -20%, rgba(232, 201, 138, 0.16), transparent 60%),
    rgba(239, 232, 249, 0.07);
  border: 1px solid rgba(232, 201, 138, 0.55);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  transition: transform 0.22s ease, background-color 0.22s ease, box-shadow 0.22s ease;
}
.mail-card:hover {
  transform: rotate(0deg) translateY(-3px);
  background-color: rgba(239, 232, 249, 0.12);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.4), 0 0 34px rgba(232, 201, 138, 0.2);
}

.mail-card-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--marigold-soft);
  border: 1.5px solid var(--marigold-soft);
  margin-bottom: 0.2rem;
}
.mail-card strong {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.4rem;
  line-height: 1.1;
}
.mail-card-sub {
  font-size: 0.8rem;
  line-height: 1.45;
  color: #bfaedd;
}
.mail-card-go {
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--marigold-soft);
  margin-top: 0.15rem;
}
.mail-card:hover .mail-card-go { text-decoration: underline; }

/* ---------- exercise library ---------- */

.library-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin-bottom: 2.4rem;
}

.search-box {
  flex: 1 1 280px;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  background: var(--paper);
  border: 1.5px solid rgba(123, 94, 167, 0.3);
  border-radius: 999px;
  padding: 0.75rem 1.3rem;
  box-shadow: var(--shadow);
}
.search-box:focus-within { border-color: var(--violet); }
.search-box svg { color: var(--violet); flex-shrink: 0; }
.search-box input {
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  width: 100%;
}
.search-box input::placeholder { color: var(--ink-soft); opacity: 0.7; }

.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.filter-chip {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  border: 1.5px solid rgba(123, 94, 167, 0.35);
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all 0.15s ease;
}
.filter-chip:hover { border-color: var(--violet); color: var(--violet); }
.filter-chip.active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--lilac-wash);
}

.exercise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.4rem;
}

.exercise-card {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 1.7rem 1.6rem;
  box-shadow: var(--shadow);
  cursor: pointer;
  border: 1.5px solid transparent;
  text-align: left;
  font-family: var(--font-body);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.exercise-card:hover { transform: translateY(-3px); border-color: var(--lilac-deep); }
.exercise-card .cat {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: lowercase;
  color: var(--marigold);
}
.exercise-card h3 { margin: 0.5rem 0 0.4rem; color: var(--ink); }
.exercise-card p { color: var(--ink-soft); font-size: 0.93rem; }
.exercise-card .meta {
  margin-top: 1rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--violet);
}

.no-results {
  text-align: center;
  color: var(--ink-soft);
  padding: 3rem 0;
  font-size: 1.1rem;
  display: none;
}
.no-results .telugu { font-size: 1.6rem; display: block; margin-bottom: 0.5rem; color: var(--violet); }

/* ---------- merch ---------- */

.merch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.4rem;
}

.merch-card {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.merch-card .cat {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: lowercase;
  color: var(--marigold);
}
.merch-card p { color: var(--ink-soft); font-size: 0.93rem; flex-grow: 1; }

.merch-art {
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  margin-bottom: 1.1rem;
  display: grid;
  place-items: center;
  font-size: 3rem;
  background:
    radial-gradient(18rem 12rem at 80% 0%, rgba(232, 201, 138, 0.35), transparent 60%),
    linear-gradient(135deg, var(--lilac-tint), var(--lilac-deep));
}
.merch-card img.merch-art { object-fit: cover; }
.merch-art img {
  width: 46%;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 1.5px var(--marigold-soft), 0 10px 24px rgba(51, 34, 75, 0.18);
}

.merch-btn { margin-top: 1.1rem; align-self: flex-start; }
.merch-btn[disabled] {
  opacity: 0.55;
  cursor: default;
}
.merch-btn[disabled]:hover { transform: none; background: transparent; }

/* ---------- exercise detail modal ---------- */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(36, 23, 53, 0.6);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: none;
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
  padding: 4rem 1rem;
}
.modal-backdrop.open { display: flex; }

.modal {
  background: var(--paper);
  border-radius: var(--radius);
  max-width: 720px;
  width: 100%;
  padding: 2.6rem 2.6rem 2.8rem;
  position: relative;
  box-shadow: 0 30px 80px rgba(36, 23, 53, 0.4);
}
.modal .cat {
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: lowercase;
  color: var(--marigold);
}
.modal h2 { margin: 0.5rem 0 0.3rem; }
.modal .sanskrit { color: var(--ink-soft); font-style: italic; margin-bottom: 1.4rem; }

.modal-close {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  background: var(--lilac-wash);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.2rem;
  color: var(--ink);
  cursor: pointer;
}
.modal-close:hover { background: var(--lilac-tint); }

.modal .video-slot {
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--lilac-tint), var(--lilac-deep));
  display: grid;
  place-items: center;
  color: var(--ink-soft);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  margin-bottom: 1.8rem;
  text-align: center;
  padding: 1rem;
}
.modal .video-slot iframe {
  width: 100%;
  height: 100%;
  border: none;
}
.modal .video-slot .slot-logo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0 auto 0.7rem;
  box-shadow: 0 0 0 1.5px var(--marigold-soft);
}

.modal h4 {
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: lowercase;
  color: var(--violet);
  margin: 1.6rem 0 0.6rem;
}
.modal ol { padding-left: 1.3rem; display: grid; gap: 0.45rem; color: var(--ink-soft); }
.modal .cue {
  background: var(--lilac-wash);
  border-left: 3px solid var(--marigold);
  border-radius: 0 10px 10px 0;
  padding: 0.9rem 1.2rem;
  font-size: 0.97rem;
  color: var(--ink-soft);
}
.modal .cue strong { color: var(--ink); }

/* ---------- "coming soon" dialog (library + merch, saved for later) ---------- */

.coming-soon-backdrop { align-items: center; padding: 2rem 1rem; }

.coming-soon {
  max-width: 440px;
  text-align: center;
  padding: 3rem 2.4rem 2.8rem;
}
.coming-soon-crown { color: var(--marigold); display: block; }
.coming-soon h2 { margin: 0.4rem 0 0.75rem; }
.coming-soon-msg {
  color: var(--ink-soft);
  font-size: 0.98rem;
  margin-bottom: 1.8rem;
}

@media (prefers-reduced-motion: no-preference) {
  .coming-soon { animation: coming-soon-in 0.25s ease; }
  @keyframes coming-soon-in {
    from { opacity: 0; transform: translateY(10px) scale(0.98); }
    to { opacity: 1; transform: none; }
  }
}

/* ---------- contact / booking ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3.5rem;
  align-items: start;
}

.contact-info h2 { margin-bottom: 1rem; }
.contact-info p { color: var(--ink-soft); margin-bottom: 1.4rem; max-width: 44ch; }
.contact-info .email-link {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--violet);
  text-decoration: none;
  border-bottom: 1.5px solid var(--marigold);
}

.offer-list { list-style: none; display: grid; gap: 0.9rem; margin-top: 2rem; }
.offer-list li {
  display: flex;
  gap: 0.8rem;
  align-items: baseline;
  color: var(--ink-soft);
}
.offer-list .telugu { color: var(--marigold); }

.booking-form {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 2.4rem;
  box-shadow: var(--shadow);
  display: grid;
  gap: 1.3rem;
}

/* logo letterhead stamp at the top of the booking form */
.form-stamp {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  object-fit: cover;
  justify-self: center;
  box-shadow: 0 0 0 1.5px var(--marigold-soft);
}

.field { display: grid; gap: 0.45rem; }
.field label {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: lowercase;
  color: var(--violet);
}
.field input,
.field select,
.field textarea {
  /* min-width: 0 — a select's intrinsic width is its widest option, which
     otherwise props the whole form (and page) wider than small phones */
  width: 100%;
  min-width: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--lilac-wash);
  border: 1.5px solid transparent;
  border-radius: 10px;
  padding: 0.8rem 1rem;
  outline: none;
  transition: border-color 0.15s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--violet); }
.field textarea { resize: vertical; min-height: 130px; }

.form-note { font-size: 0.85rem; color: var(--ink-soft); }

.field .optional { font-weight: 400; letter-spacing: 0.02em; color: var(--ink-soft); }
.code-row { display: flex; gap: 0.6rem; }
.code-row input { flex: 1; min-width: 0; }
.code-row .btn { padding: 0.6rem 1.3rem; flex-shrink: 0; }
.code-msg { font-size: 0.85rem; min-height: 1.2em; }
.code-msg.ok { color: var(--violet); font-weight: 700; }
.code-msg.err { color: #a04545; }

/* ---------- footer ---------- */

.site-footer {
  background: var(--night);
  color: #bfaedd;
  padding: 3.5rem 0 2.5rem;
  margin-top: 5.5rem;
}
main:has(.moonlight:last-child) + .site-footer { margin-top: 0; }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.16em;
  text-transform: lowercase;
  color: var(--night-ink);
}
.footer-brand img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 1.5px var(--marigold-soft);
}
.footer-brand .telugu {
  text-transform: none;
  letter-spacing: 0;
  font-size: 1.2em;
  vertical-align: -0.1em;
}
/* the footer name lockup mirrors the header brand: serif brand name on top,
   the gold నేహా · neha signature tucked beneath — instead of one long
   dot-separated run */
.site-footer .name-lockup {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
}
.site-footer .name-sep { display: none; }
.site-footer .name-en {
  order: -1; /* brand name leads visually; the DOM keeps నేహా first */
  color: #bfaedd;
  font-size: 1.05rem;
  line-height: 1.3;
}
.site-footer .name-te {
  color: var(--marigold-soft);
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.26em;
}
.site-footer .name-te .telugu { font-size: 1.45em; }
.site-footer a { color: var(--marigold-soft); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-note { font-size: 0.82rem; width: 100%; opacity: 0.75; text-align: center; }

/* ---------- reveal animation ---------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .program:hover, .exercise-card:hover, .event-card:hover, .media-item:hover { transform: none; }
  .event-cal, .mail-card, .media-item { transition: none; }
}

/* ---------- focus visibility ---------- */

a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 2.5px solid var(--marigold);
  outline-offset: 2px;
}

/* ---------- legal pages ---------- */

.legal-content {
  max-width: var(--measure);
}
.legal-content h3 {
  font-size: 1.35rem;
  margin-top: 2.4rem;
  margin-bottom: 0.6rem;
  color: var(--violet);
}
.legal-content h3:first-child { margin-top: 0; }
.legal-content h4 {
  font-family: var(--font-body);
  font-size: 0.97rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--marigold);
  margin-top: 1.4rem;
  margin-bottom: 0.4rem;
}
.legal-content p {
  color: var(--ink-soft);
  margin-bottom: 0.8rem;
  font-size: 0.97rem;
  line-height: 1.7;
}
.legal-content ul, .legal-content ol {
  color: var(--ink-soft);
  font-size: 0.97rem;
  line-height: 1.7;
  padding-left: 1.4rem;
  margin-bottom: 0.8rem;
}
.legal-content li { margin-bottom: 0.35rem; }
.legal-content a { color: var(--violet); }
.legal-content strong { color: var(--ink); font-weight: 700; }

.legal-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.2rem 0;
  font-size: 0.9rem;
}
.legal-content th,
.legal-content td {
  border: 1px solid var(--lilac-deep);
  padding: 0.7rem 0.9rem;
  text-align: left;
  vertical-align: top;
  color: var(--ink-soft);
}
.legal-content th {
  background: var(--lilac-tint);
  font-weight: 700;
  color: var(--ink);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}
.legal-content td:last-child {
  text-align: center;
  white-space: nowrap;
}
.legal-content .collected-yes {
  color: var(--violet);
  font-weight: 700;
}
.legal-content .collected-no {
  color: var(--ink-soft);
  opacity: 0.6;
}
@media (max-width: 880px) {
  .legal-content table { font-size: 0.82rem; }
  .legal-content th,
  .legal-content td { padding: 0.5rem 0.6rem; }
}

/* ---------- custom form validation ---------- */

.field-wrap { position: relative; }

.validation-msg {
  position: absolute;
  left: 0;
  top: 100%;
  margin-top: 0.35rem;
  padding: 0.5rem 0.85rem;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--paper);
  background: var(--violet);
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(51, 34, 75, 0.22);
  z-index: 10;
  white-space: nowrap;
  pointer-events: none;
  animation: validation-in 0.25s ease;
}
.validation-msg::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 1rem;
  width: 10px;
  height: 10px;
  background: var(--violet);
  transform: rotate(45deg);
  border-radius: 2px;
}

.consent .validation-msg {
  left: 27px;
}
.consent .validation-msg::before {
  left: 0.6rem;
}

.field input:invalid:not(:placeholder-shown),
.field select:invalid,
.field textarea:invalid:not(:placeholder-shown),
.consent input[type="checkbox"]:invalid {
  border-color: transparent;
}

.field input.touched:invalid,
.field select.touched:invalid,
.field textarea.touched:invalid {
  border-color: #a04545;
}
.consent input[type="checkbox"].touched:invalid {
  border-color: #a04545;
}

@keyframes validation-in {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .validation-msg { animation: none; }
}

/* ---------- consent checkbox ---------- */

.consent {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--ink-soft);
  cursor: pointer;
}
.consent input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  min-width: 20px;
  border: 1.5px solid rgba(123, 94, 167, 0.4);
  border-radius: 5px;
  background: var(--lilac-wash);
  cursor: pointer;
  margin-top: 1px;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.consent input[type="checkbox"]:checked {
  background: var(--marigold);
  border-color: var(--marigold);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 14 14' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 7.5L5.5 10L11 4' stroke='%23241735' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 14px;
  background-position: center;
  background-repeat: no-repeat;
}
.consent input[type="checkbox"]:focus-visible {
  outline: 2.5px solid var(--marigold);
  outline-offset: 2px;
}
.consent a {
  color: var(--violet);
  text-decoration: none;
  border-bottom: 1px solid var(--marigold-soft);
}
.consent a:hover { color: var(--marigold); }

/* ---------- footer legal links ---------- */

.footer-legal {
  width: 100%;
  text-align: center;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
}
.footer-legal a {
  color: rgba(191, 174, 221, 0.7);
  text-decoration: none;
}
.footer-legal a:hover {
  color: var(--marigold-soft);
  text-decoration: underline;
}

/* ---------- responsive ---------- */

@media (max-width: 880px) {
  section { padding: 4rem 0; }

  /* fixed backgrounds jank (or silently break) on mobile browsers —
     let the watercolor wash scroll with the page instead */
  body { background-attachment: scroll; }

  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid rgba(123, 94, 167, 0.2);
    padding: 0.6rem 4vw 1.2rem;
    box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 0.85rem 0; }
  /* keep the current-page underline hugging its word, not the whole row */
  .nav-links a[aria-current="page"]:not(.nav-cta) { width: max-content; }
  /* the book-a-session pill: in the stacked menu it becomes a full-width,
     centered button. (needs .nav-links prefix — the plain ".nav-cta" rule
     loses its padding to ".nav-links a" above on specificity.) */
  .nav-links .nav-cta {
    display: block;
    text-align: center;
    margin-top: 0.9rem;
    padding: 0.85rem 1.5rem;
    min-height: 44px;
  }

  .pillars { grid-template-columns: 1fr; }

  .theme-toggle { margin-left: auto; }
  .hero-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-logo { order: -1; }
  .hero-logo img { width: 150px; height: 150px; }
  .moon-mark img { width: 170px; height: 170px; }

  .program { grid-template-columns: 64px 1fr; padding: 1.5rem 1.4rem; }
  .program-icon { width: 64px; height: 64px; }
  .program-icon svg { width: 30px; height: 30px; }
  .program .go { display: none; }

  .moonlight-inner { grid-template-columns: 1fr; }
  /* stacked: the letter keeps the lead, crest tucks in beneath */
  .moonlight-aside { flex-direction: column; gap: 1.6rem; }

  /* stacked footer centers as one column */
  .footer-inner { justify-content: center; text-align: center; }
  .site-footer .name-lockup { align-items: center; }

  .events-grid { grid-template-columns: 1fr; }
  .event-card { padding: 1.5rem 1.4rem; gap: 1.3rem; }
  .event-cal { width: 84px; }
  .event-day { font-size: 2.7rem; }
  .past-event-head { gap: 1.3rem; align-items: flex-start; }
  .media-item { height: min(240px, 62vw); }
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .booking-form { padding: 1.9rem 1.4rem; }
  .cred-grid { grid-template-columns: 1fr; }
  .levels-grid { grid-template-columns: 1fr; }
  .testimonial blockquote { min-height: 0; margin-bottom: 1rem; }
  /* comfortable thumb targets for the quote pager */
  .testimonial-btn { width: 44px; height: 44px; }
  .modal { padding: 2rem 1.4rem; }
  /* the "video coming soon" placeholder holds more text than a 16:9 box
     allows on small screens — let it size to its content (a real video
     iframe keeps the ratio) */
  .modal .video-slot:not(:has(iframe)) { aspect-ratio: auto; min-height: 9rem; }
}

/* small phones: keep the brand lockup to two tidy lines instead of four */
@media (max-width: 430px) {
  .nav { gap: 0.9rem; }
  .brand { gap: 0.7rem; }
  .brand img { width: 40px; height: 40px; }
  .brand-name { font-size: 0.95rem; letter-spacing: 0.12em; }
  .brand-name small { font-size: 0.74rem; letter-spacing: 0.2em; }
  .booking-form { padding: 1.7rem 1.1rem; }
  .modal { padding: 1.8rem 1.1rem 2rem; }
}
