/* MEGST — brand tokens from logo */
:root {
    --color-green: #3fa63a;
    --color-green-dark: #2d7d2a;
    --color-red: #e53238;
    --color-red-hover: #c42a30;
    --color-yellow: #fdc313;
    --color-yellow-soft: #fff4c8;
    --color-ink: #141414;
    --color-muted: #4a4a48;
    --color-text-secondary: var(--color-muted);
    --color-bg: #f5f6f3;
    --color-surface: #ffffff;
    --color-surface-alt: #ecefe8;
    --color-border: rgba(20, 20, 20, 0.08);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;
    --radius-xl: 28px;
    --shadow-sm: 0 4px 14px rgba(20, 20, 20, 0.06);
    --shadow-md: 0 12px 40px rgba(20, 20, 20, 0.1);
    --shadow-lg: 0 24px 56px rgba(20, 20, 20, 0.11);
    --font-display: "Outfit", system-ui, sans-serif;
    --font-body: "DM Sans", system-ui, sans-serif;
    --header-topbar-h: 40px;
    /* Min height of .header-inner (logo + main nav row) */
    --header-main-h: 84px;
    /* .header-main border-bottom — include so dropdown sits under second navbar, not on it */
    --header-main-border-bottom: 1px;
    /* Full sticky header height (tier 1 + tier 2 + main border) */
    --header-h: calc(var(--header-topbar-h) + var(--header-main-h) + var(--header-main-border-bottom));
    /* Bottom edge of second navbar (same as --header-h); use for mega-menu anchor */
    --header-mega-top: var(--header-h);
    /* Space between second nav bottom and mega dropdown (desktop) */
    --nav-mega-gap: 14px;
    --layout-container-max: 1400px;
    --layout-gutter-x: 1.25rem;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--font-body);
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--color-ink);
    background: var(--color-bg);
}

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

a {
    color: var(--color-green-dark);
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.15em;
}

a:hover {
    color: var(--color-green);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Header — two tiers: utility bar + main bar */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--color-surface);
    animation: header-in 0.5s ease-out both;
}

.header-topbar {
    background: var(--color-green-dark);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    min-height: var(--header-topbar-h);
}

/* Tier 1: same horizontal gutters + max-width column as .header-main */
.header-topbar__shell {
    padding-left: var(--layout-gutter-x);
    padding-right: var(--layout-gutter-x);
    box-sizing: border-box;
}

/* Second menu: gutters on full-width bar (symmetric); inner is width-capped only */
.header-main__inner {
    width: min(100%, var(--layout-container-max));
    margin-left: auto;
    margin-right: auto;
    padding-left: 0;
    padding-right: 0;
    box-sizing: border-box;
}

.header-topbar__inner {
    padding-top: 0.45rem;
    padding-bottom: 0.45rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem 1rem;
    box-sizing: border-box;
}

.header-topbar__nav {
    flex: 1 1 auto;
    min-width: 0;
}

.header-topbar__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.2rem 0;
}

.header-topbar__list a {
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none;
    padding: 0.2rem 0.35rem;
    border-radius: var(--radius-sm);
    transition: background 0.15s ease, color 0.15s ease;
}

.header-topbar__list a:hover {
    background: transparent;
    color: #c8f5c4;
}

.header-topbar__sep {
    color: rgba(255, 255, 255, 0.45);
    padding: 0 0.15rem;
    user-select: none;
}

.header-topbar__right {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.85rem;
    flex-shrink: 0;
}

.header-topbar__action {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
    padding: 0.2rem 0.15rem;
    border-radius: var(--radius-sm);
    transition: background 0.15s ease;
}

.header-topbar__action:hover {
    background: transparent;
    color: #c8f5c4;
}

.header-topbar__ico {
    flex-shrink: 0;
    opacity: 0.95;
}

.header-main {
    background: var(--color-surface);
    border-bottom: 1px solid rgba(20, 20, 20, 0.08);
    box-shadow: 0 6px 24px rgba(20, 20, 20, 0.05);
    padding-left: var(--layout-gutter-x);
    padding-right: var(--layout-gutter-x);
    margin-left: 0;
    margin-right: 0;
    box-sizing: border-box;
}

@keyframes header-in {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header-inner {
    margin-inline: 0;
    padding-inline: 0;
    padding-top: 0.55rem;
    padding-bottom: 0.55rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 1.25rem;
    flex-wrap: nowrap;
    min-height: var(--header-main-h);
    box-sizing: border-box;
}

.brand {
    flex-shrink: 0;
    text-decoration: none;
}

.brand-logo {
    display: block;
    width: auto;
    height: 56px;
    max-width: min(300px, 48vw);
    object-fit: contain;
    object-position: left center;
    transition: transform 0.25s ease;
}

.brand:hover .brand-logo {
    transform: scale(1.02);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-surface);
    cursor: pointer;
}

.nav-toggle-bar {
    display: block;
    width: 20px;
    height: 2px;
    margin: 0 auto;
    background: var(--color-ink);
    border-radius: 1px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-header.nav-open .nav-toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.site-header.nav-open .nav-toggle-bar:nth-child(2) {
    opacity: 0;
}

.site-header.nav-open .nav-toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Nav block: logo left, menu + Apply aligned to the right */
.header-inner__panel {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem 1rem;
    min-width: 0;
}

.site-nav {
    width: max-content;
    max-width: 100%;
    min-width: 0;
}

.nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.15rem;
    justify-content: flex-end;
}

.nav-list > li > a {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 0.55rem;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    white-space: nowrap;
    color: var(--color-ink);
    text-decoration: none;
    transition: color 0.2s ease;
}

.nav-item--dropdown > a {
    padding-right: 0.45rem;
}

.nav-list > li > a:hover {
    color: var(--color-green-dark);
}

.nav-list > li > a:focus-visible {
    color: var(--color-green-dark);
    outline: none;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 0.18em;
}

.nav-list > li > a.is-active {
    color: var(--color-green-dark);
}

.nav-item--cta {
    display: flex;
    align-items: center;
    margin-left: 0.35rem;
    flex-shrink: 0;
}

.nav-item--cta .btn-apply {
    justify-self: auto;
    border-radius: 999px;
    color: #fff;
    background: var(--color-red);
    min-width: 10.5rem;
    padding-inline: 1.65rem;
}

.nav-list .nav-item--cta .btn-apply:hover,
.nav-list .nav-item--cta .btn-apply:focus-visible {
    color: #fff;
    background: var(--color-red-hover);
}

.nav-list .nav-item--cta .btn-apply.is-active {
    color: #fff;
    background: var(--color-red);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 1.15rem;
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:active {
    transform: scale(0.98);
}

.btn-apply {
    justify-self: end;
    background: var(--color-red);
    color: #fff;
    box-shadow: 0 4px 18px rgba(229, 50, 56, 0.32);
    padding: 0.55rem 1.25rem;
    font-size: 0.9rem;
    flex-shrink: 0;
    white-space: nowrap;
}

.btn-apply:hover {
    background: var(--color-red-hover);
    color: #fff;
    box-shadow: 0 6px 22px rgba(229, 50, 56, 0.45);
}

.btn-apply.is-active {
    outline: 2px solid var(--color-ink);
    outline-offset: 2px;
}

.btn-primary {
    background: var(--color-red);
    color: #fff;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background: var(--color-red-hover);
    color: #fff;
}

.btn-secondary {
    background: var(--color-yellow);
    color: var(--color-ink);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    filter: brightness(1.05);
    color: var(--color-ink);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.75);
    color: var(--color-ink);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
}

.btn-ghost:hover {
    background: #fff;
    color: var(--color-green-dark);
}

.btn-lg {
    padding: 0.7rem 1.5rem;
    font-size: 1.02rem;
}

.btn-outline-light {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.55);
    box-shadow: none;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border-color: #fff;
}

@media (max-width: 1080px) {
    /* Top bar can wrap to two rows; keep panel below full header (avoid overlap) */
    :root {
        --header-h: clamp(168px, 46vw, 220px);
    }

    .header-topbar__inner {
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .header-topbar__nav {
        flex: 0 1 auto;
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .header-topbar__list {
        justify-content: center;
    }

    .header-topbar__right {
        justify-content: center;
    }

    .header-inner {
        display: flex;
        flex-wrap: nowrap;
        justify-content: space-between;
    }

    .nav-toggle {
        display: flex;
        flex-shrink: 0;
    }

    .header-inner__panel {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        position: fixed;
        left: 0;
        right: 0;
        top: var(--header-h);
        padding: 0.75rem var(--layout-gutter-x) max(1rem, env(safe-area-inset-bottom, 0px));
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border-bottom: 1px solid var(--color-border);
        box-shadow: 0 12px 40px rgba(20, 20, 20, 0.08);
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        pointer-events: none;
        transition: max-height 0.38s ease, opacity 0.28s ease;
        min-height: 0;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-y: contain;
    }

    .header-inner__panel.is-open {
        max-height: calc(100vh - var(--header-h) - env(safe-area-inset-bottom, 0px) - 12px);
        max-height: calc(100svh - var(--header-h) - env(safe-area-inset-bottom, 0px) - 12px);
        opacity: 1;
        pointer-events: auto;
        overflow-x: hidden;
        overflow-y: auto;
        touch-action: pan-y;
    }

    .site-nav {
        width: 100%;
        min-height: 0;
    }

    .nav-list {
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: stretch;
        gap: 0;
        justify-content: flex-start;
    }

    .nav-list > li > a {
        display: block;
        padding: 0.7rem 0.65rem;
        font-size: 1rem;
        white-space: normal;
    }

    .nav-item--cta {
        margin-left: 0;
        margin-top: 0.65rem;
        padding-top: 0.65rem;
        border-top: 1px solid var(--color-border);
    }

    .nav-item--cta .btn-apply {
        width: 100%;
        justify-content: center;
        border-radius: 999px;
        color: #fff;
        background: var(--color-red);
    }

    .nav-list .nav-item--cta .btn-apply:hover,
    .nav-list .nav-item--cta .btn-apply:focus-visible {
        color: #fff;
        background: var(--color-red-hover);
    }
}

/* Main nav — dropdowns (desktop hover, mobile toggle) */
.nav-item--dropdown {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    max-width: 100%;
}

.nav-item--dropdown > a {
    flex: 1 1 auto;
    min-width: 0;
}

.nav-submenu-toggle {
    display: none;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-surface);
    cursor: pointer;
    position: relative;
}

.nav-submenu-toggle::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 0;
    height: 0;
    margin: -4px 0 0 -5px;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 7px solid var(--color-muted);
    transition: transform 0.2s ease;
}

.nav-item--dropdown:has(.nav-mega.is-open) .nav-submenu-toggle::after {
    transform: rotate(180deg);
}

@media (min-width: 1081px) {
    .nav-item--dropdown {
        display: block;
        position: relative;
    }

    .nav-submenu-toggle {
        display: none !important;
    }

    .nav-item--dropdown:has(.nav-mega) > a::after {
        content: "";
        display: inline-block;
        width: 0;
        height: 0;
        margin-left: 0.35rem;
        vertical-align: middle;
        border-left: 4px solid transparent;
        border-right: 4px solid transparent;
        border-top: 5px solid currentColor;
        opacity: 0.42;
    }

    /* Mega-menu: large white panel + caret (reference-style card, MEGST greens / neutrals) */
    .nav-item--dropdown:hover > a,
    .nav-item--dropdown:focus-within > a {
        color: var(--color-green-dark);
    }

    .nav-mega {
        position: fixed;
        left: 50%;
        right: auto;
        top: calc(var(--header-mega-top) + var(--nav-mega-gap));
        width: min(1000px, calc(100vw - 2rem));
        z-index: 400;
        margin: 0;
        padding: 0;
        background: #ffffff;
        border: none;
        border-radius: 18px;
        box-shadow:
            0 2px 4px rgba(20, 20, 20, 0.02),
            0 12px 28px rgba(20, 20, 20, 0.08),
            0 28px 64px -16px rgba(20, 45, 30, 0.14);
        box-sizing: border-box;
        opacity: 0;
        visibility: hidden;
        transform: translate(-50%, -6px);
        transition: opacity 0.24s ease, visibility 0.24s ease, transform 0.24s cubic-bezier(0.22, 1, 0.36, 1);
        max-height: none;
        overflow: visible;
    }

    /* White caret pointing at parent nav label */
    .nav-mega__caret {
        position: absolute;
        left: var(--nav-mega-caret-x, 50%);
        top: 0;
        z-index: 2;
        width: 0;
        height: 0;
        margin: 0;
        padding: 0;
        pointer-events: none;
        transform: translate(-50%, -100%);
        border-style: solid;
        border-width: 0 12px 13px 12px;
        border-color: transparent transparent #ffffff transparent;
        filter: drop-shadow(0 -1px 0 rgba(20, 20, 20, 0.08));
    }

    .nav-mega__inner {
        max-width: 100%;
        margin: 0 auto;
        padding: 1.35rem 1.35rem 1.25rem;
        box-sizing: border-box;
        max-height: calc(100vh - var(--header-mega-top) - var(--nav-mega-gap) - 0.5rem);
        overflow-x: hidden;
        overflow-y: auto;
    }

    .nav-mega__heading {
        margin: 0 0 1rem;
        padding: 0 0 0.35rem;
        border-bottom: none;
        font-family: var(--font-display);
        font-size: 0.72rem;
        font-weight: 800;
        letter-spacing: 0.14em;
        text-transform: uppercase;
        color: var(--color-muted);
    }

    /* Brand-gradient rule between section title and submenu */
    .nav-mega__heading::after {
        content: "";
        display: block;
        height: 2px;
        margin-top: 0.7rem;
        border-radius: 999px;
        background: linear-gradient(
            90deg,
            rgba(45, 125, 42, 0.25) 0%,
            rgba(63, 166, 58, 0.5) 22%,
            rgba(253, 195, 19, 0.42) 58%,
            rgba(229, 50, 56, 0.28) 100%
        );
        box-shadow: 0 1px 2px rgba(45, 125, 42, 0.08);
    }

    .nav-mega__layout {
        display: grid;
        grid-template-columns: minmax(12.5rem, 26%) minmax(0, 1fr);
        gap: 0;
        align-items: stretch;
        min-height: min(300px, 46vh);
        border: none;
        border-radius: 0;
        overflow: visible;
        background: #ffffff;
    }

    .nav-mega__sidebar {
        background: #ffffff;
        border: none;
        padding: 0.9rem 0.7rem 1rem;
        box-sizing: border-box;
    }

    .nav-mega__tabs {
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
        margin: 0;
        padding: 0;
    }

    .nav-mega__tab {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.5rem;
        width: 100%;
        margin: 0;
        padding: 0.65rem 0.75rem;
        border: none;
        border-radius: var(--radius-sm);
        background: transparent;
        font: inherit;
        font-size: 0.9rem;
        font-weight: 600;
        color: var(--color-muted);
        text-align: left;
        cursor: pointer;
        transition: color 0.18s ease;
    }

    .nav-mega__tab::after {
        content: "›";
        flex-shrink: 0;
        font-size: 1rem;
        font-weight: 400;
        line-height: 1;
        color: var(--color-muted);
        opacity: 0.45;
        transition: opacity 0.18s ease, transform 0.18s ease, color 0.18s ease;
    }

    .nav-mega__tab:hover,
    .nav-mega__tab:focus-visible {
        background: transparent;
        color: var(--color-green-dark);
        outline: none;
    }

    .nav-mega__tab:hover::after,
    .nav-mega__tab:focus-visible::after {
        opacity: 0.75;
        color: var(--color-green-dark);
    }

    .nav-mega__tab:focus-visible {
        text-decoration: underline;
        text-decoration-thickness: 2px;
        text-underline-offset: 0.15em;
    }

    .nav-mega__tab.is-active {
        background: transparent;
        color: var(--color-green-dark);
        border: none;
        box-shadow: none;
    }

    .nav-mega__tab.is-active::after {
        opacity: 1;
        color: var(--color-green-dark);
        transform: translateX(2px);
    }

    .nav-mega__panels {
        min-width: 0;
        padding: 1.4rem 1.5rem 1.55rem;
        background: #ffffff;
    }

    .nav-mega__panel[hidden] {
        display: none !important;
    }

    .nav-mega__panel-title {
        margin: 0 0 1.1rem;
        padding-bottom: 0.65rem;
        border-bottom: none;
        font-family: var(--font-display);
        font-size: 1.12rem;
        font-weight: 800;
        color: var(--color-ink);
        letter-spacing: -0.02em;
        line-height: 1.25;
    }

    .nav-mega__tree {
        list-style: none;
        margin: 0;
        padding: 0;
        font-size: 0.94rem;
    }

    .nav-mega__tree > li + li {
        margin-top: 0.2rem;
    }

    .nav-mega__link {
        display: block;
        margin: 0 -0.35rem;
        padding: 0.45rem 0.5rem;
        color: var(--color-green-dark);
        font-weight: 600;
        text-decoration: none;
        transition: color 0.15s ease;
    }

    .nav-mega__link:hover {
        color: var(--color-green);
        text-decoration: none;
    }

    .nav-mega__link:focus-visible {
        outline: none;
        color: var(--color-green);
        text-decoration: underline;
        text-decoration-thickness: 2px;
        text-underline-offset: 0.15em;
    }

    .nav-mega__link--cta {
        display: inline-flex;
        align-items: center;
        gap: 0.4rem;
        margin: 0.25rem 0 0;
        padding: 0.55rem 1rem;
        font-size: 0.92rem;
        font-weight: 700;
        color: #fff !important;
        background: linear-gradient(165deg, var(--color-red) 0%, var(--color-red-hover) 100%);
        border-radius: var(--radius-sm);
        box-shadow: 0 4px 14px rgba(229, 50, 56, 0.28);
    }

    .nav-mega__link--cta:hover {
        background: linear-gradient(165deg, var(--color-red-hover) 0%, #a82227 100%);
        transform: translateY(-1px);
    }

    .nav-mega__leaf {
        margin: 0;
    }

    .nav-mega__group {
        list-style: none;
        margin: 0.85rem 0 0;
        padding: 0;
    }

    .nav-mega__group > .nav-mega__group-label {
        display: block;
        margin: 0 0 0.45rem;
        font-family: var(--font-display);
        font-size: 0.75rem;
        font-weight: 800;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: var(--color-green-dark);
        opacity: 0.9;
    }

    .nav-mega__group-list {
        list-style: none;
        margin: 0;
        padding: 0;
        border: none;
    }

    .nav-mega__group-list > li {
        margin: 0.2rem 0;
    }

    .nav-mega__group-list .nav-mega__group {
        margin-top: 0.65rem;
    }

    .nav-item--dropdown:hover .nav-mega,
    .nav-item--dropdown:focus-within .nav-mega {
        opacity: 1;
        visibility: visible;
        transform: translate(-50%, 0);
    }
}

@media (max-width: 1080px) {
    .nav-mega__caret {
        display: none !important;
    }

    .nav-submenu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .nav-mega {
        list-style: none;
        margin: 0;
        padding: 0;
        flex: 1 1 100%;
        width: 100%;
        min-width: 0;
        min-height: 0;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height 0.45s ease, opacity 0.25s ease;
        position: static;
        transform: none;
        box-shadow: none;
        border: none;
        border-radius: var(--radius-md);
        background: #ffffff;
    }

    /* Let the parent .header-inner__panel scroll; avoid nested scroll traps */
    .nav-mega.is-open {
        max-height: 5000px;
        opacity: 1;
        overflow: visible;
        margin-top: 0.35rem;
        box-shadow: none;
    }

    .nav-mega__inner {
        padding: 0.85rem 0.6rem 1rem;
    }

    .nav-mega__heading {
        padding-bottom: 0.35rem;
        margin-bottom: 0.85rem;
    }

    .nav-mega__heading::after {
        margin-top: 0.6rem;
    }

    .nav-mega__layout {
        grid-template-columns: 1fr;
        min-height: 0;
        border-radius: 0;
        border: none;
        background: #ffffff;
    }

    .nav-mega__sidebar {
        border: none;
        background: #ffffff;
        padding: 0.65rem 0.5rem 0.85rem;
    }

    .nav-mega__tabs {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.35rem;
    }

    .nav-mega__tab {
        width: auto;
        flex: 1 1 auto;
        min-width: min(100%, 10rem);
        font-size: 0.85rem;
        padding: 0.45rem 0.6rem;
        border: none;
    }

    .nav-mega__tab.is-active {
        border: none;
        background: transparent;
        color: var(--color-green-dark);
    }

    .nav-mega__panels {
        padding: 1rem 0.65rem 1.1rem;
        background: #ffffff;
    }
}

/* CMS inner page — breadcrumb, sidebar */
.breadcrumb {
    width: min(100%, var(--layout-container-max));
    margin: 0 auto;
    padding: 0.75rem var(--layout-gutter-x) 0;
    box-sizing: border-box;
}

.breadcrumb__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.5rem;
    font-size: 0.88rem;
    color: var(--color-muted);
}

.breadcrumb__item + .breadcrumb__item::before {
    content: "/";
    margin-right: 0.5rem;
    color: var(--color-muted);
    opacity: 0.65;
    pointer-events: none;
}

.breadcrumb__list a {
    color: var(--color-green-dark);
    text-decoration: none;
    font-weight: 600;
}

.breadcrumb__list a:hover {
    text-decoration: underline;
}

.breadcrumb__current {
    color: var(--color-ink);
    font-weight: 600;
}

.page-inner--cms {
    padding-top: 0.5rem;
    padding-bottom: 3rem;
}

.page-cms-layout {
    max-width: var(--layout-container-max);
    margin: 0 auto;
    padding: 0 var(--layout-gutter-x) 2rem;
    box-sizing: border-box;
}

.page-cms-layout--sidebar {
    display: grid;
    gap: 2rem;
    align-items: start;
}

@media (min-width: 900px) {
    .page-cms-layout--sidebar {
        grid-template-columns: minmax(200px, 260px) minmax(0, 1fr);
    }
}

.page-sidebar {
    padding: 1rem 1.1rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.page-sidebar__title {
    margin: 0 0 0.75rem;
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-ink);
}

.page-sidebar__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.page-sidebar__list li + li {
    margin-top: 0.35rem;
}

.page-sidebar__list a {
    display: block;
    padding: 0.35rem 0.25rem;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--color-muted);
    text-decoration: none;
}

.page-sidebar__list a:hover {
    color: var(--color-green-dark);
}

.page-sidebar__list a:focus-visible {
    color: var(--color-green-dark);
    outline: none;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 0.15em;
}

.page-sidebar__list a.is-active {
    color: var(--color-green-dark);
}

.page-article .page-header {
    padding-top: 0.25rem;
}

.page-cms-layout .page-body {
    padding-top: 0.5rem;
}

/* Home — Hero */
.home-hero {
    position: relative;
    padding: clamp(2.5rem, 6vw, 4rem) var(--layout-gutter-x) clamp(3rem, 8vw, 5rem);
    overflow: hidden;
}

.home-hero__mesh {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 90% 70% at 85% 15%, rgba(253, 195, 19, 0.22), transparent 50%),
        radial-gradient(ellipse 70% 60% at 10% 85%, rgba(63, 166, 58, 0.2), transparent 55%),
        radial-gradient(ellipse 50% 40% at 50% 50%, rgba(229, 50, 56, 0.06), transparent 60%),
        linear-gradient(165deg, #fff 0%, #f3f6f2 45%, var(--color-bg) 100%);
    z-index: 0;
}

.home-hero__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.45;
    z-index: 0;
    pointer-events: none;
}

.home-hero__orb--1 {
    width: min(420px, 70vw);
    height: min(420px, 70vw);
    background: rgba(63, 166, 58, 0.35);
    top: -12%;
    right: -8%;
}

.home-hero__orb--2 {
    width: min(320px, 55vw);
    height: min(320px, 55vw);
    background: rgba(253, 195, 19, 0.4);
    bottom: 5%;
    left: -5%;
}

.home-hero__grid {
    position: relative;
    z-index: 1;
    max-width: 720px;
}

.home-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-green-dark);
    margin: 0 0 1rem;
}

.home-hero__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-red);
    box-shadow: 0 0 0 4px rgba(229, 50, 56, 0.2);
}

.home-hero__title {
    font-family: var(--font-display);
    font-size: clamp(2.25rem, 5.5vw, 3.35rem);
    font-weight: 800;
    line-height: 1.08;
    margin: 0 0 1rem;
    color: var(--color-ink);
    letter-spacing: -0.02em;
}

.home-hero__lead {
    font-size: 1.12rem;
    color: var(--color-muted);
    margin: 0 0 1.75rem;
    max-width: 38rem;
    line-height: 1.65;
}

.home-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    margin-bottom: 2rem;
}

.home-hero__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 0;
    padding: 1.25rem 0 0;
    border-top: 1px solid var(--color-border);
}

@media (max-width: 520px) {
    .home-hero__stats {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
}

.home-hero__stat {
    margin: 0;
}

.home-hero__stat-value {
    font-family: var(--font-display);
    font-size: 1.65rem;
    font-weight: 800;
    color: var(--color-green-dark);
    margin: 0 0 0.2rem;
}

.home-hero__stat-label {
    margin: 0;
    font-size: 0.82rem;
    color: var(--color-muted);
    font-weight: 500;
    line-height: 1.35;
}

.home-hero__card {
    width: 100%;
    max-width: 100%;
    margin-top: 0.5rem;
    padding: 1.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transform: rotate(-1deg);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.home-hero__card:hover {
    transform: rotate(0deg) translateY(-4px);
    box-shadow: 0 20px 50px rgba(20, 20, 20, 0.12);
}

.home-hero__card-quote {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.45;
    color: var(--color-ink);
    margin: 0 0 1rem;
}

.home-hero__card-meta {
    margin: 0;
    font-size: 0.88rem;
    color: var(--color-muted);
    font-style: italic;
}

/* Home — university-style band (MEGST theme) */
.theme-edu .home-hero {
    min-height: min(81vh, 810px);
    display: flex;
    align-items: center;
    padding-top: clamp(2rem, 5vw, 3.5rem);
    padding-bottom: clamp(3rem, 8vw, 5.5rem);
}

.theme-edu .home-hero__mesh {
    background:
        radial-gradient(ellipse 85% 65% at 88% 12%, rgba(253, 195, 19, 0.2), transparent 52%),
        radial-gradient(ellipse 65% 55% at 8% 88%, rgba(63, 166, 58, 0.18), transparent 55%),
        radial-gradient(ellipse 45% 38% at 48% 48%, rgba(229, 50, 56, 0.05), transparent 58%),
        linear-gradient(168deg, #fafcf9 0%, #eef3eb 42%, var(--color-bg) 100%);
}

/* Hero image: hidden unless home uses theme-edu (avoid stray markup on other pages) */
.home-hero__visual {
    display: none;
}

/* Full-bleed welcome background slider (theme-edu home only) */
.page-home.theme-edu .home-hero__mesh,
.page-home.theme-edu .home-hero__orb {
    display: none;
}

.page-home.theme-edu .home-hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.home-hero__bg-slider-track {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: min(81vh, 810px);
}

.home-hero__bg-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.85s ease;
    z-index: 0;
}

.home-hero__bg-slide.is-active {
    opacity: 1;
    z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
    .home-hero__bg-slide {
        transition: none;
    }
}

.home-hero__bg-slide img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center center;
}

/* Dark scrim — single even black wash over the full image */
.home-hero__bg-scrim {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: rgba(0, 0, 0, 0.6);
}

/* Light text on hero when image + dark scrim (page-home) */
.page-home.theme-edu .home-hero__eyebrow {
    color: rgba(255, 255, 255, 0.88);
}

.page-home.theme-edu .home-hero__title {
    color: #fff;
}

.page-home.theme-edu .home-hero__lead {
    color: rgba(255, 255, 255, 0.82);
}

.page-home.theme-edu .home-hero__actions .btn-ghost {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.45);
}

.page-home.theme-edu .home-hero__actions .btn-ghost:hover {
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.65);
}

.theme-edu .home-hero__grid {
    position: relative;
    z-index: 2;
    display: block;
    width: min(100%, var(--layout-container-max));
    margin: 0 auto;
    box-sizing: border-box;
}

.theme-edu .home-hero__copy-wrap {
    max-width: min(52rem, 100%);
    min-width: 0;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.theme-edu .home-hero__eyebrow {
    justify-content: center;
}

.theme-edu .home-hero__lead {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.theme-edu .home-hero__actions {
    justify-content: center;
}

@media (max-width: 640px) {
    .home-hero__bg-slider-track {
        min-height: 100%;
    }

    .home-hero__bg-slide img {
        object-position: center 28%;
    }
}

.theme-edu .home-hero__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin-top: 1.75rem;
    padding: 0;
    border: 1px solid rgba(20, 20, 20, 0.1);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.theme-edu .home-hero__stat {
    flex: 1 1 140px;
    padding: 1.1rem 1rem;
    text-align: center;
    border-right: 1px solid var(--color-border);
}

.theme-edu .home-hero__stat:last-child {
    border-right: none;
}

@media (max-width: 520px) {
    .theme-edu .home-hero__stat {
        flex: 1 1 100%;
        border-right: none;
        border-bottom: 1px solid var(--color-border);
    }

    .theme-edu .home-hero__stat:last-child {
        border-bottom: none;
    }
}

.home-band--muted {
    background: var(--color-surface-alt);
    border-top: 1px solid rgba(20, 20, 20, 0.05);
    border-bottom: 1px solid rgba(20, 20, 20, 0.05);
}

.theme-edu .home-highlight {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.theme-edu .home-section__title {
    position: relative;
    padding-bottom: 0.35rem;
}

.theme-edu .home-section__title::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 48px;
    height: 3px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--color-green), var(--color-yellow));
}

.theme-edu .home-section__head--row .home-section__title::after {
    left: 0;
    transform: none;
}

.animate-in {
    animation: fade-up 0.65s ease-out both;
}

.animate-in-delay-1 {
    animation-delay: 0.08s;
}

.animate-in-delay-2 {
    animation-delay: 0.16s;
}

.animate-in-delay-3 {
    animation-delay: 0.24s;
}

@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Home — shared section shell */
.home-section {
    padding: clamp(3rem, 7vw, 5rem) var(--layout-gutter-x);
}

/* Same centered column as .header-main__inner (second navbar); topbar keeps its own gutters */
.section-inner {
    width: min(100%, var(--layout-container-max));
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

.home-section__head {
    margin-bottom: 2.25rem;
    text-align: center;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.home-section__head--row {
    max-width: none;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    text-align: left;
}

.home-section__eyebrow {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-red);
    margin: 0 0 0.5rem;
}

.home-section__title {
    font-family: var(--font-display);
    font-size: clamp(1.65rem, 3.5vw, 2.15rem);
    font-weight: 800;
    margin: 0 0 0.5rem;
    color: var(--color-ink);
    letter-spacing: -0.02em;
}

.home-section__subtitle {
    margin: 0.75rem 0 0;
    color: var(--color-muted);
    font-size: 1.05rem;
    line-height: 1.55;
}

.home-link-arrow {
    font-weight: 700;
    color: var(--color-green-dark);
    text-decoration: none;
    white-space: nowrap;
    transition: transform 0.2s ease, color 0.2s ease;
}

.home-link-arrow:hover {
    color: var(--color-green);
    transform: translateX(4px);
}

/* Quick highlights */
.home-highlights__grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
}

.home-highlight {
    position: relative;
    background: var(--color-surface);
    border-radius: var(--radius-md);
    padding: 1.5rem 1.35rem;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.home-highlight__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, rgba(63, 166, 58, 0.12), rgba(253, 195, 19, 0.2));
    color: var(--color-green-dark);
    margin-bottom: 1rem;
}

.home-highlight__icon svg,
.home-highlight__svg {
    width: 26px;
    height: 26px;
}

.home-highlight__title {
    font-family: var(--font-display);
    font-size: 1.12rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    color: var(--color-ink);
}

.home-highlight__text {
    margin: 0;
    font-size: 0.95rem;
    color: var(--color-muted);
    line-height: 1.55;
}

/* Latest updates — distinct band below Discover MEGST (not flat white) */
.home-updates {
    background:
        linear-gradient(180deg, rgba(63, 166, 58, 0.04) 0%, transparent 28%),
        linear-gradient(180deg, var(--color-surface-alt) 0%, var(--color-bg) 45%, #f8faf6 100%);
    border-top: 1px solid rgba(45, 125, 42, 0.1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.home-updates__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 768px) {
    .home-updates__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.home-update {
    position: relative;
    background: var(--color-surface);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.home-update__date {
    display: block;
    font-size: 0.82rem;
    color: var(--color-muted);
    margin-bottom: 0.5rem;
}

.home-update__title {
    font-family: var(--font-display);
    font-size: 1.08rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    line-height: 1.35;
}

.home-update__title a {
    color: var(--color-ink);
    text-decoration: none;
}

.home-update__title a:hover {
    color: var(--color-green-dark);
}

.home-update__excerpt {
    margin: 0;
    font-size: 0.92rem;
    color: var(--color-muted);
    line-height: 1.5;
}

/* Recognitions */
.home-recognitions__strip {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.home-recognition {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1.1rem 1.15rem;
    background: var(--color-surface);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.45;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.home-recognition:hover {
    z-index: 1;
    transform: translateY(-4px) scale(1.1);
    box-shadow: var(--shadow-md);
    border-color: rgba(63, 166, 58, 0.22);
}

.home-recognition__mark {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(63, 166, 58, 0.15);
    color: var(--color-green-dark);
    font-size: 0.85rem;
    font-weight: 800;
}

/* Student stories — wide horizontal carousel (scroll + arrows + dots) */
.home-stories__carousel {
    position: relative;
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 0 var(--layout-gutter-x) 1.75rem;
    box-sizing: border-box;
    overflow: visible;
}

/* Track + arrows only — vertical centering is relative to the story cards, not the dots */
.home-stories__stage {
    position: relative;
    width: 100%;
    overflow: visible;
}

.home-stories__track-wrap {
    margin: 0 3.25rem;
    overflow: visible;
    padding-block: 0.35rem;
}

/*
 * Horizontal scroll; padding-block leaves room for hover scale without a huge band.
 */
.home-stories__track {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--layout-gutter-x);
    padding-inline: var(--layout-gutter-x);
    padding-block: clamp(1.15rem, 3vmin, 1.85rem);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.home-stories__track::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.home-stories__track-inner {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 1.25rem;
    width: max-content;
    min-height: min-content;
    padding-block: 0.2rem 0.35rem;
    box-sizing: border-box;
}

.home-story {
    flex: 0 0 min(680px, 82vw);
    max-width: min(680px, 82vw);
    margin: 0;
    padding: 1.65rem 1.65rem 1.5rem 1.5rem;
    scroll-snap-align: center;
    background: linear-gradient(165deg, #fdfffc 0%, #ffffff 55%, #f7faf5 100%);
    border-radius: var(--radius-md);
    border: 1px solid rgba(45, 125, 42, 0.14);
    box-shadow: none;
    position: relative;
    overflow: hidden;
    transform-origin: center center;
    transition: transform 0.3s ease;
}

.home-story:hover {
    transform: scale(1.06);
    z-index: 2;
    overflow: visible;
}

.home-story::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--color-yellow) 0%, var(--color-green) 55%, var(--color-green-dark) 100%);
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    pointer-events: none;
}

.home-story::after {
    content: "\201C";
    position: absolute;
    top: 0.65rem;
    right: 1rem;
    font-family: var(--font-display);
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1;
    color: rgba(63, 166, 58, 0.12);
    pointer-events: none;
}

.home-story__quote {
    font-size: 1.02rem;
    line-height: 1.65;
    color: var(--color-ink);
    margin: 0 0 1.35rem;
    padding-top: 0.15rem;
    padding-right: 0.5rem;
    font-style: italic;
    font-weight: 500;
    /* Target ~4–5 lines of body text per card (consistent story “box” height) */
    min-height: 8.25em;
    min-height: 5lh;
}

.home-story__footer {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.home-story__avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-green), var(--color-green-dark));
    border: none;
    color: #fff;
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(45, 125, 42, 0.25);
}

.home-story__name {
    display: block;
    font-style: normal;
    font-weight: 700;
    font-size: 0.98rem;
    color: var(--color-green-dark);
}

.home-story__role {
    font-size: 0.84rem;
    color: var(--color-muted);
    font-weight: 500;
}

.home-stories__nav {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 48px;
    height: 48px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: linear-gradient(165deg, #ffffff 0%, #f4f8f1 100%);
    color: var(--color-green-dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 2px 4px rgba(20, 20, 20, 0.04),
        0 8px 24px rgba(45, 125, 42, 0.12),
        0 0 0 1px rgba(45, 125, 42, 0.14);
    transform: translateY(-50%);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease,
        color 0.2s ease;
}

.home-stories__nav-icon {
    display: block;
    flex-shrink: 0;
    margin-left: -1px;
}

.home-stories__nav--next .home-stories__nav-icon {
    margin-left: 1px;
}

.home-stories__nav:hover {
    background: linear-gradient(165deg, var(--color-green) 0%, var(--color-green-dark) 100%);
    color: #fff;
    box-shadow:
        0 4px 8px rgba(20, 20, 20, 0.08),
        0 12px 28px rgba(45, 125, 42, 0.35);
    transform: translateY(-50%) scale(1.06);
}

.home-stories__nav:active {
    transform: translateY(-50%) scale(0.98);
}

.home-stories__nav:focus-visible {
    outline: 2px solid var(--color-green);
    outline-offset: 3px;
}

.home-stories__nav--prev {
    left: max(0.15rem, env(safe-area-inset-left, 0px));
}

.home-stories__nav--next {
    right: max(0.15rem, env(safe-area-inset-right, 0px));
}

.home-stories__dots {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.85rem;
    padding: 0;
    min-height: 1.25rem;
}

.home-stories__dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(20, 20, 20, 0.14);
    cursor: pointer;
    transition: background 0.2s ease, width 0.2s ease, border-radius 0.2s ease;
}

.home-stories__dot.is-active {
    width: 1.75rem;
    border-radius: 999px;
    background: var(--color-green-dark);
}

.home-stories__dot:focus-visible {
    outline: 2px solid var(--color-green);
    outline-offset: 2px;
}

.home-section.home-stories {
    overflow: visible;
    padding-block: clamp(2rem, 5vw, 3.25rem);
}

.home-section.home-stories .section-inner {
    overflow: visible;
}

.home-stories .home-section__head {
    margin-bottom: 1.35rem;
}

@media (max-width: 720px) {
    .home-stories__track-wrap {
        margin: 0 2.85rem;
        padding-block: 0.25rem;
    }

    .home-story {
        flex-basis: min(90vw, 620px);
        max-width: min(90vw, 620px);
        padding: 1.45rem 1.25rem 1.35rem 1.15rem;
    }

    .home-stories__nav {
        width: 42px;
        height: 42px;
    }

    .home-stories__nav-icon {
        width: 20px;
        height: 20px;
    }
}

/* Why MEGST */
.home-why__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.35rem;
}

.home-why__item {
    position: relative;
    padding: 1.5rem 1.35rem;
    border-radius: var(--radius-md);
    background: linear-gradient(145deg, #fff, rgba(247, 247, 244, 0.9));
    border: 1px solid var(--color-border);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.home-why__num {
    display: block;
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: var(--color-red);
    margin-bottom: 0.65rem;
}

.home-why__heading {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    color: var(--color-ink);
}

.home-why__item p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--color-muted);
    line-height: 1.55;
}

/* Brand banner strip */
.home-banner-strip {
    padding: 0.85rem var(--layout-gutter-x);
    background: linear-gradient(92deg, var(--color-yellow-soft) 0%, #fff 42%, rgba(63, 166, 58, 0.14) 100%);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.home-banner-strip__inner {
    width: min(100%, var(--layout-container-max));
    margin: 0 auto;
    box-sizing: border-box;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.45rem 0.65rem;
    font-family: var(--font-display);
}

.home-banner-strip__pill {
    font-weight: 800;
    font-size: 0.95rem;
    color: var(--color-green-dark);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.home-banner-strip__sep {
    color: var(--color-red);
    font-weight: 800;
    opacity: 0.85;
}

.home-banner-strip__muted {
    font-size: 0.82rem;
    color: var(--color-muted);
    font-weight: 600;
    margin-left: 0.35rem;
}

@media (max-width: 520px) {
    .home-banner-strip__muted {
        width: 100%;
        text-align: center;
        margin-left: 0;
        margin-top: 0.25rem;
    }
}

/* Split image showcase — ends with a full-bleed brand stripe before Latest updates */
.home-showcase {
    position: relative;
    padding: clamp(2.5rem, 6vw, 4rem) var(--layout-gutter-x) clamp(2rem, 4vw, 2.75rem);
    background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-surface) 42%, #fafbf8 100%);
}

.home-showcase::after {
    content: "";
    display: block;
    width: 100%;
    height: 4px;
    margin-top: clamp(1.75rem, 4vw, 2.5rem);
    border-radius: 999px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(45, 125, 42, 0.55) 12%,
        rgba(63, 166, 58, 0.75) 30%,
        rgba(253, 195, 19, 0.65) 52%,
        rgba(229, 50, 56, 0.55) 72%,
        transparent 100%
    );
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.35) inset;
}

.home-showcase__grid {
    display: grid;
    gap: 2rem;
    align-items: center;
}

@media (min-width: 900px) {
    .home-showcase__grid {
        grid-template-columns: 1.05fr 0.95fr;
        gap: 3rem;
    }
}

.home-showcase__visual {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border);
}

.home-showcase__visual--video {
    background: #0f0f0f;
}

.home-showcase__embed {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
}

.home-showcase__embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.home-showcase__img {
    width: 100%;
    height: auto;
    display: block;
}

.home-showcase__video-meta {
    margin: 0 0 0.85rem;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-text-secondary);
}

.home-showcase__video-link {
    margin: 0 0 1.25rem;
    font-size: 0.98rem;
}

.home-showcase__video-link a {
    font-weight: 600;
    color: var(--color-green-dark);
    text-decoration: none;
}

.home-showcase__video-link a:hover {
    color: var(--color-green);
    text-decoration: underline;
}

.home-showcase__copy .home-section__eyebrow {
    text-align: left;
    margin-left: 0;
}

.home-showcase__title {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2.05rem);
    font-weight: 800;
    margin: 0 0 0.75rem;
    color: var(--color-ink);
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.home-showcase__text {
    margin: 0 0 1.35rem;
    color: var(--color-muted);
    font-size: 1.05rem;
    line-height: 1.6;
}

.home-showcase__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
}

/* Full-bleed image banner */
.home-parallax-banner {
    position: relative;
}

.home-parallax-banner__inner {
    position: relative;
    min-height: min(48vw, 340px);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.home-parallax-banner__bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.home-parallax-banner__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        rgba(20, 20, 20, 0.78) 0%,
        rgba(45, 125, 42, 0.52) 52%,
        rgba(229, 50, 56, 0.38) 100%
    );
    z-index: 1;
}

.home-parallax-banner__content {
    position: relative;
    z-index: 2;
    max-width: 680px;
    padding: clamp(2rem, 5vw, 3rem) var(--layout-gutter-x);
    text-align: center;
}

.home-parallax-banner__title {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 3.2vw, 2rem);
    font-weight: 800;
    color: #fff;
    margin: 0 0 0.65rem;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.4);
    letter-spacing: -0.02em;
}

.home-parallax-banner__text {
    margin: 0;
    font-size: 1.04rem;
    color: rgba(255, 255, 255, 0.93);
    line-height: 1.55;
}

/* CTA band — final home section before footer */
.home-cta {
    position: relative;
    padding: clamp(3.75rem, 9vw, 5.25rem) var(--layout-gutter-x);
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(20, 20, 20, 0.12);
}

.home-cta__bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(125deg, var(--color-green-dark) 0%, #256b22 35%, var(--color-green) 70%, #4caf50 100%);
    z-index: 0;
}

.home-cta__bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 80% at 90% 20%, rgba(253, 195, 19, 0.25), transparent 50%),
        radial-gradient(ellipse 50% 60% at 10% 80%, rgba(229, 50, 56, 0.15), transparent 45%);
}

.home-cta__inner {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 720px;
}

.home-cta__title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 2.35rem);
    font-weight: 800;
    color: #fff;
    margin: 0 0 0.75rem;
    letter-spacing: -0.02em;
}

.home-cta__text {
    margin: 0 0 1.75rem;
    font-size: 1.08rem;
    color: rgba(255, 255, 255, 0.92);
    line-height: 1.55;
}

.home-cta__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    justify-content: center;
}

.home-cta .btn-primary {
    background: #fff;
    color: var(--color-green-dark);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.15);
}

.home-cta .btn-primary:hover {
    background: var(--color-yellow-soft);
    color: var(--color-ink);
}

/* Scroll reveal */
[data-reveal] {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

[data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

/*
 * Card hovers use transform — must override [data-reveal].is-visible (same specificity
 * order would lose). These selectors win on revealed cards.
 */
.home-highlight[data-reveal].is-visible:hover {
    z-index: 1;
    transform: translateY(-6px) scale(1.1);
    box-shadow: var(--shadow-md);
    border-color: rgba(63, 166, 58, 0.25);
}

.home-update[data-reveal].is-visible:hover {
    z-index: 1;
    box-shadow: var(--shadow-md);
    transform: translateY(-3px) scale(1.1);
}

.home-why__item[data-reveal].is-visible:hover {
    z-index: 1;
    transform: translateY(-4px) scale(1.1);
    box-shadow: var(--shadow-md);
}

/* Inner pages */
.page-inner {
    min-height: calc(100vh - var(--header-h) - 120px);
}

.page-header {
    padding: clamp(2.5rem, 6vw, 4rem) var(--layout-gutter-x);
    background: linear-gradient(135deg, rgba(63, 166, 58, 0.08), rgba(253, 195, 19, 0.12));
}

.page-header--accent {
    background: linear-gradient(135deg, rgba(229, 50, 56, 0.08), rgba(253, 195, 19, 0.15));
}

.page-title {
    font-family: var(--font-display);
    font-size: clamp(1.85rem, 4vw, 2.5rem);
    font-weight: 800;
    margin: 0 0 0.75rem;
}

.page-intro {
    margin: 0;
    max-width: 60ch;
    color: var(--color-muted);
    font-size: 1.1rem;
}

.page-note {
    margin: 1.25rem 0 0;
    font-size: 0.98rem;
}

.page-note a {
    font-weight: 600;
}

/* Footer */
.site-footer {
    margin-top: auto;
    padding: clamp(2.5rem, 5vw, 3.5rem) var(--layout-gutter-x) 2rem;
    background: linear-gradient(180deg, #0e100e 0%, #141414 55%, #121212 100%);
    color: rgba(255, 255, 255, 0.9);
}

.footer-inner {
    width: min(100%, var(--layout-container-max));
    margin: 0 auto;
    box-sizing: border-box;
}

.footer-grid {
    display: grid;
    gap: 2rem 2.5rem;
    margin-bottom: 2rem;
    text-align: left;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.95fr) minmax(0, 1fr);
        align-items: start;
    }
}

.footer-motto {
    font-family: var(--font-display);
    font-size: clamp(1.15rem, 2.5vw, 1.45rem);
    font-weight: 700;
    letter-spacing: 0.06em;
    margin: 0 0 0.65rem;
}

.footer-motto-word {
    display: inline-block;
}

.footer-dot {
    opacity: 0.5;
    margin: 0 0.15em;
}

.footer-tagline {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.62);
    max-width: 32ch;
}

.footer-nav__title {
    margin: 0 0 1rem;
    font-family: var(--font-display);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
}

.footer-nav__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-nav__list li + li {
    margin-top: 0.45rem;
}

.footer-nav__list a {
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
}

.footer-nav__list a:hover {
    color: var(--color-yellow);
}

.footer-aside__label {
    margin: 0 0 0.5rem;
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-yellow);
    letter-spacing: 0.02em;
}

.footer-meta {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.58);
}

.footer-copy {
    margin: 0;
    padding-top: 1.75rem;
    text-align: center;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.45);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

body {
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}
