/* Public site */
body.public-page { background: #fffdf8; }
.home-navbar { background: #0f3d3a; border-bottom: 1px solid rgba(255, 255, 255, .08); padding: .55rem 0; position: sticky; top: 0; z-index: 1030; }
.home-nav-shell { gap: 1rem; }
.home-brand { align-items: center; display: inline-flex; margin: 0; padding: 0; }
.home-brand-logo { display: block; height: 56px; max-width: 100%; object-fit: contain; width: auto; }
.home-nav-toggle { border: 1px solid rgba(255, 255, 255, .3); border-radius: 7px; color: #fff; font-size: 1.35rem; line-height: 1; padding: .32rem .55rem; }
.home-nav-toggle:hover, .home-nav-toggle:focus { background: rgba(255, 255, 255, .1); color: #fff; }
.home-nav-toggle:focus { box-shadow: 0 0 0 .2rem rgba(240, 217, 154, .3); }
.home-nav-links { align-items: center; gap: .1rem; }
.home-nav-links .nav-link { border-radius: 6px; color: #d8e9e2 !important; font-size: .89rem; font-weight: 600; padding: .55rem .8rem !important; }
.home-nav-links .nav-link:hover, .home-nav-links .nav-link:focus { background: rgba(255, 255, 255, .08); color: #fff !important; }
.home-nav-actions { border-left: 1px solid rgba(255, 255, 255, .18); margin-left: 1.1rem; padding-left: 1.1rem; }
.home-admin-link { align-items: center; border: 1px solid rgba(240, 217, 154, .48); border-radius: 99px; color: #f4e3b1; display: inline-flex; font-size: .8rem; font-weight: 700; gap: .4rem; padding: .45rem .9rem; text-decoration: none; }
.home-admin-link:hover, .home-admin-link:focus { background: #f0d99a; border-color: #f0d99a; color: #0f3d3a; }

.home-shell { max-width: 1180px; }
.home-main { overflow: hidden; }
.home-hero { background: radial-gradient(circle at 88% 4%, rgba(216, 167, 42, .2), transparent 25rem), radial-gradient(circle at 4% 96%, rgba(20, 94, 89, .11), transparent 25rem), #f8f3e8; overflow: hidden; padding: clamp(3rem, 7vw, 6rem) 0 clamp(3.5rem, 8vw, 6.5rem); position: relative; }
.home-hero-grid { align-items: center; display: grid; gap: clamp(2rem, 5vw, 4.5rem); grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr); }
.home-eyebrow { align-items: center; color: #8a5a2b; display: flex; font-size: .72rem; font-weight: 700; gap: .6rem; letter-spacing: .13em; margin: 0 0 .35rem; text-transform: uppercase; }
.home-eyebrow:before { background: #b85a43; content: ""; flex: none; height: 2px; width: 28px; }
.home-hero h1 { color: #123c38; font-size: clamp(2.7rem, 4.9vw, 4rem); font-weight: 700; letter-spacing: -.045em; line-height: 1.03; margin: .9rem 0 1.25rem; }
.home-hero h1 span { color: #a9543d; display: block; }
.home-lede { color: #526a64; font-size: clamp(1.02rem, 1.3vw, 1.16rem); line-height: 1.7; margin: 0 0 1.8rem; max-width: 36rem; }
.home-actions, .home-cta-actions { align-items: center; display: flex; flex-wrap: wrap; gap: .75rem; }
.home-btn, .home-btn:hover, .home-btn:focus { align-items: center; border-radius: 8px; display: inline-flex; font-family: 'Sora', 'Trebuchet MS', sans-serif; font-size: .9rem; font-weight: 600; gap: .5rem; min-height: 48px; padding: .7rem 1.2rem; text-decoration: none; }
.home-btn-primary { background: #123c38; border: 1px solid #123c38; color: #fff; }
.home-btn-primary:hover, .home-btn-primary:focus { background: #0b2b28; border-color: #0b2b28; color: #fff; }
.home-btn-quiet { background: transparent; border: 1px solid rgba(18, 60, 56, .28); color: #123c38; }
.home-btn-quiet:hover, .home-btn-quiet:focus { background: rgba(18, 60, 56, .06); border-color: #123c38; color: #123c38; }
.home-checks { display: flex; flex-wrap: wrap; gap: .55rem 1.3rem; list-style: none; margin: 2rem 0 0; padding: 0; }
.home-checks li { align-items: center; color: #526a64; display: flex; font-size: .82rem; font-weight: 500; gap: .45rem; }
.home-checks li:before { background: #b85a43; border-radius: 50%; content: ""; flex: none; height: 6px; width: 6px; }
.home-hero-visual { min-height: 420px; position: relative; }
.home-hero-frame { border: 1px solid #d9c9a7; border-radius: 2rem 2rem 6rem 2rem; inset: 7% -3% 7% 12%; pointer-events: none; position: absolute; transform: rotate(-3deg); }
.home-hero-photo { border-radius: 2rem 2rem 5.5rem 2rem; box-shadow: 0 30px 70px rgba(15, 61, 58, .24); margin: 0; overflow: hidden; position: relative; }
.home-hero-photo img { aspect-ratio: 9 / 8; display: block; height: 100%; object-fit: cover; width: 100%; }
.home-hero-photo:after { background: linear-gradient(180deg, transparent 60%, rgba(9, 40, 37, .22)); content: ""; inset: 0; pointer-events: none; position: absolute; }
.home-float { align-items: center; backdrop-filter: blur(7px); background: rgba(255, 253, 248, .96); border: 1px solid #e8ddc8; border-radius: 14px; box-shadow: 0 14px 32px rgba(15, 61, 58, .16); display: flex; gap: .65rem; padding: .7rem .9rem; position: absolute; z-index: 2; }
.home-float-a { right: -.6rem; top: 8%; }
.home-float-b { bottom: 8%; left: -1rem; }
.home-float-icon { align-items: center; background: #e7f1ec; border-radius: 10px; color: #145e59; display: flex; flex: none; font-size: 1rem; height: 38px; justify-content: center; width: 38px; }
.home-float strong { color: #123c38; display: block; font-size: .8rem; line-height: 1.2; }
.home-float span:not(.home-float-icon) { color: #6a7d77; display: block; font-size: .72rem; line-height: 1.3; }

.home-section { padding: clamp(3.5rem, 7vw, 6rem) 0; scroll-margin-top: 90px; }
#portals, #admissions { background: #fffdf8; }
.home-section-head { margin: 0 auto clamp(2rem, 4vw, 3rem); max-width: 680px; text-align: center; }
.home-section-head .home-eyebrow { justify-content: center; }
.home-section h2 { color: #123c38; font-size: clamp(2rem, 3.7vw, 3rem); font-weight: 700; letter-spacing: -.035em; line-height: 1.08; margin: .6rem 0 1rem; }
.home-section-head p:last-child { color: #5a6f69; font-size: 1rem; line-height: 1.65; margin: 0; }
.home-portals { display: grid; gap: 1.25rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.home-portal { background: #f8f4ea; border: 1px solid #e7ddca; border-radius: 20px; display: flex; flex-direction: column; min-height: 310px; padding: 1.6rem; position: relative; transition: box-shadow .22s ease, transform .22s ease; }
.home-portal:nth-child(2) { background: #f5efe3; }
.home-portal:nth-child(3) { background: #eef4ee; }
.home-portal:hover { box-shadow: 0 20px 40px rgba(18, 60, 56, .1); transform: translateY(-4px); }
.home-portal-teacher { --portal-color: #5c6f9c; }
.home-portal-student { --portal-color: #8a4a20; }
.home-portal-guardian { --portal-color: #0f7a72; }
.home-portal-icon { align-items: center; background: var(--portal-color); border-radius: 14px; color: #fff; display: flex; font-size: 1.3rem; height: 48px; justify-content: center; margin-bottom: 1.2rem; width: 48px; }
.home-portal-kicker { color: var(--portal-color); font-size: .7rem; font-weight: 700; letter-spacing: .09em; margin: 0 0 .3rem; text-transform: uppercase; }
.home-portal h3 { color: #123c38; font-size: 1.35rem; font-weight: 700; margin: 0 0 .55rem; }
.home-portal > p:not(.home-portal-kicker) { color: #5a6f69; font-size: .9rem; line-height: 1.6; margin: 0 0 1.4rem; }
.home-portal a { align-items: center; color: #123c38; display: inline-flex; font-size: .86rem; font-weight: 700; gap: .4rem; margin-top: auto; text-decoration: none; }
.home-portal a:hover, .home-portal a:focus { color: var(--portal-color); text-decoration: underline; }
.home-admin-strip { align-items: center; background: #123c38; border-radius: 16px; color: #fff; display: flex; gap: 1rem; justify-content: space-between; margin-top: 1.4rem; padding: 1rem 1.25rem; }
.home-admin-strip-copy { align-items: center; display: flex; gap: .85rem; }
.home-admin-strip-copy > span { align-items: center; background: rgba(240, 217, 154, .14); border: 1px solid rgba(240, 217, 154, .3); border-radius: 10px; color: #f0d99a; display: flex; flex: none; font-size: 1.05rem; height: 40px; justify-content: center; width: 40px; }
.home-admin-strip strong { display: block; font-size: .9rem; line-height: 1.3; }
.home-admin-strip-copy div > span { color: #bdd4cc; display: block; font-size: .8rem; line-height: 1.45; }
.home-admin-strip > a { align-items: center; border: 1px solid rgba(240, 217, 154, .45); border-radius: 7px; color: #f0d99a; display: inline-flex; flex: none; font-size: .82rem; font-weight: 700; gap: .4rem; padding: .5rem .9rem; text-decoration: none; }
.home-admin-strip > a:hover, .home-admin-strip > a:focus { background: #f0d99a; color: #0f3d3a; }

.home-band { background: #0e3b38; color: #fff; padding: clamp(3.5rem, 7vw, 6rem) 0; scroll-margin-top: 90px; }
.home-band-grid { align-items: center; display: grid; gap: clamp(2rem, 5vw, 4.5rem); grid-template-columns: .95fr 1.05fr; }
.home-band-photo { border-radius: 22px; box-shadow: 0 26px 55px rgba(3, 25, 22, .32); margin: 0; overflow: hidden; position: relative; }
.home-band-photo img { aspect-ratio: 750 / 658; display: block; height: auto; object-fit: cover; width: 100%; }
.home-band-photo figcaption { backdrop-filter: blur(7px); background: rgba(7, 34, 31, .74); border: 1px solid rgba(255, 255, 255, .16); border-radius: 12px; bottom: 1rem; color: #e8f3ed; font-size: .79rem; left: 1rem; line-height: 1.45; padding: .7rem .85rem; position: absolute; right: 1rem; }
.home-eyebrow-light { color: #f0d99a; }
.home-eyebrow-light:before { background: #f0d99a; }
.home-band h2 { color: #fff; }
.home-band-copy > p { color: #c2d8d0; font-size: .98rem; line-height: 1.7; margin: 0; max-width: 38rem; }
.home-features { display: grid; gap: 1.15rem; grid-template-columns: repeat(2, minmax(0, 1fr)); list-style: none; margin: 2rem 0 0; padding: 0; }
.home-features li { align-items: flex-start; display: flex; gap: .75rem; }
.home-features i { color: #f0d99a; flex: none; font-size: 1.2rem; margin-top: .1rem; }
.home-features strong { color: #fff; display: block; font-size: .9rem; line-height: 1.35; }
.home-features span { color: #b8cec6; display: block; font-size: .82rem; line-height: 1.5; margin-top: .18rem; }

.home-admissions { background: #f8f3e8; }
.home-admissions-grid { align-items: center; display: grid; gap: clamp(2rem, 5vw, 4.5rem); grid-template-columns: 1.04fr .96fr; }
.home-admissions-copy > p { color: #5a6f69; font-size: .98rem; line-height: 1.7; margin: 0; max-width: 36rem; }
.home-steps { display: grid; gap: 1.1rem; list-style: none; margin: 2rem 0 1.4rem; padding: 0; }
.home-steps li { align-items: flex-start; display: flex; gap: .9rem; }
.home-steps li > span { align-items: center; background: #123c38; border-radius: 50%; color: #f0d99a; display: flex; flex: none; font-family: 'Sora', sans-serif; font-size: .8rem; font-weight: 700; height: 32px; justify-content: center; margin-top: .1rem; width: 32px; }
.home-steps strong { color: #123c38; display: block; font-size: .93rem; line-height: 1.4; }
.home-steps p { color: #5a6f69; font-size: .85rem; line-height: 1.55; margin: .18rem 0 0; }
.home-small-note { align-items: flex-start; color: #7a6a50; display: flex; font-size: .8rem; gap: .45rem; line-height: 1.5; margin: 0; }
.home-small-note i { margin-top: .1rem; }
.home-admissions-photo { margin: 0; }
.home-admissions-photo img { aspect-ratio: 69 / 88; border-radius: 2rem 2rem 2rem 6rem; box-shadow: 0 24px 55px rgba(76, 56, 31, .18); display: block; height: auto; object-fit: cover; width: 100%; }
.home-admissions-photo figcaption { color: #7a6a50; font-size: .78rem; line-height: 1.5; margin-top: .8rem; text-align: center; }

.home-cta-wrap { background: #fffdf8; padding: 0 0 clamp(3rem, 7vw, 5rem); }
.home-cta { align-items: center; background: #f0d99a; border-radius: 26px; display: flex; gap: 2rem; justify-content: space-between; overflow: hidden; padding: clamp(1.6rem, 4vw, 3rem); position: relative; }
.home-cta:after { border: 40px solid rgba(18, 60, 56, .08); border-radius: 50%; content: ""; height: 280px; pointer-events: none; position: absolute; right: -90px; top: -110px; width: 280px; }
.home-cta > div { position: relative; z-index: 1; }
.home-cta .home-eyebrow { color: #5f4a14; margin-bottom: .35rem; }
.home-cta .home-eyebrow:before { background: #123c38; }
.home-cta h2 { color: #123c38; font-size: clamp(1.8rem, 3.2vw, 2.6rem); letter-spacing: -.03em; line-height: 1.1; margin: .4rem 0 .7rem; }
.home-cta p { color: #5f4a14; font-size: .94rem; line-height: 1.6; margin: 0; max-width: 36rem; }

.home-footer { background: #0a2b28; color: #c6dad3; padding: clamp(2.5rem, 5vw, 4rem) 0 0; }
.home-footer-grid { display: grid; gap: 2rem; grid-template-columns: 1.3fr .8fr 1fr; padding-bottom: 2.5rem; }
.home-footer-brand img { display: block; height: 64px; margin-bottom: 1rem; max-width: 100%; object-fit: contain; width: auto; }
.home-footer-brand p { color: #b8cec6; font-size: .85rem; line-height: 1.65; margin: 0; max-width: 320px; }
.home-footer h2 { color: #f0d99a; font-family: 'Sora', sans-serif; font-size: .7rem; font-weight: 700; letter-spacing: .13em; margin: 0 0 1rem; text-transform: uppercase; }
.home-footer ul { display: grid; gap: .55rem; list-style: none; margin: 0; padding: 0; }
.home-footer a { color: #dcebe4; font-size: .85rem; text-decoration: none; }
.home-footer a:hover, .home-footer a:focus { color: #fff; text-decoration: underline; }
.home-footer-note p { color: #b8cec6; font-size: .85rem; line-height: 1.65; margin: 0; }
.home-footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); color: #8fb0a7; display: flex; flex-wrap: wrap; font-size: .75rem; gap: .5rem 1.5rem; justify-content: space-between; padding: 1.2rem 0; }

@media (max-width: 991.98px) {
    .home-nav-shell { padding-left: 1rem; padding-right: 1rem; }
    .home-nav-links { padding-top: 1rem; }
    .home-nav-links .nav-link { padding: .6rem .2rem !important; }
    .home-nav-actions { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .16); margin: 1rem 0 0; padding: .9rem 0 .35rem; }
    .home-admin-link { justify-content: center; width: 100%; }
    .home-hero-grid, .home-band-grid, .home-admissions-grid { grid-template-columns: 1fr; }
    .home-hero-visual { margin: 0 auto; max-width: 620px; width: 100%; }
    .home-band-photo { max-width: 620px; }
    .home-admissions-photo { max-width: 520px; margin: 0 auto; }
    .home-portals { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .home-portal-guardian { grid-column: 1 / -1; min-height: 0; }
    .home-footer-grid { grid-template-columns: 1.2fr .8fr; }
    .home-footer-note { grid-column: 1 / -1; }
}
@media (max-width: 767.98px) {
    .home-brand-logo { height: 48px; }
    .home-hero-visual { min-height: 0; }
    .home-float-a { right: -.25rem; }
    .home-float-b { bottom: 4%; left: -.25rem; }
    .home-features { grid-template-columns: 1fr; }
    .home-cta { align-items: flex-start; flex-direction: column; }
    .home-cta-actions { width: 100%; }
}
@media (max-width: 575.98px) {
    .home-hero { padding-top: 2.4rem; }
    .home-hero h1 { font-size: clamp(2.15rem, 10.6vw, 3rem); }
    .home-checks { gap: .45rem .9rem; }
    .home-portals { grid-template-columns: 1fr; }
    .home-portal-guardian { grid-column: auto; }
    .home-float { display: none; }
    .home-hero-frame { display: none; }
    .home-hero-photo { border-radius: 1.4rem 1.4rem 3.4rem 1.4rem; }
    .home-admin-strip { align-items: flex-start; flex-direction: column; }
    .home-admin-strip > a { justify-content: center; width: 100%; }
    .home-footer-grid { grid-template-columns: 1fr; }
    .home-footer-note { grid-column: auto; }
    .home-footer-bottom { flex-direction: column; }
    .home-admissions-photo img { border-radius: 1.4rem 1.4rem 1.4rem 3.4rem; }
}
@media (prefers-reduced-motion: reduce) {
    .home-portal { transition: none; }
}

/* Home motion */
@keyframes homeRise {
    from { opacity: 0; translate: 0 18px; }
    to { opacity: 1; translate: 0 0; }
}
@keyframes homeFade {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes homeFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}
@keyframes homeReveal {
    from { opacity: 0; translate: 0 20px; }
    to { opacity: 1; translate: 0 0; }
}
@media (prefers-reduced-motion: no-preference) {
    .home-hero-copy { animation: homeRise .7s cubic-bezier(.2, .7, .3, 1) both; }
    .home-hero-visual { animation: homeFade .85s .12s ease both; }
    .home-float-a { animation: homeFloat 7s 1.2s ease-in-out infinite; }
    .home-float-b { animation: homeFloat 7.5s 2.5s ease-in-out infinite; }
    .home-btn i,
    .home-portal a i { transition: transform .18s ease; }
    .home-btn:hover i,
    .home-btn:focus-visible i,
    .home-portal a:hover i { transform: translateX(3px); }
}
@supports (animation-timeline: view()) {
    @media (prefers-reduced-motion: no-preference) {
        .home-section-head,
        .home-portal,
        .home-band-photo,
        .home-band-copy,
        .home-admissions-photo,
        .home-admissions-copy,
        .home-features li,
        .home-cta {
            animation: homeReveal linear both;
            animation-timeline: view();
            animation-range: entry 0% entry 32%;
        }
        .home-portal:nth-child(2) { animation-range: entry 4% entry 36%; }
        .home-portal:nth-child(3) { animation-range: entry 8% entry 40%; }
    }
}
@media (prefers-reduced-motion: reduce) {
    .home-hero-copy,
    .home-hero-visual,
    .home-float-a,
    .home-float-b,
    .home-section-head,
    .home-portal,
    .home-band-photo,
    .home-band-copy,
    .home-admissions-photo,
    .home-admissions-copy,
    .home-features li,
    .home-cta { animation: none; translate: none; }
}
