/**
 * Home landing — editorial portal layout (homepage only)
 */

/* Full-width content below site header */
#top-banner-and-menu.outer-top-xs {
    margin-top: 0 !important;
    padding-top: 0 !important;
}
#top-banner-and-menu .margin-l-r {
    padding-left: 0 !important;
    padding-right: 0 !important;
    max-width: none !important;
}

/* ═══════════════════════════════════════════════════════════════
   PAGE SHELL
   ═══════════════════════════════════════════════════════════════ */
.hp-page {
    width: 100vw;
    position: relative;
    left: 50%;
    margin-left: -50vw;
    background: linear-gradient(165deg, #faf9f7 0%, #f0f4f8 45%, #eef1f6 100%);
    color: #1a1a2e;
    font-family: "Mulish", sans-serif;
    scroll-behavior: smooth;
}

/* ═══════════════════════════════════════════════════════════════
   SHARED TYPO
   ═══════════════════════════════════════════════════════════════ */
.hp-kicker {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #01a6fd;
    margin: 0 0 16px;
}

.hp-kicker--dark {
    color: #212158;
    opacity: 0.55;
}

/* ═══════════════════════════════════════════════════════════════
   HERO / INTRO
   ═══════════════════════════════════════════════════════════════ */
.hp-intro {
    position: relative;
    padding: 0 clamp(20px, 4vw, 48px) clamp(36px, 5vw, 52px);
    overflow: hidden;
    height: 75vh;
}

/* Brand gradient stripe */
.hp-intro__accent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #212158 0%, #e34212 50%, #0f7ab0 100%);
    z-index: 2;
}

/* Soft decorative glow behind mosaic */
.hp-intro::before {
    content: '';
    position: absolute;
    top: 10%;
    right: -5%;
    width: min(55vw, 620px);
    height: min(55vw, 620px);
    background: radial-gradient(circle, rgba(1, 166, 253, 0.12) 0%, transparent 68%);
    pointer-events: none;
}

/* Impact stats marquee — first thing in hero */
.hp-stats-marquee {
    position: relative;
    z-index: 1;
    width: 100vw;
    max-width: none;
    margin: 5px 0 20px;
    margin-left: calc(50% - 50vw);
    border-radius: 0;
    background: #212158;
    border-bottom: 3px solid #e34212;
    overflow: hidden;
}

.hp-intro__inner {
    position: relative;
    z-index: 1;
    max-width: 1280px;
    margin: 0 auto;
    padding-top: 12px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(16px, 2.5vw, 24px);
    align-items: stretch;
    height: 90%;
}

.hp-intro__copy {
    background: #fff;
    border-radius: 18px;
    padding: clamp(20px, 2.5vw, 28px);
    border: 1px solid rgba(33, 33, 88, 0.08);
    box-shadow: 0 12px 36px rgba(33, 33, 88, 0.08);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.hp-intro__copy h1 {
    font-size: clamp(1.5rem, 2.8vw, 2.15rem);
    font-weight: 900;
    line-height: 1.18;
    letter-spacing: -0.025em;
    color: #212158;
    margin: 0 0 12px;
}

@media (min-width: 992px) {
    .hp-intro__copy h1 {
        font-size: clamp(1.85rem, 3.1vw, 2.5rem);
    }
}

.hp-title-highlight {
    display: block;
    margin-top: 4px;
    background: linear-gradient(135deg, #212158 0%, #0f7ab0 55%, #01a6fd 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.hp-lead {
    font-size: clamp(0.92rem, 1.3vw, 1rem);
    line-height: 1.55;
    color: #475569;
    margin: 0 0 12px;
}

.hp-tagline {
    margin: 0 0 14px;
    padding: 0 0 0 12px;
    border-left: 3px solid #e34212;
    font-size: 0.88rem;
    font-weight: 600;
    font-style: italic;
    color: #212158;
    line-height: 1.4;
}

.hp-values {
    list-style: none;
    padding: 0;
    margin: 0 0 26px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.hp-values li {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #212158;
    padding: 5px 10px;
    background: #f4f6f9;
    border: 1px solid rgba(33, 33, 88, 0.08);
    border-radius: 99px;
}

.hp-intro__copy .hp-kicker {
    margin-bottom: 8px;
    margin-top: 18px;
}

.hp-scroll-hint {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none !important;
    padding: 11px 18px;
    background: #212158;
    color: #fff !important;
    border-radius: 8px;
    transition: background 0.2s, transform 0.2s;
    margin-top: auto;
    align-self: flex-start;
}

.hp-scroll-hint:hover {
    background: #01a6fd;
    transform: translateY(-2px);
}

.hp-scroll-hint i {
    animation: hpBounce 1.6s ease-in-out infinite;
}

@keyframes hpBounce {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(4px); }
}

/* Impact stats marquee — child elements */
.hp-stats-marquee__fade {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 48px;
    z-index: 2;
    pointer-events: none;
}

.hp-stats-marquee__fade--left {
    left: 0;
    background: linear-gradient(90deg, #212158 0%, transparent 100%);
}

.hp-stats-marquee__fade--right {
    right: 0;
    background: linear-gradient(270deg, #212158 0%, transparent 100%);
}

.hp-stats-marquee__track {
    display: flex;
    width: max-content;
    flex-wrap: nowrap;
    animation: hp-stats-marquee 40s linear infinite;
    will-change: transform;
}

.hp-stats-marquee__group {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 10px 0;
}

.hp-stat {
    display: inline-flex;
    align-items: stretch;
    gap: 10px;
    flex-shrink: 0;
    color: #fff;
    padding: 0 clamp(20px, 3vw, 32px);
    border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.hp-stat__marker {
    width: 3px;
    flex-shrink: 0;
    border-radius: 2px;
    background: var(--hp-stat-accent, #01a6fd);
    align-self: center;
    height: 28px;
}

.hp-stat__body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.hp-stat__value {
    font-size: clamp(1.15rem, 2vw, 1.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
    color: #fff;
    font-variant-numeric: tabular-nums;
}

.hp-stat__label {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.62);
    line-height: 1.35;
    white-space: nowrap;
}

@keyframes hp-stats-marquee {
    0%   { transform: translateX(0); }
    100% { transform: translateX(calc(-100% / 6)); }
}

@media (prefers-reduced-motion: reduce) {
    .hp-stats-marquee__track {
        animation: none;
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

    .hp-stats-marquee__group[aria-hidden="true"] {
        display: none;
    }

    .hp-stats-marquee__group {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px 0;
        padding: 16px 20px;
    }

    .hp-stat {
        border-right: none;
        padding: 8px 16px;
    }
}

/* Photo mosaic — matches copy card height */
.hp-intro__mosaic {
    position: relative;
    height: 100%;
    min-height: 280px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1.2fr 1fr;
    gap: 10px;
}

.hp-mosaic__item {
    position: relative;
    margin: 0;
    min-height: 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 14px 36px rgba(33, 33, 88, 0.12);
    border: 3px solid #fff;
}

.hp-mosaic__item img {
    width: 100%;
    height: 100%;
    min-height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.hp-mosaic__item:hover img {
    transform: scale(1.05);
}

.hp-mosaic__label {
    position: absolute;
    left: 14px;
    bottom: 14px;
    margin: 0;
    padding: 6px 14px;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fff;
    background: rgba(33, 33, 88, 0.75);
    border-radius: 99px;
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hp-mosaic__item--1 {
    grid-column: 1 / 3;
    grid-row: 1;
}
.hp-mosaic__item--1 .hp-mosaic__label {
    background: rgba(33, 33, 88, 0.82);
}

.hp-mosaic__item--2 {
    grid-column: 1;
    grid-row: 2;
}
.hp-mosaic__item--2 .hp-mosaic__label {
    background: rgba(227, 66, 18, 0.88);
}

.hp-mosaic__item--3 {
    grid-column: 2;
    grid-row: 2;
}
.hp-mosaic__item--3 .hp-mosaic__label {
    background: rgba(15, 122, 176, 0.88);
}

/* Floating stat badge */
.hp-mosaic__badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid #212158;
    box-shadow: 0 8px 24px rgba(33, 33, 88, 0.18);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    pointer-events: none;
}

.hp-mosaic__badge strong {
    font-family: "Mulish", sans-serif;
    font-size: 1.35rem;
    font-weight: 900;
    color: #212158;
    line-height: 1;
}

.hp-mosaic__badge span {
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #64748b;
    line-height: 1.35;
    margin-top: 4px;
}

/* ═══════════════════════════════════════════════════════════════
   PATH CARDS
   ═══════════════════════════════════════════════════════════════ */
.hp-paths {
    background: #f0f2f8;
    padding: clamp(56px, 7vw, 96px) clamp(20px, 4vw, 48px);
    border-top: none;
    box-shadow: none;
}

.hp-paths__inner {
    max-width: 1320px;
    margin: 0 auto;
}

.hp-paths__header {
    max-width: 820px;
    margin: 0 auto 48px;
}

.hp-paths__header-panel {
    position: relative;
    text-align: center;
    background: #fff;
    border-radius: 20px;
    padding: clamp(28px, 4vw, 40px) clamp(24px, 4vw, 48px);
    border: 1px solid rgba(33, 33, 88, 0.08);
    box-shadow: 0 12px 40px rgba(33, 33, 88, 0.06);
    overflow: hidden;
}

.hp-paths__header-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #212158 0%, #e34212 50%, #0f7ab0 100%);
}

.hp-paths__brand {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #01a6fd;
    margin: 0 0 18px;
}

.hp-paths__header h2 {
    font-size: clamp(1.5rem, 3.2vw, 2.15rem);
    font-weight: 800;
    color: #212158;
    margin: 0 0 20px;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.hp-paths__headline-accent {
    display: block;
    margin-top: 6px;
    font-weight: 800;
    background: linear-gradient(135deg, #212158 0%, #0f7ab0 55%, #01a6fd 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.hp-paths__lead {
    font-size: clamp(0.95rem, 1.4vw, 1.05rem);
    color: #64748b;
    line-height: 1.7;
    margin: 0 auto;
    max-width: 58ch;
    font-weight: 400;
    padding-top: 18px;
    border-top: 1px solid rgba(33, 33, 88, 0.08);
}

.hp-paths__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(20px, 3vw, 32px);
}

/* Full-card clickable tile */
.hp-path-card {
    --hp-accent: #212158;
    display: block;
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none !important;
    color: inherit;
    cursor: pointer;
    border: 4px solid var(--hp-accent);
    box-shadow:
        0 8px 32px rgba(33, 33, 88, 0.14),
        0 0 0 0 var(--hp-accent);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
    min-height: clamp(340px, 42vw, 480px);
}

.hp-path-card:hover,
.hp-path-card:focus-visible {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 28px 64px rgba(33, 33, 88, 0.22);
    outline: none;
}

.hp-path-card__visual {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: inherit;
}

.hp-path-card__visual img {
    width: 100%;
    height: 100%;
    min-height: clamp(340px, 42vw, 480px);
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease;
}

.hp-path-card:hover .hp-path-card__visual img {
    transform: scale(1.08);
}

/* Brand-tinted gradient overlay */
.hp-path-card__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: clamp(24px, 3vw, 36px);
    pointer-events: none;
}

.hp-path-card:nth-child(1) .hp-path-card__overlay {
    background: linear-gradient(to top, rgba(33, 33, 88, 0.94) 0%, rgba(33, 33, 88, 0.5) 48%, transparent 72%);
}
.hp-path-card:nth-child(2) .hp-path-card__overlay {
    background: linear-gradient(to top, rgba(227, 66, 18, 0.94) 0%, rgba(227, 66, 18, 0.5) 48%, transparent 72%);
}
.hp-path-card:nth-child(3) .hp-path-card__overlay {
    background: linear-gradient(to top, rgba(15, 122, 176, 0.94) 0%, rgba(15, 122, 176, 0.5) 48%, transparent 72%);
}

.hp-path-card__chip {
    display: inline-block;
    align-self: flex-start;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #fff;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.35);
    padding: 6px 14px;
    border-radius: 99px;
    margin-bottom: 14px;
    backdrop-filter: blur(4px);
}

.hp-path-card__overlay h3 {
    font-size: clamp(1.35rem, 2.2vw, 1.85rem);
    font-weight: 900;
    color: #fff;
    margin: 0 0 10px;
    line-height: 1.15;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.hp-path-card__overlay p {
    font-size: clamp(0.88rem, 1.2vw, 1rem);
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.55;
    margin: 0;
    max-width: 28ch;
    font-weight: 500;
}

/* Corner arrow — hint only, not a separate link */
.hp-path-card__go {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #fff;
    color: var(--hp-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
    pointer-events: none;
}

.hp-path-card:hover .hp-path-card__go {
    transform: scale(1.12);
    background: var(--hp-accent);
    color: #fff;
}

/* Site footer sits below landing content */
footer .footer-area-section {
    margin-top: 0;
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 991px) {
    .hp-intro__inner {
        grid-template-columns: 1fr;
        gap: clamp(16px, 3vw, 24px);
        align-items: start;
    }
    .hp-intro {
        height: auto;
    }

    .hp-intro__mosaic {
        height: auto;
        min-height: 0;
        grid-template-rows: 150px 120px;
        max-width: 520px;
        margin: 0 auto;
        order: -1;
    }

    .hp-intro__copy {
        order: 1;
        height: auto;
        display: block;
    }

    .hp-scroll-hint {
        margin-top: 0;
    }

    .hp-paths__grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin: 0 auto;
    }

    .hp-path-card {
        min-height: 320px;
    }

    .hp-path-card__visual img {
        min-height: 320px;
    }
}

@media (max-width: 767px) {
    .hp-intro__mosaic {
        grid-template-rows: 130px 100px;
        gap: 10px;
    }

    .hp-mosaic__item--1 {
        min-height: 0;
    }

    .hp-mosaic__item--2,
    .hp-mosaic__item--3 {
        min-height: 0;
    }

    .hp-mosaic__badge {
        width: 72px;
        height: 72px;
    }

    .hp-scroll-hint {
        width: 100%;
        justify-content: center;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .hp-paths__grid {
        gap: 22px;
    }
}
