/* Base design tokens, shared components, and responsive layouts.
 * Keep rule order intact: later rules intentionally override earlier styles.
 */
/* Brand palette follows supplied logo. Reference layout: variance 3, motion 3, density 4. Layers: content 0, header 20, dropdown 21, native dialogs top layer. */
/* Brand colours and reusable design tokens. */
:root {
  --navy: #102e4d;
  --navy-deep: #0b233c;
  --gold: #efb333;
  --orange: #bc501f;
  --ink: #17324a;
  --muted: #0d2945;
  --tint: #f1f5f5;
  --cream: #fcf8ee;
  --line: #dae2e4;
  --white: #fff;
  --font: Arial, Helvetica, sans-serif;
}
/* Document defaults and shared typography. */
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font: 16px/1.7 var(--font);
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  display: block;
  max-width: 100%;
  object-fit: cover;
}
button {
  border: 0;
}
h1,
h2,
h3,
p,
figure {
  margin: 0;
}
h1,
h2,
h3 {
  line-height: 1.14;
}
h2 {
  font-size: clamp(32px, 3.15vw, 45px);
  letter-spacing: -1.5px;
  font-weight: 700;
}
h2 .heading-accent {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 400;
}
p {
  color: var(--muted);
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #b77910;
  outline-offset: 5px;
}
.container {
  width: min(1120px, calc(100% - 64px));
  margin-inline: auto;
}
.section-pad {
  padding: 88px 0;
}
.section-tint {
  background: var(--tint);
}
.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.1px;
  text-transform: uppercase;
}
.dark-eyebrow {
  color: #876019;
  margin-bottom: 16px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 27px;
  padding: 15px 24px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
  white-space: nowrap;
  letter-spacing: 0.3px;
  border-radius: 3px;
  transition:
    background 0.2s,
    transform 0.2s;
}
.button span {
  font-size: 18px;
  line-height: 1;
}
.button:hover {
  transform: translateY(-2px);
}
.button:active {
  transform: scale(0.98);
}
.button-navy {
  background: var(--navy);
  color: #fff;
}
.button-navy:hover {
  background: #20466a;
}
.button-gold {
  background: var(--gold);
  color: var(--navy-deep);
}
.button-gold:hover {
  background: #ffca54;
}
.button-outline {
  background: #0b233c55;
  border: 1px solid #ffffff91;
  color: #fff;
}
.button-outline:hover {
  background: #ffffff20;
}
.skip-link {
  position: fixed;
  top: -80px;
  left: 15px;
  background: var(--navy);
  color: #fff;
  padding: 12px;
  z-index: 30;
}
.skip-link:focus {
  top: 10px;
} /* Sticky header, school branding, and navigation. */
.site-header {
  height: 80px;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 20;
  box-shadow: 0 1px 0 #102e4d0d;
}
.nav-wrap {
  max-width: 1250px;
  width: calc(100% - 64px);
  margin: auto;
  height: 100%;
}
.brand {
  width: 137px;
  flex-shrink: 0;
}
.brand img {
  width: 137px;
  height: 74px;
  object-fit: contain;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 27px;
  height: 100%;
}
.nav-link {
  background: none;
  color: #273a4b;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  padding: 12px 0;
  position: relative;
}
.nav-link.active {
  color: #a76c12;
}
.nav-link.active:after {
  content: '';
  position: absolute;
  bottom: 3px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gold);
}
.nav-link:hover {
  color: #a76c12;
}
.nav-link span {
  margin-left: 4px;
}
.nav-apply {
  margin-left: 7px;
  padding: 12px 19px;
  font-size: 10px;
}
.nav-group {
  position: relative;
}
.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: -20px;
  min-width: 200px;
  padding: 12px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 10px 25px #0b233c14;
  z-index: 21;
}
.nav-group.open .dropdown {
  display: block;
}
.dropdown a,
.dropdown button {
  display: block;
  background: none;
  text-align: left;
  width: 100%;
  font-size: 13px;
  padding: 8px 12px;
  color: var(--ink);
}
.dropdown a:hover,
.dropdown button:hover {
  background: var(--tint);
}
.menu-toggle {
  display: none;
} /* Homepage photo hero and slideshow controls. */
.hero {
  height: 570px;
  max-height: calc(100svh - 80px);
  min-height: 440px;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--navy-deep);
}
.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-position: center 46%;
  transition: opacity 0.3s;
}
.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #061c32a8, #061c325c, #061c3266),
    linear-gradient(0deg, #071a2c80, transparent 60%);
}
.hero-content {
  position: relative;
  text-align: center;
  padding: 25px;
  max-width: 900px;
  color: #fff;
}
.hero .eyebrow {
  color: #ffd274;
  margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(43px, 5.5vw, 76px);
  letter-spacing: -2.8px;
  font-weight: 700;
  line-height: 1.08;
}
.hero h1 span {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 400;
  font-style: normal;
}
.hero-content > p:not(.eyebrow) {
  color: #f5f6f8;
  font-size: 15px;
  max-width: 470px;
  margin: 23px auto 29px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.slide-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: 1px solid #ffffff50;
  background: #102e4d20;
  color: white;
  font-size: 28px;
  line-height: 1;
  border-radius: 50%;
  transition: background 0.2s;
}
.slide-arrow:hover {
  background: #102e4dcc;
}
.previous {
  left: 30px;
}
.next {
  right: 30px;
}
.slide-controls {
  position: absolute;
  bottom: 24px;
  display: flex;
  gap: 12px;
  align-items: center;
}
.slide-dot {
  height: 8px;
  width: 8px;
  padding: 0;
  background: #ffffff75;
  border-radius: 50%;
  position: relative;
}
.slide-dot:before {
  content: '';
  position: absolute;
  inset: -8px;
}
.slide-dot.selected {
  background: var(--gold);
  outline: 1px solid var(--gold);
  outline-offset: 4px;
}
#pause-slides {
  color: #fff;
  background: none;
  font-size: 14px;
  width: 30px;
  height: 30px;
  margin-left: 7px;
}
/* The shared SVG supplies the shape only. Each section sets its own surface
 * and motif colours, so the divider blends into the surrounding design. */
.pattern {
  --pattern-surface: var(--white);
  --pattern-ink: rgba(16, 46, 77, 0.28);
  --pattern-size: 24px 24px;
  position: relative;
  height: 40px;
  background-color: var(--pattern-surface);
}
.pattern::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: var(--pattern-ink);
  -webkit-mask: url('./assets/section-pattern.svg') left center / var(--pattern-size) repeat;
  mask: url('./assets/section-pattern.svg') left center / var(--pattern-size) repeat;
}
/* The gold divider leads into the warm, pale values section. */
.pattern-gold {
  --pattern-surface: #fffdf4;
  --pattern-ink: var(--gold);
}
/* Continue the navy footer background beneath the gold motif. */
.footer-pattern {
  --pattern-surface: var(--navy);
  --pattern-ink: var(--gold);
}
.welcome-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 82px;
  align-items: center;
}
.welcome-visual {
  position: relative;
  margin: 0 0 34px 20px;
}
.image-frame {
  border: 1px solid #a8b7bd;
  padding: 10px;
  position: relative;
}
.image-frame:before {
  content: '';
  position: absolute;
  top: -14px;
  left: -14px;
  width: 80px;
  height: 80px;
  border-top: 3px solid var(--gold);
  border-left: 3px solid var(--gold);
}
.image-frame img {
  height: 480px;
  width: 100%;
  object-position: 45% center;
}
.welcome-quote {
  position: absolute;
  bottom: -35px;
  left: -25px;
  background: var(--navy);
  padding: 28px 34px;
  width: 310px;
  color: #fff;
  box-shadow: 0 12px 28px #102e4d15;
}
.quote-symbol {
  font-family: Georgia, serif;
  font-size: 58px;
  line-height: 0.65;
  color: var(--gold);
  display: block;
}
.welcome-quote p {
  color: #fff;
  font:
    normal 23px/1.5 Georgia,
    serif;
  margin: 10px 0 17px;
}
.quote-rule {
  display: inline-block;
  width: 25px;
  border-top: 1px solid var(--gold);
  vertical-align: middle;
  margin-right: 9px;
}
.welcome-quote small {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 1.4px;
}
.welcome-copy h2 {
  margin-bottom: 24px;
}
.welcome-copy p:not(.eyebrow) {
  font-size: 14px;
  margin-bottom: 16px;
}
.welcome-copy .intro {
  font-size: 16px !important;
  color: var(--ink);
  font-weight: 600;
}
.signature {
  border-left: 2px solid var(--gold);
  padding-left: 18px;
  margin: 25px 0;
}
.signature strong {
  display: block;
  font-family: Georgia, serif;
  font-size: 21px;
  font-style: normal;
}
.signature span {
  font-size: 11px;
  color: var(--muted);
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 35px;
  font-size: 12px;
  font-weight: 700;
  border-bottom: 1px solid #acb8bd;
  padding-bottom: 5px;
}
.text-link span {
  color: #9c6e19;
  font-size: 20px;
}
.pillars {
  background: var(--cream);
}
.section-heading {
  margin-bottom: 38px;
}
.section-heading h2 {
  margin-bottom: 17px;
}
.section-heading > p:last-child {
  font-size: 14px;
}
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
.pillar {
  background: #133651;
  color: #fff;
  padding: 28px 23px 23px;
  min-height: 290px;
  position: relative;
  border-radius: 3px;
}
.pillar:nth-child(2) {
  background: #b5522d;
}
.pillar:nth-child(3) {
  background: #2a5878;
}
.pillar:nth-child(4) {
  background: #6c5747;
}
.pillar:nth-child(5) {
  background: #44654f;
}
.pillar-icon {
  display: block;
  margin-bottom: 25px;
}
.pillar-icon img {
  width: 31px;
  height: 31px;
  filter: brightness(0) invert(1);
}
.pillar h3 {
  font-size: 17px;
  line-height: 1.3;
  margin-bottom: 14px;
}
.pillar p {
  font-size: 12px;
  line-height: 1.75;
  color: #ffffffde;
}
.pillar-number {
  display: block;
  font-size: 10px;
  letter-spacing: 1px;
  color: #ffffff8c;
  margin-top: 22px;
}
.curriculum {
  position: relative;
  background: var(--white);
}
.curriculum-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
  margin-top: 44px;
}
.curriculum-column {
  border-top: 2px solid var(--gold);
}
.curriculum-column:nth-child(2) {
  border-color: var(--navy);
}
.curriculum-title {
  padding: 21px 0 23px;
}
.stage {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: #8e651d;
}
.curriculum-title h3 {
  font-size: 26px;
  margin: 13px 0 17px;
  letter-spacing: -0.6px;
}
.curriculum-title p {
  font-size: 13px;
  line-height: 1.8;
  min-height: 94px;
}
.curriculum-column > img {
  width: 100%;
  height: 210px;
  margin-bottom: 20px;
}
.junior-image {
  object-position: right;
}
.school-link {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 17px;
  text-align: left;
  margin-bottom: 10px;
  background: #f6edd9;
  color: var(--navy);
  border-radius: 2px;
  transition: background 0.2s;
}
.school-link:hover {
  background: #f0dfba;
}
.school-link strong {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.school-link small {
  display: block;
  font-size: 10px;
  margin-top: 3px;
  color: #785a27;
}
.link-arrow {
  background: var(--gold);
  color: var(--navy);
  font-size: 20px;
  line-height: 1;
  padding: 5px 7px;
}
.curriculum-column:nth-child(2) .school-link {
  background: #e8eff3;
}
.curriculum-column:nth-child(2) .school-link:hover {
  background: #dce7ef;
}
.curriculum-column:nth-child(2) .link-arrow {
  background: var(--navy);
  color: #fff;
}
.curriculum-column:nth-child(2) .school-link small {
  color: #506473;
}
.content-note {
  font-size: 11px;
  margin-top: 24px;
  color: var(--muted);
}
.life-heading {
  display: flex;
  justify-content: space-between;
  gap: 60px;
  align-items: center;
  margin-bottom: 35px;
}
.life-heading > p {
  font-size: 14px;
  max-width: 300px;
  border-left: 1px solid #bfcdd0;
  padding-left: 27px;
}
.life-feature {
  position: relative;
  display: block;
  width: 100%;
  height: 480px;
  background: var(--navy);
  padding: 0;
  text-align: left;
  overflow: hidden;
  border-radius: 3px;
}
.life-feature > img {
  width: 100%;
  height: 100%;
  object-position: center 40%;
  transition: transform 0.6s;
}
.life-feature:hover > img {
  transform: scale(1.025);
}
.life-feature-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #0b233cbd, transparent 65%);
}
.gallery-label {
  position: absolute;
  left: 35px;
  right: 35px;
  bottom: 30px;
  display: flex;
  align-items: center;
  gap: 18px;
  color: #fff;
  font-size: 24px;
  font-weight: 600;
}
.gallery-label small {
  display: block;
  font-size: 11px;
  color: #ffffffcd;
  font-weight: 400;
  letter-spacing: 0.3px;
  margin-top: 3px;
}
.gallery-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid #ffffff80;
  border-radius: 50%;
}
.gallery-icon img {
  width: 22px;
  filter: brightness(0) invert(1);
}
.gallery-arrow {
  margin-left: auto;
  font-size: 29px;
}
.community {
  padding-top: 68px;
  scroll-margin-top: 100px;
}
.community-heading {
  text-align: center;
  margin-bottom: 33px;
}
.community-heading h2 {
  font-size: 32px;
}
.community-heading p {
  font-size: 13px;
  margin-top: 12px;
}
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 23px;
}
.testimonial {
  padding: 32px 27px;
  border: 1px solid #ccd8dd;
  background: #ffffff50;
  border-radius: 3px;
}
.testimonial.featured {
  border: 2px solid var(--navy);
  background: #fff;
  padding: 31px 26px;
}
.testimonial blockquote {
  font:
    normal 19px/1.6 Georgia,
    serif;
  margin: 18px 0 25px;
  color: var(--ink);
}
.testimonial figcaption {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 10px;
  font-weight: 700;
}
.testimonial figcaption small {
  display: block;
  font-size: 9px;
  font-weight: 400;
  color: var(--muted);
  margin-top: 3px;
}
.avatar {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e4ebed;
}
.avatar img {
  width: 19px;
  height: 19px;
}
.admissions {
  background: var(--cream);
  padding: 65px 0;
}
.admissions-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.admissions-inner p:last-child {
  font-size: 14px;
  margin-top: 19px;
}
.admissions-inner .button {
  min-width: 200px;
}
/* Shared footer layout. */
.footer {
  background: var(--navy);
  color: #fff;
  padding: 65px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 45px;
  padding-bottom: 48px;
}
.footer h3 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 24px;
}
.footer h3:after {
  content: '';
  display: block;
  width: 22px;
  height: 2px;
  background: var(--gold);
  margin-top: 12px;
}
.footer-grid a,
.footer-grid button {
  display: block;
  background: none;
  color: #d5dfe7;
  text-align: left;
  font-size: 12px;
  line-height: 1.6;
  margin: 12px 0;
  padding: 0;
}
.footer-grid a:hover,
.footer-grid button:hover {
  color: var(--gold);
}
.footer-motto {
  color: #fff;
  font:
    normal 17px/1.5 Georgia,
    serif;
  margin-top: 25px;
}
.footer-motto span {
  color: var(--gold);
  padding: 0 4px;
}
.footer-bottom {
  border-top: 1px solid #ffffff24;
  display: flex;
  align-items: center;
  gap: 35px;
  padding: 24px 0;
  font-size: 10px;
  color: #d5dfe7;
}
/* Keep the original logo geometry while displaying a white footer version.
 * Screen blending removes its blackened paper background against the navy footer. */
.footer-brand {
  background: transparent;
  mix-blend-mode: screen;
}
.footer-brand img {
  width: 120px;
  height: 77px;
  object-fit: contain;
  filter: grayscale(1) invert(1) brightness(3) contrast(20);
}
.footer-bottom > div {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 30px;
}
.footer-bottom button {
  background: none;
  color: #d5dfe7;
  font-size: 10px;
}
.back-top {
  background: var(--gold);
  color: var(--navy);
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 20px;
}
dialog {
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(620px, calc(100% - 32px));
  max-height: 90dvh;
  overflow: auto;
  border: 0;
  padding: 42px;
  border-radius: 5px;
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 20px 90px #0b233c45;
}
dialog::backdrop {
  background: #071c32bb;
  backdrop-filter: blur(4px);
}
dialog h2 {
  font-size: 32px;
  margin: 8px 0 20px;
  letter-spacing: -0.8px;
}
.dialog-close {
  position: absolute;
  right: 16px;
  top: 10px;
  background: none;
  font-size: 29px;
  color: var(--ink);
  width: 35px;
  height: 35px;
}
.dialog-intro,
#info-body {
  font-size: 13px;
  margin-bottom: 24px;
}
#info-body p {
  margin-bottom: 15px;
}
#info-body ul {
  padding-left: 20px;
  color: var(--muted);
  margin-bottom: 24px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
form label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 15px;
}
input,
textarea,
select {
  display: block;
  width: 100%;
  padding: 10px;
  border: 1px solid #9eafb9;
  border-radius: 2px;
  margin-top: 6px;
  color: var(--ink);
  background: var(--white);
  font-size: 13px;
}
textarea {
  resize: vertical;
}
#form-status {
  font-size: 12px;
  margin-top: 16px;
  color: #376347;
}
#gallery-dialog {
  width: min(920px, calc(100% - 32px));
  padding: 30px;
}
#gallery-image {
  width: 100%;
  height: auto;
  max-height: 56dvh;
  object-fit: contain;
  background: var(--tint);
}
.gallery-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-top: 20px;
}
.gallery-controls p {
  font-size: 12px;
  text-align: center;
}
.gallery-controls .button {
  padding: 9px 18px;
}
body.modal-open {
  overflow: hidden;
}
/* Responsive or accessibility adjustment: (prefers-reduced-motion:no-preference). */
@media (prefers-reduced-motion: no-preference) {
  .reveal.will-reveal {
    opacity: 0;
    transform: translateY(18px);
    transition:
      opacity 0.6s ease,
      transform 0.6s ease;
  }
  .reveal.will-reveal.visible {
    opacity: 1;
    transform: none;
  }
}
/* Responsive or accessibility adjustment: (min-width:1500px). */
@media (min-width: 1500px) {
  .hero {
    height: 640px;
  }
  .container {
    max-width: 1190px;
  }
}
/* Responsive or accessibility adjustment: (max-width:1100px). */
@media (max-width: 1100px) {
  .main-nav {
    gap: 18px;
  }
  .nav-wrap {
    width: calc(100% - 40px);
  }
  .nav-apply {
    gap: 12px;
    margin-left: 0;
  }
  .welcome-grid {
    gap: 45px;
  }
  .pillar {
    padding: 25px 17px;
  }
  .pillar h3 {
    font-size: 15px;
  }
  .curriculum-grid {
    gap: 24px;
  }
}
/* Responsive or accessibility adjustment: (max-width:900px). */
@media (max-width: 900px) {
  .site-header {
    height: 78px;
  }
  .brand img {
    height: 72px;
    width: 120px;
  }
  .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    background: var(--tint);
    padding: 10px;
  }
  .menu-toggle span {
    height: 2px;
    width: 22px;
    background: var(--navy);
  }
  .main-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 78px;
    height: auto;
    max-height: calc(100dvh - 78px);
    overflow: auto;
    align-items: stretch;
    padding: 20px 28px;
    background: var(--white);
    box-shadow: 0 15px 20px #102e4d15;
    gap: 8px;
  }
  .main-nav.open {
    display: flex;
    flex-direction: column;
  }
  .nav-link {
    text-align: left;
    font-size: 13px;
  }
  .nav-group > .nav-link {
    width: 100%;
    display: flex;
    justify-content: space-between;
  }
  .nav-link.active:after {
    display: none;
  }
  .dropdown {
    position: static;
    box-shadow: none;
    border: 0;
    background: var(--tint);
    margin-bottom: 8px;
  }
  .nav-apply {
    align-self: flex-start;
    margin-top: 10px;
  }
  .hero {
    max-height: none;
    height: 535px;
  }
  .hero h1 {
    font-size: 60px;
  }
  .pillar-grid {
    grid-template-columns: repeat(6, 1fr);
  }
  .pillar {
    grid-column: span 2;
    min-height: 260px;
  }
  .pillar:nth-child(4),
  .pillar:nth-child(5) {
    grid-column: span 3;
  }
  .pillar h3 {
    font-size: 18px;
  }
  .welcome-grid {
    gap: 34px;
  }
  .welcome-quote {
    width: 270px;
    padding: 25px;
  }
  .welcome-quote p {
    font-size: 21px;
  }
  .image-frame img {
    height: 450px;
  }
  .curriculum-title h3 {
    font-size: 23px;
  }
  .curriculum-title p {
    min-height: 145px;
  }
  .testimonial {
    padding: 25px 18px;
  }
  .testimonial.featured {
    padding: 24px 17px;
  }
  .testimonial blockquote {
    font-size: 18px;
  }
  .testimonial figcaption {
    gap: 7px;
    font-size: 9px;
  }
}
/* Responsive or accessibility adjustment: (max-width:767px). */
@media (max-width: 767px) {
  .container {
    width: calc(100% - 40px);
  }
  .section-pad {
    padding: 60px 0;
  }
  .hero {
    height: 540px;
    min-height: 480px;
  }
  .hero h1 {
    font-size: clamp(39px, 8vw, 60px);
    letter-spacing: -1.7px;
  }
  .hero .eyebrow {
    font-size: 9px;
    letter-spacing: 1.6px;
    max-width: 260px;
    margin: 0 auto 23px;
  }
  .hero-content > p:not(.eyebrow) {
    max-width: 300px;
    font-size: 14px;
  }
  .hero-content {
    padding: 20px 30px;
  }
  .hero-actions .button {
    padding: 13px 17px;
    gap: 18px;
    font-size: 11px;
  }
  .slide-arrow {
    width: 29px;
    height: 29px;
    font-size: 23px;
    top: auto;
    bottom: 20px;
    transform: none;
  }
  .previous {
    left: 20px;
  }
  .next {
    right: 20px;
  }
  .slide-controls {
    bottom: 18px;
  }
  .hero-image {
    object-position: 43% center;
  }
  .welcome-grid {
    grid-template-columns: 1fr;
    gap: 65px;
  }
  .welcome-visual {
    margin-left: 15px;
    margin-bottom: 20px;
  }
  .image-frame img {
    height: 390px;
  }
  .welcome-quote {
    left: -15px;
    bottom: -28px;
    width: 290px;
  }
  .welcome-copy h2 {
    font-size: 37px;
  }
  .welcome-copy p:not(.eyebrow) {
    font-size: 14px;
  }
  .section-heading h2 {
    max-width: 450px;
  }
  .pillar-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .pillar,
  .pillar:nth-child(4),
  .pillar:nth-child(5) {
    grid-column: auto;
  }
  .pillar {
    min-height: 270px;
    padding: 24px 20px;
  }
  .pillar:last-child {
    grid-column: 1/-1;
    min-height: auto;
    display: grid;
    grid-template-columns: 35px 1fr;
    column-gap: 20px;
  }
  .pillar:last-child .pillar-icon {
    grid-row: 1/3;
    margin: 0;
  }
  .pillar:last-child h3 br {
    display: none;
  }
  .pillar:last-child .pillar-number {
    display: none;
  }
  .curriculum-grid {
    grid-template-columns: 1fr;
    gap: 38px;
  }
  .curriculum-title p {
    min-height: 0;
    max-width: 500px;
  }
  .curriculum-title h3 br {
    display: none;
  }
  .curriculum-title h3 {
    font-size: 26px;
  }
  .curriculum-column > img {
    height: 240px;
  }
  .life-heading {
    display: block;
  }
  .life-heading > p {
    margin-top: 22px;
    border: 0;
    padding: 0;
    max-width: 400px;
  }
  .life-feature {
    height: 350px;
  }
  .gallery-label {
    left: 20px;
    right: 20px;
    bottom: 23px;
    font-size: 22px;
  }
  .testimonial-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .testimonial,
  .testimonial.featured {
    padding: 28px;
  }
  .testimonial blockquote {
    font-size: 20px;
  }
  .testimonial figcaption {
    font-size: 11px;
  }
  .testimonial figcaption small {
    font-size: 10px;
  }
  .community {
    padding-top: 50px;
  }
  .community-heading h2 {
    font-size: 29px;
  }
  .admissions-inner {
    display: block;
  }
  .admissions-inner .button {
    margin-top: 28px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px 25px;
  }
  .footer {
    padding-top: 45px;
  }
  .footer-bottom {
    flex-wrap: wrap;
    gap: 20px;
  }
  .footer-bottom > span {
    max-width: 150px;
    line-height: 1.8;
  }
  .footer-bottom > div {
    width: 100%;
    justify-content: space-between;
  }
  .form-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  dialog {
    padding: 33px 24px;
  }
  dialog h2 {
    font-size: 28px;
  }
  #gallery-dialog {
    padding: 25px 16px;
  }
  /* Scale the full motif proportionally on narrow screens. */
  .pattern {
    height: 32px;
    --pattern-size: 20px 20px;
  }
}
/* Responsive or accessibility adjustment: (prefers-reduced-motion:reduce). */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *:before,
  *:after {
    transition: none !important;
    animation: none !important;
  }
}

/* Keep the visual pagination dots small while providing accessible hit areas. */
.slide-controls {
  gap: 4px;
}
.slide-dot {
  width: 28px;
  height: 28px;
  background: transparent !important;
  outline: none !important;
}
.slide-dot:before {
  inset: auto;
  left: 10px;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffffff75;
}
.slide-dot.selected:before {
  background: var(--gold);
  outline: 1px solid var(--gold);
  outline-offset: 4px;
}
.slide-dot:focus-visible {
  outline: 2px solid white !important;
  outline-offset: 1px;
}
/* Content update: upright typography throughout, official Eduton content and expanded navigation. */
em,
i,
cite,
address {
  font-style: normal;
}
.hero h1 {
  font-size: clamp(39px, 4.55vw, 64px);
  letter-spacing: -2px;
}
.hero h1 span {
  font-style: normal;
}
.hero-content {
  max-width: 1020px;
}
.hero-content > p:not(.eyebrow) {
  max-width: 600px;
}
.main-nav {
  gap: 18px;
}
.nav-link {
  font-size: 10px;
}
.nav-apply {
  gap: 14px;
  padding: 12px 15px;
}
.identity-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 42px;
  margin-top: 72px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
}
.identity-grid article {
  border-left: 2px solid var(--gold);
  padding-left: 24px;
}
.identity-grid h3 {
  font-size: 24px;
  margin-bottom: 15px;
}
.identity-grid p {
  font-size: 14px;
  max-width: 480px;
}
.values-grid {
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}
.values-grid .pillar {
  padding: 25px 18px;
  min-height: 258px;
}
.values-grid .pillar h3 {
  font-size: 17px;
  margin-bottom: 17px;
}
.values-grid .pillar p {
  font-size: 12px;
}
.values-grid .pillar:nth-child(6) {
  background: #384a60;
}
.values-grid .pillar-number {
  color: #ffffffc9;
}
.why-eduton {
  padding-top: 42px;
}
.why-eduton h3 {
  font-size: 23px;
  margin-bottom: 23px;
}
.why-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 40px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.why-list li {
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.why-list li:before {
  content: '✓';
  color: #8d6014;
  font-size: 16px;
}
.learning-path {
  list-style: none;
  padding: 24px 0;
  margin: 0 0 38px;
  display: flex;
  align-items: center;
  border-block: 1px solid var(--line);
  gap: 15px;
  flex-wrap: wrap;
}
.learning-path li {
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 15px;
}
.learning-path li:not(:last-child):after {
  content: '';
  display: inline-block;
  width: 18px;
  height: 18px;
  background: #947122;
  -webkit-mask: url('./assets/icons/arrow-right.svg') center / contain no-repeat;
  mask: url('./assets/icons/arrow-right.svg') center / contain no-repeat;
}
.academic-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.academic-card {
  border-top: 3px solid var(--gold);
  padding: 27px 30px;
  background: var(--tint);
}
.academic-card:nth-child(2),
.academic-card:nth-child(4) {
  border-color: var(--navy);
}
.academic-card h3 {
  font-size: 29px;
  margin: 13px 0 17px;
  letter-spacing: -0.7px;
}
.academic-card > p {
  font-size: 14px;
  min-height: 95px;
}
.academic-card details {
  margin: 23px 0;
}
.academic-card summary {
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-block: 1px solid var(--line);
  list-style: none;
}
.academic-card summary::-webkit-details-marker {
  display: none;
}
.academic-card summary span {
  font-size: 21px;
}
.academic-card details[open] summary span {
  transform: rotate(45deg);
}
.subject-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px 22px;
  padding: 15px 0 0 18px;
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}
.subject-list li:first-child {
  grid-column: 1/-1;
}
.academic-guidance {
  padding-top: 35px;
  max-width: 750px;
}
.academic-guidance h3 {
  font-size: 23px;
  margin-bottom: 12px;
}
.academic-guidance p {
  font-size: 14px;
  margin-bottom: 18px;
}
.school-activities {
  padding-top: 42px;
}
.school-activities > h3 {
  font-size: 25px;
  max-width: 620px;
  margin-bottom: 30px;
}
.activity-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 35px;
}
.activity-grid article > span {
  display: block;
  width: 30px;
  height: 30px;
  margin-bottom: 18px;
}
.activity-grid h4 {
  font-size: 19px;
  line-height: 1.3;
  font-weight: 700;
  margin: 0 0 12px;
}
.activity-grid p {
  font-size: 13px;
}
.character-banner {
  border-left: 3px solid var(--gold);
  padding: 10px 0 10px 24px;
  margin-top: 40px;
  max-width: 860px;
}
.character-banner h3 {
  font-size: 23px;
  margin-bottom: 12px;
}
.character-banner p {
  font-size: 14px;
}
.team-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 90px;
  align-items: center;
}
.team-grid h2 {
  max-width: 600px;
  margin-bottom: 23px;
}
.team-grid > div > p:not(.eyebrow) {
  font-size: 14px;
  margin-top: 15px;
}
.teacher-number {
  padding: 40px;
  background: var(--navy);
  color: #fff;
  border-bottom: 5px solid var(--gold);
}
.teacher-number > strong {
  font-size: 92px;
  line-height: 1;
  letter-spacing: -5px;
  display: block;
  color: var(--gold);
}
.teacher-number > span {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.4;
  display: block;
  margin-top: 17px;
}
.teacher-number p {
  font-size: 12px !important;
  color: #dae4eb;
  margin-top: 25px !important;
}
.admissions-inner h2 {
  max-width: 640px;
}
.admissions-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 210px;
}
.button-light {
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
}
.button-light:hover {
  background: var(--tint);
}
.admission-steps {
  padding: 40px 0 0;
  margin: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.admission-steps li {
  border-top: 1px solid #d7cba7;
  padding-top: 22px;
}
.admission-steps li > span {
  font-size: 13px;
  color: #876019;
  font-weight: 700;
}
.admission-steps h3 {
  font-size: 19px;
  line-height: 1.35;
  margin: 14px 0 12px;
}
.admission-steps p {
  font-size: 13px;
}
.admissions-help {
  margin-top: 34px;
  padding-top: 27px;
  border-top: 1px solid #d7cba7;
}
.admissions-help h3 {
  font-size: 20px;
  margin-bottom: 13px;
}
.admissions-help p {
  font-size: 13px;
  margin-bottom: 13px;
}
.practical-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
}
.practical-grid h2 {
  font-size: 32px;
  margin-bottom: 24px;
}
.practical-grid p:not(.eyebrow) {
  font-size: 14px;
}
.route-list {
  list-style: none;
  display: flex;
  gap: 25px;
  margin: 25px 0;
  padding: 0;
  font-size: 14px;
  font-weight: 700;
}
.portal-links {
  margin-top: 25px;
  display: grid;
  gap: 12px;
}
.portal-links button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  background: var(--tint);
  color: var(--ink);
  text-align: left;
  gap: 12px;
  border-left: 3px solid var(--gold);
}
.portal-links strong {
  display: block;
  font-size: 14px;
}
.portal-links small {
  display: block;
  font-size: 11px;
  margin-top: 6px;
  color: var(--muted);
}
.portal-links button > span:last-child {
  font-size: 23px;
}
.news-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}
.news-grid h2 {
  margin-bottom: 24px;
}
.news-grid p:not(.eyebrow) {
  font-size: 14px;
}
.news-empty {
  border: 1px solid var(--line);
  padding: 30px;
}
.news-empty > span img {
  width: 30px;
  height: 30px;
  margin-bottom: 20px;
}
.news-empty h3 {
  font-size: 22px;
  margin-bottom: 15px;
}
.news-empty .text-link {
  margin-top: 20px;
}
.gallery-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 35px;
}
.gallery-heading label {
  font-size: 11px;
  font-weight: 700;
  min-width: 200px;
}
.gallery-heading select {
  font-size: 13px;
}
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.gallery-tile {
  padding: 0;
  background: var(--tint);
  color: var(--ink);
  text-align: left;
}
.gallery-tile img {
  width: 100%;
  height: 285px;
  object-fit: cover;
}
.gallery-tile > span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
  font-size: 13px;
  font-weight: 700;
}
.gallery-tile > span span {
  font-size: 20px;
}
.gallery-empty {
  padding: 42px;
  border: 1px solid var(--line);
  text-align: center;
  font-size: 14px;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 70px;
}
.contact-grid h3 {
  font-size: 22px;
  margin-bottom: 17px;
}
.contact-grid address {
  font-size: 15px;
  line-height: 1.9;
  color: var(--muted);
}
.postal-address {
  font-size: 12px;
  margin-top: 16px;
}
.contact-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.contact-actions .button {
  font-size: 11px;
  padding: 13px 17px;
  gap: 14px;
}
.phone-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 18px;
  margin-bottom: 17px;
  font-size: 14px;
}
.email-heading {
  margin-top: 28px;
}
.email-list {
  display: grid;
  gap: 9px;
  font-size: 14px;
  overflow-wrap: anywhere;
}
.phone-list a:hover,
.email-list a:hover {
  text-decoration: underline;
}
.mobile-contact {
  display: none;
}
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.form-actions .button {
  font-size: 11px;
  padding: 13px 17px;
  gap: 15px;
}
#enquiry-dialog {
  width: min(720px, calc(100% - 32px));
}
.form-grid label {
  min-width: 0;
}
[hidden] {
  display: none !important;
}
/* Responsive or accessibility adjustment: (max-width:1180px). */
@media (max-width: 1180px) {
  .main-nav {
    gap: 13px;
  }
  .nav-link {
    font-size: 10px;
  }
  .nav-apply {
    font-size: 10px;
    padding: 11px 12px;
    gap: 10px;
  }
  .values-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .values-grid .pillar {
    min-height: 220px;
    grid-column: auto;
  }
  .values-grid .pillar h3 {
    font-size: 19px;
  }
  .values-grid .pillar p {
    font-size: 13px;
  }
  .values-grid .pillar-number {
    margin-top: 15px;
  }
  .team-grid,
  .practical-grid,
  .news-grid,
  .contact-grid {
    gap: 40px;
  }
}
/* Responsive or accessibility adjustment: (min-width:901px) and (max-width:1100px). */
@media (min-width: 901px) and (max-width: 1100px) {
  .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    background: var(--tint);
    padding: 10px;
  }
  .menu-toggle span {
    height: 2px;
    width: 22px;
    background: var(--ink);
  }
  .main-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 80px;
    height: auto;
    max-height: calc(100dvh - 80px);
    overflow: auto;
    align-items: stretch;
    padding: 20px 28px;
    background: var(--white);
    box-shadow: 0 15px 20px #102e4d15;
    gap: 8px;
  }
  .main-nav.open {
    display: flex;
    flex-direction: column;
  }
  .nav-link {
    text-align: left;
    font-size: 13px;
  }
  .nav-group > .nav-link {
    width: 100%;
    display: flex;
    justify-content: space-between;
  }
  .nav-link.active:after {
    display: none;
  }
  .dropdown {
    position: static;
    box-shadow: none;
    border: 0;
    background: var(--tint);
    margin-bottom: 8px;
  }
  .nav-apply {
    align-self: flex-start;
    margin-top: 10px;
  }
}
/* Responsive or accessibility adjustment: (max-width:900px). */
@media (max-width: 900px) {
  .main-nav {
    gap: 8px;
  }
  .nav-link {
    font-size: 13px;
  }
  .hero h1 {
    font-size: clamp(39px, 6.3vw, 57px);
  }
  .academic-card {
    padding: 24px;
  }
  .academic-card h3 {
    font-size: 25px;
  }
  .academic-card > p {
    min-height: 145px;
  }
  .admission-steps {
    grid-template-columns: 1fr 1fr;
  }
  .gallery-heading {
    align-items: start;
  }
  .teacher-number {
    padding: 28px;
  }
  .teacher-number > span {
    font-size: 19px;
  }
}
/* Responsive or accessibility adjustment: (max-width:767px). */
@media (max-width: 767px) {
  body {
    padding-bottom: calc(54px + env(safe-area-inset-bottom));
  }
  .hero h1 {
    font-size: clamp(32px, 6.8vw, 48px);
    letter-spacing: -1px;
  }
  .hero-content {
    padding: 20px 15px;
  }
  .hero .eyebrow {
    max-width: 300px;
    letter-spacing: 1px;
  }
  .hero-content > p:not(.eyebrow) {
    max-width: 320px;
    font-size: 13px;
  }
  .hero-actions .button {
    font-size: 10px;
    padding: 13px 14px;
    gap: 10px;
  }
  .identity-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 47px;
    padding-top: 30px;
  }
  .identity-grid article {
    padding-left: 20px;
  }
  .values-grid {
    grid-template-columns: 1fr 1fr;
  }
  .values-grid .pillar,
  .values-grid .pillar:last-child {
    display: block;
    grid-column: auto;
    padding: 23px 17px;
    min-height: 240px;
  }
  .values-grid .pillar:last-child .pillar-icon {
    margin-bottom: 25px;
  }
  .values-grid .pillar:last-child .pillar-number {
    display: block;
  }
  .values-grid .pillar h3 {
    font-size: 17px;
  }
  .values-grid .pillar p {
    font-size: 12px;
  }
  .why-list {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .why-eduton {
    padding-top: 35px;
  }
  .learning-path {
    gap: 8px 12px;
  }
  .learning-path li {
    font-size: 11px;
    gap: 12px;
  }
  .academic-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .academic-card > p {
    min-height: 0;
  }
  .academic-card {
    padding: 24px;
  }
  .academic-card h3 {
    font-size: 27px;
  }
  .activity-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .school-activities > h3 {
    font-size: 23px;
  }
  .activity-grid article {
    display: grid;
    grid-template-columns: 32px 1fr;
    gap: 0 17px;
  }
  .activity-grid article > span {
    grid-row: 1/3;
  }
  .activity-grid p {
    grid-column: 2;
  }
  .team-grid,
  .practical-grid,
  .news-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 35px;
  }
  .teacher-number {
    padding: 30px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 15px 25px;
    align-items: center;
  }
  .teacher-number > strong {
    font-size: 75px;
  }
  .teacher-number > span {
    margin: 0;
    font-size: 18px;
  }
  .teacher-number > p {
    grid-column: 1/-1;
    margin-top: 5px !important;
  }
  .admissions-actions {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
    min-width: 0;
  }
  .admissions-inner .admissions-actions .button {
    margin-top: 0;
    min-width: 0;
  }
  .admission-steps {
    gap: 25px 20px;
    padding-top: 32px;
  }
  .admission-steps h3 {
    font-size: 17px;
  }
  .admission-steps p {
    font-size: 12px;
  }
  .practical-grid {
    gap: 50px;
  }
  .news-empty {
    padding: 25px;
  }
  .gallery-heading {
    display: block;
  }
  .gallery-heading label {
    display: block;
    margin-top: 25px;
    max-width: 260px;
  }
  .gallery-grid {
    gap: 20px;
    grid-template-columns: 1fr;
  }
  .gallery-tile img {
    height: 230px;
  }
  .phone-list {
    font-size: 13px;
  }
  .contact-grid address {
    font-size: 14px;
  }
  .mobile-contact {
    position: fixed;
    z-index: 20;
    bottom: 0;
    left: 0;
    right: 0;
    display: grid;
    grid-template-columns: 1fr 1fr 1.2fr;
    background: var(--white);
    padding: 6px 10px calc(6px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    box-shadow: 0 -3px 20px #102e4d0a;
  }
  .mobile-contact a,
  .mobile-contact button {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    font-size: 12px;
    font-weight: 700;
    color: var(--ink);
  }
  .mobile-contact button {
    background: var(--navy);
    color: #fff;
    border-radius: 3px;
  }
  .main-nav {
    max-height: calc(100dvh - 138px);
  }
  dialog {
    max-height: calc(100dvh - 70px);
  }
  .form-actions {
    flex-direction: column;
  }
  .form-actions .button {
    width: 100%;
  }
}
