@import url('/assets/fonts/fonts.css');

:root {
  --navy: #001347;
  --navy-deep: #000b2b;
  --forest: #0c3e1b;
  --gold: #c18f24;
  --sky: #0071b7;
  --white: #ffffff;
  --cream: #f7f5ef;
  --ink: #101a2f;
  --muted: #5d6574;
  --line: rgba(0, 19, 71, 0.12);
  --serif: "Libre Baskerville", Georgia, serif;
  --sans: Montserrat, Arial, sans-serif;
  --shadow: 0 24px 80px rgba(0, 11, 43, 0.18);
  --radius: 28px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #f2bd43; outline-offset: 4px; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 999; padding: .8rem 1rem; background: #fff; color: var(--navy); border-radius: 10px; }
.skip-link:focus { top: 1rem; }

.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  min-height: 82px; padding: 0 clamp(1rem, 4vw, 4.5rem);
  color: #fff; background: linear-gradient(to bottom, rgba(0,11,43,.72), transparent);
  transition: background .35s ease, min-height .35s ease, box-shadow .35s ease;
}
.site-header.scrolled { min-height: 68px; background: rgba(0, 11, 43, .96); box-shadow: 0 12px 30px rgba(0,0,0,.16); backdrop-filter: blur(14px); }
.brand { display: inline-flex; align-items: center; gap: .8rem; color: white; text-decoration: none; font-weight: 700; letter-spacing: .04em; }
.brand img { width: 48px; height: 48px; object-fit: contain; }
.brand span { line-height: 1.1; }
.brand small { display: block; margin-top: .25rem; font-size: .62rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: #e8c66f; }
.desktop-nav { display: flex; align-items: center; gap: 1.6rem; }
.desktop-nav a { color: white; text-decoration: none; font-size: .82rem; font-weight: 600; }
.desktop-nav a:not(.btn):hover { color: #f2cf78; }
.menu-toggle { display: none; width: 46px; height: 46px; border: 1px solid rgba(255,255,255,.32); border-radius: 50%; color: #fff; background: rgba(255,255,255,.08); }
.mobile-menu { position: fixed; inset: 0; z-index: 90; display: grid; align-content: center; gap: .7rem; padding: 6rem 1.5rem 2rem; background: var(--navy-deep); color: white; transform: translateY(-105%); transition: transform .45s cubic-bezier(.2,.8,.2,1); }
.mobile-menu.open { transform: none; }
.mobile-menu a { display: block; padding: .7rem 0; color: white; text-decoration: none; font-family: var(--serif); font-size: clamp(1.4rem, 7vw, 2.2rem); border-bottom: 1px solid rgba(255,255,255,.12); }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .75rem 1.2rem; border: 1px solid transparent; border-radius: 999px; text-decoration: none; font-size: .84rem; font-weight: 700; letter-spacing: .02em; transition: transform .25s ease, box-shadow .25s ease, background .25s ease; cursor: pointer; }
.btn:hover { transform: translateY(-2px); }
.btn-gold { color: #061033; background: #d5a63e; box-shadow: 0 10px 24px rgba(193,143,36,.28); }
.btn-gold:hover { background: #e1b54f; box-shadow: 0 15px 30px rgba(193,143,36,.35); }
.btn-light { color: var(--navy); background: #fff; }
.btn-outline { color: currentColor; border-color: currentColor; background: transparent; }
.text-link { display: inline-flex; gap: .45rem; align-items: center; color: var(--navy); font-weight: 700; text-underline-offset: 4px; }

.hero { position: relative; min-height: 100svh; display: grid; align-items: end; color: white; background: var(--navy-deep); isolation: isolate; overflow: hidden; }
.hero-media { position: absolute; inset: 0; z-index: -3; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center; scale: 1.06; animation: heroScale 8s ease-out forwards; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: linear-gradient(90deg, rgba(0,11,43,.95) 0%, rgba(0,11,43,.72) 46%, rgba(0,11,43,.25) 78%), linear-gradient(0deg, rgba(0,11,43,.86) 0%, transparent 48%); }
.hero::after { content: ""; position: absolute; width: 76vw; height: 76vw; right: -38vw; top: -45vw; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; box-shadow: 0 0 0 8vw rgba(255,255,255,.025), 0 0 0 16vw rgba(255,255,255,.02); z-index: -1; }
.starfield { position: absolute; inset: 0; z-index: -1; opacity: .65; background-image: radial-gradient(circle, rgba(255,255,255,.85) 1px, transparent 1.5px), radial-gradient(circle, rgba(213,166,62,.75) 1px, transparent 1.5px); background-size: 170px 170px, 260px 260px; background-position: 16px 20px, 110px 90px; mask-image: linear-gradient(to bottom, black, transparent 70%); animation: starDrift 22s linear infinite; }
.hero-inner { position: relative; z-index: 2; width: min(1180px, calc(100% - 2rem)); margin: 0 auto; padding: 9rem 0 8.2rem; display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, .45fr); gap: 4rem; align-items: end; }
.hero-copy { max-width: 760px; }
.eyebrow { margin: 0 0 1rem; color: var(--gold); font-size: .74rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
h1, h2, h3 { margin: 0; font-family: var(--serif); line-height: 1.08; letter-spacing: -.03em; }
h1 { font-size: clamp(3rem, 7.8vw, 7rem); max-width: 980px; }
h2 { font-size: clamp(2.25rem, 5vw, 4.7rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.8rem); }
.hero-copy .lead { max-width: 630px; margin: 1.4rem 0 1.8rem; color: rgba(255,255,255,.86); font-size: clamp(1rem, 2vw, 1.22rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero-crest { position: relative; z-index: 3; justify-self: end; width: min(35vw, 375px); filter: drop-shadow(0 28px 50px rgba(0,0,0,.36)); opacity: 0; transform: translateY(28px) scale(.88); animation: crestReveal 1.25s .15s cubic-bezier(.16,1,.3,1) forwards; }
.hero-crest img { width: 100%; height: auto; }
.hero-scroll { position: absolute; left: clamp(1rem, 4vw, 4.5rem); bottom: 2rem; display: flex; align-items: center; gap: .7rem; font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.66); }
.hero-scroll::before { content: ""; width: 48px; height: 1px; background: var(--gold); transform-origin: left; animation: linePulse 2.2s ease-in-out infinite; }

.parent-dock { position: sticky; top: 68px; z-index: 70; background: white; box-shadow: 0 12px 40px rgba(0,19,71,.09); }
.parent-dock-inner { width: min(1180px, calc(100% - 2rem)); margin: 0 auto; min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.parent-dock .parent-hub-link { color: var(--navy); font-family: var(--serif); font-weight: 700; text-underline-offset: 4px; white-space: nowrap; }
.quick-links { display: flex; align-items: center; gap: .4rem; overflow-x: auto; scrollbar-width: none; }
.quick-links::-webkit-scrollbar { display: none; }
.quick-links a { white-space: nowrap; padding: .55rem .75rem; color: var(--navy); text-decoration: none; font-size: .76rem; font-weight: 700; border-radius: 999px; }
.quick-links a:hover { background: #f0f3f8; }

.section { position: relative; padding: clamp(5rem, 10vw, 9rem) 0; }
.wrap { width: min(1180px, calc(100% - 2rem)); margin: 0 auto; }
.section-head { max-width: 780px; margin-bottom: 3rem; }
.section-head p:not(.eyebrow) { max-width: 650px; margin: 1.1rem 0 0; color: var(--muted); font-size: 1.04rem; }
.section-dark { color: white; background: var(--navy); }
.section-dark .section-head p:not(.eyebrow) { color: rgba(255,255,255,.7); }

.legacy { overflow: hidden; background: #fff; }
.legacy-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.legacy-visual { position: relative; min-height: 570px; }
.legacy-main { position: absolute; inset: 0 12% 7% 0; width: 88%; height: 86%; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.legacy-detail { position: absolute; right: 0; bottom: 0; width: 44%; aspect-ratio: 1 / 1.15; object-fit: cover; border: 8px solid white; border-radius: 22px; box-shadow: var(--shadow); }
.legacy-mark { position: absolute; left: 5%; bottom: 1%; width: 120px; padding: .75rem; background: var(--navy); border-radius: 20px; box-shadow: var(--shadow); }
.legacy-copy p { color: var(--muted); }
.gold-rule { display: block; width: 96px; height: 2px; margin: 1.7rem 0; background: linear-gradient(90deg, var(--gold), transparent); }
.legacy-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2rem; }
.legacy-points div { padding-top: 1rem; border-top: 1px solid var(--line); }
.legacy-points strong { display: block; color: var(--navy); font-family: var(--serif); }
.legacy-points span { font-size: .8rem; color: var(--muted); }

.program-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1rem; }
.program-card { position: relative; min-height: 390px; display: flex; flex-direction: column; justify-content: flex-end; padding: 1.5rem; color: white; text-decoration: none; background: var(--navy); border-radius: 22px; overflow: hidden; isolation: isolate; }
.program-card:nth-child(1), .program-card:nth-child(4) { grid-column: span 5; }
.program-card:nth-child(2), .program-card:nth-child(3) { grid-column: span 7; }
.program-card:nth-child(5), .program-card:nth-child(6) { grid-column: span 6; min-height: 320px; }
.program-card img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.8,.2,1); }
.program-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(0,11,43,.94), rgba(0,11,43,.03) 75%); }
.program-card:hover img { transform: scale(1.06); }
.program-card .age { display: inline-flex; align-self: flex-start; margin-bottom: .6rem; padding: .3rem .65rem; border: 1px solid rgba(255,255,255,.44); border-radius: 999px; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.program-card p { max-width: 480px; margin: .65rem 0 0; color: rgba(255,255,255,.78); font-size: .9rem; }

.why-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 7vw, 7rem); align-items: start; }
.why-photo { position: sticky; top: 145px; }
.why-photo img { width: 100%; min-height: 650px; object-fit: cover; border-radius: var(--radius); box-shadow: 0 24px 80px rgba(0,0,0,.28); }
.reason-list { display: grid; gap: 0; margin-top: 2rem; }
.reason { display: grid; grid-template-columns: 50px 1fr; gap: 1rem; padding: 1.4rem 0; border-top: 1px solid rgba(255,255,255,.15); }
.reason span { display: grid; place-items: center; width: 40px; height: 40px; color: #071440; background: var(--gold); border-radius: 50%; font-family: var(--serif); font-weight: 700; }
.reason p { margin: .45rem 0 0; color: rgba(255,255,255,.7); }

.gallery-strip { display: grid; grid-template-columns: 1.15fr .7fr 1fr; grid-template-rows: 230px 230px; gap: 1rem; }
.gallery-strip figure { margin: 0; border-radius: 22px; overflow: hidden; }
.gallery-strip figure:first-child { grid-row: 1 / 3; }
.gallery-strip figure:nth-child(4) { grid-column: 2 / 4; }
.gallery-strip img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.gallery-strip figure:hover img { transform: scale(1.04); }

.philosophy { overflow: hidden; background: #e7f4fa; }
.philosophy::before { content: ""; position: absolute; width: 70vw; aspect-ratio: 2/1; left: -10vw; bottom: -26vw; border: 2px solid rgba(0,113,183,.15); border-radius: 50%; box-shadow: 0 0 0 6vw rgba(0,113,183,.05), 0 0 0 12vw rgba(0,113,183,.035); }
.philosophy-grid { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.philosophy-card { min-height: 340px; padding: 2rem; background: rgba(255,255,255,.78); border: 1px solid rgba(0,113,183,.12); border-radius: 26px; backdrop-filter: blur(10px); }
.philosophy-card b { display: block; margin-bottom: 3rem; color: var(--sky); font-family: var(--serif); font-size: 4rem; line-height: 1; }
.philosophy-card p { color: var(--muted); }

.campus-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.campus-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(2rem, 5vw, 5rem); color: white; background: var(--forest); border-radius: var(--radius); }
.campus-copy p { color: rgba(255,255,255,.72); }
.campus-map { min-height: 560px; border: 0; border-radius: var(--radius); width: 100%; box-shadow: var(--shadow); }
.detail-row { display: flex; flex-wrap: wrap; gap: 1.4rem; margin: 1.5rem 0; font-size: .85rem; }
.detail-row strong { display: block; color: #f0c55d; }

.trust { text-align: center; background: white; }
.quote { max-width: 900px; margin: 0 auto; }
.quote .community-statement { margin: 0; color: var(--navy); font-family: var(--serif); font-size: clamp(1.7rem, 4vw, 3.4rem); line-height: 1.3; }
.quote .community-caption { display: block; margin-top: 1.5rem; color: var(--muted); font-style: normal; }

.final-cta { padding: clamp(4rem, 9vw, 8rem) 0; color: white; background: var(--navy-deep); text-align: center; }
.final-cta .wrap { max-width: 920px; }
.final-cta p { max-width: 620px; margin: 1.2rem auto 2rem; color: rgba(255,255,255,.72); }
.final-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; }

.site-footer { padding: 4rem 0 6rem; color: white; background: #000718; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2rem; }
.footer-brand img { width: 110px; margin-bottom: 1rem; }
.footer-brand p { max-width: 330px; color: rgba(255,255,255,.6); }
.site-footer h3 { margin-bottom: 1rem; font-family: var(--sans); font-size: .78rem; letter-spacing: .13em; text-transform: uppercase; color: #e2b344; }
.site-footer a { display: block; margin: .5rem 0; color: rgba(255,255,255,.76); text-decoration: none; font-size: .88rem; }
.site-footer a:hover { color: white; }
.footer-bottom { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.48); font-size: .72rem; }
.mobile-actions { display: none; }
.mobile-actions[hidden] { display: none !important; }

.page-hero { min-height: 560px; display: grid; align-items: end; padding: 10rem 0 5rem; color: white; background: var(--navy); position: relative; overflow: hidden; isolation: isolate; }
.page-hero.photo::before { content: ""; position: absolute; inset: 0; z-index: -2; background: var(--hero-image) center / cover; }
.page-hero.photo::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(0,11,43,.95), rgba(0,11,43,.4)); }
.page-hero .wrap { max-width: 1180px; }
.page-hero h1 { max-width: 850px; font-size: clamp(3rem, 7vw, 6.5rem); }
.page-hero p:not(.eyebrow) { max-width: 680px; margin: 1.2rem 0 0; font-size: 1.1rem; color: rgba(255,255,255,.8); }
.breadcrumb { margin-bottom: 1.2rem; color: rgba(255,255,255,.66); font-size: .75rem; }
.breadcrumb a { color: inherit; }

.hub-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.hub-card { min-height: 210px; display: flex; flex-direction: column; padding: 1.5rem; color: var(--navy); background: white; border: 1px solid var(--line); border-radius: 22px; text-decoration: none; box-shadow: 0 12px 40px rgba(0,19,71,.05); transition: transform .25s ease, box-shadow .25s ease; }
.hub-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.hub-card .icon { width: 44px; height: 44px; display: grid; place-items: center; margin-bottom: 2rem; color: white; background: var(--navy); border-radius: 14px; font-weight: 700; }
.hub-card p { margin: .6rem 0 0; color: var(--muted); font-size: .88rem; }
.hub-card .link-label { margin-top: auto; padding-top: 1rem; color: var(--sky); font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.notice { padding: 1.4rem; background: #fff8df; border-left: 4px solid var(--gold); border-radius: 0 16px 16px 0; }
.event-list { display: grid; gap: .7rem; }
.event-item { display: grid; grid-template-columns: 88px 1fr; gap: 1.2rem; align-items: start; padding: 1.2rem 0; border-bottom: 1px solid var(--line); }
.event-item time { color: var(--navy); font-weight: 700; }
.event-item p { margin: .2rem 0 0; color: var(--muted); }
.closing-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .7rem 2rem; }
.closing-grid div { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); font-size: .86rem; }
.closing-grid time { color: var(--navy); font-weight: 700; }

.content-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 7vw, 7rem); align-items: start; }
.content-grid p { color: var(--muted); }
.feature-list { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; margin: 2rem 0; padding: 0; list-style: none; }
.feature-list li { padding: 1rem; background: white; border: 1px solid var(--line); border-radius: 14px; color: var(--navy); font-weight: 600; }
.content-photo { position: sticky; top: 130px; border-radius: var(--radius); box-shadow: var(--shadow); }

.tour-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem, 7vw, 6rem); align-items: start; }
.tour-card { padding: clamp(1.5rem, 4vw, 3rem); background: white; border-radius: var(--radius); box-shadow: var(--shadow); }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: grid; gap: .4rem; margin-bottom: 1rem; }
.field.full { grid-column: 1 / -1; }
.field label { color: var(--navy); font-size: .8rem; font-weight: 700; }
.field input, .field select, .field textarea { width: 100%; min-height: 50px; padding: .75rem .9rem; border: 1px solid #ccd2df; border-radius: 12px; background: white; color: var(--ink); }
.field textarea { min-height: 120px; resize: vertical; }
.form-note, .form-status { color: var(--muted); font-size: .78rem; }
.form-status { min-height: 1.3em; color: var(--forest); font-weight: 600; }

@media (max-width: 920px) {
  .program-card, .program-card:nth-child(n) { grid-column: span 6; min-height: 330px; }
  .why-grid, .campus-grid, .content-grid, .tour-layout { grid-template-columns: 1fr; }
  .why-photo { position: static; }
  .why-photo img { min-height: 460px; }
  .philosophy-grid { grid-template-columns: 1fr; }
  .philosophy-card { min-height: auto; }
  .philosophy-card b { margin-bottom: 1.5rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hub-grid { grid-template-columns: 1fr 1fr; }
  .content-photo { position: static; }
}

.reveal { opacity: 1; transform: none; }
.reveal.reveal-ready { opacity: 0; transform: translateY(28px); transition: opacity .75s ease, transform .75s cubic-bezier(.2,.8,.2,1); }
.reveal.in-view { opacity: 1; transform: none; }

@keyframes crestReveal { to { opacity: 1; transform: none; } }
@keyframes heroScale { to { scale: 1; } }
@keyframes starDrift { to { background-position: 186px 190px, -150px 350px; } }
@keyframes linePulse { 0%,100% { scale: .45 1; opacity:.5; } 50% { scale:1 1; opacity:1; } }

@media (max-width: 920px) {
  .desktop-nav { display: none; }
  .menu-toggle { display: inline-grid; place-items: center; }
  .hero-inner { grid-template-columns: 1fr; gap: 2rem; padding-bottom: 7rem; }
  .hero-crest { grid-row: 1; justify-self: start; width: 150px; }
  .hero::before { background: linear-gradient(0deg, rgba(0,11,43,.96) 0%, rgba(0,11,43,.66) 70%, rgba(0,11,43,.34)); }
  .parent-dock-inner { min-height: 58px; }
  .parent-dock .parent-hub-link { display: none; }
  .quick-links { width: 100%; }
  .legacy-grid { grid-template-columns: 1fr; }
  .legacy-visual { min-height: 480px; }
}

@media (max-width: 620px) {
  .site-header { min-height: 68px; padding-inline: 1rem; }
  .brand span { font-size: .78rem; }
  .brand img { width: 42px; height: 42px; }
  .hero-inner { width: min(100% - 1.5rem, 1180px); padding-top: 6.8rem; }
  h1 { font-size: clamp(2.7rem, 13vw, 4.3rem); }
  .hero-actions .btn { flex: 1 1 150px; }
  .hero-scroll { display: none; }
  .section { padding: 4.5rem 0; }
  .wrap, .parent-dock-inner { width: min(100% - 1.5rem, 1180px); }
  .legacy-visual { min-height: 390px; }
  .legacy-main { inset: 0 5% 10% 0; width: 95%; height: 84%; }
  .legacy-detail { width: 42%; }
  .legacy-mark { width: 92px; }
  .legacy-points { grid-template-columns: 1fr; gap: .5rem; }
  .program-card, .program-card:nth-child(n) { grid-column: 1 / -1; min-height: 360px; }
  .gallery-strip { grid-template-columns: 1fr 1fr; grid-template-rows: 280px 190px 190px; }
  .gallery-strip figure:first-child { grid-column: 1 / 3; grid-row: auto; }
  .gallery-strip figure:nth-child(4) { grid-column: 1 / 3; }
  .campus-map { min-height: 420px; }
  .footer-grid, .hub-grid, .closing-grid { grid-template-columns: 1fr; }
  .mobile-actions { position: fixed; inset: auto .75rem .75rem; z-index: 85; display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; padding: .5rem; background: rgba(0,11,43,.94); border: 1px solid rgba(255,255,255,.16); border-radius: 18px; box-shadow: 0 18px 50px rgba(0,0,0,.32); backdrop-filter: blur(12px); }
  .mobile-actions .btn { min-height: 46px; padding: .65rem .7rem; }
  .site-footer { padding-bottom: 8rem; }
  .page-hero { min-height: 520px; padding-top: 8rem; }
  .feature-list, .field-grid { grid-template-columns: 1fr; }
  .event-item { grid-template-columns: 72px 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal, .reveal.reveal-ready { opacity: 1; transform: none; }
}

/* Shared family and resource pages, using the original navy-and-gold design. */
[hidden] { display: none !important; }
html { scroll-padding-top: 150px; }
.mobile-menu:not(.open) { visibility: hidden; }
.mobile-menu.open { visibility: visible; overflow-y: auto; }
.desktop-nav { gap: clamp(.7rem, 1.7vw, 1.6rem); }
.hero-copy h1 { max-width: 800px; font-size: clamp(2.6rem, 6.8vw, 6rem); }
@media (max-width: 620px) { .hero-copy h1 { font-size: clamp(2.4rem, 11.5vw, 3.8rem); } }
.hero-copy h1 span { display: block; }
.tour-layout .reason p { color: var(--muted); }
.tour-layout .reason { border-color: var(--line); }
.site-footer a { overflow-wrap: anywhere; }
.inner-page .site-header { background: var(--navy-deep); min-height: 68px; }
.footer-bottom a { display: inline; margin-left: 1rem; font-size: inherit; }
.photo-caption, .availability-note, .fine { font-size: .83rem; color: var(--muted); }
.availability-note { margin: -1.2rem 0 2rem; max-width: 680px; }
.family-hub-preview { background: #eaf0f4; }
.family-welcome { display: flex; gap: 1.3rem; align-items: center; margin-top: 1.8rem; padding-top: 1.3rem; border-top: 1px solid var(--line); font-size: .85rem; text-decoration: none; color: var(--navy); }
.family-faces { display: flex; flex-shrink: 0; padding-right: .5rem; }
.family-faces img { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; object-position: center 30%; margin-right: -8px; border: 3px solid white; }
.family-faces .portrait-3 { object-position: 68% 73%; }
.inside-page { width: min(1180px, calc(100% - 3rem)); margin: 0 auto; padding: 9rem 0 6rem; }
.inside-page > .text-link { margin-bottom: 2rem; font-size: .85rem; }
.inside-page h1 { color: var(--navy); font-size: clamp(2.5rem, 6vw, 5.4rem); margin-bottom: 1.7rem; }
.inside-page h1 em, .inside-page h2 em { color: #926a1e; font-style: normal; }
.inside-page > h2 { margin: 2.5rem 0 1rem; font-size: clamp(1.7rem,3vw,2.6rem); }
.inside-page > p, .family-intro { max-width: 850px; color: var(--muted); }
.inside-page .intro { font-size: 1.15rem; line-height: 1.8; }
.inside-page address { font-style: normal; margin-top: 2rem; }
/* Ownership biographies: stacked profiles with alternating photography. */
.family-cards { display: grid; grid-template-columns: 1fr; gap: 2rem; margin: 3rem 0; }
.family-cards article { display: grid; grid-template-columns: 260px minmax(0,1fr); gap: 2.75rem; align-items: start; padding: 2.5rem; background: white; border: 1px solid var(--line); border-radius: 24px; }
.family-cards article:nth-child(even) { grid-template-columns: minmax(0,1fr) 260px; }
.family-cards article:nth-child(even) .family-profile-media { grid-column: 2; grid-row: 1; }
.family-cards article:nth-child(even) .family-profile-copy { grid-column: 1; grid-row: 1; }
.family-profile-media { position: sticky; top: 6.5rem; }
.family-profile-copy { min-width: 0; max-width: 72ch; }
.family-cards .family-profile-copy h3 { font-size: clamp(1.5rem,2.4vw,2rem); line-height: 1.3; margin: 0 0 1.4rem; }
.family-profile-copy h3::before { content: ''; display: block; width: 3rem; height: 2px; margin-bottom: 1rem; background: var(--gold); }
.family-cards p:not(.eyebrow) { font-size: 1rem; line-height: 1.85; color: var(--muted); }
.family-profile-copy p:last-child { margin-bottom: 0; }
.family-portrait { display: block; width: 100%; height: 310px; border-radius: 16px; object-fit: cover; margin: 0; }
.family-portrait.portrait-3 { height: 260px; overflow: hidden; }
.family-portrait.portrait-3 img { width: 100%; height: 100%; object-fit: cover; object-position: center 32%; }
@media(max-width:920px) {
  .family-cards article { grid-template-columns: 210px minmax(0,1fr); gap: 2rem; padding: 2rem; }
  .family-cards article:nth-child(even) { grid-template-columns: minmax(0,1fr) 210px; }
}
@media(max-width:760px) {
  .family-cards article, .family-cards article:nth-child(even) { grid-template-columns: 1fr; gap: 1.7rem; }
  .family-profile-media { position: static; width: min(100%,320px); }
  .family-cards article:nth-child(even) .family-profile-media { grid-column: 1; grid-row: 1; }
  .family-cards article:nth-child(even) .family-profile-copy { grid-column: 1; grid-row: 2; }
}
.family-note { margin: 4rem 0; padding: 2.5rem 5%; border-block: 1px solid #d8c79e; text-align: center; }
.family-note p { font: italic clamp(1.3rem,3vw,2rem)/1.5 var(--serif); color: var(--navy); margin: 0 auto 1rem; max-width: 800px; }
.family-note cite { font-size: .8rem; font-style: normal; color: var(--muted); }
.familiar-team { max-width: 850px; margin: 0 auto; }
.familiar-team > h2 { font-size: clamp(2rem,4vw,3.4rem); }
.familiar-team > p { color: var(--muted); }
.staff-portraits { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1.5rem; margin: 2rem 0; }
.staff-portraits figure { margin: 0; background: white; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); }
.staff-portraits img { width: 100%; height: 370px; object-fit: cover; object-position: center 20%; }
.staff-portraits figcaption { padding: 1.5rem; }
.staff-portraits p { font-size: .85rem; margin-bottom: 0; }
.historical-team { margin: 3rem 0 0; }
.historical-team img { width: 100%; border-radius: 22px; }
.historical-team figcaption { font-size: .8rem; color: var(--muted); margin-top: .8rem; }
.resource-library { margin: 1.5rem 0; }
.library-top { display: flex; justify-content: space-between; align-items: end; gap: 2rem; }
.library-top h2 { font-size: clamp(1.8rem,3.4vw,3rem); max-width: 650px; }
.library-top label { flex: 0 0 280px; font-size: .8rem; font-weight: 700; color: var(--navy); }
.library-top input { width: 100%; margin-top: .6rem; padding: .9rem 1rem; border-radius: 12px; border: 1px solid #9ea8b8; color: var(--navy); background: white; }
.resource-note { font-size: .85rem; color: var(--muted); max-width: 900px; margin: 1.7rem 0; }
.resource-group, .family-reminders details { margin: .8rem 0; background: white; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.resource-group summary, .family-reminders summary { padding: 1.25rem 1.4rem; cursor: pointer; color: var(--navy); font-weight: 700; font-size: .95rem; }
.resource-group summary span { float: right; font-size: .75rem; font-weight: 500; margin-left: .8rem; }
.resource-group ul { margin: 0; padding: 0 1.4rem 1rem; list-style: none; }
.resource-group li { border-top: 1px solid var(--line); }
.resource-group a { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .9rem 0; color: var(--navy); font-size: .9rem; text-decoration: none; }
.resource-group a:hover { text-decoration: underline; text-underline-offset: 4px; }
.resource-group a span { flex-shrink: 0; }
.family-reminders p { padding: 0 1.4rem 1rem; color: var(--muted); }
.section-resources { background: #eaf0f4; }
.page-links { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; margin: 2rem 0; }
.page-links a { display: flex; align-items: center; min-height: 92px; padding: 1.4rem; background: white; border: 1px solid var(--line); border-radius: 18px; color: var(--navy); font-weight: 600; text-decoration: none; }
.page-links a:hover { border-color: var(--gold); }
.calendar-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1.2rem; margin: 2.5rem 0; }
.calendar-list article { padding: 1.8rem; background: white; border-radius: 22px; border: 1px solid var(--line); }
.calendar-list b { display: block; margin-bottom: 1rem; color: #795413; font-size: .85rem; }
.calendar-list h3 { font-size: 1.5rem; line-height: 1.3; }
.calendar-list p { color: var(--muted); font-size: .95rem; }
.campus-gallery { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1.3rem; margin: 2.5rem 0; }
.campus-gallery figure { margin: 0; border-radius: 20px; overflow: hidden; background: white; border: 1px solid var(--line); }
.campus-gallery img { width: 100%; aspect-ratio: 3/2; object-fit: contain; background: #eee; }
.campus-gallery figcaption { padding: 1rem; font-size: .85rem; color: var(--navy); }
@media(max-width:920px) {
  .family-cards { grid-template-columns: 1fr; }
  .campus-gallery { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .library-top { display: block; }
  .library-top label { display: block; margin-top: 1.5rem; max-width: 460px; }
}
@media(max-width:620px) {
  .inside-page { width: calc(100% - 2rem); padding-top: 7rem; }
  .page-links, .calendar-list, .campus-gallery { grid-template-columns: 1fr; }
  .family-cards article { padding: 1.4rem; }
  .staff-portraits { gap: .8rem; }
  .staff-portraits img { height: 240px; }
  .staff-portraits figcaption { padding: 1rem; }
  .staff-portraits h3 { font-size: 1.2rem; }
  .resource-group summary { font-size: .85rem; padding: 1rem; }
  .resource-group summary span { float: none; display: block; margin: .4rem 0 0 1rem; }
  .resource-group ul { padding-inline: 1rem; }
  .resource-group a { font-size: .85rem; }
  .mobile-menu { gap: .25rem; }
  .mobile-menu a { font-size: 1.5rem; padding: .5rem 0; }
}
@media print {
  .site-header, .mobile-menu, .mobile-actions, .site-footer, .skip-link, .print-calendar { display:none !important; }
  .inside-page { width:100%; padding:0; }
  .calendar-list article { break-inside:avoid; }
  body { background:white; }
}

.team-page>.intro{max-width:850px}.team-page .familiar-team{max-width:900px;margin:4rem 0}.team-page .staff-portraits{max-width:760px}.team-approach,.family-support{margin-top:5rem}.team-approach>h2,.family-support>h2,.team-visit h2{font-size:clamp(1.9rem,3.5vw,3.1rem);line-height:1.2}.team-values{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.5rem;margin:2rem 0}.team-values article{border-top:2px solid #c18f24;padding-top:1.4rem}.team-values h3,.family-cards h3{font-size:1.4rem;line-height:1.3}.team-values p{color:var(--muted);font-size:.95rem}.team-visit{padding:2.5rem;background:var(--navy);color:white;border-radius:24px;margin-top:3rem}.team-visit p{max-width:700px;color:#e0e5ef}.team-visit .btn{margin-top:.7rem}@media(max-width:760px){.team-values{grid-template-columns:1fr}.team-page .familiar-team{margin:3rem 0}.team-approach,.family-support{margin-top:3.5rem}.team-visit{padding:1.7rem}}

/* Classroom teachers and qualifications */
.teacher-section{margin-top:5rem}.teacher-section>h2{font-size:clamp(1.9rem,3.5vw,3.1rem);line-height:1.2}.teacher-intro{max-width:850px;color:var(--muted)}
.teacher-qualifications{display:grid;grid-template-columns:.85fr 1.15fr;gap:2rem 3rem;margin:2.5rem 0;padding:2.5rem;background:#fff;border:1px solid var(--line);border-radius:24px}.teacher-qualifications h3{font-size:2rem;line-height:1.2}.teacher-qualifications p{color:var(--muted)}.qualification-list{list-style:none;margin:0;padding:0}.qualification-list li{padding:1rem 0 1rem 1.1rem;border-left:3px solid var(--gold);border-bottom:1px solid var(--line)}.qualification-list li:first-child{padding-top:0}.qualification-list li:last-child{border-bottom:0}.qualification-list strong,.qualification-list span{display:block}.qualification-list strong{font-size:.98rem;color:var(--navy)}.qualification-list span{font-size:.9rem;color:var(--muted);margin-top:.3rem}.teacher-qualifications .qualification-note{grid-column:1/-1;font-size:.85rem;margin:0;padding-top:1rem;border-top:1px solid var(--line)}
.teacher-support-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:2rem}.teacher-support-grid article{border-top:2px solid var(--gold);padding-top:1.5rem}.teacher-support-grid h3{font-size:1.7rem;line-height:1.25}.teacher-support-grid p:not(.eyebrow){color:var(--muted)}.family-cards h3{overflow-wrap:break-word}
@media(max-width:760px){.teacher-section{margin-top:3.5rem}.teacher-qualifications{grid-template-columns:1fr;padding:1.5rem;gap:1.5rem}.teacher-support-grid{grid-template-columns:1fr}.teacher-qualifications h3{font-size:1.7rem}}

/* Concise team overview; family section styles remain unchanged. */
.team-page-simple>h1{font-size:clamp(2.5rem,5vw,4.3rem);line-height:1.12;margin-bottom:1rem}.team-page-simple>.intro{margin-bottom:1.5rem}.team-page-links{display:flex;flex-wrap:wrap;gap:.7rem 1.4rem;padding-bottom:1.5rem;border-bottom:1px solid var(--line)}.team-page-links a{font-size:.88rem;font-weight:600;text-decoration:underline;text-underline-offset:4px}.team-page-simple .familiar-team{margin:2.8rem 0;max-width:900px}.team-page-simple .familiar-team>h2{font-size:clamp(1.9rem,3vw,2.6rem);line-height:1.2}.team-page-simple .staff-portraits{margin:1.5rem 0}.team-page-simple .staff-portraits img{height:auto;aspect-ratio:4/5}.team-page-simple .staff-portraits figcaption{padding:1.1rem 1.4rem}.teacher-section-simple{margin-top:3rem}.teacher-section-simple>h2{font-size:clamp(1.9rem,3vw,2.6rem);margin-bottom:1.5rem}.teacher-summary{display:grid;grid-template-columns:1.25fr 1fr;gap:2.5rem;padding:2rem;background:white;border:1px solid var(--line);border-radius:24px}.teacher-summary h3{font-size:1.45rem;line-height:1.3}.teacher-checklist ul{list-style:none;margin:1rem 0;padding:0}.teacher-checklist li{position:relative;padding:.7rem 0 .7rem 1.5rem;font-size:.95rem;line-height:1.6;border-bottom:1px solid var(--line)}.teacher-checklist li::before{content:'✓';position:absolute;left:0;color:#926a1e;font-weight:700}.teacher-checklist li:last-child{border-bottom:0}.teacher-role-note{font-size:.8rem;color:var(--muted);margin-bottom:0}.teacher-everyday{border-left:1px solid var(--line);padding-left:2.5rem}.teacher-everyday article+article{margin-top:2rem}.teacher-everyday p{font-size:.95rem;color:var(--muted)}
@media(max-width:760px){.teacher-summary{grid-template-columns:1fr;padding:1.5rem;gap:1.5rem}.teacher-everyday{border-left:0;border-top:1px solid var(--line);padding:1.5rem 0 0}.teacher-everyday article+article{margin-top:1.5rem}.team-page-simple .staff-portraits img{height:auto}.team-page-simple .staff-portraits figcaption{padding:1rem}.team-page-links{gap:.6rem 1rem}}

/* Balanced campus imagery with an uncropped splash-pad photograph. */
.campus-photo-section .gallery-strip { grid-template-columns: repeat(2,minmax(0,1fr)); grid-template-rows: auto auto; }
.campus-photo-section .gallery-strip figure { position: relative; grid-column: auto; grid-row: auto; aspect-ratio: 3/2; }
.campus-photo-section .gallery-strip .splash-pad-feature img { object-fit: contain; background: white; }
.campus-photo-section .gallery-strip .splash-pad-feature:hover img { transform: none; }
.campus-photo-section .splash-pad-feature figcaption { position: absolute; bottom: .8rem; left: .8rem; padding: .4rem .75rem; background: rgba(255,255,255,.94); border-radius: 8px; color: var(--navy); font-size: .8rem; font-weight: 600; }
@media(max-width:620px) {
 .campus-photo-section .gallery-strip { grid-template-columns: 1fr; grid-template-rows: auto; }
}
