/* Gyanodaya School — public site
   Idea: "gyan + udaya", the dawn of knowledge. A sunrise over green hills is the
   one bold element; everything else stays calm, bright and easy to read. */

:root {
  --ink: #24305e;
  --text: #2b2f45;
  --muted: #5b6382;
  --sun: #f6a821;
  --sun-deep: #c97700;
  --sun-soft: #fff1d3;
  --leaf: #2e9e6a;
  --leaf-deep: #1f7a50;
  --leaf-soft: #d3eedf;
  --sky: #dcebfa;
  --sky-deep: #2f6fb8;
  --coral: #ef5d6e;
  --coral-soft: #fde2e5;
  --page: #ffffff;
  --tint: #f3f8fd;
  --line: #dfe6f1;

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

  --r-sm: 10px;
  --r-md: 18px;
  --r-lg: 32px;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--page);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sky-deep); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); line-height: 1.15; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); font-weight: 800; letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.15rem); }
h3 { font-size: 1.28rem; }
p { margin: 0 0 1em; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.narrow { max-width: 760px; }
.narrow-wide { max-width: 920px; }
.center { text-align: center; }
.mt { margin-top: 2.5rem; }
.sr, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; }
.empty { color: var(--muted); font-size: 1.1rem; }

/* ---------- Top bar & header ---------- */
.topbar { background: var(--ink); color: #fff; font-size: .9rem; }
.topbar__in { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 38px; flex-wrap: wrap; padding-block: .3rem; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { text-decoration: underline; }
.topbar__contact { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.topbar__admit { background: var(--sun); color: var(--ink) !important; font-weight: 600; padding: .1rem .8rem; border-radius: 999px; }

.site-header { background: var(--page); position: sticky; top: 0; z-index: 50; box-shadow: 0 1px 0 var(--line); }
.site-header__in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 78px; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ink); }
.brand__mark { width: 46px; height: 46px; flex: none; }
.brand__logo { height: 50px; width: auto; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name { font-family: var(--font-display); font-weight: 800; font-size: 1.45rem; }
.brand__tag { font-size: .85rem; color: var(--muted); margin-top: .15rem; }

.site-nav ul { list-style: none; display: flex; gap: .15rem; margin: 0; padding: 0; align-items: center; flex-wrap: wrap; }
.site-nav a { display: block; padding: .45rem .7rem; border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 500; font-size: 1rem; }
.site-nav a:hover { background: var(--tint); }
.site-nav a.is-active { background: var(--sky); }
.site-nav a.nav-cta { background: var(--sun); font-weight: 700; margin-left: .3rem; }
.site-nav a.nav-cta:hover { background: var(--sun-deep); color: #fff; }

.nav-toggle { display: none; background: none; border: 0; padding: .6rem; cursor: pointer; }
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after { display: block; width: 26px; height: 3px; 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: -8px; }
.nav-toggle__bars::after { top: 8px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 1060px) {
  .nav-toggle { display: block; }
  .site-nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--page); box-shadow: 0 12px 24px rgba(36,48,94,.12); display: none; }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; padding: .8rem 1.25rem 1.2rem; }
  .site-nav a { padding: .7rem 1rem; }
  .site-nav a.nav-cta { margin: .4rem 0 0; text-align: center; }
}

/* ---------- Buttons & links ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; font: 700 1.05rem/1 var(--font-display); padding: .95rem 1.6rem .85rem; border-radius: 999px; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background .15s, transform .15s; }
.btn:active { transform: translateY(1px); }
.btn--sun { background: var(--sun); color: var(--ink); }
.btn--sun:hover { background: var(--sun-deep); color: #fff; }
.btn--ghost { border-color: var(--ink); color: var(--ink); background: rgba(255,255,255,.55); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--sky); color: var(--ink); }
.btn--block { width: 100%; }
.link-arrow { font-weight: 600; color: var(--sky-deep); text-decoration: none; white-space: nowrap; }
.link-arrow::after { content: ""; display: inline-block; width: .5em; height: .5em; border: solid currentColor; border-width: 2px 2px 0 0; transform: rotate(45deg); margin-left: .45em; vertical-align: .08em; transition: margin .15s; }
.link-arrow:hover::after { margin-left: .7em; }
.link-arrow--back::after { display: none; }
.link-arrow--back::before { content: ""; display: inline-block; width: .5em; height: .5em; border: solid currentColor; border-width: 0 0 2px 2px; transform: rotate(45deg); margin-right: .45em; vertical-align: .08em; }

/* ---------- Hero: the sunrise ---------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, #bcdcf8 0%, #d9ecfb 45%, #ffe9c2 82%, #ffd89a 100%); padding: clamp(4rem, 9vw, 7.5rem) 0 clamp(9rem, 16vw, 13rem); }
.hero__sky { position: absolute; inset: 0; pointer-events: none; }
.hero__sun { position: absolute; right: clamp(-6rem, 6vw, 9rem); bottom: clamp(2rem, 6vw, 4.5rem); width: clamp(260px, 38vw, 520px); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 50% 45%, #ffd36b 0%, var(--sun) 58%, #f39a12 100%); box-shadow: 0 0 0 28px rgba(246,168,33,.16), 0 0 0 64px rgba(246,168,33,.09); animation: rise 1.6s cubic-bezier(.2,.7,.2,1) both; }
.hero__rays { position: absolute; inset: -22%; border-radius: 50%; background: repeating-conic-gradient(from 0deg, rgba(246,168,33,.22) 0 6deg, transparent 6deg 22.5deg); -webkit-mask: radial-gradient(circle, transparent 56%, #000 57%, #000 70%, transparent 71%); mask: radial-gradient(circle, transparent 56%, #000 57%, #000 70%, transparent 71%); }
@keyframes rise { from { transform: translateY(45%); opacity: .4; } to { transform: none; opacity: 1; } }
.hero__in { position: relative; z-index: 2; }
.hero__title { max-width: 14ch; font-size: clamp(2.6rem, 6.6vw, 5.4rem); line-height: 1.02; margin-bottom: .35em; }
.hero__text { max-width: 46ch; font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--ink); margin-bottom: 1.8rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero__hills { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: clamp(90px, 13vw, 170px); z-index: 1; }

@media (max-width: 720px) {
  .hero__sun { right: -30%; bottom: 3.5rem; opacity: .95; }
  .hero__title { max-width: 12ch; }
}

/* ---------- Notices strip ---------- */
.notices { background: var(--page); }
.notices__in { display: flex; gap: 1.5rem; align-items: center; padding-block: 1rem 0; }
.notices__h { font-size: 1.05rem; margin: 0; background: var(--coral); color: #fff; padding: .35rem .9rem; border-radius: 999px; flex: none; }
.notices__list { list-style: none; display: flex; gap: 2rem; margin: 0; padding: .3rem 0; overflow-x: auto; scrollbar-width: thin; }
.notices__list li { flex: none; display: flex; gap: .55rem; align-items: baseline; }
.notices__list time { font-weight: 700; color: var(--coral); font-size: .92rem; }
.notices__list a, .notices__list span { color: var(--text); }
@media (max-width: 640px) { .notices__in { flex-direction: column; align-items: flex-start; gap: .6rem; } .notices__list { flex-direction: column; gap: .5rem; } }

/* ---------- Sections ---------- */
.section { padding-block: clamp(3.5rem, 7vw, 5.5rem); }
.section--tint { background: var(--tint); }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 1.8rem; flex-wrap: wrap; }
.section-head h2 { margin: 0; }

.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split__text { max-width: 62ch; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.prose p:last-child { margin-bottom: 0; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin-bottom: .35rem; }
.prose blockquote { margin: 1.2rem 0; padding: .4rem 0 .4rem 1.1rem; border-left: 4px solid var(--sun); font-style: italic; }
.prose + .link-arrow { display: inline-block; margin-top: 1.2rem; }

/* Organic image frame: the hill-curve corner echoes the hero */
.blob-img { width: 100%; aspect-ratio: 5/4; object-fit: cover; border-radius: var(--r-lg) var(--r-lg) var(--r-lg) 140px; }

/* Placeholder art (shown until a real photo is uploaded) */
.art { position: relative; aspect-ratio: 5/4; border-radius: var(--r-lg) var(--r-lg) var(--r-lg) 140px; overflow: hidden; }
.art i, .art b { position: absolute; display: block; }
.art--sun { background: var(--sun-soft); } .art--sun i { background: var(--sun); } .art--sun b { background: #ffd57a; }
.art--leaf { background: var(--leaf-soft); } .art--leaf i { background: var(--leaf); } .art--leaf b { background: #8fd3ad; }
.art--sky { background: var(--sky); } .art--sky i { background: var(--sky-deep); } .art--sky b { background: #9cc3ef; }
.art--coral { background: var(--coral-soft); } .art--coral i { background: var(--coral); } .art--coral b { background: #f9aab3; }
.art--s0 i { width: 46%; aspect-ratio: 1; border-radius: 50%; right: 12%; top: 14%; }
.art--s0 b { left: -10%; right: -10%; bottom: -40%; height: 70%; border-radius: 50%; }
.art--s1 i { width: 34%; height: 54%; left: 16%; bottom: 0; border-radius: 999px 999px 0 0; }
.art--s1 b { width: 30%; aspect-ratio: 1; right: 16%; top: 20%; border-radius: 30%; transform: rotate(18deg); }
.art--s2 i { width: 60%; height: 60%; left: 20%; top: 20%; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.art--s2 b { width: 22%; aspect-ratio: 1; right: 8%; bottom: 10%; border-radius: 50%; }

/* ---------- Programmes ---------- */
.program-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.2rem; }
.program { display: flex; flex-direction: column; padding: 1.6rem 1.5rem 1.4rem; border-radius: var(--r-md); text-decoration: none; color: var(--text); border-top: 8px solid; background: #fff; transition: transform .15s; }
.program:hover { transform: translateY(-3px); color: var(--text); }
.program h3 { margin-bottom: .4rem; }
.program p { margin: 0; color: var(--muted); }
.program__age { align-self: flex-start; font-size: .85rem; font-weight: 700; padding: .1rem .7rem; border-radius: 999px; margin-bottom: .9rem; }
.program--sun { border-color: var(--sun); } .program--sun .program__age { background: var(--sun-soft); color: #8a5300; }
.program--leaf { border-color: var(--leaf); } .program--leaf .program__age { background: var(--leaf-soft); color: var(--leaf-deep); }
.program--sky { border-color: var(--sky-deep); } .program--sky .program__age { background: var(--sky); color: #1f4f88; }
.program--coral { border-color: var(--coral); } .program--coral .program__age { background: var(--coral-soft); color: #a8273a; }

.programs-full { display: grid; gap: clamp(2.5rem, 5vw, 4rem); }
.pfull { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; scroll-margin-top: 110px; }
.pfull:nth-child(even) .pfull__media { order: 2; }
.pfull__media img { width: 100%; aspect-ratio: 5/4; object-fit: cover; border-radius: var(--r-lg); }
.pfull__media .art { border-radius: var(--r-lg); }
.pfull h2 { margin-bottom: .6rem; }
@media (max-width: 820px) { .pfull { grid-template-columns: 1fr; } .pfull:nth-child(even) .pfull__media { order: 0; } }

.facts { list-style: none; padding: 0; margin: 0 0 1.2rem; display: flex; flex-wrap: wrap; gap: .6rem; }
.facts li { background: var(--tint); border-radius: var(--r-sm); padding: .45rem .9rem; font-weight: 600; color: var(--ink); }
.facts span { display: block; font-size: .8rem; font-weight: 500; color: var(--muted); }
.facts--event { margin-bottom: 2rem; }

/* ---------- A day at school (a real sequence, so it gets a timeline) ---------- */
.day { list-style: none; padding: 0; margin: 2.4rem auto 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0; position: relative; }
.day::before { content: ""; position: absolute; left: 4%; right: 4%; top: 1.15rem; height: 4px; background: repeating-linear-gradient(90deg, var(--sun) 0 14px, transparent 14px 24px); }
.day__item { position: relative; padding: 3rem .7rem 0; text-align: center; }
.day__item::before { content: ""; position: absolute; top: .55rem; left: 50%; transform: translateX(-50%); width: 1.3rem; height: 1.3rem; border-radius: 50%; background: var(--page); border: 4px solid var(--sun); }
.day__item:nth-child(4n+2)::before { border-color: var(--leaf); }
.day__item:nth-child(4n+3)::before { border-color: var(--sky-deep); }
.day__item:nth-child(4n+4)::before { border-color: var(--coral); }
.day__time { display: block; font-family: var(--font-display); font-weight: 700; color: var(--ink); font-size: 1.15rem; }
.day__what { display: block; font-weight: 600; }
.day__note { display: block; font-size: .93rem; color: var(--muted); line-height: 1.45; margin-top: .2rem; }
@media (max-width: 760px) {
  .day { grid-template-columns: 1fr; max-width: 460px; }
  .day::before { left: .6rem; right: auto; top: .5rem; bottom: .5rem; width: 4px; height: auto; background: repeating-linear-gradient(180deg, var(--sun) 0 14px, transparent 14px 24px); }
  .day__item { text-align: left; padding: 0 0 1.4rem 2.6rem; }
  .day__item::before { top: .2rem; left: 1.25rem; }
}

/* ---------- Events ---------- */
.event-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.2rem; }
.event-list--stack { grid-template-columns: 1fr; }
.event__link { display: flex; gap: 1.2rem; padding: 1.3rem; background: #fff; border-radius: var(--r-md); text-decoration: none; color: var(--text); border: 1px solid var(--line); height: 100%; transition: border-color .15s; }
.event__link:hover { border-color: var(--sun); color: var(--text); }
.event__date { flex: none; width: 78px; text-align: center; background: var(--sun-soft); border-radius: var(--r-sm); padding: .55rem .3rem .5rem; align-self: flex-start; }
.event__day { display: block; font: 800 2rem/1 var(--font-display); color: var(--ink); }
.event__mon { display: block; font-size: .82rem; font-weight: 600; color: #8a5300; margin-top: .2rem; }
.event__body h3 { margin-bottom: .2rem; }
.event__meta { font-size: .93rem; color: var(--muted); margin-bottom: .5rem; }
.event__body p:last-child { margin-bottom: 0; }
.event-list--past .event__date { background: var(--tint); }
.event-list--past .event__mon { color: var(--muted); }
.cover { width: 100%; border-radius: var(--r-md); margin-bottom: 2rem; }

/* ---------- Parent voices ---------- */
.voice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; margin-top: 2rem; }
.voice { margin: 0; padding: 1.8rem 1.6rem 1.5rem; background: var(--sun-soft); border-radius: var(--r-md) var(--r-md) var(--r-md) 4px; position: relative; }
.voice:nth-child(3n+2) { background: var(--leaf-soft); }
.voice:nth-child(3n+3) { background: var(--sky); }
.voice blockquote { margin: 0 0 1.2rem; font-size: 1.12rem; line-height: 1.55; color: var(--ink); }
.voice figcaption strong { display: block; font-family: var(--font-display); color: var(--ink); }
.voice figcaption span { font-size: .93rem; color: var(--muted); }

/* ---------- Gallery ---------- */
.peek { display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem; }
.peek__item img { width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--r-sm); }
.peek__item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
@media (max-width: 760px) { .peek { grid-template-columns: repeat(2, 1fr); } .peek__item:nth-child(1) { grid-row: auto; } }

.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.8rem; }
.filter { font: 600 .98rem var(--font-body); padding: .4rem 1.05rem; border-radius: 999px; border: 2px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; }
.filter:hover { border-color: var(--sun); }
.filter.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.gallery { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1.2rem; }
.gallery__item[hidden] { display: none; }
.gallery__btn { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: var(--r-sm); overflow: hidden; }
.gallery__btn img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .3s; }
.gallery__btn:hover img { transform: scale(1.04); }
.gallery__cap { font-size: .95rem; color: var(--muted); margin: .45rem 0 0; }
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(1000px, 94vw); }
.lightbox::backdrop { background: rgba(20,26,52,.86); }
.lightbox figure { margin: 0; }
.lightbox img { max-height: 80vh; width: auto; margin: 0 auto; border-radius: var(--r-sm); }
.lightbox figcaption { color: #fff; text-align: center; padding: .8rem; font-size: 1.05rem; }
.lightbox__close { position: fixed; top: 1rem; right: 1rem; width: 46px; height: 46px; border-radius: 50%; border: 0; background: #fff; color: var(--ink); font-size: 1.8rem; line-height: 1; cursor: pointer; }

/* ---------- CTA ---------- */
.cta { background: var(--leaf-deep); color: #fff; padding-block: clamp(3rem, 6vw, 4.5rem) calc(clamp(3rem, 6vw, 4.5rem) + 50px); position: relative; overflow: hidden; }
.cta::after { content: ""; position: absolute; width: 340px; aspect-ratio: 1; border-radius: 50%; background: var(--sun); right: -110px; bottom: -220px; opacity: .9; }
.cta__in { display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; position: relative; z-index: 1; }
.cta h2 { color: #fff; margin-bottom: .3rem; }
.cta p { margin: 0; max-width: 52ch; color: #e3f4ea; }
.cta__actions { display: flex; gap: .8rem; flex-wrap: wrap; }

/* ---------- Inner page banner ---------- */
.banner { position: relative; background: linear-gradient(180deg, #cfe5fa 0%, #e6f2fc 60%, #fff0d4 100%); padding: clamp(2.8rem, 6vw, 4.5rem) 0 clamp(4.5rem, 8vw, 6rem); overflow: hidden; }
.banner__sky { position: absolute; inset: 0; pointer-events: none; }
.banner__sun { position: absolute; width: clamp(150px, 20vw, 240px); aspect-ratio: 1; border-radius: 50%; background: var(--sun); right: 8%; bottom: -24%; box-shadow: 0 0 0 22px rgba(246,168,33,.15); }
.banner__in { position: relative; z-index: 2; }
.banner h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); margin-bottom: .25em; max-width: 20ch; }
.banner__intro { max-width: 60ch; font-size: 1.15rem; color: var(--ink); margin: 0; }
.banner__hills { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 70px; z-index: 1; }
.crumb { font-size: .92rem; color: var(--muted); margin-bottom: .6rem; }
.crumb a { color: var(--muted); }

/* ---------- About ---------- */
.mv { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.mv__item { padding: clamp(1.6rem, 3vw, 2.4rem); border-radius: var(--r-md); background: #fff; border-left: 8px solid; }
.mv__item--sun { border-color: var(--sun); }
.mv__item--sky { border-color: var(--sky-deep); }
.mv__item p { margin: 0; font-size: 1.12rem; }
@media (max-width: 760px) { .mv { grid-template-columns: 1fr; } }

.values { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 2rem 2.5rem; margin: 2.2rem 0 0; }
.values__item dt { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; color: var(--ink); padding-top: .9rem; border-top: 4px solid var(--sun); }
.values__item:nth-child(4n+2) dt { border-color: var(--leaf); }
.values__item:nth-child(4n+3) dt { border-color: var(--sky-deep); }
.values__item:nth-child(4n+4) dt { border-color: var(--coral); }
.values__item dd { margin: .35rem 0 0; color: var(--muted); }

.principal { display: grid; grid-template-columns: 300px 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.principal__photo img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--r-lg) var(--r-lg) var(--r-lg) 120px; }
.principal__text { max-width: 64ch; }
.sign { margin-top: 1.4rem; color: var(--muted); }
.sign strong { color: var(--ink); font-family: var(--font-display); font-size: 1.15rem; }
@media (max-width: 760px) { .principal { grid-template-columns: 1fr; } .principal__photo { max-width: 240px; } }

.avatar { display: grid; place-items: center; width: 120px; aspect-ratio: 1; border-radius: 50%; font: 800 2.4rem var(--font-display); color: var(--ink); }
.avatar--lg { width: 100%; max-width: 280px; font-size: 5rem; border-radius: var(--r-lg) var(--r-lg) var(--r-lg) 120px; aspect-ratio: 4/5; }
.avatar--sun { background: var(--sun-soft); } .avatar--leaf { background: var(--leaf-soft); }
.avatar--sky { background: var(--sky); } .avatar--coral { background: var(--coral-soft); }

.journey { list-style: none; padding: 0; margin: 2.2rem auto 0; max-width: 720px; }
.journey li { display: grid; grid-template-columns: 90px 1fr; gap: 1.4rem; padding-bottom: 1.4rem; position: relative; }
.journey li::before { content: ""; position: absolute; left: 103px; top: .4rem; bottom: 0; width: 3px; background: var(--leaf-soft); }
.journey li:last-child::before { display: none; }
.journey__year { font: 800 1.35rem/1.2 var(--font-display); color: var(--leaf-deep); text-align: right; }
.journey p { margin: 0; padding-left: 1.6rem; position: relative; }
.journey p::before { content: ""; position: absolute; left: -.55rem; top: .35rem; width: 1rem; height: 1rem; border-radius: 50%; background: var(--leaf); border: 3px solid var(--page); }

/* ---------- Teachers ---------- */
.staff-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 2.2rem 1.6rem; }
.staff { text-align: center; }
.staff__photo { width: 150px; aspect-ratio: 1; object-fit: cover; border-radius: 50%; margin: 0 auto 1rem; }
.staff .avatar { width: 150px; margin: 0 auto 1rem; }
.staff__name { font-size: 1.3rem; margin-bottom: .1rem; }
.staff__role { color: var(--leaf-deep); font-weight: 600; margin-bottom: .2rem; }
.staff__meta { font-size: .93rem; color: var(--muted); margin-bottom: .5rem; }
.staff__bio { font-size: .97rem; max-width: 34ch; margin-inline: auto; }

/* ---------- Admissions ---------- */
.steps { list-style: none; padding: 0; margin: 2.4rem 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1.5rem; counter-reset: s; }
.steps__item { position: relative; padding-top: .2rem; }
.steps__n { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--sun); font: 800 1.5rem var(--font-display); color: var(--ink); margin-bottom: .9rem; }
.steps__item:nth-child(2) .steps__n { background: var(--leaf-soft); }
.steps__item:nth-child(3) .steps__n { background: var(--sky); }
.steps__item:nth-child(4) .steps__n { background: var(--coral-soft); }
.steps__item h3 { margin-bottom: .3rem; }
.steps__item p { color: var(--muted); margin: 0; }

.admit { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.admit__info h2 { font-size: 1.55rem; margin-top: 2rem; }
.admit__info h2:first-child { margin-top: 0; }
@media (max-width: 900px) { .admit { grid-template-columns: 1fr; } }
.card { background: #fff; border-radius: var(--r-md); padding: clamp(1.5rem, 3vw, 2.2rem); box-shadow: 0 2px 0 var(--line), 0 18px 40px -24px rgba(36,48,94,.35); }
.card h2 { font-size: 1.55rem; }

.table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--r-sm); overflow: hidden; }
.table th, .table td { text-align: left; padding: .65rem .9rem; border-bottom: 1px solid var(--line); }
.table thead th { background: var(--ink); color: #fff; font-weight: 600; }
.table--plain { background: transparent; }
.table--plain th { font-weight: 600; color: var(--ink); padding-left: 0; }
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { padding-left: 1.8rem; position: relative; margin-bottom: .45rem; }
.ticks li::before { content: ""; position: absolute; left: .2rem; top: .4rem; width: .45rem; height: .8rem; border: solid var(--leaf); border-width: 0 3px 3px 0; transform: rotate(45deg); }

/* ---------- Forms ---------- */
.form { display: grid; gap: 1rem; }
.field label { display: block; font-weight: 600; color: var(--ink); margin-bottom: .3rem; }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; font: inherit; padding: .7rem .9rem; border: 2px solid var(--line); border-radius: var(--r-sm); background: #fff; color: var(--text); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--sky-deep); outline: none; box-shadow: 0 0 0 3px rgba(47,111,184,.18); }
.field [aria-invalid="true"] { border-color: var(--coral); }
.field__err { display: block; color: #b4233a; font-size: .93rem; margin-top: .3rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.notice { border-radius: var(--r-sm); padding: 1rem 1.2rem; }
.notice--ok { background: var(--leaf-soft); }
.notice--ok h2 { color: var(--leaf-deep); }
.notice--err { background: var(--coral-soft); color: #8d1e30; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }
.contact-list { margin: 0 0 2rem; display: grid; gap: 1.1rem; }
.contact-list dt { font-weight: 700; color: var(--leaf-deep); font-size: .95rem; }
.contact-list dd { margin: .1rem 0 0; font-size: 1.1rem; }
.map { padding-bottom: 49px; }
.map iframe { display: block; width: 100%; height: 420px; border: 0; }

/* ---------- Footer ---------- */
.site-footer { color: #d6dbef; margin-top: -49px; position: relative; z-index: 2; }
.site-footer__wave { display: block; width: 100%; height: 50px; }
.site-footer__body { background: var(--ink); padding: 2.5rem 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr .8fr; gap: 2rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-name { font: 800 1.5rem var(--font-display); color: #fff; margin-bottom: .5rem; }
.footer-small { font-size: .9rem; opacity: .8; }
.footer-h { font-size: 1.1rem; color: var(--sun); margin-bottom: .7rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: .3rem; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.14); margin-top: 2.2rem; padding-top: 1.2rem; font-size: .92rem; }
.footer-bottom p { margin: 0; }
.wa-float { position: fixed; right: 1.2rem; bottom: 1.2rem; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 8px 20px rgba(0,0,0,.2); z-index: 40; }
.wa-float:hover { color: #fff; background: #1ebe5a; }

/* ---------- Mandatory disclosure ---------- */
.btn--small { font-size: .95rem; padding: .6rem 1.1rem .5rem; }
.disc__layout { display: grid; grid-template-columns: 230px 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.disc-nav { position: sticky; top: 100px; }
.disc-nav__h { font-family: var(--font-display); font-weight: 700; color: var(--ink); margin-bottom: .5rem; }
.disc-nav ol { list-style: none; padding: 0; margin: 0 0 1.3rem; counter-reset: dn; border-left: 3px solid var(--line); }
.disc-nav li { counter-increment: dn; }
.disc-nav a { display: block; padding: .35rem 0 .35rem 1rem; margin-left: -3px; border-left: 3px solid transparent; color: var(--text); text-decoration: none; }
.disc-nav a::before { content: counter(dn, upper-alpha) ". "; font-weight: 700; color: var(--sun-deep); }
.disc-nav a:hover { border-color: var(--sun); color: var(--ink); }
@media (max-width: 900px) { .disc__layout { grid-template-columns: 1fr; } .disc-nav { position: static; } }

.disc-meta { color: var(--muted); margin-bottom: 2rem; }
.disc-h { display: flex; align-items: center; gap: .8rem; margin: 2.8rem 0 1rem; scroll-margin-top: 100px; font-size: clamp(1.4rem, 2.4vw, 1.8rem); }
.disc-meta + .disc-h { margin-top: 0; }
.disc-h__letter { display: grid; place-items: center; flex: none; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--sun); color: var(--ink); font-size: 1.25rem; }
.disc-sub { margin: 1.8rem 0 .7rem; font-size: 1.2rem; }
.disc-scroll { overflow-x: auto; }
.disc-table { width: 100%; border-collapse: collapse; font-size: 1rem; min-width: 520px; border: 1px solid #b9c4d8; }
.disc-table th, .disc-table td { text-align: left; padding: .75rem 1rem; border: 1px solid #b9c4d8; vertical-align: top; }
.disc-table thead th { background: var(--ink); color: #fff; font-weight: 600; font-size: .95rem; border-color: #3a4677; }
.disc-table tbody th { font-weight: 500; color: var(--text); width: 55%; }
.disc-table tbody tr:nth-child(even) { background: var(--tint); }
.disc-table--results tbody td { white-space: nowrap; }
.disc-sl { width: 5rem; white-space: nowrap; color: var(--muted); }
.disc-subrow th { padding-left: 2.2rem !important; color: var(--muted) !important; }
.disc-na { color: var(--muted); }
.disc-doc { font-weight: 600; white-space: nowrap; }
.disc-note { font-size: .95rem; color: var(--muted); background: var(--sun-soft); border-radius: var(--r-sm); padding: .8rem 1rem; margin-top: 1rem; }

@media print {
  .disc-nav, .banner__hills { display: none; }
  .disc__layout { display: block; }
  .disc-table thead th { background: #eee; color: #000; border-color: #999; }
  .disc-table th, .disc-table td { border-color: #999; }
  .disc-doc::after { content: " (" attr(href) ")"; font-weight: 400; font-size: .8em; word-break: break-all; white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  .topbar, .site-header, .site-footer, .wa-float, .hero__sky, .banner__sky { display: none; }
}

@media (max-width: 560px) {
  .topbar { font-size: .82rem; }
  .topbar__contact a[href^="mailto:"] { display: none; }
  .topbar__admit { padding: .05rem .6rem; line-height: 1.35; }
  .brand__name { font-size: 1.2rem; }
  .brand__mark { width: 38px; height: 38px; }
  .site-header__in { min-height: 66px; }
}
