/*
 * Homepage design system
 * Resolved preset: standard_business_brief
 *
 * Web token map:
 * - responsive content width: 1180px (web override for Letter geometry)
 * - body: Calibri 17px, 1.6 line height
 * - H2: #2E74B5; H3: #1F4D78; ink: #0B2545
 * - section rhythm: 72px desktop / 52px mobile
 * - card fill: #FFFFFF; quiet header fill: #F2F4F7
 * - callout fill: #F4F6F9; border: #D8E1EA
 */

body.page-home {
    --home-content-width: 1180px;
    --home-section-space: 72px;
    --home-heading-blue: #2e74b5;
    --home-heading-dark: #1f4d78;
    --home-ink: #0b2545;
    --home-copy: #40566b;
    --home-muted: #647587;
    --home-border: #d8e1ea;
    --home-table-fill: #f2f4f7;
    --home-callout-fill: #f4f6f9;
}

body.page-home main {
    overflow: clip;
    font-family: Calibri, "Segoe UI", Arial, sans-serif;
}

body.page-home main > section > .container {
    max-width: var(--home-content-width);
}

body.page-home .home-hero {
    min-height: 640px;
    padding: 92px 0 104px;
}

body.page-home .home-hero-overlay {
    background:
        linear-gradient(90deg, rgba(7, 25, 43, .96) 0%, rgba(11, 37, 69, .82) 43%, rgba(11, 37, 69, .18) 76%, rgba(11, 37, 69, .04) 100%);
}

body.page-home .home-hero-content {
    max-width: var(--home-content-width);
}

body.page-home .home-hero .hero-badge {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 22px;
    padding: 8px 13px;
    border: 1px solid rgba(255,255,255,.28);
    border-radius: 999px;
    background: rgba(255,255,255,.10);
    color: #cdeaff;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

body.page-home .home-hero .hero-title {
    max-width: 790px;
    margin-bottom: 24px;
    font-size: clamp(48px, 5.15vw, 70px);
    font-weight: 700;
    line-height: 1.01;
    letter-spacing: -.035em;
    text-wrap: balance;
}

body.page-home .home-hero .hero-subtitle {
    max-width: 690px;
    color: rgba(255,255,255,.88);
    font-size: 19px;
    line-height: 1.58;
}

body.page-home .home-hero .hero-buttons {
    gap: 14px;
}

body.page-home .home-hero .hero-buttons .btn {
    min-height: 50px;
    padding: 14px 24px;
    border-radius: 8px;
}

body.page-home .home-hero .btn-primary {
    background: var(--home-heading-blue);
    border-color: #74b7e4;
    box-shadow: 0 16px 34px rgba(0,0,0,.22);
}

body.page-home .home-proof-strip {
    margin-top: -48px;
    padding: 0 0 26px;
}

body.page-home .proof-grid {
    max-width: var(--home-content-width);
    gap: 16px;
}

body.page-home .proof-item {
    min-height: 116px;
    padding: 18px;
    border: 1px solid var(--home-border);
    border-radius: 10px;
    background: rgba(255,255,255,.94);
    box-shadow: 0 14px 32px rgba(11,37,69,.08);
}

body.page-home .proof-item:hover {
    transform: translateY(-3px);
    border-color: rgba(46,116,181,.35);
    box-shadow: 0 18px 38px rgba(11,37,69,.12);
}

body.page-home .proof-item span {
    color: var(--home-ink);
    font-size: 17px;
}

body.page-home .proof-item p {
    color: var(--home-muted);
    font-size: 13.5px;
    line-height: 1.42;
}

body.page-home .product-categories,
body.page-home .home-insights-section,
body.page-home .b2b-section,
body.page-home .manifesto-section {
    padding: var(--home-section-space) 0;
}

body.page-home .product-categories {
    background: #fff;
}

body.page-home .home-insights-section {
    background: var(--home-callout-fill);
}

body.page-home .home-section-heading {
    max-width: 780px;
    margin: 0 0 34px;
    text-align: left;
}

body.page-home .home-section-heading .section-kicker {
    margin-bottom: 9px;
    color: var(--home-heading-blue);
    font-size: 11px;
    letter-spacing: .11em;
}

body.page-home .home-section-heading .section-title {
    margin: 0 0 10px;
    color: var(--home-heading-blue);
    font-size: clamp(34px, 3.5vw, 44px);
    line-height: 1.14;
    letter-spacing: -.022em;
    text-align: left;
    text-wrap: balance;
}

body.page-home .home-section-heading p {
    max-width: 720px;
    margin: 0;
    color: var(--home-copy);
    font-size: 17px;
    line-height: 1.58;
}

body.page-home .categories-grid,
body.page-home .home-insights-grid {
    max-width: var(--home-content-width);
    gap: 24px;
}

body.page-home .category-card,
body.page-home .home-insight-card {
    display: flex;
    min-width: 0;
    height: 100%;
    flex-direction: column;
    border: 1px solid var(--home-border);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(11,37,69,.07);
}

body.page-home .category-card:hover,
body.page-home .home-insight-card:hover,
body.page-home .home-insight-card:focus-within {
    transform: translateY(-4px);
    border-color: rgba(46,116,181,.38);
    box-shadow: 0 18px 38px rgba(11,37,69,.12);
}

body.page-home .category-image,
body.page-home .home-insight-image {
    height: 230px;
    aspect-ratio: auto;
    border-bottom: 1px solid var(--home-border);
    background: var(--home-table-fill);
}

body.page-home .category-image img {
    object-fit: contain;
    object-position: center;
    background: #f7f7f7;
}

body.page-home .category-content,
body.page-home .home-insight-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 26px;
}

body.page-home .category-content h3,
body.page-home .home-insight-content h3 {
    margin-bottom: 11px;
    color: var(--home-heading-dark);
    font-size: 23px;
    line-height: 1.24;
}

body.page-home .category-content p,
body.page-home .home-insight-content p {
    margin-bottom: 18px;
    color: var(--home-copy);
    font-size: 16px;
    line-height: 1.55;
}

body.page-home .category-content .btn-link,
body.page-home .home-insight-content .btn-link {
    margin-top: auto;
    color: var(--home-heading-blue);
    font-weight: 700;
}

body.page-home .home-insight-type {
    margin-bottom: 9px;
    color: var(--home-heading-blue);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

body.page-home .b2b-section {
    position: relative;
    background-color: var(--home-ink) !important;
    background-image: radial-gradient(circle at 85% 15%, rgba(46,116,181,.55), transparent 34%) !important;
}

body.page-home .b2b-content {
    max-width: 980px;
}

body.page-home .b2b-section .section-kicker {
    color: #9fd8f7;
}

body.page-home .b2b-content h2 {
    max-width: 780px;
    color: #fff;
    font-size: clamp(34px, 4vw, 48px);
    line-height: 1.12;
    letter-spacing: -.02em;
}

body.page-home .b2b-content p {
    max-width: 760px;
    color: rgba(255,255,255,.84);
    font-size: 17px;
    line-height: 1.58;
}

body.page-home .b2b-feature {
    min-height: 82px;
    border-radius: 10px;
    background: rgba(255,255,255,.07);
}

body.page-home .manifesto-section {
    background: #fff;
}

body.page-home .manifesto-content {
    max-width: 940px;
    margin: 0 auto;
    padding: 46px 52px;
    border: 1px solid var(--home-border);
    border-left: 5px solid var(--home-heading-blue);
    border-radius: 0 14px 14px 0;
    background: var(--home-callout-fill);
    text-align: left;
}

body.page-home .manifesto-section .section-kicker {
    color: var(--home-heading-blue);
}

body.page-home .manifesto-content h2 {
    margin-bottom: 16px;
    color: var(--home-heading-dark);
    font-size: clamp(30px, 3vw, 40px);
    line-height: 1.15;
    text-align: left;
}

body.page-home .manifesto-content blockquote {
    margin: 0;
    color: var(--home-copy);
    font-size: 18px;
    line-height: 1.62;
    text-align: left;
}

body.page-home .manifesto-content blockquote strong {
    display: block;
    margin-top: 20px;
    color: var(--home-ink);
    font-size: 22px;
}

body.page-home .manifesto-signature {
    margin-top: 24px;
    color: var(--home-muted);
    text-align: left;
}

@media (max-width: 992px) {
    body.page-home {
        --home-section-space: 62px;
    }

    body.page-home .home-hero {
        min-height: 590px;
    }

    body.page-home .proof-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.page-home .categories-grid,
    body.page-home .home-insights-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    body.page-home {
        --home-section-space: 52px;
    }

    body.page-home .home-hero {
        min-height: 610px;
        padding: 78px 0 52px;
    }

    body.page-home .home-hero-overlay {
        background: linear-gradient(180deg, rgba(11,37,69,.20) 0%, rgba(11,37,69,.68) 40%, rgba(7,25,43,.96) 100%);
    }

    body.page-home .home-hero .hero-title {
        font-size: clamp(39px, 12vw, 48px);
    }

    body.page-home .home-hero .hero-subtitle {
        font-size: 16.5px;
    }

    body.page-home .home-proof-strip {
        margin-top: 0;
        padding: 24px 0 30px;
    }

    body.page-home .proof-grid,
    body.page-home .categories-grid,
    body.page-home .home-insights-grid {
        grid-template-columns: 1fr;
    }

    body.page-home .home-section-heading .section-title {
        font-size: 32px;
    }

    body.page-home .category-image,
    body.page-home .home-insight-image {
        height: 220px;
    }

    body.page-home .manifesto-content {
        padding: 32px 24px;
    }
}

/* Homepage brand-film preview and floating player */
body.page-home .home-hero-media {
    background-color: #0b2545;
}

body.page-home .home-hero-preview {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    opacity: 0;
    transition: opacity .55s ease;
}

body.page-home .home-hero-preview.is-ready {
    opacity: 1;
}

body.page-home .hero-video-button {
    min-height: 54px;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 4px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #fff;
    cursor: pointer;
    font: inherit;
    text-align: left;
    box-shadow: none;
    transition: transform .2s ease;
}

body.page-home .hero-video-button:hover,
body.page-home .hero-video-button:focus-visible {
    background: transparent;
    transform: translateY(-2px);
}

body.page-home .hero-video-button:focus-visible,
.brand-video-close:focus-visible {
    outline: 3px solid #8bd0ff;
    outline-offset: 3px;
}

body.page-home .hero-video-button-icon {
    width: 48px;
    height: 48px;
    display: grid;
    flex: 0 0 48px;
    place-items: center;
    border-radius: 50%;
    background: #fff;
    color: #0b2545;
    box-shadow: 0 0 0 0 rgba(255, 255, 255, .48);
    animation: hero-video-pulse 2s ease-out infinite;
}

body.page-home .hero-video-button-icon svg {
    width: 21px;
    height: 21px;
    fill: currentColor;
}

body.page-home .hero-video-button-copy {
    display: grid;
    gap: 1px;
    line-height: 1.1;
}

body.page-home .hero-video-button-copy strong {
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: .01em;
    text-transform: lowercase;
    animation: hero-video-text-pulse 2s ease-out infinite;
}

@keyframes hero-video-pulse {
    0% { transform: scale(.96); box-shadow: 0 0 0 0 rgba(255, 255, 255, .52); }
    55% { transform: scale(1.04); box-shadow: 0 0 0 13px rgba(255, 255, 255, 0); }
    100% { transform: scale(.96); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

@keyframes hero-video-text-pulse {
    0%, 100% { opacity: .72; text-shadow: 0 0 0 rgba(255, 255, 255, 0); }
    55% { opacity: 1; text-shadow: 0 0 14px rgba(255, 255, 255, .52); }
}

body.video-modal-open {
    overflow: hidden;
}

.brand-video-modal {
    position: fixed;
    z-index: 20000;
    inset: 0;
    display: grid;
    place-items: center;
    padding: clamp(18px, 4vw, 56px);
    background: rgba(3, 12, 24, .86);
    opacity: 0;
    visibility: hidden;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    transition: opacity .22s ease, visibility .22s ease;
}

.brand-video-modal.is-open {
    opacity: 1;
    visibility: visible;
}

.brand-video-shell {
    position: relative;
    width: min(1180px, 94vw);
    max-height: 88vh;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 18px;
    background: #000;
    box-shadow: 0 32px 90px rgba(0, 0, 0, .56);
    transform: translateY(14px) scale(.985);
    transition: transform .24s ease;
}

.brand-video-modal.is-open .brand-video-shell {
    transform: none;
}

.brand-video-player {
    width: 100%;
    max-height: 88vh;
    display: block;
    aspect-ratio: 16 / 9;
    background: #000;
}

.brand-video-close {
    position: absolute;
    z-index: 2;
    top: 14px;
    right: 14px;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .36);
    border-radius: 50%;
    background: rgba(3, 12, 24, .76);
    color: #fff;
    cursor: pointer;
    font-size: 28px;
    line-height: 1;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

html[dir="rtl"] body.page-home .hero-video-button {
    padding: 4px;
    text-align: right;
}

html[dir="rtl"] .brand-video-close {
    right: auto;
    left: 14px;
}

@media (max-width: 680px) {
    body.page-home .home-hero .hero-buttons {
        align-items: stretch;
    }

    body.page-home .hero-video-button {
        width: fit-content;
        max-width: none;
        order: -1;
        align-self: flex-start;
        justify-content: flex-start;
        margin: -2px 0 4px;
    }

    html[dir="rtl"] body.page-home .hero-video-button {
        align-self: flex-end;
    }

    .brand-video-modal {
        padding: 12px;
    }

    .brand-video-shell {
        width: 100%;
        border-radius: 12px;
    }

    .brand-video-close {
        top: 9px;
        right: 9px;
        width: 40px;
        height: 40px;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.page-home .home-hero-preview,
    .brand-video-modal,
    .brand-video-shell {
        transition: none;
    }

    body.page-home .hero-video-button-icon,
    body.page-home .hero-video-button-copy strong {
        animation: none;
    }
}
