/* A+B direction: advisory-led structure with an editorial Eric content layer. */
.home-hero-premium {
    background: #061a3a;
    color: #fff;
    min-height: 710px;
    overflow: hidden;
    padding: 7rem 0 2.4rem;
    position: relative;
}

.home-hero-backdrop,
.home-hero-grid {
    inset: 0;
    pointer-events: none;
    position: absolute;
}

.home-hero-backdrop {
    background:
        linear-gradient(90deg, rgba(6, 26, 58, .86) 0%, rgba(6, 26, 58, .76) 34%, rgba(6, 26, 58, .38) 58%, rgba(6, 26, 58, .08) 100%),
        url('../images/optimized/home-hero-eric-dynamic-map.webp') center / cover no-repeat,
        #061a3a;
    opacity: 1;
}

/* Preserve the complete homepage artwork on desktop. The source is already
   composed as a dark text zone plus an Eric portrait on the right, so scale
   it to the hero height instead of cropping it to the viewport width. */
@media (min-width: 992px) {
    .home-hero-backdrop {
        background:
            linear-gradient(90deg, rgba(6, 26, 58, .86) 0%, rgba(6, 26, 58, .76) 34%, rgba(6, 26, 58, .38) 58%, rgba(6, 26, 58, .08) 100%),
            url('../images/optimized/home-hero-eric-dynamic-map.webp') right center / auto 100% no-repeat,
            #061a3a;
        /* Match the full-page Hero treatment: the right-aligned complete
           artwork should dissolve into the navy copy-safe surface instead
           of exposing the artwork's own rectangular left edge. */
        -webkit-mask-image: linear-gradient(
            90deg,
            transparent 0%,
            transparent 26%,
            rgba(0, 0, 0, .18) 38%,
            rgba(0, 0, 0, .52) 53%,
            rgba(0, 0, 0, .86) 68%,
            #000 78%,
            #000 100%
        );
        mask-image: linear-gradient(
            90deg,
            transparent 0%,
            transparent 26%,
            rgba(0, 0, 0, .18) 38%,
            rgba(0, 0, 0, .52) 53%,
            rgba(0, 0, 0, .86) 68%,
            #000 78%,
            #000 100%
        );
    }
}

.home-hero-grid {
    background-image:
        linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
    background-size: 86px 86px;
    mask-image: linear-gradient(90deg, rgba(0, 0, 0, .72), transparent 78%);
}

.home-hero-premium .container {
    z-index: 1;
}

.home-hero-content {
    max-width: 700px;
    padding-bottom: 4.5rem;
}

.hero-eyebrow,
.premium-kicker {
    align-items: center;
    color: var(--primary-light);
    display: inline-flex;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .16em;
    line-height: 1.25;
    text-transform: uppercase;
}

.hero-eyebrow span {
    background: var(--primary-color);
    height: 1px;
    margin-right: .65rem;
    width: 2.25rem;
}

.home-hero-premium h1 {
    color: #fff;
    font-size: clamp(2.55rem, 4.5vw, 4.7rem);
    font-weight: 650;
    letter-spacing: -.055em;
    line-height: 1.03;
    margin: 1.35rem 0 1.45rem;
    max-width: 760px;
}

.home-hero-premium h1 em {
    color: var(--primary-light);
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: 400;
}

.hero-lead {
    color: rgba(255, 255, 255, .8);
    font-size: 1.12rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 620px;
}

.hero-managed-summary {
    display: block;
    margin-top: .7rem;
}

.hero-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
}

.hero-primary-btn,
.hero-secondary-btn {
    border-radius: 999px;
    font-size: .88rem;
    font-weight: 750;
    padding: .84rem 1.25rem;
}

.hero-primary-btn {
    background: var(--primary-color);
    color: var(--navy);
}

.hero-primary-btn:hover,
.hero-primary-btn:focus {
    background: var(--primary-light);
    color: var(--navy);
}

.hero-secondary-btn {
    border: 1px solid rgba(255, 255, 255, .34);
    color: #fff;
}

.hero-secondary-btn:hover,
.hero-secondary-btn:focus {
    background: rgba(255, 255, 255, .12);
    border-color: rgba(255, 255, 255, .72);
    color: #fff;
}

.hero-signals {
    color: rgba(255, 255, 255, .66);
    display: flex;
    flex-wrap: wrap;
    font-size: .75rem;
    gap: 1.05rem;
    margin-top: 2.15rem;
}

.hero-signals i {
    color: var(--primary-light);
    margin-right: .3rem;
}

.hero-bottom-line {
    border-top: 1px solid rgba(255, 255, 255, .16);
    bottom: 0;
    color: rgba(255, 255, 255, .58);
    font-size: .7rem;
    letter-spacing: .08em;
    padding: .85rem 0;
    position: absolute;
    text-transform: uppercase;
    width: 100%;
}

.hero-bottom-line i {
    color: var(--primary-light);
    margin-left: .35rem;
}

.hero-founder-label {
    align-items: flex-end;
    display: flex;
    flex-direction: column;
    gap: .15rem;
    letter-spacing: .02em;
    text-transform: none;
}

.hero-founder-label strong {
    color: #fff;
    font-size: .78rem;
    letter-spacing: .04em;
}

.hero-founder-label small {
    color: rgba(255, 255, 255, .6);
    font-size: .68rem;
    letter-spacing: .04em;
    text-transform: none;
}

.home-intro-section,
.home-audience-section,
.home-solutions-section,
.home-proof-section,
.home-cta-section {
    padding: 6.5rem 0;
}

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

.home-intro-section h2,
.home-audience-section h2,
.home-solutions-section h2,
.home-proof-section h2,
.home-cta-section h2 {
    color: var(--navy);
    font-size: clamp(2rem, 3.3vw, 3.15rem);
    font-weight: 650;
    letter-spacing: -.045em;
    line-height: 1.05;
    margin: .8rem 0 0;
    max-width: 720px;
}

.section-lead,
.section-heading-row > p {
    color: #64748b;
    font-size: 1.03rem;
    line-height: 1.75;
}

.method-line {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(4, 1fr);
    margin-top: 4.1rem;
    position: relative;
}

.method-line::before {
    background: #dce4ee;
    content: '';
    height: 1px;
    left: 0;
    position: absolute;
    right: 0;
    top: 1.1rem;
}

.method-step {
    min-width: 0;
    padding-right: 1rem;
    position: relative;
}

.method-index {
    background: #fff;
    color: var(--primary-dark);
    display: inline-block;
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .12em;
    padding-right: .7rem;
    position: relative;
    z-index: 1;
}

.method-icon {
    align-items: center;
    background: var(--navy);
    border: 5px solid #fff;
    border-radius: 50%;
    color: var(--primary-light);
    display: flex;
    font-size: 1.15rem;
    height: 2.65rem;
    justify-content: center;
    margin: .6rem 0 1.15rem;
    width: 2.65rem;
}

.method-step h3,
.solution-card h3,
.audience-card h3 {
    color: var(--navy);
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -.02em;
}

.method-step p {
    color: #64748b;
    font-size: .86rem;
    line-height: 1.65;
    margin: .55rem 0 0;
}

.home-audience-section {
    background: #f3f6fa;
}

.section-heading-row {
    align-items: end;
    display: flex;
    gap: 2rem;
    justify-content: space-between;
    margin-bottom: 2.4rem;
}

.section-heading-row > p {
    margin: 0;
    max-width: 380px;
}

.audience-card {
    border-radius: 2px;
    display: block;
    height: 100%;
    min-height: 285px;
    overflow: hidden;
    padding: 2.2rem;
    position: relative;
    text-decoration: none;
    transition: transform .25s ease, box-shadow .25s ease;
}

.audience-card:hover {
    box-shadow: 0 20px 44px rgba(6, 26, 58, .14);
    transform: translateY(-4px);
}

.audience-card-buyer {
    background: var(--navy);
}

.audience-card-eric {
    background:
        linear-gradient(145deg, rgba(242, 140, 24, .28), rgba(6, 26, 58, .92)),
        var(--navy);
}

.audience-card-company {
    background: #fff;
    border: 1px solid #dce4ee;
}

.audience-card-content {
    max-width: 500px;
    position: relative;
    z-index: 1;
}

.audience-label {
    color: var(--primary-color);
    display: block;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.audience-card h3 {
    font-size: clamp(1.45rem, 2.5vw, 2.1rem);
    margin: .75rem 0 1rem;
}

.audience-card-buyer h3,
.audience-card-buyer p {
    color: #fff;
}

.audience-card-eric h3,
.audience-card-eric p {
    color: #fff;
}

.audience-card-company h3 {
    color: var(--navy);
}

.audience-card p {
    color: #64748b;
    font-size: .92rem;
    line-height: 1.7;
    max-width: 430px;
}

.audience-card-buyer p {
    color: rgba(255, 255, 255, .72);
}

.audience-card-eric p {
    color: rgba(255, 255, 255, .76);
}

.audience-card-icon {
    bottom: -1.6rem;
    color: rgba(255, 255, 255, .08);
    font-size: 12rem;
    position: absolute;
    right: 1rem;
}

.audience-card-eric .audience-card-icon {
    color: rgba(255, 198, 92, .18);
}

.audience-card-company .audience-card-icon {
    color: rgba(6, 26, 58, .07);
}

.text-link {
    color: var(--primary-dark);
    display: inline-flex;
    font-size: .82rem;
    font-weight: 800;
    gap: .45rem;
    text-decoration: none;
}

.text-link:hover {
    color: var(--navy);
}

.audience-card-buyer .text-link {
    color: var(--primary-light);
}

.audience-card-eric .text-link {
    color: #ffd27d;
}

.home-solutions-section {
    background: #fff;
}

.solution-card {
    background: #fff;
    border: 1px solid #dce4ee;
    border-top: 3px solid var(--navy);
    height: 100%;
    padding: 1.7rem;
    transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}

.solution-card:hover {
    border-top-color: var(--primary-color);
    box-shadow: 0 18px 36px rgba(6, 26, 58, .1);
    transform: translateY(-3px);
}

.solution-card-featured {
    background: var(--navy);
    border-color: var(--primary-color);
}

.solution-topline {
    align-items: center;
    color: var(--primary-dark);
    display: flex;
    font-size: .7rem;
    font-weight: 800;
    justify-content: space-between;
    letter-spacing: .12em;
    margin-bottom: 2rem;
}

.solution-topline i {
    font-size: 1.3rem;
}

.solution-card h3 {
    font-size: 1.45rem;
    margin-bottom: .9rem;
}

.solution-card-featured h3,
.solution-card-featured p {
    color: #fff;
}

.solution-card p {
    color: #64748b;
    font-size: .9rem;
    line-height: 1.7;
    min-height: 92px;
}

.solution-card-featured p {
    color: rgba(255, 255, 255, .72);
}

.solution-meta {
    border-bottom: 1px solid #dce4ee;
    border-top: 1px solid #dce4ee;
    color: #718096;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .06em;
    margin: 1.25rem 0 1.35rem;
    padding: .75rem 0;
    text-transform: uppercase;
}

.solution-card-featured .solution-meta {
    border-color: rgba(255, 255, 255, .2);
    color: rgba(255, 255, 255, .62);
}

.solution-card-featured .text-link {
    color: var(--primary-light);
}

.home-proof-section {
    background: var(--navy);
    color: #fff;
}

.home-proof-section h2 {
    color: #fff;
}

.home-proof-section .section-lead {
    color: rgba(255, 255, 255, .7);
    margin-top: 1.35rem;
    max-width: 560px;
}

.proof-links {
    border-top: 1px solid rgba(255, 255, 255, .18);
    margin-top: 2.1rem;
    max-width: 560px;
}

.proof-link {
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, .18);
    color: #fff;
    display: flex;
    font-size: .9rem;
    font-weight: 650;
    justify-content: space-between;
    padding: .95rem 0;
    text-decoration: none;
}

.proof-link span {
    color: var(--primary-light);
    font-size: .68rem;
    letter-spacing: .1em;
    margin-right: 1rem;
}

.proof-link i {
    color: var(--primary-light);
    margin-left: auto;
}

.proof-link:hover {
    color: var(--primary-light);
}

.proof-image-card {
    aspect-ratio: 1.08;
    background: #102d55;
    overflow: hidden;
    position: relative;
}

.proof-image-card::after {
    background: linear-gradient(180deg, transparent 32%, rgba(3, 17, 39, .9) 100%);
    content: '';
    inset: 0;
    position: absolute;
}

.proof-image-card img {
    height: 100%;
    object-fit: cover;
    object-position: center 14%;
    width: 100%;
}

.proof-image-overlay {
    bottom: 1.35rem;
    left: 1.4rem;
    position: absolute;
    z-index: 1;
}

.proof-image-overlay span,
.proof-image-overlay small {
    display: block;
}

.proof-image-overlay span {
    font-size: 1.35rem;
    font-weight: 700;
}

.proof-image-overlay small {
    color: rgba(255, 255, 255, .68);
    font-size: .72rem;
    margin-top: .25rem;
}

.home-cta-section {
    background: #f3f6fa;
    padding-top: 4.5rem;
}

.home-cta-panel {
    align-items: center;
    background: var(--primary-color);
    display: flex;
    gap: 2rem;
    justify-content: space-between;
    padding: 2.25rem 2.5rem;
}

.home-cta-panel .premium-kicker {
    color: var(--navy);
}

.home-cta-panel h2 {
    font-size: clamp(1.7rem, 3vw, 2.6rem);
    margin-top: .5rem;
    max-width: 670px;
}

.home-cta-panel > p {
    color: rgba(3, 17, 39, .78);
    flex: 1 1 280px;
    line-height: 1.6;
    margin: 0;
    max-width: 430px;
}

.cta-btn {
    background: var(--navy);
    border-radius: 999px;
    color: #fff;
    flex: 0 0 auto;
    font-size: .85rem;
    font-weight: 800;
    padding: .85rem 1.15rem;
}

.cta-btn:hover,
.cta-btn:focus {
    background: #fff;
    color: var(--navy);
}

.cta-btn--outline {
    border: 1px solid rgba(3, 17, 39, .35);
    background: transparent;
    color: var(--navy);
}

.cta-btn--outline:hover,
.cta-btn--outline:focus {
    border-color: var(--navy);
    background: var(--navy);
    color: #fff;
}

@media (max-width: 991.98px) {
    .home-hero-premium {
        min-height: auto;
        padding-bottom: 5.2rem;
    }

    .home-hero-content {
        max-width: 650px;
    }

    .home-hero-backdrop {
        background-position: center, 68% center, center;
    }

    .method-line {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 2.5rem;
    }

    .method-line::before {
        display: none;
    }

    .section-heading-row {
        align-items: flex-start;
        flex-direction: column;
        gap: .75rem;
    }

    .solution-card p {
        min-height: auto;
    }

    .home-cta-panel {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* Keep the copy in a protected left zone on tablets and narrow desktop
   windows. The portrait remains visible on the right without the headline
   crossing Eric's face. */
@media (min-width: 577px) and (max-width: 991.98px) {
    .home-hero-content {
        max-width: min(58%, 470px);
    }

    .home-hero-premium h1 {
        font-size: clamp(2.3rem, 5.2vw, 3.4rem);
    }

    .home-hero-backdrop {
        background-position: center, 60% center, center;
    }
}

@media (max-width: 576px) {
    .home-hero-premium {
        display: flex;
        flex-direction: column;
        padding-top: 3.8rem;
        padding-bottom: 0;
    }

    .home-hero-backdrop {
        background:
            linear-gradient(180deg, rgba(6, 26, 58, .98) 0%, rgba(6, 26, 58, .92) 72%, rgba(6, 26, 58, .78) 100%),
            url('../images/optimized/home-hero-eric-dynamic-map.webp') center / cover no-repeat,
            #061a3a;
        opacity: 1;
    }

    .home-hero-premium .container { order: 1; }

    .home-hero-content {
        padding-bottom: 2.2rem;
    }

    /* The mobile art direction gives Eric his own image panel. Keeping the
       portrait out of the copy layer prevents the face from being hidden by
       the headline on narrow screens. */
    .home-hero-visual {
        background:
            linear-gradient(180deg, rgba(6, 26, 58, .04) 0%, rgba(6, 26, 58, .66) 100%),
            url('../images/optimized/home-hero-eric-dynamic-map.webp') 70% 24% / cover no-repeat;
        display: block;
        height: 245px;
        order: 2;
        position: relative;
        width: 100%;
        z-index: 1;
    }

    .hero-bottom-line {
        bottom: auto;
        order: 3;
        position: relative;
    }

    .home-hero-premium h1 {
        font-size: 2.55rem;
    }

    .hero-lead {
        font-size: 1rem;
    }

    .hero-actions,
    .hero-actions .btn {
        width: 100%;
    }

    .hero-signals {
        flex-direction: column;
        gap: .45rem;
        margin-top: 1.35rem;
    }

    .home-intro-section,
    .home-audience-section,
    .home-solutions-section,
    .home-proof-section {
        padding: 4.5rem 0;
    }

    .method-line {
        grid-template-columns: 1fr;
        margin-top: 3rem;
    }

    .method-step {
        padding-right: 0;
    }

    .audience-card {
        min-height: 250px;
        padding: 1.55rem;
    }

    .solution-card {
        padding: 1.4rem;
    }

    .home-cta-section {
        padding: 2.5rem 0;
    }

    .home-cta-panel {
        padding: 1.65rem;
    }

    .cta-btn {
        width: 100%;
    }
}

/* RTL homepage hero: the copy and Eric's portrait occupy separate visual
   zones so Arabic headlines never sit on top of the subject. */
.home-hero-visual {
    display: none;
}

@media (min-width: 992px) {
    [dir="rtl"] .home-hero-premium {
        padding-bottom: 2.4rem;
    }

    [dir="rtl"] .home-hero-backdrop {
        background:
            linear-gradient(90deg, rgba(6, 26, 58, .94) 0%, rgba(6, 26, 58, .82) 42%, rgba(6, 26, 58, .18) 100%),
            #061a3a;
    }

    [dir="rtl"] .home-hero-grid {
        mask-image: linear-gradient(90deg, rgba(0, 0, 0, .72), transparent 78%);
    }

    [dir="rtl"] .home-hero-visual {
        background:
            linear-gradient(90deg, rgba(6, 26, 58, .18) 0%, transparent 34%),
            url('../images/optimized/home-hero-eric-dynamic-map.webp') 70% center / cover no-repeat;
        bottom: 0;
        display: block;
        left: 52%;
        overflow: hidden;
        position: absolute;
        right: 0;
        top: 0;
        z-index: 0;
    }

    [dir="rtl"] .home-hero-content {
        margin-left: 0;
        margin-right: auto;
        max-width: 48%;
        position: relative;
        text-align: right;
        z-index: 2;
    }

    [dir="rtl"] .home-hero-content .hero-eyebrow,
    [dir="rtl"] .home-hero-content .hero-actions,
    [dir="rtl"] .home-hero-content .hero-signals {
        justify-content: flex-start;
    }
}

@media (max-width: 991.98px) {
    [dir="rtl"] .home-hero-premium {
        padding-bottom: 0;
    }

    [dir="rtl"] .home-hero-backdrop {
        background: #061a3a;
    }

    [dir="rtl"] .home-hero-grid {
        display: none;
    }

    [dir="rtl"] .home-hero-premium .container {
        max-width: none;
        padding-left: 1.2rem;
        padding-right: 1.2rem;
    }

    [dir="rtl"] .home-hero-content {
        max-width: none;
        padding-bottom: 3.3rem;
        text-align: right;
    }

    [dir="rtl"] .home-hero-visual {
        background:
            linear-gradient(180deg, rgba(6, 26, 58, .08) 0%, rgba(6, 26, 58, .5) 100%),
            url('../images/optimized/home-hero-eric-dynamic-map.webp') 72% center / cover no-repeat;
        display: block;
        height: 310px;
        position: relative;
        width: 100%;
        z-index: 1;
    }

    [dir="rtl"] .hero-bottom-line {
        bottom: auto;
        position: relative;
    }
}

/* The base rule hides the decorative panel on wide screens. Reassert the
   LTR mobile art direction after the RTL rules so the portrait panel cannot
   collapse back to zero height. */
@media (max-width: 576px) {
    .home-hero-visual {
        display: block;
        height: 245px;
    }
}
