/* Base styles. Responsive overrides are loaded afterwards from mobile.css. */
:root {
  --white: #fff;
  --ink: #24344b;
  --muted: #667180;
  /* Change these two values to restyle the school website. */
  --primary: #d50b00;
  --radius: 6px;

  /* Derived shades and shapes follow the settings above automatically. */
  --on-primary: #ffffff;
  --primary-hover: color-mix(in srgb, var(--primary) 85%, #000);
  --primary-soft: color-mix(in srgb, var(--primary) 5%, #fff);
  --primary-tint: color-mix(in srgb, var(--primary) 16%, #fff);
  --primary-border: color-mix(in srgb, var(--primary) 30%, #fff);
  --primary-muted: color-mix(in srgb, var(--primary) 55%, #fff);
  --radius-sm: max(0px, calc(var(--radius) - 2px));
  --radius-lg: calc(var(--radius) + 2px);
  --radius-pill: 999px;
  --radius-round: 50%;
  --radius-art: 47% 53% 55% 45%;
  --radius-art-alt: 46% 54% 45% 55%;
  --footer-background: color-mix(in srgb, var(--primary) 12%, #162236);
  --border: #e8edf1;
  --container: 1180px;
  --space: 10px;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--white);
}
* , *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-size: 15px; line-height: 1.7; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { line-height: 1.25; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; height: auto; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }
[hidden] { display: none !important; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 10px; }
.section { padding-block: 15px; }
.icon { width: 22px; height: 22px; flex-shrink: 0; }
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 5px; left: 5px; z-index: 110; padding: 10px; background: #fff; transform: translateY(-200%); }
.skip-link:focus { transform: none; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 42px; padding: 10px 15px; border: 1px solid var(--primary); border-radius: var(--radius); background: var(--primary); color: var(--on-primary); font-size: 13px; font-weight: 700; transition: background 180ms, transform 180ms; }
.button:hover { background: var(--primary-hover); transform: translateY(-1px); }
.button .icon { width: 18px; height: 18px; }
.button-outline { border-color: #d7e2ea; background: #fff; color: var(--primary); }
.button-outline:hover { background: var(--primary-soft); }
.button-white { border-color: #fff; background: #fff; color: var(--primary); }
.button-white:hover { background: var(--primary-soft); }
.text-link { display: inline-flex; align-items: center; gap: 10px; color: var(--primary); font-size: 13px; font-weight: 700; }
.text-link .icon { width: 18px; height: 18px; }
.text-link:hover { color: var(--primary); }
.eyebrow { margin-bottom: 10px; color: var(--primary); font-size: 10px; font-weight: 700; letter-spacing: 1.8px; }
h2 { color: var(--primary); font-size: clamp(25px, 2.7vw, 34px); letter-spacing: -0.6px; }
h3 { color: var(--primary); font-size: 17px; }
.scribble-title::after { content: ''; display: block; width: 100px; height: 6px; margin-top: 10px; margin-bottom: 15px; border-top: 3px solid var(--primary-muted); border-bottom: 1px solid var(--primary-muted); border-radius: var(--radius-round); transform: rotate(-2deg); }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-bottom: 15px; }
.section-heading > p { color: var(--muted); font-size: 13px; }
/* A white identity strip and a separate primary-colour navigation bar, each under 60px. */
.site-header { background: #fff; }
.masthead { display: flex; align-items: center; justify-content: space-between; gap: 15px; height: 60px; }
.school-brand { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.school-mark { display: block; flex-shrink: 0; width: 46px; height: 46px; }
.school-mark svg { display: block; width: 100%; height: 100%; }
.school-brand strong { display: block; color: #212121; font-size: 20px; line-height: 1.25; }
.school-brand small { display: block; margin-top: 4px; color: var(--muted); font-size: 8px; font-weight: 700; letter-spacing: 1.5px; }
.header-details { display: flex; align-items: center; gap: 15px; }
.header-detail { display: flex; align-items: center; gap: 10px; }
.detail-icon { display: grid; place-items: center; flex-shrink: 0; width: 34px; height: 34px; border: 1px solid var(--primary-border); border-radius: var(--radius-round); color: var(--primary); }
.detail-icon .icon { width: 17px; height: 17px; }
.header-detail small { display: block; color: var(--muted); font-size: 8px; font-weight: 700; letter-spacing: 1px; }
.header-detail strong { display: block; font-size: 11px; font-weight: 400; }
.navigation-bar { background: var(--primary); }
.site-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; height: 44px; max-height: 60px; overflow-x: auto; scrollbar-width: thin; }
.site-nav a { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; min-height: 36px; padding: 5px 15px; border-radius: var(--radius-sm); color: #ffffff; font-size: 13px; font-weight: 700; }
.site-nav a:hover, .site-nav a[aria-current="page"] { background: #ffffff36; }
/* Full-width photography with a restrained welcome message. */
.hero-carousel { position: relative; background: #fff; }
.hero-carousel__stage { position: relative; height: clamp(360px, 43vw, 570px); overflow: hidden; touch-action: pan-y pinch-zoom; }
.hero-slide { height: 100%; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; object-position: center 44%; user-select: none; -webkit-user-drag: none; }
.hero-slide--portrait img { object-fit: contain; background: #edf0f3; }
.hero-carousel.is-enhanced .hero-slide:not([hidden]) { animation: carousel-reveal 450ms ease; }
.hero-carousel__stage::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, #fff 0%, #ffffff55 7%, #ffffff00 20%), linear-gradient(90deg, #ffffffd6 0%, #ffffffb3 18%, #ffffff6b 39%, #ffffff00 65%); pointer-events: none; }
.hero-caption { position: absolute; z-index: 1; left: max(50px, calc((100vw - var(--container)) / 2 + 10px)); top: 50%; width: min(560px, 75%); transform: translateY(-50%); color: var(--ink); }
.hero-kicker { color: var(--primary); display: inline-block; margin-bottom: 10px; font-size: 10px; font-weight: 700; letter-spacing: 2px; }
.hero-caption h1 { color: var(--primary); font-size: clamp(35px, 4vw, 58px); letter-spacing: -1.5px; line-height: 1.1; }
.hero-caption p { margin-block: 15px; color: #212121; font-size: 15px; }
.carousel-arrow { position: absolute; z-index: 2; top: 50%; display: grid; place-items: center; width: 36px; height: 36px; padding: 5px; transform: translateY(-50%); border: 1px solid #dbe3ec; border-radius: var(--radius-round); background: #ffffffed; color: var(--ink); }
.carousel-arrow:hover { background: var(--primary-soft); color: var(--primary); }
.carousel-arrow--previous { left: 10px; }
.carousel-arrow--next { right: 10px; }
.carousel-arrow--previous .icon { transform: rotate(180deg); }
.carousel-toolbar { position: absolute; z-index: 2; bottom: 10px; left: 50%; display: flex; align-items: center; gap: 5px; width: max-content; max-width: calc(100% - 20px); padding: 3px 10px; transform: translateX(-50%); border: 1px solid #e3e9ef; border-radius: var(--radius-pill); background: #fffffff2; color: var(--ink); }
.carousel-count { min-width: 38px; font-size: 10px; font-variant-numeric: tabular-nums; }
.carousel-dots { display: flex; flex-wrap: wrap; justify-content: center; }
.carousel-dot { display: grid; place-items: center; width: 17px; height: 24px; padding: 3px; border: 0; border-radius: var(--radius-sm); background: transparent; }
.carousel-dot::before { content: ''; width: 5px; height: 5px; border-radius: var(--radius); background: #c7d0dc; transition: background 200ms; }
.carousel-dot[aria-current="true"]::before { width: 10px; background: var(--primary); }
.welcome-strip { border-bottom: 1px solid var(--border); background: #fff; }
.welcome-strip .container { display: flex; align-items: center; justify-content: space-around; gap: 15px; padding-block: 10px; }
.welcome-strip span { display: flex; align-items: center; gap: 10px; color: #4d5d70; font-size: 12px; }
.welcome-strip .icon { width: 19px; height: 19px; color: var(--primary); }
/* Introduction: playful photo prints, familiar school colours and hand-drawn accents. */
.about-grid { display: grid; grid-template-columns: .95fr 1.05fr; align-items: center; gap: 15px; min-height: 420px; }
.school-collage { position: relative; height: 390px; overflow: hidden; }
.school-collage::before { content: ''; position: absolute; inset: 15px 35px; border: 2px dashed var(--primary-tint); border-radius: var(--radius-art); transform: rotate(-12deg); }
.photo-print { position: absolute; width: 55%; padding: 8px; border: 1px solid #f0f0f0; background: #fff; box-shadow: 0 5px 20px #24344b0d; }
.photo-print img { width: 100%; height: 175px; object-fit: cover; }
.photo-print figcaption { padding-top: 5px; color: #6e6e7a; font-size: 10px; text-align: center; }
.photo-print--back { top: 15px; left: 8%; transform: rotate(-5deg); }
.photo-print--front { right: 8%; bottom: 15px; transform: rotate(6deg); }
.photo-print--front img { object-position: center 40%; }
.doodle { position: absolute; display: block; color: var(--primary); }
.doodle .icon { width: 34px; height: 34px; stroke-width: 1.4; }
.doodle-star { top: 10px; right: 15px; transform: rotate(15deg); }
.doodle-heart { bottom: 80px; left: 5%; color: var(--primary-muted); transform: rotate(-15deg); }
.doodle-sun { top: 125px; right: 10px; color: var(--primary); }
.collage-note { position: absolute; bottom: 5px; left: 7%; color: #6b78a0; font-family: Georgia, serif; font-size: 12px; font-style: italic; line-height: 1.2; transform: rotate(-6deg); }
.collage-note .icon { width: 13px; height: 13px; }
.about-copy p:not(.eyebrow) { margin-bottom: 10px; color: #566171; font-size: 14px; }
.value-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-block: 15px; }
.value-tags span { display: inline-flex; align-items: center; gap: 5px; padding: 5px; color: #5f6875; font-size: 11px; }
.value-tags .icon { width: 16px; height: 16px; color: var(--primary); }
.community-section, .gallery-section, .faq-section { border-top: 1px solid var(--border); }
.facilities-section { border-top: 1px solid var(--border); }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.gallery-item { position: relative; display: block; overflow: hidden; border-radius: var(--radius); }
.gallery-item img { width: 100%; height: 230px; object-fit: cover; transition: transform 400ms; }
.gallery-item:hover img { transform: scale(1.045); }
.gallery-item > span { position: absolute; inset: auto 0 0; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px; background: linear-gradient(transparent,#132338db); color: #fff; font-size: 11px; }
.gallery-item .icon { width: 16px; height: 16px; }
.gallery-action { display: flex; justify-content: center; align-items: center; gap: 15px; margin-top: 15px; }
.gallery-action > span { color: var(--muted); font-size: 11px; }
.admission-section { position: relative; overflow: hidden; border-block: 1px solid var(--primary-tint); background: var(--primary-soft); }
.admission-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; align-items: stretch; }
.admission-intro { position: relative; overflow: hidden; padding: 15px; border-radius: var(--radius-lg); background: var(--primary); color: var(--on-primary); }
.admission-label { font-size: 9px; font-weight: 700; letter-spacing: 1.5px; }
.admission-intro h2 { position: relative; z-index: 1; margin-block: 10px; color: var(--on-primary); font-size: 34px; }
.admission-intro p { position: relative; z-index: 1; max-width: 420px; margin-bottom: 15px; font-size: 13px; }
.admission-intro .button { position: relative; z-index: 1; }
.admission-doodle { position: absolute; right: 10px; bottom: 0; color: #fff7; transform: rotate(-15deg); }
.admission-doodle .icon { width: 105px; height: 105px; stroke-width: 1; }
.admission-steps { display: grid; align-content: center; gap: 15px; }
.admission-steps article { display: flex; align-items: flex-start; gap: 15px; padding: 10px; border-bottom: 1px dashed var(--primary-border); }
.admission-steps article:last-child { border: 0; }
.step-number { display: grid; place-items: center; flex-shrink: 0; width: 36px; height: 36px; border: 1px solid var(--primary-border); border-radius: var(--radius-round); color: var(--primary); font-size: 13px; font-weight: 700; }
.admission-steps h3 { margin-bottom: 5px; font-size: 16px; }
.admission-steps p { color: var(--muted); font-size: 12px; }
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 15px; align-items: center; }
.faq-grid > div > p:not(.eyebrow) { color: var(--muted); font-size: 13px; }
.faq-list details { border-bottom: 1px solid var(--border); }
.faq-list summary { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-block: 15px; list-style: none; cursor: pointer; font-size: 13px; font-weight: 700; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary .icon { width: 16px; height: 16px; color: var(--primary); transition: transform 180ms; }
.faq-list details[open] summary .icon { transform: rotate(90deg); }
.faq-list details p { padding-bottom: 10px; color: var(--muted); font-size: 13px; }
.contact-section { border-top: 1px solid var(--border); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 15px; }
.contact-photo { position: relative; overflow: hidden; border-radius: var(--radius); }
.contact-photo img { width: 100%; height: 340px; object-fit: cover; }
.contact-photo > span { position: absolute; inset: auto 0 0; display: flex; align-items: center; gap: 10px; padding: 10px; background: #172c47df; color: #fff; font-size: 12px; }
.contact-photo .icon { width: 17px; height: 17px; }
.contact-copy > p:not(.eyebrow) { margin-bottom: 10px; color: var(--muted); font-size: 13px; }
.contact-detail { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.contact-detail h3 { font-size: 13px; }
.contact-detail p { color: var(--muted); font-size: 12px; }
.contact-map { grid-column: 1 / -1; min-width: 0; margin-top: 15px; overflow: hidden; border: 1px solid var(--primary-border); border-radius: var(--radius-lg); background: var(--primary-soft); }
.contact-map__heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px; }
.contact-map__heading .eyebrow { margin-bottom: 5px; }
.contact-map__heading h3 { margin-bottom: 5px; font-size: 22px; }
.contact-map__heading p:last-child { color: var(--muted); font-size: 13px; }
.contact-map__heading .text-link { flex-shrink: 0; }
.contact-map__embed { display: block; width: 100%; height: 400px; border: 0; border-top: 1px solid var(--primary-border); background: #fff; }
@media (max-width: 600px) {
  .contact-map__heading { align-items: flex-start; flex-direction: column; gap: 12px; padding: 15px; }
  .contact-map__heading h3 { font-size: 20px; }
  .contact-map__embed { height: 320px; }
}
.site-footer { padding-block: 42px 24px; background: var(--footer-background); color: #e2e8ef; }
.footer-grid { row-gap: 30px; column-gap: 24px; display: grid; grid-template-columns: 1.5fr 1fr 1fr .9fr; }
.footer-brand .school-mark { width: 38px; height: 38px; }
.footer-brand strong { color: #fff; font-size: 21px; }
.footer-brand small { color: #c4d1e0; font-size: 11px; }
.footer-grid > div > p { margin-top: 10px; color: #d0dbe7; font-size: 15px; }
.footer-grid h2 { margin-bottom: 18px; color: #fff; font-size: 19px; letter-spacing: 0; }
.footer-grid nav { display: grid; gap: 10px; color: #d0dbe7; font-size: 15px; }
.footer-grid nav a:hover { color: var(--primary-border); }
.footer-note { display: flex; align-items: center; gap: 10px; }
.footer-note > .icon { width: 40px; height: 40px; color: var(--primary-border); }
.footer-note p { margin: 0 !important; }
.footer-note strong { color: #fff; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 30px; padding-top: 20px; border-top: 1px solid #ffffff21; color: #c4d1e0; font-size: 14px; }
/* The gallery opens in a native dialog with keyboard support. */
.gallery-lightbox { width: min(1000px, calc(100% - 20px)); max-height: calc(100dvh - 20px); margin: auto; padding: 10px; border: 0; border-radius: var(--radius-lg); background: #fff; color: var(--ink); }
.gallery-lightbox::backdrop { background: #0e1826db; }
.lightbox-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; font-size: 13px; }
.gallery-lightbox button { display: grid; place-items: center; flex-shrink: 0; width: 34px; height: 34px; padding: 5px; border: 1px solid var(--border); border-radius: var(--radius-round); background: #fff; color: var(--ink); }
.lightbox-stage { display: flex; align-items: center; gap: 10px; }
.lightbox-stage img { width: calc(100% - 88px); height: min(68dvh, 700px); object-fit: contain; }
.lightbox-stage button:first-child .icon { transform: rotate(180deg); }
.lightbox-count { margin-top: 10px; color: var(--muted); font-size: 11px; text-align: center; }
body.is-viewing-gallery, body.is-loading { overflow: hidden; }
/* White school-bag loading animation. */
.school-loader { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 10px; background: #fff; opacity: 1; transition: opacity 320ms ease, visibility 320ms ease; }
.school-loader.is-leaving { visibility: hidden; opacity: 0; pointer-events: none; }
.school-loader__content { display: flex; flex-direction: column; align-items: center; text-align: center; }
.school-loader__bag { width: 116px; margin-bottom: 10px; transform-origin: 50% 85%; animation: bag-float 1800ms ease-in-out infinite; }
.school-loader__bag svg { display: block; width: 100%; height: auto; }
.school-loader__name { color: var(--primary); font-size: 16px; font-weight: 700; letter-spacing: -0.3px; }
.school-loader__location { margin-top: 4px; color: #777; font-size: 10px; letter-spacing: 3px; text-transform: uppercase; }
.school-loader__dots { display: flex; justify-content: center; align-items: center; gap: 8px; height: 24px; margin-top: 10px; }
.school-loader__dots span { width: 7px; height: 7px; border-radius: var(--radius-round); background: var(--primary); animation: loading-dot 1200ms ease-in-out infinite; }
.school-loader__dots span:nth-child(2) { animation-delay: 160ms; }
.school-loader__dots span:nth-child(3) { animation-delay: 320ms; }
@keyframes bag-float { 0%,100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-8px) rotate(3deg); } }
@keyframes loading-dot { 0%,70%,100% { transform: translateY(0); opacity: .3; } 35% { transform: translateY(-6px); opacity: 1; } }
@keyframes carousel-reveal { from { opacity: .3; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Scrapbook reveals: paper pieces settle into place; headings draw themselves in. */
.scroll-reveal { overflow-anchor: none; }
.scroll-reveal .reveal-piece {
  opacity: 0;
  transform: translate3d(var(--paper-x, 12px), 20px, 0) rotate(var(--paper-angle, 1deg)) scale(.97);
  transform-origin: 50% 85%;
  transition: opacity 260ms ease, transform 360ms ease;
}
.scroll-reveal.is-in-view .reveal-piece,
.scroll-reveal:focus-within .reveal-piece {
  opacity: 1;
  transform: none;
  animation: paper-arrival 800ms cubic-bezier(.2,.7,.2,1) var(--paper-delay, 0ms) both;
}
.scroll-reveal.is-in-view .scribble-title::after {
  transform-origin: left center;
  animation: pencil-underline 650ms ease 250ms both;
}
.scroll-reveal.is-in-view .doodle .icon {
  animation: sticker-arrival 850ms cubic-bezier(.18,.8,.3,1.2) 180ms both;
}
@keyframes paper-arrival {
  0% { opacity: 0; transform: translate3d(var(--paper-x, 12px), 20px, 0) rotate(var(--paper-angle, 1deg)) scale(.97); }
  65% { opacity: 1; transform: translate3d(0, -3px, 0) rotate(calc(var(--paper-angle, 1deg) * -.25)) scale(1.008); }
  100% { opacity: 1; transform: none; }
}
@keyframes pencil-underline {
  from { transform: scaleX(0) rotate(-2deg); }
  to { transform: scaleX(1) rotate(-2deg); }
}
@keyframes sticker-arrival {
  0% { opacity: 0; transform: scale(.4) rotate(-22deg); }
  65% { opacity: 1; transform: scale(1.12) rotate(5deg); }
  100% { opacity: 1; transform: scale(1) rotate(0); }
}
.back-to-top {
  position: fixed;
  right: 15px;
  bottom: max(15px, env(safe-area-inset-bottom));
  z-index: 40;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid #dbe3ec;
  border-radius: var(--radius-round);
  background: #fff;
  color: var(--primary);
  box-shadow: 0 4px 18px #17273a1f;
  transition: background 180ms, transform 180ms;
}
.back-to-top:hover { background: var(--primary-soft); transform: translateY(-3px); }
.back-to-top .icon { transform: rotate(-90deg); }
@media (prefers-reduced-motion: reduce) {
  .scroll-reveal .reveal-piece { opacity: 1; transform: none; animation: none !important; }
}

/* The same photo-print vocabulary as the welcome section. */
.story-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 15px; }
.story-grid > * { min-width: 0; }
.story-copy p:not(.eyebrow) { margin-bottom: 10px; color: #566171; font-size: 14px; }
.scrapbook-board { position: relative; height: 445px; overflow: hidden; }
.scrapbook-path { position: absolute; inset: 15px 35px; border: 2px dashed var(--primary-tint); border-radius: var(--radius-art-alt); transform: rotate(10deg); }
.portrait-print, .discovery-print { position: absolute; padding: 8px; border: 1px solid #eee; background: #fff; box-shadow: 0 5px 16px #24344b10; }
.portrait-print { width: 36%; }
.portrait-print img { width: 100%; height: 190px; object-fit: cover; object-position: center 36%; }
.portrait-print figcaption, .discovery-print figcaption { padding-top: 5px; text-align: center; color: #64718b; font-family: Georgia, serif; font-size: 12px; font-style: italic; }
.portrait-print--principal { top: 15px; left: 8%; z-index: 2; transform: rotate(-6deg); }
.portrait-print--vice { top: 40px; right: 9%; transform: rotate(7deg); }
.portrait-print--manager { bottom: 15px; left: 33%; z-index: 3; transform: rotate(2deg); }
.portrait-print--manager img { height: 160px; }
.paper-tape { position: absolute; z-index: 1; top: -5px; left: 35%; width: 32%; height: 17px; border: 1px solid var(--primary-border); background: color-mix(in srgb, var(--primary-tint) 75%, transparent); transform: rotate(-4deg); }
.board-star { top: 10px; right: 5px; }
.board-heart { bottom: 55px; left: 6%; color: var(--primary-muted); transform: rotate(-12deg); }
.board-note { position: absolute; bottom: 5px; right: 5%; color: #7e7da6; font-family: Georgia, serif; font-size: 12px; font-style: italic; line-height: 1.4; transform: rotate(-5deg); }
.board-note .icon { width: 14px; height: 14px; }
.notebook-lines { margin-block: 15px; }
.notebook-lines > span { display: flex; align-items: center; gap: 10px; padding-block: 7px; border-bottom: 1px dashed var(--primary-tint); color: #5d6a80; font-size: 13px; }
.notebook-lines .icon { width: 18px; height: 18px; color: var(--primary); }
.school-discoveries { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-block: 15px; }
.school-discoveries > div { display: flex; align-items: flex-start; gap: 10px; padding-block: 5px; }
.school-discoveries .icon { width: 21px; height: 21px; color: var(--primary); }
.school-discoveries strong { display: block; color: var(--primary); font-size: 12px; }
.school-discoveries small { display: block; color: var(--muted); font-size: 11px; line-height: 1.5; }
.discovery-print { width: 63%; }
.discovery-print img { width: 100%; height: 200px; object-fit: cover; }
.discovery-print--campus { left: 6%; top: 15px; transform: rotate(-5deg); }
.discovery-print--life { bottom: 15px; right: 5%; transform: rotate(6deg); }
.discovery-board .board-heart { left: 4%; bottom: 100px; color: var(--primary-muted); }
.discovery-board .board-note { left: 4%; right: auto; bottom: 5px; }

/* Keep each leadership photograph's handwritten role caption unobstructed. */
.community-board { height: 475px; }

/* Mobile navigation enhancement; the complete menu remains usable without JS. */
.site-header { position: relative; z-index: 50; }
.nav-toggle { display: none; }
.nav-toggle__icon { display: grid; gap: 4px; width: 20px; }
.nav-toggle__icon > span { display: block; height: 2px; border-radius: var(--radius-sm); background: currentColor; transition: transform 180ms, opacity 180ms; }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon > span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon > span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon > span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Keep quick actions grouped and clear of mobile safe areas. */
.floating-actions {
  position: fixed;
  right: max(15px, env(safe-area-inset-right));
  bottom: max(15px, env(safe-area-inset-bottom));
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.floating-actions .back-to-top { position: static; }
.floating-call {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid var(--primary-hover);
  border-radius: var(--radius-round);
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 18px #17273a1f;
  transition: background 180ms, transform 180ms;
}
.floating-call:hover { background: var(--primary-hover); transform: translateY(-2px); }
.floating-call .icon { width: 21px; height: 21px; }
.scroll-progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: 3px;
  background: var(--primary-soft);
  pointer-events: none;
}
.scroll-progress__fill {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--primary-hover));
  transform: scaleX(0);
  transform-origin: left center;
}

/* Tilted paper reveals stay inside their section rather than widening the page. */
.scroll-reveal { overflow-x: clip; overflow-y: visible; }
.about-grid > *, .contact-grid > *, .faq-grid > *, .admission-grid > *, .footer-grid > * { min-width: 0; }
