/* =========================================================
   Small Wonders Preschool — homepage styles
   Palette: brand teal + Kolkata marigold, painted "growing chart" bands
   ========================================================= */

:root {
  --paper: #f6fafa;
  --white: #ffffff;
  --ink: #173f47;
  --ink-soft: #4a6a71;
  --teal: #50b6bb;          /* brand (from logo) — fills only, not text on white */
  --teal-deep: #1f7480;     /* links / text accents (AA on white) */
  --teal-wash: #e3f3f5;
  --marigold: #ffb81f;
  --marigold-deep: #8a5a00;
  --line: #d6e6e8;

  /* growing-chart bands */
  --band-1: #a6e1e8;
  --band-2: #ffd97e;
  --band-3: #ffbfb3;
  --band-4: #c3e79a;
  --band-5: #c9c3ff;

  --font-display: "Baloo 2", "Trebuchet MS", system-ui, sans-serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --wrap: 1180px;
  --header-h: 72px;
  --gutter: clamp(1.1rem, 4vw, 2rem);
  --section-y: clamp(3.5rem, 8vw, 6.5rem);
  --radius-s: 10px;
  --radius-m: 18px;
  --radius-l: 28px;
  --corner: 44px;           /* photo frames: curved top-right + bottom-left */
  --frame: 0 var(--corner) 0 var(--corner);

  /* logo star colours */
  --star-pink: #ef5b83;
  --star-orange: #f58a2e;
  --star-green: #9cc83c;
  --star-blue: #3fa9e0;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: var(--teal-deep); text-decoration: none; }
a:hover { color: var(--ink); }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.12;
  margin: 0 0 .5em;
  font-weight: 700;
  letter-spacing: -0.005em;
}
h1 { font-size: clamp(2.4rem, 5.6vw, 4.1rem); }
h2 { font-size: clamp(1.9rem, 3.8vw, 2.75rem); }
h3 { font-size: 1.45rem; font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }
p { margin: 0 0 1em; }

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

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.section { padding-block: var(--section-y); }
.section-head { max-width: 40rem; margin-bottom: 2.25rem; }
.section-head p { color: var(--ink-soft); font-size: 1.125rem; }
.lede { font-size: 1.2rem; color: var(--ink-soft); max-width: 36rem; }
.muted { color: var(--ink-soft); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 100; border-radius: 6px; }
.skip:focus { left: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  font: 600 1rem/1 var(--font-body);
  padding: .8rem 1.25rem;
  border-radius: 999px;
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
  white-space: nowrap;
}
.btn-lg { padding: 1rem 1.6rem; font-size: 1.0625rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--marigold); color: var(--ink); }
.btn-primary:hover { background: #f5a500; color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-soft { background: var(--teal-wash); color: var(--ink); }
.btn-soft:hover { background: var(--band-1); color: var(--ink); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top, 0px);
}
.header-inner { display: flex; align-items: center; gap: 1.5rem; height: var(--header-h); }
.brand img { height: 52px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 1.5rem; margin-left: auto; }
.site-nav ul { display: flex; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.site-nav ul a {
  display: block; padding: .5rem .8rem; border-radius: 999px;
  color: var(--ink); text-decoration: none; font-weight: 500;
}
.site-nav ul a:hover { background: var(--teal-wash); }
.nav-actions { display: flex; align-items: center; gap: 1rem; }
.nav-toggle { display: none; }

@media (max-width: 1040px) {
  .nav-toggle {
    display: inline-flex; align-items: center; gap: .55rem; margin-left: auto;
    background: none; border: 2px solid var(--ink); border-radius: 999px;
    padding: .5rem .9rem; font: 600 .95rem var(--font-body); color: var(--ink); cursor: pointer;
  }
  .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
    display: block; width: 16px; height: 2px; background: var(--ink); border-radius: 2px; position: relative;
    transition: transform .2s;
  }
  .nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-bars::before { top: -5px; }
  .nav-toggle-bars::after { top: 5px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-5px) rotate(-45deg); }

  .site-nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 1rem;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 1rem var(--gutter) 1.5rem;
    box-shadow: 0 18px 30px -20px rgba(23,63,71,.35);
  }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; }
  .site-nav ul a { padding: .8rem .5rem; font-size: 1.1rem; border-radius: var(--radius-s); }
  .nav-actions { flex-direction: column; align-items: stretch; }
}

/* ---------- Hero ---------- */
.hero { padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3rem, 7vw, 6rem); overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.08fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero h1 { max-width: 14ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.8rem 0 1.4rem; }
.hero-facts {
  font-size: .98rem; color: var(--ink-soft);
  padding-left: .9rem; border-left: 4px solid var(--marigold);
  max-width: 30rem;
}

.hero-art { position: relative; aspect-ratio: 1 / 1.02; max-width: 540px; justify-self: end; width: 100%; }
.photo { position: absolute; overflow: hidden; background: var(--band-1); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo-a {
  right: 0; top: 0; width: 76%; height: 84%;
  border-radius: var(--frame);
}
.photo-b {
  left: 0; bottom: 0; width: 50%; height: 46%;
  border-radius: var(--frame);
  border: 8px solid var(--paper);
  background: var(--band-2);
}
.dot { position: absolute; border-radius: 50%; }
.dot-marigold { width: 18%; aspect-ratio: 1; background: var(--marigold); left: 6%; top: 10%; }
.dot-teal { width: 7%; aspect-ratio: 1; background: var(--teal); right: -2%; bottom: 4%; }

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { justify-self: center; max-width: 420px; order: -1; aspect-ratio: 1.15 / 1; }
  .photo-a { width: 72%; height: 86%; }
  .photo-b { width: 52%; height: 48%; }
}

/* ---------- Programmes / growing chart ---------- */
.programmes { background: var(--white); border-block: 1px solid var(--line); }

.finder {
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: 1rem 2rem;
  background: var(--teal-wash); border-radius: var(--radius-m);
  padding: 1.1rem 1.3rem; margin-bottom: 2.5rem;
}
.finder fieldset { border: 0; margin: 0; padding: 0; }
.finder legend { font-weight: 600; margin-bottom: .45rem; padding: 0; }
.finder-fields { display: flex; gap: .6rem; }
.finder select { min-width: 8.5rem; }
.finder-result { margin: 0; flex: 1 1 18rem; color: var(--ink-soft); }
.finder-result.has-match { color: var(--ink); }
.finder-result .btn { margin-top: .6rem; }

select, input, textarea {
  font: 400 1rem var(--font-body);
  color: var(--ink);
  background: #fff;
  border: 1.5px solid #b9d0d4;
  border-radius: var(--radius-s);
  padding: .72rem .85rem;
  width: 100%;
}
select { appearance: none; padding-right: 2.2rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23173f47' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .85rem center;
}
input:focus, select:focus, textarea:focus { border-color: var(--teal-deep); outline: 3px solid rgba(72,177,191,.3); outline-offset: 0; }

.chart {
  --gap: 1.25rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto auto;
  column-gap: var(--gap);
  row-gap: 1.25rem;
}
.ruler {
  grid-column: 1 / -1; grid-row: 1;
  display: grid; grid-template-columns: subgrid;
  position: relative;
}
.seg {
  position: relative;
  height: 54px;
  border-radius: var(--radius-s);
  display: flex; align-items: flex-end;
  padding: 0 .8rem .5rem;
  font: 600 .92rem/1.2 var(--font-display);
  color: var(--ink);
  /* height-chart tick marks along the top edge */
  background-image: repeating-linear-gradient(90deg, rgba(23,63,71,.35) 0 1.5px, transparent 1.5px 14px);
  background-size: 100% 12px;
  background-repeat: no-repeat;
  transition: box-shadow .2s;
}
.seg-1 { background-color: var(--band-1); }
.seg-2 { background-color: var(--band-2); }
.seg-3 { background-color: var(--band-3); }
.seg-4 { background-color: var(--band-4); }
.seg.is-match { box-shadow: 0 0 0 3px var(--ink); }

.marker {
  position: absolute; z-index: 2;
  display: none;
  top: -16px; left: 0;
  transform: translateX(-50%);
  pointer-events: none;
}
.marker::after { /* the pin line */
  content: ""; display: block; width: 3px; height: 34px; background: var(--ink); margin: 0 auto; border-radius: 2px;
}
.marker span {
  display: block; white-space: nowrap;
  background: var(--ink); color: #fff;
  font: 600 .9rem/1 var(--font-body);
  padding: .5rem .8rem; border-radius: 999px;
  margin-bottom: -2px;
  transform: translateY(-100%);
  position: absolute; left: 50%; translate: -50% 0; top: 0;
}
.marker.is-on { display: block; animation: pop .45s cubic-bezier(.3,1.5,.5,1) both; }
.seg .marker { left: var(--f, 50%); }

@keyframes pop {
  from { opacity: 0; transform: translateX(-50%) translateY(-10px) scale(.6); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
}

.prog {
  grid-row: 2;
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-m);
  padding: 1.3rem 1.3rem 1.4rem;
  display: flex; flex-direction: column;
  transition: border-color .2s, background-color .2s;
}
.prog.p1 { grid-column: 1; } .prog.p2 { grid-column: 2; }
.prog.p3 { grid-column: 3; } .prog.p4 { grid-column: 4; }
.prog-age { font-weight: 600; color: var(--ink-soft); font-size: .92rem; margin-bottom: .35rem; }
.prog h3 { margin-bottom: .45rem; }
.prog p:not(.prog-age) { font-size: 1rem; color: var(--ink-soft); }
.prog a { margin-top: auto; font-weight: 600; }
.prog.is-match { border-color: var(--ink); background: #fff; box-shadow: 0 0 0 1.5px var(--ink); }
.prog.is-match .prog-age::after {
  content: "Fits your child"; display: inline-block; white-space: nowrap; margin: .25rem 0 0 .4rem;
  background: var(--marigold); color: var(--ink);
  padding: .15rem .6rem; border-radius: 999px; font-size: .8rem;
}

@media (max-width: 900px) {
  .chart {
    --gap: 1rem;
    grid-template-columns: 46px 1fr;
    grid-template-rows: repeat(4, auto);
    column-gap: 1rem;
    row-gap: var(--gap);
  }
  .ruler {
    grid-column: 1; grid-row: 1 / span 4;
    grid-template-columns: 1fr;
    grid-template-rows: subgrid;
  }
  .seg { height: auto; padding: 0;
    background-image: repeating-linear-gradient(180deg, rgba(23,63,71,.35) 0 1.5px, transparent 1.5px 14px);
    background-size: 12px 100%;
  }
  .seg span { display: none; }
  .prog { grid-column: 2 !important; }
  .prog.p1 { grid-row: 1; } .prog.p2 { grid-row: 2; }
  .prog.p3 { grid-row: 3; } .prog.p4 { grid-row: 4; }

  .seg .marker { left: 50%; top: var(--f, 50%); transform: translate(-50%, -50%); }
  .marker::after { width: 36px; height: 3px; }
  .marker span { display: none; }
  .marker.is-on { animation: pop-v .45s cubic-bezier(.3,1.5,.5,1) both; }
  @keyframes pop-v {
    from { opacity: 0; transform: translate(-50%, -50%) scaleX(.2); }
    to   { opacity: 1; transform: translate(-50%, -50%) scaleX(1); }
  }
  .finder { flex-direction: column; align-items: stretch; }
  .finder-result { flex: none; }
  .finder-fields select { min-width: 0; }
  .finder-fields label { flex: 1; }
}

/* ---------- Approach ---------- */
.approach-inner { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.approach-photo { margin: 0; position: relative; }
.approach-photo img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: var(--frame);
  background: var(--band-3);
}
.approach-photo::before {
  content: ""; position: absolute; inset: auto -14px -14px auto;
  width: 45%; height: 45%; background: var(--band-2); border-radius: var(--frame); z-index: -1;
}
.points { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem 2rem; margin: 2rem 0; }
.points dt { font: 600 1.2rem/1.2 var(--font-display); margin-bottom: .35rem; }
.points dd { margin: 0; color: var(--ink-soft); font-size: 1rem; }
.text-link { font-weight: 600; }

@media (max-width: 860px) {
  .approach-inner { grid-template-columns: 1fr; }
  .approach-photo { max-width: 440px; }
  .approach-photo img { aspect-ratio: 4 / 3; }
}
@media (max-width: 560px) { .points { grid-template-columns: 1fr; } }

/* ---------- Video splash ---------- */
.film {
  position: relative; overflow: hidden;
  background: var(--teal);
  padding-block: clamp(3rem, 6vw, 4.5rem);
}
.film-inner { display: grid; grid-template-columns: minmax(0, .62fr) minmax(0, 1.38fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: center; position: relative; z-index: 1; }
/* Video is as wide as possible, but never taller than the screen allows:
   width is capped by (viewport height − header − breathing room) × 16/9 */
.film-media {
  width: 100%;
  max-width: calc((100vh - var(--header-h) - 7rem) * 16 / 9);
  max-width: calc((100svh - var(--header-h) - 7rem) * 16 / 9);
  justify-self: end;
}
.film-media .film-frame { margin-right: 18px; }
.film-alt { margin: 1.6rem 0 0; color: var(--ink); font-size: .95rem; }
.film-alt a { color: var(--ink); font-weight: 600; border-bottom: 2px solid var(--marigold); }
.film-copy h2 { color: var(--ink); font-size: clamp(2rem, 3.4vw, 3rem); }
.film-copy p { color: var(--ink); font-size: 1.15rem; max-width: 22rem; }

.film-frame {
  position: relative;
  border-radius: var(--frame);
  background: var(--ink);
  box-shadow: 18px 18px 0 var(--marigold);
  overflow: hidden;
  aspect-ratio: 16 / 9;
}
.film-facade, .film-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.film-facade img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.film-facade:hover img { transform: scale(1.03); }
.film-play {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  width: clamp(64px, 10vw, 92px); aspect-ratio: 1; border-radius: 50%;
  background: var(--marigold); display: grid; place-items: center;
  box-shadow: 0 0 0 10px rgba(255,255,255,.35);
  transition: box-shadow .2s;
}
.film-play svg { width: 42%; fill: var(--ink); margin-left: 6%; }
.film-facade:hover .film-play, .film-facade:focus-visible .film-play { box-shadow: 0 0 0 16px rgba(255,255,255,.45); }

/* stars borrowed from the logo, scattered like a burst from the play button */
.star {
  position: absolute; width: 34px; aspect-ratio: 1;
  clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  z-index: 0;
}
.s1 { background: var(--star-pink);   left: 4%;  top: 14%; transform: rotate(-12deg); }
.s2 { background: var(--star-orange); left: 1.5%; bottom: 18%; width: 54px; transform: rotate(14deg); }
.s3 { background: #fff;               right: 3%; top: 8%; width: 26px; }
.s4 { background: var(--star-green);  right: 6%; bottom: 8%; width: 40px; transform: rotate(-20deg); }
.s5 { background: #fff;               left: 18%; top: 6%; width: 22px; }

@media (max-width: 860px) {
  .film-inner { grid-template-columns: 1fr; }
  .film-media { max-width: none; justify-self: stretch; }
  .film-media .film-frame { box-shadow: 10px 10px 0 var(--marigold); margin-right: 10px; }
  .s2 { left: auto; right: 38%; bottom: 2%; width: 34px; }
  .s1, .s5 { display: none; }
  .s3 { top: 2.5%; right: 5%; width: 20px; }
  .film { padding-top: 4rem; }
}

/* ---------- Campuses ---------- */
.campuses { background: var(--white); border-block: 1px solid var(--line); }
.campus-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.campus { display: flex; flex-direction: column; }
.campus-photo {
  aspect-ratio: 3 / 2; overflow: hidden;
  border-radius: var(--frame);
  background: var(--band-1);
}
.campus:nth-child(2) .campus-photo { background: var(--band-2); }
.campus-photo img { width: 100%; height: 100%; object-fit: cover; }
.campus-photo-empty {
  display: grid; place-items: center; background: var(--band-4);
  font: 700 1.6rem var(--font-display); color: rgba(23,63,71,.5);
}
.campus-body { padding: 1.2rem .25rem 0; display: flex; flex-direction: column; flex: 1; }
.campus-body h3 { margin-bottom: .3rem; }
.campus-body p { color: var(--ink-soft); font-size: 1rem; margin-bottom: .6rem; }
.campus-body address { font-style: normal; font-size: .98rem; margin-bottom: .6rem; }
.campus-links { list-style: none; padding: 0; margin: 0 0 1.2rem; display: flex; gap: 1.2rem; flex-wrap: wrap; font-weight: 600; }
.campus-body .btn { margin-top: auto; align-self: flex-start; }

@media (max-width: 900px) {
  .campus-list { grid-template-columns: 1fr; gap: 2.5rem; }
  .campus { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 1.4rem; align-items: start; }
  .campus-body { padding-top: 0; }
}
@media (max-width: 560px) {
  .campus { grid-template-columns: 1fr; gap: 0; }
  .campus-body { padding-top: 1rem; }
}

/* ---------- Admissions + enquiry ---------- */
.admissions-inner { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.steps { list-style: none; counter-reset: step; padding: 0; margin: 1.5rem 0 1.5rem; position: relative; }
.steps::before { content: ""; position: absolute; left: 19px; top: 20px; bottom: 20px; width: 2px; background: var(--line); }
.steps li { counter-increment: step; position: relative; padding: .45rem 0 1.4rem 3.4rem; }
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--band-2); color: var(--ink);
  font: 700 1.15rem var(--font-display);
}
.steps li:nth-child(2)::before { background: var(--band-1); }
.steps li:nth-child(3)::before { background: var(--band-3); }
.steps li:nth-child(4)::before { background: var(--band-4); }
.steps strong { display: block; font-size: 1.08rem; }

.enquiry-card {
  background: #fff; border: 1.5px solid var(--line);
  border-radius: var(--radius-l);
  padding: clamp(1.4rem, 3.5vw, 2.3rem);
  box-shadow: 0 30px 60px -40px rgba(23,63,71,.45);
}
.enquiry h3 { font-size: 1.7rem; margin-bottom: 1.2rem; }
.field { margin: 0 0 1rem; border: 0; padding: 0; min-width: 0; }
.field label, .field legend { display: block; font-weight: 600; font-size: .95rem; margin-bottom: .35rem; padding: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.optional { font-weight: 400; color: var(--ink-soft); }
.error { color: #b3261e; font-size: .88rem; margin: .3rem 0 0; min-height: 0; }
.error:empty { display: none; }
.field.has-error input, .field.has-error select { border-color: #b3261e; }
.hint { font-size: .88rem; color: var(--teal-deep); margin: .3rem 0 0; }
.hint:empty { display: none; }

.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { position: relative; margin: 0 !important; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span {
  display: inline-block; padding: .6rem 1rem; border-radius: 999px;
  border: 1.5px solid #b9d0d4; font-weight: 500; font-size: .98rem; cursor: pointer;
  transition: background-color .15s, border-color .15s;
}
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip input:focus-visible + span { outline: 3px solid var(--marigold); outline-offset: 2px; }
.fine { font-size: .85rem; color: var(--ink-soft); text-align: center; margin: .8rem 0 0; }

.enquiry-done h3 { font-size: 1.7rem; }
.enquiry-done:focus { outline: none; }

@media (max-width: 900px) { .admissions-inner { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer {
  position: relative; overflow: hidden; isolation: isolate;
  color: #e4f3f5; padding-top: 4rem;
  background: linear-gradient(125deg, #0d5b68 0%, #13798b 38%, #245c9e 72%, #4a3f96 100%);
}
.footer-glow {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(38rem 22rem at 100% 0%, rgba(239, 91, 131, .45), transparent 70%),
    radial-gradient(30rem 20rem at 0% 100%, rgba(255, 184, 31, .30), transparent 70%),
    radial-gradient(24rem 16rem at 55% 115%, rgba(156, 200, 60, .25), transparent 70%);
}
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--marigold); }
.site-footer h4 { color: #fff; margin-bottom: 1rem; font-size: 1.2rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.footer-grid a { overflow-wrap: anywhere; }
.footer-grid { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(0,1.1fr) minmax(0,.9fr); gap: 2.5rem 3rem; padding-bottom: 3rem; }
.footer-brand img { height: 56px; width: auto; margin-bottom: 1.1rem; }
.footer-brand p { max-width: 22rem; }
.social { display: flex; flex-wrap: wrap; gap: .5rem; }
.social a {
  display: inline-block; padding: .4rem .9rem; border-radius: 999px;
  border: 1.5px solid rgba(255,255,255,.45); font-size: .92rem; font-weight: 500;
}
.social a:hover { background: #fff; color: var(--ink); border-color: #fff; }
.footer-campuses li { margin-bottom: 1rem; }
.footer-campuses strong { display: block; color: #fff; font-weight: 600; }
.footer-campuses span { display: block; font-size: .92rem; opacity: .85; }
.footer-links li { margin-bottom: .55rem; }
.footer-base {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem;
  border-top: 1px solid rgba(255,255,255,.2);
  padding-block: 1.3rem;
  font-size: .9rem;
}
.footer-base p { margin: 0; }
.footer-base ul { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.powered { margin-left: auto; display: inline-flex; align-items: center; opacity: .85; }
.powered:hover { opacity: 1; color: #fff !important; }
.powered img { height: 32px; width: auto; filter: brightness(0) invert(1); }

@media (max-width: 760px) {
  .footer-grid { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
  .footer-brand { grid-column: 1 / -1; }
  .powered { margin-left: 0; }
  .powered img { height: 24px; }
}
@media (max-width: 460px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Mobile action bar + call sheet ---------- */
.mobile-bar { display: none; }
@media (max-width: 760px) {
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr; gap: .6rem;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: #fff; border-top: 1px solid var(--line);
    padding: .7rem var(--gutter) calc(.7rem + env(safe-area-inset-bottom, 0px));
  }
  body { padding-bottom: 76px; }
}
.call-sheet {
  border: 0; border-radius: var(--radius-l); padding: 1.6rem;
  width: min(92vw, 380px); color: var(--ink);
}
.call-sheet::backdrop { background: rgba(23,63,71,.45); }
.call-sheet ul { list-style: none; padding: 0; margin: 0 0 1rem; }
.call-sheet li a {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: .95rem .2rem; border-bottom: 1px solid var(--line);
  text-decoration: none; font-weight: 600;
}
.call-sheet li a span { color: var(--ink); font-weight: 500; }


/* =========================================================
   Inner pages (About, Programmes)
   ========================================================= */
.site-nav ul a[aria-current="page"] { background: var(--teal-wash); color: var(--ink); font-weight: 600; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--ink); color: #fff; }
.tint { background: var(--white); border-block: 1px solid var(--line); }
.crumb { font-size: .92rem; color: var(--ink-soft); margin-bottom: 1rem; }
.sub-head { margin-top: 3rem; }

.page-hero { padding-top: clamp(2rem, 5vw, 3.5rem); }
.page-hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; padding-bottom: clamp(2.5rem, 5vw, 4rem); }
.page-hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.5rem); max-width: 18ch; }
.page-hero-photo { margin: 0; position: relative; }
.page-hero-photo img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: var(--frame); background: var(--band-1); }
.page-hero-photo::after {
  content: ""; position: absolute; width: 22%; aspect-ratio: 1; left: -6%; bottom: -6%;
  background: var(--star-pink);
  clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}
.page-hero-plain { padding-bottom: var(--section-y); }
.page-hero-plain .lede { margin-bottom: 2rem; }
.jump {
  background: var(--ink); z-index: 40;
  position: sticky; top: calc(var(--header-h) + env(safe-area-inset-top, 0px));
  box-shadow: 0 10px 20px -16px rgba(23,63,71,.6);
}
html:has(.jump) { scroll-padding-top: calc(var(--header-h) + 64px); }
.jump .wrap { display: flex; gap: .3rem; overflow-x: auto; padding-block: .55rem; scrollbar-width: none; }
.jump a { color: #fff; white-space: nowrap; padding: .4rem .85rem; border-radius: 999px; font-weight: 500; font-size: .95rem; }
.jump a:hover { background: rgba(255,255,255,.15); color: #fff; }
.jump a.is-active { background: var(--marigold); color: var(--ink); }
@media (max-width: 860px) {
  .page-hero-inner { grid-template-columns: 1fr; }
  .page-hero-photo { max-width: 480px; }
}

/* split layouts */
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split p { max-width: 38rem; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.inspired { background: var(--ink); color: #fff; border-radius: var(--frame); padding: clamp(1.5rem, 3vw, 2.3rem); }
.inspired h3 { color: #fff; font-size: 1.25rem; }
.inspired-list { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .6rem; }
.inspired-list li { padding: .75rem 1rem; border-radius: var(--radius-s); color: var(--ink); font: 600 1.2rem/1.2 var(--font-display); }
.inspired-list .c1 { background: var(--band-1); } .inspired-list .c2 { background: var(--band-2); }
.inspired-list .c3 { background: var(--band-3); } .inspired-list .c4 { background: var(--band-4); }

/* Rahul & Puja example */
.example { display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 1rem; align-items: stretch; }
.example-kid { padding: 1.2rem 1.3rem; font-size: 1.05rem; border-radius: var(--frame); }
.example-kid strong { display: block; font: 700 1.5rem/1.1 var(--font-display); margin-bottom: .3rem; }
.k1 { background: var(--band-2); } .k2 { background: var(--band-5); }
.example-note { margin: 0; align-self: center; font-size: 1.1rem; padding-left: 1.2rem; border-left: 4px solid var(--teal); }
@media (max-width: 860px) { .example { grid-template-columns: 1fr 1fr; } .example-note { grid-column: 1 / -1; } }
@media (max-width: 480px) { .example { grid-template-columns: 1fr; } }

.areas { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.area { padding: 1.2rem 1.2rem 1rem; border-radius: var(--radius-m); border-top: 6px solid; background: var(--paper); }
.area h4 { font-size: 1.15rem; margin-bottom: .6rem; }
.area ul { margin: 0; padding-left: 1.1rem; font-size: .96rem; color: var(--ink-soft); }
.area li { margin-bottom: .25rem; }
.a1 { border-color: var(--teal); } .a2 { border-color: var(--marigold); } .a3 { border-color: var(--star-pink); }
.a4 { border-color: var(--star-green); } .a5 { border-color: #7b6ff0; }
@media (max-width: 960px) { .areas { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .areas { grid-template-columns: 1fr; } }

.spaces { list-style: none; padding: 0; margin: 1.5rem 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.spaces li { padding: .5rem 1rem; border-radius: 999px; font-weight: 600; }
.spaces li:nth-child(5n+1) { background: var(--band-1); } .spaces li:nth-child(5n+2) { background: var(--band-2); }
.spaces li:nth-child(5n+3) { background: var(--band-3); } .spaces li:nth-child(5n+4) { background: var(--band-4); }
.spaces li:nth-child(5n+5) { background: var(--band-5); }
.split-rev > :first-child { order: 2; }
@media (max-width: 860px) { .split-rev > :first-child { order: 0; } }
.mosaic { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1; border-radius: var(--frame); background: var(--band-4); }
.mosaic img:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; background: var(--band-1); }

.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.duo-card { padding: clamp(1.5rem, 3vw, 2.3rem); border-radius: var(--frame); background: linear-gradient(160deg, #e2f5f7, #fff 60%); border: 1.5px solid var(--line);  }
.duo-card + .duo-card { background: linear-gradient(160deg, #fff1d0, #fff 60%); }
.ticks { list-style: none; padding: 0; margin: 1rem 0; }
.ticks li { position: relative; padding-left: 1.9rem; margin-bottom: .6rem; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 1.15rem; height: 1.15rem; border-radius: 50%;
  background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' stroke='white' stroke-width='2.2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") center / 80% no-repeat;
}
.mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; margin: 1.5rem 0 0; }
.mini-stats div { background: #fff; border-radius: var(--radius-s); padding: .8rem; border: 1px solid var(--line); }
.mini-stats dt { font: 700 1.6rem/1 var(--font-display); color: var(--teal-deep); }
.mini-stats dd { margin: .3rem 0 0; font-size: .88rem; color: var(--ink-soft); }
@media (max-width: 860px) { .duo { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .mini-stats { grid-template-columns: 1fr; } }

.founders { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.founder { display: grid; grid-template-columns: 160px 1fr; gap: 1.5rem; align-items: start; }
.founder img { width: 160px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--frame); background: var(--band-3); }
.founder h3 { margin-bottom: .1rem; }
.role { color: var(--teal-deep); font-weight: 600; margin-bottom: .7rem; }
.founder p:last-child { color: var(--ink-soft); font-size: 1rem; }
@media (max-width: 900px) { .founders { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .founder { grid-template-columns: 110px 1fr; gap: 1rem; } .founder img { width: 110px; } }

.cta-band {
  position: relative; overflow: hidden; text-align: center;
  padding-block: clamp(3.5rem, 7vw, 5rem);
  background: linear-gradient(120deg, var(--teal) 0%, #3fa2c9 55%, #6a7ee0 100%);
}
.cta-band h2, .cta-band p { color: #fff; }
.cta-band p { font-size: 1.15rem; max-width: 34rem; margin-inline: auto; }
.cta-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: .8rem; margin-top: 1.5rem; }

/* programme detail sections */
.prog-mini { text-decoration: none; color: var(--ink); }
.prog-mini:hover { border-color: var(--ink); color: var(--ink); }
.prog-mini h3 { margin-bottom: .3rem; }
.prog-mini span { margin-top: auto; font-size: .95rem; color: var(--ink-soft); }
.prog-detail { padding-block: var(--section-y); scroll-margin-top: 80px; }
.pd1 { background: linear-gradient(180deg, #e6f7f9, var(--paper)); }
.pd2 { background: linear-gradient(180deg, #fff3d6, var(--paper)); }
.pd3 { background: linear-gradient(180deg, #ffe6e1, var(--paper)); }
.pd4 { background: linear-gradient(180deg, #ecf8dd, var(--paper)); }
.pd-inner { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.prog-detail:nth-of-type(even) .pd-photo { order: 2; }
.pd-photo { margin: 0; }
.pd-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--frame); background: var(--band-1); }
.pd-age { display: inline-block; font-weight: 600; padding: .25rem .8rem; border-radius: 999px; background: #fff; margin-bottom: .8rem; }
.pd-copy h3 { font-size: 1.2rem; margin-top: 1.4rem; }
.facts { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.2rem 0; }
.facts div { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-s); padding: .55rem .9rem; }
.facts dt { font-size: .8rem; color: var(--ink-soft); }
.facts dd { margin: 0; font-weight: 600; }
@media (max-width: 860px) {
  .pd-inner { grid-template-columns: 1fr; }
  .prog-detail:nth-of-type(even) .pd-photo { order: 0; }
  .pd-photo { max-width: 520px; }
}

.table-scroll { overflow-x: auto; border-radius: var(--radius-m); border: 1.5px solid var(--line); background: #fff; }
.glance { width: 100%; border-collapse: collapse; min-width: 640px; }
.glance th, .glance td { text-align: left; padding: .95rem 1.1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.glance thead th { background: var(--ink); color: #fff; font-weight: 600; font-size: .92rem; }
.glance tbody tr:last-child > * { border-bottom: 0; }
.glance tbody th { font-family: var(--font-display); font-size: 1.1rem; white-space: nowrap; }
.dotc { display: inline-block; width: .8rem; height: .8rem; border-radius: 50%; margin-right: .5rem; }
.d1 { background: var(--teal); } .d2 { background: var(--marigold); } .d3 { background: var(--star-pink); } .d4 { background: var(--star-green); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
