/*
Theme Name: BrightIS
Theme URI: https://brightis.edu.kg
Author: BrightIS
Description: Custom WordPress theme for Bright International School.
Version: 0.1.0
Requires at least: 6.5
Tested up to: 6.7
Requires PHP: 8.1
Text Domain: brightis
*/

:root {
    --ink: #101828;
    --muted: #667085;
    --line: #d9e2ec;
    --paper: #ffffff;
    --soft: #f5f8fb;
    --blue: #1f4e79;
    --blue-deep: #17395b;
    --teal: #2a9d8f;
    --sun: #f5a524;
    --coral: #e86f51;
    --radius: 8px;
    --shadow: 0 18px 45px rgba(16, 24, 40, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: Inter, "SF Pro Display", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.65;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
}

.screen-reader-text:focus {
    z-index: 100;
    width: auto;
    height: auto;
    padding: 10px 14px;
    clip: auto;
    background: var(--ink);
    color: white;
}

.wrap {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -80px;
    z-index: 100;
    padding: 10px 14px;
    background: var(--ink);
    color: white;
}

.skip-link:focus {
    top: 16px;
}

.topbar {
    background: var(--blue-deep);
    color: white;
    font-size: 14px;
}

.topbar__inner {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 9px 0;
}

.topbar__group {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid rgba(217, 226, 236, 0.9);
    backdrop-filter: blur(12px);
}

.site-header__inner {
    display: flex;
    min-height: 78px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand,
.brand__link,
.custom-logo-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-weight: 800;
}

.brand img,
.custom-logo {
    width: auto;
    max-width: 170px;
    max-height: 48px;
}

.home .brand {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.home .home-eyebrow {
    margin: 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.brand__fallback {
    color: var(--blue);
    font-size: 22px;
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: white;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
    display: block;
    width: 20px;
    height: 2px;
    margin: 0 auto;
    background: var(--ink);
    content: "";
}

.nav-toggle span::before {
    transform: translateY(-7px);
}

.nav-toggle span::after {
    transform: translateY(5px);
}

.nav-toggle[aria-expanded="true"] {
    background: var(--blue);
    border-color: var(--blue);
    box-shadow: 0 12px 24px rgba(31, 78, 121, 0.24);
}

.nav-toggle[aria-expanded="true"] span {
    background: transparent;
}

.nav-toggle[aria-expanded="true"] span::before,
.nav-toggle[aria-expanded="true"] span::after {
    transform: translateY(0) rotate(45deg);
    background: white;
}

.nav-toggle[aria-expanded="true"] span::after {
    transform: translateY(0) rotate(-45deg);
}

.primary-menu {
    display: flex;
    gap: 8px;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

.primary-menu a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 8px 11px;
    border-radius: var(--radius);
    color: var(--ink);
    font-size: 15px;
    font-weight: 650;
    text-decoration: none;
}

.primary-menu a:hover,
.primary-menu .current-menu-item > a {
    background: var(--soft);
    color: var(--blue);
}

.button,
.wp-block-button__link,
button,
input[type="submit"] {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 11px 18px;
    border: 0;
    border-radius: var(--radius);
    background: var(--blue);
    color: white;
    font-weight: 750;
    text-decoration: none;
    cursor: pointer;
}

.button:hover,
.wp-block-button__link:hover {
    background: var(--blue-deep);
}

.button--light {
    background: white;
    color: var(--blue);
}

.button--outline {
    border: 1px solid rgba(255, 255, 255, 0.55);
    background: transparent;
}

.hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(145deg, #091522 0%, #12365c 52%, #0f5560 100%);
    color: white;
}

.hero--video {
    background:
        radial-gradient(circle at top left, rgba(96, 165, 250, 0.2), transparent 30%),
        radial-gradient(circle at 85% 20%, rgba(249, 115, 22, 0.14), transparent 26%),
        linear-gradient(145deg, #08111d 0%, #12284c 56%, #0c4a59 100%);
}

.hero--video .hero__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(280px, 0.98fr);
    gap: 40px;
    align-items: center;
    min-height: min(880px, calc(100svh - 78px));
    padding: 140px 0 84px;
}

.hero--video .hero__content {
    max-width: 720px;
}

.hero--video h1 {
    margin: 0;
    max-width: 10ch;
    font-size: clamp(44px, 6vw, 88px);
    line-height: 0.94;
    letter-spacing: -0.055em;
    text-wrap: balance;
}

.hero--video .hero__lead {
    max-width: 18ch;
    margin: 18px 0 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(18px, 2vw, 24px);
    line-height: 1.42;
    font-weight: 500;
}

.hero--video .hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.hero--video .hero__cta {
    min-width: 260px;
    min-height: 58px;
    padding: 16px 22px;
    border-radius: 18px;
    background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
    color: white;
    font-size: 16px;
    font-weight: 800;
    box-shadow: 0 18px 34px rgba(249, 115, 22, 0.32);
}

.hero--video .hero__cta:hover {
    background: linear-gradient(135deg, #fbbf24 0%, #ea580c 100%);
    transform: translateY(-1px);
    box-shadow: 0 22px 42px rgba(249, 115, 22, 0.38);
}

.hero--video .hero__benefits {
    display: grid;
    gap: 12px;
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
}

.hero--video .hero__benefit {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    background: rgba(8, 15, 28, 0.88);
    box-shadow: 0 14px 24px rgba(0, 0, 0, 0.2);
}

.hero--video .hero__benefit-icon {
    display: grid;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    color: white;
}

.hero--video .hero__benefit-icon svg {
    width: 22px;
    height: 22px;
}

.hero--video .hero__benefit strong {
    display: block;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.2;
}

.hero--video .hero__benefit p {
    margin: 4px 0 0;
    color: rgba(255, 255, 255, 0.74);
    font-size: 14px;
    line-height: 1.45;
}

.hero-video {
    position: relative;
    min-width: 0;
}

.hero-video__stage {
    position: relative;
    width: min(100%, 640px);
    height: min(64vh, 560px);
    min-height: 430px;
    margin-left: auto;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 32px;
    background: rgba(6, 10, 18, 0.84);
    box-shadow:
        0 28px 72px rgba(7, 12, 22, 0.48),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    cursor: grab;
    touch-action: pan-y;
    user-select: none;
}

.hero-video__stage.is-dragging {
    cursor: grabbing;
}

.hero-video__stage::before,
.hero-video__stage::after {
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 3;
    width: 84px;
    pointer-events: none;
    content: "";
}

.hero-video__stage::before {
    left: 0;
    background: linear-gradient(90deg, rgba(8, 17, 29, 0.5), transparent);
}

.hero-video__stage::after {
    right: 0;
    background: linear-gradient(270deg, rgba(8, 17, 29, 0.45), transparent);
}

.hero-video__track {
    display: flex;
    height: 100%;
    align-items: center;
    gap: 16px;
    width: max-content;
    transform: translate3d(var(--hero-video-x, 0px), 0, 0);
    will-change: transform;
}

.hero-video__item {
    --video-scale: 0.86;
    --video-opacity: 0.56;
    flex: 0 0 clamp(168px, 20vw, 220px);
    height: 86%;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 24px;
    opacity: var(--video-opacity);
    transform: scale(var(--video-scale));
    transition: opacity 160ms linear, filter 160ms linear;
    filter: saturate(0.9) contrast(0.96);
    box-shadow: 0 18px 44px rgba(9, 15, 28, 0.38);
}

.hero-video__item.is-near-center {
    filter: none;
}

.hero-video__item.is-selected {
    --video-scale: 1.12;
    --video-opacity: 1;
    filter: none;
}

.hero-video__item video,
.hero-video__fallback img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-video__fallback {
    width: min(100%, 420px);
    height: 560px;
    margin-left: auto;
    overflow: hidden;
    border-radius: 32px;
    box-shadow: var(--shadow);
}

.home .topbar {
    display: none;
}

.home .site-header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    border-bottom: 1px solid rgba(217, 226, 236, 0.9);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
}

.home .site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    width: min(1180px, calc(100vw - 40px));
    min-height: 78px;
    margin: 0 auto;
    pointer-events: auto;
}

.home .brand {
    flex: 0 0 auto;
    pointer-events: auto;
}

.home .nav-toggle {
    display: none;
}

.home .primary-nav {
    display: block;
    position: static;
    flex: 1 1 auto;
    max-width: none;
    margin-left: auto;
    margin-top: 0;
    pointer-events: auto;
}

.home .primary-nav.is-open {
    display: block;
}

.home .primary-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin: 0;
    padding: 0;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.home .primary-menu li {
    min-width: 0;
}

.home .primary-menu a {
    position: static;
    display: inline-flex;
    width: auto;
    min-height: 40px;
    padding: 8px 12px;
    border-radius: 10px;
    background: transparent;
    color: var(--ink);
    font-size: 15px;
    font-weight: 650;
    text-transform: none;
    text-shadow: none;
    box-shadow: none;
    transition: background-color 180ms ease, color 180ms ease;
}

.home .primary-menu a:hover,
.home .primary-menu .current-menu-item > a {
    color: var(--blue);
    background: var(--soft);
}

.section {
    padding: 88px 0;
}

.section--soft {
    background: var(--soft);
}

.section__head {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: end;
    margin-bottom: 34px;
}

.section__head h2,
.content h1,
.content h2 {
    margin: 0;
    color: var(--ink);
    font-size: clamp(30px, 3vw, 44px);
    line-height: 1.14;
}

.section__head p {
    max-width: 520px;
    margin: 0;
    color: var(--muted);
}

.split {
    display: grid;
    grid-template-columns: 1.02fr 0.98fr;
    gap: 48px;
    align-items: center;
}

.split__media {
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.split__media img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.check-list {
    display: grid;
    gap: 13px;
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
}

.check-list li {
    display: grid;
    grid-template-columns: 24px 1fr;
    gap: 10px;
}

.check-list li::before {
    display: inline-flex;
    width: 24px;
    height: 24px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(42, 157, 143, 0.16);
    color: var(--teal);
    content: "✓";
    font-weight: 900;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.card {
    min-height: 100%;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: white;
}

.card__icon {
    display: inline-flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    background: rgba(31, 78, 121, 0.1);
    color: var(--blue);
    font-weight: 900;
}

.card h3 {
    margin: 18px 0 8px;
    font-size: 22px;
    line-height: 1.22;
}

.card p {
    margin: 0;
    color: var(--muted);
}

.program-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.program {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: white;
}

.program img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.program__body {
    padding: 24px;
}

.program__body h3 {
    margin: 0 0 8px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.post-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: white;
}

.post-card__media {
    background: var(--soft);
}

.post-card__media img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.post-card__body {
    padding: 22px;
}

.post-card time {
    color: var(--muted);
    font-size: 14px;
}

.post-card h3 {
    margin: 8px 0 10px;
    font-size: 21px;
    line-height: 1.24;
}

.post-card a {
    text-decoration: none;
}

.cta-band {
    background: var(--blue);
    color: white;
}

.cta-band__inner {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: center;
}

.cta-band h2 {
    margin: 0;
    font-size: clamp(28px, 3vw, 42px);
    line-height: 1.1;
}

.cta-band p {
    max-width: 620px;
    margin: 12px 0 0;
    color: rgba(255, 255, 255, 0.82);
}

.page-hero {
    padding: 74px 0;
    background: var(--soft);
}

.page-hero p {
    max-width: 720px;
    color: var(--muted);
    font-size: 19px;
}

.content {
    max-width: 860px;
    margin: 0 auto;
}

.content img {
    border-radius: var(--radius);
}

.content a {
    color: var(--blue);
}

.content input,
.content textarea,
.content select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    font: inherit;
}

.site-footer {
    background: var(--ink);
    color: white;
}

.site-footer__inner {
    display: grid;
    grid-template-columns: 1.25fr 1fr 1fr;
    gap: 38px;
    padding: 56px 0;
}

.site-footer h2,
.site-footer h3 {
    margin: 0 0 14px;
}

.site-footer p,
.site-footer a {
    color: rgba(255, 255, 255, 0.78);
}

.footer-menu {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-menu a {
    text-decoration: none;
}

.site-footer__bottom {
    padding: 18px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.62);
    font-size: 14px;
}

html.nav-open,
body.nav-open {
    overflow-x: hidden;
}

body.nav-open .site-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1000;
    display: block;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: #08111d;
}

body.nav-open .site-header__inner {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    min-height: 68px;
    opacity: 1;
    visibility: visible;
}

body.nav-open .brand {
    display: inline-flex;
    position: relative;
    z-index: 1001;
    opacity: 1;
    visibility: visible;
}

body.nav-open .nav-toggle {
    display: inline-flex;
    z-index: 1002;
    opacity: 1;
    visibility: visible;
}

body.nav-open .primary-nav {
    z-index: 900;
}

.alignwide {
    max-width: 1180px;
}

@media (max-width: 920px) {
    .topbar {
        display: none;
    }

    .site-header {
        position: sticky;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        background: #08111d;
        box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .topbar__inner,
    .site-header__inner,
    .section__head,
    .cta-band__inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .site-header__inner {
        min-height: 0;
        padding: 0;
    }

    .brand {
        display: none;
    }

    .home .brand {
        display: inline-flex;
        position: relative;
        top: auto;
        left: auto;
        z-index: 1;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        min-width: 0;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .nav-toggle {
        position: absolute;
        right: 18px;
        top: 18px;
        z-index: 1002;
        display: inline-flex;
        align-items: center;
        border-color: rgba(255, 255, 255, 0.16);
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.08);
        box-shadow: none;
    }

    .nav-toggle span,
    .nav-toggle span::before,
    .nav-toggle span::after {
        background: white;
    }

    .home .nav-toggle {
        position: relative;
        display: inline-flex;
    }

    .primary-nav {
        display: block;
        position: fixed;
        top: 76px;
        right: 18px;
        left: auto;
        z-index: 900;
        width: min(290px, calc(100vw - 36px));
        max-height: calc(100vh - 84px);
        padding: 10px;
        overflow-y: auto;
        border: 1px solid var(--line);
        border-radius: var(--radius);
        background: rgba(255, 255, 255, 0.98);
        box-shadow: 0 18px 42px rgba(16, 24, 40, 0.2);
        opacity: 0;
        pointer-events: none;
        visibility: hidden;
        transform: translateX(calc(100% + 18px));
        transform-origin: top right;
        transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
    }

    .primary-nav.is-open {
        opacity: 1;
        pointer-events: auto;
        visibility: visible;
        transform: translateX(0);
    }

    .home .primary-nav {
        position: fixed;
        top: 82px;
        right: 14px;
        left: auto;
        z-index: 900;
        width: min(290px, calc(100vw - 28px));
        max-width: none;
        max-height: calc(100vh - 84px);
        transform: none;
        margin-left: 0;
        padding: 12px;
        overflow-y: auto;
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 14px;
        background: #0b1626;
        box-shadow: 0 18px 38px rgba(0, 0, 0, 0.28);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        opacity: 0;
        pointer-events: none;
        visibility: hidden;
        transform: translateX(calc(100% + 18px));
        transform-origin: top right;
        transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
    }

    .home .primary-nav.is-open {
        opacity: 1;
        pointer-events: auto;
        visibility: visible;
        transform: translateX(0);
    }

    .home .brand img,
    .home .custom-logo {
        max-width: 124px;
        max-height: 44px;
    }

    .home .home-eyebrow {
        display: none;
    }

    .home .brand__fallback {
        font-size: 18px;
    }

    .home .site-header__inner {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        width: min(1180px, calc(100vw - 28px));
        min-height: 74px;
        padding-top: 0;
    }

    .home .nav-toggle {
        position: relative;
        top: auto;
        right: auto;
        z-index: 1002;
    }

    .primary-menu {
        display: grid;
        gap: 8px;
        align-items: stretch;
        overflow: visible;
        white-space: normal;
        border-radius: 0;
        background: transparent;
        border: 0;
        box-shadow: none;
        scrollbar-width: none;
    }

    .primary-menu::-webkit-scrollbar {
        display: none;
    }

    .home .primary-menu li + li {
        margin-left: 0;
    }

    .primary-menu a {
        width: 100%;
        min-height: 48px;
        padding: 11px 13px;
        clip-path: none;
        border-radius: 10px;
        justify-content: flex-start;
        text-align: left;
        text-transform: uppercase;
        color: rgba(255, 255, 255, 0.92);
        background: rgba(255, 255, 255, 0.06);
        border: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .primary-menu a:hover,
    .primary-menu .current-menu-item > a {
        transform: none;
        color: white;
        background: rgba(31, 78, 121, 0.48);
        box-shadow: none;
    }

    .hero--video .hero__inner {
        grid-template-columns: 1fr;
        min-height: auto;
        padding: 132px 0 104px;
    }

    .home .hero--video .hero__inner {
        padding-top: 56px;
    }

    .hero--video .hero__content {
        max-width: 760px;
    }

    .hero--video h1 {
        max-width: 13ch;
        font-size: 42px;
        line-height: 1.05;
        letter-spacing: 0;
    }

    .hero--video .hero-video__stage {
        width: 100%;
        height: 520px;
        margin: 0;
    }

    .stat-grid,
    .card-grid,
    .program-grid,
    .news-grid,
    .split,
    .site-footer__inner {
        grid-template-columns: 1fr;
    }

    .stat {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }
}

@media (max-width: 560px) {
    .wrap {
        width: min(100% - 28px, 1180px);
    }

    .section {
        padding: 62px 0;
    }

    .hero--video .hero__inner {
        min-height: 560px;
        padding: 78px 0 88px;
    }

    .home .hero--video .hero__inner {
        padding-top: 48px;
    }

    .hero-mark {
        min-height: 42px;
        margin-bottom: 18px;
        padding: 0 14px;
        font-size: 13px;
        letter-spacing: 0.05em;
    }

    .home .brand {
        top: auto;
        left: auto;
        padding: 0;
        gap: 0;
    }

    .home .brand img,
    .home .custom-logo {
        max-width: 104px;
        max-height: 38px;
    }

    .eyebrow {
        max-width: calc(100% - 72px);
        margin-bottom: 18px;
        font-size: 12px;
    }

    .hero--video h1 {
        max-width: 13ch;
        font-size: 34px;
        line-height: 1.08;
        letter-spacing: 0;
    }

    .hero--video .hero__lead {
        margin-top: 24px;
        font-size: 20px;
        line-height: 1.58;
    }

    .hero--video .hero-video__stage {
        height: 430px;
        min-height: 390px;
    }

    .hero--video .hero-video__item {
        flex-basis: 156px;
    }

    .hero--video .hero__actions {
        align-items: stretch;
        flex-direction: column;
    }

    .hero--video .button,
    .hero--video .wp-block-button__link {
        width: 100%;
    }
}

@media (min-width: 921px) {
    .hero--video .hero__inner {
        gap: 52px;
        min-height: min(900px, calc(100svh - 78px));
        padding: 152px 0 88px;
    }

    .hero--video .hero__content {
        max-width: 760px;
    }

    .hero--video h1 {
        max-width: 10ch;
        font-size: clamp(60px, 5.8vw, 88px);
    }

    .hero--video .hero__lead {
        max-width: 22ch;
        margin-top: 20px;
    }

    .hero--video .hero__actions {
        flex-direction: row;
        align-items: center;
        margin-top: 28px;
    }

    .hero--video .hero__cta {
        width: auto;
        min-width: 280px;
    }

    .hero--video .hero__benefits {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 14px;
        margin-top: 30px;
    }

    .hero--video .hero__benefit {
        flex-direction: column;
        gap: 14px;
        min-height: 100%;
        padding: 18px;
    }
}

@media (max-width: 920px) {
    .hero--video .hero__inner {
        min-height: min(760px, calc(100svh - 78px));
        padding-top: 104px;
        padding-bottom: 40px;
        gap: 28px;
    }

    .hero--video h1 {
        max-width: 11ch;
        font-size: 42px;
        line-height: 1.05;
        letter-spacing: 0;
    }

    .hero--video .hero__lead {
        max-width: 20ch;
        font-size: clamp(18px, 4.8vw, 22px);
    }

    .hero--video .hero__benefits {
        gap: 10px;
    }
}

@media (max-width: 560px) {
    .hero--video .hero__inner {
        gap: 16px;
        min-height: auto;
        padding-top: 48px;
        padding-bottom: 32px;
    }

    .hero--video h1 {
        max-width: 13ch;
        font-size: 34px;
        line-height: 1.08;
        letter-spacing: 0;
    }

    .hero--video .hero__lead {
        max-width: 20ch;
        font-size: 17px;
    }

    .hero--video .hero__benefit {
        padding: 14px;
    }

    .hero--video .hero__cta {
        min-height: 54px;
        font-size: 15px;
    }
}

/* Coherent home visual pass. Keep this late so it wins over older experiments. */
.home .site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: #08111d;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.home .site-header__inner {
    display: flex;
    min-height: 76px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    width: min(1180px, calc(100vw - 40px));
    margin: 0 auto;
    padding: 0;
}

.home .brand {
    display: inline-flex;
    flex: 0 0 auto;
    flex-direction: row;
    align-items: center;
    gap: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
}

.home .brand img,
.home .custom-logo {
    width: auto;
    max-width: 138px;
    max-height: 46px;
}

.home .home-eyebrow {
    display: none;
}

.home .primary-nav {
    position: static;
    display: block;
    flex: 1 1 auto;
    max-width: none;
    margin-left: auto;
}

.home .primary-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    justify-content: flex-end;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.home .primary-menu a {
    min-height: 40px;
    padding: 8px 12px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: rgba(255, 255, 255, 0.82);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
    text-shadow: none;
    box-shadow: none;
}

.home .primary-menu a:hover,
.home .primary-menu .current-menu-item > a {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.08);
    color: white;
}

.hero--video {
    background: linear-gradient(135deg, #08111d 0%, #12243d 58%, #0c3f4b 100%);
}

.hero--video .hero__inner {
    grid-template-columns: minmax(0, 0.96fr) minmax(340px, 1.04fr);
    gap: 48px;
    min-height: calc(100svh - 76px);
    padding: 70px 0 64px;
}

.hero--video h1 {
    max-width: 12ch;
    font-size: 64px;
    line-height: 1.03;
    letter-spacing: 0;
}

.hero--video .hero__lead {
    max-width: 30ch;
    margin-top: 20px;
    font-size: 22px;
    line-height: 1.45;
}

.hero--video .hero__cta {
    min-height: 56px;
    border-radius: 8px;
}

.hero--video .hero__benefits {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 28px;
}

.hero--video .hero__benefit {
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    border-radius: 8px;
    background: rgba(8, 15, 28, 0.78);
    box-shadow: none;
}

.hero--video .hero__benefit-icon {
    border-radius: 8px;
}

.hero-video__stage,
.hero-video__fallback {
    border-radius: 10px;
}

.hero-video__item {
    border-radius: 8px;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.28);
}

.section {
    padding: 76px 0;
}

.section__head h2,
.content h1,
.content h2 {
    font-size: 38px;
    line-height: 1.16;
    letter-spacing: 0;
}

.card,
.program,
.post-card,
.split__media {
    border-radius: 8px;
    box-shadow: none;
}

.card,
.program,
.post-card {
    transition: transform 180ms ease, border-color 180ms ease;
}

.card:hover,
.program:hover,
.post-card:hover {
    transform: translateY(-2px);
    border-color: rgba(31, 78, 121, 0.2);
}

.cta-band {
    background: #0f3d63;
}

@media (max-width: 920px) {
    .home .site-header__inner {
        min-height: 68px;
        width: min(1180px, calc(100vw - 28px));
    }

    .home .brand img,
    .home .custom-logo {
        max-width: 118px;
        max-height: 40px;
    }

    .home .nav-toggle {
        position: relative;
        display: inline-flex;
        top: auto;
        right: auto;
        z-index: 1002;
        width: 44px;
        height: 44px;
        border-color: rgba(255, 255, 255, 0.16);
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.08);
        box-shadow: none;
    }

    .home .primary-nav {
        position: fixed;
        top: 76px;
        right: 14px;
        left: auto;
        z-index: 900;
        display: block;
        width: min(150px, calc(100vw - 28px));
        padding: 10px;
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 8px;
        background: #0b1626;
        box-shadow: 0 18px 36px rgba(0, 0, 0, 0.26);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateX(calc(100% + 18px));
        transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
    }

    .home .primary-nav.is-open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateX(0);
    }

    .home .primary-menu {
        display: grid;
        gap: 6px;
    }

    .home .primary-menu a {
        width: 100%;
        min-height: 44px;
        padding: 10px 12px;
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.05);
        color: rgba(255, 255, 255, 0.9);
        text-transform: none;
    }

    .hero--video .hero__inner {
        grid-template-columns: 1fr;
        gap: 28px;
        min-height: auto;
        padding: 48px 0 48px;
    }

    .hero--video h1 {
        max-width: 13ch;
        font-size: 42px;
        line-height: 1.07;
    }

    .hero--video .hero__lead {
        max-width: 28ch;
        font-size: 18px;
    }

    .hero--video .hero__benefits {
        grid-template-columns: 1fr;
    }

    .hero-video__stage {
        width: 100%;
        height: 420px;
        min-height: 360px;
    }

    .section {
        padding: 56px 0;
    }

    .section__head h2,
    .content h1,
    .content h2 {
        font-size: 30px;
    }
}

@media (max-width: 560px) {
    .home .site-header__inner {
        min-height: 64px;
    }

    .home .brand img,
    .home .custom-logo {
        max-width: 104px;
        max-height: 36px;
    }

    .home .primary-nav {
        top: 72px;
    }

    .hero--video .hero__inner {
        padding: 36px 0 40px;
    }

    .hero--video h1 {
        max-width: 13ch;
        font-size: 34px;
        line-height: 1.08;
    }

    .hero--video .hero__cta {
        width: 100%;
        min-height: 52px;
    }

    .hero-video__stage {
        height: 360px;
        min-height: 320px;
    }
}

/* Video carousel should feel embedded in the hero, not boxed. */
.hero--video .hero__inner {
    align-items: start;
}

.hero-video {
    align-self: start;
    padding-top: 2px;
}

.hero-video__stage {
    margin-top: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.hero-video__stage::before,
.hero-video__stage::after {
    display: none;
}

.hero-video__item {
    border-color: rgba(255, 255, 255, 0.14);
}

@media (min-width: 921px) {
    .hero-video__stage {
        height: min(62vh, 560px);
    }
}

@media (max-width: 920px) {
    .hero-video {
        padding-top: 0;
    }
}
