/* Elm Green contemporary prospectus — shared identity and homepage. */
:root {
    --egps-wine: #722536;
    --egps-ink: #252b28;
    --egps-paper: #f6f7f3;
    --egps-sage: #e7ece4;
    --egps-bodyfont: "Manrope", sans-serif;
    --egps-displayfont: "Bodoni Moda", Georgia, serif;
    --egps-red: var(--egps-wine);
    --egps-red-deep: #4e1724;
    --egps-red-soft: #f2e8ea;
    --egps-charcoal: var(--egps-ink);
    --egps-charcoal-soft: #535e56;
    --egps-charcoal-muted: #535e56;
    --egps-grey: var(--egps-sage);
    --egps-white: #fff;
    --egps-white-soft: var(--egps-paper);
    --egps-line: #dce0d9;
    --egps-line-strong: #c5cdc2;
    --egps-radius: 0;
    --egps-radius-md: 0;
    --egps-radius-sm: 0;
    --egps-header-offset: 6.5rem;
}
body { font-family: var(--egps-bodyfont); color: var(--egps-ink); background: var(--egps-paper); font-size: 16px; line-height: 1.8; }
h1, h2, h3, h4, h5, h6 { font-family: var(--egps-displayfont); font-weight: 400; color: var(--egps-wine); }
h1, h2, h3 { text-wrap: balance; }
button, input, select, textarea { font-family: var(--egps-bodyfont); }
::selection { background: #ead4d9; color: #4e1724; }
a, button { -webkit-tap-highlight-color: #e7ece4; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; box-shadow: none; }
.button { border-radius: 0; box-shadow: none; font-family: var(--egps-bodyfont); font-size: .84rem; padding: .85rem 1.2rem; }
.button:hover, .button:focus { transform: none; box-shadow: none; }
.button--primary { background: var(--egps-wine); }
.skip-link:focus { border-radius: 0; }

/* One compact header, with the visit action always visible on desktop. */
.site-header { position: sticky; top: 0; background: #fff; border-bottom: 1px solid var(--egps-line); box-shadow: none; z-index: 50; }
.site-header--scrolled { box-shadow: 0 2px 6px #252b2808; }
.site-header .site-header__main { width: calc(100% - 80px); max-width: 1520px; min-height: 86px; display: flex; align-items: center; gap: 28px; padding: 12px 0; }
.branding { flex: 0 0 auto; }
.branding__link { gap: 12px; }
.branding__crest { width: 40px; height: auto; }
.branding__text { min-width: 0; }
.branding__school-name { font: 500 26px/1.1 var(--egps-displayfont); color: var(--egps-wine); white-space: nowrap; }
.branding__tagline { font: 500 10px/1.5 var(--egps-bodyfont); letter-spacing: .12em; text-transform: uppercase; margin: 5px 0 0; color: var(--egps-wine); }
.primary-navigation { margin-left: auto; }
.primary-menu { gap: 4px; flex-wrap: nowrap; align-items: center; }
.primary-menu > li { padding: 0; }
.primary-menu > li > a { padding: 10px 7px; border-radius: 0; font: 600 12px/1.4 var(--egps-bodyfont); white-space: nowrap; color: var(--egps-ink); }
.primary-menu > li > a:hover, .primary-menu > li > a:focus, .primary-menu > .current-menu-item > a, .primary-menu > .current-menu-ancestor > a { color: var(--egps-wine); background: transparent; text-decoration: underline; text-underline-offset: 7px; text-decoration-thickness: 1px; }
.primary-menu .sub-menu { top: 100%; border-radius: 0; padding: 12px; background: #fff; border: 1px solid var(--egps-line); box-shadow: 0 3px 8px #252b2810; }
.primary-menu .sub-menu a { font: 500 13px/1.5 var(--egps-bodyfont); border-radius: 0; padding: 9px 12px; }
.header-visit { display: inline-flex; align-items: center; justify-content: center; gap: 20px; min-height: 44px; padding: 10px 18px; flex: 0 0 auto; background: var(--egps-wine); color: #fff; font-size: 12px; font-weight: 600; }
.header-visit:hover, .header-visit:focus { color: #fff; background: #4e1724; }
.header-visit span { font-size: 20px; font-weight: 400; }
.menu-toggle, .navigation-contact { display: none; }

/* Masthead and uninterrupted school photograph. */
.prospectus-container { width: min(calc(100% - 112px), 1328px); margin-inline: auto; }
.school-masthead { display: flex; justify-content: space-between; align-items: center; gap: 30px; padding: 24px 56px 30px; max-width: 1640px; margin-inline: auto; }
.school-masthead h1 { margin: 0; color: var(--egps-wine); font-weight: 500; letter-spacing: -.07em; line-height: 1.02; text-wrap: nowrap; }
.school-masthead h1 > span { display: block; font-size: clamp(100px, 12.2vw, 192px); }
.school-masthead h1 small { display: block; margin: 6px 0 0 7px; font: 600 clamp(12px, 1.2vw, 18px)/1.3 var(--egps-bodyfont); text-transform: uppercase; letter-spacing: .32em; }
.school-masthead__intro { padding-top: 15px; flex: 0 0 auto; }
.school-masthead__intro p { font: 400 clamp(23px, 2.25vw, 36px)/1.22 var(--egps-displayfont); color: var(--egps-ink); margin-bottom: 21px; }
.school-masthead__intro em { font-weight: 400; }
.school-masthead__intro > span { font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #535e56; }
.prospectus-hero__photo { margin: 0; width: 100%; overflow: hidden; background: #e0e7e7; }
.prospectus-hero__photo img { display: block; width: 100%; height: clamp(350px, 49vh, 560px); object-fit: cover; object-position: 50% 24%; border-radius: 0; }
.prospectus-hero__foot { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 15px 56px; background: var(--egps-wine); color: #fff; }
.prospectus-hero__foot p { margin: 0; font: 400 22px/1.4 var(--egps-displayfont); }
.prospectus-hero__foot a { color: #fff; display: inline-flex; align-items: center; gap: 34px; font-size: 13px; white-space: nowrap; text-decoration: underline; text-underline-offset: 6px; }
.prospectus-hero__foot a span { font-size: 23px; }
.school-masthead { animation: masthead-enter .6s ease-out both; }
@keyframes masthead-enter { from { opacity: .35; } to { opacity: 1; } }

/* A short welcome, with the original portrait kept small. */
.school-intro { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(40px, 7vw, 110px); padding-block: 88px 92px; }
.prospectus-home h2 { font-size: clamp(42px, 4.25vw, 66px); line-height: 1.08; letter-spacing: -.04em; }
.prospectus-home h2 em { font-weight: 400; }
.school-intro__body > p { font-size: 16px; line-height: 1.9; margin: 0 0 20px; max-width: 43ch; }
.prospectus-link { display: inline-flex; align-items: center; justify-content: space-between; gap: 44px; padding-bottom: 8px; border-bottom: 1px solid currentColor; color: var(--egps-wine); font-size: 13px; font-weight: 600; line-height: 1.5; transition: color .18s ease; }
.prospectus-link span { font-size: 22px; font-weight: 400; }
.prospectus-link:hover { color: #a03e53; }
.head-note { display: flex; align-items: center; gap: 20px; padding-top: 26px; margin-top: 27px; border-top: 1px solid var(--egps-line); max-width: 440px; }
.head-note img { width: 64px; height: auto; border-radius: 0; }
.head-note p { font-size: 11px; font-weight: 600; color: #535e56; margin: 0 0 5px; }
.head-note a { font-size: 13px; text-decoration: underline; text-underline-offset: 4px; }

/* Wide photograph / reading column. */
.learning-spread { display: grid; grid-template-columns: 1.22fr 1fr; background: var(--egps-sage); align-items: stretch; }
.learning-spread__photo { margin: 0; display: flex; flex-direction: column; min-width: 0; }
.learning-spread__photo img { display: block; width: 100%; aspect-ratio: 1.35; height: auto; object-fit: cover; object-position: center 34%; border-radius: 0; flex: 1; min-height: 0; }
.learning-spread__photo figcaption { font-size: 11px; padding: 13px 30px; background: #dbe2d7; color: #3d4c41; }
.learning-spread__copy { padding: clamp(42px, 6vw, 88px) clamp(36px, 6vw, 94px); align-self: center; }
.prospectus-section-name { font-size: 12px; font-weight: 600; margin-bottom: 28px; color: var(--egps-wine); }
.learning-spread__copy > p:not(.prospectus-section-name) { max-width: 36ch; margin: 28px 0; font-size: 15px; }
.prospectus-secondary-link { display: block; font-size: 12px; margin-top: 20px; text-decoration: underline; text-underline-offset: 4px; }

/* A photo essay, then a concise set of useful family links. */
.life-spread { padding-top: 86px; padding-bottom: 66px; }
.life-spread__heading { display: flex; justify-content: space-between; align-items: end; gap: 60px; margin-bottom: 43px; }
.life-spread__heading h2 { margin: 0; }
.life-spread__heading p { margin: 0 0 6px; max-width: 37ch; font-size: 15px; }
.life-spread__photos { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; }
.life-story { min-width: 0; }
.life-story figure { margin: 0; overflow: hidden; }
.life-story img { width: 100%; height: auto; aspect-ratio: 1.5; object-fit: cover; object-position: center; border-radius: 0; }
.life-story__caption { padding-top: 22px; }
.life-story__caption h3 { font-size: clamp(27px, 2.8vw, 42px); line-height: 1.13; margin-bottom: 12px; letter-spacing: -.025em; }
.life-story__caption a { display: flex; justify-content: space-between; gap: 15px; padding-bottom: 13px; border-bottom: 1px solid var(--egps-line-strong); font-size: 12px; font-weight: 600; }
.life-story__caption a:hover { border-color: var(--egps-wine); }
.life-story__caption a span { font-size: 20px; line-height: 1; }
.family-links { display: flex; align-items: center; justify-content: space-between; gap: 28px; margin-top: 64px; padding-block: 23px; border-block: 1px solid var(--egps-line-strong); }
.family-links p { margin: 0; font: 400 23px/1.3 var(--egps-displayfont); }
.family-links > div { display: flex; align-items: center; gap: 40px; }
.family-links a { font-size: 12px; font-weight: 600; }
.family-links a span { margin-left: 20px; font-size: 17px; }

/* A warm invitation to see the school, without overlaying children's faces. */
.visit-spread { display: grid; grid-template-columns: .9fr 1.1fr; background: var(--egps-wine); color: #fff; }
.visit-spread__copy { padding: 58px clamp(35px, 6vw, 96px); align-self: center; }
.visit-spread__copy h2, .visit-spread__copy .prospectus-section-name, .visit-spread__copy a { color: #fff; }
.visit-spread__copy > p:not(.prospectus-section-name) { max-width: 37ch; font-size: 14px; margin: 25px 0; }
.visit-spread__photo { margin: 0; min-width: 0; display: flex; align-items: center; background: #f4e8d3; }
.visit-spread__photo img { width: 100%; height: auto; object-fit: contain; border-radius: 0; }

/* Shared closing information. */
.site-footer { background: var(--egps-ink); color: #dce3dd; margin-top: 0; border-top: 0; }
.site-footer__main { width: min(calc(100% - 112px), 1328px); display: grid; grid-template-columns: 1.55fr 1fr .9fr 1fr; gap: 56px; padding-block: 58px 44px; }
.site-footer__branding { gap: 15px; align-items: center; }
.site-footer__crest { width: 35px; height: auto; }
.site-footer__school-name { font: 400 24px/1.15 var(--egps-displayfont); max-width: 220px; color: #fff; }
.site-footer__summary { font-size: 12px; color: #c5d0c8; margin: 22px 0 17px; max-width: 34ch; }
.site-footer__contact-list p { font-size: 12px; line-height: 1.8; color: #c5d0c8; margin-bottom: 7px; max-width: 34ch; }
.site-footer h2 { font: 600 12px/1.5 var(--egps-bodyfont); color: #fff; text-transform: none; letter-spacing: 0; margin-bottom: 20px; }
.site-footer ul { padding: 0; margin: 0; list-style: none; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: #dce3dd; font-size: 12px; line-height: 1.5; }
.site-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.site-footer__bottom { padding: 0; border-top: 1px solid #ffffff26; background: transparent; }
.site-footer__bottom-row { width: min(calc(100% - 112px), 1328px); padding-block: 20px; color: #b8c6bd; font-size: 10px; }
.site-footer__bottom-row p, .site-footer__bottom-row a { font-size: 10px; color: #b8c6bd; }

@media (min-width: 1201px) {
    .primary-navigation { display: block !important; position: static; width: auto; padding: 0; background: transparent; border: 0; box-shadow: none; }
    .primary-menu { display: flex; }
    .primary-menu .sub-menu { display: block; }
    .primary-menu .sub-menu li { position: relative; }
    .primary-menu .sub-menu .sub-menu { top: 0; }
    .primary-menu > li:hover > .sub-menu, .primary-menu > li:focus-within > .sub-menu { visibility: visible; opacity: 1; pointer-events: auto; }
}
@media (max-width: 1200px) {
    .site-header .site-header__main { width: calc(100% - 48px); min-height: 78px; gap: 24px; }
    .menu-toggle { display: inline-flex; margin-left: auto; align-items: center; justify-content: center; gap: 13px; border: 0; border-radius: 0; padding: 12px 0 12px 12px; color: var(--egps-wine); background: transparent; font: 600 13px/1.4 var(--egps-bodyfont); box-shadow: none; }
    .menu-toggle__icon { display: block; width: 22px; height: 9px; border-block: 1px solid currentColor; }
    .menu-toggle[aria-expanded="true"] .menu-toggle__icon { height: 1px; border-bottom: 0; }
    .header-visit { order: 1; }
    .menu-toggle { order: 2; }
    .primary-navigation { display: none; position: absolute; top: 100%; left: 0; right: 0; width: 100%; margin: 0; padding: 24px; max-height: calc(100dvh - 78px); overflow-y: auto; background: var(--egps-paper); border-top: 1px solid var(--egps-line); border-bottom: 1px solid var(--egps-line-strong); box-shadow: 0 3px 8px #252b2810; }
    .primary-navigation.is-open { display: block; padding: 24px; max-height: calc(100dvh - 100px); }
    .primary-navigation[hidden] { display: none; }
    .primary-menu { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 20px 30px; }
    .primary-menu > li { min-width: 0; }
    .primary-menu > li > a { display: block; font: 400 25px/1.2 var(--egps-displayfont); padding: 10px 0; white-space: normal; }
    .primary-menu .sub-menu { position: static; display: block; visibility: visible; opacity: 1; pointer-events: auto; min-width: 0; transform: none; border: 0; padding: 0; margin: 0; box-shadow: none; background: transparent; }
    .primary-menu .sub-menu a { padding: 7px 0; font-size: 12px; white-space: normal; overflow-wrap: anywhere; }
    .navigation-contact { display: flex; justify-content: space-between; border-top: 1px solid var(--egps-line-strong); padding-top: 20px; margin-top: 28px; font-size: 13px; }
    .school-masthead { padding: 28px 36px 32px; }
    .school-masthead h1 > span { font-size: 12.5vw; }
    .school-masthead__intro p { font-size: 2.5vw; }
    .school-masthead__intro > span { font-size: 10px; letter-spacing: .04em; }
    .prospectus-hero__foot { padding-inline: 36px; }
    .prospectus-container { width: calc(100% - 72px); }
    .school-intro { gap: 48px; }
    .school-intro h2 { font-size: 4.5vw; }
    .learning-spread__copy { padding: 45px 36px; }
    .learning-spread__copy h2 { font-size: 5vw; }
    .site-footer__main { width: calc(100% - 72px); gap: 30px; }
    .site-footer__bottom-row { width: calc(100% - 72px); }
}
@media (min-width: 761px) and (max-width: 1120px) {
    .site-footer__main { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .site-footer__brand-block { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
    :root { --egps-header-offset: 5.75rem; }
    .prospectus-container { width: calc(100% - 40px); }
    .site-header .site-header__main { width: calc(100% - 40px); min-height: 74px; padding-block: 10px; }
    .branding__crest { width: 32px; }
    .branding__link { gap: 9px; }
    .branding__school-name { font-size: 23px; }
    .branding__tagline { font-size: 8px; letter-spacing: .1em; margin-top: 4px; }
    .header-visit { display: none; }
    .primary-navigation { padding: 20px; max-height: calc(100dvh - 74px); }
    .primary-navigation.is-open { padding: 20px; max-height: calc(100dvh - 75px); }
    .primary-menu { gap: 16px 25px; }
    .primary-menu > li > a { font-size: 23px; }
    .school-masthead { padding: 25px 20px 26px; display: block; }
    .school-masthead h1 { line-height: 1.08; }
    .school-masthead h1 > span { font-size: clamp(58px, 18.4vw, 132px); }
    .school-masthead h1 small { font-size: 10px; letter-spacing: .3em; margin: 1px 0 0 4px; }
    .school-masthead__intro { display: flex; justify-content: space-between; align-items: end; gap: 16px; padding-top: 22px; }
    .school-masthead__intro p { font-size: 23px; line-height: 1.18; margin: 0; }
    .school-masthead__intro > span { font-size: 9px; line-height: 1.7; max-width: 90px; text-align: right; }
    .prospectus-hero__photo img { height: auto; aspect-ratio: auto; object-fit: contain; }
    .prospectus-hero__foot { padding: 18px 20px; gap: 18px; align-items: center; }
    .prospectus-hero__foot p { font-size: 17px; line-height: 1.35; max-width: 20ch; }
    .prospectus-hero__foot a { font-size: 11px; gap: 12px; }
    .prospectus-hero__foot a span { font-size: 20px; }
    .school-intro { display: block; padding-block: 48px; }
    .school-intro h2, .prospectus-home h2 { font-size: clamp(36px, 7.4vw, 54px); line-height: 1.13; letter-spacing: -.035em; }
    .school-intro__title { margin-bottom: 26px; }
    .school-intro__body > p { max-width: 100%; font-size: 14px; }
    .head-note { margin-top: 24px; padding-top: 22px; }
    .head-note img { width: 52px; }
    .learning-spread { grid-template-columns: 1fr; }
    .learning-spread__photo img { aspect-ratio: auto; height: auto; flex: initial; }
    .learning-spread__photo figcaption { padding: 11px 20px; font-size: 10px; }
    .learning-spread__copy { padding: 38px 24px 44px; }
    .learning-spread__copy h2 br { display: none; }
    .learning-spread__copy h2 em::before { content: ' '; }
    .prospectus-section-name { margin-bottom: 17px; font-size: 11px; }
    .learning-spread__copy > p:not(.prospectus-section-name) { margin: 21px 0; max-width: 48ch; font-size: 14px; }
    .life-spread { padding-block: 47px 36px; }
    .life-spread__heading { display: block; margin-bottom: 29px; }
    .life-spread__heading p { font-size: 14px; max-width: 48ch; margin-top: 22px; }
    .life-spread__photos { grid-template-columns: 1fr; gap: 32px; }
    .life-story__caption { padding-top: 18px; }
    .life-story__caption h3 { font-size: 30px; margin-bottom: 13px; }
    .family-links { display: block; margin-top: 36px; padding: 23px 0 10px; }
    .family-links p { font-size: 23px; margin-bottom: 17px; }
    .family-links > div { display: block; }
    .family-links a { display: flex; justify-content: space-between; padding: 11px 0; }
    .visit-spread { grid-template-columns: 1fr; }
    .visit-spread__copy { padding: 40px 24px 42px; }
    .visit-spread__copy > p:not(.prospectus-section-name) { max-width: 45ch; font-size: 14px; }
    .visit-spread__photo img { object-fit: contain; }
    .site-footer__main { width: calc(100% - 40px); grid-template-columns: 1fr 1fr; gap: 34px 25px; padding-block: 38px; }
    .site-footer__brand-block { grid-column: 1 / -1; }
    .site-footer__school-name { font-size: 25px; max-width: 240px; }
    .site-footer__summary { max-width: none; margin-top: 19px; }
    .site-footer__contact-list p { max-width: 40ch; }
    .site-footer h2 { font-size: 11px; margin-bottom: 16px; }
    .site-footer a, .site-footer__contact-list p { font-size: 11px; }
    .site-footer__bottom-row { width: calc(100% - 40px); display: flex; flex-wrap: wrap; gap: 10px 20px; justify-content: flex-start; padding-block: 20px; }
    .site-footer__bottom-row p { flex: 0 0 100%; margin: 0; }
}
@media (prefers-reduced-motion: no-preference) {
    [data-reveal].is-visible { animation: photo-reveal .45s ease-out; }
    @keyframes photo-reveal { from { opacity: .55; } to { opacity: 1; } }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
}
