body.home {
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    background-color: #002f55;
    background-image:
        radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(180deg, #003a68 0%, #002f55 45%, #001a31 100%);
    background-size: 24px 24px, 100% 100%;
    background-attachment: fixed;
    border-top: 6px solid #ff4800;
    color: #fff;
}

body.home #wrapper {
    position: relative;
    height: auto;
    min-height: 100vh;
    opacity: 1;
    animation: none;
}

body.home #header {
    display: block;
    position: static;
    top: auto;
    width: 100%;
    padding: 1rem 0;
    opacity: 1;
    text-align: right;
    transform: none;
    animation: none;
}

body.home #header nav {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 10000;
    margin: 0;
}

body.home #header nav ul,
body.home #header nav ul li {
    display: block;
    margin: 0;
    padding: 0;
}

body.home #header nav ul li a[href="#menu"] {
    display: block;
    width: auto;
    height: auto;
    padding: 0.65rem 1rem;
    border: 1px solid #aca89f;
    border-radius: 4px;
    background: #002f55;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    line-height: 1.4;
    text-indent: 0;
    text-transform: none;
}

body.home #header nav ul li a[href="#menu"]:before,
body.home #header nav ul li a[href="#menu"]:after {
    display: none;
}

body.home #main {
    position: relative;
    top: auto;
    left: auto;
    height: auto;
    width: calc(100% - 3rem);
    max-width: 70rem;
    margin: 0 auto;
    padding: 1rem 0 3rem;
    color: #fff;
    font-size: 1rem;
    font-weight: 400;
    text-align: center;
}

body.home #main:before {
    display: none;
}

body.home .home-title {
    margin: 0 auto 2rem;
    color: #ff4800;
    font-size: 3rem;
    font-weight: 900;
    line-height: 1.2;
}

body.home .home-title-main {
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

body.home .home-title-tag {
    display: block;
    margin-top: 0.5rem;
    color: #fff;
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.3em;
    text-transform: uppercase;
}

body.home .home-title-tag:after {
    content: "";
    display: block;
    width: 5rem;
    height: 4px;
    margin: 1rem auto 0;
    border-radius: 2px;
    background: #ff4800;
}

body.home .home-logo {
    display: block;
    width: 15rem;
    max-width: 68%;
    height: auto;
    margin: 0 auto 1rem;
}

body.home .home-banner {
    display: block;
    width: 100%;
    max-width: 52rem;
    height: auto;
    margin: 0 auto 2rem;
    border: 4px solid #ff4800;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

body.home .home-intro {
    max-width: 58rem;
    margin: 0 auto 2rem;
    padding: 1.5rem 2rem;
    border: 1px solid rgba(172, 168, 159, 0.35);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    font-size: 1.1rem;
    line-height: 1.7;
}

body.home .home-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1rem;
    margin: 0 auto 2rem;
    font-size: 1.5rem;
    font-weight: 700;
}

body.home .home-links a,
body.home .home-social a {
    color: #ff4800;
}

body.home .home-links a {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    border: 2px solid #ff4800;
    border-radius: 999px;
    background: #ff4800;
    color: #fff;
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
}

body.home .home-links a + span + a {
    background: transparent;
}

body.home .home-links > span {
    display: none;
}

body.home .home-social {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem 2rem;
    margin: 0 auto 2rem;
    font-size: 1.5rem;
}

body.home .home-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border: 2px solid #ff4800;
    border-radius: 50%;
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
}

body.home .home-social a:hover,
body.home .home-links a:hover {
    color: #fff;
}

body.home .home-social a:hover {
    background: #ff4800;
}

body.home .home-links a:hover {
    background: #fff;
    border-color: #fff;
    color: #002f55;
}

body.home .home-social .icon-x svg {
    display: inline-block;
    width: 1em;
    height: 1em;
    fill: currentColor;
    vertical-align: middle;
}

body.home #menu {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 10002;
    width: 22rem;
    max-width: 85%;
    height: 100%;
    padding: 3.5rem 2rem 2rem;
    overflow-y: auto;
    background: linear-gradient(180deg, #003a68 0%, #002f55 50%, #001a31 100%);
    border-left: 4px solid #ff4800;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    color: #fff;
    transform: translateX(100%);
    transition: transform 0.18s ease-out, visibility 0.18s ease-out;
    visibility: hidden;
}

body.home #menu .menu-header {
    margin: 0 0 1.5rem;
    text-align: center;
}

body.home #menu .menu-logo {
    display: block;
    width: 4rem;
    height: auto;
    margin: 0 auto 0.5rem;
}

body.home #menu h2 {
    margin: 0;
    color: #ff8a4d;
    font-size: 1rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

body.home #menu h2:after {
    content: "";
    display: block;
    width: 3rem;
    height: 3px;
    margin: 0.75rem auto 0;
    border-radius: 2px;
    background: #ff4800;
}

body.home #menu ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

body.home #menu li {
    padding: 0;
    border-top: 1px solid rgba(172, 168, 159, 0.6);
}

body.home #menu li a {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 3rem;
    padding: 0.6rem 2rem 0.6rem 0.75rem;
    border: 0;
    border-left: 4px solid transparent;
    color: #fff;
    transition: color 0.2s ease-in-out, background-color 0.2s ease-in-out, border-color 0.2s ease-in-out;
}

body.home #menu li a .fa {
    width: 1.5rem;
    margin-right: 0.75rem;
    color: #ff8a4d;
    text-align: center;
}

body.home #menu li a:after {
    content: "\203A";
    position: absolute;
    right: 0.75rem;
    opacity: 0;
    transform: translateX(-6px);
    transition: opacity 0.2s ease-in-out, transform 0.2s ease-in-out;
}

body.home #menu li a:hover,
body.home #menu li a:focus-visible {
    border-left-color: #ff4800;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

body.home #menu li a:hover:after,
body.home #menu li a:focus-visible:after {
    opacity: 1;
    transform: translateX(0);
}

body.home #menu li a[aria-current="page"] {
    border-left-color: #ff4800;
    background: rgba(255, 72, 0, 0.18);
    color: #fff;
}

body.home #menu .menu-footer {
    margin-top: 2rem;
    text-align: center;
}

body.home #menu .menu-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.25rem;
}

body.home #menu .menu-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border: 2px solid #ff8a4d;
    border-radius: 50%;
    color: #ff8a4d;
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
}

body.home #menu .menu-social a:hover {
    background: #ff4800;
    color: #fff;
}

body.home #menu .menu-social svg {
    width: 1em;
    height: 1em;
    fill: currentColor;
}

body.home #menu .close {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border: 2px solid #ff4800;
    border-radius: 50%;
    color: #fff;
    font-size: 1.5rem;
    line-height: 1;
    text-indent: 0;
    transition: background-color 0.2s ease-in-out;
}

body.home #menu .close:hover {
    background: #ff4800;
}

body.home #menu a:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

body.home.is-menu-visible #menu li {
    animation: menu-fade 0.22s ease-out both;
}

body.home.is-menu-visible #menu li:nth-child(1) { animation-delay: 0.03s; }
body.home.is-menu-visible #menu li:nth-child(2) { animation-delay: 0.07s; }
body.home.is-menu-visible #menu li:nth-child(3) { animation-delay: 0.11s; }
body.home.is-menu-visible #menu li:nth-child(4) { animation-delay: 0.15s; }

@keyframes menu-fade {
    from {
        opacity: 0;
        transform: translateX(16px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.home.is-menu-visible #menu li {
        animation: none;
    }
}

body.home.is-menu-visible {
    overflow: hidden;
}

body.home.is-menu-visible #wrapper {
    opacity: 0.5;
    pointer-events: none;
}

body.home.is-menu-visible #menu {
    transform: translateX(0);
    visibility: visible;
}

@media screen and (max-width: 736px) {
    body.home #main {
        width: calc(100% - 2rem);
        padding-top: 0.5rem;
    }

    body.home .home-title,
    body.home .home-banner,
    body.home .home-intro,
    body.home .home-links,
    body.home .home-social {
        margin-bottom: 1.5rem;
    }

    body.home .home-title {
        font-size: 2rem;
    }

    body.home .home-title-tag {
        font-size: 0.8rem;
        letter-spacing: 0.2em;
    }

    body.home .home-intro {
        padding: 1rem 1.25rem;
        font-size: 1rem;
    }

    body.home .home-links {
        font-size: 1.25rem;
    }

    body.home #menu {
        width: 18rem;
        padding-right: 1.5rem;
        padding-left: 1.5rem;
    }
}

/* ==========================================================================
   Home hero + stats  (full-bleed hero, animated backdrop, stat counters)
   ========================================================================== */

/* slow drifting backdrop, home page only */
body.home.has-hero {
    background-size: 24px 24px, 100% 160%;
    animation: home-drift 34s ease-in-out infinite alternate;
}

@keyframes home-drift {
    from { background-position: 0 0, 0 0; }
    to   { background-position: 240px 180px, 0 100%; }
}

body.home .hero {
    position: relative;
    width: 100vw;
    margin: 0 0 3.5rem calc(50% - 50vw);
    padding: 5rem 1.5rem 7.25rem;
    overflow: hidden;
    overflow: clip;
    border-bottom: 4px solid #ff4800;
    background:
        radial-gradient(ellipse 70% 60% at 22% 18%, rgba(255, 72, 0, 0.22), transparent 70%),
        linear-gradient(135deg, #003a68 0%, #002f55 55%, #001a31 100%);
}

body.home .hero-inner {
    position: relative;
    z-index: 1;
    max-width: 56rem;
    margin: 0 auto;
}

body.home .hero .home-logo {
    z-index: 0;
    width: min(24rem, 82%, 51vh);
    margin-bottom: 1.75rem;
    pointer-events: none;
    filter: drop-shadow(0 8px 22px rgba(0, 0, 0, 0.45)) opacity(var(--hero-logo-scroll-opacity, 1));
}

/* Pinning only applies when home.js is running the scroll fade */
body.home.has-logo-fade .hero .home-logo {
    position: sticky;
    top: 12vh;
}

@media (max-height: 520px) {
    body.home.has-logo-fade .hero .home-logo {
        position: static;
    }
}

body.home .hero .home-title {
    position: relative;
    z-index: 1;
    margin-bottom: 1.5rem;
    font-size: 4rem;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
}

body.home .hero .home-title-main {
    background: linear-gradient(100deg, #ff4800 0%, #ff8a4d 45%, #ff4800 100%);
    background-size: 220% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: title-sheen 9s ease-in-out infinite alternate;
}

@keyframes title-sheen {
    from { background-position: 0% 50%; }
    to   { background-position: 100% 50%; }
}

body.home .hero-lede {
    max-width: 46rem;
    margin: 0 auto 2.25rem;
    font-size: 1.2rem;
    line-height: 1.75;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

body.home .hero-cta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem 1rem;
    margin: 0;
}

body.home .btn {
    position: relative;
    display: inline-block;
    padding: 0.8rem 2rem;
    overflow: hidden;
    border: 2px solid #ff4800;
    border-radius: 999px;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out,
                border-color 0.2s ease-in-out, transform 0.2s ease-in-out,
                box-shadow 0.2s ease-in-out;
}

body.home .btn-primary {
    background: #ff4800;
    color: #fff;
    box-shadow: 0 8px 24px rgba(255, 72, 0, 0.35);
}

body.home .btn-ghost {
    background: rgba(0, 26, 49, 0.45);
    color: #fff;
}

body.home .btn:hover,
body.home .btn:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
}

body.home .btn-primary:hover,
body.home .btn-primary:focus-visible {
    border-color: #fff;
    background: #fff;
    color: #002f55;
}

body.home .btn-ghost:hover,
body.home .btn-ghost:focus-visible {
    background: #ff4800;
}

/* sheen sweep on hover */
body.home .btn:before {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 60%;
    height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transform: skewX(-20deg);
}

body.home .btn:hover:before {
    animation: btn-sheen 0.7s ease-out;
}

@keyframes btn-sheen {
    to { left: 140%; }
}

body.home .btn:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

/* scroll cue */
body.home .hero-cue {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    z-index: 1;
    width: 2.75rem;
    height: 2.75rem;
    margin-left: -1.375rem;
    border: 2px solid rgba(255, 255, 255, 0.55);
    border-radius: 50%;
    transition: border-color 0.2s ease-in-out, background-color 0.2s ease-in-out;
}

body.home .hero-cue span {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0.7rem;
    height: 0.7rem;
    margin: -0.45rem 0 0 -0.35rem;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(45deg);
    animation: cue-bob 2s ease-in-out infinite;
}

@keyframes cue-bob {
    0%, 100% { transform: rotate(45deg) translate(0, 0); opacity: 0.6; }
    50%      { transform: rotate(45deg) translate(3px, 3px); opacity: 1; }
}

body.home .hero-cue:hover,
body.home .hero-cue:focus-visible {
    border-color: #ff4800;
    background: #ff4800;
}

/* stats */
body.home .stats {
    margin: 0 auto 3rem;
    scroll-margin-top: 1rem;
}

body.home .stats-title {
    margin: 0 0 1.75rem;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.3em;
    text-transform: uppercase;
}

body.home .stats-title:after {
    content: "";
    display: block;
    width: 3rem;
    height: 3px;
    margin: 0.9rem auto 0;
    border-radius: 2px;
    background: #ff4800;
}

body.home .stat-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

body.home .stat {
    flex: 1 1 11rem;
    max-width: 16rem;
    padding: 1.75rem 1rem;
    border: 1px solid rgba(172, 168, 159, 0.35);
    border-top: 3px solid #ff4800;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    transition: background-color 0.2s ease-in-out, transform 0.2s ease-in-out;
}

body.home .stat:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

body.home .stat-num {
    display: block;
    color: #ff4800;
    font-size: 3.25rem;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

body.home .stat-label {
    display: block;
    margin-top: 0.6rem;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

/* reveal on load / scroll -- only armed once JS confirms support */
body.home.reveal-ready .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

body.home.reveal-ready .reveal.is-visible {
    opacity: 1;
    transform: none;
}

body.home.reveal-ready .hero .reveal:nth-child(1) { transition-delay: 0.05s; }
body.home.reveal-ready .hero .reveal:nth-child(2) { transition-delay: 0.15s; }
body.home.reveal-ready .hero .reveal:nth-child(3) { transition-delay: 0.25s; }
body.home.reveal-ready .hero .reveal:nth-child(4) { transition-delay: 0.35s; }
body.home.reveal-ready .stat:nth-child(1) { transition-delay: 0.05s; }
body.home.reveal-ready .stat:nth-child(2) { transition-delay: 0.13s; }
body.home.reveal-ready .stat:nth-child(3) { transition-delay: 0.21s; }
body.home.reveal-ready .stat:nth-child(4) { transition-delay: 0.29s; }
body.home.reveal-ready .stat:nth-child(5) { transition-delay: 0.37s; }

@media screen and (max-width: 736px) {
    body.home .hero {
        margin-bottom: 2.5rem;
        padding: 3rem 1.25rem 7rem;
    }

    body.home .hero .home-logo {
        margin-bottom: 1.25rem;
    }

    body.home .hero .home-title {
        font-size: 2.35rem;
    }

    body.home .hero-lede {
        margin-bottom: 1.75rem;
        font-size: 1.05rem;
    }

    body.home .btn {
        padding: 0.7rem 1.5rem;
        font-size: 0.95rem;
    }

    body.home .stat {
        padding: 1.25rem 0.75rem;
    }

    body.home .stat-num {
        font-size: 2.5rem;
    }

    body.home .stat-label {
        font-size: 0.75rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.home.has-hero,
    body.home .hero .home-title-main,
    body.home .hero-cue span,
    body.home .btn:hover:before {
        animation: none;
    }

    body.home.has-hero {
        background-size: 24px 24px, 100% 100%;
    }

    body.home.has-logo-fade .hero .home-logo {
        position: static;
    }

    body.home.reveal-ready .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    body.home .btn:hover,
    body.home .btn:focus-visible,
    body.home .stat:hover {
        transform: none;
    }
}

/* Logo doubles as a route home from any subpage */
body.home .logo-link {
    display: block;
    transition: transform 0.2s ease-in-out;
}

body.home .logo-link:hover {
    transform: scale(1.05);
}

body.home .logo-link:focus-visible {
    border-radius: 8px;
    outline: 2px solid #ff8a4d;
    outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
    body.home .logo-link,
    body.home .logo-link:hover {
        transform: none;
        transition: none;
    }
}

/* Pages whose logo already carries the school name + CTE drop the subtitle,
   so the orange rule moves onto the title itself. */
body.home .page-title .home-title-main:last-child:after {
    content: "";
    display: block;
    width: 5rem;
    height: 4px;
    margin: 1rem auto 0;
    border-radius: 2px;
    background: #ff4800;
}
