:root {
  --ink: #1f2933;
  --muted: #5d6673;
  --paper: #ffffff;
  --surface: #ffffff;
  --teal: #005dab;
  --teal-dark: #004b93;
  --coral: #d71920;
  --sun: #ffc629;
  --mint: #eaf4ff;
  --line: #d8dee8;
  --shadow: 0 12px 28px rgba(20, 35, 60, 0.12);
  --radius: 2px;
  --container: 1140px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: "Noto Sans Greek", Manrope, system-ui, sans-serif;
  line-height: 1.6;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

.container {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 20;
  padding: 10px 14px;
  color: #fff;
  background: var(--teal-dark);
  border-radius: var(--radius);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
}

.brand img {
  width: 74px;
  height: auto;
}

.brand strong {
  display: block;
  font-size: 1.1rem;
  line-height: 1.1;
}

.brand small {
  display: block;
  color: var(--teal-dark);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.35;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.main-nav a {
  padding: 12px 13px;
  border-radius: var(--radius);
  color: #343d48;
  font-size: 0.95rem;
  font-weight: 800;
}

.main-nav a:hover {
  color: #fff;
  background: var(--teal-dark);
}

.icon-button {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
}

.icon-button svg,
.button svg,
.quick-info svg,
.feature-item svg,
.service-card svg,
.social-row svg {
  width: 20px;
  height: 20px;
  stroke-width: 2.2;
}

.menu-toggle {
  display: none;
}

.hero {
  overflow: hidden;
  min-height: auto;
  padding: 58px 0 52px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) 420px;
  align-items: start;
  gap: 46px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--teal-dark);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1 {
  max-width: 780px;
  margin: 0;
  color: #1b2f5b;
  font-size: clamp(2.3rem, 5.4vw, 5rem);
  line-height: 1;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.7rem);
  line-height: 1.06;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  line-height: 1.25;
}

.lead {
  max-width: 680px;
  margin: 24px 0 0;
  color: #344454;
  font-size: clamp(1.05rem, 2vw, 1.22rem);
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  gap: 10px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 0;
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.15;
}

.button.primary {
  color: #fff;
  background: var(--coral);
  box-shadow: none;
}

.button.secondary {
  color: #1b2f5b;
  background: var(--surface);
  border-color: #1b2f5b;
}

.quick-info {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
  color: #31404f;
  font-size: 0.94rem;
  font-weight: 700;
}

.quick-info span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
}

.quick-info svg {
  color: var(--coral);
}

.hero-media {
  position: relative;
  align-self: start;
}

.hero-media::before {
  display: none;
}

.center-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.center-card > img {
  width: 100%;
  height: 230px;
  object-fit: cover;
}

.center-card-body {
  padding: 24px;
}

.location-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 0;
  color: #1b2f5b;
  border-bottom: 1px solid var(--line);
  font-weight: 800;
}

.location-link svg {
  width: 20px;
  color: var(--coral);
}

.hours-box {
  margin-top: 22px;
}

.hours-box h2 {
  margin-bottom: 10px;
  color: #1b2f5b;
  font-size: 1.45rem;
}

.hours-box dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

.hours-box div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.hours-box dt {
  color: var(--muted);
  font-weight: 700;
}

.hours-box dd {
  margin: 0;
  color: #1b2f5b;
  font-weight: 800;
}

.intro-band {
  padding: 30px 0;
  color: #fff;
  background: #1b2f5b;
}

.intro-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: center;
}

.intro-band .section-kicker,
.intro-band p {
  color: #eef6ff;
}

.intro-band h2 {
  font-size: clamp(1.65rem, 3vw, 2.7rem);
}

.intro-band p {
  margin: 0;
  font-size: 1.05rem;
}

.section {
  padding: 86px 0;
}

.page-hero {
  padding: 72px 0 48px;
  background: #eef6ff;
  border-bottom: 1px solid var(--line);
}

.page-hero .lead {
  max-width: 820px;
}

.content-page {
  background: #fff;
}

.content-narrow {
  max-width: 900px;
}

.rich-text p {
  color: #344454;
  font-size: 1.06rem;
}

.rich-text ul {
  display: grid;
  gap: 10px;
  padding-left: 22px;
  color: #344454;
}

.rich-text li::marker {
  color: var(--coral);
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 1.1fr);
  gap: 54px;
  align-items: start;
}

.section-copy p:not(.section-kicker),
.section-heading p {
  color: var(--muted);
  font-size: 1.04rem;
}

.feature-list,
.services-grid {
  display: grid;
  gap: 16px;
}

.feature-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-item,
.service-card,
.contact-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: none;
}

.feature-item {
  min-height: 270px;
  padding: 24px;
}

.feature-item svg,
.service-card svg {
  margin-bottom: 18px;
  color: var(--coral);
}

.feature-item p,
.service-card p {
  margin: 0;
  color: var(--muted);
}

.services-section {
  background: #fff;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 34px;
}

.section-heading.compact {
  max-width: 760px;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 24px;
}

.stats-row div {
  padding: 22px;
  color: #fff;
  background: #1b2f5b;
  border-radius: var(--radius);
}

.stats-row strong,
.stats-row span {
  display: block;
}

.stats-row strong {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1;
}

.stats-row span {
  margin-top: 8px;
  color: #e4efff;
  font-weight: 700;
}

.services-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-card {
  min-height: 232px;
  padding: 24px;
}

.gallery-section {
  background: #f7f9fc;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.gallery-item {
  overflow: hidden;
  aspect-ratio: 4 / 3;
  padding: 0;
  background: #e9edf0;
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 180ms ease;
}

.gallery-item:hover img {
  transform: scale(1.04);
}

.contact-section {
  background: #eef6ff;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 34px;
  align-items: start;
}

.contact-copy p {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.04rem;
}

.contact-panel {
  padding: 28px;
}

.contact-panel dl {
  display: grid;
  gap: 18px;
  margin: 0;
}

.contact-panel dt {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

.contact-panel dd {
  margin: 4px 0 0;
  font-weight: 800;
}

.social-row {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}

.social-row a {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: var(--kumon-purple);
  background: var(--kumon-yellow);
  border-radius: 50%;
}

.social-row a[aria-label="Instagram"] {
  color: #fff;
  background: var(--kumon-coral);
}

.map-wrap {
  margin-top: 28px;
}

.map-wrap iframe {
  display: block;
  width: 100%;
  height: 360px;
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.site-footer {
  padding: 26px 0;
  color: #dce8ff;
  background: #1b2f5b;
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-grid img {
  width: 70px;
  margin-bottom: 8px;
}

.footer-grid p {
  margin: 0;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(10, 18, 26, 0.86);
}

.lightbox img {
  max-width: min(100%, 1040px);
  max-height: 86vh;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.lightbox-close {
  position: fixed;
  top: 18px;
  right: 18px;
}

[x-cloak] {
  display: none !important;
}

@media (max-width: 980px) {
  .menu-toggle {
    display: inline-grid;
  }

  .main-nav {
    position: absolute;
    top: 82px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }

  .main-nav.is-open {
    display: flex;
  }

  .hero {
    min-height: auto;
  }

  .hero-grid,
  .two-column,
  .intro-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-media {
    min-height: 420px;
  }

  .feature-list,
  .services-grid,
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Philosophy page long-form layout */
.philosophy-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 64px;
  align-items: start;
}

.philosophy-article {
  max-width: 920px;
}

.philosophy-article h2 {
  margin-bottom: 24px;
  color: var(--kumon-coral);
  font-size: clamp(2.4rem, 3.5vw, 4rem);
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.philosophy-article p {
  margin: 0 0 22px;
  color: #202938;
  font-size: 1.15rem;
  font-weight: 650;
  line-height: 1.85;
}

.publication-note {
  color: var(--kumon-blue) !important;
  font-weight: 900 !important;
  text-transform: uppercase;
}

.inline-philosophy-image {
  margin: 36px 0;
}

.inline-philosophy-image img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
}

.philosophy-aside {
  position: sticky;
  top: 92px;
}

.philosophy-aside > img {
  width: 100%;
  margin-bottom: 18px;
  background: #f7f4f3;
}

.philosophy-card {
  padding: 30px;
  color: #fff;
  background: var(--kumon-purple);
}

.philosophy-card h2 {
  margin-bottom: 16px;
  color: #fff;
  font-size: 2rem;
}

.philosophy-card p {
  margin: 0;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.65;
}

@media (max-width: 980px) {
  .philosophy-layout {
    grid-template-columns: 1fr;
  }

  .philosophy-aside {
    position: static;
  }
}

@media (max-width: 640px) {
  .philosophy-article p {
    font-size: 1rem;
    line-height: 1.7;
  }
}

/* Services page program-style layout */
.services-hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 82px;
  background:
    radial-gradient(circle at 84% 16%, rgba(255, 227, 106, 0.92) 0 66px, transparent 67px),
    radial-gradient(circle at 10% 86%, rgba(70, 50, 124, 0.16) 0 132px, transparent 133px),
    linear-gradient(135deg, #ffb1a6 0%, #f56749 48%, #d93835 100%);
}

.services-hero::before {
  position: absolute;
  right: -60px;
  top: -120px;
  width: 260px;
  height: 260px;
  content: "";
  border: 54px solid rgba(255, 227, 106, 0.82);
  border-radius: 50%;
}

.services-hero::after {
  position: absolute;
  left: 52%;
  bottom: 46px;
  color: rgba(255, 255, 255, 0.5);
  content: "+";
  font-size: 11rem;
  font-weight: 900;
  line-height: 1;
}

.services-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 0.9fr);
  gap: 72px;
  align-items: center;
}

.services-hero-copy h1 {
  max-width: 620px;
  color: var(--kumon-purple);
  font-size: clamp(3rem, 5vw, 5rem);
  font-weight: 900;
  line-height: 0.98;
}

.services-hero-copy p:not(.eyebrow) {
  margin: 18px 0 0;
  color: var(--kumon-purple);
  font-size: 1.35rem;
  font-weight: 900;
}

.services-hero-photo {
  position: relative;
}

.services-hero-photo::after {
  position: absolute;
  right: -40px;
  bottom: -28px;
  width: 190px;
  height: 190px;
  content: "";
  background: #5bc6de;
  border-radius: 50% 50% 0 0;
  opacity: 0.95;
}

.services-hero-photo img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 410px;
  object-fit: cover;
}

.program-cta {
  position: relative;
  z-index: 2;
  margin-top: -54px;
}

.program-cta-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  width: min(100%, 1020px);
  min-height: 132px;
  margin: 0 auto;
  padding: 34px 70px;
  color: #fff;
  background: var(--kumon-purple);
}

.program-cta-box h2 {
  color: #fff;
  font-size: clamp(1.7rem, 2.5vw, 2.5rem);
  font-weight: 900;
}

.services-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 70px;
}

.services-tabs a {
  display: grid;
  min-height: 66px;
  place-items: center;
  color: #fff;
  font-weight: 900;
  text-align: center;
  text-decoration: underline;
}

.services-tabs a:nth-child(1) {
  background: var(--kumon-coral);
}

.services-tabs a:nth-child(2) {
  background: var(--kumon-purple-soft);
}

.services-tabs a:nth-child(3) {
  background: var(--kumon-blue);
}

.services-feature {
  padding: 96px 0;
  background: #fff;
}

.services-feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.services-feature-grid.reverse .services-copy {
  order: 1;
}

.services-image {
  position: relative;
}

.services-image::before {
  position: absolute;
  z-index: 0;
  content: "";
}

.services-image.shape-yellow::before {
  left: -54px;
  top: 62px;
  width: 156px;
  height: 156px;
  background: var(--kumon-yellow);
  border-radius: 78px 0 0 78px;
}

.services-image.shape-blue::before {
  right: -48px;
  top: -40px;
  width: 156px;
  height: 156px;
  background: var(--kumon-blue);
  clip-path: polygon(56% 0, 100% 0, 44% 100%, 0 100%);
}

.services-image.shape-wave::before {
  left: -40px;
  bottom: -36px;
  width: 220px;
  height: 86px;
  background: repeating-linear-gradient(0deg, #f7bccb 0 18px, transparent 18px 36px);
  border-radius: 40px;
}

.services-image img {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 1.35 / 1;
  object-fit: cover;
}

.services-copy h2 {
  max-width: 620px;
  margin: 0;
  color: var(--kumon-blue);
  font-size: clamp(2.2rem, 3.6vw, 3.8rem);
  font-weight: 900;
  line-height: 1.02;
}

.services-copy p {
  max-width: 680px;
  color: #111;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.65;
}

.fit-band {
  padding: 78px 0;
  color: #fff;
  background: var(--kumon-blue);
  text-align: center;
}

.fit-band h2 {
  color: #fff;
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 900;
  text-transform: uppercase;
}

.fit-questions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 34px;
  margin: 44px 0 26px;
}

.fit-questions div {
  display: grid;
  gap: 14px;
  justify-items: center;
}

.fit-questions strong {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  color: var(--kumon-blue);
  background: #fff;
  border-radius: 50%;
  font-size: 1.5rem;
}

.fit-questions span,
.fit-band p {
  color: #fff;
  font-weight: 800;
}

.services-list-section {
  background: #fff;
}

.services-check-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
  margin-top: 34px;
}

.services-check-grid ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 32px 34px;
  background: #f7f4f3;
}

.services-check-grid li {
  color: #202938;
  font-weight: 750;
  line-height: 1.55;
}

.services-check-grid li::marker {
  color: var(--kumon-coral);
}

.bottom-cta {
  margin: 0;
  padding: 74px 0;
  background: #fff;
}

.program-cta-box.coral {
  background: var(--kumon-coral);
}

@media (max-width: 980px) {
  .services-hero-grid,
  .services-feature-grid,
  .services-check-grid {
    grid-template-columns: 1fr;
  }

  .services-feature-grid.reverse .services-copy {
    order: 0;
  }

  .services-tabs,
  .fit-questions {
    grid-template-columns: 1fr;
  }

  .program-cta-box {
    align-items: stretch;
    flex-direction: column;
    padding: 28px;
  }
}

@media (max-width: 640px) {
  .services-hero {
    padding: 52px 0 78px;
    background:
      radial-gradient(circle at 92% 10%, rgba(255, 227, 106, 0.82) 0 40px, transparent 41px),
      radial-gradient(circle at 4% 94%, rgba(70, 50, 124, 0.13) 0 86px, transparent 87px),
      linear-gradient(145deg, #ffb9ae 0%, #f7664b 58%, #d93c39 100%);
  }

  .services-hero::before {
    right: -72px;
    top: -82px;
    width: 150px;
    height: 150px;
    border-width: 24px;
    opacity: 0.8;
  }

  .services-hero::after {
    left: auto;
    right: 24px;
    bottom: 130px;
    font-size: 5.5rem;
    opacity: 0.42;
  }

  .services-hero-grid {
    gap: 36px;
  }

  .services-hero-copy h1 {
    font-size: clamp(2.25rem, 10vw, 3rem);
  }

  .services-hero-photo img {
    height: 280px;
  }

  .services-feature {
    padding: 68px 0;
  }
}

/* Playful footer */
.playful-footer {
  position: relative;
  overflow: hidden;
  padding: 74px 0 26px;
  color: #fff;
  background:
    radial-gradient(circle at 14% 24%, rgba(255, 227, 106, 0.22), transparent 20%),
    linear-gradient(135deg, var(--kumon-blue) 0%, #344f9d 58%, var(--kumon-purple) 100%);
  text-align: left;
}

.footer-shape {
  position: absolute;
  pointer-events: none;
}

.footer-shape-ring {
  right: 8%;
  top: -54px;
  width: 150px;
  height: 150px;
  border: 18px solid var(--kumon-yellow);
  border-radius: 50%;
  opacity: 0.9;
}

.footer-shape-triangles {
  right: 5%;
  bottom: 26px;
  width: 128px;
  height: 88px;
  background:
    linear-gradient(60deg, transparent 0 48%, var(--kumon-coral) 49% 100%) 0 0 / 58px 48px,
    linear-gradient(120deg, transparent 0 48%, var(--kumon-yellow) 49% 100%) 0 0 / 58px 48px;
  opacity: 0.95;
}

.footer-main {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(280px, 1.35fr) 0.72fr 1fr minmax(250px, 0.9fr);
  gap: 44px;
  align-items: start;
}

.footer-brand img {
  width: 112px;
  margin-bottom: 16px;
}

.footer-brand h2,
.footer-links h3,
.footer-contact h3,
.footer-cta h3 {
  margin: 0 0 16px;
  color: #fff;
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1.1;
}

.footer-brand p,
.footer-cta p {
  max-width: 430px;
  margin: 0;
  color: #eef3ff;
  font-weight: 750;
}

.footer-socials {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}

.footer-socials a {
  display: inline-grid;
  width: 46px;
  height: 46px;
  place-items: center;
  color: var(--kumon-purple);
  background: var(--kumon-yellow);
  border: 2px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
}

.footer-socials a:nth-child(2) {
  color: #fff;
  background: var(--kumon-coral);
}

.footer-socials a svg,
.social-row a svg {
  display: none;
}

.footer-socials a,
.social-row a,
.sticky-social {
  position: relative;
}

.footer-socials a[aria-label="Facebook"]::before,
.social-row a[aria-label="Facebook"]::before,
.sticky-facebook::before {
  content: "f";
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.55rem;
  font-weight: 900;
  line-height: 1;
}

.footer-socials a[aria-label="Instagram"]::before,
.social-row a[aria-label="Instagram"]::before,
.sticky-meta::before {
  display: block;
  width: 18px;
  height: 18px;
  content: "";
  border: 2px solid currentColor;
  border-radius: 6px;
}

.footer-socials a[aria-label="Instagram"]::after,
.social-row a[aria-label="Instagram"]::after,
.sticky-meta::after {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 6px;
  height: 6px;
  content: "";
  border: 2px solid currentColor;
  border-radius: 50%;
  box-shadow: 6px -6px 0 -3px currentColor;
  transform: translate(-50%, -50%);
}

.footer-links,
.footer-contact,
.footer-cta {
  display: grid;
  gap: 10px;
}

.footer-links a,
.footer-contact a,
.footer-contact span {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 850;
  line-height: 1.35;
}

.footer-links a:hover,
.footer-contact a:hover {
  color: var(--kumon-yellow);
}

.footer-contact svg {
  flex: 0 0 auto;
  width: 19px;
  height: 19px;
  color: var(--kumon-yellow);
}

.footer-cta {
  padding: 26px;
  background: rgba(255, 255, 255, 0.14);
  border: 2px solid rgba(255, 255, 255, 0.26);
}

.footer-cta .button {
  width: fit-content;
  margin-top: 6px;
}

.footer-bottom {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 52px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
}

.footer-bottom p {
  margin: 0;
  color: #dfe7ff;
  font-size: 0.92rem;
  font-weight: 750;
}

.footer-legal-links {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.footer-legal-links a,
.footer-legal-links button {
  padding: 0;
  color: #dfe7ff;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 850;
}

.footer-legal-links a:hover,
.footer-legal-links button:hover {
  color: var(--kumon-yellow);
}

.cookie-banner {
  position: fixed;
  z-index: 100;
  right: 24px;
  bottom: 24px;
  left: 24px;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.cookie-banner-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  width: min(100%, 1120px);
  padding: 24px;
  color: var(--kumon-navy);
  background: #fff;
  border: 3px solid var(--kumon-purple);
  box-shadow: 0 18px 46px rgba(38, 35, 95, 0.2);
  pointer-events: auto;
}

.cookie-banner-copy h2 {
  margin: 0;
  color: var(--kumon-purple);
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 900;
  line-height: 1.1;
}

.cookie-banner-copy p {
  max-width: 720px;
  margin: 8px 0 0;
  color: #344454;
  font-weight: 750;
}

.cookie-kicker {
  margin: 0 0 6px !important;
  color: var(--kumon-coral) !important;
  font-size: 0.82rem;
  font-weight: 900 !important;
  text-transform: uppercase;
}

.cookie-banner-copy a {
  display: inline-block;
  margin-top: 10px;
  color: var(--kumon-blue);
  font-weight: 900;
  text-decoration: underline;
}

.cookie-options {
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
  padding: 14px;
  background: #f7f5ff;
}

.cookie-options[hidden] {
  display: none;
}

.cookie-options label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--kumon-navy);
  font-weight: 900;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-content: center;
  justify-content: flex-end;
}

.legal-section {
  background: #fff;
}

.legal-content {
  display: grid;
  gap: 34px;
  max-width: 980px;
}

.legal-block {
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.legal-block h2 {
  color: var(--kumon-purple);
  font-size: clamp(1.65rem, 3vw, 2.4rem);
}

.legal-block p,
.legal-block li {
  color: #344454;
  font-size: 1.08rem;
}

.legal-block ul {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
  padding-left: 22px;
}

.legal-table {
  overflow-x: auto;
}

.legal-table table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
}

.legal-table th,
.legal-table td {
  padding: 14px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.legal-table th {
  color: #fff;
  background: var(--kumon-purple);
}

@media (max-width: 1100px) {
  .footer-main {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .playful-footer {
    padding: 58px 0 24px;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-legal-links {
    justify-content: flex-start;
  }

  .cookie-banner {
    right: 12px;
    bottom: 12px;
    left: 12px;
  }

  .cookie-banner-card {
    grid-template-columns: 1fr;
    max-height: calc(100vh - 24px);
    overflow: auto;
    padding: 18px;
  }

  .cookie-actions {
    justify-content: stretch;
  }

  .cookie-actions .button {
    flex: 1 1 100%;
  }

  .footer-shape-ring {
    right: -44px;
  }

  .footer-shape-triangles {
    opacity: 0.42;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 24px, var(--container));
  }

  .brand {
    min-width: 0;
  }

  .brand img {
    width: 52px;
  }

  .brand small {
    max-width: 170px;
  }

  .hero {
    padding-top: 42px;
  }

  .hero-media {
    min-height: 360px;
  }

  .hero-photo-main {
    height: 270px;
    margin-top: 22px;
  }

  .hero-photo-side {
    right: 8px;
    width: 54%;
    height: 140px;
  }

  .section {
    padding: 62px 0;
  }

  .hero-actions,
  .contact-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .feature-list,
  .services-grid,
  .stats-row,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .feature-item,
  .service-card {
    min-height: auto;
  }

  .footer-grid {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Kumon-inspired visual direction */
:root {
  --kumon-blue: #4565b1;
  --kumon-navy: #26235f;
  --kumon-purple: #46327c;
  --kumon-purple-soft: #8362b7;
  --kumon-yellow: #ffe36a;
  --kumon-coral: #f56749;
  --kumon-teal: #37b9a9;
}

.site-header {
  position: relative;
  background: #fff;
  border-bottom: 0;
}

.nav-shell {
  min-height: 104px;
  justify-content: flex-start;
}

.menu-toggle {
  display: none;
  width: 26px;
  height: 26px;
  color: var(--kumon-purple);
  background: transparent;
  border: 0;
}

.brand {
  gap: 14px;
  min-width: 0;
}

.brand img {
  width: 142px;
}

.brand strong {
  color: #111;
  font-size: 1.32rem;
  font-weight: 900;
  letter-spacing: 0;
}

.brand small {
  color: #111;
  font-size: 0.82rem;
  font-weight: 900;
}

.header-contact {
  display: grid;
  margin-left: auto;
  color: #111;
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1.35;
  text-align: right;
}

.header-contact a {
  color: #111;
}

.header-contact span {
  color: #111;
}

.sticky-mobile-actions {
  display: none;
}

.main-nav {
  position: static;
  z-index: 12;
  display: flex;
  flex-direction: row;
  align-items: center;
  min-width: 0;
  margin-left: 34px;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.main-nav.is-open {
  display: flex;
}

.main-nav a {
  padding: 12px 14px;
  color: var(--kumon-navy);
  font-size: 0.9rem;
  font-weight: 900;
}

.main-nav a:hover {
  background: var(--kumon-yellow);
  color: var(--kumon-navy);
}

.hero-yellow {
  position: relative;
  overflow: hidden;
  padding: 84px 0 96px;
  background: var(--kumon-yellow);
  border-bottom: 0;
}

.hero-yellow::before {
  position: absolute;
  z-index: 0;
  right: -90px;
  bottom: -210px;
  width: 540px;
  height: 540px;
  content: "";
  border: 72px solid rgba(244, 205, 72, 0.48);
  border-radius: 50%;
}

.hero-yellow::after {
  position: absolute;
  z-index: 0;
  right: 110px;
  top: 58px;
  width: 124px;
  height: 106px;
  content: "";
  background:
    linear-gradient(60deg, transparent 0 48%, var(--kumon-coral) 49% 100%) 0 0 / 58px 48px,
    linear-gradient(120deg, transparent 0 48%, var(--kumon-coral) 49% 100%) 0 0 / 58px 48px;
  opacity: 0.9;
}

.hero-grid {
  position: relative;
  z-index: 1;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 0.85fr);
  align-items: center;
}

.hero-copy h1 {
  max-width: 620px;
  color: var(--kumon-blue);
  font-size: clamp(2.2rem, 4.6vw, 4.25rem);
  font-weight: 900;
  line-height: 0.98;
}

.strong-lead {
  max-width: 540px;
  margin-top: 18px;
  color: var(--kumon-navy);
  font-size: 1.22rem;
  font-weight: 900;
  line-height: 1.15;
}

.hero-note {
  max-width: 540px;
  margin: 6px 0 0;
  color: #111;
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.25;
}

.hero-actions {
  margin-top: 28px;
}

.hero-visual {
  position: relative;
  align-self: end;
}

.hero-visual::before {
  position: absolute;
  top: -68px;
  left: -38px;
  width: 120px;
  height: 120px;
  content: "";
  border: 26px solid var(--kumon-purple-soft);
  border-radius: 50%;
}

.hero-visual::after {
  position: absolute;
  left: -70px;
  bottom: 18px;
  width: 96px;
  height: 48px;
  content: "";
  background: var(--kumon-teal);
  border-radius: 0 0 96px 96px;
}

.hero-visual img {
  position: relative;
  z-index: 1;
  width: min(100%, 510px);
  height: 390px;
  object-fit: cover;
  border-radius: 0;
  box-shadow: none;
}

.button {
  min-height: 44px;
  padding: 13px 26px;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0;
  white-space: nowrap;
}

.button.primary {
  background: var(--kumon-coral);
}

.button.secondary,
.button.secondary.filled {
  color: #fff;
  background: var(--kumon-purple);
  border-color: var(--kumon-purple);
}

.button.light {
  color: var(--kumon-purple);
  background: #fff;
  border-color: #fff;
}

.intro-band {
  position: relative;
  z-index: 2;
  width: min(100% - 32px, 980px);
  margin: -54px auto 0;
  padding: 0;
  background: transparent;
}

.intro-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 112px;
  padding: 28px 58px;
  background: var(--kumon-purple);
}

.intro-grid h2 {
  color: #fff;
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  font-weight: 900;
}

.program-section {
  padding: 88px 0;
}

.program-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 58px;
  align-items: center;
}

.program-row.reverse .section-heading {
  order: 1;
}

.program-image {
  position: relative;
}

.program-image::before {
  position: absolute;
  z-index: 0;
  content: "";
}

.shape-purple::before {
  top: -28px;
  left: -58px;
  width: 118px;
  height: 118px;
  border: 28px solid var(--kumon-purple-soft);
  border-radius: 50%;
}

.shape-blue::before {
  right: -58px;
  top: -58px;
  width: 150px;
  height: 150px;
  background: var(--kumon-blue);
  clip-path: polygon(56% 0, 100% 0, 44% 100%, 0 100%);
}

.program-image img {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 1.45 / 1;
  object-fit: cover;
}

.section-kicker {
  color: var(--kumon-blue);
  font-weight: 900;
}

.section-copy h2,
.section-heading h2 {
  color: var(--kumon-coral);
  font-size: clamp(2rem, 3.2vw, 3rem);
  font-weight: 900;
}

.section-heading {
  margin-bottom: 0;
}

.section-copy p,
.section-heading p {
  color: #111;
  font-size: 0.98rem;
  font-weight: 700;
}

.soft-band {
  background: #f7f4f3;
}

.services-summary {
  margin-top: 56px;
}

.stats-row div {
  background: var(--kumon-blue);
}

.service-card,
.feature-item {
  border-color: #dedbe8;
}

.benefits-section {
  background: #fff;
  text-align: center;
}

.section-heading.centered {
  max-width: none;
  margin: 0 auto 42px;
}

.section-heading.centered h2 {
  color: var(--kumon-blue);
  font-size: clamp(1.7rem, 2.7vw, 2.4rem);
  text-transform: uppercase;
}

.benefit-list {
  grid-template-columns: repeat(3, 1fr);
}

.benefit-item {
  border: 0;
  box-shadow: none;
}

.benefit-icon {
  display: inline-grid;
  width: 76px;
  height: 76px;
  place-items: center;
  margin-bottom: 18px;
  color: var(--kumon-blue);
  background: #fff3a0;
  border-radius: 50%;
}

.benefit-icon svg {
  margin: 0;
}

.gallery-section {
  background: #f7f4f3;
}

.gallery-section .section-heading h2 {
  color: var(--kumon-blue);
}

.about-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--kumon-purple-soft);
}

.about-strip > img {
  width: 100%;
  height: 360px;
  object-fit: cover;
}

.about-strip-copy {
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 56px;
  color: #fff;
  text-align: center;
}

.about-strip-copy h2 {
  color: #fff;
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 900;
}

.about-strip-copy p {
  max-width: 520px;
  color: #fff;
  font-weight: 700;
}

.contact-section {
  position: relative;
  background: #fff;
}

.contact-page .page-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 84% 16%, rgba(255, 227, 106, 0.95) 0 58px, transparent 59px),
    radial-gradient(circle at 13% 78%, rgba(69, 101, 177, 0.18) 0 120px, transparent 121px),
    linear-gradient(135deg, #d6ffd7 0%, #8be6a4 45%, #35b894 100%);
  border-bottom: 0;
}

.contact-page .page-hero::before,
.contact-page .page-hero::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.contact-page .page-hero::before {
  right: 9%;
  bottom: -70px;
  width: 210px;
  height: 210px;
  border: 34px solid rgba(70, 50, 124, 0.55);
  border-radius: 50%;
}

.contact-page .page-hero::after {
  left: 6%;
  top: 34px;
  width: 132px;
  height: 108px;
  background:
    linear-gradient(60deg, transparent 0 48%, var(--kumon-coral) 49% 100%) 0 0 / 44px 36px,
    linear-gradient(120deg, transparent 0 48%, var(--kumon-coral) 49% 100%) 0 0 / 44px 36px;
  opacity: 0.95;
}

.contact-page .page-hero .container {
  position: relative;
  z-index: 1;
}

.contact-page .page-hero .eyebrow {
  color: var(--kumon-purple);
}

.contact-page .page-hero h1 {
  color: var(--kumon-purple);
}

.contact-page .page-hero .lead {
  color: #123e34;
  font-weight: 800;
}

.philosophy-page .page-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 80% 14%, rgba(255, 227, 106, 0.92) 0 62px, transparent 63px),
    radial-gradient(circle at 17% 84%, rgba(70, 50, 124, 0.18) 0 126px, transparent 127px),
    linear-gradient(135deg, #ffe0a3 0%, #ffb15d 48%, #f56749 100%);
  border-bottom: 0;
}

.philosophy-page .page-hero::before,
.philosophy-page .page-hero::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.philosophy-page .page-hero::before {
  right: 8%;
  bottom: -82px;
  width: 230px;
  height: 230px;
  border: 36px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
}

.philosophy-page .page-hero::after {
  left: 6%;
  top: 36px;
  width: 144px;
  height: 120px;
  background:
    linear-gradient(60deg, transparent 0 48%, var(--kumon-purple) 49% 100%) 0 0 / 48px 40px,
    linear-gradient(120deg, transparent 0 48%, var(--kumon-purple) 49% 100%) 0 0 / 48px 40px;
  opacity: 0.88;
}

.philosophy-page .page-hero .container {
  position: relative;
  z-index: 1;
}

.philosophy-page .page-hero .eyebrow,
.philosophy-page .page-hero h1 {
  color: var(--kumon-purple);
}

.philosophy-page .page-hero .lead {
  color: #3f2414;
  font-weight: 800;
}

.gallery-page .page-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 18%, rgba(70, 50, 124, 0.2) 0 70px, transparent 71px),
    radial-gradient(circle at 12% 82%, rgba(55, 185, 169, 0.28) 0 130px, transparent 131px),
    linear-gradient(135deg, #fff1a3 0%, #ffe36a 46%, #ffc94d 100%);
  border-bottom: 0;
}

.gallery-page .page-hero::before,
.gallery-page .page-hero::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.gallery-page .page-hero::before {
  right: 8%;
  bottom: -82px;
  width: 230px;
  height: 230px;
  border: 36px solid rgba(245, 103, 73, 0.52);
  border-radius: 50%;
}

.gallery-page .page-hero::after {
  left: 6%;
  top: 38px;
  width: 144px;
  height: 120px;
  background:
    linear-gradient(60deg, transparent 0 48%, var(--kumon-purple) 49% 100%) 0 0 / 48px 40px,
    linear-gradient(120deg, transparent 0 48%, var(--kumon-purple) 49% 100%) 0 0 / 48px 40px;
  opacity: 0.72;
}

.gallery-page .page-hero .container {
  position: relative;
  z-index: 1;
}

.gallery-page .page-hero .eyebrow,
.gallery-page .page-hero h1 {
  color: var(--kumon-purple);
}

.gallery-page .page-hero .lead {
  color: #3d3211;
  font-weight: 800;
}

.contact-section::after {
  position: absolute;
  right: 8%;
  top: 20px;
  width: 100px;
  height: 90px;
  content: "";
  background:
    linear-gradient(60deg, transparent 0 48%, var(--kumon-yellow) 49% 100%) 0 0 / 46px 40px,
    linear-gradient(120deg, transparent 0 48%, var(--kumon-yellow) 49% 100%) 0 0 / 46px 40px;
}

.contact-copy h2 {
  color: var(--kumon-blue);
}

.contact-panel {
  border: 0;
}

.map-wrap iframe {
  box-shadow: none;
}

.site-footer {
  padding: 42px 0;
  background: var(--kumon-blue);
  text-align: center;
}

.footer-grid {
  justify-content: center;
  text-align: center;
}

@media (max-width: 980px) {
  .nav-shell {
    min-height: 92px;
  }

  .menu-toggle {
    display: inline-grid;
  }

  .header-contact {
    display: none;
  }

  .main-nav {
    position: absolute;
    top: 76px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    min-width: 250px;
    margin-left: 0;
    padding: 10px;
    background: #fff;
    border: 1px solid #dedbe8;
    box-shadow: 0 14px 30px rgba(38, 35, 95, 0.16);
  }

  .main-nav.is-open {
    display: flex;
  }

  .hero-yellow {
    padding: 52px 0 82px;
  }

  .hero-grid,
  .program-row,
  .about-strip {
    grid-template-columns: 1fr;
  }

  .hero-visual img {
    width: 100%;
  }

  .program-row.reverse .section-heading {
    order: 0;
  }
}

@media (max-width: 640px) {
  .brand img {
    width: 64px;
  }

  .brand strong {
    font-size: 1.05rem;
  }

  .hero-copy h1 {
    font-size: clamp(2rem, 10vw, 2.7rem);
    line-height: 1.02;
  }

  .hero-yellow::after {
    top: 76px;
    right: 18px;
    opacity: 0.34;
  }

  .strong-lead {
    font-size: 1.08rem;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-visual img {
    height: 270px;
  }

  .intro-grid {
    align-items: stretch;
    flex-direction: column;
    padding: 24px;
  }

  .benefit-list,
  .feature-list,
  .services-grid,
  .stats-row,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .about-strip-copy {
    padding: 42px 22px;
  }
}

/* Wider layout and larger type */
:root {
  --container: 1400px;
}

body {
  font-size: 18px;
}

.container {
  width: min(100% - 48px, var(--container));
}

.nav-shell {
  min-height: 112px;
}

.brand img {
  width: 150px;
}

.brand strong {
  font-size: 1.5rem;
}

.brand small {
  font-size: 0.95rem;
}

.main-nav {
  flex: 1;
  justify-content: center;
  min-width: 0;
  margin-left: 28px;
  gap: 6px;
}

.main-nav a {
  padding: 12px 12px;
  font-size: 1rem;
  white-space: nowrap;
}

.header-contact {
  flex: 0 0 170px;
  font-size: 0.88rem;
}

.hero-yellow {
  padding: 96px 0 112px;
}

.hero-grid {
  grid-template-columns: minmax(0, 1fr) minmax(480px, 0.9fr);
  gap: 72px;
}

.hero-copy h1 {
  max-width: 760px;
  font-size: 4.4rem;
}

.hero-copy,
.section-copy,
.section-heading,
.contact-copy {
  min-width: 0;
}

.hero-copy {
  width: 100%;
}

.hero-copy h1,
.strong-lead,
.hero-note {
  overflow-wrap: normal;
  word-break: normal;
}

.strong-lead,
.hero-note {
  display: block;
  width: min(100%, 680px);
}

.strong-lead {
  max-width: 680px;
  font-size: 1.55rem;
}

.hero-note {
  max-width: 680px;
  font-size: 1.24rem;
}

.hero-visual img {
  width: min(100%, 610px);
  height: 460px;
}

.intro-band {
  width: min(100% - 48px, 1120px);
}

.intro-grid {
  min-height: 132px;
  padding: 34px 70px;
}

.intro-grid h2 {
  font-size: clamp(2rem, 3vw, 2.7rem);
}

.section {
  padding: 104px 0;
}

.program-section {
  padding: 104px 0;
}

.program-row {
  gap: 76px;
}

.section-copy h2,
.section-heading h2 {
  font-size: clamp(2.65rem, 4vw, 4rem);
}

.section-copy p,
.section-heading p,
.contact-copy p,
.rich-text p {
  font-size: 1.16rem;
}

.section-kicker,
.eyebrow {
  font-size: 0.95rem;
}

h3 {
  font-size: 1.25rem;
}

.button {
  min-height: 52px;
  padding: 15px 32px;
  font-size: 0.95rem;
}

.stats-row strong {
  font-size: clamp(2.15rem, 3.3vw, 3rem);
}

.stats-row span,
.feature-item p,
.service-card p {
  font-size: 1rem;
}

.service-card,
.feature-item {
  padding: 30px;
}

.gallery-grid {
  gap: 14px;
}

.about-strip > img {
  height: 430px;
}

.about-strip-copy h2 {
  font-size: clamp(2.6rem, 3.7vw, 4rem);
}

@media (max-width: 1180px) {
  .brand img {
    width: 136px;
  }

  .main-nav {
    flex: 1;
    margin-left: 24px;
    gap: 4px;
  }

  .main-nav a {
    padding: 12px 10px;
    font-size: 0.95rem;
  }

  .header-contact {
    font-size: 0.78rem;
  }
}

@media (max-width: 980px) {
  .container {
    width: min(100% - 32px, var(--container));
  }

  .brand img {
    width: 118px;
  }

  .hero-copy h1 {
    font-size: clamp(2.8rem, 9vw, 4.5rem);
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .program-row,
  .about-strip {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .container {
    width: min(100% - 24px, var(--container));
  }

  .nav-shell {
    min-height: 92px;
  }

  .brand img {
    width: 64px;
  }

  .brand small {
    font-size: 0.82rem;
  }

  .hero-copy h1 {
    max-width: 100%;
    font-size: clamp(2.25rem, 9vw, 2.85rem);
    overflow-wrap: normal;
    word-break: normal;
  }

  .strong-lead {
    font-size: 1.16rem;
    overflow-wrap: normal;
    word-break: normal;
  }

  .hero-note {
    font-size: 1.02rem;
    overflow-wrap: normal;
    word-break: normal;
  }

  .contact-page .page-hero,
  .philosophy-page .page-hero,
  .gallery-page .page-hero {
    min-height: 0;
    padding: 54px 0 42px;
    background-size: auto;
  }

  .contact-page .page-hero {
    background:
      radial-gradient(circle at 92% 10%, rgba(255, 227, 106, 0.86) 0 38px, transparent 39px),
      radial-gradient(circle at 6% 92%, rgba(69, 101, 177, 0.14) 0 82px, transparent 83px),
      linear-gradient(145deg, #dcffde 0%, #98e7ad 56%, #3ac09b 100%);
  }

  .philosophy-page .page-hero {
    background:
      radial-gradient(circle at 92% 10%, rgba(255, 227, 106, 0.82) 0 40px, transparent 41px),
      radial-gradient(circle at 4% 94%, rgba(70, 50, 124, 0.13) 0 86px, transparent 87px),
      linear-gradient(145deg, #ffe4b0 0%, #ffb766 58%, #f56b4f 100%);
  }

  .gallery-page .page-hero {
    background:
      radial-gradient(circle at 92% 10%, rgba(70, 50, 124, 0.16) 0 42px, transparent 43px),
      radial-gradient(circle at 4% 94%, rgba(55, 185, 169, 0.18) 0 86px, transparent 87px),
      linear-gradient(145deg, #fff5b8 0%, #ffe36a 58%, #ffc94d 100%);
  }

  .contact-page .page-hero::before,
  .philosophy-page .page-hero::before,
  .gallery-page .page-hero::before {
    right: -74px;
    bottom: -76px;
    width: 150px;
    height: 150px;
    border-width: 22px;
    opacity: 0.55;
  }

  .contact-page .page-hero::after,
  .philosophy-page .page-hero::after,
  .gallery-page .page-hero::after {
    left: auto;
    right: 18px;
    top: auto;
    bottom: 20px;
    width: 72px;
    height: 60px;
    background-size: 24px 20px, 24px 20px;
    opacity: 0.5;
  }

  .contact-page .page-hero h1,
  .philosophy-page .page-hero h1,
  .gallery-page .page-hero h1 {
    max-width: 94%;
    font-size: clamp(2.25rem, 11vw, 3rem);
    line-height: 1.04;
  }

  .contact-page .page-hero .lead,
  .philosophy-page .page-hero .lead,
  .gallery-page .page-hero .lead {
    max-width: 94%;
    font-size: 1.05rem;
  }

  .section-copy h2,
  .section-heading h2 {
    font-size: clamp(2.1rem, 10vw, 2.8rem);
  }
}

/* Header becomes menu-only after scroll */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  transition: background 180ms ease, box-shadow 180ms ease;
}

body.has-scrolled .site-header {
  background: var(--kumon-purple);
  box-shadow: 0 8px 20px rgba(38, 35, 95, 0.18);
}

body.has-scrolled .site-header .nav-shell {
  justify-content: center;
  min-height: 64px;
}

body.has-scrolled .site-header .brand,
body.has-scrolled .site-header .header-contact {
  display: none;
}

body.has-scrolled .site-header .main-nav {
  flex: 0 1 auto;
  justify-content: center;
  margin-left: 0;
}

body.has-scrolled .site-header .main-nav a {
  color: #fff;
}

body.has-scrolled .site-header .main-nav a:hover {
  color: var(--kumon-purple);
  background: #fff;
}

@media (max-width: 980px) {
  body.has-scrolled .site-header .nav-shell {
    justify-content: space-between;
    min-height: 58px;
  }

  body.has-scrolled .site-header .menu-toggle {
    color: #fff;
  }

  body.has-scrolled .site-header .sticky-mobile-actions {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    margin-left: auto;
  }

  body.has-scrolled .site-header .sticky-phone {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    gap: 6px;
    padding: 0 10px;
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
    font-size: 0.72rem;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
  }

  body.has-scrolled .site-header .sticky-phone svg {
    width: 15px;
    height: 15px;
    flex: 0 0 auto;
  }

  body.has-scrolled .site-header .sticky-phone strong {
    color: #fff;
    font-size: 0.78rem;
  }

  body.has-scrolled .site-header .phone-label {
    opacity: 0.9;
  }

  body.has-scrolled .site-header .sticky-social {
    display: inline-grid;
    width: 34px;
    height: 34px;
    place-items: center;
    color: var(--kumon-purple);
    background: #fff;
    border-radius: 50%;
    font-family: Manrope, system-ui, sans-serif;
    font-size: 1.2rem;
    font-weight: 900;
    line-height: 1;
  }

  body.has-scrolled .site-header .sticky-social span {
    display: none;
  }

  body.has-scrolled .site-header .sticky-meta {
    color: #fff;
    background: var(--kumon-coral);
  }

  body.has-scrolled .site-header .main-nav {
    top: 58px;
    background: var(--kumon-purple);
    border-color: rgba(255, 255, 255, 0.24);
  }

  body.has-scrolled .site-header .main-nav a {
    color: #fff;
  }

  body.has-scrolled .site-header .main-nav a:hover {
    color: var(--kumon-purple);
    background: #fff;
  }
}

@media (max-width: 430px) {
  body.has-scrolled .site-header .sticky-mobile-actions {
    gap: 5px;
  }

  body.has-scrolled .site-header .sticky-phone {
    padding: 0 8px;
    font-size: 0.7rem;
  }

  body.has-scrolled .site-header .phone-label {
    display: none;
  }

  body.has-scrolled .site-header .sticky-social {
    width: 32px;
    height: 32px;
  }
}
