@import url("https://use.typekit.net/cvn7dbj.css");
@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@500;600;700&family=Playfair+Display:ital,wght@0,500;0,700;1,500&family=Montserrat:wght@400;500;600;700&display=swap');

/* ---------- brand tokens (sampled from "The First Five" invite) ---------- */
:root {
  --navy: #0c2a57;
  --navy-deep: #081d3e;
  --green: #5a8a5f;
  --green-deep: #0f4d3a;
  --amber: #f2a01c;
  --amber-gold: #c98f2c;
  --blue: #3f83c6;
  --red: #ee4b36;
  --cream: #faf3e5;
  --paper: #f4e8d2;
  --ink: #14233d;
  --muted: #5b6577;
  --white: #ffffff;
  --radius: 26px;
  --shadow: 0 14px 34px -18px rgba(12, 42, 87, .35);
  --font-display: 'Fredoka', 'Montserrat', system-ui, sans-serif;
  --font-serif: 'ivymode', 'Playfair Display', Georgia, serif;
  --font-body: 'Montserrat', system-ui, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
/* native smooth scrolling only when Lenis is not running (Lenis does its own smoothing) */
html:not(.lenis) { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; color: var(--navy); }
h1, h2 { font-family: var(--font-serif); font-weight: 400; }
h3 { font-family: var(--font-display); font-weight: 600; }
p { margin: 0 0 1em; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
section { position: relative; padding: clamp(56px, 8vw, 100px) 0; }
.eyebrow {
  font: 600 13px/1 var(--font-body);
  letter-spacing: .22em; text-transform: uppercase; color: var(--amber-gold);
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 14px;
}
.eyebrow::before, .eyebrow::after { content: ""; width: 26px; height: 3px; border-radius: 3px; background: currentColor; opacity: .7; }
.section-title { font-size: clamp(2rem, 4.2vw, 2.9rem); text-align: center; margin-bottom: .3em; }
.section-lead { text-align: center; color: var(--muted); max-width: 640px; margin: 0 auto 40px; }
.italic-gold { font-style: italic; color: var(--amber-gold); }
.muted { color: var(--muted); }
.empty { text-align: center; color: var(--muted); padding: 24px; border: 2px dashed var(--paper); border-radius: var(--radius); }

/* ---------- buttons ---------- */
.btn {
  --bg: var(--red); --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; white-space: nowrap;
  font: 700 15px/1 var(--font-body); letter-spacing: .02em;
  padding: 16px 28px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--bg); color: var(--fg); text-decoration: none;
  box-shadow: 0 10px 22px -12px var(--bg);
  transition: transform .25s cubic-bezier(.34, 1.56, .64, 1), box-shadow .25s, filter .25s;
}
.btn:hover { transform: translateY(-3px) rotate(-1deg); box-shadow: 0 16px 28px -14px var(--bg); filter: saturate(1.1); }
.btn:active { transform: scale(.97); }
.btn.ghost { --bg: transparent; --fg: var(--navy); box-shadow: none; border: 2px solid var(--navy); }
.btn.ghost:hover { background: var(--navy); color: #fff; }
.btn.navy { --bg: var(--navy); }
.btn.green { --bg: var(--green); }
.btn.blue { --bg: var(--blue); }
.btn.amber { --bg: var(--amber); --fg: var(--navy); }
.btn.wa { --bg: #25a154; }
.btn[disabled] { opacity: .6; cursor: wait; transform: none; }

/* ---------- loader ---------- */
#loader {
  position: fixed; inset: 0; z-index: 999; overflow: hidden;
}
/* the cream paper that curls away from the bottom-right corner (clip-path set per frame in site.js) */
#loader .sheet-front {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 40%, #fffdf7 0%, var(--cream) 55%, #f3e6cc 100%);
}
/* the curled-back flap: the reverse of the paper, with a soft shadow along the fold */
/* the sheet lifts away upward, like a page being unfolded */
.ld-stage { display: grid; justify-items: center; gap: 6px; text-align: center; padding: 20px; }
.ld-plane { width: min(320px, 78vw); }
.ld-plane svg { width: 100%; height: auto; overflow: visible; display: block; }
/* plane, trail and loader motion are driven by GSAP in site.js */
.plane-doodle { transform-origin: 60% 60%; }
.plane-doodle .trail { stroke-dasharray: 10 12; }
.plane-doodle .plane { transform-box: fill-box; transform-origin: center; }
@keyframes fly-in { from { opacity: 0; transform: translate(-70px, 60px) scale(.5) rotate(-12deg); } to { opacity: 1; transform: none; } }
@keyframes draw-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes march { to { stroke-dashoffset: -22; } }
@keyframes plane-bob { 0%, 100% { transform: translate(0, 0) rotate(0); } 50% { transform: translate(0, -8px) rotate(-2deg); } }
.loader-word { font: 600 clamp(2.4rem, 8vw, 4.2rem)/1 var(--font-display); display: flex; margin-top: 8px; letter-spacing: .01em; }
.loader-word span { display: inline-block; opacity: 0; }
.loader-word span:nth-child(5n+1) { color: var(--navy); }
.loader-word span:nth-child(5n+2) { color: var(--green); }
.loader-word span:nth-child(5n+3) { color: var(--amber); }
.loader-word span:nth-child(5n+4) { color: var(--blue); }
.loader-word span:nth-child(5n+5) { color: var(--red); }
@keyframes rise { from { opacity: 0; transform: translateY(40px) rotate(6deg); } to { opacity: 1; transform: none; } }
.ld-tag { font-family: var(--font-serif); font-size: clamp(1.05rem, 2.6vw, 1.35rem); color: var(--navy); margin: 6px 0 22px; opacity: 0; }
.ld-tag em { color: var(--amber-gold); }
.ld-bar { width: 180px; height: 3px; border-radius: 3px; background: var(--paper); overflow: hidden; opacity: 0; }
.ld-bar i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--amber), var(--red)); border-radius: 3px; transform-origin: left center; }
/* if GSAP fails to load, show the loader content statically */
#loader.no-gsap .loader-word span, #loader.no-gsap .ld-tag, #loader.no-gsap .ld-bar { opacity: 1; }
@keyframes fill { to { width: 100%; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* hero paper-plane trail */
.hero .wrap { position: relative; z-index: 1; }
.plane-trail { position: absolute; right: 0; top: -2%; width: min(300px, 42%); z-index: 0; pointer-events: none; opacity: .95; }
.plane-trail svg { width: 100%; height: auto; overflow: visible; }
@media (max-width: 960px) { .plane-trail { width: 150px; right: 4px; top: auto; bottom: 6px; } }
@media (prefers-reduced-motion: reduce) { .ld-plane *, .plane-doodle *, .loader-word span, .ld-tag, .ld-bar i { animation: none !important; opacity: 1 !important; width: auto; } .ld-bar i { width: 100%; } }

/* ---------- header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: transparent;
  transition: box-shadow .3s, background .3s;
}
/* once the page is scrolled past the banner, the header sticks to the top */
.site-header.stuck {
  position: fixed; background: rgba(253, 250, 244, .92); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(12, 42, 87, .08);
}
.site-header.scrolled { box-shadow: 0 8px 24px -16px rgba(12, 42, 87, .4); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 78px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-word { font: 600 30px/1 var(--font-display); letter-spacing: .01em; display: flex; }
.brand-word span { display: inline-block; transition: transform .3s cubic-bezier(.34, 1.56, .64, 1); }
.brand-word span:nth-child(5n+1) { color: var(--navy); }
.brand-word span:nth-child(5n+2) { color: var(--green); }
.brand-word span:nth-child(5n+3) { color: var(--amber); }
.brand-word span:nth-child(5n+4) { color: var(--blue); }
.brand-word span:nth-child(5n+5) { color: var(--red); }
.brand:hover .brand-word span { transform: translateY(-4px) rotate(-6deg); }
.brand-sub { font: 600 10px/1 var(--font-body); letter-spacing: .3em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
.brand-mark { width: 40px; height: 40px; flex: none; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  font: 600 14px/1 var(--font-body); color: var(--navy); text-decoration: none;
  padding: 10px 9px; border-radius: 999px; position: relative; white-space: nowrap;
}
.nav a::after {
  content: ""; position: absolute; left: 50%; bottom: 4px; width: 0; height: 3px; border-radius: 3px;
  background: var(--amber); transform: translateX(-50%); transition: width .3s;
}
.nav a:hover::after, .nav a[aria-current="page"]::after { width: 60%; }
.header-cta { display: flex; align-items: center; gap: 12px; }
.header-cta .btn { padding: 12px 20px; font-size: 14px; }
.menu-btn {
  display: none; width: 46px; height: 46px; border-radius: 16px; border: 2px solid var(--navy);
  background: transparent; cursor: pointer; align-items: center; justify-content: center;
}
.menu-btn span, .menu-btn::before, .menu-btn::after {
  content: ""; display: block; width: 20px; height: 2.5px; background: var(--navy); border-radius: 3px;
  transition: transform .3s, opacity .3s;
}
.menu-btn { flex-direction: column; gap: 5px; }
.menu-open .menu-btn span { opacity: 0; }
.menu-open .menu-btn::before { transform: translateY(7.5px) rotate(45deg); }
.menu-open .menu-btn::after { transform: translateY(-7.5px) rotate(-45deg); }
.mobile-drawer {
  display: none; position: fixed; inset: 78px 0 0 0; background: var(--cream); z-index: 60;
  padding: 24px 16px; overflow-y: auto;
  transform: translateY(-12px); opacity: 0; transition: .35s ease;
}
.menu-open .mobile-drawer { transform: none; opacity: 1; }
.menu-open .mobile-drawer { display: block; }
.mobile-drawer a {
  display: flex; justify-content: space-between; align-items: center;
  font: 600 22px/1.2 var(--font-display); color: var(--navy); text-decoration: none;
  padding: 18px 6px; border-bottom: 1px dashed rgba(12, 42, 87, .2);
}
.mobile-drawer svg { width: 20px; height: 20px; flex: none; }
.mobile-drawer a.btn { color: #fff; border-bottom: 0; justify-content: center; font: 600 16px/1.2 var(--font-body); padding: 16px 20px; }
.notice-bar { background: var(--navy); color: #fff; text-align: center; font-size: 14px; padding: 10px 16px; }

/* Mobile bottom bar: one bar, Enroll + Call + WhatsApp */
.bottom-bar { display: none; }

/* ---------- hero ---------- */
.hero { padding: clamp(40px, 7vw, 90px) 0 clamp(60px, 9vw, 110px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); letter-spacing: -.01em; }
.hero-tagline { font-family: var(--font-serif); font-size: clamp(1.3rem, 2.6vw, 1.7rem); color: var(--navy); margin-bottom: 26px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-art { position: relative; min-height: 420px; }
.hero-banner {
  position: relative; border-radius: 48px 48px 48px 14px; overflow: hidden;
  box-shadow: var(--shadow); aspect-ratio: 4 / 4.4; background: var(--paper);
  transform: rotate(1.5deg); transition: transform .6s cubic-bezier(.34, 1.56, .64, 1);
}
.hero-banner:hover { transform: rotate(0) scale(1.02); }
.hero-banner img { width: 100%; height: 100%; object-fit: cover; will-change: transform; }
.paper-curl {
  position: absolute; right: -14px; bottom: -14px; width: 34%; height: 26%;
  background: linear-gradient(200deg, transparent 0 46%, #fffaf0 46% 100%);
  border-radius: 0 0 46px 0; box-shadow: -8px -6px 22px -14px rgba(12,42,87,.45);
  pointer-events: none;
}
.hero-title-card {
  position: absolute; left: -8px; bottom: 24px; background: #fff; padding: 16px 20px;
  border-radius: 22px; box-shadow: var(--shadow); transform: rotate(-3deg);
  animation: float 6s ease-in-out infinite;
}
.hero-title-card strong { display: block; font: 600 20px/1.1 var(--font-display); color: var(--navy); }
.hero-title-card small { color: var(--red); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: 11px; }
.hero-fallback { display: grid; place-items: center; width: 100%; height: 100%; background: linear-gradient(150deg, #fff7e6, #f9d9b8 60%, #f5b7a2); }
.illus { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-fallback .illus { object-fit: cover; width: 100%; height: 100%; }
.hero-fallback .sun-art { width: 70%; }

/* floating decorative shapes */
.float { position: absolute; pointer-events: none; animation: float 7s ease-in-out infinite; }
.float.slow { animation-duration: 10s; }
.float.fast { animation-duration: 5s; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-16px) rotate(4deg); } }
@keyframes drift { 0% { transform: translateX(-30px); } 50% { transform: translateX(30px); } 100% { transform: translateX(-30px); } }
.cloud { animation: drift 14s ease-in-out infinite; }
.sparkle { animation: twinkle 3s ease-in-out infinite; }
@keyframes twinkle { 0%, 100% { opacity: .35; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.15); } }
.dash-path { stroke-dasharray: 6 8; animation: dash 18s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -400; } }

/* ---------- welcome / text blocks ---------- */
.lead-card {
  background: #fff; border-radius: var(--radius); padding: clamp(28px, 4vw, 48px);
  box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.lead-card::after {
  content: ""; position: absolute; width: 180px; height: 180px; right: -60px; top: -60px;
  border-radius: 50%; background: radial-gradient(circle, rgba(242,160,28,.28), transparent 70%);
}
.prose p { font-size: 1.05rem; color: #2e3a52; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }

/* ---------- film / video ---------- */
.video-window {
  position: relative; border-radius: var(--radius); overflow: hidden; background: var(--navy-deep);
  aspect-ratio: 16 / 9; box-shadow: var(--shadow); display: grid; place-items: center; color: #fff;
  transition: transform .4s cubic-bezier(.34,1.56,.64,1);
}
.video-window:hover { transform: scale(1.01); }
.video-window iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.play-btn {
  width: 92px; height: 92px; border-radius: 50%; background: var(--amber); border: 0; cursor: pointer;
  display: grid; place-items: center; box-shadow: 0 0 0 0 rgba(242,160,28,.6); animation: pulse 2.2s infinite;
}
.play-btn svg { width: 34px; margin-left: 6px; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(242,160,28,.6); } 70%, 100% { box-shadow: 0 0 0 26px rgba(242,160,28,0); } }
.video-caption { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; font: 600 16px var(--font-display); }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--navy); color: #fff; border-radius: 40px; padding: clamp(36px, 5vw, 60px);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
  position: relative; overflow: hidden; margin-inline: 0;
}
.cta-band h2 { color: #fff; font-family: var(--font-display); font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 600; margin: 0; }
.cta-band p { color: #d9e3f3; margin: 6px 0 0; max-width: 520px; }
.cta-band::before, .cta-band::after { content: ""; position: absolute; border-radius: 50%; opacity: .18; }
.cta-band::before { width: 260px; height: 260px; right: -60px; top: -90px; background: var(--amber); }
.cta-band::after { width: 180px; height: 180px; left: -60px; bottom: -80px; background: var(--green); }

/* ---------- cards ---------- */
.grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card {
  background: #fff; border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow);
  position: relative; transition: transform .35s cubic-bezier(.34,1.56,.64,1), box-shadow .35s;
  border: 2px solid transparent;
}
.card:hover { transform: translateY(-8px) rotate(-.6deg); box-shadow: 0 26px 40px -22px rgba(12,42,87,.5); }
.card.tilt:nth-child(even):hover { transform: translateY(-8px) rotate(.6deg); }
.card .icon-bubble {
  width: 62px; height: 62px; border-radius: 20px 20px 20px 6px; display: grid; place-items: center; margin-bottom: 16px;
  color: #fff; transition: transform .4s cubic-bezier(.34,1.56,.64,1);
}
.card:hover .icon-bubble { transform: rotate(-10deg) scale(1.08); }
.icon-bubble svg { width: 30px; height: 30px; }
.c-amber { --c: var(--amber); } .c-blue { --c: var(--blue); } .c-green { --c: var(--green); } .c-red { --c: var(--red); } .c-navy { --c: var(--navy); }
.card-accent { border-top: 8px solid var(--c, var(--amber)); }
.card .icon-bubble { background: var(--c, var(--amber)); }
.card p { color: var(--muted); font-size: .97rem; }
.tag { display: inline-block; font: 700 12px/1 var(--font-body); padding: 7px 12px; border-radius: 999px; background: var(--paper); color: var(--navy); letter-spacing: .04em; }
.tag.c-amber { background: #fdebc7; } .tag.c-blue { background: #d9e9f8; } .tag.c-green { background: #dbeedd; } .tag.c-red { background: #fbd8d1; }

/* programme carousel */
.carousel { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 12px 4px 28px; scrollbar-width: thin; }
.carousel > * { flex: 0 0 min(330px, 82%); scroll-snap-align: start; }
.prog-card { display: flex; flex-direction: column; height: 100%; }
.prog-card .img { border-radius: 22px; overflow: hidden; aspect-ratio: 4 / 3; margin-bottom: 18px; background: var(--paper); }
.prog-card .img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.prog-card:hover .img img { transform: scale(1.08) rotate(1deg); }
.prog-card .meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 14px; }
.prog-card ul { padding-left: 18px; margin: 0 0 18px; color: var(--muted); font-size: .95rem; }
.prog-card .btn { margin-top: auto; align-self: flex-start; }
.placeholder-art { width: 100%; height: 100%; display: grid; place-items: center; background: linear-gradient(135deg, var(--paper), #fff); }
.placeholder-art svg { width: 55%; opacity: .9; }

/* activity / facility tiles */
.tile { border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--shadow); transition: transform .35s; }
.tile:hover { transform: translateY(-6px); }
.tile .img { aspect-ratio: 16/10; background: var(--paper); overflow: hidden; }
.tile .img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.tile:hover .img img { transform: scale(1.06); }
.tile .body { padding: 22px 24px 26px; }
.tile p { color: var(--muted); font-size: .95rem; margin: 0; }

/* events */
.event-list { display: grid; gap: 18px; }
.event-item {
  display: grid; grid-template-columns: 96px 1fr; gap: 20px; align-items: center; background: #fff;
  border-radius: 28px; padding: 16px 20px 16px 16px; box-shadow: var(--shadow); transition: transform .3s;
}
.event-item:hover { transform: translateX(6px); }
.date-badge {
  background: var(--red); color: #fff; border-radius: 22px 22px 22px 6px; text-align: center; padding: 12px 6px;
  font-family: var(--font-display);
}
.date-badge b { display: block; font-size: 2.3rem; line-height: 1; }
.date-badge span { font-size: .8rem; text-transform: uppercase; letter-spacing: .14em; font-family: var(--font-body); font-weight: 700; }
.event-item:nth-child(2n) .date-badge { background: var(--blue); }
.event-item:nth-child(3n) .date-badge { background: var(--green); }
.event-item h3 { margin-bottom: 4px; }

/* news */
.news-item { border-left: 6px solid var(--c, var(--amber)); }
.news-item .meta { font-size: .85rem; color: var(--muted); margin-bottom: 8px; }
.news-item.featured { background: var(--navy); color: #fff; }
.news-item.featured h3, .news-item.featured p { color: #fff; }
.news-item.featured .meta { color: #cbd6ea; }

/* testimonials */
.quote-card { background: #fff; border-radius: 30px; padding: 30px; box-shadow: var(--shadow); position: relative; }
.quote-card::before {
  content: "“"; font: 700 88px/1 var(--font-serif); color: var(--amber); position: absolute; top: 4px; left: 20px; opacity: .5;
}
.quote-card blockquote { margin: 26px 0 16px; font-family: var(--font-serif); font-style: italic; font-size: 1.12rem; color: var(--navy); }
.quote-card .who { font-weight: 700; color: var(--navy); font-size: .95rem; }
.quote-card .who small { display: block; color: var(--muted); font-weight: 500; }

/* gallery */
.masonry { columns: 3 240px; column-gap: 16px; }
.masonry figure { break-inside: avoid; margin: 0 0 16px; position: relative; border-radius: 22px; overflow: hidden; cursor: zoom-in; background: var(--paper); }
.masonry img { width: 100%; height: auto; transition: transform .6s, filter .4s; }
.masonry figure:hover img { transform: scale(1.06); filter: saturate(1.15); }
.masonry figcaption {
  position: absolute; left: 12px; right: 12px; bottom: 12px; background: rgba(255,255,255,.95); padding: 8px 12px;
  border-radius: 14px; font-size: 13px; font-weight: 600; color: var(--navy); transform: translateY(160%); transition: transform .35s;
}
.masonry figure:hover figcaption { transform: none; }
.cat-card { display: block; border-radius: var(--radius); overflow: hidden; position: relative; text-decoration: none; color: #fff; aspect-ratio: 4 / 4.2; box-shadow: var(--shadow); background: var(--navy); }
.cat-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.cat-card:hover img { transform: scale(1.08); }
.cat-card .label { position: absolute; left: 14px; right: 14px; bottom: 14px; background: rgba(12,42,87,.92); padding: 16px 18px; border-radius: 20px; }
.cat-card .label h3 { color: #fff; margin: 0; font-size: 1.3rem; }
.cat-card .label p { margin: 4px 0 0; font-size: .85rem; color: #d9e3f3; }
.album { margin-bottom: 56px; }
.album-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 12px; margin-bottom: 18px; }
.album-head h2 { margin: 0; font-size: 2rem; }
.lightbox {
  position: fixed; inset: 0; background: rgba(8, 29, 62, .92); z-index: 200; display: none;
  align-items: center; justify-content: center; padding: 24px;
}
.lightbox.open { display: flex; animation: fadeIn .3s; }
.lightbox img { max-width: 100%; max-height: 82vh; border-radius: 24px; box-shadow: 0 30px 60px -20px #000; }
.lightbox .cap { position: absolute; bottom: 20px; left: 0; right: 0; text-align: center; color: #fff; font-weight: 600; }
.lightbox button { position: absolute; top: 16px; right: 16px; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--amber); font-size: 22px; cursor: pointer; color: var(--navy); font-weight: 700; }
.lightbox .nav-arrow { top: 50%; transform: translateY(-50%); right: auto; left: 16px; }
.lightbox .nav-arrow.next { left: auto; right: 16px; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* forms */
.form-card { background: #fff; border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
label { display: block; font: 600 13px/1.2 var(--font-body); color: var(--navy); margin-bottom: 7px; }
input, select, textarea {
  width: 100%; font: 500 15px var(--font-body); color: var(--ink); padding: 14px 16px; border-radius: 16px;
  border: 2px solid var(--paper); background: var(--cream); transition: border-color .2s, box-shadow .2s;
}
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(63,131,198,.18); background: #fff; }
.hp { position: absolute !important; left: -9999px; opacity: 0; height: 0; width: 0; }
.form-msg { margin-top: 14px; padding: 14px 16px; border-radius: 16px; font-weight: 600; display: none; }
.form-msg.ok { display: block; background: #dbeedd; color: var(--green-deep); }
.form-msg.err { display: block; background: #fbd8d1; color: #8a1f12; }
.captcha-row { display: flex; gap: 10px; align-items: center; }
.captcha-row input { max-width: 140px; }
.captcha-q { font: 600 15px var(--font-display); color: var(--navy); background: var(--paper); padding: 13px 16px; border-radius: 16px; white-space: nowrap; }

/* steps / prose lists */
.steps { counter-reset: step; display: grid; gap: 14px; padding: 0; list-style: none; }
.steps li {
  counter-increment: step; display: flex; gap: 16px; align-items: center; background: #fff; border-radius: 22px;
  padding: 16px 20px; box-shadow: var(--shadow);
}
.steps li::before {
  content: counter(step); flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  font: 600 20px var(--font-display); color: #fff; background: var(--c, var(--navy));
}
.steps li:nth-child(4n+1) { --c: var(--navy); } .steps li:nth-child(4n+2) { --c: var(--green); }
.steps li:nth-child(4n+3) { --c: var(--amber); } .steps li:nth-child(4n) { --c: var(--red); }
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { padding: 10px 0 10px 34px; position: relative; border-bottom: 1px dashed rgba(12,42,87,.15); }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 12px; width: 22px; height: 22px; border-radius: 50%; background: var(--green);
  box-shadow: inset 0 0 0 5px #fff;
}
details.faq { background: #fff; border-radius: 22px; padding: 18px 22px; margin-bottom: 12px; box-shadow: var(--shadow); }
details.faq summary { font: 600 17px/1.3 var(--font-display); color: var(--navy); cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
details.faq summary::after { content: "+"; font-size: 26px; color: var(--red); transition: transform .3s; line-height: 1; }
details.faq[open] summary::after { transform: rotate(45deg); }
details.faq p { margin: 12px 0 0; color: var(--muted); }

/* contact */
.contact-row { display: flex; gap: 16px; align-items: center; padding: 18px; background: #fff; border-radius: 24px; box-shadow: var(--shadow); text-decoration: none; color: var(--ink); transition: transform .3s; }
.contact-row:hover { transform: translateX(6px); }
.contact-row .icon-bubble { margin: 0; width: 56px; height: 56px; flex: none; }
.contact-row strong { display: block; color: var(--navy); }
.map-frame { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4/3; background: var(--paper); }
.map-frame iframe { width: 100%; height: 100%; border: 0; }

/* school info */
.info-section { scroll-margin-top: 110px; }
.info-box { background: #fff; border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.policy-links a { display: flex; justify-content: space-between; padding: 16px 0; border-bottom: 1px dashed rgba(12,42,87,.18); color: var(--navy); font-weight: 600; text-decoration: none; }
.policy-links a:hover { color: var(--red); }
.fee-note { padding: 16px 18px; border-radius: 18px; background: #fdebc7; color: #6b4a0d; font-weight: 500; }

/* policy pages */
.doc { max-width: 820px; margin: 0 auto; background: #fff; border-radius: var(--radius); padding: clamp(28px, 5vw, 56px); box-shadow: var(--shadow); }

/* footer */
.site-footer { background: var(--navy); color: #d9e3f3; padding: 32px 0 20px; margin-top: 40px; position: relative; overflow: hidden; }
.site-footer::before { content: ""; position: absolute; width: 380px; height: 380px; right: -120px; top: -180px; border-radius: 50%; background: radial-gradient(circle, rgba(242,160,28,.25), transparent 70%); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; position: relative; }
.site-footer h4 { color: #fff; font: 600 18px var(--font-display); margin: 0 0 14px; }
.site-footer a { color: #d9e3f3; text-decoration: none; display: block; padding: 4px 0; transition: color .2s, transform .2s; }
.site-footer a:hover { color: var(--amber); transform: translateX(4px); }
.site-footer .inline-ico { width: 18px; height: 18px; vertical-align: -3px; margin-right: 8px; flex: none; }
.site-footer .brand-word span { color: inherit; }
.site-footer .brand-word span:nth-child(5n+1) { color: #fff; }
.site-footer .brand-word span:nth-child(5n+2) { color: #9fd0a8; }
.site-footer .brand-word span:nth-child(5n+3) { color: var(--amber); }
.site-footer .brand-word span:nth-child(5n+4) { color: #8ec2ef; }
.site-footer .brand-word span:nth-child(5n+5) { color: #ff8f7d; }
.socials { display: flex; gap: 10px; margin-top: 16px; }
.socials a { width: 42px; height: 42px; border-radius: 14px; background: rgba(255,255,255,.1); display: grid; place-items: center; padding: 0; }
.socials a:hover { background: var(--amber); color: var(--navy); transform: rotate(-8deg) scale(1.08); }
.footer-bottom { margin-top: 12px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 14px; position: relative; }

/* ---------- page turn (paper fold between pages) ---------- */
/* Book-page corner curl. The sheet is clipped to the part still lying flat; the
   folded-back corner (.flap) is drawn in its reflected position, so the paper
   visibly curls up over itself and reveals what is underneath. JS drives --c. */
.turn-root { position: fixed; inset: 0; z-index: 400; pointer-events: none; overflow: hidden; }
.turn-root .under { position: absolute; inset: 0; background: var(--cream); }
.turn-root .under svg { width: 100%; height: 100%; display: block; }
.turn-root .turn-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.turn-root .sheet {
  background:
    radial-gradient(ellipse at 20% 10%, rgba(255,255,255,.55), transparent 50%),
    linear-gradient(170deg, #fffaf0 0%, #faf3e5 55%, #f3e7d0 100%);
}
.turn-root .flap {
  /* the back of the paper: a little warmer and darker, like the reverse of the sheet */
  background: linear-gradient(315deg, #fffdf7 0%, #f3e8d0 45%, #e6d2ab 100%);
  filter: drop-shadow(0 6px 10px rgba(12, 42, 87, .18));
}
/* the new page fades up softly after the fold */
body.arrived main { animation: page-in .7s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes page-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* scroll reveal */
.reveal { opacity: 0; transform: translateY(34px); }
.reveal.in { opacity: 1; transform: none; }
.reveal-left { opacity: 0; transform: translateX(-40px); }
.reveal-left.in { opacity: 1; transform: none; }
.reveal-zoom { opacity: 0; transform: scale(.92); }
.reveal-zoom.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal, .reveal-left, .reveal-zoom { opacity: 1; transform: none; }
}

.skeleton { background: linear-gradient(90deg, var(--paper) 25%, #fff 50%, var(--paper) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: 20px; min-height: 120px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- responsive ---------- */
@media (max-width: 1140px) {
  .nav, .header-cta .btn-desktop { display: none; }
  .menu-btn { display: flex; }
  .hero-grid, .split { grid-template-columns: 1fr; }
  .hero-art { min-height: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .masonry { columns: 2 200px; }
}
@media (max-width: 720px) {
  body { padding-bottom: 92px; }
  .wrap { width: calc(100% - 32px); }
  .header-inner { height: 76px; }
  .brand-word { font-size: 24px; }
  .brand-sub { display: none; }
  .mobile-drawer { inset: 76px 0 0 0; }
  .bottom-bar {
    display: flex; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 70; gap: 10px;
    background: #fff; border-radius: 28px; padding: 10px; box-shadow: 0 16px 40px -14px rgba(12,42,87,.5);
  }
  .bottom-bar .btn { flex: 1; padding: 14px 12px; font-size: 14px; }
  .bottom-bar .round { flex: 0 0 52px; width: 52px; height: 52px; padding: 0; border-radius: 50%; background: transparent; color: var(--navy); border: 2px solid var(--paper); box-shadow: none; }
  .bottom-bar .round.wa { color: #25a154; border-color: #cfe9d9; }
  .bottom-bar .round:hover { transform: scale(1.06); }
  .bottom-bar svg { width: 22px; height: 22px; }
  .section-title { font-size: 2rem; }
  .form-grid { grid-template-columns: 1fr; }
  .cta-band { border-radius: 30px; }
  .event-item { grid-template-columns: 78px 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .card:hover, .tile:hover { transform: none; }
  .carousel > * { flex-basis: 84%; }
  .masonry { columns: 2 150px; column-gap: 10px; }
  .masonry figure { margin-bottom: 10px; border-radius: 18px; }
  .hero-title-card { left: 4px; }
  .hero-banner { transform: none; border-radius: 34px 34px 34px 10px; }
}

#scroll-plane { position: fixed; left: 0; top: 0; width: 84px; z-index: 40; pointer-events: none; will-change: transform; }
#scroll-plane img { width: 100%; height: auto; display: block; mix-blend-mode: multiply; }
#scroll-plane svg { width: 100%; height: auto; overflow: visible; display: block; }
@media (max-width: 899px) { #scroll-plane { display: none; } }

/* ---------- page fold: curled bottom-right corner on every page ---------- */

/* ---------- page curl: canvas-painted roll, shared by page changes and the footer fold ---------- */

/* ---------- page curl from reference frames (public/img/curl) ---------- */
#loader .sheet-front { transition: none; }
#loader .curl-frame { position: absolute; right: 0; bottom: 0; height: 100vh; width: auto; max-width: none; pointer-events: none; display: none; }
#loader.mirror .curl-frame { left: 0; right: auto; transform: scaleX(-1); }
#page-fold { position: fixed; right: 0; bottom: 0; width: 26vw; max-width: 340px; z-index: 35; pointer-events: none; }
#page-fold img { width: 100%; height: auto; display: block; }

/* the footer fold is hidden while a page turns, so it shows once */
body.turning #page-fold { display: none; }
/* arrival: frames turned 180 degrees, anchored top-left, so the reveal runs bottom-right to top-left */
#loader.rot .curl-frame { top: 0; bottom: auto; left: 0; right: auto; transform: rotate(180deg); }

/* first-visit loader art (from the reference illustration) */
#loader .ld-still { width: min(560px, 86vw); height: auto; display: block; mix-blend-mode: multiply; }

/* ---------- home: full-width video banner with the menu overlaid ---------- */
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero-shade { position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(0, 0, 0, .5) 0%, rgba(0, 0, 0, .25) 55%, rgba(0, 0, 0, .05) 100%); }
.hero-copy { position: relative; z-index: 2; max-width: 720px; }
.hero-video h1 { color: #fff; }
.hero-video .italic-gold { color: #f5c542; }
.hero-video .eyebrow { color: #f5c542; }
.hero-video .hero-tagline { color: #fff; }
.hero-video .hero-sub { color: rgba(255, 255, 255, .88); max-width: 520px; font-size: 1.05rem; margin-top: 10px; }
.hero-video .btn.ghost { color: #fff; border-color: rgba(255, 255, 255, .8); }
/* menu over the video, on the home page only; once stuck it turns into the normal cream header */

/* logo */
.brand-logo { height: 72px; width: auto; display: block; }
/* home header: a cream pill floating over the top of the banner; a full bar once stuck */
body[data-page="home"] .site-header:not(.stuck) .header-inner { height: 80px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
@media (min-width: 1000px) { body[data-page="home"] .site-header:not(.stuck) .brand { justify-self: start; } body[data-page="home"] .site-header:not(.stuck) .nav { justify-self: center; } body[data-page="home"] .site-header:not(.stuck) .header-cta { justify-self: end; } }
body[data-page="home"] .site-header:not(.stuck) .brand-logo { height: 64px; }
/* compact home menu: smaller pill so the banner text stays clear */
body[data-page="home"] .site-header:not(.stuck) .nav a { font-size: 15px; padding: 9px 10px; }
body[data-page="home"] .site-header:not(.stuck) .header-cta .btn { padding: 11px 20px; font-size: 15px; }
body[data-page="home"] .site-header:not(.stuck) { top: 40px; left: 50%; right: auto; transform: translateX(-50%); width: 80vw; background: rgba(253, 250, 244, .96); border-radius: 999px; box-shadow: 0 12px 30px -18px rgba(12, 42, 87, .5); }
/* home banner: pinned to the screen; the video opens from a card to full width as you scroll */
.hero-video { position: relative; height: 100vh; height: 100svh; padding: 0; overflow: hidden; background: #faf3e5; color: var(--navy); }
.hero-frame { position: absolute; inset: 0; overflow: hidden; will-change: clip-path; }
.hero-frame .hero-copy { position: absolute; left: 7%; right: auto; top: 0; bottom: 0; display: flex; flex-direction: column; justify-content: center; z-index: 2; padding-top: 0; padding-bottom: 0; max-width: 640px; }
@media (max-width: 700px) { .hero-frame .hero-copy { left: 6%; right: 6%; max-width: none; } }
/* split banner: copy on the left, school photo (the first video frame) on the right.
   On scroll the photo grows to the full banner, the shade and the intro fade in, and the copy fades out. */
.hero-frame .hero-bg { clip-path: inset(0% 0% 0% 50%); }
.hero-frame .hero-shade { opacity: 0; }
.hero-frame .hero-intro, .hero-frame .hero-floats { opacity: 0; }
.hero-frame .hero-copy { max-width: min(560px, 44vw); }
.hero-frame .hero-copy h1 { color: var(--navy); font-size: clamp(2.2rem, 4.4vw, 3.5rem); }
.hero-frame .hero-copy .italic-gold, .hero-frame .hero-copy .eyebrow { color: #d4881a; }
.hero-frame .hero-copy .hero-tagline { color: var(--navy); }
.hero-frame .hero-copy .hero-sub { color: #2b3f5e; }
.hero-frame .hero-copy .btn.ghost { color: var(--navy); border-color: var(--navy); }
@media (max-width: 700px) {
  .hero-frame .hero-bg { clip-path: inset(62% 0% 0% 0%); }
  .hero-frame .hero-copy { top: 96px; bottom: 38%; max-width: none; justify-content: flex-start; }
  .hero-frame .hero-copy h1 { font-size: clamp(1.9rem, 8vw, 2.4rem); }
  .hero-frame .hero-copy .hero-tagline { display: none; }
  .hero-frame .hero-copy .hero-sub { font-size: .92rem; margin-top: 6px; }
  .hero-frame .hero-copy .hero-actions { margin-top: 16px !important; }
}

/* footer: beige to match the page-unfold picture, with navy text */
.site-footer { background: #eee5da; color: #0c2a57; }
.site-footer::before { display: none; }
.site-footer h4 { color: #0c2a57; }
.site-footer a { color: #0c2a57; }
.site-footer a:hover { color: #c77d00; }
.site-footer .footer-bottom { color: rgba(12, 42, 87, .75); border-color: rgba(12, 42, 87, .15); }
.site-footer p, .site-footer .muted { color: #0c2a57; }
#page-fold img { box-shadow: -10px -10px 28px -6px rgba(12, 42, 87, .35); border-radius: 18px 0 0 0; }
.hero-intro { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); z-index: 2; text-align: left; color: #fff; padding: 0 6%; text-shadow: 0 2px 18px rgba(10, 25, 50, .45); }
.hero-intro p { font: 600 clamp(2rem, 6vw, 4.6rem)/1.05 var(--font-display); margin: 0; }
.hero-intro span { display: block; text-align: left; margin-top: 14px; font: 700 13px/1 var(--font-body); letter-spacing: .32em; text-transform: uppercase; color: #f5c542; }
#page-fold { opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility .6s; }
#page-fold.show { opacity: 1; visibility: visible; }
#page-fold img { -webkit-mask-image: radial-gradient(ellipse at 100% 100%, #000 56%, transparent 96%); mask-image: radial-gradient(ellipse at 100% 100%, #000 56%, transparent 96%); box-shadow: none; }
.hero-floats { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hf { position: absolute; display: block; filter: drop-shadow(0 6px 10px rgba(10, 25, 50, .25)); animation: hf-float 6s ease-in-out infinite; }
.hf svg { width: 100%; height: auto; display: block; }
.hf-pencil { width: 92px; right: 6%; top: 22%; transform: rotate(-28deg); }
.hf-eraser { width: 56px; right: 22%; top: 34%; transform: rotate(12deg); animation-delay: -2s; }
.hf-123 { right: 8%; bottom: 24%; transform: rotate(-6deg); background: #f5c542; color: #0c2a57; font: 800 24px/1 var(--font-display); padding: 8px 14px; border-radius: 12px; animation-delay: -1s; }
.hf-abc { right: 22%; bottom: 14%; transform: rotate(8deg); background: #ee4b36; color: #fff; font: 800 15px/1 var(--font-body); letter-spacing: .12em; padding: 8px 11px; border-radius: 9px; animation-delay: -3s; }
.hf-ruler { width: 120px; right: 10%; top: 58%; transform: rotate(-12deg); animation-delay: -4s; }
.hf-star { width: 30px; right: 34%; top: 24%; animation-delay: -2.5s; }
@keyframes hf-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -14px; } }
@media (max-width: 700px) { .hf-ruler, .hf-star { display: none; } .hf-pencil { width: 64px; } .hf-eraser { width: 40px; } }

/* background audio control (every page): a sticky mute / unmute button at the bottom-left */
.audio-toggle { position: fixed; left: 18px; bottom: 18px; z-index: 45; width: 50px; height: 50px; border-radius: 50%; border: 0; cursor: pointer; background: var(--navy, #172b4d); color: #fff; display: grid; place-items: center; box-shadow: 0 12px 26px -12px rgba(12, 42, 87, .6); transition: transform .2s, background .2s; }
.audio-toggle:hover { transform: scale(1.06); }
.audio-toggle svg { width: 22px; height: 22px; grid-area: 1 / 1; }
.audio-toggle .ico-off { display: none; }
.audio-toggle.muted { background: #8a94a8; }
.audio-toggle.muted .ico-on { display: none; }
.audio-toggle.muted .ico-off { display: block; }
@media (max-width: 960px) { .audio-toggle { bottom: 96px; left: 14px; } }

/* One background for the whole site: the cream paper texture, fixed behind every page.
   A fixed layer (not background-attachment: fixed) so it also stays put on iPhone. */
body { background: #fcf8f0; }
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  /* a soft white wash keeps the paper texture but makes it lighter */
  background: linear-gradient(rgba(255, 255, 255, .5), rgba(255, 255, 255, .5)), #fcf8f0 url("../img/bg-cream.jpg") center / cover no-repeat;
}
.site-footer { background: transparent; }
