:root {
    --header: #0f3d3a;
    --header-text: #f7f3ea;
    --accent: #c4a35a;
    --page: #f6f3ee;
    --text: #1c2834;
    --heading: #0f3d3a;
    --link: #0f6e68;
    --footer: #0f3d3a;
    --footer-text: #f7f3ea;
    --display: "Libre Baskerville", Georgia, serif;
    --body: "Source Sans 3", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.school-site {
    margin: 0;
    background: var(--page);
    color: var(--text);
    font-family: var(--body);
    font-size: 18px;
    line-height: 1.65;
}
img { max-width: 100%; }
a { color: var(--link); }
.wrap { width: min(1080px, calc(100% - 40px)); margin: 0 auto; }

.staff-strip {
    background: #14222b;
    color: #d7e0e6;
    font-size: 13px;
    letter-spacing: .02em;
}
.staff-strip .wrap { display: flex; gap: 16px; align-items: center; min-height: 36px; }
.staff-strip a { color: #f3e2b3; text-decoration: none; }
.preview-note {
    background: #fff6df;
    color: #6b4e12;
    text-align: center;
    padding: 10px 16px;
    font-size: 14px;
}

.site-header {
    background: var(--header);
    color: var(--header-text);
    border-bottom: 3px solid var(--accent);
}
.site-header.is-sticky { position: sticky; top: 0; z-index: 30; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; min-height: 64px; }
.header-centered .header-inner { flex-direction: column; padding: 8px 0 6px; text-align: center; }
.header-slim .header-inner { min-height: 56px; }
.brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; min-width: 0; }
.header-centered .brand { flex-direction: column; }
.logo {
    display: block; object-fit: contain; flex: 0 0 auto;
}
.logo-on-white { background: #fff; padding: 4px; }
.logo-clear { background: transparent; padding: 0; }
.logo-circle { border-radius: 50%; }
.logo-rounded { border-radius: 14px; }
.logo-square { border-radius: 4px; }
.footer-logo.logo { max-height: none; }
.monogram {
    width: 40px; height: 40px; object-fit: contain; background: rgba(255,255,255,.08);
    border-radius: 50%; border: 1px solid rgba(255,255,255,.25); flex: 0 0 40px;
    display: grid; place-items: center; font-family: var(--display); font-size: 14px; letter-spacing: .04em;
}
.brand-text { min-width: 0; max-width: min(42ch, 48vw); }
.brand-kicker { display: block; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.brand-name {
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    font-family: var(--display); font-size: clamp(14px, 1.5vw, 18px); line-height: 1.25;
}
.name-modern { font-family: var(--body); font-weight: 700; letter-spacing: -.02em; }
.name-uppercase { text-transform: uppercase; letter-spacing: .1em; font-size: clamp(12px, 1.35vw, 16px); }
.name-script { font-family: "Great Vibes", Georgia, serif; font-weight: 400; font-size: clamp(18px, 2.1vw, 24px); line-height: 1.1; }
.nav-toggle {
    display: none; background: transparent; color: inherit; border: 1px solid rgba(255,255,255,.35);
    border-radius: 8px; padding: 6px 10px; font: inherit; cursor: pointer;
}
.site-nav { display: flex; flex-wrap: nowrap; gap: 4px 14px; align-items: center; justify-content: flex-end; }
.header-centered .site-nav { justify-content: center; padding-bottom: 8px; flex-wrap: wrap; }
.site-nav a, .site-nav .nav-parent {
    color: inherit; text-decoration: none; font-size: 14px; font-weight: 600;
    background: none; border: 0; font-family: inherit; cursor: pointer; padding: 6px 0;
}
.site-nav a:hover, .site-nav .nav-parent:hover { color: var(--accent); }
.nav-item { position: relative; }
.nav-sub {
    display: none; position: absolute; top: 100%; right: 0; min-width: 200px; z-index: 40;
    background: var(--header); border: 1px solid rgba(255,255,255,.18); border-radius: 10px;
    padding: 8px 0; box-shadow: 0 12px 28px rgba(8, 16, 20, .28);
}
.nav-sub a { display: block; padding: 8px 14px; white-space: nowrap; }
.nav-item.has-sub:hover .nav-sub, .nav-item.has-sub.is-open .nav-sub { display: block; }
.pill {
    border: 1px solid var(--accent); color: var(--header) !important; background: var(--accent);
    border-radius: 999px; padding: 4px 12px;
}

.block { padding: 72px 0; }
.block:nth-child(even) { background: rgba(15, 61, 58, .045); }
.eyebrow { margin: 0 0 8px; color: var(--accent); letter-spacing: .16em; text-transform: uppercase; font-size: 12px; font-weight: 700; }
.block h2 { font-family: var(--display); color: var(--heading); font-size: clamp(30px, 4vw, 46px); line-height: 1.15; margin: 0 0 12px; }
.sub { font-size: 20px; margin: 0 0 16px; }
.copy p { margin: 0 0 12px; }
.align-center { text-align: center; }
.align-right { text-align: right; }
.leader { margin: 18px 0 0; font-family: var(--display); }
.leader span { display: block; font-family: var(--body); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }

.type-hero { background: var(--header); color: var(--header-text); padding: 0 0 48px; }
.type-hero h2, .type-hero .sub, .type-hero .copy { color: inherit; }
.type-hero .hero-copy { padding-top: 36px; }
.type-hero .slider, .type-hero .cover-photo { border-radius: 0; }
.hero-stage {
    --hero-h: min(88vh, 920px);
    position: relative;
    height: var(--hero-h);
    min-height: var(--hero-h);
    overflow: hidden;
    background: var(--header);
}
.hero-frame { position: relative; margin: 0; overflow: hidden; background: var(--header); height: 100%; }
.hero-frame img, .hero-stage img {
    display: block; border-radius: 0;
}
.hero-frame.fit-width img, .hero-stage .fit-width > img {
    width: 100%; height: var(--hero-h, min(88vh, 920px));
    object-fit: cover; object-position: center;
}
.hero-frame.fit-height, .hero-stage .fit-height {
    display: flex; align-items: center; justify-content: center;
    height: var(--hero-h, min(88vh, 920px));
}
.hero-frame.fit-height img, .hero-stage .fit-height > img {
    width: auto; max-width: 100%; height: 100%;
    object-fit: contain; object-position: center;
}
.hero-overlay {
    position: absolute; left: 0; right: 0; bottom: 0; margin: 0;
    padding: 72px 7vw 28px;
    background: linear-gradient(180deg, rgba(8, 16, 20, 0), rgba(8, 16, 20, .78));
    color: #f7f3ea;
}
.hero-overlay strong {
    display: block; max-width: 16em;
    font-family: var(--display); font-weight: 400;
    font-size: clamp(28px, 4vw, 52px); line-height: 1.12;
}
.hero-stack .hero-frame { height: var(--hero-h, min(88vh, 920px)); }
.hero-stack .hero-frame + .hero-frame { margin-top: 0; }
.hero-fallback { min-height: min(78vh, 720px); display: flex; align-items: flex-end; padding: 56px 0 40px; }
.hero-fallback .eyebrow { color: var(--accent); }
.hero-fallback h2 { font-family: var(--display); font-size: clamp(34px, 5vw, 60px); line-height: 1.08; margin: 0 0 12px; }
.hero-marquee .hero-frame { width: min(78vw, 920px); height: min(72vh, 640px); flex: 0 0 auto; }
.hero-marquee .hero-frame img { height: 100%; }
.hero-split { align-items: stretch; min-height: min(88vh, 920px); padding: 24px 0 8px; }
.hero-split .media { min-width: 0; }
.hero-split .hero-stage, .hero-split .hero-frame, .hero-split .hero-frame.fit-height {
    height: min(82vh, 840px); --hero-h: min(82vh, 840px);
}
.landing-preview { border: 1px solid #d5dee6; border-radius: 16px; overflow: hidden; margin: 12px 0 18px; background: #f6f3ee; }
.landing-preview .block { margin: 0; }
.landing-preview .hero-stage, .landing-preview .hero-frame, .landing-preview .hero-stack .hero-frame {
    --hero-h: min(52vh, 420px); height: min(52vh, 420px); min-height: 280px;
}

.split { display: flex; gap: 40px; align-items: center; }
.split.place-left { flex-direction: row; }
.split.place-right { flex-direction: row-reverse; }
.split.place-top, .split.place-center { flex-direction: column; align-items: stretch; }
.split.place-bottom { flex-direction: column-reverse; align-items: stretch; }
.split.place-background { position: relative; min-height: 360px; overflow: hidden; border-radius: 18px; }
.split.place-background .media { position: absolute; inset: 0; }
.split.place-background .media img, .split.place-background .hero-frame { width: 100%; height: 100%; object-fit: cover; }
.split.place-background .copy {
    position: relative; z-index: 1; padding: 48px 32px;
    background: linear-gradient(90deg, rgba(8,16,20,.72), rgba(8,16,20,.28));
    color: #f7f3ea;
}
.split .copy, .split .media { flex: 1; min-width: 0; }
.media img, .slide img, .card img { width: 100%; object-fit: cover; border-radius: 16px; }
.media .fit-height img { object-fit: contain; background: rgba(15, 20, 24, .06); }
.media figcaption, .slide figcaption { font-size: 14px; margin-top: 8px; opacity: .8; }

.slider { position: relative; }
.slide { display: none; margin: 0; }
.slide.is-active { display: block; }
.slider button, .spotlight > .prev, .spotlight > .next, .stack-show > .prev, .stack-show > .next {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 42px; height: 42px; border: 0; border-radius: 50%; z-index: 4;
    background: rgba(15, 20, 24, .55); color: white; font-size: 24px; cursor: pointer;
}
.slider .prev, .spotlight > .prev, .stack-show > .prev { left: 12px; }
.slider .next, .spotlight > .next, .stack-show > .next { right: 12px; }
.slider.single button { display: none; }

.slider.fade-mode { }
.slider.fade-mode .slide {
    display: block; position: absolute; inset: 0; opacity: 0;
    transition: opacity .85s ease; margin: 0;
}
.slider.fade-mode .slide.is-active { opacity: 1; position: relative; z-index: 1; }
.slider.kenburns-mode .slide.is-active img {
    animation: school-kenburns 12s ease-out forwards;
    transform-origin: center;
}
@keyframes school-kenburns { from { transform: scale(1); } to { transform: scale(1.12); } }

.marquee { overflow: hidden; }
.marquee-track { display: flex; gap: 16px; width: max-content; animation: school-marquee 28s linear infinite; }
.marquee img { width: 280px; height: 180px; object-fit: cover; border-radius: 14px; }
@keyframes school-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.peek-carousel {
    display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch; padding: 8px 4vw 16px;
}
.peek-carousel .peek-card, .peek-carousel .hero-frame {
    flex: 0 0 min(86%, 920px); scroll-snap-align: center; margin: 0;
}
.peek-carousel img { width: 100%; height: min(62vh, 560px); object-fit: cover; border-radius: 18px; }
.peek-carousel .fit-height img { object-fit: contain; height: min(72vh, 640px); background: rgba(8,16,20,.2); }

.mosaic {
    display: grid; grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(120px, 18vh); gap: 8px;
}
.mosaic figure { margin: 0; overflow: hidden; border-radius: 14px; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mosaic figure:nth-child(5n+1) { grid-column: span 2; grid-row: span 2; }
.hero-mosaic { grid-auto-rows: minmax(140px, 22vh); padding: 0; }

.spotlight { position: relative; }
.spotlight-main { position: relative; }
.spotlight-thumbs {
    display: flex; gap: 8px; overflow-x: auto; padding: 10px 16px 12px;
    -webkit-overflow-scrolling: touch;
}
.spotlight-thumbs .thumb {
    flex: 0 0 72px; height: 52px; padding: 0; border: 2px solid transparent;
    border-radius: 8px; overflow: hidden; background: none; cursor: pointer;
}
.spotlight-thumbs .thumb.is-active { border-color: var(--accent); }
.spotlight-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }

.stack-show { position: relative; min-height: min(64vh, 560px); }
.stack-show .stack-card {
    position: absolute; left: 8%; right: 8%; top: 8%; bottom: 12%;
    margin: 0; display: block; opacity: .35; transform: rotate(4deg) translate(18px, 10px);
    transition: transform .45s ease, opacity .45s ease; z-index: 1;
}
.stack-show .stack-card.is-next { opacity: .7; transform: rotate(-3deg) translate(-10px, 6px); z-index: 2; }
.stack-show .stack-card.is-active { opacity: 1; transform: none; z-index: 3; }
.stack-show .stack-card img { width: 100%; height: 100%; object-fit: cover; border-radius: 18px; box-shadow: 0 16px 40px rgba(8,16,20,.28); }
.static-row { display: grid; gap: 12px; }

.gallery-grid, .card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin-top: 28px; }
.card, .gallery-grid figure {
    background: white; border-radius: 18px; overflow: hidden;
    box-shadow: 0 10px 30px rgba(20, 34, 43, .06); margin: 0;
}
.card { padding: 18px; }
.card h3 { margin: 8px 0; font-family: var(--display); font-size: 24px; }
.card .when { color: var(--accent); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.card a.more, .card .news-toggle { font-weight: 700; text-decoration: none; }
.card .news-toggle {
    display: inline-block; margin-top: 8px; padding: 0; background: none; border: 0;
    color: var(--link); cursor: pointer; font: inherit; font-weight: 700;
}
.news-full { display: none; }
.card.is-open .news-full { display: block; }
.card.is-open .news-excerpt { display: none; }

.lines { display: grid; gap: 14px; margin-top: 18px; }
.lines div { background: white; border-left: 4px solid var(--accent); border-radius: 12px; padding: 12px 16px; }
.lines dt { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.lines dd { margin: 2px 0 0; }
.map-frame, .video-frame { margin-top: 22px; border-radius: 18px; overflow: hidden; background: #0e171c; }
.video-frame { position: relative; width: 100%; padding-top: 56.25%; }
.video-frame iframe, .video-frame video { position: absolute; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%; border: 0; }
.map-frame iframe { width: 100%; height: 320px; border: 0; }

.holding { padding: 80px 0 100px; text-align: center; }
.holding h1 { font-family: var(--display); font-size: clamp(34px, 5vw, 56px); color: var(--heading); margin-bottom: 8px; }
.holding-actions { display: flex; gap: 12px; justify-content: center; margin-top: 22px; }
.holding-actions a, .plain-actions a {
    background: var(--header); color: var(--header-text); text-decoration: none; border-radius: 999px; padding: 10px 18px; font-weight: 700;
}

.site-footer {
    background:
        linear-gradient(180deg, rgba(196, 163, 90, .35), rgba(196, 163, 90, 0) 3px),
        var(--footer);
    color: var(--footer-text);
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 36px 32px;
    padding: 48px 0 28px;
}
.site-footer h3 {
    margin: 0 0 14px;
    font-family: var(--display);
    font-size: 22px;
    font-weight: 400;
    line-height: 1.2;
}
.site-footer h3::after {
    content: "";
    display: block;
    width: 36px;
    height: 2px;
    margin-top: 8px;
    background: var(--accent);
}
.footer-logo { display: block; }
.footer-name {
    margin: 14px 0 0;
    font-family: var(--display);
    font-size: clamp(22px, 3vw, 28px);
    line-height: 1.2;
}
.footer-tag { margin: 8px 0 0; font-size: 15px; opacity: .86; }
.site-footer p { margin: 0 0 12px; }
.footer-contact span,
.footer-hours span {
    display: block;
    font-size: 11px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 2px;
}
.footer-address p { max-width: 32ch; }
.footer-links ul { list-style: none; margin: 0; padding: 0; }
.footer-links a {
    color: var(--footer-text);
    text-decoration: none;
    display: inline-block;
    padding: 3px 0;
}
.footer-links a:hover { color: var(--accent); }
.site-footer a { color: var(--accent); }
.footer-bar {
    border-top: 1px solid rgba(255, 255, 255, .14);
    padding: 16px 0 20px;
    font-size: 14px;
}
.footer-bar .wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px 28px;
    flex-wrap: wrap;
}
.footer-bar p { margin: 0; opacity: .9; }
.footer-dev {
    color: var(--accent);
    text-decoration: none;
    font-weight: 700;
    text-align: right;
}
.footer-dev span {
    display: block;
    margin-top: 2px;
    font-weight: 500;
    font-size: 12px;
    letter-spacing: .03em;
    opacity: .85;
}

.plain-page { min-height: 100vh; display: grid; place-items: center; padding: 32px 16px; }
.plain-card { width: min(560px, 100%); background: white; border-radius: 20px; padding: 32px; box-shadow: 0 16px 40px rgba(20,34,43,.08); }
.plain-card h1 { font-family: var(--display); color: var(--heading); margin-top: 0; }

@media (max-width: 860px) {
    .nav-toggle { display: inline-flex; }
    .header-inner { flex-wrap: wrap; padding: 12px 0; }
    .brand-text { max-width: calc(100vw - 120px); }
    .site-nav { display: none; width: 100%; flex-direction: column; align-items: flex-start; padding: 8px 0 16px; flex-wrap: wrap; }
    .site-nav.is-open { display: flex; }
    .nav-item { width: 100%; }
    .nav-sub { position: static; box-shadow: none; border: 0; padding: 0 0 0 12px; min-width: 0; }
    .nav-sub a { white-space: normal; }
    .split, .split.place-left, .split.place-right, .hero-split {
        flex-direction: column;
        min-height: 0;
    }
    .split.place-bottom { flex-direction: column-reverse; }
    .hero-stage, .hero-stack .hero-frame, .hero-frame.fit-height, .hero-frame.fit-width img, .hero-stage .fit-width > img {
        --hero-h: min(72vh, 640px);
        height: min(72vh, 640px);
        min-height: 260px;
    }
    .mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: minmax(110px, 16vh); }
    .mosaic figure:nth-child(5n+1) { grid-column: span 2; grid-row: span 1; }
    .peek-carousel .peek-card, .peek-carousel .hero-frame { flex-basis: 88%; }
    .stack-show .stack-card { left: 4%; right: 4%; }
    .hero-overlay { padding: 48px 5vw 20px; }
    .hero-overlay strong { font-size: clamp(22px, 7vw, 36px); }
    .block { padding: 48px 0; }
    .block h2 { font-size: clamp(26px, 8vw, 38px); }
    .footer-grid { gap: 28px; padding-top: 36px; }
    .footer-bar .wrap { align-items: flex-start; }
    .footer-dev { text-align: left; }
    .slider button, .spotlight > .prev, .spotlight > .next, .stack-show > .prev, .stack-show > .next {
        width: 36px; height: 36px; font-size: 20px;
    }
}
@media (max-width: 520px) {
    .wrap { width: min(100% - 24px, 1080px); }
    .mosaic { grid-template-columns: 1fr 1fr; }
    .card-grid, .gallery-grid { grid-template-columns: 1fr; }
    .hero-stage, .hero-stack .hero-frame {
        --hero-h: min(68vh, 520px);
        height: min(68vh, 520px);
    }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .marquee-track { animation: none; flex-wrap: wrap; width: auto; }
    .slider.kenburns-mode .slide.is-active img { animation: none; }
    .slider.fade-mode .slide { transition: none; }
}
