/* EDIT GUIDE: brand colours and fonts. Sections follow the order in index.html. */
:root {
  --teal: #078b85;
  --teal-dark: #05645f;
  --ink: #263a39;
  --muted: #64706c;
  --cream: #fffaf1;
  --yellow: #f6c65a;
  --heading: "STIX Two Text", Georgia, serif;
  --body: "Inter", Arial, sans-serif;
  --play: "Dosis", sans-serif;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 115px;
}
body {
  margin: 0;
  font-family: var(--body);
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink);
  background: #fff;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
img {
  max-width: 100%;
  display: block;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2,
h3 {
  font-family: var(--heading);
  font-weight: 600;
  line-height: 1.12;
}
h2 {
  font-size: 44px;
  letter-spacing: -1.3px;
  margin: 16px 0 22px;
}
h3 {
  font-size: 26px;
}
p {
  color: var(--muted);
  margin-bottom: 20px;
}
.container {
  width: min(1180px, calc(100% - 80px));
  margin: auto;
}
.section {
  padding: 95px 0;
}
.eyebrow {
  color: var(--teal);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  border: 0;
  background: var(--teal);
  color: white;
  padding: 15px 25px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  transition:
    background 0.2s,
    transform 0.2s;
}
.button:hover {
  background: var(--teal-dark);
  transform: translateY(-2px);
}
.button span {
  font-size: 19px;
  line-height: 1;
}
.text-link {
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.text-link:hover {
  color: var(--teal);
}
.skip-link {
  position: fixed;
  top: -80px;
  left: 15px;
  background: #fff;
  padding: 12px;
  z-index: 100;
}
.skip-link:focus {
  top: 10px;
}
:focus-visible {
  outline: 3px solid #dc9f20;
  outline-offset: 5px;
}
/* Header and navigation */
.topbar {
  background: var(--teal);
  color: #fff;
  font-size: 10px;
}
.topbar-inner {
  display: flex;
  align-items: center;
  gap: 30px;
  min-height: 35px;
}
.topbar-inner > span {
  margin-right: auto;
}
.topbar b {
  color: var(--yellow);
  padding-left: 10px;
}
header {
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid #f1f1e9;
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 100px;
}
.brand img {
  width: 116px;
  height: 86px;
  object-fit: contain;
}
.nav-wrap nav {
  display: flex;
  align-items: center;
  gap: 29px;
  font-size: 12px;
  font-weight: 500;
}
.nav-wrap nav > a:not(.button) {
  position: relative;
  padding: 15px 0;
}
.nav-wrap nav > a:not(.button):hover,
.nav-wrap nav > a.active {
  color: var(--teal);
}
.nav-wrap nav > a.active:after {
  content: "";
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 100%;
  background: var(--teal);
  bottom: 5px;
  left: 50%;
}
.button-small {
  padding: 11px 20px;
  margin-left: 10px;
}
.menu-toggle {
  display: none;
}
/* Welcome section */
.hero {
  background: var(--cream);
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 65px;
  align-items: center;
  min-height: 625px;
  padding-top: 42px;
  padding-bottom: 65px;
}
.hero-copy {
  position: relative;
  z-index: 2;
}
.eyebrow i {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: #d8a124;
  border-radius: 50%;
  margin-right: 8px;
}
.hero h1 {
  font-size: 64px;
  letter-spacing: -2.7px;
  margin: 22px 0 23px;
  line-height: 1.05;
}
.hero h1 em {
  font-style: normal;
  color: var(--teal);
  font-size: 0.88em;
}
.hero-copy > p {
  max-width: 450px;
  font-size: 13px;
  line-height: 1.95;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 25px;
  margin-top: 28px;
}
.hero-note {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 27px;
  font-size: 10px;
  color: var(--muted);
}
.hero-note > span {
  font-size: 30px;
  color: #d66b75;
}
.hero-art {
  position: relative;
  padding: 28px 8px 15px 0;
}
.hero-photo {
  height: 432px;
  border-radius: 47% 47% 35% 34%;
  background: #ade0f0 url("../images/admissions.webp") center 55%/100% auto
    no-repeat;
  box-shadow: 13px 15px 0 #f9df96;
  transform: rotate(-3deg);
  border: 8px solid #fff;
}
.sun {
  position: absolute;
  font-size: 100px;
  color: #efb43f;
  right: -35px;
  top: -58px;
  transform: rotate(15deg);
  z-index: 2;
  line-height: 1.3;
}
.doodle-star {
  position: absolute;
  color: var(--teal);
  font-size: 57px;
  left: -35px;
  top: 20px;
  z-index: 2;
}
.photo-label {
  position: absolute;
  bottom: 0;
  left: -30px;
  padding: 16px 24px;
  background: white;
  box-shadow: 0 8px 35px #263a3910;
  border-radius: 13px;
  transform: rotate(-5deg);
  display: flex;
  align-items: center;
  gap: 15px;
  font-family: var(--play);
  font-size: 20px;
  font-weight: 700;
}
.photo-label > span {
  font-size: 35px;
}
.photo-label small {
  display: block;
  font-family: var(--body);
  font-size: 10px;
  font-weight: 400;
  color: var(--muted);
}
.scribble {
  position: absolute;
  right: -24px;
  bottom: -31px;
  font-size: 100px;
  color: #d47f80;
  transform: rotate(-30deg);
}
.hero-bottom {
  height: 20px;
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 100%;
  background: radial-gradient(ellipse at center, #fff 65%, transparent 68%) 0
    0/60px 25px;
}
.values-strip {
  padding: 22px 0;
  border-bottom: 1px solid #e9eeea;
}
.values-strip .container {
  display: flex;
  justify-content: space-between;
  font-family: var(--play);
  font-size: 19px;
  font-weight: 600;
}
.values-strip span:nth-child(1) {
  color: #987027;
}
.values-strip span:nth-child(2) {
  color: #b6526d;
}
.values-strip span:nth-child(3) {
  color: var(--teal);
}
.values-strip span:nth-child(4) {
  color: #8170aa;
}
/* About and school group statistics */
.two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: center;
}
.about-art {
  position: relative;
  padding: 0 35px 35px 15px;
}
.paint-photo {
  height: 370px;
  background: url("../images/activities.webp") center 36%/100% auto;
  border-radius: 120px 24px 24px 24px;
  transform: rotate(-3deg);
}
.little-note {
  position: absolute;
  bottom: 0;
  right: 0;
  background: #fff2c7;
  padding: 19px 65px 19px 25px;
  transform: rotate(3deg);
  font-family: var(--play);
  font-size: 21px;
  line-height: 1.4;
  border-radius: 5px;
}
.little-note span {
  position: absolute;
  right: 15px;
  top: 10px;
  font-size: 42px;
  color: #e38881;
}
.check-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 25px 0;
  font-size: 11px;
  font-weight: 600;
  color: var(--teal);
}
.stats {
  background: #1c3d55;
  padding: 38px 0 48px;
  color: #ffc72b;
  text-align: center;
}
.stats-intro {
  font-size: 9px;
  letter-spacing: 2.5px;
  color: #e9edf1;
  margin-bottom: 22px;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stats-grid > div + div {
  border-left: 1px solid #ffffff18;
}
.stats strong {
  font-family: var(--play);
  font-size: 75px;
  line-height: 1.15;
  font-weight: 500;
}
.stats strong span {
  font-size: 50px;
}
.stats p {
  color: #ffd04c;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.5;
  margin: 12px 0 0;
}
/* Programmes and facilities */
.programmes {
  background: #f7faf6;
}
.section-heading {
  text-align: center;
  max-width: 670px;
  margin: 0 auto 40px;
}
.section-heading h2 {
  margin-bottom: 15px;
}
.programme-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.programme-card {
  padding: 28px 25px;
  border-radius: 18px;
  transition: transform 0.2s;
}
.programme-card:hover {
  transform: translateY(-6px);
}
.peach {
  background: #fae8da;
}
.mint {
  background: #e2eee4;
}
.lavender {
  background: #ece6f5;
}
.butter {
  background: #faf0cf;
}
.programme-icon {
  display: block;
  font-size: 42px;
  margin-bottom: 20px;
}
.age {
  font-size: 9px;
  letter-spacing: 1.6px;
  font-weight: 700;
}
.programme-card h3 {
  margin: 9px 0 15px;
  font-size: 29px;
}
.programme-card p {
  font-size: 12px;
  line-height: 1.9;
  min-height: 92px;
}
.programme-card a {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 700;
  border-top: 1px solid #263a3920;
  padding-top: 15px;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 35px;
  text-align: center;
}
.feature-grid article > span {
  font-family: var(--play);
  font-size: 32px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #edf5ed;
  color: var(--teal);
  display: inline-grid;
  place-items: center;
  margin-bottom: 20px;
}
.feature-grid article:nth-child(2) > span {
  background: #fff0e7;
  color: #b36849;
}
.feature-grid article:nth-child(3) > span {
  background: #f0eaf8;
  color: #84629e;
}
.feature-grid article:nth-child(4) > span {
  background: #fff3ce;
  color: #9c7220;
}
.feature-grid h3 {
  font-size: 23px;
}
.feature-grid p {
  font-size: 12px;
}
.curriculum-note {
  text-align: center;
  margin: 30px 0 0;
  font-size: 10px;
  color: var(--teal);
}
/* After-school and gallery */
.activities {
  background: #fcf2e6;
}
.activity-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.activity-layout p {
  max-width: 420px;
}
.activity-cloud {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}
.activity-cloud span {
  padding: 14px 20px;
  background: #fff;
  border: 1px solid #e9decd;
  border-radius: 12px;
  font-family: var(--play);
  font-size: 21px;
  font-weight: 600;
  box-shadow: 0 5px 0 #eee3d6;
  transform: rotate(-3deg);
}
.activity-cloud span:nth-child(3n) {
  transform: rotate(3deg);
  background: #e4eee3;
}
.activity-cloud span:nth-child(4n) {
  background: #f6e4e6;
}
.gallery-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.gallery-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.1fr 0.9fr;
  gap: 25px;
}
.gallery-item {
  min-height: 310px;
  border: 0;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  background-repeat: no-repeat;
  transition: transform 0.2s;
}
.gallery-item:hover {
  transform: translateY(-4px);
}
.gallery-students {
  background-image: url("../images/admissions.webp");
  background-size: 100% auto;
  background-position: center 54%;
}
.gallery-colours {
  background-image: url("../images/activities.webp");
  background-size: 100% auto;
  background-position: center 37%;
}
.gallery-item > span {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, #142b29e8);
  color: white;
  padding: 45px 20px 18px;
  text-align: left;
  font-family: var(--play);
  font-size: 20px;
}
.gallery-item b {
  float: right;
}
.gallery-quote {
  background: #eaf2e8;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px;
}
.gallery-quote > span {
  font-size: 50px;
  color: #b98420;
  line-height: 1;
}
.gallery-quote blockquote {
  font-family: var(--heading);
  font-size: 25px;
  line-height: 1.4;
  margin: 20px 0;
  color: var(--teal-dark);
}
.gallery-quote small {
  font-size: 8px;
  letter-spacing: 2px;
}
/* Enquiry form and FAQ */
.admissions {
  background: #eaf4f0;
}
.admission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 85px;
  align-items: center;
}
.admission-steps {
  display: grid;
  gap: 14px;
  margin: 27px 0;
}
.admission-steps span {
  font-size: 12px;
}
.admission-steps b {
  display: inline-grid;
  place-items: center;
  width: 27px;
  height: 27px;
  background: white;
  border-radius: 50%;
  margin-right: 10px;
  color: var(--teal);
  font-size: 11px;
}
.admission-phone {
  font-size: 11px;
  display: grid;
  gap: 5px;
}
.admission-phone strong {
  font-size: 18px;
  color: var(--teal);
}
form {
  background: white;
  padding: 35px;
  border-radius: 20px;
  box-shadow: 0 12px 30px #28584908;
}
form h3 {
  font-size: 32px;
  margin-bottom: 8px;
}
form > p {
  font-size: 11px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
label {
  font-size: 10px;
  font-weight: 600;
  display: block;
  margin-bottom: 14px;
}
input,
select,
textarea {
  width: 100%;
  display: block;
  margin-top: 6px;
  border: 1px solid #dce3df;
  border-radius: 6px;
  background: #fdfefc;
  padding: 11px 12px;
  font-size: 11px;
  color: var(--ink);
  min-height: 42px;
}
textarea {
  resize: vertical;
}
.optional {
  font-weight: 400;
  color: var(--muted);
}
form .button {
  width: 100%;
  margin-top: 4px;
}
.form-help {
  display: block;
  font-size: 9px;
  line-height: 1.7;
  color: var(--muted);
  margin-top: 12px;
}
#form-status:empty {
  display: none;
}
#form-status {
  margin: 14px 0 0;
  color: var(--teal);
}
.faq-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 75px;
}
details {
  border-bottom: 1px solid #dce4df;
  padding: 18px 0;
}
summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
summary:after {
  content: "+";
  color: var(--teal);
  font-size: 20px;
  line-height: 1;
}
details[open] summary:after {
  content: "−";
}
details p {
  font-size: 12px;
  margin: 15px 25px 0 0;
}
/* Contact, footer and image viewer */
.contact {
  background: var(--cream);
  border-top: 1px solid #f1e9d9;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.75fr;
  gap: 70px;
}
.contact h2 {
  font-size: 39px;
}
.contact p {
  font-size: 12px;
}
.contact-details {
  padding-top: 35px;
}
.contact-details > a {
  display: block;
  margin-bottom: 8px;
  font-size: 19px;
  color: var(--teal);
}
.contact-details .email {
  font-size: 11px;
  margin: 22px 0;
  overflow-wrap: anywhere;
}
.contact-details .text-link {
  font-size: 11px;
}
.group-card {
  padding-top: 5px;
}
.group-card img {
  width: 115px;
  height: 94px;
  object-fit: contain;
  mix-blend-mode: multiply;
  margin-bottom: 20px;
}
.group-card h3 {
  font-size: 22px;
  margin-bottom: 15px;
}
.group-card p {
  font-size: 10px;
  line-height: 1.8;
}
.group-card a {
  color: var(--teal);
}
footer {
  padding: 24px 0;
  font-size: 10px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
.floating-whatsapp {
  position: fixed;
  right: 23px;
  bottom: 22px;
  border-radius: 40px;
  padding: 10px 18px;
  background: var(--teal);
  color: #fff;
  font-size: 11px;
  box-shadow: 0 4px 20px #153e3930;
  z-index: 25;
  display: flex;
  gap: 10px;
  align-items: center;
}
.floating-whatsapp span {
  font-size: 22px;
  line-height: 1;
}
dialog {
  border: 0;
  border-radius: 15px;
  padding: 25px;
  max-width: min(90vw, 600px);
  max-height: 90vh;
  overflow: auto;
}
dialog::backdrop {
  background: #102c2bd9;
}
dialog img {
  max-height: 73vh;
  margin: auto;
  object-fit: contain;
}
dialog p {
  margin: 12px 0 0;
  font-size: 12px;
}
.dialog-close {
  position: sticky;
  top: 0;
  float: right;
  border: 0;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  background: var(--teal);
  color: white;
  font-size: 25px;
}
/* Responsive layout: tablet, then mobile. */
@media (min-width: 1500px) {
  .hero-grid {
    min-height: 690px;
  }
  .hero h1 {
    font-size: 70px;
  }
}
@media (max-width: 1100px) {
  .container {
    width: calc(100% - 50px);
  }
  .nav-wrap nav {
    gap: 18px;
  }
  .hero-grid {
    gap: 35px;
  }
  .hero h1 {
    font-size: 54px;
  }
  .hero-photo {
    height: 390px;
  }
  .two-column {
    gap: 50px;
  }
  .programme-card {
    padding: 23px 18px;
  }
  .contact-grid {
    gap: 30px;
  }
  .admission-grid {
    gap: 40px;
  }
  .activity-layout {
    gap: 40px;
  }
  .hero-actions {
    gap: 17px;
  }
  .hero-actions .text-link {
    font-size: 10px;
  }
}
@media (max-width: 800px) {
  .top-email {
    display: none;
  }
  .nav-wrap {
    min-height: 82px;
  }
  .brand img {
    height: 72px;
    width: 100px;
  }
  .menu-toggle {
    display: block;
    background: none;
    border: 0;
    color: var(--teal);
    font-size: 26px;
    padding: 8px;
  }
  .nav-wrap nav {
    display: none;
    position: absolute;
    top: 82px;
    left: 0;
    right: 0;
    background: white;
    padding: 20px 25px;
    box-shadow: 0 12px 18px #203e3910;
    align-items: stretch;
    gap: 0;
  }
  .nav-wrap nav.is-open {
    display: flex;
    flex-direction: column;
  }
  .nav-wrap nav > a.active:after {
    display: none;
  }
  .nav-wrap nav > .button {
    margin: 10px 0;
  }
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    min-height: 530px;
  }
  .hero h1 {
    font-size: 43px;
    letter-spacing: -1.8px;
  }
  .hero-photo {
    height: 335px;
  }
  .hero .eyebrow {
    font-size: 8px;
    letter-spacing: 1px;
  }
  .hero-copy > p {
    font-size: 12px;
  }
  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 15px;
  }
  .sun {
    font-size: 73px;
    right: -18px;
    top: -28px;
  }
  .photo-label {
    padding: 12px;
    left: -14px;
    font-size: 16px;
  }
  .photo-label > span {
    font-size: 24px;
  }
  .hero-note {
    font-size: 9px;
  }
  .values-strip .container {
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
  }
  .values-strip span {
    width: 45%;
    font-size: 17px;
    text-align: center;
  }
  .section {
    padding: 65px 0;
  }
  h2 {
    font-size: 36px;
  }
  .two-column {
    gap: 35px;
  }
  .paint-photo {
    height: 340px;
    background-size: 120% auto;
  }
  .about-art {
    padding-left: 0;
    padding-right: 0;
  }
  .little-note {
    font-size: 17px;
  }
  .check-grid {
    grid-template-columns: 1fr;
  }
  .programme-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .programme-card p {
    min-height: 0;
  }
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }
  .activity-layout,
  .admission-grid {
    grid-template-columns: 1fr;
    gap: 35px;
  }
  .activity-cloud {
    justify-content: flex-start;
  }
  .gallery-grid {
    gap: 15px;
    grid-template-columns: 1fr 1fr;
  }
  .gallery-quote {
    grid-column: 1/-1;
    text-align: center;
    padding: 25px;
  }
  .gallery-quote blockquote {
    font-size: 25px;
    margin: 10px;
  }
  .gallery-quote > span {
    font-size: 35px;
  }
  .gallery-heading {
    display: block;
  }
  .gallery-heading .text-link {
    margin-bottom: 20px;
  }
  .faq-layout {
    gap: 30px;
    grid-template-columns: 1fr 1.2fr;
  }
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
  .group-card {
    grid-column: 1/-1;
    display: flex;
    gap: 30px;
    align-items: center;
  }
  .group-card img {
    margin: 0;
    width: 85px;
  }
  .group-card h3 {
    max-width: 110px;
  }
  .footer-inner {
    flex-wrap: wrap;
  }
  .footer-inner > span:nth-child(2) {
    display: none;
  }
  .stats strong {
    font-size: 58px;
  }
  .stats p {
    font-size: 12px;
  }
}
@media (max-width: 560px) {
  .container {
    width: calc(100% - 40px);
  }
  .topbar {
    font-size: 9px;
  }
  .topbar-inner {
    gap: 6px;
  }
  .topbar b {
    display: none;
  }
  .topbar-inner > span {
    font-size: 8px;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    padding-top: 38px;
    gap: 20px;
    padding-bottom: 50px;
  }
  .hero h1 {
    font-size: 49px;
  }
  .hero-copy > p {
    max-width: 360px;
  }
  .hero-actions {
    flex-direction: row;
    align-items: center;
    gap: 17px;
  }
  .hero-actions .button {
    font-size: 11px;
    padding: 14px 17px;
    gap: 15px;
  }
  .hero-actions .text-link {
    font-size: 10px;
    gap: 6px;
  }
  .hero-note {
    margin-top: 18px;
  }
  .hero-art {
    width: 88%;
    margin: 10px auto 5px;
    padding-top: 15px;
  }
  .hero-photo {
    height: 330px;
  }
  .photo-label {
    left: -13px;
    bottom: -10px;
  }
  .sun {
    right: -28px;
    top: -26px;
  }
  .doodle-star {
    left: -22px;
    font-size: 40px;
  }
  .scribble {
    right: -23px;
    font-size: 70px;
    bottom: -30px;
  }
  .two-column {
    grid-template-columns: 1fr;
    gap: 35px;
  }
  .about-art {
    max-width: 380px;
    width: 100%;
    margin: auto;
  }
  .paint-photo {
    height: 330px;
    background-size: 100% auto;
  }
  .check-grid {
    grid-template-columns: 1fr 1fr;
    font-size: 10px;
  }
  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px 0;
  }
  .stats-grid > div:nth-child(3) {
    border-left: 0;
  }
  .stats strong {
    font-size: 65px;
  }
  .stats-intro {
    font-size: 8px;
    letter-spacing: 1.4px;
  }
  .programme-grid {
    gap: 13px;
  }
  .programme-card {
    padding: 23px 17px;
  }
  .programme-card h3 {
    font-size: 25px;
  }
  .programme-card p {
    font-size: 11px;
    min-height: 105px;
  }
  .programme-icon {
    font-size: 35px;
  }
  .feature-grid {
    gap: 20px;
  }
  .feature-grid h3 {
    font-size: 21px;
  }
  .feature-grid p {
    font-size: 11px;
  }
  .activity-cloud {
    gap: 12px;
  }
  .activity-cloud span {
    font-size: 18px;
    padding: 10px 13px;
  }
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .gallery-item {
    min-height: 330px;
  }
  .gallery-quote {
    grid-column: auto;
  }
  .section-heading h2 {
    font-size: 35px;
  }
  .section-heading {
    margin-bottom: 30px;
  }
  .admission-grid {
    gap: 30px;
  }
  form {
    padding: 25px;
  }
  .form-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .faq-layout,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .contact-details {
    padding-top: 15px;
  }
  .group-card {
    grid-column: auto;
    flex-wrap: wrap;
    gap: 20px;
    border-top: 1px solid #e6decf;
    padding-top: 25px;
  }
  .group-card h3 {
    max-width: none;
    margin: 0;
  }
  .group-card p {
    width: 43%;
  }
  .footer-inner {
    font-size: 9px;
    padding-bottom: 45px;
  }
  .floating-whatsapp {
    bottom: 15px;
    right: 15px;
  }
  h2 {
    font-size: 35px;
  }
  .section {
    padding: 60px 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
/* Keep poster lettering outside the photo frames. */
.hero-photo {
  background-size: 120% auto;
  background-position: center 55%;
}
.paint-photo {
  background-size: 150% auto;
  background-position: center 44%;
}
.gallery-students {
  background-size: 150% auto;
  background-position: center 55%;
}
.gallery-colours {
  background-size: 160% auto;
  background-position: center 44%;
}
@media (max-width: 560px) {
  .hero-photo {
    background-size: 150% auto;
  }
}
/* Frame the colour-play photograph above the poster's text. */
.paint-photo,
.gallery-colours {
  background-size: 250% auto;
  background-position: center 33%;
}

/* Playful 3D: pure CSS faces, no heavy 3D library or downloaded models. */
.stats strong .count-number {
  font-size: inherit;
  font-variant-numeric: tabular-nums;
}
.stats strong {
  display: block;
  min-height: 1.15em;
}
.hero-art {
  perspective: 1000px;
  --tilt-x: 0deg;
  --tilt-y: 0deg;
}
.hero-photo {
  transform: rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) rotate(-3deg);
  transition: transform 0.3s ease-out;
}
.toy-blocks {
  position: absolute;
  right: -5px;
  bottom: -15px;
  width: 156px;
  height: 134px;
  z-index: 4;
  pointer-events: none;
}
.toy-block {
  position: absolute;
  width: 56px;
  height: 56px;
  transform-style: preserve-3d;
  transform: rotateX(-16deg) rotateY(-28deg) rotateZ(8deg);
  animation: toy-bob 5s ease-in-out infinite;
}
.toy-block span {
  position: absolute;
  width: 56px;
  height: 56px;
  border-radius: 7px;
  backface-visibility: hidden;
}
.block-front {
  background: linear-gradient(140deg, var(--toy-light), var(--toy-color));
  color: white;
  border: 3px solid #ffffff80;
  display: grid;
  place-items: center;
  font-family: var(--play);
  font-weight: 800;
  font-size: 38px;
  line-height: 1;
  text-shadow: 0 2px 2px #0002;
  transform: translateZ(28px);
  box-shadow:
    inset 0 0 0 3px #ffffff25,
    0 9px 16px #17382d18;
}
.block-top {
  background: var(--toy-light);
  transform: rotateX(90deg) translateZ(28px);
  border: 2px solid #ffffff60;
}
.block-side {
  background: var(--toy-dark);
  transform: rotateY(90deg) translateZ(28px);
  border: 2px solid #ffffff30;
}
.block-a {
  --toy-color: #edab34;
  --toy-light: #ffd772;
  --toy-dark: #bf7b20;
  left: 52px;
  top: 0;
}
.block-b {
  --toy-color: #ed7d8a;
  --toy-light: #ffb5bc;
  --toy-dark: #bc5367;
  left: 14px;
  top: 67px;
  animation-delay: -0.8s;
}
.block-c {
  --toy-color: #139b98;
  --toy-light: #63cfc1;
  --toy-dark: #057571;
  left: 88px;
  top: 67px;
  animation-delay: -1.6s;
}
@keyframes toy-bob {
  0%,
  100% {
    transform: translateY(0) rotateX(-16deg) rotateY(-28deg) rotateZ(8deg);
  }
  50% {
    transform: translateY(-8px) rotateX(-10deg) rotateY(-20deg) rotateZ(3deg);
  }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .programme-card {
    transition:
      transform 0.3s ease,
      box-shadow 0.3s ease;
  }
  .programme-card:hover {
    transform: perspective(800px) translateY(-8px) rotateX(3deg);
    box-shadow: 0 18px 28px #263a3912;
  }
  .programme-icon {
    transition: transform 0.3s;
    transform-origin: center;
  }
  .programme-card:hover .programme-icon {
    transform: translateY(-3px) rotate(-9deg) scale(1.08);
  }
}
/* Small-screen refinements: content and controls remain within the viewport. */
.hero-grid > *,
.two-column > *,
.admission-grid > *,
.contact-grid > * {
  min-width: 0;
}
@media (max-width: 1100px) {
  .topbar-inner {
    gap: 18px;
  }
  .toy-blocks {
    transform: scale(0.85);
    transform-origin: bottom right;
  }
}
@media (max-width: 800px) {
  .toy-blocks {
    right: 0;
    bottom: -22px;
    transform: scale(0.7);
  }
  .hero-art {
    margin-bottom: 20px;
  }
  .topbar-inner {
    flex-wrap: wrap;
    justify-content: center;
    gap: 2px 14px;
    padding: 7px 0;
  }
  .topbar-inner > span {
    width: 100%;
    text-align: center;
    margin: 0;
  }
}
@media (max-width: 560px) {
  .hero h1 {
    font-size: clamp(38px, 12.5vw, 49px);
  }
  .hero-actions {
    flex-wrap: wrap;
  }
  .hero-photo {
    height: clamp(270px, 84vw, 330px);
  }
  .toy-blocks {
    right: -5px;
    bottom: -24px;
    transform: scale(0.64);
  }
  .photo-label {
    padding: 10px;
    font-size: 15px;
    gap: 8px;
    left: -10px;
  }
  .photo-label small {
    font-size: 8px;
  }
  .photo-label > span {
    font-size: 22px;
  }
  .programme-card h3 {
    font-size: clamp(21px, 6vw, 25px);
  }
  .programme-card {
    padding: 20px 14px;
  }
  .activity-cloud span {
    max-width: 100%;
  }
  .floating-whatsapp.near-enquiry {
    visibility: hidden;
    pointer-events: none;
  }
  input,
  select,
  textarea {
    font-size: 16px;
  } /* Prevent automatic zoom on iPhones. */
  .form-grid {
    min-width: 0;
  }
  .values-strip span {
    font-size: 15px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .toy-block {
    animation: none;
  }
  .hero-photo {
    transform: rotate(-3deg);
    transition: none;
  }
}

/* Separate page headers and navigation. */
.contact-channel {
  margin-top: 24px;
}
.contact-channel .eyebrow {
  display: block;
  font-size: 10px;
  letter-spacing: 1.4px;
  margin-bottom: 6px;
}
.contact-channel a {
  display: inline-block;
  font-size: 13px;
  color: var(--teal-dark);
  overflow-wrap: anywhere;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.nav-wrap nav > a[aria-current="page"]:not(.button) {
  color: var(--teal);
}
.nav-wrap nav > a[aria-current="page"]:not(.button)::after {
  content: "";
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--teal);
  bottom: 5px;
  left: 50%;
}
.page-banner {
  position: relative;
  overflow: hidden;
  padding: 36px 0 60px;
  background: var(--cream);
}
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 35px;
}
.breadcrumbs a {
  color: var(--teal);
}
.page-banner h1 {
  font-size: clamp(36px, 4.5vw, 58px);
  max-width: 820px;
  letter-spacing: -1.7px;
  margin: 18px 0;
  position: relative;
  z-index: 1;
}
.page-banner p {
  max-width: 650px;
  margin: 0;
  position: relative;
  z-index: 1;
}
.banner-flower {
  position: absolute;
  right: 5%;
  bottom: -60px;
  font-size: 240px;
  line-height: 1;
  color: #f0dca2;
  opacity: 0.4;
}
.page-cta {
  background: #eaf4f0;
  padding: 45px 0;
}
.page-cta .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.page-cta h2 {
  font-size: 34px;
  margin-bottom: 0;
}
@media (max-width: 800px) {
  .nav-wrap nav > a[aria-current="page"]:not(.button)::after {
    display: none;
  }
}
@media (max-width: 560px) {
  .page-banner {
    padding: 25px 0 42px;
  }
  .breadcrumbs {
    margin-bottom: 28px;
  }
  .page-cta .container {
    flex-direction: column;
    align-items: flex-start;
  }
  .page-cta h2 {
    font-size: 30px;
  }
}

/* Real school photographs: original gallery files and enhanced feature images. */
.hero-photo {
  background-image: url("../images/photos/hero-enhanced.webp");
  background-size: cover;
  background-position: 62% center;
}
.paint-photo {
  height: 470px;
  background-image: url("../images/photos/about-enhanced.webp");
  background-size: cover;
  background-position: center 38%;
}
.programme-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.programme-photo {
  width: calc(100% + 50px);
  max-width: none;
  height: 195px;
  object-fit: cover;
  margin: -28px -25px 25px;
}
.programme-card:nth-child(1) .programme-photo {
  object-position: center 57%;
}
.programme-card:nth-child(2) .programme-photo {
  object-position: center 35%;
}
.programme-card:nth-child(3) .programme-photo {
  object-position: center 63%;
}
.programme-card:nth-child(4) .programme-photo {
  object-position: center 45%;
}
.programme-card a {
  margin-top: auto;
}
.school-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.leadership { background: #fff9ef; }
.leadership-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
.leader-profile { background: #fff; border: 1px solid #e5e9df; border-radius: 24px; overflow: hidden; }
.leader-profile > img { display: block; width: 220px; height: 260px; margin: 28px auto 0; border-radius: 16px; object-fit: cover; object-position: center 25%; }
.leader-copy { padding: 28px; }
.leader-copy h3 { font-size: clamp(30px,2.8vw,40px); line-height: 1.2; margin: 12px 0; overflow-wrap: anywhere; }
.leader-copy p { font-size: 20px; line-height: 1.75; color: #344c49; }
.leader-copy .eyebrow { font-size: 15px; font-weight: 700; letter-spacing: 1.5px; }
.leader-copy .leader-degree { color: #08736e; font-size: 21px; font-weight: 700; }
.leadership .leader-profile { display: grid; grid-template-columns: 300px minmax(0,1fr); align-items: center; }
.leadership .leader-profile > img { width: 260px; height: 300px; margin: 28px; }
.leadership .leader-copy { padding: 28px 28px 28px 0; }
.leader-message { font-style: italic; border-top: 1px solid #e5e9df; padding-top: 20px; }
.group-card.school-family-list { display: block; grid-column: 1 / -1; padding-top: 36px; border-top: 1px solid #d6ded5; }
.family-heading { text-align: center; margin-bottom: 28px; }
.family-heading img { width: 180px; height: 146px; margin: 0 auto 16px; }
.family-heading h3 { font-size: 32px; max-width: none; }
.family-grid { display: grid; grid-template-columns: 1.6fr repeat(5,minmax(0,1fr)); gap: 24px; align-items: start; }
.family-grid > div { padding: 0; background: none; border: 0; border-radius: 0; min-width: 0; }
.family-grid h4 { font-size: 14px; line-height: 1.5; margin: 0 0 8px; }
.family-grid p { font-size: 13px; line-height: 1.6; margin: 0; width: auto; }
.family-grid .school-family-branches ul { list-style: none; padding: 0; margin: 0; font-size: 13px; line-height: 1.6; }
.school-family-branches li + li { margin-top: 8px; }
.school-family-branches { border: 0; padding: 0; }
.school-family-branches h4 { font-size: 14px; margin: 0 0 8px; }
.school-family-branches ul { padding-left: 20px; line-height: 1.9; }
.institution-list { list-style: none; margin: 0; padding: 0; }
.institution-list li { padding: 16px 0; border-bottom: 1px solid #d6ded5; }
.institution-list strong, .institution-list span { display: block; }
.institution-list span { font-size: 14px; margin-top: 4px; }
@media(max-width:900px) {
  .family-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 28px; }
  .leadership-grid { grid-template-columns: 1fr; }
  .leader-profile { display: grid; grid-template-columns: minmax(0,0.8fr) minmax(0,1.2fr); }
  .leader-profile > img { width: 180px; height: 230px; min-height: 0; align-self: start; }
}
@media(max-width:560px) {
  .family-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 26px 18px; }
  .family-grid > div { padding: 0; }
  .family-heading h3 { font-size: 28px; }
  .leader-profile { display: block; }
  .leadership .leader-profile { display: block; }
  .leadership .leader-profile > img { margin: 24px auto 0; width: 190px; height: 230px; }
  .leadership .leader-copy { padding: 24px; }
  .leader-profile > img { width: 170px; height: 210px; min-height: 0; object-fit: cover; }
  .leader-copy { padding: 24px; }
}
.growing-together { background: #f0f6f1; }
.growth-layout { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 70px; align-items: start; }
.growth-intro p { max-width: 430px; }
.growth-details details { padding: 22px 0; border-bottom: 1px solid #cbdcd4; }
.growth-details summary { cursor: pointer; font-size: 21px; font-family: var(--play); font-weight: 700; padding-right: 12px; }
.growth-details summary:focus-visible { outline: 3px solid var(--teal); outline-offset: 6px; }
.growth-details p { margin: 18px 0 10px; }
.growth-example { display: block; color: #08736e; font-size: 14px; font-weight: 600; }
.parent-invitation { margin-top: 55px; padding-top: 32px; border-top: 1px solid #cbdcd4; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.parent-invitation h3 { font-size: 27px; margin: 12px 0; }
.parent-invitation p { max-width: 640px; margin-bottom: 0; }
.parent-invitation .button { flex-shrink: 0; }
@media (max-width: 760px) {
  .growth-layout { grid-template-columns: 1fr; gap: 20px; }
  .growth-details summary { font-size: 19px; }
  .parent-invitation { flex-direction: column; align-items: flex-start; }
}
.group-card .family-school-logo {
  display: block;
  width: 140px;
  height: 140px;
  object-fit: contain;
  background: white;
  border-radius: 10px;
  padding: 5px;
  margin: 0 0 12px;
}
.school-photo.art-photo img {
  object-position: center 32%;
}
.school-photo {
  padding: 0;
  border: 0;
  background: #eff5ef;
  border-radius: 18px;
  overflow: hidden;
  text-align: left;
  color: var(--ink);
}
.school-photo img {
  width: 100%;
  height: 330px;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s;
}
.school-photo span {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 18px 20px;
  font-family: var(--play);
  font-size: 20px;
  font-weight: 600;
}
.school-photo b {
  color: var(--teal);
}
.school-photo:hover img {
  transform: scale(1.025);
}
.gallery-more {
  margin-top: 30px;
}
#gallery-dialog {
  width: min(1100px, 94vw);
  max-width: 94vw;
  padding: 18px;
}
#gallery-dialog img {
  max-width: 100%;
  max-height: 78vh;
  width: auto;
  height: auto;
}
@media (max-width: 1100px) {
  .programme-photo {
    width: calc(100% + 36px);
    margin: -23px -18px 22px;
  }
}
@media (max-width: 800px) {
  .school-photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }
  .paint-photo {
    height: 380px;
  }
}
@media (max-width: 560px) {
  .school-photo-grid {
    grid-template-columns: 1fr;
  }
  .school-photo img {
    height: auto;
    max-height: 480px;
    object-fit: contain;
  }
  .programme-photo {
    height: 170px;
    width: calc(100% + 28px);
    margin: -20px -14px 20px;
  }
  .paint-photo {
    height: 400px;
  }
}

/* Photo-led activity stories and managing director introduction. */
.activity-story-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}
.activity-story {
  overflow: hidden;
  border-radius: 20px;
  background: #f7faf6;
  border: 1px solid #e5ece5;
}
.activity-story img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  object-position: center;
}
.activity-story > div {
  padding: 25px;
}
.activity-story h3 {
  font-size: 26px;
  line-height: 1.2;
  margin-bottom: 14px;
}
.activity-story p {
  margin: 0;
  font-size: 13px;
  line-height: 1.9;
}
.director {
  background: #fcf2e6;
}
.director-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 85px;
  align-items: center;
}
.director-portrait {
  position: relative;
  padding-bottom: 30px;
}
.director-portrait > img {
  width: 100%;
  height: 510px;
  object-fit: cover;
  object-position: center 30%;
  border-radius: 110px 22px 22px 22px;
}
.director-name {
  position: absolute;
  bottom: 0;
  left: 30px;
  right: 30px;
  padding: 15px 24px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 25px #263a3910;
  font-family: var(--heading);
  font-size: 27px;
}
.director-name span {
  display: block;
  font-family: var(--body);
  font-size: 11px;
  color: var(--teal);
}
.director-role {
  font-size: 12px;
  font-weight: 600;
  color: var(--teal);
}
.director-values {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 25px 0;
  color: var(--teal-dark);
  font-family: var(--play);
  font-size: 18px;
  font-weight: 600;
}
@media (max-width: 900px) {
  .director-grid {
    gap: 35px;
  }
  .activity-story-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .director-grid,
  .activity-story-grid {
    grid-template-columns: 1fr;
  }
  .director-portrait > img {
    height: 440px;
  }
  .director-name {
    left: 20px;
    right: 20px;
  }
  .activity-story img {
    height: 310px;
  }
}
.after-school-details {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}
.after-school-details article {
  border-top: 3px solid #e1b95c;
  padding-top: 20px;
}
.after-school-details h3 {
  font-size: 23px;
}
.after-school-details p {
  font-size: 13px;
}
@media (max-width: 900px) {
  .after-school-details {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 560px) {
  .after-school-details {
    grid-template-columns: 1fr;
  }
}
