.public-hero {
    position: relative;
    isolation: isolate;
    overflow: clip;
}

.public-hero::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    background: radial-gradient(ellipse at 77% 48%, #b0ef8b29, transparent 60%);
    opacity: .4;
    pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
    .public-hero::before {
        animation: home-hero-glow 3.6s ease-in-out;
    }

    .hero-grid > div > :is(.hero-tag, h1, p, .hero-actions),
    .hero-grid > .hero-image {
        animation: home-rise .72s cubic-bezier(.22, 1, .36, 1) backwards;
    }

    .hero-grid h1 { animation-delay: .1s; }
    .hero-grid p { animation-delay: .2s; }
    .hero-grid .hero-actions { animation-delay: .3s; }
    .hero-grid > .hero-image { animation-delay: .15s; }
    .hero-grid .hero-actions:focus-within { animation: none; }

    .hero-actions .lime .icon { transition: transform .2s ease-out; }
    .hero-actions .lime:is(:hover, :focus-visible) .icon { transform: translateX(3px); }

    .home-revealed {
        animation: home-rise .52s cubic-bezier(.22, 1, .36, 1);
    }

    .home-revealed:focus-within { animation: none; }
}

@keyframes home-rise {
    from { opacity: .25; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes home-hero-glow {
    50% { opacity: 1; }
}

.home-story {
    background: radial-gradient(ellipse at 87% 5%, #2a6147, transparent 68%), #112f25;
    color: #f4faf4;
}

.home-story-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, .88fr);
    gap: clamp(24px, 7vw, 92px);
    align-items: center;
}

.home-story .eyebrow { color: var(--lime); }
.home-story-copy h2 { max-width: 16ch; }
.home-story-copy p { max-width: 52ch; margin-top: 14px; color: #d5e8dc; }
.home-text-link { display: inline-flex; align-items: center; gap: 7px; margin-top: 20px; color: var(--lime); font-weight: 700; }
.home-text-link:hover { text-decoration: underline; }

.home-milestones {
    padding: clamp(18px, 3.5vw, 34px);
    border: 1px solid #92c6a453;
    border-radius: 22px;
    background: #ffffff0d;
}

.home-milestones-label { display: flex; align-items: center; gap: 8px; color: #d1edc1; font-size: .72rem; font-weight: 750; letter-spacing: .13em; }
.home-milestones ol { display: grid; gap: 15px; margin: 18px 0 0; padding: 0; list-style: none; }
.home-milestones li { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 13px; }
.home-milestones li + li { padding-top: 15px; border-top: 1px solid #92c6a435; }
.home-milestones li > span { display: grid; width: 41px; height: 41px; place-items: center; border-radius: 11px; background: #d7f7a9; color: #214637; font-size: .86rem; font-weight: 800; }
.home-milestones p { margin-top: 4px; color: #d5e8dc; font-size: .93rem; }

.home-student-results { padding-block: 30px 56px; border-top: 1px solid #92c6a453; }
.home-student-results h3 { margin-top: 5px; font-size: clamp(1.55rem, 3vw, 2.1rem); }
.home-results-empty { color: #d5e8dc; }
.home-results-action { display: flex; justify-content: center; margin-top: 22px; }
.student-result-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.student-result-card { overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); color: var(--ink); box-shadow: var(--shadow); }
.student-result-photo { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 30%; background: #e3efe5; }
.student-result-copy { padding: 12px 14px 15px; }
.student-result-copy h2, .student-result-copy h4 { margin: 0; font-size: 1.08rem; line-height: 1.25; overflow-wrap: anywhere; }
.student-result-copy p { margin-top: 5px; color: var(--green); font-size: .9rem; font-weight: 680; overflow-wrap: anywhere; }

.home-section-heading { max-width: 650px; margin-bottom: clamp(20px, 3vw, 32px); }
.home-section-heading p { margin-top: 8px; }
.home-features .home-section-heading { margin-inline: auto; text-align: center; }
.home-feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.home-feature-card { padding: clamp(16px, 2.5vw, 26px); border: 1px solid var(--line); border-radius: 17px; background: var(--paper); box-shadow: var(--shadow); }
.home-feature-icon { display: grid; width: 46px; height: 46px; place-items: center; margin-bottom: 15px; border-radius: 12px; background: #e8f4e8; color: var(--green); font-size: 1.35rem; }
.home-feature-card p { margin-top: 7px; }

.home-video-section { border-block: 1px solid var(--line); background: #eef5ef; }
.home-video-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.home-video-card { overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); box-shadow: var(--shadow); }
.home-video-card video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #16392c; }
.home-video-card iframe { display: block; width: 100%; min-height: 200px; aspect-ratio: 16 / 9; border: 0; background: #16392c; }
.home-video-card :is(video, iframe):focus-visible { outline-offset: -4px; }
.home-video-copy { padding: 17px 20px 21px; }
.home-video-copy h3 { margin-top: 5px; font-size: clamp(1.15rem, 2vw, 1.4rem); }
.home-video-copy p { margin-top: 7px; }

.home-image-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.home-image-card { overflow: hidden; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); box-shadow: var(--shadow); }
.home-image-card:hover { border-color: #95b7a4; color: var(--green); }
.home-image-card img { width: 100%; height: auto; aspect-ratio: 5 / 3; object-fit: cover; }
.home-image-caption { display: flex; flex: 1; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; font-weight: 720; }
.home-image-caption > span { display: grid; flex: none; width: 32px; height: 32px; place-items: center; border-radius: 50%; background: #e8f4e8; color: var(--green); }
.home-image-card:hover .home-image-caption > span { background: var(--forest); color: white; }

.home-image-dialog { width: min(840px, calc(100% - 30px)); max-height: calc(100% - 30px); padding: 0; border: 1px solid var(--line); border-radius: 18px; color: var(--ink); }
.home-image-dialog::backdrop { background: #0a211bd9; }
.home-image-dialog-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 11px 14px; }
.home-image-dialog img { width: 100%; height: auto; }

.home-contact { border-top: 1px solid var(--line); background: #eef5ef; }
.home-contact-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: start; gap: clamp(16px, 3vw, 32px); }
.home-contact-grid > .panel, .home-location { padding: clamp(18px, 3vw, 32px); border-radius: 20px; }
.home-location {
    display: grid;
    justify-items: start;
    gap: 12px;
    min-width: 0;
    background: radial-gradient(ellipse at 88% 8%, #327453, transparent 70%), var(--forest);
    color: #f5fbf6;
}
.home-location-icon { display: grid; width: 50px; height: 50px; place-items: center; border-radius: 14px; background: var(--lime); color: var(--forest); font-size: 1.35rem; }
.home-location :is(p, address) { color: #d5e8dc; }
.home-location address { font-style: normal; }
.home-location .button { margin-top: 4px; }

@media (max-width: 800px) {
    .home-feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .student-result-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
    .home-story-grid, .home-video-grid, .home-image-grid, .home-contact-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 460px) {
    .home-feature-grid { grid-template-columns: minmax(0, 1fr); }
    .student-result-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
    .student-result-copy { padding: 10px; }
}
