:root {
  --gold: #f7e4da;
  --gold-soft: #f1d4cc;
  --green: #7c6166;
  --green-deep: #684b52;
  --maroon: #765a60;
  --cream: #f3ede6;
  --paper: #fcf9f4;
  --ink: #3b2b2e;
  --muted: #6e5a5e;
  --line: rgba(104, 75, 82, 0.2);
  --serif: "Iowan Old Style", "Palatino Linotype", Baskerville, Georgia, serif;
  --sans: "Avenir Next", Avenir, "Segoe UI", Helvetica, Arial, sans-serif;
  /* The logo wordmark is set in Century Gothic; these are the closest
     geometric fallbacks for devices that do not ship it. */
  --brand: "Century Gothic", "URW Gothic", "Questrial", "Didact Gothic", Futura, "Trebuchet MS", var(--sans);
  --brand-cream: #f3ede6;
  /* The logo mark is #481820. These keep its hue but sit lighter, so the
     brand reads as maroon rather than the greyed mauve of --maroon. Used
     for the nav pills, the calls to action and the footer. */
  --brand-maroon: #822b3a;
  --brand-maroon-soft: #a13647;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
}

p {
  font-weight: 500;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

/* Warm archival treatment for school photography; brand marks, QR codes and
   anything marked .no-filter keep their original colours. */
img:not([src*="logo"]):not([src*="qr-"]):not(.no-filter) {
  filter: grayscale(0.28) sepia(0.34) saturate(0.82) contrast(1.06) brightness(0.97) !important;
}

.hero-image,
.vision-collage img,
.community-image img,
.space-card img,
.gallery-item img,
.facility-card img,
.inner-split-media img {
  transition: filter 420ms ease, transform 500ms cubic-bezier(0.2, 0.72, 0.2, 1);
}

h1,
h2,
h3,
p,
blockquote {
  margin-top: 0;
}

.skip-link {
  position: fixed;
  z-index: 100;
  left: 16px;
  top: -80px;
  padding: 10px 16px;
  background: var(--gold);
  color: var(--green-deep);
  font-weight: 700;
}

.skip-link:focus {
  top: 12px;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.button:focus-visible,
.header-cta:focus-visible,
.copy-btn:focus-visible {
  outline-offset: 4px;
}

.scroll-progress {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 90;
  height: 3px;
  background: rgba(104, 75, 82, 0.1);
}

.scroll-progress > span {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--gold);
  transition: width 90ms linear;
}

.site-header {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 50;
  min-height: 0;
  padding: 20px clamp(20px, 3.2vw, 54px) 22px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  grid-template-rows: auto auto;
  align-items: center;
  gap: 14px 24px;
  color: var(--ink);
  background: var(--cream);
  border-bottom: 1px solid rgba(104, 75, 82, 0.16);
  transition: background 260ms ease, height 260ms ease, top 260ms ease, box-shadow 260ms ease;
}

.site-header.is-scrolled {
  position: fixed;
  top: 0;
  height: auto;
  min-height: 0;
  padding-top: 12px;
  padding-bottom: 14px;
  background: var(--cream);
  border-bottom-color: rgba(104, 75, 82, 0.2);
  box-shadow: 0 14px 34px rgba(59, 43, 46, 0.16);
}

.site-header.is-scrolled .mobile-menu nav {
  top: 82px;
}

.desktop-nav a.is-active {
  color: var(--cream);
  box-shadow: 0 6px 16px rgba(59, 43, 46, 0.32);
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  width: fit-content;
}

.brand img {
  width: clamp(240px, 53vw, 760px);
  height: auto;
  display: block;
  object-fit: contain;
}

/* Give the sticky header back some height once the page is scrolled. */
.site-header.is-scrolled .brand img {
  width: clamp(210px, 32vw, 450px);
}

.site-header .brand {
  grid-column: 1 / -1;
  grid-row: 1;
  justify-self: center;
}

.desktop-nav {
  grid-column: 1 / -1;
  grid-row: 2;
  justify-self: center;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(5px, 0.5vw, 9px);
  padding: 0;
  font-size: clamp(0.72rem, 0.72vw, 0.86rem);
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.desktop-nav a {
  position: relative;
  padding: 9px clamp(11px, 0.95vw, 16px);
  background: var(--brand-maroon);
  color: var(--cream);
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(59, 43, 46, 0.16);
}

.footer-links a {
  position: relative;
}

.footer-links a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -6px;
  left: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 220ms ease;
}

.footer-links a:hover::after,
.footer-links a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-cta {
  display: none;
}

.mobile-menu {
  display: none;
}

/* The header sits on top of the hero, so the photo begins where the bar
   ends and the hero runs to the bottom of the viewport. Everything below
   keys off --header-h, which the header measures for itself. */
.hero {
  position: relative;
  height: 100svh;
  min-height: 560px;
  padding-top: var(--header-h, 150px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: white;
}

.hero::after {
  content: "";
  position: absolute;
  inset: var(--header-h, 150px) 0 0 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0.2);
  pointer-events: none;
}

.hero-image {
  position: absolute;
  top: var(--header-h, 150px);
  left: 0;
  /* A replaced element sizes to its own ratio under `inset`, so the box is
     given explicitly: full width, and the viewport minus the header. */
  width: 100%;
  height: calc(100% - var(--header-h, 150px));
  object-fit: cover;
  object-position: center 46%;
  animation: hero-reveal 1.2s ease-out both;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(980px, 90vw);
  margin: 0 auto;
  padding: 24px;
  text-align: center;
  text-shadow: 0 2px 18px rgba(59, 43, 46, 0.56);
}

.hero-content .button,
.hero-content .text-link {
  text-shadow: none;
}

.hero-brand-lockup {
  width: min(100%, 480px);
  margin: 0 auto 16px;
  padding: 11px 20px 11px 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 18px;
  background:
    linear-gradient(
      125deg,
      rgba(252, 249, 244, 0.56),
      rgba(247, 228, 218, 0.34)
    );
  -webkit-backdrop-filter: blur(8px) saturate(112%);
  backdrop-filter: blur(8px) saturate(112%);
  box-shadow:
    0 12px 28px rgba(59, 43, 46, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.hero-brand-lockup > img {
  width: 78px;
  height: 78px;
  flex: 0 0 78px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.hero-brand-copy {
  min-width: 0;
  display: grid;
  justify-items: center;
  color: var(--ink);
  line-height: 1;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.62);
}

.hero-brand-name {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  font-family: var(--sans);
  font-size: clamp(1.18rem, 2vw, 1.72rem);
  font-weight: 800;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.hero-brand-name sup {
  margin-top: 1px;
  font-size: 0.42em;
}

.hero-brand-school {
  margin-top: 3px;
  font-family: var(--serif);
  font-size: clamp(1.05rem, 1.55vw, 1.35rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-brand-philosophy {
  margin-top: 6px;
  color: var(--maroon);
  font-size: clamp(0.52rem, 0.72vw, 0.65rem);
  font-style: italic;
  font-weight: 700;
}

.eyebrow {
  margin-bottom: 20px;
  color: var(--green);
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

.eyebrow.light {
  color: var(--gold);
}

.hero h1 {
  max-width: 760px;
  margin-right: auto;
  margin-left: auto;
  margin-bottom: 25px;
  font-family: var(--serif);
  font-size: clamp(2.8rem, 5vw, 5.2rem);
  font-weight: 400;
  letter-spacing: -0.042em;
  line-height: 0.96;
  text-wrap: balance;
}

.hero-copy {
  max-width: 610px;
  margin-right: auto;
  margin-bottom: 34px;
  margin-left: auto;
  font-family: var(--serif);
  font-size: clamp(1.08rem, 1.7vw, 1.35rem);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.button {
  min-height: 52px;
  padding: 14px 21px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: transform 180ms ease, background 180ms ease;
}

.button:hover,
.button:focus-visible,
.header-cta:hover,
.header-cta:focus-visible {
  transform: translateY(-2px);
}

.button-gold {
  background: var(--gold);
  color: var(--green-deep);
}

.button-gold:hover,
.button-gold:focus-visible {
  background: #fbede7;
}

.text-link {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.light-link {
  color: white;
  border-bottom: 1px solid rgba(255, 255, 255, 0.7);
}

.hero-note {
  position: absolute;
  z-index: 2;
  right: clamp(24px, 5vw, 80px);
  bottom: 36px;
  display: flex;
  gap: 16px;
  color: rgba(255, 255, 255, 0.77);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-note span + span {
  padding-left: 16px;
  border-left: 1px solid rgba(255, 255, 255, 0.35);
}

.quote-band {
  position: relative;
  padding: clamp(52px, 6vw, 84px) clamp(24px, 8vw, 130px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(30px, 5vw, 80px);
  align-items: end;
  background: var(--cream);
  overflow: hidden;
}

.branch-motif {
  position: absolute;
  z-index: 0;
  right: clamp(10px, 4vw, 90px);
  bottom: 0;
  width: clamp(180px, 22vw, 300px);
  height: auto;
  pointer-events: none;
}

.branch-path {
  stroke: var(--green);
  stroke-width: 1.4;
  stroke-linecap: round;
  opacity: 0.16;
  stroke-dasharray: 620;
  stroke-dashoffset: 620;
  transition: stroke-dashoffset 1600ms ease;
}

.branch-leaf {
  fill: var(--maroon);
  opacity: 0;
  transform-origin: center;
  transition: opacity 700ms ease 900ms;
}

.quote-copy.is-visible ~ .branch-motif .branch-path,
.quote-band:has(.is-visible) .branch-motif .branch-path {
  stroke-dashoffset: 0;
}

.quote-band:has(.is-visible) .branch-motif .branch-leaf {
  opacity: 0.14;
}

.quote-copy,
.quote-aside,
.section-number {
  position: relative;
  z-index: 1;
}

.section-number {
  align-self: start;
  padding-top: 7px;
  color: var(--maroon);
  font-family: var(--serif);
  font-size: 1rem;
}

.quote-copy blockquote {
  max-width: 920px;
  margin-bottom: 24px;
  font-family: var(--serif);
  font-size: clamp(2.25rem, 4.7vw, 4.8rem);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.quote-copy blockquote:last-child {
  margin-bottom: 0;
}

.quote-copy cite {
  color: var(--maroon);
  font-family: var(--serif);
  font-size: 1rem;
}

.quote-copy-long {
  grid-column: 2;
}

.quote-copy-long blockquote {
  max-width: 900px;
  font-size: clamp(1.85rem, 2.55vw, 3rem);
  line-height: 1.2;
}

.quote-aside {
  margin-bottom: 0;
  color: #5f4b4f;
  font-family: var(--serif);
  font-size: clamp(1.14rem, 1.45vw, 1.25rem);
  font-weight: 500;
  line-height: 1.75;
}

.quote-aside-card {
  align-self: center;
  padding: 0;
}

.quote-aside-card > span {
  display: block;
  margin-bottom: 14px;
  color: var(--maroon);
  font-family: var(--sans);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.quote-aside-card blockquote {
  margin: 0;
  max-width: 1080px;
  font-family: var(--serif);
  font-size: clamp(1.55rem, 2.5vw, 2.5rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.28;
}

.quote-aside-card cite {
  display: block;
  margin-top: 18px;
  color: var(--maroon);
  font-family: var(--serif);
  font-size: 1rem;
  font-style: normal;
  text-align: right;
}



/* ---------- Upcoming event popup ---------- */
body.has-popup {
  overflow: hidden;
}

.event-popup {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 24px;
}

.event-popup[hidden] {
  display: none;
}

.event-popup-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(30, 20, 23, 0.62);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 260ms ease;
}

.event-popup.is-open .event-popup-backdrop {
  opacity: 1;
}

.event-popup-card {
  position: relative;
  width: min(460px, 100%);
  /* Never scrolls: the picture gives up height so the whole card fits. */
  max-height: calc(100svh - 48px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 30px 70px rgba(30, 20, 23, 0.34);
  opacity: 0;
  transform: translateY(14px) scale(0.98);
  transition: opacity 300ms ease, transform 300ms cubic-bezier(0.2, 0.75, 0.25, 1);
}

.event-popup.is-open .event-popup-card {
  opacity: 1;
  transform: none;
}

.event-popup-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  /* Shrinks first when the viewport is short. */
  flex: 0 1 auto;
  min-height: 0;
  max-height: 34svh;
  display: block;
  object-fit: cover;
}

.event-popup-body {
  flex: 0 0 auto;
  padding: clamp(22px, 3.4vw, 38px);
}

/* On a short window the picture goes altogether rather than the card
   growing past the screen. */
@media (max-height: 560px) {
  .event-popup-image {
    display: none;
  }

  .event-popup-body {
    padding: 26px;
  }

  .event-popup-card h2 {
    font-size: 1.55rem;
  }

  .event-popup-note {
    margin-bottom: 18px;
  }
}

.event-popup-x {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(252, 249, 244, 0.86);
  color: var(--ink);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease;
}

.event-popup-x:hover {
  background: var(--paper);
  color: var(--brand-maroon);
}

.event-popup-date {
  margin-bottom: 10px;
  color: var(--brand-maroon);
  font-family: var(--serif);
  font-size: 1.02rem;
}

.event-popup-card h2 {
  margin: 0 0 16px;
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3.2vw, 2.5rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.12;
}

.event-popup-note {
  margin: 0 0 26px;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.6;
}

.event-popup-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 22px;
}

.event-popup-actions .text-link {
  border: 0;
  background: none;
  color: var(--muted);
  cursor: pointer;
  font-family: inherit;
}

.event-popup-actions .text-link:hover {
  color: var(--brand-maroon);
}

@media (prefers-reduced-motion: reduce) {
  .event-popup-backdrop,
  .event-popup-card {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- Academic calendar ---------- */
.calendar-section {
  background: var(--paper);
}

.calendar-legend {
  margin: 0 0 clamp(30px, 3.4vw, 46px);
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  list-style: none;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--muted);
}

.calendar-legend li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.calendar-legend span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--cal-dot, var(--muted));
}


/* ----- One month at a time, with navigation ----- */
.calendar-view[hidden],
.calendar-grid[hidden],
.calendar-legend[hidden] {
  display: none;
}

.calendar-head {
  margin-bottom: clamp(20px, 2.4vw, 30px);
  display: flex;
  align-items: center;
  gap: 18px;
}

.calendar-title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  font-weight: 400;
}

.calendar-nav {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: none;
  color: var(--ink);
  font-size: 1rem;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.calendar-nav:hover:not(:disabled) {
  background: var(--brand-maroon);
  border-color: var(--brand-maroon);
  color: var(--cream);
}

.calendar-nav:disabled {
  opacity: 0.32;
  cursor: not-allowed;
}

.calendar-panes {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(26px, 3.4vw, 54px);
  align-items: start;
}

.calendar-sheet {
  border: 1px solid var(--line);
}

.calendar-weekdays,
.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.calendar-weekdays {
  border-bottom: 1px solid var(--line);
  background: var(--cream);
}

.calendar-weekdays span {
  padding: 10px 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.calendar-day {
  position: relative;
  min-height: clamp(56px, 5.6vw, 78px);
  padding: 8px 6px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 0.86rem;
}

.calendar-day:nth-child(7n) {
  border-right: 0;
}

.calendar-day.is-empty {
  background: rgba(104, 75, 82, 0.03);
}

.calendar-day.has-entry b {
  font-weight: 700;
}

.calendar-day.is-today {
  background: rgba(130, 43, 58, 0.06);
}

.calendar-day.is-today b {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand-maroon);
  color: var(--cream);
  font-weight: 700;
}

/* "Today" spelled out under the date, so the circle is not the only cue. */
.calendar-day.is-today::after {
  content: "Today";
  position: absolute;
  right: 0;
  bottom: 4px;
  left: 0;
  text-align: center;
  color: var(--brand-maroon);
  font-size: 0.5rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.calendar-dots {
  display: flex;
  gap: 3px;
}

.calendar-dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cal-dot, var(--muted));
}

.calendar-list {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
  list-style: none;
}

.calendar-list li {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 4px 14px;
  align-items: baseline;
}

.calendar-list li:empty::after {
  content: "Nothing scheduled this month.";
  color: var(--muted);
}

@media (max-width: 860px) {
  .calendar-panes {
    grid-template-columns: 1fr;
  }
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.calendar-month {
  padding: clamp(22px, 2.2vw, 30px);
  background: var(--paper);
}

.calendar-month h3 {
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 500;
}

.calendar-month h3 span {
  color: var(--muted);
  font-size: 0.72em;
}

.calendar-month ul {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
  list-style: none;
}

.calendar-month li {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 4px 12px;
  align-items: baseline;
}

.cal-date {
  grid-row: 1 / 3;
  color: var(--cal-dot, var(--maroon));
  font-family: var(--serif);
  font-size: 1.02rem;
  font-weight: 600;
  text-align: right;
}

.cal-what {
  color: var(--ink);
  font-size: 0.94rem;
  line-height: 1.5;
}

.cal-tag {
  color: var(--cal-dot, var(--muted));
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

/* One colour per kind of entry, shared by the legend, date and tag. */
.cal-event { --cal-dot: #9c5a2e; }
.cal-holiday { --cal-dot: #8f3140; }
.cal-workshop { --cal-dot: #4f6f7a; }
.cal-visit { --cal-dot: #5c7a58; }
.cal-term { --cal-dot: #6b5b8a; }
.cal-due { --cal-dot: #a8462c; }
.cal-meeting { --cal-dot: #6e6a52; }

.calendar-foot {
  margin-top: clamp(30px, 3.4vw, 44px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.calendar-foot p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 1080px) {
  .calendar-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .calendar-grid {
    grid-template-columns: 1fr;
  }
}

.glance {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.glance-item {
  padding: 26px clamp(20px, 3vw, 40px);
  display: grid;
  gap: 8px;
}

.glance-item + .glance-item {
  border-left: 1px solid var(--line);
}

.glance-item span {
  color: var(--maroon);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.glance-item strong {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.35;
}

.section-pad {
  padding: clamp(84px, 10vw, 150px) clamp(24px, 8vw, 130px);
}

.section-heading {
  margin-bottom: clamp(52px, 7vw, 90px);
}

.split-heading,
.programme-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.65fr);
  gap: clamp(50px, 10vw, 160px);
  align-items: end;
}

.section-heading h2,
.vision-copy h2,
.life-intro h2,
.community-copy h2,
.contact-lead h2 {
  margin-bottom: 0;
  font-family: var(--serif);
  font-size: clamp(2.6rem, 5vw, 5rem);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1.03;
}

.split-heading > p,
.programme-heading > p,
.life-intro > p,
.community-copy > p,
.contact-lead > p {
  margin-bottom: 0;
  color: var(--muted);
  font-family: var(--serif);
  font-size: clamp(1.13rem, 1.45vw, 1.24rem);
  font-weight: 500;
  line-height: 1.72;
}

.pillars {
  display: grid;
  grid-template-columns: 1fr;
  border: 1px solid var(--line);
}

.pillars article {
  padding: clamp(28px, 4vw, 58px);
  transition: background 220ms ease;
}

.pillars article:hover {
  background: var(--cream);
}

.pillars article + article {
  border-top: 1px solid var(--line);
}

.pillar-mark,
.programme-index {
  color: var(--maroon);
  font-family: var(--serif);
  font-size: 0.82rem;
}

.pillar-icon {
  display: block;
  width: 48px;
  height: 48px;
  margin-bottom: 22px;
  padding: 10px;
  box-sizing: border-box;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: var(--cream);
  color: var(--green);
}

.pillars article:nth-child(1) .pillar-icon {
  color: #6f7f89;
  background: #eef2f3;
}

.pillars article:nth-child(2) .pillar-icon {
  color: #687f73;
  background: #edf3ef;
}

.pillars article:nth-child(3) .pillar-icon {
  color: var(--maroon);
  background: var(--gold);
}

.pillar-icon path {
  stroke: currentColor;
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pillar-icon-symbol {
  display: grid;
  place-items: center;
  font-family: "Segoe UI Symbol", "Noto Sans Symbols", sans-serif;
  font-size: 1.45rem;
  font-weight: 400;
  line-height: 1;
}

.pillars h3 {
  margin: 22px 0 18px;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.4vw, 2.15rem);
  font-weight: 500;
}

.pillars p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.72;
}

.pillars p + p {
  margin-top: 16px;
}

.vision-section {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(420px, 0.9fr);
  background: var(--green-deep);
}

.vision-collage {
  position: relative;
  min-height: 760px;
  overflow: hidden;
}

.vision-large {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vision-small {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 42%;
  border: 14px solid var(--green-deep);
  border-right: 0;
  border-bottom: 0;
}

.vision-copy {
  padding: clamp(70px, 9vw, 140px) clamp(36px, 7vw, 110px);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.vision-copy h2 {
  margin-bottom: 38px;
}

.vision-copy > p:not(.eyebrow) {
  max-width: 590px;
  color: rgba(255, 255, 255, 0.86);
  font-family: var(--serif);
  font-size: 1.16rem;
  line-height: 1.72;
}

.vision-principles {
  margin-top: 34px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid rgba(255, 255, 255, 0.24);
  border-left: 1px solid rgba(255, 255, 255, 0.24);
}

.vision-principles span {
  padding: 15px;
  border-right: 1px solid rgba(255, 255, 255, 0.24);
  border-bottom: 1px solid rgba(255, 255, 255, 0.24);
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.programmes {
  background-color: var(--paper);
  background-image:
    linear-gradient(
      112deg,
      rgba(255, 253, 247, 0.95) 0%,
      rgba(255, 253, 247, 0.82) 52%,
      rgba(245, 240, 230, 0.91) 100%
    ),
    linear-gradient(rgba(125, 96, 76, 0.2), rgba(125, 96, 76, 0.2)),
    url("assets/campus-1.jpeg");
  background-position: center, center, center;
  background-size: cover, cover, cover;
  background-repeat: no-repeat, no-repeat, no-repeat;
  background-attachment: scroll, scroll, fixed;
  background-blend-mode: normal, color, luminosity;
}

.programme-list {
  padding: 0 clamp(18px, 2vw, 32px);
  border: 1px solid rgba(104, 75, 82, 0.24);
  background: rgba(255, 253, 247, 0.72);
  box-shadow: 0 20px 50px rgba(104, 75, 82, 0.13);
  backdrop-filter: blur(7px);
}

.programme-list article {
  padding: 30px 0;
  display: grid;
  grid-template-columns: 80px minmax(260px, 0.7fr) minmax(300px, 1fr);
  gap: 30px;
  align-items: center;
  border-bottom: 1px solid rgba(104, 75, 82, 0.24);
  transition: background 180ms ease, padding 180ms ease;
}

.programme-list article:hover {
  padding-right: 20px;
  padding-left: 20px;
  background: rgba(255, 253, 247, 0.92);
}

.programme-list h3 {
  margin: 0 0 5px;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.4vw, 2.15rem);
  font-weight: 500;
}

.programme-list p {
  margin-bottom: 0;
  color: #5e494e;
  font-size: clamp(1.1rem, 1.25vw, 1.2rem);
  font-weight: 600;
  line-height: 1.68;
}

.programme-years {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.school-life {
  background: var(--green);
  color: white;
}

.life-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.7fr);
  gap: clamp(42px, 9vw, 140px);
  align-items: end;
}

.life-intro h2 {
  max-width: 950px;
  margin-bottom: 30px;
}

.life-summary {
  max-width: 620px;
  padding-bottom: 4px;
}

.life-summary > p {
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.86);
  font-family: var(--serif);
  font-size: 1.14rem;
  line-height: 1.72;
}

.life-summary-kicker {
  display: block;
  margin-bottom: 12px;
  color: var(--gold);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.life-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.life-tags span {
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.61rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.experience-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr 1fr;
  gap: 14px;
  padding: 0 clamp(24px, 6vw, 96px) 42px;
}

.experience-card {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 3px;
  background: var(--maroon);
}

.experience-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.experience-card:hover img {
  transform: scale(1.045);
}

.experience-overlay {
  position: absolute;
  inset: 0;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(0deg, rgba(59, 43, 46, 0.82), transparent 65%);
}

.experience-number {
  position: absolute;
  z-index: 2;
  top: 22px;
  right: 22px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  background: rgba(59, 43, 46, 0.46);
  color: white;
  font-family: var(--serif);
  font-size: 0.72rem;
  backdrop-filter: blur(6px);
}

.experience-overlay p {
  margin-bottom: 8px;
  color: var(--gold);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.experience-overlay h3 {
  margin-bottom: 0;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 3rem);
  font-weight: 400;
}

.community {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(380px, 0.75fr);
  gap: clamp(50px, 9vw, 140px);
  align-items: center;
  background: var(--cream);
}

.community-image {
  position: relative;
}

.community-image::before {
  content: "Together";
  position: absolute;
  z-index: 1;
  right: -35px;
  bottom: -22px;
  color: var(--maroon);
  font-family: var(--serif);
  font-size: clamp(3.2rem, 7vw, 7rem);
  font-style: italic;
}

.community-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: saturate(0.92);
}

.community-copy h2 {
  margin-bottom: 32px;
}

.trust-note {
  margin-top: 42px;
  padding-top: 26px;
  display: grid;
  gap: 7px;
  border-top: 1px solid var(--line);
}

.trust-note span {
  color: var(--maroon);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.trust-note strong {
  font-family: var(--serif);
  font-size: 1.22rem;
  font-weight: 600;
}

.contact-section {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(390px, 0.72fr);
  background: var(--gold);
  color: var(--green-deep);
}

.section-anchor {
  position: absolute;
  top: 0;
  left: 0;
}

.contact-lead {
  padding: clamp(76px, 9vw, 135px) clamp(24px, 8vw, 130px);
  border-right: 1px solid rgba(104, 75, 82, 0.28);
}

.contact-lead h2 {
  max-width: 720px;
  margin-bottom: 28px;
}

.contact-lead > p {
  max-width: 560px;
  margin-bottom: 36px;
  color: rgba(59, 43, 46, 0.9);
}

.button-dark {
  background: var(--brand-maroon);
  color: white;
}

.contact-details {
  padding: clamp(62px, 8vw, 120px) clamp(35px, 6vw, 90px);
  display: grid;
  align-content: center;
}

.contact-details > div {
  padding: 22px 0;
  display: grid;
  grid-template-columns: 105px 1fr;
  gap: 20px;
  border-bottom: 1px solid rgba(104, 75, 82, 0.28);
}

.contact-details span {
  font-size: 0.63rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-details a {
  font-family: var(--serif);
  font-size: 1.08rem;
  font-weight: 500;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.contact-details a:hover,
.contact-details a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.site-footer {
  background: var(--brand-maroon);
  color: white;
}

.footer-main {
  padding: 64px clamp(24px, 7vw, 110px) 30px;
  display: grid;
  grid-template-columns:
    minmax(230px, 0.9fr)
    minmax(120px, 0.46fr)
    minmax(250px, 0.98fr)
    minmax(300px, 1.28fr);
  gap: clamp(26px, 3.4vw, 56px);
  align-items: start;
}

.footer-about > p {
  max-width: 390px;
  margin: 24px 0 28px;
  color: rgba(255, 255, 255, 0.84);
  font-family: var(--serif);
  font-size: 1.08rem;
  line-height: 1.7;
}

.footer-brand img {
  width: min(100%, 292px);
  height: auto;
  padding: 10px 14px;
  display: block;
  object-fit: contain;
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2);
}

.footer-column {
  display: grid;
  align-content: start;
  gap: 10px;
}

.footer-campuses p {
  max-width: none;
}

/* Address beside its scannable code. The footer is dark and the code is
   near-black, so it sits on a white panel to stay readable. */
.footer-campus {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
}

.footer-campus + .footer-campus {
  margin-top: 20px;
}

.footer-campus img {
  width: 78px;
  height: 78px;
  padding: 6px;
  background: #fff;
  border-radius: 4px;
}

.footer-campus > div > a {
  display: inline-block;
  margin-top: 8px;
}

.footer-campuses p + a {
  margin-top: -2px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.footer-campuses a + p {
  margin-top: 8px;
}

.footer-campuses strong {
  display: block;
  margin-bottom: 4px;
  color: var(--gold);
  font-family: var(--sans);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-column h3 {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer-column a,
.footer-column p {
  width: fit-content;
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-family: var(--serif);
  font-size: 1.02rem;
  line-height: 1.6;
}

.footer-column a:hover,
.footer-column a:focus-visible {
  color: var(--gold);
}

.footer-contact a {
  overflow-wrap: anywhere;
}

.footer-bottom {
  min-height: 72px;
  padding: 18px clamp(24px, 7vw, 110px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 28px;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
}

.footer-bottom > span {
  text-align: center;
}

.footer-bottom .footer-designer {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.72);
  white-space: nowrap;
}

.footer-designer > span {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-designer img {
  width: 92px;
  height: 34px;
  padding: 3px 6px;
  display: block;
  object-fit: contain;
  border-radius: 3px;
  background: white;
}

.footer-bottom > a {
  justify-self: end;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 700ms cubic-bezier(0.2, 0.7, 0.2, 1), transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  width: 46px;
  height: 46px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--green-deep);
  color: white;
  font-size: 1rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 220ms ease, transform 220ms ease, visibility 220ms, background 200ms ease;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover,
.back-to-top:focus-visible {
  background: var(--maroon);
}

.contact-details > div {
  position: relative;
}

.copy-btn {
  position: absolute;
  top: 22px;
  right: 0;
  padding: 5px 10px;
  background: transparent;
  border: 1px solid rgba(104, 75, 82, 0.38);
  color: var(--green-deep);
  font-family: var(--sans);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  opacity: 0;
  transition: opacity 180ms ease, background 180ms ease, color 180ms ease;
}

.contact-details > div:hover .copy-btn,
.contact-details > div:focus-within .copy-btn {
  opacity: 1;
}

.copy-btn:hover,
.copy-btn:focus-visible {
  background: var(--green-deep);
  color: white;
}

.copy-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 95;
  padding: 12px 20px;
  background: var(--green-deep);
  color: white;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  transform: translate(-50%, 16px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 220ms ease, transform 220ms ease, visibility 220ms;
}

.copy-toast.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

@keyframes hero-reveal {
  from {
    opacity: 0;
    transform: scale(1.04);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Desktop sections are composed to read as one calm, screen-sized scene. */
@media (min-width: 1081px) {
  .quote-band {
    height: auto;
    min-height: 300px;
    padding: clamp(58px, 6vw, 84px) clamp(40px, 7vw, 110px);
  }

  .quote-copy blockquote {
    font-size: clamp(2.8rem, 4.2vw, 4.35rem);
  }

  .quote-copy-long blockquote {
    font-size: clamp(1.8rem, 2.45vw, 2.75rem);
  }

  .learning,
  .vision-section,
  .programmes,
  .school-life,
  .community {
    height: min(800px, 100svh);
    min-height: 700px;
  }

  .learning {
    height: auto;
    min-height: 0;
    padding: 48px clamp(40px, 6vw, 96px);
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto;
    gap: 0 30px;
    overflow: visible;
  }

  .learning .section-heading {
    grid-column: 1 / -1;
    margin-bottom: 28px;
  }

  .learning .section-heading h2,
  .programmes .section-heading h2,
  .life-intro h2,
  .community-copy h2 {
    font-size: clamp(2.65rem, 3.8vw, 4rem);
  }

  .pillars {
    grid-column: 1 / -1;
    min-height: 0;
    height: auto;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    align-self: start;
    border-top: 1px solid var(--line);
  }

  .pillars article {
    min-height: 0;
    padding: 22px 28px;
    display: grid;
    grid-template-columns: 56px 1fr;
    grid-template-rows: auto auto;
    column-gap: 16px;
    align-content: start;
  }

  .pillars article + article {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .pillar-icon {
    grid-column: 1;
    grid-row: 1 / 3;
    width: 46px;
    height: 46px;
    padding: 9px;
    margin: 2px 0 0;
  }

  .pillar-mark {
    display: none;
  }

  .pillars h3 {
    grid-column: 2;
    margin: 0 0 6px;
    font-size: 1.5rem;
  }

  .pillars p {
    grid-column: 2;
    font-size: 1rem;
    line-height: 1.55;
  }

  .vision-section {
    overflow: hidden;
  }

  .vision-collage {
    min-height: 0;
    height: 100%;
  }

  .vision-copy {
    padding: 46px clamp(40px, 5vw, 76px);
  }

  .vision-copy h2 {
    margin-bottom: 24px;
    font-size: clamp(2.55rem, 3.7vw, 4rem);
  }

  .vision-copy > p:not(.eyebrow) {
    font-size: 1.1rem;
    line-height: 1.65;
  }

  .vision-principles {
    margin-top: 22px;
  }

  .programmes {
    padding: 48px clamp(40px, 7vw, 110px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .programme-heading {
    margin-bottom: 28px;
  }

  .programme-list {
    min-height: 0;
    flex: 1;
    display: grid;
    grid-template-rows: repeat(4, 1fr);
  }

  .programme-list article {
    min-height: 0;
    padding: 12px 0;
    grid-template-columns: 50px minmax(220px, 0.58fr) minmax(300px, 1fr);
    gap: 22px;
  }

  .programme-list h3 {
    font-size: 1.55rem;
  }

  .programme-list article > p {
    font-size: clamp(1.06rem, 1.1vw, 1.14rem);
    line-height: 1.6;
  }

  .school-life {
    display: grid;
    grid-template-rows: 255px minmax(0, 1fr);
    overflow: hidden;
  }

  .life-intro {
    padding: 34px clamp(40px, 6vw, 96px) 26px;
  }

  .life-intro h2 {
    max-width: 1050px;
    margin-bottom: 0;
    font-size: clamp(2.7rem, 3.7vw, 3.9rem);
  }

  .experience-grid {
    min-height: 0;
    padding-bottom: 38px;
  }

  .experience-card {
    min-height: 0;
    height: 100%;
  }

  .community {
    padding: 54px clamp(40px, 7vw, 110px);
    gap: clamp(48px, 7vw, 110px);
    overflow: hidden;
  }

  .community-image {
    height: min(520px, 68vh);
  }

  .community-image img {
    height: 100%;
    aspect-ratio: auto;
  }

  .community-copy h2 {
    margin-bottom: 24px;
  }

  .trust-note {
    margin-top: 28px;
    padding-top: 20px;
  }

  .contact-section {
    height: min(640px, 80svh);
    min-height: 560px;
  }

  .contact-lead {
    padding: 54px clamp(40px, 7vw, 110px);
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .contact-details {
    padding: 42px clamp(36px, 5vw, 76px);
  }
}

@media (min-width: 1081px) and (max-width: 1500px) {
  .site-header {
    grid-template-columns: 1fr auto 1fr;
  }
}

/* Four columns need enough room for a full email address on one line;
   below that the footer folds to two. */
@media (max-width: 1260px) {
  .footer-main {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 1080px) {
  .site-header {
    min-height: 104px;
    height: 104px;
    padding-top: 0;
    padding-bottom: 0;
    grid-template-columns: 1fr auto;
    grid-template-rows: 1fr;
  }

  .site-header.is-scrolled {
    min-height: 82px;
    height: 82px;
    padding-top: 0;
    padding-bottom: 0;
  }

  .site-header .brand {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
  }

  .brand img,
  .site-header.is-scrolled .brand img {
    width: clamp(220px, 42vw, 380px);
  }

  .programmes {
    background-position: center, center;
    background-attachment: scroll, scroll;
  }

  .desktop-nav {
    display: none;
  }

  .mobile-menu {
    display: block;
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }

  .header-cta {
    grid-column: 2;
  }

  .mobile-menu {
    position: relative;
  }

  .mobile-menu-toggle {
    width: 46px;
    height: 46px;
    padding: 14px 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    background: transparent;
    border: 1px solid rgba(104, 75, 82, 0.32);
    cursor: pointer;
  }

  .mobile-menu-toggle span {
    width: 100%;
    height: 1px;
    background: var(--green-deep);
    transition: transform 260ms ease, opacity 200ms ease;
  }

  .mobile-menu.is-open .mobile-menu-toggle span:first-child {
    transform: translateY(3.5px) rotate(45deg);
  }

  .mobile-menu.is-open .mobile-menu-toggle span:last-child {
    transform: translateY(-3.5px) rotate(-45deg);
  }

  .mobile-menu nav {
    position: absolute;
    z-index: 40;
    top: 104px;
    right: 0;
    left: 0;
    padding: 22px clamp(24px, 5vw, 60px);
    display: grid;
    gap: 9px;
    background: var(--cream);
    color: var(--green-deep);
    border-top: 1px solid var(--line);
    box-shadow: 0 20px 30px rgba(104, 75, 82, 0.16);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 220ms ease, transform 220ms ease, visibility 220ms;
  }

  .mobile-menu.is-open nav {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .mobile-menu nav a {
    padding: 12px 22px;
    background: var(--brand-maroon);
    color: var(--cream);
    border-radius: 999px;
    font-family: var(--serif);
    font-size: 1.25rem;
    box-shadow: 0 4px 12px rgba(59, 43, 46, 0.16);
  }

  .mobile-menu nav a.is-active {
    box-shadow: 0 6px 16px rgba(59, 43, 46, 0.32);
  }

  .quote-band {
    grid-template-columns: 1fr;
  }

  .quote-aside {
    grid-column: 2;
  }

  .vision-section {
    grid-template-columns: 1fr;
  }

  .vision-collage {
    min-height: 600px;
  }

  .glance {
    grid-template-columns: 1fr 1fr;
  }

  .glance-item:nth-child(2) {
    border-left: 1px solid var(--line);
  }

  .glance-item:nth-child(3) {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .glance-item:nth-child(4) {
    border-top: 1px solid var(--line);
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
  }

  .footer-bottom {
    grid-template-columns: 1fr 1fr;
  }

  .footer-bottom > span:not(.footer-designer) {
    display: none;
  }
}

@media (max-width: 760px) {
  .site-header {
    height: 86px;
    padding-right: 18px;
    padding-left: 18px;
    gap: 12px;
  }

  .brand img {
    width: clamp(205px, 58vw, 240px);
    height: auto;
    padding: 3px 6px;
  }

  .header-cta {
    display: none;
  }

  .mobile-menu {
    grid-column: 2;
  }

  .mobile-menu nav {
    top: 86px;
  }

  .hero-image {
    object-position: 57% center;
  }

  .hero-content {
    width: 100%;
    padding: 18px;
  }

  .hero h1 {
    font-size: clamp(2.55rem, 11.5vw, 4rem);
  }

  .hero-brand-lockup {
    width: min(100%, 360px);
    margin-bottom: 16px;
    padding: 8px 12px 8px 8px;
    border-radius: 14px;
    gap: 9px;
  }

  .hero-brand-lockup > img {
    width: 58px;
    height: 58px;
    flex-basis: 58px;
  }

  .hero-brand-name {
    font-size: clamp(0.9rem, 4.2vw, 1.08rem);
  }

  .hero-brand-school {
    font-size: 0.88rem;
  }

  .hero-brand-philosophy {
    margin-top: 4px;
    font-size: 0.46rem;
  }

  .hero-note {
    right: 24px;
    bottom: 22px;
  }

  .hero-note span:first-child,
  .hero-note span:last-child {
    display: none;
  }

  .hero-note span + span {
    padding-left: 0;
    border-left: 0;
  }

  .quote-band {
    grid-template-columns: 1fr;
  }

  .quote-copy-long {
    grid-column: 1;
  }

  .quote-aside-card {
    width: min(100%, 680px);
  }

  .section-number {
    display: none;
  }

  .quote-aside {
    grid-column: 1;
  }

  .split-heading,
  .programme-heading,
  .community,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .pillars {
    grid-template-columns: 1fr;
  }

  .pillars article + article {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .pillars h3 {
    margin-top: 28px;
  }

  .vision-collage {
    min-height: 460px;
  }

  .vision-small {
    width: 50%;
    border-width: 8px;
  }

  .programme-list article {
    grid-template-columns: 42px 1fr;
  }

  .programme-list article > p {
    grid-column: 2;
  }

  .programme-list article:hover {
    padding-right: 10px;
    padding-left: 10px;
  }

  .experience-grid {
    grid-template-columns: 1fr;
    padding-right: 20px;
    padding-left: 20px;
  }

  .life-intro {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .experience-card {
    min-height: 440px;
  }

  .experience-card + .experience-card {
    border-top: 1px solid rgba(255, 255, 255, 0.24);
    border-left: 0;
  }

  .community-image::before {
    right: 2px;
    bottom: -20px;
  }

  .contact-lead {
    border-right: 0;
    border-bottom: 1px solid rgba(104, 75, 82, 0.28);
  }

  .contact-details > div {
    grid-template-columns: 1fr;
    gap: 8px;
    padding-right: 60px;
  }

  .copy-btn {
    top: 22px;
  }

  .glance {
    grid-template-columns: 1fr;
  }

  .glance-item {
    border-left: 0 !important;
    border-top: 1px solid var(--line);
  }

  .glance-item:first-child {
    border-top: 0;
  }

  .branch-motif {
    width: 140px;
    opacity: 0.7;
  }

  .back-to-top {
    right: 16px;
    bottom: 16px;
  }

  .footer-main {
    padding-top: 48px;
    padding-bottom: 42px;
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .footer-bottom {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .footer-bottom > a {
    justify-self: start;
  }

  .footer-bottom .footer-designer {
    justify-self: start;
  }

  footer {
    grid-template-columns: 1fr;
  }

  footer > p,
  footer small {
    justify-self: start;
  }

  .footer-links {
    flex-wrap: wrap;
  }
}

/* Cohesive interaction and motion system */
.hero-content .hero-brand-lockup,
.hero-content h1,
.hero-content .hero-copy,
.hero-content .hero-actions {
  opacity: 0;
  animation: hero-content-rise 760ms cubic-bezier(0.2, 0.72, 0.2, 1) forwards;
}

.hero-content h1 {
  animation-delay: 120ms;
}

.hero-content .hero-copy {
  animation-delay: 240ms;
}

.hero-content .hero-actions {
  animation-delay: 360ms;
}

@keyframes hero-content-rise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.brand img,
.footer-brand img,
.vision-large,
.vision-small,
.community-image img,
.pillar-icon,
.programme-list h3,
.experience-number,
.experience-overlay {
  transition: transform 500ms cubic-bezier(0.2, 0.72, 0.2, 1), color 220ms ease, background 220ms ease, border-color 220ms ease;
}

.glance-item,
.contact-details > div {
  transition: transform 240ms ease, background 240ms ease, border-color 240ms ease, box-shadow 240ms ease;
}

.desktop-nav a,
.footer-column a,
.text-link {
  transition: color 180ms ease, transform 180ms ease, border-color 180ms ease,
    background 180ms ease, box-shadow 180ms ease;
}

.reveal {
  filter: blur(4px);
  transition: opacity 720ms cubic-bezier(0.2, 0.7, 0.2, 1), transform 720ms cubic-bezier(0.2, 0.7, 0.2, 1), filter 720ms ease;
}

.reveal.is-visible {
  filter: blur(0);
}

@media (hover: hover) and (pointer: fine) {
  .brand:hover img,
  .footer-brand:hover img {
    transform: translateY(-2px);
  }

  .desktop-nav a:hover {
    color: var(--gold);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(59, 43, 46, 0.26);
  }

  .button:hover span[aria-hidden="true"],
  .header-cta:hover span[aria-hidden="true"],
  .text-link:hover span[aria-hidden="true"] {
    transform: translate(3px, -2px);
  }

  .button span[aria-hidden="true"],
  .header-cta span[aria-hidden="true"],
  .text-link span[aria-hidden="true"] {
    display: inline-block;
    transition: transform 180ms ease;
  }

  .glance-item:hover {
    z-index: 1;
    background: var(--gold-soft);
    box-shadow: 0 12px 30px rgba(104, 75, 82, 0.13);
    transform: translateY(-5px);
  }

  .pillars article:hover {
    z-index: 1;
    box-shadow: 0 16px 34px rgba(104, 75, 82, 0.14);
    transform: translateY(-5px);
  }

  .pillars article:hover .pillar-icon {
    color: var(--maroon);
    transform: scale(1.12) rotate(-5deg);
  }

  .vision-section:hover .vision-large {
    transform: scale(1.025);
  }

  .vision-small:hover {
    transform: translate(-8px, -8px) scale(1.025);
  }

  .programme-list article:hover h3 {
    color: var(--maroon);
    transform: translateX(6px);
  }

  .programme-list article:hover .programme-index {
    color: var(--green-deep);
  }

  .experience-card {
    transition: transform 260ms ease, box-shadow 260ms ease, border-color 260ms ease;
  }

  .experience-card:hover {
    z-index: 2;
    border-color: rgba(247, 228, 218, 0.9);
    box-shadow: 0 22px 45px rgba(0, 0, 0, 0.22);
    transform: translateY(-7px);
  }

  .experience-card:hover img {
    transform: scale(1.07);
  }

  .experience-card:hover .experience-number {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--green-deep);
    transform: rotate(8deg) scale(1.08);
  }

  .experience-card:hover .experience-overlay {
    transform: translateY(-4px);
  }

  .community-image:hover img {
    transform: scale(1.035);
  }

  .community-image:hover::before {
    transform: translate(-8px, -5px);
  }

  .community-image::before {
    transition: transform 320ms ease;
  }

  .contact-details > div:hover {
    padding-right: 14px;
    padding-left: 14px;
    background: rgba(255, 255, 255, 0.16);
    transform: translateX(-7px);
  }

  .footer-column a:hover {
    transform: translateX(4px);
  }
}

/* Expanded Beyond academics section */

.space-groups {
  padding: 0 clamp(24px, 6vw, 96px) clamp(70px, 8vw, 120px);
}

.space-group-heading {
  padding: 34px 0 26px;
  display: grid;
  grid-template-columns: 90px minmax(260px, 0.8fr) minmax(280px, 1fr);
  gap: 28px;
  align-items: baseline;
  border-top: 1px solid rgba(255, 255, 255, 0.26);
}

.space-group-heading > span,
.space-number {
  color: var(--gold);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.space-group-heading h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 3rem);
  font-weight: 400;
}

.space-group-heading p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.05rem;
  line-height: 1.7;
}

.space-group-heading-two {
  margin-top: clamp(54px, 7vw, 100px);
}

.space-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.space-card {
  display: grid;
  grid-template-columns: minmax(180px, 0.8fr) minmax(240px, 1.2fr);
  min-height: 285px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.075);
  border: 1px solid rgba(255, 255, 255, 0.16);
  transition: transform 260ms ease, border-color 260ms ease, background 260ms ease;
}

.space-card img {
  width: 100%;
  height: 100%;
  min-height: 285px;
  object-fit: cover;
  transition: transform 500ms ease;
}

.space-card > div {
  padding: clamp(26px, 3vw, 42px);
  align-self: center;
}

.space-card h3 {
  margin: 12px 0 14px;
  font-family: var(--serif);
  font-size: clamp(1.55rem, 2.3vw, 2.35rem);
  font-weight: 400;
}

.space-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.02rem;
  line-height: 1.68;
}

.space-card-grid > .space-card:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.space-card-grid > .space-card:last-child:nth-child(odd) img {
  max-height: 390px;
}

@media (min-width: 1081px) {
  .school-life {
    height: auto;
    max-height: none;
    min-height: 0;
    display: block;
    overflow: visible;
  }

  .life-intro {
    padding-top: 90px;
    padding-bottom: 62px;
  }
}

@media (hover: hover) and (pointer: fine) {
  .space-card:hover {
    z-index: 1;
    background: rgba(255, 255, 255, 0.11);
    border-color: rgba(247, 228, 218, 0.84);
    transform: translateY(-5px);
  }

  .space-card:hover img {
    transform: scale(1.045);
  }
}

@media (max-width: 1080px) {
  .mobile-menu nav {
    position: fixed;
    top: 104px;
    right: 0;
    left: 0;
    width: 100%;
    max-height: calc(100svh - 104px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .site-header.is-scrolled .mobile-menu nav {
    top: 82px;
    max-height: calc(100svh - 82px);
  }

  .site-header.is-scrolled .brand img {
    width: clamp(225px, 27vw, 255px);
    height: auto;
  }

  .space-card {
    grid-template-columns: 1fr;
  }

  .space-card img {
    height: 250px;
    min-height: 0;
  }
}

@media (max-width: 900px) {
  .split-heading,
  .programme-heading,
  .community {
    grid-template-columns: 1fr;
  }

  .split-heading,
  .programme-heading {
    gap: 30px;
  }

  .programme-list article {
    grid-template-columns: 52px minmax(0, 1fr);
  }

  .programme-list article > p {
    grid-column: 2;
  }

  .community {
    gap: 62px;
  }

  .community-image {
    max-width: 760px;
  }
}

@media (max-width: 760px) {
  .mobile-menu nav {
    top: 86px;
    max-height: calc(100svh - 86px);
  }

  .site-header.is-scrolled .mobile-menu nav {
    top: 82px;
    max-height: calc(100svh - 82px);
  }

  .site-header.is-scrolled .brand img {
    width: clamp(190px, 54vw, 215px);
    height: auto;
  }

  .space-group-heading {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .space-card-grid {
    grid-template-columns: 1fr;
  }

  .space-card-grid > .space-card:last-child:nth-child(odd) {
    grid-column: auto;
  }

  .space-card {
    min-height: 0;
  }

  .space-card img {
    height: 230px;
  }

  .space-card > div {
    padding: 26px 22px 30px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .programmes {
    background-attachment: scroll, scroll;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
