/* ======================================================================
   Discovery Nest Early Learning Center — Stylesheet
   Warm, bright, professional. Brand drawn from the nest logo:
   deep blue figures + rainbow nest arcs (red/orange/yellow/green/blue/plum).
   ====================================================================== */

/* ---------- 0. SELF-HOSTED FONTS ----------
   Fraunces + Nunito Sans, latin subset, served from our own origin
   (no third-party font CDN). Fraunces and Nunito Sans (upright) are
   variable fonts, so one file spans the full weight range per style. */
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("/assets/fonts/fraunces-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 500 700;
  font-display: swap;
  src: url("/assets/fonts/fraunces-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Nunito Sans";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/assets/fonts/nunitosans-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Nunito Sans";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/nunitosans-italic.woff") format("woff");
}

/* ---------- 1. DESIGN TOKENS ---------- */
:root {
  /* Palette */
  --cream: #fdf9f2;
  --sand: #f6eede;
  --sand-deep: #efe3cc;
  --white: #ffffff;
  --ink: #23304a;
  --ink-soft: #4c5a74;
  --ink-faint: #8a94a8;
  --line: #e8dfcd;

  --blue: #2357a8;
  --blue-deep: #173e7e;
  --blue-soft: #e3ecf9;
  --sky: #2f9db3;
  --sky-soft: #e0f2f5;
  --sun: #f0b53c;
  --sun-soft: #fbeed3;
  --coral: #e05a3f;
  --coral-soft: #fae4de;
  --leaf: #55a05e;
  --leaf-soft: #e2f0e3;
  --plum: #8e5ba6;
  --plum-soft: #efe6f4;

  /* Rainbow ribbon (logo arcs) */
  --ribbon: linear-gradient(
    90deg,
    var(--coral) 0 20%,
    #ef8b3b 20% 40%,
    var(--sun) 40% 60%,
    var(--leaf) 60% 80%,
    var(--blue) 80% 100%
  );

  /* Typography */
  --font-display: "Fraunces", "Georgia", "Times New Roman", serif;
  --font-body:
    "Nunito Sans", -apple-system, "Segoe UI", "Helvetica Neue", Arial,
    sans-serif;

  /* Layout */
  --maxw: 1200px;
  --maxw-prose: 720px;
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-blob: 58% 42% 44% 56% / 52% 48% 52% 48%;
  --shadow-sm: 0 2px 10px rgba(35, 48, 74, 0.07);
  --shadow-md: 0 10px 34px rgba(35, 48, 74, 0.11);
  --shadow-lg: 0 24px 60px rgba(35, 48, 74, 0.16);
  --header-h: 84px;

  color-scheme: light;
}

/* ---------- 2. RESET ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

ul,
ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: var(--sun-soft);
  color: var(--ink);
}

/* ---------- 3. TYPE SCALE ---------- */
h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.5rem, 5.4vw, 4.1rem);
}

h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 4px;
  border-radius: 4px;
  background: var(--ribbon);
}

.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--ink-soft);
  max-width: var(--maxw-prose);
}

/* ---------- 4. LAYOUT HELPERS ---------- */
.wrap {
  width: min(var(--maxw), 92vw);
  margin-inline: auto;
}

section {
  position: relative;
}

.section-pad {
  padding-block: clamp(4rem, 8vw, 6.5rem);
}

.section-head {
  display: grid;
  gap: 1rem;
  max-width: 820px;
  margin-bottom: clamp(2.2rem, 4vw, 3.4rem);
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
  justify-items: center;
}

/* Rainbow ribbon accent bar */
.ribbon {
  height: 6px;
  border-radius: 6px;
  background: var(--ribbon);
  border: 0;
  margin: 0;
}

/* ---------- 5. BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.7rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: 1rem;
  line-height: 1.2;
  white-space: nowrap;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    background-color 0.22s ease,
    color 0.22s ease;
  will-change: transform;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 8px 22px rgba(35, 87, 168, 0.32);
}

.btn-primary:hover {
  background: var(--blue-deep);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(35, 87, 168, 0.4);
}

.btn-sun {
  background: var(--sun);
  color: var(--ink);
  box-shadow: 0 8px 22px rgba(240, 181, 60, 0.38);
}

.btn-sun:hover {
  background: #e5a827;
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--blue);
  box-shadow: inset 0 0 0 2px var(--blue);
}

.btn-ghost:hover {
  background: var(--blue);
  color: #fff;
  transform: translateY(-2px);
}

.btn-light {
  background: #fff;
  color: var(--blue-deep);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
}

.btn-light:hover {
  transform: translateY(-2px);
  background: var(--sun);
  color: var(--ink);
}

/* ---------- 6. HEADER ---------- */
header.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(253, 249, 242, 0.86);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  transition: box-shadow 0.3s ease, background 0.3s ease;
}

header.site-header.scrolled {
  box-shadow: 0 6px 24px rgba(35, 48, 74, 0.09);
  background: rgba(253, 249, 242, 0.96);
}

.header-inner {
  width: min(var(--maxw), 94vw);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
}

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

.brand-name {
  display: grid;
  line-height: 1.05;
}

.brand-name b {
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 700;
  color: var(--blue-deep);
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.brand-name span {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
  white-space: nowrap;
}

nav.primary {
  display: flex;
  align-items: center;
}

nav.primary > ul {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

nav.primary > ul > li {
  position: relative;
}

nav.primary a {
  display: inline-block;
  padding: 0.55rem 0.85rem;
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--ink-soft);
  border-radius: 999px;
  transition: color 0.2s ease, background-color 0.2s ease;
}

nav.primary a:hover,
nav.primary a[aria-current="page"] {
  color: var(--blue-deep);
  background: var(--blue-soft);
}

/* dropdown */
nav.primary .has-dropdown > a::after {
  content: "";
  display: inline-block;
  margin-left: 0.45rem;
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}

nav.primary .dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translate(-50%, 8px);
  min-width: 220px;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 0.55rem;
  display: grid;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
}

nav.primary .dropdown::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 12px;
}

nav.primary .has-dropdown:hover .dropdown,
nav.primary .has-dropdown:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

nav.primary .dropdown a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.8rem;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex: none;
}

.dot-sky {
  background: var(--sky);
}

.dot-sun {
  background: var(--sun);
}

.dot-leaf {
  background: var(--leaf);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.header-cta .btn {
  padding: 0.62rem 1.25rem;
  font-size: 0.92rem;
}

/* burger */
.nav-toggle {
  display: none;
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--blue-soft);
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 20px;
  height: 2.4px;
  border-radius: 2px;
  background: var(--blue-deep);
  transform: translateX(-50%);
  transition: transform 0.3s ease, opacity 0.3s ease, top 0.3s ease;
}

.nav-toggle span {
  top: 50%;
  margin-top: -1px;
}

.nav-toggle span::before {
  top: -7px;
}

.nav-toggle span::after {
  top: 7px;
}

.nav-toggle[aria-expanded="true"] span {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] span::before {
  top: 0;
  transform: translateX(-50%) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span::after {
  top: 0;
  transform: translateX(-50%) rotate(-45deg);
}

@media (max-width: 1020px) {
  .nav-toggle {
    display: block;
  }

  .header-cta .btn-ghost {
    display: none;
  }

  nav.primary {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--cream);
    box-shadow: 0 30px 40px rgba(35, 48, 74, 0.14);
    padding: 1rem 4vw 1.6rem;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.28s ease, transform 0.28s ease, visibility 0.28s;
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
  }

  nav.primary.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  nav.primary > ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
  }

  nav.primary a {
    padding: 0.85rem 1rem;
    font-size: 1.08rem;
    border-radius: var(--radius-sm);
  }

  nav.primary .has-dropdown > a::after {
    display: none;
  }

  nav.primary .dropdown {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    background: transparent;
    padding: 0 0 0 1.1rem;
  }
}

@media (max-width: 560px) {
  .brand-name span {
    display: none;
  }

  .brand img {
    height: 40px;
  }

  .header-cta .btn {
    padding: 0.55rem 1rem;
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .brand-name {
    display: none;
  }
}

/* ---------- 7. HERO ---------- */
.hero {
  padding-top: calc(var(--header-h) + clamp(2.4rem, 6vw, 5rem));
  padding-bottom: clamp(3rem, 7vw, 5.5rem);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.hero-copy {
  display: grid;
  gap: 1.4rem;
  justify-items: start;
}

.hero-copy h1 em {
  font-style: italic;
  font-weight: 600;
  color: var(--blue);
}

.hero-copy .lead {
  font-size: clamp(1.08rem, 1.7vw, 1.3rem);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 0.4rem;
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.6rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.42rem 0.95rem;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--ink-soft);
  box-shadow: var(--shadow-sm);
}

.chip svg {
  width: 15px;
  height: 15px;
  flex: none;
}

/* collage */
.hero-scene {
  position: relative;
  min-height: 480px;
}

.hero-blob {
  position: absolute;
  inset: -6% -10%;
  z-index: 0;
  color: var(--sand);
}

.hero-photo {
  position: absolute;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 6px solid #fff;
  background: var(--sand);
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-photo-a {
  width: 58%;
  aspect-ratio: 4 / 4.6;
  left: 2%;
  top: 4%;
  border-radius: var(--radius-blob);
  z-index: 2;
}

.hero-photo-b {
  width: 46%;
  aspect-ratio: 4 / 4.2;
  right: 0;
  top: 30%;
  border-radius: 46% 54% 55% 45% / 45% 48% 52% 55%;
  z-index: 3;
}

.hero-photo-c {
  width: 38%;
  aspect-ratio: 1;
  left: 16%;
  bottom: -2%;
  border-radius: 50%;
  z-index: 1;
}

.hero-badge {
  position: absolute;
  z-index: 4;
  right: 6%;
  top: 6%;
  width: 108px;
  height: 108px;
  border-radius: 50%;
  overflow: hidden;
  border: 5px solid #fff;
  box-shadow: var(--shadow-md);
  background: #fff;
}

.hero-badge img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* floating doodles */
.doodle {
  position: absolute;
  z-index: 4;
  pointer-events: none;
}

.float-a {
  animation: floaty 5.5s ease-in-out infinite;
}

.float-b {
  animation: floaty 6.5s ease-in-out 0.8s infinite;
}

.float-c {
  animation: floaty 7.2s ease-in-out 1.6s infinite;
}

@keyframes floaty {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-13px) rotate(4deg);
  }
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-scene {
    min-height: 0;
    aspect-ratio: 1.05;
    max-width: 560px;
    margin-inline: auto;
    width: 100%;
  }
}

/* ---------- 8. WAVE DIVIDERS ---------- */
.wave {
  display: block;
  width: 100%;
  height: clamp(40px, 7vw, 90px);
}

/* ---------- 9. TRUST BAR ---------- */
.trust {
  background: var(--sand);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  padding-block: clamp(2.4rem, 4.5vw, 3.6rem);
}

.trust-item {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 0.35rem;
}

.trust-item .t-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-bottom: 0.3rem;
}

.trust-item .t-icon svg {
  width: 26px;
  height: 26px;
}

.trust-item b {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
}

.trust-item span {
  font-size: 0.9rem;
  color: var(--ink-soft);
  max-width: 24ch;
}

.trust-item a {
  text-decoration: underline;
  text-decoration-color: var(--sun);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

@media (max-width: 860px) {
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 1rem;
  }
}

/* ---------- 10. MISSION / ARC DRAW ---------- */
.mission {
  background: var(--sand);
  text-align: center;
}

.mission-inner {
  max-width: 900px;
  margin-inline: auto;
  display: grid;
  justify-items: center;
  gap: 1.6rem;
  padding-bottom: clamp(3.5rem, 7vw, 6rem);
}

.mission blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3.2vw, 2.5rem);
  font-weight: 500;
  font-style: italic;
  line-height: 1.35;
  color: var(--blue-deep);
  text-wrap: balance;
}

.mission blockquote strong {
  font-weight: 700;
  color: var(--coral);
}

.arc-draw {
  width: min(360px, 60vw);
  height: auto;
  overflow: visible;
}

.arc-draw path {
  fill: none;
  stroke-width: 10;
  stroke-linecap: round;
}

.arcs-on .arc-draw path {
  animation: arcdraw 1.1s cubic-bezier(0.6, 0, 0.3, 1) forwards;
}

.arc-draw path:nth-child(1) {
  animation-delay: 0s;
}
.arc-draw path:nth-child(2) {
  animation-delay: 0.15s;
}
.arc-draw path:nth-child(3) {
  animation-delay: 0.3s;
}
.arc-draw path:nth-child(4) {
  animation-delay: 0.45s;
}
.arc-draw path:nth-child(5) {
  animation-delay: 0.6s;
}

@keyframes arcdraw {
  to {
    stroke-dashoffset: 0;
  }
}

/* ---------- 11. PILLARS ---------- */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.2rem, 2.5vw, 2rem);
}

.pillar {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(1.8rem, 3vw, 2.5rem);
  display: grid;
  gap: 0.9rem;
  align-content: start;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.pillar:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.pillar-icon {
  width: 64px;
  height: 64px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  margin-bottom: 0.4rem;
}

.pillar-icon svg {
  width: 32px;
  height: 32px;
}

.pillar p {
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.bg-sky {
  background: var(--sky-soft);
  color: var(--sky);
}

.bg-sun {
  background: var(--sun-soft);
  color: #c98f1a;
}

.bg-coral {
  background: var(--coral-soft);
  color: var(--coral);
}

.bg-leaf {
  background: var(--leaf-soft);
  color: var(--leaf);
}

.bg-plum {
  background: var(--plum-soft);
  color: var(--plum);
}

.bg-blue {
  background: var(--blue-soft);
  color: var(--blue);
}

@media (max-width: 860px) {
  .pillars-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- 12. RHYTHM (day timeline) ---------- */
.rhythm {
  background: var(--blue-deep);
  color: #f2f6fd;
}

.rhythm .eyebrow {
  color: var(--sun);
}

.rhythm h2 {
  color: #fff;
}

.rhythm .lead {
  color: #b9c9e4;
}

.rhythm-track {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.4rem;
  position: relative;
  margin-top: 1rem;
}

.rhythm-track::before {
  content: "";
  position: absolute;
  top: 34px;
  left: 8%;
  right: 8%;
  height: 3px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.16);
}

.rhythm-step {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 0.7rem;
  position: relative;
}

.rhythm-step .r-icon {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.09);
  border: 2px solid rgba(255, 255, 255, 0.22);
  transition: transform 0.25s ease, background-color 0.25s ease;
}

.rhythm-step:hover .r-icon {
  transform: translateY(-4px) scale(1.06);
  background: rgba(255, 255, 255, 0.16);
}

.rhythm-step .r-icon svg {
  width: 30px;
  height: 30px;
}

.rhythm-step b {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
}

.rhythm-step p {
  font-size: 0.88rem;
  color: #b9c9e4;
  max-width: 24ch;
}

@media (max-width: 960px) {
  .rhythm-track {
    grid-template-columns: 1fr;
    gap: 0;
    justify-items: start;
  }

  .rhythm-track::before {
    top: 0;
    bottom: 0;
    left: 33px;
    right: auto;
    width: 3px;
    height: auto;
  }

  .rhythm-step {
    grid-template-columns: 68px 1fr;
    text-align: left;
    justify-items: start;
    align-items: start;
    gap: 0.35rem 1.2rem;
    padding-block: 1rem;
  }

  .rhythm-step .r-icon {
    grid-row: span 2;
    background: var(--blue-deep);
  }

  .rhythm-step p {
    max-width: none;
  }
}

/* ---------- 13. PROGRAMS ---------- */
.programs {
  background: var(--cream);
}

.programs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.2rem, 2.5vw, 2rem);
}

.program-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  display: grid;
  grid-template-rows: auto 1fr;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.program-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}

.program-media {
  position: relative;
  aspect-ratio: 16 / 10.5;
  overflow: hidden;
}

.program-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.program-card:hover .program-media img {
  transform: scale(1.06);
}

.age-tag {
  position: absolute;
  left: 14px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-sm);
}

.program-body {
  padding: 1.6rem 1.7rem 1.9rem;
  display: grid;
  gap: 0.75rem;
  align-content: start;
}

.program-body p {
  color: var(--ink-soft);
  font-size: 0.97rem;
}

.text-link {
  font-weight: 800;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.35rem;
}

.text-link svg {
  width: 17px;
  height: 17px;
  transition: transform 0.22s ease;
}

.text-link:hover svg {
  transform: translateX(4px);
}

@media (max-width: 900px) {
  .programs-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-inline: auto;
  }
}

/* ---------- 14. CURRICULUM SPLIT ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.2rem, 5vw, 4.5rem);
  align-items: center;
}

.split-copy {
  display: grid;
  gap: 1.1rem;
  justify-items: start;
}

.split-copy p {
  color: var(--ink-soft);
}

.split-media {
  position: relative;
}

.split-media .photo-main {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 6px solid #fff;
}

.split-media .photo-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.split-media .photo-inset {
  position: absolute;
  width: 46%;
  bottom: -9%;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 5px solid #fff;
}

.split-media.inset-left .photo-inset {
  left: -7%;
}

.split-media.inset-right .photo-inset {
  right: -6%;
}

.domain-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.domain-chips .chip {
  font-size: 0.83rem;
}

.domain-chips .chip i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

@media (max-width: 900px) {
  .split {
    grid-template-columns: 1fr;
  }

  .split-media {
    order: -1;
    max-width: 520px;
    width: 100%;
    margin-inline: auto;
    margin-bottom: 1.5rem;
  }
}

/* ---------- 15. TEAM ---------- */
.team-strip {
  background: var(--sand);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 420px));
  justify-content: center;
  gap: clamp(1.4rem, 3vw, 2.6rem);
}

.team-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.5rem 1.9rem;
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 0.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.team-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.team-card .portrait {
  width: 148px;
  height: 148px;
  border-radius: 50%;
  overflow: hidden;
  border: 5px solid var(--sun-soft);
  box-shadow: var(--shadow-sm);
  margin-bottom: 0.6rem;
}

.team-card .portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-card .role {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--coral);
}

.team-card p {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

@media (max-width: 760px) {
  .team-grid {
    grid-template-columns: minmax(0, 420px);
  }
}

/* ---------- 16. GALLERY MARQUEE ---------- */
.gallery {
  padding-block: clamp(3rem, 6vw, 5rem);
  overflow: hidden;
}

.marquee {
  display: flex;
  gap: 1.2rem;
  width: max-content;
  animation: marquee 46s linear infinite;
}

.marquee:hover {
  animation-play-state: paused;
}

.marquee figure {
  margin: 0;
  width: clamp(220px, 24vw, 320px);
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 4px solid #fff;
  flex: none;
}

.marquee img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* ---------- 17. CTA BAND ---------- */
.cta-band {
  background: var(--blue);
  color: #fff;
  overflow: hidden;
}

.cta-inner {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 1.3rem;
  padding-block: clamp(3.5rem, 7vw, 5.5rem);
}

.cta-inner h2 {
  color: #fff;
  max-width: 18ch;
}

.cta-inner p {
  color: #cfdcf2;
  max-width: 52ch;
  font-size: 1.05rem;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  justify-content: center;
}

.cta-band .bg-arcs {
  position: absolute;
  inset: auto -4% -22% -4%;
  opacity: 0.16;
  pointer-events: none;
}

/* ---------- 18. FOOTER ---------- */
footer.site-footer {
  background: #16233c;
  color: #c4cfe2;
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-block: clamp(3rem, 5vw, 4.2rem) 2.2rem;
}

.footer-brand {
  display: grid;
  gap: 1rem;
  justify-items: start;
  align-content: start;
}

.footer-brand img {
  height: 56px;
  width: auto;
}

.footer-brand p {
  max-width: 34ch;
  font-style: italic;
  color: #97a6c2;
}

footer h4 {
  font-family: var(--font-display);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-col ul {
  display: grid;
  gap: 0.55rem;
}

.footer-col a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--sun);
}

.footer-col li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
}

.footer-col li svg {
  width: 17px;
  height: 17px;
  flex: none;
  margin-top: 4px;
  color: var(--sun);
}

.footer-social {
  display: flex;
  gap: 0.7rem;
  margin-top: 1rem;
}

.footer-social a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
  transition: background-color 0.22s ease, transform 0.22s ease;
}

.footer-social a:hover {
  background: var(--blue);
  transform: translateY(-3px);
}

.footer-social svg {
  width: 19px;
  height: 19px;
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-block: 1.3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #8291ad;
}

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

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

/* ---------- 19. SUBPAGE HERO ---------- */
.page-hero {
  padding-top: calc(var(--header-h) + clamp(2.2rem, 5vw, 4rem));
  padding-bottom: clamp(2.4rem, 5vw, 4rem);
  position: relative;
  overflow: hidden;
}

.page-hero .wrap {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1.1rem;
  justify-items: start;
  max-width: min(880px, 92vw);
}

.page-hero .lead {
  font-size: 1.12rem;
}

.page-hero .bg-blob {
  position: absolute;
  top: -30%;
  right: -14%;
  width: 56vw;
  max-width: 800px;
  opacity: 0.55;
  pointer-events: none;
}

/* ---------- 20. PROSE / ARTICLE ---------- */
.prose {
  max-width: var(--maxw-prose);
  display: grid;
  gap: 1.2rem;
}

.prose p {
  color: var(--ink-soft);
  font-size: 1.06rem;
}

.prose p:first-of-type::first-letter {
  font-family: var(--font-display);
  font-size: 3.4em;
  font-weight: 600;
  float: left;
  line-height: 0.82;
  padding-right: 0.14em;
  color: var(--blue);
}

.highlight-list {
  display: grid;
  gap: 0.9rem;
  margin-top: 0.4rem;
}

.highlight-list li {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1rem 1.2rem;
  box-shadow: var(--shadow-sm);
}

.highlight-list li svg {
  width: 22px;
  height: 22px;
  flex: none;
  margin-top: 3px;
}

.highlight-list b {
  display: block;
}

.highlight-list span {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* photo duo on program pages */
.photo-duo {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 1.2rem;
  align-items: stretch;
}

.photo-duo figure {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 5px solid #fff;
  box-shadow: var(--shadow-md);
  min-height: 300px;
}

.photo-duo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 720px) {
  .photo-duo {
    grid-template-columns: 1fr;
  }
}

/* prev / next program nav */
.room-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

.room-nav a {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.2rem 1.4rem;
  display: grid;
  gap: 0.2rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.room-nav a:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.room-nav small {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.room-nav b {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--blue-deep);
}

.room-nav a.next {
  text-align: right;
  justify-items: end;
}

/* ---------- 21. CONTACT ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(1.6rem, 4vw, 3.2rem);
  align-items: start;
}

.info-card {
  background: var(--blue-deep);
  color: #eaf0fa;
  border-radius: var(--radius-lg);
  padding: clamp(1.8rem, 3vw, 2.4rem);
  display: grid;
  gap: 1.15rem;
  position: relative;
  overflow: hidden;
}

.info-card h3 {
  color: #fff;
  font-size: 1.45rem;
}

.info-card ul {
  display: grid;
  gap: 0.95rem;
}

.info-card li {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
}

.info-card li svg {
  width: 19px;
  height: 19px;
  flex: none;
  margin-top: 4px;
  color: var(--sun);
}

.info-card a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.info-card .socials {
  display: flex;
  gap: 0.7rem;
  margin-top: 0.3rem;
}

.info-card .socials a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.12);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.info-card .socials a:hover {
  background: var(--sun);
  color: var(--ink);
  transform: translateY(-3px);
  text-decoration: none;
}

.info-card .socials svg {
  width: 19px;
  height: 19px;
}

.contact-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.8rem, 3vw, 2.4rem);
  box-shadow: var(--shadow-sm);
  display: grid;
  gap: 1.1rem;
}

.field {
  display: grid;
  gap: 0.35rem;
}

.field label {
  font-weight: 800;
  font-size: 0.88rem;
}

.field input,
.field textarea {
  font: inherit;
  color: var(--ink);
  background: var(--cream);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.8rem 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-soft);
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}

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

.form-status {
  display: none;
  background: var(--leaf-soft);
  color: #2c6b34;
  font-weight: 700;
  border-radius: var(--radius-sm);
  padding: 0.85rem 1.1rem;
}

.form-status.on {
  display: block;
}

.map-embed {
  margin-top: clamp(2rem, 4vw, 3rem);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 6px solid #fff;
  box-shadow: var(--shadow-md);
  line-height: 0;
}

.map-embed iframe {
  width: 100%;
  height: 380px;
  border: 0;
}

@media (max-width: 860px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

/* ---------- 22. WAITLIST ---------- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  counter-reset: step;
}

.step-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  display: grid;
  gap: 0.6rem;
  align-content: start;
  box-shadow: var(--shadow-sm);
  position: relative;
  counter-increment: step;
}

.step-card::before {
  content: counter(step);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-bottom: 0.4rem;
}

.step-card:nth-child(1)::before {
  background: var(--sky-soft);
  color: var(--sky);
}

.step-card:nth-child(2)::before {
  background: var(--sun-soft);
  color: #c98f1a;
}

.step-card:nth-child(3)::before {
  background: var(--leaf-soft);
  color: var(--leaf);
}

.step-card p {
  color: var(--ink-soft);
  font-size: 0.97rem;
}

.notice {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  background: var(--sun-soft);
  border: 1px solid #ecd9a8;
  border-radius: var(--radius-md);
  padding: 1.1rem 1.3rem;
  color: #6e5613;
  font-weight: 600;
  max-width: 760px;
}

.notice svg {
  width: 22px;
  height: 22px;
  flex: none;
  margin-top: 3px;
  color: #c98f1a;
}

@media (max-width: 860px) {
  .steps-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- 23. SCROLL REVEAL ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0s);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- 24. REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .marquee {
    animation: none;
    flex-wrap: wrap;
    width: 100%;
    justify-content: center;
  }

  .arc-draw path {
    stroke-dashoffset: 0 !important;
  }
}
