:root {
    --home-green-dark: #173d2b;
    --home-green: #2f6f49;
    --home-green-soft: #eaf3ec;
    --home-green-soft-2: #f5faf6;
    --home-white: #ffffff;
    --home-black: #090b0a;
    --home-text: #173d2b;
    --home-muted: #607367;
    --home-border: rgba(47, 111, 73, 0.16);
}


/* =========================
   GLOBAL
========================= */

.home-page,
.home-page * {
    box-sizing: border-box;
}

.home-page {
    width: 100%;
    overflow-x: clip;
    background: var(--home-white);
    color: var(--home-text);
}

.home-container {
    width: min(1440px, calc(100% - 120px));
    margin-right: auto;
    margin-left: auto;
}

.home-eyebrow {
    display: block;
    color: var(--home-green);
    font-family: 'Montserrat', sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.home-eyebrow--light {
    color: rgba(255, 255, 255, 0.66);
}


/* =========================
   HERO
========================= */

.home-hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 700px;
    overflow: hidden;
    background: var(--home-black);
    color: var(--home-white);
}

@supports (height: 100svh) {
    .home-hero {
        height: 100svh;
    }
}

.home-hero__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
}

.home-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.72) 0%,
            rgba(0, 0, 0, 0.35) 43%,
            rgba(0, 0, 0, 0.07) 76%,
            rgba(0, 0, 0, 0.02) 100%
        ),
        linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.28) 0%,
            rgba(0, 0, 0, 0.03) 46%,
            rgba(0, 0, 0, 0.48) 100%
        );
}

.home-hero__content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: flex-end;
    padding-bottom: 110px;
}

.home-hero__text {
    max-width: 820px;
}

.home-hero__text h1 {
    max-width: 900px;
    margin: 24px 0 0;
    color: var(--home-white);
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(66px, 7vw, 118px);
    font-weight: 300;
    line-height: 0.9;
    letter-spacing: -6px;
}

.home-hero__text p {
    max-width: 620px;
    margin: 32px 0 0;
    color: rgba(255, 255, 255, 0.76);
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 300;
    line-height: 1.8;
}

.home-hero__scroll {
    position: absolute;
    right: 60px;
    bottom: 48px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 16px;
    color: rgba(255, 255, 255, 0.58);
    font-family: 'Montserrat', sans-serif;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 1.7px;
    text-transform: uppercase;
}

.home-hero__scroll-line {
    position: relative;
    width: 78px;
    height: 1px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.24);
}

.home-hero__scroll-line::after {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 40%;
    background: var(--home-white);
    animation: homeScrollLine 2.2s ease-in-out infinite;
}

@keyframes homeScrollLine {
    0% {
        transform: translateX(-120%);
    }

    100% {
        transform: translateX(350%);
    }
}


/* =========================
   LINKS & BUTTONS
========================= */

.home-text-link {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    color: var(--home-green);
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 600;
}

.home-text-link span:last-child {
    transition: transform 0.3s ease;
}

.home-text-link:hover span:last-child {
    transform: rotate(45deg);
}

.home-button {
    min-width: 230px;
    min-height: 58px;
    margin-top: 36px;
    padding: 0 10px 0 24px;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 26px;
    border-radius: 999px;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 600;
    transition:
        background 0.3s ease,
        color 0.3s ease,
        transform 0.3s ease;
}

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

.home-button--light:hover {
    background: var(--home-green-soft);
    color: var(--home-text);
    transform: translateY(-2px);
}

.home-button__icon {
    width: 39px;
    height: 39px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--home-green);
    color: var(--home-white);
    font-size: 15px;
    transition: transform 0.3s ease;
}

.home-button:hover .home-button__icon {
    transform: rotate(45deg);
}


/* =========================
   NEWS
========================= */

.news-slider-section {
    width: 100%;
    padding: 125px 0 130px;
    overflow: hidden;
    background: var(--home-white);
}

.news-slider__header {
    margin-bottom: 62px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 60px;
}

.news-slider__header h2 {
    margin: 22px 0 0;
    color: var(--home-text);
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(48px, 5vw, 82px);
    font-weight: 300;
    line-height: 0.98;
    letter-spacing: -4px;
}

.news-slider {
    display: flex;
    gap: 24px;
    padding-right: max(60px, calc((100vw - 1440px) / 2));
    padding-left: max(60px, calc((100vw - 1440px) / 2));
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
}

.news-slider::-webkit-scrollbar {
    display: none;
}

.news-slider:active,
.news-slider.is-dragging {
    cursor: grabbing;
}

.news-card {
    position: relative;
    flex: 0 0 min(430px, 31vw);
    min-width: 380px;
    height: 620px;
    overflow: hidden;
    background: var(--home-black);
    color: var(--home-white);
    text-decoration: none;
    scroll-snap-align: start;
}

.news-card__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
    transition:
        transform 0.8s cubic-bezier(0.22, 1, 0.36, 1),
        filter 0.5s ease;
}

.news-card__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.35) 0%,
            rgba(0, 0, 0, 0.03) 40%,
            rgba(0, 0, 0, 0.76) 100%
        );
}

.news-card__top {
    position: absolute;
    top: 34px;
    right: 34px;
    left: 34px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.news-card__date,
.news-card__category {
    color: rgba(255, 255, 255, 0.74);
    font-family: 'Montserrat', sans-serif;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.news-card__content {
    position: absolute;
    right: 34px;
    bottom: 36px;
    left: 34px;
    z-index: 2;
}

.news-card__content h3 {
    margin: 0;
    color: var(--home-white);
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(28px, 2.2vw, 42px);
    font-weight: 400;
    line-height: 1.08;
    letter-spacing: -1.5px;
}

.news-card__read-more {
    margin-top: 24px;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    color: rgba(255, 255, 255, 0.76);
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 600;
}

.news-card:hover .news-card__image {
    transform: scale(1.04);
    filter: brightness(0.88);
}

.news-card:hover .news-card__read-more span {
    transform: rotate(45deg);
}

.news-slider__empty {
    width: min(760px, calc(100vw - 120px));
    padding: 70px;
    border: 1px solid var(--home-border);
    background: var(--home-green-soft-2);
}

.news-slider__empty h3 {
    max-width: 620px;
    margin: 22px 0 0;
    color: var(--home-text);
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(32px, 3vw, 48px);
    font-weight: 300;
    line-height: 1.12;
    letter-spacing: -2px;
}

.news-slider__empty p {
    max-width: 560px;
    margin: 24px 0 0;
    color: var(--home-muted);
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 300;
    line-height: 1.8;
}


/* =========================
   BLACK VIDEO SECTION
========================= */

.news-feature {
    width: 100%;
    padding: 120px 70px 90px;
    background:
        radial-gradient(
            circle at 92% 10%,
            rgba(99, 145, 106, 0.2),
            transparent 35%
        ),
        var(--home-black);
    color: var(--home-white);
}

.news-feature__content {
    max-width: 980px;
    margin-bottom: 80px;
}

.news-feature__label {
    display: block;
    margin-bottom: 25px;
    color: #b7d1b8;
    font-family: 'Montserrat', sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.news-feature__content h2 {
    max-width: 950px;
    margin: 0;
    color: var(--home-white);
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(48px, 5.5vw, 92px);
    font-weight: 300;
    line-height: 0.98;
    letter-spacing: -5px;
}

.news-feature__content p {
    max-width: 730px;
    margin: 32px 0 0;
    color: rgba(255, 255, 255, 0.62);
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(15px, 1.2vw, 18px);
    font-weight: 300;
    line-height: 1.8;
}

.news-feature__button {
    min-width: 220px;
    min-height: 58px;
    margin-top: 38px;
    padding: 0 9px 0 23px;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 35px;
    border-radius: 999px;
    background: var(--home-white);
    color: var(--home-text);
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 600;
    transition:
        background 0.3s ease,
        color 0.3s ease,
        transform 0.3s ease;
}

.news-feature__button-icon {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--home-green-soft);
    color: var(--home-green);
    font-size: 17px;
    transition:
        background 0.3s ease,
        color 0.3s ease,
        transform 0.3s ease;
}

.news-feature__button:hover {
    background: var(--home-green);
    color: var(--home-white);
    transform: translateY(-2px);
}

.news-feature__button:hover .news-feature__button-icon {
    background: var(--home-white);
    color: var(--home-green);
    transform: rotate(45deg);
}

.news-feature__video {
    position: relative;
    width: 100%;
    height: 650px;
    overflow: hidden;
}

.news-feature__video video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.news-feature__video-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            180deg,
            rgba(7, 20, 12, 0.05),
            rgba(7, 20, 12, 0.62)
        );
    pointer-events: none;
}

.news-feature__video-label {
    position: absolute;
    right: 45px;
    bottom: 42px;
    left: 45px;
    z-index: 2;
    color: var(--home-white);
}

.news-feature__video-label span,
.news-feature__video-label strong {
    display: block;
}

.news-feature__video-label span {
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.62);
    font-family: 'Montserrat', sans-serif;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.news-feature__video-label strong {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(25px, 3vw, 46px);
    font-weight: 300;
    letter-spacing: -2px;
}

/* =========================
   SOLUTIONS
========================= */

.solutions-section {
    width: 100%;
    padding: 130px 0 140px;
    background: var(--home-green-soft);
}

.solutions-section__header {
    margin-bottom: 72px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 430px;
    align-items: end;
    gap: 80px;
}

.solutions-section__header h2 {
    margin: 22px 0 0;
    color: var(--home-text);
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(48px, 5vw, 82px);
    font-weight: 300;
    line-height: 0.98;
    letter-spacing: -4px;
}

.solutions-section__header > p {
    margin: 0;
    color: var(--home-muted);
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 300;
    line-height: 1.85;
}

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

.solution-card {
    position: relative;
    height: 660px;
    overflow: hidden;
    background: var(--home-black);
    color: var(--home-white);
}

.solution-card__image {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
    transition:
        opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

.solution-card__image--before {
    opacity: 1;
}

.solution-card__image--after {
    opacity: 0;
}

.solution-card--after .solution-card__image--before {
    opacity: 0;
}

.solution-card--after .solution-card__image--after {
    opacity: 1;
}

.solution-card__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.02) 28%,
            rgba(0, 0, 0, 0.18) 56%,
            rgba(0, 0, 0, 0.76) 100%
        );
}

.solution-card__content {
    position: absolute;
    right: 42px;
    bottom: 42px;
    left: 42px;
    z-index: 2;
}

.solution-card__label {
    display: block;
    margin-bottom: 17px;
    color: rgba(255, 255, 255, 0.72);
    font-family: 'Montserrat', sans-serif;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 1.8px;
    text-transform: uppercase;
}

.solution-card__content h3 {
    margin: 0;
    color: var(--home-white);
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(38px, 3.4vw, 58px);
    font-weight: 400;
    line-height: 1;
    letter-spacing: -2px;
}

.solution-card__button {
    min-width: 178px;
    min-height: 52px;
    margin-top: 28px;
    padding: 0 9px 0 22px;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border: 0;
    border-radius: 999px;
    background: var(--home-white);
    color: var(--home-text);
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition:
        background 0.3s ease,
        color 0.3s ease,
        transform 0.3s ease;
}

.solution-card__button-icon {
    width: 35px;
    height: 35px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--home-green);
    color: var(--home-white);
    transition: transform 0.3s ease;
}

.solution-card__button:hover {
    background: var(--home-green-soft);
    transform: translateY(-2px);
}

.solution-card__button:hover .solution-card__button-icon {
    transform: rotate(45deg);
}

.solution-card:hover .solution-card__image {
    transform: scale(1.03);
}


/* =========================
   CTA
========================= */

.home-cta {
    padding: 135px 0;
    background: var(--home-green-dark);
    color: var(--home-white);
}

.home-cta__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 430px;
    align-items: end;
    gap: 100px;
}

.home-cta h2 {
    max-width: 900px;
    margin: 24px 0 0;
    color: var(--home-white);
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(54px, 6vw, 96px);
    font-weight: 300;
    line-height: 0.95;
    letter-spacing: -5px;
}

.home-cta__content p {
    margin: 0;
    color: rgba(255, 255, 255, 0.68);
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 300;
    line-height: 1.85;
}


/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1100px) {
    .home-container {
        width: min(100% - 64px, 1440px);
    }

    .solutions-section__header,
    .home-cta__grid {
        gap: 60px;
    }
}


@media (max-width: 900px) {
    .home-container {
        width: calc(100% - 40px);
    }

    .home-hero__content {
        padding-bottom: 82px;
    }

    .home-hero__scroll {
        display: none;
    }

    .solutions-section__header,
    .home-cta__grid {
        grid-template-columns: 1fr;
    }

    .news-feature {
        padding-right: 32px;
        padding-left: 32px;
    }

    .news-feature__video {
        height: 520px;
    }

    .solutions-grid {
        grid-template-columns: 1fr;
    }

    .solution-card {
        height: 580px;
    }
}


@media (max-width: 650px) {
    .home-container {
        width: calc(100% - 28px);
    }

    .home-hero {
        min-height: 650px;
    }

    .home-hero__content {
        padding-bottom: 58px;
    }

    .home-hero__text h1 {
        font-size: 54px;
        letter-spacing: -3px;
    }

    .home-hero__text p {
        margin-top: 25px;
        font-size: 14px;
    }

    .news-slider-section,
    .news-feature,
    .solutions-section,
    .home-cta {
        padding-top: 82px;
        padding-bottom: 88px;
    }

    .news-slider__header {
        align-items: flex-start;
        flex-direction: column;
        margin-bottom: 42px;
    }

    .news-slider__header h2,
    .news-feature__content h2,
    .solutions-section__header h2,
    .home-cta h2 {
        font-size: 43px;
        letter-spacing: -2px;
    }

    .news-slider {
        gap: 15px;
        padding-right: 14px;
        padding-left: 14px;
    }

    .news-card {
        flex-basis: 86vw;
        min-width: 86vw;
        height: 520px;
    }

    .news-card__top,
    .news-card__content {
        right: 24px;
        left: 24px;
    }

    .news-card__top {
        top: 24px;
    }

    .news-card__content {
        bottom: 26px;
    }

    .news-card__content h3 {
        font-size: 30px;
    }

    .news-feature__content p,
    .solutions-section__header > p,
    .home-cta__content p {
        font-size: 14px;
    }

    .news-feature__video {
        height: 430px;
    }

    .news-feature__video-label {
        right: 24px;
        bottom: 24px;
        left: 24px;
    }

    .solution-card {
        height: 520px;
    }

    .solution-card__content {
        right: 24px;
        bottom: 26px;
        left: 24px;
    }

    .solution-card__content h3 {
        font-size: 39px;
    }

    .home-button {
        width: 100%;
        max-width: 330px;
    }
}


@media (max-width: 420px) {
    .home-hero__text h1 {
        font-size: 47px;
    }

    .news-slider__header h2,
    .news-feature__content h2,
    .solutions-section__header h2,
    .home-cta h2 {
        font-size: 38px;
    }

    .news-card {
        height: 480px;
    }

    .news-feature__video,
    .solution-card {
        height: 410px;
    }
}


/* RESTORED FEATURE SECTION RESPONSIVE */

@media (max-width: 900px) {
    .news-feature {
        padding: 90px 32px 60px;
    }

    .news-feature__content {
        margin-bottom: 55px;
    }

    .news-feature__video {
        height: 520px;
    }
}

@media (max-width: 650px) {
    .news-feature {
        padding: 82px 20px 48px;
    }

    .news-feature__content {
        margin-bottom: 42px;
    }

    .news-feature__content h2 {
        font-size: 43px;
        letter-spacing: -2px;
    }

    .news-feature__content p {
        font-size: 14px;
    }

    .news-feature__video {
        height: 410px;
    }

    .news-feature__video-label {
        right: 24px;
        bottom: 24px;
        left: 24px;
    }
}

@media (max-width: 420px) {
    .news-feature__content h2 {
        font-size: 38px;
    }

    .news-feature__video {
        height: 360px;
    }
}


/* =========================
   PERFORMANCE OPTIMIZATION
========================= */

.news-slider-section,
.news-feature,
.solutions-section,
.home-cta {
    content-visibility: auto;
}

.news-slider-section {
    contain-intrinsic-size: 900px;
}

.news-feature {
    contain-intrinsic-size: 1200px;
}

.solutions-section {
    contain-intrinsic-size: 1100px;
}

.home-cta {
    contain-intrinsic-size: 520px;
}

.news-card,
.solution-card,
.news-feature__video {
    contain: layout paint;
}

.news-card__image,
.solution-card__image,
.news-feature__video video {
    backface-visibility: hidden;
}

@media (prefers-reduced-motion: reduce) {
    .home-page *,
    .home-page *::before,
    .home-page *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .home-hero__scroll-line::after {
        animation: none;
    }
}
