:root {
  --navy: #0a2342;
  --navy-deep: #04172f;
  --navy-mid: #173e68;
  --blue: #173e68;
  --sky: #e9edf2;
  --coral: #f6c445;
  --gold: #dca900;
  --cream: #ffffff;
  --grey-soft: #f4f6f8;
  --ink: #142033;
  --muted: #5d6875;
  --white: #ffffff;
  --line: #cfd6df;
  --shadow: 0 22px 60px rgba(4, 23, 47, 0.14);
  font-family: "Avenir Next", Avenir, "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--cream);
  scroll-behavior: smooth;
}

* { box-sizing: border-box; }
body { margin: 0; overflow-x: hidden; background: var(--cream); }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
section { scroll-margin-top: 84px; }
.skip-link { position: fixed; z-index: 100; left: 1rem; top: -5rem; padding: .8rem 1rem; background: white; color: var(--navy); }
.skip-link:focus { top: 1rem; }
.contact-bar { min-height: 38px; padding: .45rem clamp(1rem, 4vw, 4rem); display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: .6rem 1.5rem; background: var(--navy-deep); color: #e9edf2; border-bottom: 1px solid rgba(246,196,69,.45); }
.contact-bar a { display: inline-flex; align-items: center; gap: .45rem; font-size: .8rem; font-weight: 700; text-decoration: none; }
.contact-bar a:hover { color: white; text-decoration: underline; text-underline-offset: .2rem; }
.contact-bar svg { flex: 0 0 auto; width: 15px; height: 15px; color: var(--coral); }

.site-header {
  min-height: 86px;
  padding: .4rem clamp(1rem, 4vw, 4rem);
  display: flex;
  align-items: center;
  gap: 1.8rem;
  background: rgba(255, 255, 255, .96);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
}
.scroll-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; overflow: hidden; background: rgba(10,35,66,.14); }
.scroll-progress span { display: block; width: 100%; height: 100%; background: var(--coral); transform: scaleX(0); transform-origin: left center; will-change: transform; }
.brand { display: flex; align-items: center; text-decoration: none; margin-right: auto; }
.brand-logo { flex: 0 0 auto; width: clamp(200px, 18vw, 245px); height: auto; margin: -14px 0; object-fit: contain; }
nav { display: flex; align-items: center; gap: clamp(.7rem, 1.5vw, 1.4rem); }
nav a { padding: .65rem 0; color: var(--muted); font-size: .81rem; font-weight: 700; text-decoration: none; white-space: nowrap; border-bottom: 2px solid transparent; }
nav a:hover, nav a.active { color: var(--navy); border-color: var(--coral); }
nav a.external::after { content: "↗"; margin-left: .35rem; color: var(--gold); font-size: .9em; }
.language-toggle, .menu-toggle { min-height: 42px; border: 1px solid var(--navy); border-radius: 999px; background: transparent; color: var(--navy); font-weight: 800; cursor: pointer; }
.language-toggle { min-width: 48px; }
.menu-toggle { display: none; padding: 0 1rem; align-items: center; gap: .55rem; }
.menu-lines { width: 17px; display: grid; gap: 5px; }
.menu-lines i { height: 2px; background: currentColor; transition: transform .2s; }

.hero { min-height: calc(100svh - 86px); position: relative; overflow: hidden; background: var(--navy); color: white; }
.hero-slide { position: absolute; inset: 0; display: grid; align-items: center; opacity: 0; visibility: hidden; pointer-events: none; transform: translateX(2%); transition: opacity .45s ease, transform .45s ease, visibility .45s; }
.hero-slide.is-active { z-index: 1; opacity: 1; visibility: visible; pointer-events: auto; transform: none; }
.hero-slide > img, .hero-shade { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-shade { background: linear-gradient(90deg, rgba(4,23,47,.96) 0%, rgba(10,35,66,.78) 42%, rgba(10,35,66,.12) 76%); }
.hero-copy { position: relative; z-index: 2; width: min(650px, 88%); margin-left: clamp(1.25rem, 8vw, 8rem); padding: 5rem 0 8rem; }
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; color: var(--coral); font-size: .78rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.eyebrow.dark { color: var(--navy-mid); }
.eyebrow.light { color: var(--coral); }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: Georgia, "Times New Roman", serif; letter-spacing: -.045em; }
h1 { max-width: 10ch; margin: 1.2rem 0 1.4rem; font-size: clamp(3.5rem, 8vw, 7rem); line-height: .92; font-weight: 500; text-wrap: balance; }
.hero-copy h2 { max-width: 13ch; margin: 1.1rem 0 1.35rem; color: white; font-size: clamp(2.8rem, 6vw, 5.4rem); line-height: .96; font-weight: 500; text-wrap: balance; }
.hero-copy p { max-width: 53ch; margin-bottom: 2rem; color: #eef1f5; font-size: 1.12rem; line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.button { min-height: 50px; display: inline-flex; align-items: center; justify-content: center; padding: .8rem 1.2rem; border: 1px solid transparent; border-radius: 5px; font-weight: 800; text-align: center; text-decoration: none; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s; }
.button:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(7,25,42,.18); }
.button-primary { background: var(--coral); color: var(--navy-deep); }
.button-primary:hover { background: #ffd86b; }
.button-secondary { border-color: rgba(255,255,255,.6); color: white; }
.hero-note { position: absolute; z-index: 2; right: clamp(1rem, 4vw, 4rem); bottom: 2rem; display: flex; align-items: center; gap: 1rem; padding: 1rem 1.25rem; background: rgba(255,255,255,.96); color: var(--navy); border-left: 5px solid var(--coral); box-shadow: var(--shadow); }
.hero-note strong { font: 500 1.6rem Georgia, serif; }
.hero-note span { max-width: 13ch; color: var(--muted); font-size: .76rem; font-weight: 700; line-height: 1.35; }
.hero-slide-story .hero-shade { background: linear-gradient(90deg, rgba(4,23,47,.94) 0%, rgba(10,35,66,.72) 48%, rgba(10,35,66,.05) 82%); }
.hero-story-copy { width: min(760px, 88%); }
.hero-story-copy h2 { max-width: 10ch; }
.hero-story-copy p { max-width: 66ch; font-size: clamp(1rem, 1.35vw, 1.12rem); line-height: 1.65; }
.hero-slide-grades { background: var(--navy-deep); }
.hero-slide-grades > img { object-position: center; }
.hero-slide-grades .hero-shade { background: linear-gradient(90deg, rgba(4,23,47,.98) 0%, rgba(4,23,47,.9) 42%, rgba(4,23,47,.5) 68%, rgba(4,23,47,.12) 100%); }
.grades-garden-copy { width: min(760px, 88%); }
.grades-garden-copy h2 { max-width: 12ch; }
.grades-garden-copy .hero-actions { justify-content: flex-end; }
.hero-carousel-controls { position: absolute; z-index: 4; left: clamp(1.25rem, 8vw, 8rem); bottom: 2rem; display: flex; align-items: center; gap: .75rem; }
.hero-arrow, .hero-dot { border: 1px solid rgba(255,255,255,.52); background: rgba(4,23,47,.6); color: white; cursor: pointer; backdrop-filter: blur(8px); }
.hero-arrow { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; font-size: 1.15rem; transition: background .2s, border-color .2s, transform .2s; }
.hero-arrow:hover { transform: translateY(-2px); border-color: var(--coral); background: var(--navy-deep); }
.hero-dots { display: flex; align-items: center; gap: .45rem; }
.hero-dot { width: 10px; height: 10px; padding: 0; border-radius: 999px; transition: width .2s, background .2s, border-color .2s; }
.hero-dot.is-active { width: 30px; border-color: var(--coral); background: var(--coral); }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }

.section-pad { padding: clamp(5rem, 9vw, 8rem) clamp(1.25rem, 8vw, 8rem); }
.beliefs { display: grid; grid-template-columns: minmax(250px,.8fr) 1.2fr; gap: clamp(3rem, 8vw, 8rem); }
.section-intro h2, .section-heading h2 { margin: 1rem 0; font-size: clamp(2.7rem, 5vw, 4.8rem); line-height: 1; font-weight: 500; text-wrap: balance; }
.section-intro > p, .section-heading > p { color: var(--muted); line-height: 1.75; }
.belief-grid { display: grid; gap: 1rem; }
.belief-grid article { padding: 2rem; border-top: 5px solid var(--coral); background: white; box-shadow: var(--shadow); }
.number { color: var(--navy-mid); font-size: .8rem; font-weight: 800; }
.belief-grid h3 { margin: 1rem 0 .6rem; font: 500 2rem Georgia, serif; }
.belief-grid p { color: var(--muted); line-height: 1.75; }

.section-heading { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(260px, .6fr); gap: clamp(2rem, 7vw, 7rem); align-items: end; margin-bottom: 3rem; }
.section-heading h2 { max-width: 13ch; margin-bottom: 0; }
.section-heading > p { margin-bottom: .25rem; }
.services { background: var(--navy); color: white; }
.services .section-heading > p { color: #cfd6df; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.18); }
.service-card { position: relative; min-height: 430px; padding: 2rem; display: flex; flex-direction: column; background: var(--navy); box-shadow: 0 8px 22px rgba(0,0,0,.16); transition: transform .22s ease, box-shadow .22s ease, background .22s ease; }
.service-card:hover { z-index: 1; transform: translateY(-6px) scale(1.012); background: var(--navy-mid); box-shadow: 0 18px 38px rgba(0,0,0,.3); }
.service-icon { display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: auto; color: var(--coral); background: rgba(246,196,69,.09); border: 1px solid rgba(246,196,69,.3); border-radius: 14px; }
.service-icon svg { display: block; width: 38px; height: 38px; }
.service-card h3 { margin: 3rem 0 .4rem; font: 500 clamp(1.8rem, 3vw, 2.5rem) Georgia, serif; }
.service-card .grades { color: var(--coral); font-weight: 800; }
.service-card p { color: #cfd6df; line-height: 1.65; }
.class-list { margin: 1rem 0 0; padding: 1rem 0 0; list-style: none; border-top: 1px solid rgba(255,255,255,.15); }
.class-list li { padding: .32rem 0; color: #f4f6f8; font-size: .9rem; }
.class-list li::before { content: "—"; margin-right: .5rem; color: var(--coral); }
.services-extras { margin-top: 1rem; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr); border-top: 4px solid var(--coral); }
.electives-panel, .extended-services-panel { padding: clamp(1.6rem, 3vw, 2.4rem); }
.electives-panel { background: white; color: var(--navy-deep); }
.extended-services-panel { background: var(--navy-deep); }
.extras-kicker { color: var(--blue); font-size: .72rem; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.extras-kicker.light { color: var(--coral); }
.electives-panel h3, .extended-services-panel h3 { margin: .55rem 0 1.35rem; font: 500 clamp(1.65rem, 3vw, 2.2rem) Georgia, serif; }
.elective-list { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem 1.25rem; list-style: none; }
.elective-list li { position: relative; min-height: 1.8rem; padding-left: 1.15rem; color: var(--muted); line-height: 1.45; }
.elective-list li::before { content: ""; position: absolute; left: 0; top: .55rem; width: 7px; height: 7px; background: var(--coral); transform: rotate(45deg); }
.extended-services-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
.extended-service-card { position: relative; padding: 1.15rem; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.07); box-shadow: 0 7px 18px rgba(0,0,0,.14); transition: transform .22s ease, box-shadow .22s ease, background .22s ease, border-color .22s ease; }
.extended-service-card:hover { z-index: 1; transform: translateY(-5px); border-color: rgba(255,255,255,.35); background: rgba(255,255,255,.11); box-shadow: 0 16px 32px rgba(0,0,0,.27); }
.extended-service-heading { display: flex; flex-direction: column; align-items: flex-start; gap: .7rem; }
.extended-service-heading h4 { min-height: 2.6rem; margin: 0; color: white; font-size: 1rem; line-height: 1.3; }
.extended-service-heading strong { min-width: 70px; padding: .4rem .65rem; background: var(--coral); color: var(--navy-deep); font-size: 1rem; line-height: 1; text-align: center; white-space: nowrap; }
.schedule-label { display: block; margin-top: 1rem; color: var(--coral); font-size: .67rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.extended-service-schedule { margin: .3rem 0 0; display: flex; flex-direction: column; gap: .1rem; color: #cfd6df; font-size: .88rem; line-height: 1.55; }
.extended-service-time { white-space: nowrap; }
.combined-offer { margin: .75rem 0 0; padding: 1rem 1.15rem; background: var(--coral); color: var(--navy-deep); font-weight: 850; line-height: 1.45; }

.sports { position: relative; isolation: isolate; overflow: hidden; background: var(--grey-soft); }
.sports::before { content: ""; position: absolute; inset: -24px; z-index: -2; background: url("assets/sports-background.png") center / cover no-repeat; filter: blur(7px); transform: scale(1.04); }
.sports::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, rgba(244,246,248,.82), rgba(255,255,255,.66)); }
.sports-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr); gap: 1rem; align-items: stretch; }
.sports-grid { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; list-style: none; }
.sport-card { min-height: 116px; padding: 1.2rem; display: flex; flex-direction: column; justify-content: space-between; gap: 1rem; background: white; border: 1px solid var(--line); border-bottom: 4px solid var(--navy); transition: transform .2s, border-color .2s, box-shadow .2s; }
.sport-card:hover { transform: translateY(-3px); border-bottom-color: var(--coral); box-shadow: 0 12px 28px rgba(4,23,47,.09); }
.sport-icon { min-height: 40px; display: flex; align-items: center; font-size: 2rem; line-height: 1; }
.sport-card strong { color: var(--navy); font-size: 1rem; line-height: 1.3; }
.league-card { padding: clamp(1.8rem, 4vw, 3rem); display: flex; flex-direction: column; justify-content: center; background: var(--navy); color: white; border-top: 7px solid var(--coral); }
.league-label { color: var(--coral); font-size: .75rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.league-card > strong { margin: .8rem 0 .35rem; color: var(--coral); font: 500 clamp(3.2rem, 6vw, 5.6rem)/.9 Georgia, serif; letter-spacing: -.06em; }
.league-card h3 { margin: 1rem 0 .7rem; font: 500 1.6rem Georgia, serif; }
.league-card p { margin-bottom: 0; color: #cfd6df; line-height: 1.65; }

.team { background: var(--grey-soft); }
.team-carousel { margin-top: .25rem; }
.team-carousel-bar { margin-bottom: 1rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.team-carousel-label { display: flex; align-items: baseline; gap: .75rem; color: var(--navy); }
.team-carousel-label span { font: 500 clamp(1.4rem, 2.5vw, 1.9rem) Georgia, serif; }
.team-carousel-label small { color: var(--muted); font-size: .78rem; font-weight: 800; letter-spacing: .08em; }
.team-carousel-controls { display: flex; gap: .55rem; }
.team-arrow { width: 48px; height: 48px; display: grid; place-items: center; padding: 0; border: 1px solid var(--navy); border-radius: 50%; background: transparent; color: var(--navy); font-size: 1.35rem; cursor: pointer; transition: background .2s, color .2s, transform .2s; }
.team-arrow:hover { background: var(--navy); color: white; transform: translateY(-2px); }
.team-viewport { overflow: hidden; transition: height .4s cubic-bezier(.22,.61,.36,1); }
.team-track { display: flex; align-items: flex-start; transition: transform .45s cubic-bezier(.22,.61,.36,1); }
.team-slide { min-width: 100%; }
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.team-card { width: 100%; min-height: 315px; padding: 1.5rem; display: flex; flex-direction: column; text-align: left; font: inherit; color: inherit; cursor: pointer; background: white; border: 1px solid var(--line); border-bottom: 4px solid var(--navy); box-shadow: 0 8px 30px rgba(4,23,47,.07); transition: transform .2s, border .2s; }
.team-slide-faculty .team-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.team-slide-faculty .team-card { min-height: 270px; padding: 1.15rem; }
.team-slide-faculty .avatar { width: 62px; height: 62px; }
.team-slide-faculty .team-card h3 { margin-top: 1.5rem; font-size: 1.28rem; }
.team-slide-faculty .team-role { font-size: .74rem; line-height: 1.4; }
.team-slide-faculty .team-bio { font-size: .9rem; line-height: 1.5; }
.team-card:hover { transform: translateY(-4px); border-color: var(--coral); }
.avatar { width: 72px; height: 72px; display: grid; place-items: center; margin-bottom: auto; border-radius: 50%; color: white; font: 500 1.35rem Georgia, serif; }
.avatar.teal { background: var(--navy-mid); }
.avatar.coral { background: var(--coral); color: var(--navy-deep); }
.avatar.gold { background: var(--gold); color: var(--navy-deep); }
.avatar.blue { background: #31577d; }
.avatar.navy { background: var(--navy); }
.avatar.green { background: #687583; }
.team-photo-avatar { background-color: var(--navy-mid); background-repeat: no-repeat; border: 3px solid white; box-shadow: 0 0 0 2px var(--coral), 0 8px 20px rgba(4,23,47,.18); }
.team-card h3 { margin: 2rem 0 .25rem; font: 500 1.5rem Georgia, serif; }
.team-role { margin-bottom: .8rem; color: var(--blue); font-size: .82rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.team-bio { margin-bottom: 0; color: var(--muted); line-height: 1.65; }
.team-dialog { width: min(900px, calc(100% - 2rem)); max-height: calc(100vh - 2rem); padding: 0; overflow: hidden; border: 1px solid rgba(255,255,255,.5); background: rgba(238,241,245,.84); color: var(--navy-deep); box-shadow: 0 30px 80px rgba(4,23,47,.35); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.team-dialog::backdrop { background: rgba(4,23,47,.72); backdrop-filter: blur(5px); }
.team-dialog[open] { animation: team-dialog-in .25s ease both; }
.team-dialog-close { position: absolute; top: 1rem; right: 1rem; z-index: 2; width: 42px; height: 42px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: var(--navy); color: white; font-size: 1.65rem; line-height: 1; cursor: pointer; }
.team-dialog-inner { min-height: 430px; display: grid; grid-template-columns: minmax(260px, .85fr) 1.15fr; }
.team-dialog-media { min-height: 430px; display: grid; place-items: center; overflow: hidden; background: linear-gradient(145deg, var(--navy), var(--navy-mid)); }
.team-dialog-inner.has-profile-poster { min-height: 0; grid-template-columns: 1fr 1fr; aspect-ratio: 2 / 1; }
.team-dialog-media.has-profile-poster { min-height: 0; height: 100%; aspect-ratio: auto; }
.team-dialog-media img { width: 100%; height: 100%; object-fit: cover; }
.team-dialog-media img.profile-poster { object-fit: contain; background: #40579b; }
.team-dialog-avatar { width: 150px; height: 150px; margin: 0; font-size: 2.5rem; box-shadow: 0 0 0 10px rgba(255,255,255,.14); }
.team-dialog-content { padding: clamp(2rem, 5vw, 4rem); display: flex; flex-direction: column; justify-content: center; background: rgba(238,241,245,.84); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.team-dialog-inner.has-profile-poster .team-dialog-content { min-height: 0; overflow-y: auto; padding: clamp(1.5rem, 3vw, 2.5rem); }
.team-dialog-content h3 { margin: .5rem 0 1.25rem; font: 500 clamp(2rem, 4vw, 3.2rem)/1.05 Georgia, serif; }
.team-dialog-favorite { margin-bottom: 1.25rem; padding: .85rem 1rem; background: rgba(255,255,255,.56); border-left: 4px solid var(--coral); }
.team-dialog-favorite strong { display: block; margin-top: .2rem; color: var(--navy); font-size: 1rem; }
.team-dialog-detail-label { display: block; margin-bottom: .45rem; color: var(--blue); font-size: .72rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.team-dialog-message { position: relative; margin: 0; padding-left: 1.25rem; border-left: 4px solid var(--coral); color: var(--muted); font-size: 1.05rem; line-height: 1.75; }
@keyframes team-dialog-in { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }

.documents { background: var(--cream); }
.document-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.document-card { padding: 1.2rem 1.4rem; display: grid; grid-template-columns: auto 1fr auto; gap: 1rem; align-items: center; background: white; border: 1px solid var(--line); }
.file-badge { width: 52px; height: 62px; display: grid; place-items: end center; padding-bottom: .7rem; background: var(--coral); color: var(--navy-deep); font-size: .68rem; font-weight: 900; clip-path: polygon(0 0, 72% 0, 100% 24%, 100% 100%, 0 100%); }
.document-category { color: var(--navy-mid); font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.document-card h3 { margin: .25rem 0; font: 500 1.25rem Georgia, serif; }
.document-meta { color: var(--muted); font-size: .84rem; }
.document-action { min-width: 125px; padding: .7rem .8rem; border: 1px solid var(--navy); color: var(--navy); font-size: .8rem; font-weight: 800; text-align: center; text-decoration: none; }
.document-action.disabled { border-color: var(--line); color: #83919b; cursor: default; }
.academic-calendar { background: var(--grey-soft); }
.academic-calendar-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
.academic-event { display: flex; align-items: flex-start; gap: 1.2rem; padding: 1.5rem; background: white; border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: 12px; }
.academic-event-date { display: flex; flex: 0 0 68px; flex-direction: column; align-items: center; padding: .7rem .4rem; border-radius: 8px; background: var(--navy); color: white; }
.academic-event-date span { font-size: .875rem; text-transform: uppercase; }
.academic-event-date strong { font-size: 2rem; line-height: 1.25; color: var(--coral); }
.academic-event-copy { min-width: 0; }
.academic-event-type { color: var(--muted); font-size: .875rem; font-weight: 700; }
.academic-event h3 { margin: .5rem 0; font-size: 1.15rem; line-height: 1.4; }
.academic-event p { margin: 0; color: var(--muted); font-size: 1rem; text-transform: capitalize; }
.academic-calendar-footer { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; margin-top: 1.8rem; }
.academic-calendar-footer p { max-width: 620px; color: var(--muted); font-size: .875rem; line-height: 1.6; }
.academic-calendar-footer a { flex-shrink: 0; background: var(--navy); color: white; }
@media (max-width: 1100px) { .academic-calendar-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 650px) {
  .academic-calendar-grid { grid-template-columns: 1fr; }
  .academic-calendar-footer { flex-direction: column; align-items: flex-start; }
}
.calendar { background: var(--navy-deep); color: white; }
.calendar .section-heading > p { color: #c7d0da; }
.facebook-feed { display: grid; justify-items: center; gap: 1rem; }
.facebook-embed-wrap { width: min(800px, 100%); height: 704px; overflow: hidden; background: white; border: 1px solid rgba(255,255,255,.2); box-shadow: 0 24px 60px rgba(0,0,0,.28); }
.facebook-embed { display: block; width: 500px; height: 440px; transform-origin: top left; border: 0; background: white; }
.facebook-page-link { display: inline-flex; align-items: center; gap: .55rem; padding: .8rem 1rem; border: 1px solid var(--coral); color: var(--coral); font-size: .86rem; font-weight: 800; text-decoration: none; transition: background .2s, color .2s, transform .2s; }
.facebook-page-link:hover { background: var(--coral); color: var(--navy-deep); transform: translateY(-2px); }
.event-list { display: grid; gap: 1px; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.16); }
.event-card { display: grid; grid-template-columns: 125px 1fr auto; gap: 2rem; align-items: center; padding: 2rem; background: var(--navy-deep); }
.event-card:first-child { background: var(--navy-mid); border-left: 5px solid var(--coral); }
.event-date { padding-right: 2rem; border-right: 1px solid rgba(255,255,255,.2); }
.event-month { display: block; color: var(--coral); font-size: .76rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.event-day { display: block; font: 500 3.5rem/.95 Georgia, serif; }
.event-type { color: var(--coral); font-size: .72rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.event-copy h3 { margin: .45rem 0; font: 500 1.55rem Georgia, serif; }
.event-copy p { margin: 0; color: #c7d0da; line-height: 1.6; }
.event-time { min-width: 115px; color: #e9edf2; font-weight: 800; text-align: right; }
.next-label { display: block; margin-bottom: .35rem; color: var(--coral); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; }

.enrollment-cta { padding: clamp(4rem, 8vw, 7rem) clamp(1.25rem, 8vw, 8rem); display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 3rem; background: var(--coral); color: var(--navy-deep); }
.enrollment-cta h2 { max-width: 15ch; margin: 1rem 0 0; font-size: clamp(2.6rem, 5vw, 4.6rem); font-weight: 500; line-height: 1; }
.enrollment-cta .button { min-width: 190px; }
.enrollment-cta .eyebrow.light { color: var(--navy-mid); }
.enrollment-cta .button-primary { background: var(--navy); color: white; }
.enrollment-cta .button-primary:hover { background: var(--navy-deep); }

footer { padding: 1.2rem clamp(1.25rem, 8vw, 8rem); display: grid; grid-template-columns: 1fr auto; gap: .75rem 2rem; align-items: center; background: var(--sky); color: var(--navy-deep); border-top: 5px solid var(--coral); }
.footer-brand { display: flex; flex-direction: row; align-items: center; gap: .8rem; }
.footer-logo { width: clamp(170px, 16vw, 215px); height: auto; margin: -12px 0; padding: 0; background: transparent; }
.footer-contact { display: grid; gap: .4rem; text-align: right; }
.footer-contact a { text-decoration: none; }
.footer-contact a, .footer-contact address, .footer-contact span { color: var(--navy-deep); font-size: .9rem; font-style: normal; }
.footer-contact > * { display: inline-flex; align-items: center; justify-content: flex-end; gap: .55rem; }
.footer-contact .footer-icon { flex: 0 0 auto; width: 17px; height: 17px; color: var(--gold); }
footer > small { grid-column: 1 / -1; padding-top: .7rem; border-top: 1px solid rgba(4,23,47,.16); color: #445469; text-align: center; }
.back-to-top { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 18; width: 50px; height: 50px; display: grid; place-items: center; padding: 0; border: 1px solid rgba(4,23,47,.18); border-radius: 50%; background: var(--coral); color: var(--navy-deep); box-shadow: 0 12px 30px rgba(4,23,47,.24); opacity: 0; pointer-events: none; transform: translateY(12px) scale(.92); transition: opacity .2s, transform .2s, background .2s; cursor: pointer; }
.back-to-top svg { width: 23px; height: 23px; }
.back-to-top.is-visible { opacity: 1; pointer-events: auto; transform: none; }
.back-to-top:hover { background: white; transform: translateY(-3px); }

a:focus-visible, button:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; }
.button-primary:focus-visible, .enrollment-cta a:focus-visible { outline-color: var(--navy-deep); }

.reveal { animation: rise .7s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { :root { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }

@media (max-width: 1280px) {
  .menu-toggle { display: flex; }
  nav { display: none; position: absolute; left: 1rem; right: 1rem; top: calc(100% + .5rem); padding: 1rem; flex-direction: column; align-items: stretch; background: white; border: 1px solid var(--line); box-shadow: var(--shadow); }
  nav.open { display: flex; }
  nav a { padding: .8rem; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  .beliefs, .section-heading, .sports-layout, .enrollment-cta { grid-template-columns: 1fr; }
  .section-heading { align-items: start; }
  .service-grid, .services-extras { grid-template-columns: 1fr; }
  .service-card { min-height: auto; }
  .service-index { margin-bottom: 2rem; }
  .sports-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .event-card { grid-template-columns: 95px 1fr; }
  .event-time { grid-column: 2; text-align: left; }
  .document-list { grid-template-columns: 1fr; }
  .team-slide-faculty .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .team-dialog { overflow-y: auto; }
  .team-dialog-inner.has-profile-poster { aspect-ratio: auto; grid-template-columns: 1fr; }
  .team-dialog-media.has-profile-poster { width: 100%; height: auto; aspect-ratio: 1; }
  footer { grid-template-columns: 1fr; }
  .footer-contact { text-align: left; }
  .footer-contact > * { justify-content: flex-start; }
}

@media (max-width: 580px) {
  .contact-bar { justify-content: center; gap: .45rem 1rem; padding: .55rem 1rem; }
  .contact-bar a { font-size: .73rem; overflow-wrap: anywhere; }
  .site-header { flex-wrap: wrap; gap: .3rem .55rem; padding: .35rem 1rem .55rem; }
  .brand { flex: 1 0 100%; justify-content: center; margin-right: 0; overflow: hidden; }
  .brand-logo { width: min(220px, 100%); margin: -12px 0; }
  .menu-toggle { width: 42px; margin-left: auto; padding: 0; justify-content: center; }
  .menu-toggle > span:last-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .hero { min-height: 760px; }
  .hero-slide { align-items: end; }
  .hero-shade { background: linear-gradient(0deg, rgba(4,23,47,.98) 0%, rgba(10,35,66,.7) 70%, rgba(10,35,66,.16) 100%); }
  .hero-copy { width: auto; margin: 0; padding: 10rem 1.25rem 8.5rem; }
  .hero-copy h2 { font-size: clamp(2.6rem, 12vw, 4rem); }
  .hero-story-copy { padding-top: 7rem; }
  .hero-story-copy p, .grades-garden-copy p { font-size: .96rem; line-height: 1.55; }
  .hero-note { left: 1.25rem; right: auto; bottom: 1.25rem; }
  .hero-carousel-controls { left: auto; right: 1.25rem; bottom: 1.25rem; }
  .hero-slide-story .hero-shade { background: linear-gradient(0deg, rgba(4,23,47,.99) 0%, rgba(10,35,66,.78) 74%, rgba(10,35,66,.12) 100%); }
  .hero-slide-grades .hero-shade { background: linear-gradient(0deg, rgba(4,23,47,.99) 0%, rgba(4,23,47,.84) 72%, rgba(4,23,47,.18) 100%); }
  .sports-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .team-slide-faculty .team-grid { grid-template-columns: 1fr; }
  .elective-list, .extended-services-list { grid-template-columns: 1fr; }
  .team-dialog { overflow-y: auto; }
  .team-dialog-inner { min-height: 0; grid-template-columns: 1fr; }
  .team-dialog-media { min-height: 250px; }
  .team-dialog-content { padding: 2rem 1.5rem; }
  .document-card { grid-template-columns: auto 1fr; }
  .document-action { grid-column: 1 / -1; }
  .event-card { grid-template-columns: 70px 1fr; gap: 1rem; padding: 1.4rem 1rem; }
  .event-date { padding-right: 1rem; }
  .event-day { font-size: 2.8rem; }
  footer { grid-template-columns: 1fr; }
  .footer-brand { flex-direction: column; align-items: flex-start; }
  .footer-logo { width: min(195px, 100%); margin: -11px 0; }
  .footer-contact { text-align: left; }
  .footer-contact > * { justify-content: flex-start; }
  .back-to-top { right: .9rem; bottom: .9rem; width: 46px; height: 46px; }
}
