@import url("https://fonts.googleapis.com/css2?family=Fredoka:wght@400;500;600;700&family=Nunito:wght@400;600;700;800;900&display=swap");

:root {
  /* Brand palette — sampled from Braineer's own materials */
  --blue: #3b76c4;
  --blue-deep: #2b5fa3;
  --navy: #1e3a5f;
  --navy-2: #51617a;
  --line: #dbe6f3;
  --bg: #ffffff;
  --bg-sky: #eff6fe;
  --bg-sky-2: #deebfa;
  --paper: #ffffff;
  --sun: #ffc42e;
  --coral: #ff6f61;
  --leaf: #58b368;
  --sun-tint: #fff3d1;
  --coral-tint: #ffe4e1;
  --leaf-tint: #dff2e2;
  --blue-tint: #e3eefb;
  --footer: #152a45;
  --on-dark-muted: #b9c9de;
  --on-dark-subtle: #7e93ad;
  --radius: 20px;
  --shadow: 0 6px 20px rgba(30, 58, 95, 0.09);
  --shadow-hover: 0 14px 32px rgba(30, 58, 95, 0.14);
  --container: 1184px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--navy);
  background: var(--bg);
  font-family: "Nunito", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body.nav-open { overflow: hidden; }
img, svg { display: block; }
img { max-width: 100%; height: auto; }

a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { text-decoration: underline; }
a:focus-visible,
button:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; border-radius: 4px; }
button { font: inherit; }

h1, h2, h3, p, ul, blockquote, figure { margin-top: 0; }
h1, h2 {
  margin-bottom: 24px;
  color: var(--navy);
  font-family: "Fredoka", sans-serif;
  font-weight: 600;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(40px, 5.2vw, 64px); line-height: 1.04; }
h2 { font-size: clamp(30px, 3.4vw, 44px); line-height: 1.1; }
h3 { margin-bottom: 12px; font-size: 20px; line-height: 1.3; font-weight: 800; }
p { max-width: 65ch; margin-bottom: 16px; }
p:last-child { margin-bottom: 0; }

.container {
  width: min(100%, calc(var(--container) + 48px));
  margin-inline: auto;
  padding-inline: 24px;
}

.section { padding-block: 96px; }
.section--compact { padding-block: 72px; }
.bg-sky { background: var(--bg-sky); }
.bg-sky-2 { background: var(--bg-sky-2); }

/* Eyebrow chip — rotating playful tints */
.eyebrow {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  margin-bottom: 16px;
  padding: 6px 16px;
  border-radius: 999px;
  color: var(--blue-deep);
  background: var(--blue-tint);
  font-size: 13px;
  line-height: 1.4;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow--sun { color: #8a6100; background: var(--sun-tint); }
.eyebrow--coral { color: #c23a2d; background: var(--coral-tint); }
.eyebrow--leaf { color: #2e6b39; background: var(--leaf-tint); }

.lead { margin-bottom: 24px; font-size: 19px; line-height: 1.55; color: var(--navy-2); }

.text-link { display: inline-flex; min-height: 44px; align-items: center; font-weight: 800; text-decoration: none; }
.text-link::after { content: "→"; margin-left: 8px; transition: transform 150ms ease-out; }
.text-link:hover::after { transform: translateX(4px); }
.text-link:hover { text-decoration: underline; }

/* Buttons — friendly pills */
.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 15px 32px;
  border: 2px solid transparent;
  border-radius: 999px;
  font-size: 16px;
  line-height: 1;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(30, 58, 95, 0.12);
  transition: background-color 150ms ease-out, color 150ms ease-out, border-color 150ms ease-out, box-shadow 150ms ease-out, transform 150ms ease-out;
}

.button:hover { transform: translateY(-2px); text-decoration: none; box-shadow: var(--shadow-hover); }
.button--primary { color: #fff; background: var(--blue); }
.button--primary:hover { color: #fff; background: var(--blue-deep); }
.button--secondary { color: var(--blue-deep); border-color: var(--blue); background: var(--paper); }
.button--secondary:hover { color: var(--blue-deep); background: var(--bg-sky); }
.button--sun { color: var(--navy); background: var(--sun); }
.button--sun:hover { color: var(--navy); background: #ffd155; }

/* Header */
.topbar { color: #fff; background: var(--footer); font-size: 13px; line-height: 1.4; }
.topbar__inner { display: flex; min-height: 42px; align-items: center; justify-content: center; gap: 32px; padding-block: 4px; }
.topbar a { display: inline-flex; min-height: 40px; align-items: center; color: #fff; font-weight: 700; text-decoration: none; }
.topbar a:hover { color: var(--sun); text-decoration: underline; }
.topbar span { color: var(--on-dark-muted); }

.mainbar {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
}

.mainbar__inner { display: flex; min-height: 76px; align-items: center; justify-content: space-between; gap: 24px; }

.wordmark {
  display: inline-flex;
  flex: 0 0 auto;
  min-height: 44px;
  align-items: center;
  gap: 10px;
  color: var(--navy);
  font-family: "Fredoka", sans-serif;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.1;
  text-decoration: none;
}

.wordmark:hover { color: var(--blue); text-decoration: none; }
.wordmark svg { width: 26px; height: 26px; }

.desktop-nav { display: flex; align-items: center; gap: 6px; }
.desktop-nav__link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding-inline: 14px;
  border-radius: 999px;
  color: var(--navy);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 150ms ease-out, color 150ms ease-out;
}

.desktop-nav__link:hover { color: var(--blue-deep); background: var(--bg-sky); text-decoration: none; }
.home-page .desktop-nav__link[data-page="home"],
.programs-page .desktop-nav__link[data-page="programs"],
.curriculums-page .desktop-nav__link[data-page="curriculums"] { color: var(--blue-deep); background: var(--blue-tint); }
.desktop-nav .button { margin-left: 12px; min-height: 48px; padding: 13px 26px; }

.mobile-actions, .mobile-panel { display: none; }
.menu-toggle { width: 48px; height: 48px; padding: 12px; border: 2px solid var(--blue); border-radius: 999px; color: var(--blue-deep); background: var(--paper); cursor: pointer; }
.menu-toggle svg { width: 24px; height: 24px; margin: auto; }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-menu { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }
.mobile-panel { position: absolute; z-index: 19; top: 100%; left: 0; width: 100%; max-height: calc(100vh - 76px); overflow-y: auto; border-bottom: 1px solid var(--line); background: var(--bg); box-shadow: var(--shadow-hover); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: transform 150ms ease-out, opacity 150ms ease-out, visibility 150ms ease-out; }
.mobile-panel.is-open { transform: translateY(0); opacity: 1; visibility: visible; }
.mobile-panel__inner { display: grid; gap: 4px; padding-block: 16px 24px; }
.mobile-panel__link { display: flex; min-height: 48px; align-items: center; padding-inline: 16px; border-radius: 14px; color: var(--navy); font-weight: 800; text-decoration: none; }
.mobile-panel__link:hover,
.home-page .mobile-panel__link[data-page="home"],
.programs-page .mobile-panel__link[data-page="programs"],
.curriculums-page .mobile-panel__link[data-page="curriculums"] { color: var(--blue-deep); background: var(--blue-tint); text-decoration: none; }
.mobile-panel .button { margin-top: 8px; }

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--bg-sky); }
.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  align-items: center;
  gap: 48px;
  padding-block: 80px;
}

.hero__copy h1 { max-width: 13ch; }
.hero__copy .lead { max-width: 52ch; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.squiggle {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='12' viewBox='0 0 120 12'%3E%3Cpath d='M2 8c10-6 20-6 30 0s20 6 30 0 20-6 30 0 20 6 28 2' fill='none' stroke='%23ff6f61' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-position: 0 100%;
  background-size: auto 0.22em;
  padding-bottom: 0.18em;
}

.trust-list, .check-list { display: grid; gap: 10px; margin: 28px 0 0; padding: 0; list-style: none; }
.trust-list { color: var(--navy); font-size: 14px; line-height: 1.4; font-weight: 700; }
.trust-list li, .check-list li { display: flex; align-items: flex-start; gap: 10px; }

.icon { width: 24px; height: 24px; flex: 0 0 24px; color: var(--blue); fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon--small { width: 18px; height: 18px; flex-basis: 18px; }
.trust-list .icon, .check-list .icon { color: var(--leaf); }

/* Photo frame — scrapbook style */
.photo-frame {
  --tilt: 0deg;
  position: relative;
  margin: 0;
  padding: 12px;
  border-radius: 26px;
  background: var(--paper);
  box-shadow: var(--shadow);
  transform: rotate(var(--tilt));
}

.photo-frame img { width: 100%; border-radius: 16px; object-fit: cover; }
.photo-frame--tilt-l { --tilt: -1.6deg; }
.photo-frame--tilt-r { --tilt: 1.6deg; }
.photo-frame--tall img { aspect-ratio: 4 / 4.6; }
.photo-frame figcaption { padding: 12px 8px 4px; color: var(--navy-2); font-size: 13px; font-weight: 700; text-align: center; }

.hero__media { position: relative; }
.hero__media .photo-frame img { aspect-ratio: 4 / 4.6; object-position: 50% 30%; }

/* Floating kid cutout — white "sticker" circle (source photos have white backgrounds) */
.cutout {
  --r: 0deg;
  position: absolute;
  z-index: 2;
  aspect-ratio: 1;
  border: 8px solid #fff;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: var(--shadow-hover);
  pointer-events: none;
  transform: rotate(var(--r));
  animation: floaty 5.5s ease-in-out infinite;
}

.cutout--hero { --r: 4deg; right: -24px; bottom: -32px; width: clamp(140px, 15vw, 210px); object-position: 50% 28%; }

@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(var(--r)); }
  50% { transform: translateY(-10px) rotate(var(--r)); }
}

@keyframes twinkle {
  0%, 100% { transform: scale(1) rotate(var(--r)); }
  50% { transform: scale(1.12) rotate(var(--r)); }
}

/* Doodles */
.doodle { --r: 0deg; position: absolute; z-index: 1; pointer-events: none; transform: rotate(var(--r)); animation: twinkle 4.5s ease-in-out infinite; }
.doodle--star-tr { --r: 12deg; top: 7%; right: 5%; width: 44px; }
.doodle--star-bl { --r: -10deg; bottom: 8%; left: 3%; width: 34px; animation-delay: 1.2s; }
.doodle--dots { top: 15%; left: 9%; width: 90px; opacity: 0.9; animation: none; }

/* Proof strip */
.proof-strip { position: relative; z-index: 2; margin-top: -40px; background: transparent; }
.proof-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding: 20px; border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow-hover); }
.proof-item { display: flex; min-height: 64px; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 14px; color: var(--navy); background: var(--bg-sky); font-size: 13px; font-weight: 800; line-height: 1.4; text-decoration: none; transition: background-color 150ms ease-out; }
a.proof-item:hover { color: var(--blue-deep); background: var(--blue-tint); text-decoration: none; }
.proof-item .icon { color: var(--blue); }

/* Section headings */
.section-heading { max-width: 720px; margin-bottom: 48px; }
.section-heading h2:last-child, .section-heading p:last-child { margin-bottom: 0; }

/* About split */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr); align-items: center; gap: 64px; }
.about-grid .photo-frame img { aspect-ratio: 4 / 4.2; object-position: 50% 20%; }

/* Program cards with photos */
.card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: box-shadow 150ms ease-out, transform 150ms ease-out;
}

.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.card__photo { width: 100%; aspect-ratio: 16 / 9.5; object-fit: cover; }
.card__body { display: flex; flex: 1; flex-direction: column; padding: 28px 32px 32px; }
.card__meta {
  display: inline-flex;
  align-self: flex-start;
  min-height: 32px;
  align-items: center;
  margin-bottom: 14px;
  padding: 4px 14px;
  border-radius: 999px;
  color: var(--blue-deep);
  background: var(--blue-tint);
  font-size: 13px;
  line-height: 1.4;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.card:nth-child(4n + 2) .card__meta { color: #c23a2d; background: var(--coral-tint); }
.card:nth-child(4n + 3) .card__meta { color: #2e6b39; background: var(--leaf-tint); }
.card:nth-child(4n + 4) .card__meta { color: #8a6100; background: var(--sun-tint); }
.card h3 { font-size: 22px; }
.card p { color: var(--navy-2); }
.card .text-link { margin-top: auto; padding-top: 8px; }

/* Feature grid — icon chips */
.feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.feature-item { padding: 28px 24px; border-radius: var(--radius); background: var(--bg-sky); }
.feature-icon { display: grid; width: 58px; height: 58px; margin-bottom: 20px; place-items: center; border-radius: 999px; color: var(--blue-deep); background: var(--blue-tint); }
.feature-item:nth-child(4n + 2) .feature-icon { color: #c23a2d; background: var(--coral-tint); }
.feature-item:nth-child(4n + 3) .feature-icon { color: #2e6b39; background: var(--leaf-tint); }
.feature-item:nth-child(4n + 4) .feature-icon { color: #8a6100; background: var(--sun-tint); }
.feature-icon .icon { color: currentColor; }
.feature-item h3 { font-size: 18px; }
.feature-item p { color: var(--navy-2); font-size: 15px; }

/* Split sections */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 64px; }
.split__copy, .split__media { min-width: 0; max-width: 100%; }
.split__copy h2 { max-width: 18ch; }
.split .photo-frame img { aspect-ratio: 4 / 3.2; }
.split--reverse .split__media { order: -1; }

/* Google reviews and FAQ */
.reviews-layout { display: grid; gap: 32px; }
.review-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 32px 40px;
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.review-summary__rating { display: flex; min-width: 0; align-items: center; gap: 24px; }
.review-summary__rating strong { flex: 0 0 auto; color: var(--navy); font-family: "Fredoka", sans-serif; font-size: 61px; line-height: 1; font-weight: 600; }
.review-summary__rating > div { display: grid; gap: 8px; }
.review-stars { display: block; color: #b17600; font-size: 25px; line-height: 1; letter-spacing: 4px; }
.review-summary__count { color: var(--navy-2); font-weight: 800; }
.review-summary__details { flex: 0 1 390px; }
.review-summary__details p { margin-bottom: 4px; color: var(--navy-2); font-size: 13px; line-height: 1.4; }

.review-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.review-card {
  display: flex;
  min-width: 0;
  min-height: 44px;
  flex-direction: column;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--navy);
  background: var(--paper);
  box-shadow: var(--shadow);
  text-decoration: none;
  transition: border-color 150ms ease-out, box-shadow 150ms ease-out, transform 150ms ease-out;
}

.review-card:hover { border-color: var(--blue); color: var(--navy); box-shadow: var(--shadow-hover); text-decoration: none; transform: translateY(-4px); }
.review-card:focus-visible { border-radius: var(--radius); outline: 3px solid var(--sun); outline-offset: 3px; }
.review-card blockquote { flex: 1; margin: 24px 0 32px; }
.review-card blockquote p { margin: 0; color: var(--navy); font-size: 18px; line-height: 1.6; }
.review-card__footer { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding-top: 20px; border-top: 1px solid var(--line); }
.review-card__author { display: grid; min-width: 0; gap: 2px; }
.review-card__author strong { font-size: 16px; line-height: 1.4; }
.review-card__author > span { color: var(--navy-2); font-size: 13px; line-height: 1.4; font-weight: 700; }
.review-card__link { flex: 0 0 auto; color: var(--blue-deep); font-size: 13px; line-height: 1.4; font-weight: 900; }
.review-card__link span { display: inline-block; margin-left: 4px; transition: transform 150ms ease-out; }
.review-card:hover .review-card__link span { transform: translateX(4px); }

.faq-layout { display: grid; grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1.25fr); gap: 64px; align-items: start; }
.faq-intro { align-self: start; }
.faq-intro h2 { max-width: 12ch; }
.faq-list { display: grid; gap: 16px; }
.faq-item { padding: 28px 32px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow); }
.faq-item h3 { margin-bottom: 12px; color: var(--navy); font-family: "Fredoka", sans-serif; font-size: 20px; font-weight: 600; }
.faq-item p { color: var(--navy-2); }
.faq-sources { margin-top: 8px; padding: 24px 32px; border-radius: var(--radius); background: var(--bg-sky); }
.faq-sources p { margin-bottom: 12px; color: var(--navy-2); font-size: 13px; line-height: 1.4; }
.faq-sources__links { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.faq-sources__links a { display: inline-flex; min-height: 44px; align-items: center; font-size: 13px; font-weight: 800; }

/* CTA band */
.cta-band { position: relative; overflow: hidden; padding-block: 72px; color: #fff; background: var(--blue); }
.cta-band__inner { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 48px; }
.cta-band h2, .cta-band p { color: #fff; }
.cta-band h2 { max-width: 16ch; margin-bottom: 12px; }
.cta-band p { opacity: 0.92; }
.cta-band__actions { display: flex; flex: 0 0 auto; align-items: center; gap: 24px; }
.cta-phone { display: inline-flex; min-height: 44px; align-items: center; gap: 8px; color: #fff; font-weight: 800; text-decoration: none; }
.cta-phone:hover { color: var(--sun); }
.cta-phone .icon { color: #fff; }
.cta-band .doodle--cta-1 { top: 24px; right: 12%; width: 40px; opacity: 0.85; }
.cta-band .doodle--cta-2 { bottom: 20px; left: 8%; width: 30px; opacity: 0.7; }
.cta-band .cutout--cta { --r: 5deg; right: 48px; bottom: -20px; width: 150px; object-position: 60% 45%; }

/* Footer */
.site-footer { padding-block: 64px 28px; color: var(--on-dark-muted); background: var(--footer); }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 64px; }
.footer-logo { width: 180px; margin-bottom: 20px; }
.footer-heading { margin-bottom: 16px; color: #fff; font-size: 16px; font-weight: 800; }
.site-footer p { color: var(--on-dark-muted); }
.footer-contact, .footer-links { display: grid; gap: 8px; }
.footer-contact a, .footer-contact span, .footer-links a { display: flex; min-height: 40px; align-items: center; gap: 12px; color: var(--on-dark-muted); text-decoration: none; }
.footer-contact a:hover, .footer-links a:hover { color: #fff; text-decoration: underline; }
.footer-contact .icon { color: var(--sun); width: 20px; height: 20px; flex-basis: 20px; }
.site-footer .footer-note, .site-footer .footer-bottom { color: var(--on-dark-subtle); font-size: 13px; line-height: 1.4; }
.footer-note { margin-top: 16px; }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.14); }

/* Inner page hero */
.page-hero { position: relative; overflow: hidden; background: var(--bg-sky); }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { max-width: 16ch; margin-bottom: 16px; }
.page-hero .lead { max-width: 56ch; margin-bottom: 0; }
.page-hero .lead a { display: inline; }
.page-hero .doodle--ph-1 { --r: 10deg; top: 36px; right: 30%; width: 38px; }
.page-hero .cutout--page { --r: -4deg; right: 56px; bottom: -26px; width: clamp(130px, 14vw, 190px); }

.mission-list { display: grid; max-width: 65ch; gap: 12px; margin: 28px 0 0; padding: 0; list-style: none; }
.mission-list li { display: flex; align-items: flex-start; gap: 10px; font-weight: 600; }
.mission-list .icon { color: var(--leaf); }

/* Program blocks */
.program-block__header { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-bottom: 24px; }
.program-block__header h2 { margin-bottom: 0; }
.badge, .concept-pill { display: inline-flex; min-height: 34px; align-items: center; padding: 5px 16px; border-radius: 999px; color: var(--blue-deep); background: var(--blue-tint); font-size: 13px; line-height: 1.4; font-weight: 900; }
.badge--muted { color: var(--navy-2); background: #edf1f6; }
.program-block { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr); gap: 56px; align-items: start; }
.program-block .photo-frame { position: sticky; top: 110px; }
.program-block .photo-frame img { aspect-ratio: 4 / 4.4; }
.program-copy { margin-bottom: 40px; }
.program-copy p { color: var(--navy-2); }

.schedule { margin-bottom: 24px; border-radius: var(--radius); background: var(--paper); overflow: hidden; box-shadow: var(--shadow); }
.schedule__row { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 20px; padding: 15px 24px; border-bottom: 1px solid var(--line); }
.schedule__row:last-child { border-bottom: 0; }
.schedule__row:nth-child(even) { background: var(--bg-sky); }
.schedule__time { color: var(--blue-deep); font-weight: 900; }

/* Fees */
.fees-stack { display: grid; gap: 64px; }
.fee-group { min-width: 0; }
.fee-meta { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); margin-bottom: 16px; border-radius: var(--radius); overflow: hidden; background: var(--paper); box-shadow: var(--shadow); }
.fee-meta div { display: contents; }
.fee-meta dt, .fee-meta dd { margin: 0; padding: 13px 20px; border-bottom: 1px solid var(--line); }
.fee-meta div:last-child dt, .fee-meta div:last-child dd { border-bottom: 0; }
.fee-meta dt { font-weight: 800; }
.fee-meta dd { border-left: 1px solid var(--line); font-weight: 700; color: var(--blue-deep); }
.table-scroll { max-width: 100%; overflow-x: auto; border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow); -webkit-overflow-scrolling: touch; }
.table-scroll:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }
table { width: 100%; min-width: 760px; border-collapse: collapse; text-align: left; }
caption { padding: 22px 24px; color: var(--navy); font-family: "Fredoka", sans-serif; font-size: 21px; line-height: 1.3; font-weight: 600; text-align: left; }
th, td { padding: 15px 20px; border-top: 1px solid var(--line); vertical-align: top; }
thead th { color: var(--navy); background: var(--blue-tint); font-weight: 900; }
tbody tr:nth-child(even) { background: var(--bg-sky); }
tbody th { font-weight: 800; }
.table-note { margin-top: 12px; color: var(--navy-2); font-size: 13px; line-height: 1.4; }
.note-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; padding-top: 64px; }

/* Curriculums page */
.curriculum-section .split { align-items: center; }
.curriculum-section .split__copy p:last-of-type { margin-bottom: 0; }
.concept-label { margin: 28px 0 14px; color: var(--blue-deep); font-size: 13px; line-height: 1.4; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; }
.concept-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.concept-pill { justify-content: center; text-align: center; font-weight: 800; }
.photo-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 48px; }
.photo-row .photo-frame img { aspect-ratio: 1 / 1; }
.poster-split { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr); gap: 56px; align-items: center; margin-bottom: 56px; }
.poster-split .photo-frame img { aspect-ratio: auto; }
.newsletter-frame img { width: 100%; height: 600px; object-fit: cover; object-position: top; }

@media (max-width: 1100px) {
  .desktop-nav { gap: 2px; }
  .desktop-nav__link { font-size: 14px; padding-inline: 10px; }
  .desktop-nav .button { padding-inline: 18px; }
  .hero__grid { grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr); gap: 36px; }
}

@media (max-width: 1024px) {
  .section { padding-block: 64px; }
  .section--compact { padding-block: 56px; }
  .topbar__address, .topbar .topbar__email { display: none; }
  .mainbar__inner { min-height: 64px; gap: 12px; }
  .wordmark { font-size: 21px; }
  .desktop-nav { display: none; }
  .mobile-actions { display: flex; align-items: center; gap: 8px; }
  .mobile-tour { padding-inline: 18px; min-height: 46px; }
  .mobile-panel { display: block; max-height: calc(100vh - 64px); }
  .mobile-panel .mobile-panel__tour { display: none; }
  .hero__grid { grid-template-columns: minmax(0, 1fr); gap: 40px; padding-block: 48px 64px; }
  .hero__copy h1 { max-width: 15ch; }
  .hero__media { max-width: 560px; margin-inline: auto; }
  .cutout--hero { right: -10px; width: 150px; }
  .proof-strip { margin-top: 0; padding-top: 0; background: var(--bg-sky); padding-bottom: 40px; }
  .proof-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-grid, .split, .program-block, .poster-split { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .program-block .photo-frame { position: static; max-width: 480px; }
  .card-grid, .feature-grid { grid-template-columns: 1fr; }
  .card__photo { aspect-ratio: 16 / 8.5; }
  .split--reverse .split__media { order: initial; }
  .cta-band__inner { flex-direction: column; align-items: flex-start; gap: 28px; }
  .cta-band__actions { flex-wrap: wrap; }
  .cta-band .cutout--cta { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 44px; }
  .page-hero .cutout--page { width: 120px; right: 16px; }
  .schedule__row { grid-template-columns: 120px minmax(0, 1fr); gap: 16px; }
  .fee-meta, .note-grid, .concept-grid { grid-template-columns: minmax(0, 1fr); }
  .fee-meta div { display: grid; grid-template-columns: 1fr; }
  .fee-meta dt { padding-bottom: 4px; border-bottom: 0; }
  .fee-meta dd { padding-top: 4px; border-left: 0; }
  .fee-meta div:last-child dt { border-bottom: 0; }
  .note-grid { gap: 32px; }
  .photo-row { grid-template-columns: 1fr; max-width: 480px; }
  .faq-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .faq-intro { position: static; }
  .faq-intro h2 { max-width: 18ch; }
}

@media (max-width: 520px) {
  .container { padding-inline: 16px; }
  .mobile-tour { display: none; }
  .mobile-panel .mobile-panel__tour { display: inline-flex; }
  .button-row, .button-row .button, .cta-band__actions, .cta-band__actions .button { width: 100%; }
  .proof-grid { grid-template-columns: 1fr; padding-inline: 16px; }
  .proof-item { min-height: 48px; }
  .schedule__row { grid-template-columns: 1fr; gap: 4px; }
  .cta-band__actions .cta-phone { width: 100%; }
  .cutout--hero { width: 110px; bottom: -24px; }
  .doodle { display: none; }
  .card__body { padding: 24px; }
  .review-summary { flex-direction: column; align-items: flex-start; padding: 24px; }
  .review-summary__rating { gap: 16px; }
  .review-summary__rating strong { font-size: 49px; }
  .review-summary__details { flex: none; width: 100%; }
  .review-grid { grid-template-columns: minmax(0, 1fr); }
  .review-card { padding: 24px; }
  .review-card__footer { align-items: flex-start; flex-direction: column; }
  .faq-item, .faq-sources { padding: 24px; }
  .faq-sources__links { display: grid; gap: 8px; }
  .faq-sources__links a { width: 100%; }
  h1 { font-size: 34px; }
  .hero__media .photo-frame img { aspect-ratio: 4 / 3.8; }
  .section { padding-block: 56px; }
  .split__copy h2 { max-width: none; }
  body { padding-bottom: 84px; }
  .sticky-cta {
    position: fixed;
    z-index: 15;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    gap: 10px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 -6px 20px rgba(30, 58, 95, 0.12);
  }
  .sticky-cta .button { flex: 1; min-height: 48px; padding: 12px 14px; font-size: 15px; }
  body.nav-open .sticky-cta { display: none; }
}

/* Scroll reveal — only applied when JS is available (html.js), so content
   is never hidden without JavaScript. */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px) rotate(var(--tilt, 0deg));
  transition: opacity 600ms cubic-bezier(0.22, 1, 0.36, 1), transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
}

html.js [data-reveal="left"] { transform: translateX(-28px) rotate(var(--tilt, 0deg)); }
html.js [data-reveal="right"] { transform: translateX(28px) rotate(var(--tilt, 0deg)); }
html.js [data-reveal="zoom"] { transform: scale(0.93) rotate(var(--tilt, 0deg)); }
html.js [data-reveal].is-visible { opacity: 1; transform: rotate(var(--tilt, 0deg)); }

/* Skip to content */
.skip-link {
  position: absolute;
  z-index: 100;
  top: -64px;
  left: 16px;
  padding: 12px 22px;
  border-radius: 999px;
  color: #fff;
  background: var(--navy);
  font-weight: 800;
  text-decoration: none;
  transition: top 150ms ease-out;
}

.skip-link:focus-visible { top: 12px; }

body { -webkit-tap-highlight-color: transparent; overflow-x: clip; }

/* On single-column layouts, side reveals become a plain rise so they can't
   poke past the viewport edge while hidden. */
@media (max-width: 1024px) {
  html.js [data-reveal="left"], html.js [data-reveal="right"] { transform: translateY(26px) rotate(var(--tilt, 0deg)); }
}

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