/* Homepage sections from tools/build-home.mjs (lib/home.mjs): accreditations, join our community, school activities */
.acs-sec {
  --navy: #071a36; --blue: #1f8fd6; --green: #8dc63f; --muted: #5d6b82; --line: #e4ebf4; --ease: cubic-bezier(.22, 1, .36, 1);
  padding: 90px 20px; font-family: "Plus Jakarta Sans", "Inter", system-ui, sans-serif; color: var(--navy); -webkit-font-smoothing: antialiased;
}
.acs-sec .acs-sec__eyebrow { margin: 0 0 12px; font-size: 13px; font-weight: 700; letter-spacing: .28em; text-transform: uppercase; color: var(--blue-ink, #1670b0); }
.acs-sec .acs-sec__h { margin: 0; font-family: inherit; font-size: clamp(28px, 3.6vw, 46px); font-weight: 800; line-height: 1.12; letter-spacing: -.03em; color: var(--navy); text-transform: none; }
.acs-sec .acs-sec__h span { background: linear-gradient(90deg, var(--blue), var(--green)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.acs-sec .acs-sec__p { margin: 16px auto 0; max-width: 600px; font-size: 17px; line-height: 1.6; color: var(--muted); }
.acs-sec .acs-sec__btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border-radius: 999px; background: var(--navy); color: #fff; font-weight: 700; font-size: 15px; text-decoration: none; transition: transform .35s var(--ease), box-shadow .35s; box-shadow: 0 16px 30px -18px rgba(7, 26, 54, .8); }
.acs-sec .acs-sec__btn:hover, .acs-sec .acs-sec__btn:focus-visible { color: #fff; transform: translateY(-2px); box-shadow: 0 20px 34px -18px rgba(7, 26, 54, .9); }
.acs-sec ul { list-style: none; margin: 0; padding: 0; }
.acs-sec li { margin: 0; }
.acs-sec li::before { content: none; }
.acs-accred__head, .acs-acts__head { max-width: 760px; margin: 0 auto 40px; text-align: center; }

/* accreditations: badge cards */
.acs-accred { background: linear-gradient(180deg, #f5f9ff, #fff); }
.acs-accred .acs-accred__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; max-width: 1180px; margin: 0 auto; }
.acs-accred .acs-accred__list > li { display: flex; width: 190px; }
.acs-accred .acs-accred__card { display: flex; flex-direction: column; align-items: center; gap: 12px; width: 100%; padding: 22px 16px 18px; box-sizing: border-box; border: 1px solid var(--line); border-radius: 22px; background: #fff; color: var(--navy); text-decoration: none; text-align: center; box-shadow: 0 18px 36px -28px rgba(7, 26, 54, .45); transition: transform .35s var(--ease), box-shadow .35s, border-color .35s; }
.acs-accred a.acs-accred__card:hover, .acs-accred a.acs-accred__card:focus-visible { transform: translateY(-4px); border-color: #cfe0f2; box-shadow: 0 24px 40px -26px rgba(7, 26, 54, .5); }
.acs-accred .acs-accred__card img { width: 104px; height: 104px; object-fit: contain; }
.acs-accred .acs-accred__card span { font-size: 14px; font-weight: 700; line-height: 1.35; }

/* join our community: picture + text */
.acs-join .acs-join__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; align-items: center; max-width: 1180px; margin: 0 auto; }
.acs-join .acs-join__media { margin: 0; }
.acs-join .acs-join__media img { display: block; width: 100%; height: auto; border-radius: 28px; animation: acs-join-float 6s ease-in-out infinite alternate; will-change: transform; }
/* the picture drifts gently up and down, as it did on the old page */
@keyframes acs-join-float { from { transform: translate3d(0, 0, 0) rotate(0deg); } to { transform: translate3d(0, -16px, 0) rotate(-1deg); } }
.acs-join .acs-join__p { margin: 18px 0 0; font-size: 17px; line-height: 1.75; color: var(--muted); }
.acs-join .acs-sec__btn { margin-top: 28px; }

/* school activities: picture panels; the one under the pointer widens */
.acs-acts .acs-acts__list { display: flex; gap: 14px; max-width: 1180px; height: 380px; margin: 0 auto; }
.acs-acts .acs-acts__item { flex: 1 1 0; min-width: 0; transition: flex-grow .6s var(--ease); }
.acs-acts .acs-acts__list:hover .acs-acts__item:hover, .acs-acts .acs-acts__item:focus-within { flex-grow: 2.2; }
.acs-acts .acs-acts__card { position: relative; display: block; height: 100%; overflow: hidden; border-radius: 24px; background: var(--navy); color: #fff; text-decoration: none; }
.acs-acts .acs-acts__card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.acs-acts .acs-acts__card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7, 26, 54, 0) 35%, rgba(7, 26, 54, .85)); }
.acs-acts .acs-acts__card:hover img { transform: scale(1.05); }
.acs-acts .acs-acts__text { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; display: grid; gap: 6px; padding: 22px; }
.acs-acts .acs-acts__text b { font-size: 19px; line-height: 1.25; font-weight: 800; color: #fff; }
.acs-acts .acs-acts__text span { font-size: 14px; line-height: 1.45; color: rgba(255, 255, 255, .85); }
.acs-acts .acs-acts__more { margin: 36px 0 0; text-align: center; }


/* foundation stage: playful photo collage, colour cards for the four classes, highlights, two buttons */
.acs-fs { position: relative; overflow: hidden; background: linear-gradient(180deg, #fff9ef 0%, #fffdf8 60%, #fff 100%); }
.acs-fs .acs-fs__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 64px; align-items: center; max-width: 1180px; margin: 0 auto; }
.acs-fs .acs-fs__media { position: relative; aspect-ratio: 1 / 1.02; }
.acs-fs .acs-fs__photo { position: absolute; z-index: 1; margin: 0; overflow: hidden; border: 6px solid #fff; border-radius: 30px; box-shadow: 0 30px 60px -34px rgba(7, 26, 54, .55); animation: acs-fs-bob 7s ease-in-out infinite alternate; }
.acs-fs .acs-fs__photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.acs-fs .acs-fs__photo--1 { left: 6%; top: 8%; width: 78%; aspect-ratio: 4 / 3.2; transform: rotate(-3deg); }
.acs-fs .acs-fs__photo--2 { left: 0; bottom: 2%; width: 46%; aspect-ratio: 1; transform: rotate(4deg); animation-delay: -2.5s; z-index: 2; }
.acs-fs .acs-fs__photo--3 { right: 0; bottom: 10%; width: 44%; aspect-ratio: 4 / 3; transform: rotate(-5deg); animation-delay: -4.5s; z-index: 2; }
@keyframes acs-fs-bob { from { translate: 0 0; } to { translate: 0 -10px; } }
.acs-fs .acs-fs__badge { position: absolute; z-index: 3; right: 4%; top: 2%; display: inline-flex; align-items: center; gap: 10px; max-width: 250px; padding: 10px 16px 10px 10px; border-radius: 999px; background: #071a36; color: #fff; font-size: 13.5px; font-weight: 800; line-height: 1.25; text-decoration: none; box-shadow: 0 18px 30px -16px rgba(7, 26, 54, .8); transition: transform .35s var(--ease); }
.acs-fs a.acs-fs__badge:hover { color: #fff; transform: translateY(-3px); }
.acs-fs .acs-fs__badge i { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%; background: #f7b733; color: #071a36; }
.acs-fs .acs-fs__blob { position: absolute; z-index: 0; border-radius: 50%; filter: blur(2px); }
.acs-fs .acs-fs__blob--a { left: -6%; top: 30%; width: 44%; aspect-ratio: 1; background: radial-gradient(circle, rgba(247, 183, 51, .35), rgba(247, 183, 51, 0) 70%); }
.acs-fs .acs-fs__blob--b { right: -4%; top: 0; width: 40%; aspect-ratio: 1; background: radial-gradient(circle, rgba(79, 179, 232, .3), rgba(79, 179, 232, 0) 70%); }
.acs-fs .acs-fs__p { margin: 16px 0 0; font-size: 17px; line-height: 1.7; color: var(--muted); }
.acs-fs .acs-fs__stages { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 26px 0 0; }
.acs-fs .acs-fs__stages li { display: grid; gap: 4px; padding: 14px 16px 15px; border-radius: 18px; background: color-mix(in srgb, var(--tone) 12%, #fff); border: 1px solid color-mix(in srgb, var(--tone) 30%, #fff); }
.acs-fs .acs-fs__stages b { display: inline-flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 800; color: #071a36; }
.acs-fs .acs-fs__stages b::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--tone); }
.acs-fs .acs-fs__stages span { font-size: 14px; line-height: 1.5; color: #4b5a72; }
.acs-fs .acs-fs__points { display: flex; flex-wrap: wrap; gap: 8px 10px; margin: 22px 0 0; }
.acs-fs .acs-fs__points li { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 14px; font-weight: 700; color: #071a36; }
.acs-fs .acs-fs__points svg { color: var(--green); }
.acs-fs .acs-fs__btns { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 30px 0 0; }
.acs-fs .acs-fs__ghost { display: inline-flex; align-items: center; padding: 14px 22px; border-radius: 999px; border: 1.5px solid #071a36; color: #071a36; font-weight: 700; font-size: 15px; text-decoration: none; transition: background-color .25s, color .25s; }
.acs-fs .acs-fs__ghost:hover { background: #071a36; color: #fff; }
@media (max-width: 900px) {
  .acs-fs .acs-fs__inner { grid-template-columns: 1fr; gap: 36px; }
  .acs-fs .acs-fs__media { max-width: 520px; width: 100%; margin: 0 auto; }
}
@media (max-width: 480px) {
  .acs-fs .acs-fs__stages { grid-template-columns: 1fr; }
  .acs-fs .acs-fs__badge { font-size: 12px; max-width: 200px; }
  .acs-fs .acs-fs__photo { border-width: 4px; border-radius: 22px; }
}
@media (prefers-reduced-motion: reduce) { .acs-fs .acs-fs__photo { animation: none; } }

@media (max-width: 900px) {
  .acs-join .acs-join__inner { grid-template-columns: 1fr; gap: 32px; }
  .acs-acts .acs-acts__list { flex-direction: column; height: auto; }
  .acs-acts .acs-acts__item { flex: none; height: 240px; }
  .acs-acts .acs-acts__list:hover .acs-acts__item:hover, .acs-acts .acs-acts__item:focus-within { flex-grow: 0; }
}
@media (max-width: 767px) {
  .acs-sec { padding: 64px 16px; }
  .acs-accred__head, .acs-acts__head { margin-bottom: 28px; }
  .acs-sec .acs-sec__p, .acs-join .acs-join__p { font-size: 15px; }
  .acs-accred .acs-accred__list { gap: 12px; }
  .acs-accred .acs-accred__list > li { width: calc(50% - 6px); }
  .acs-accred .acs-accred__card { padding: 18px 10px 14px; }
  .acs-accred .acs-accred__card img { width: 80px; height: 80px; }
  .acs-accred .acs-accred__card span { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .acs-acts .acs-acts__item, .acs-acts .acs-acts__card img { transition: none; }
  .acs-join .acs-join__media img { animation: none; }
}

/* phones: the browser skips layout and painting of homepage sections until they come near the screen */
.acs-film, .acs-legacy, .acs-fs, .acs-plan, .acs-join, .acs-pillars, .acs-dates, .acs-acts, .acs-team, .acs-news, .acs-partners { content-visibility: auto; contain-intrinsic-size: auto 900px; }
