.home {
    --home-ink: #122f32;
    --home-deep: #092d32;
    --home-teal: #0e6561;
    --home-mint: #e8f2ed;
    --home-paper: #f7f8f5;
    --home-gold: #e8b866;
    background: var(--home-paper);
}

.home .hero.home-hero {
    min-height: min(940px, 100svh);
    padding: 125px 0 90px;
    align-items: center;
    background: var(--home-deep);
}

.home .home-hero .hero-slide {
    background-position: center 42%;
}

.home .home-hero .hero-slide::after {
    background: linear-gradient(90deg, rgba(5, 28, 32, 0.88) 0%, rgba(5, 28, 32, 0.68) 47%, rgba(5, 28, 32, 0.18) 100%);
}

.home .home-hero .hero-slide::before {
    background: linear-gradient(0deg, rgba(5, 28, 32, 0.55), transparent 34%, rgba(5, 28, 32, 0.2));
}

.home .home-hero .container {
    max-width: 1240px;
    padding: 0 28px;
}

.home .home-hero .hero-content {
    max-width: 790px;
    padding: 2rem 0 1.5rem;
    text-align: left;
}

.home .home-eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 26px;
    color: rgba(255, 255, 255, 0.88) !important;
    font-size: 0.78rem !important;
    font-weight: 700;
    letter-spacing: 0.17em;
    line-height: 1.4;
    text-transform: uppercase;
}

.home .home-eyebrow span {
    width: 34px;
    height: 2px;
    background: var(--home-gold);
}

.home .home-hero h1 {
    max-width: 780px;
    margin: 0 0 22px;
    color: #fff !important;
    font-family: var(--font-heading);
    font-size: clamp(3rem, 6.7vw, 6.15rem);
    font-weight: 600;
    letter-spacing: -0.055em;
    line-height: 1.02;
    text-shadow: none;
}

.home .home-hero h1 strong {
    color: var(--home-gold);
    font-weight: 600;
}

.home .home-hero .hero-subtitle {
    margin: 0 0 14px;
    color: #fff !important;
    font-size: clamp(1.15rem, 2vw, 1.55rem);
    font-weight: 600;
    line-height: 1.45;
    text-shadow: none;
}

.home .home-hero .hero-content > p:not(.home-eyebrow):not(.hero-subtitle) {
    max-width: 640px;
    margin: 0;
    color: rgba(255, 255, 255, 0.82) !important;
    font-size: clamp(1rem, 1.3vw, 1.13rem);
    line-height: 1.8;
    text-shadow: none;
}

.home .home-hero .hero-content > p strong {
    color: #fff;
}

.home .home-hero .hero-buttons {
    justify-content: flex-start;
    gap: 12px;
    margin-top: 30px;
}

.home .home-hero .hero-buttons .btn {
    min-height: 54px;
    padding: 0.85rem 1.35rem;
    border-radius: 4px;
    font-size: 0.92rem;
    text-shadow: none;
}

.home .home-hero .hero-buttons .btn-primary {
    border-color: var(--home-gold);
    background: var(--home-gold);
    color: var(--home-deep);
}

.home .home-hero .hero-buttons .btn-primary:hover {
    border-color: #f4cf91;
    background: #f4cf91;
    color: var(--home-deep);
}

.home .home-hero .hero-buttons .btn-secondary {
    border-color: rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

.home .home-hero .hero-buttons .btn-secondary:hover {
    border-color: #fff;
    background: #fff;
    color: var(--home-deep);
}

.home .home-hero .hero-buttons .btn svg {
    width: 18px;
    height: 18px;
}

.home .home-hero .home-hero-proof {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 26px;
    margin-top: 36px;
    color: rgba(255, 255, 255, 0.86);
}

.home .home-hero-proof span {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 0.85rem;
    font-weight: 500;
}

.home .home-hero-proof svg {
    width: 17px;
    height: 17px;
    color: var(--home-gold);
}

.home .section,
.home .home-partners {
    padding: clamp(76px, 9vw, 124px) 24px;
}

.home .section > .container,
.home .home-partners > .container {
    width: min(100%, 1180px);
}

.home .section h2,
.home .home-partners h2 {
    max-width: 780px;
    margin: 0 auto 54px;
    color: var(--home-ink);
    font-size: clamp(2rem, 4vw, 3.35rem);
    font-weight: 600;
    letter-spacing: -0.04em;
    line-height: 1.12;
    text-align: center;
}

.home .section h2::after,
.home .home-partners h2::after {
    left: 50%;
    width: 48px;
    height: 3px;
    transform: translateX(-50%);
    background: var(--home-teal);
}

.home .section p {
    font-size: 1rem;
    line-height: 1.8;
}

.home .home-intro {
    background: #fff;
}

.home .home-intro .columns {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
    align-items: stretch;
    gap: clamp(30px, 6vw, 82px);
}

.home .home-intro .column.impact-card {
    align-items: flex-start;
    padding: clamp(12px, 2vw, 30px) 0;
    text-align: left;
}

.home .home-intro .impact-icon {
    width: 42px;
    height: 42px;
    margin-bottom: 22px;
    color: var(--home-teal);
    stroke: var(--home-teal);
}

.home .home-intro .column.impact-card p {
    margin: 0 0 16px;
    color: #506264;
}

.home .home-intro .column.impact-card strong {
    color: var(--home-ink);
}

.home .home-intro .column > .card {
    height: 100%;
    justify-content: center;
    padding: clamp(28px, 4vw, 46px);
    border: 0;
    border-radius: 8px;
    background: var(--home-deep);
    box-shadow: 0 22px 50px rgba(9, 45, 50, 0.12);
}

.home .home-intro .column > .card::before {
    display: none;
}

.home .home-intro .column > .card h3 {
    margin-bottom: 24px;
    color: #fff;
    font-size: clamp(1.3rem, 2vw, 1.75rem);
}

.home .home-intro .column > .card ul {
    display: grid;
    gap: 15px;
    margin: 0;
    list-style: none;
}

.home .home-intro .column > .card li {
    display: flex;
    gap: 12px;
    margin: 0;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.94rem;
    line-height: 1.5;
}

.home .home-intro .column > .card li::before {
    content: "＋";
    color: var(--home-gold);
    font-weight: 700;
}

.home .home-services {
    background: var(--home-paper);
}

.home .home-services .card-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.home .home-services .card {
    min-height: 310px;
    padding: 30px 25px;
    border: 1px solid #e4e9e5;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 8px 26px rgba(18, 47, 50, 0.045);
}

.home .home-services .card::before {
    top: auto;
    bottom: 0;
    height: 3px;
    background: var(--home-teal);
    transform: scaleX(0.18);
    transform-origin: left;
    transition: transform 0.25s ease;
}

.home .home-services .card:hover::before {
    transform: scaleX(1);
}

.home .home-services .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 38px rgba(18, 47, 50, 0.11);
}

.home .home-services .card-icon {
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
    border-radius: 50%;
    background: var(--home-mint);
}

.home .home-services .card-icon svg {
    width: 24px;
    height: 24px;
    margin: 0;
    color: var(--home-teal);
    stroke: var(--home-teal);
}

.home .home-services .card h3 {
    margin-bottom: 12px;
    color: var(--home-ink);
    font-size: 1.12rem;
    line-height: 1.4;
}

.home .home-services .card p {
    margin-bottom: 18px;
    color: #5b6b6c;
    font-size: 0.89rem;
}

.home .home-services .card-link {
    margin-top: auto;
    padding-top: 0;
    color: var(--home-teal);
    font-size: 0.86rem;
}

.home .home-services > .container > .text-center {
    margin-top: 38px;
}

.home .home-services .btn-outline,
.home .home-sectors .btn-outline {
    border-color: var(--home-teal);
    border-radius: 4px;
    color: var(--home-teal);
    font-size: 0.9rem;
}

.home .home-services .btn-outline:hover,
.home .home-sectors .btn-outline:hover {
    background: var(--home-teal);
    color: #fff;
}

.home .home-sectors {
    background: #fff;
}

.home .home-sectors .columns {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
}

.home .home-sectors .column {
    min-width: 0;
    display: flex;
    align-items: stretch;
}

.home .home-sectors .sector-card {
    display: flex;
    flex: 1;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border: 1px solid #e8ece8;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 10px 32px rgba(18, 47, 50, 0.07);
}

.home .home-sectors .sector-card img {
    width: 100%;
    height: 230px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.home .home-sectors .sector-card:hover img {
    transform: scale(1.045);
}

.home .home-sectors .sector-content {
    flex: 1;
    padding: 24px 25px 28px;
}

.home .home-sectors .sector-content h3 {
    margin-bottom: 10px;
    color: var(--home-ink);
    font-size: 1.16rem;
}

.home .home-sectors .sector-content p {
    margin: 0;
    color: #5b6b6c;
    font-size: 0.9rem;
}

.home .home-sectors > .container > .text-center {
    margin-top: 38px;
}

.home .home-impact {
    background: var(--home-deep);
}

.home .home-impact h2 {
    max-width: 820px;
    color: #fff;
}

.home .home-impact h2::after {
    background: var(--home-gold);
}

.home .home-impact .stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    margin: 0 auto 38px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.home .home-impact .stat-item {
    min-width: 0;
    padding: 34px 22px;
    border-right: 1px solid rgba(255, 255, 255, 0.18);
    text-align: center;
}

.home .home-impact .stat-item:last-child {
    border-right: 0;
}

.home .home-impact .impact-icon {
    width: 32px;
    height: 32px;
    margin-bottom: 12px;
    color: var(--home-gold);
    stroke: var(--home-gold);
}

.home .home-impact .stat-number {
    color: var(--home-gold);
    font-family: var(--font-heading);
    font-size: clamp(2.7rem, 5vw, 4rem);
    font-weight: 600;
    letter-spacing: -0.05em;
    line-height: 1;
}

.home .home-impact .stat-text {
    max-width: 270px;
    margin: 12px auto 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.9rem;
    line-height: 1.6;
}

.home .home-impact .text-center p {
    color: rgba(255, 255, 255, 0.9);
}

.home .home-impact .card-link {
    color: var(--home-gold);
    font-size: 0.9rem;
}

.home .home-journal {
    background: var(--home-paper);
}

.home .home-partners-redesign {
    background: #fff;
    text-align: center;
}

.home .home-partners-redesign h2 {
    margin-bottom: clamp(24px, 3vw, 38px);
}

.home .home-partners-redesign .partners-marquee {
    display: block;
    width: 100%;
    max-width: none;
    margin: 0 auto;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 4%, #000 96%, transparent);
    mask-image: linear-gradient(to right, transparent, #000 4%, #000 96%, transparent);
}

.home .home-partners-redesign .partners-track {
    display: flex;
    width: max-content;
    animation: partners-scroll-right 32s linear infinite;
    will-change: transform;
}

.home .home-partners-redesign .partner-logo-group {
    align-items: stretch;
    gap: clamp(12px, 2vw, 24px);
    padding-right: clamp(12px, 2vw, 24px);
}

.home .home-partners-redesign .partner-logo-link {
    flex-basis: clamp(150px, 18vw, 210px);
    min-height: 100px;
    padding: 14px;
    border-color: #e1e9e5;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(14, 58, 52, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.home .home-partners-redesign .partner-logo-link:hover {
    border-color: var(--home-teal);
    box-shadow: 0 8px 24px rgba(14, 58, 52, 0.1);
}

.home .home-partners-redesign .partner-logo-link img {
    max-width: 160px;
    height: 48px;
}

.home .home-partners-redesign .partner-logo-link span {
    color: #64736e;
    font-size: 0.72rem;
}

.home .home-afnor {
    padding: clamp(52px, 7vw, 88px) 24px;
    background: var(--home-paper);
}

.home .home-afnor > .container {
    width: min(100%, 1180px);
}

.home .home-afnor-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(210px, 280px);
    align-items: center;
    gap: clamp(28px, 5vw, 64px);
    padding: clamp(26px, 5vw, 56px);
    border: 1px solid #dce6e1;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 16px 42px rgba(13, 51, 46, 0.08);
}

.home .home-afnor-copy {
    min-width: 0;
}

.home .home-afnor-copy h2 {
    margin: 0 0 18px;
    color: var(--home-ink);
    font-size: clamp(1.7rem, 3vw, 2.35rem);
    line-height: 1.2;
    letter-spacing: -0.03em;
}

.home .home-afnor-copy p {
    margin: 0 0 16px;
    color: var(--home-ink);
    font-size: 1rem;
    line-height: 1.75;
}

.home .home-afnor-copy .home-afnor-lead {
    margin-bottom: 20px;
    font-size: 1.08rem;
}

.home .home-afnor-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    padding-top: 16px;
    border-top: 1px solid #e5ebe8;
    color: var(--home-teal);
    font-weight: 700;
    line-height: 1.5;
    text-decoration: none;
}

.home .home-afnor-link:hover {
    color: #e8791c;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.home .home-afnor-link svg {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
}

.home .home-afnor-mark {
    display: grid;
    min-height: 230px;
    place-items: center;
    padding: 20px;
    border: 1px solid #e5ebe8;
    border-radius: 14px;
    background: #fff;
}

.home .home-afnor-mark img {
    display: block;
    width: min(100%, 230px);
    height: 230px;
    object-fit: contain;
}

html[data-theme="dark"] .home .home-afnor {
    background: #1e2b29;
}

html[data-theme="dark"] .home .home-afnor-card {
    border-color: #354541;
    background: #243330;
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.16);
}

html[data-theme="dark"] .home .home-afnor-copy h2,
html[data-theme="dark"] .home .home-afnor-copy p {
    color: #eaf3ef;
}

html[data-theme="dark"] .home .home-afnor-mark {
    border-color: #e5ebe8;
    background: #fff;
}

html[data-theme="dark"] .home .home-afnor-link {
    border-top-color: #40534e;
    color: #a4ded4;
}

@media (max-width: 760px) {
    .home .home-afnor-card {
        grid-template-columns: minmax(0, 1fr);
    }

    .home .home-afnor-mark {
        min-height: 150px;
    }

    .home .home-afnor-mark img {
        width: 180px;
        height: 150px;
    }
}

html[data-theme="dark"] .home .home-partners-redesign .partner-logo-link {
    border-color: #354541;
    background: #243330;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

html[data-theme="dark"] .home .home-partners-redesign .partner-logo-link span {
    color: #c1cfca;
}

@media (prefers-reduced-motion: reduce) {
    .home .home-partners-redesign .partners-track {
        animation: none;
        transform: none;
    }

    .home .home-partners-redesign .partners-marquee {
        overflow-x: auto;
        -webkit-mask-image: none;
        mask-image: none;
    }

    .home .home-partners-redesign .partner-logo-group[aria-hidden="true"] {
        display: none;
    }
}

@media (max-width: 600px) {
    .home .home-partners-redesign .partners-marquee {
        -webkit-mask-image: linear-gradient(to right, transparent, #000 2%, #000 98%, transparent);
        mask-image: linear-gradient(to right, transparent, #000 2%, #000 98%, transparent);
    }

    .home .home-partners-redesign .partners-track {
        animation-duration: 26s;
    }

    .home .home-partners-redesign .partner-logo-link {
        flex-basis: 152px;
        min-height: 90px;
        padding: 10px;
    }

    .home .home-partners-redesign .partner-logo-link img {
        height: 40px;
    }
}

.home .home-cta {
    padding: clamp(72px, 8vw, 108px) 24px;
    background: var(--home-teal);
}

.home .home-cta .cta-content {
    max-width: 850px;
    margin: 0 auto;
    text-align: center;
}

.home .home-cta h2 {
    color: #fff;
    font-size: clamp(2.15rem, 4vw, 3.4rem);
    letter-spacing: -0.04em;
}

.home .home-cta h2::after {
    left: 50%;
    background: var(--home-gold);
    transform: translateX(-50%);
}

.home .home-cta p {
    color: rgba(255, 255, 255, 0.82);
    font-size: 1rem;
}

.home .home-cta .btn-light {
    background: var(--home-gold);
    border-color: var(--home-gold);
    color: var(--home-deep);
}

.home .home-cta .btn-outline-light {
    color: #fff;
}

html[data-theme="dark"] .home {
    --home-ink: #eaf3ef;
    --home-paper: #182321;
    --home-mint: #263b36;
    background: #182321;
}

html[data-theme="dark"] .home .home-intro,
html[data-theme="dark"] .home .home-sectors,
html[data-theme="dark"] .home .home-partners-redesign {
    background: #1e2b29;
}

html[data-theme="dark"] .home .section h2,
html[data-theme="dark"] .home .home-partners h2,
html[data-theme="dark"] .home .home-sectors .sector-content h3,
html[data-theme="dark"] .home .home-services .card h3 {
    color: #eaf3ef;
}

html[data-theme="dark"] .home .home-intro .column.impact-card p,
html[data-theme="dark"] .home .home-sectors .sector-content p,
html[data-theme="dark"] .home .home-services .card p {
    color: #c1cfca;
}

html[data-theme="dark"] .home .home-services .card,
html[data-theme="dark"] .home .home-sectors .sector-card {
    border-color: #354541;
    background: #243330;
}

html[data-theme="dark"] .home .home-intro .column > .card {
    background: #102b2b;
}

@media (max-width: 900px) {
    .home .home-services .card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home .home-intro .columns {
        grid-template-columns: 1fr;
    }

    .home .home-sectors .columns {
        grid-template-columns: 1fr;
    }

    .home .home-sectors .sector-card {
        display: grid;
        grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.2fr);
        align-items: center;
        height: 280px;
    }

    .home .home-sectors .sector-card img {
        height: 100%;
        min-height: 220px;
    }
}

@media (max-width: 600px) {
    .home .hero.home-hero {
        min-height: min(820px, 100svh);
        padding: 105px 0 58px;
    }

    .home .home-hero .container {
        padding: 0 22px;
    }

    .home .home-hero .hero-content {
        padding: 1rem 0;
    }

    .home .home-eyebrow {
        margin-bottom: 20px;
        font-size: 0.67rem !important;
        letter-spacing: 0.12em;
    }

    .home .home-hero h1 {
        font-size: clamp(2.8rem, 12vw, 4.2rem);
    }

    .home .home-hero .hero-buttons {
        align-items: stretch;
        flex-direction: column;
    }

    .home .home-hero .hero-buttons .btn {
        width: 100%;
        white-space: normal;
    }

    .home .home-hero .home-hero-proof {
        gap: 12px 18px;
        margin-top: 26px;
    }

    .home .home-hero-proof span {
        font-size: 0.76rem;
    }

    .home .section,
    .home .home-partners {
        padding: 72px 20px;
    }

    .home .section h2,
    .home .home-partners h2 {
        margin-bottom: 38px;
    }

    .home .home-services .card-grid {
        grid-template-columns: 1fr;
    }

    .home .home-services .card {
        min-height: 0;
    }

    .home .home-sectors .sector-card {
        display: block;
        height: 480px;
    }

    .home .home-sectors .sector-card img {
        height: 220px;
        min-height: 0;
    }

    .home .home-impact .stats-grid {
        grid-template-columns: 1fr;
    }

    .home .home-impact .stat-item {
        padding: 28px 14px;
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    }

    .home .home-impact .stat-item:last-child {
        border-bottom: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home .home-services .card,
    .home .home-services .card::before,
    .home .home-sectors .sector-card img {
        transition: none;
    }
}
