/**
 * XPERIODS Homepage Styles
 * ========================
 * Clean, high-end consulting aesthetic
 * Font: Inter · Palette: White + Lilac + Magenta accent
 */

/* =============================================================================
   INTER FONT (self-hosted)
   ============================================================================= */

@font-face { font-family: 'Inter'; font-weight: 300; font-style: normal; font-display: swap; src: url('../fonts/Inter-Light.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 400; font-style: normal; font-display: swap; src: url('../fonts/Inter-Regular.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 500; font-style: normal; font-display: swap; src: url('../fonts/Inter-Medium.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 600; font-style: normal; font-display: swap; src: url('../fonts/Inter-SemiBold.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 800; font-style: normal; font-display: swap; src: url('../fonts/Inter-ExtraBold.woff2') format('woff2'); }

/* =============================================================================
   CSS VARIABLES (Homepage Specific)
   ============================================================================= */

:root {
    --xp-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --xp-primary: #6f0714;
    --xp-primary-light: #921b25;
    --xp-primary-dark: #6a2028;
    --xp-primary-rgb: 111, 7, 20;
    --xp-accent: #6f0714;
    --xp-accent-light: rgba(111, 7, 20, 0.1);
    --xp-gradient: linear-gradient(135deg, #6a2028 0%, #6f0714 25%, #921b25 40%, #3a5a8a 60%, #1e2e54 80%, #3a4a78 100%);
    --xp-gradient-light: linear-gradient(135deg, rgba(111, 7, 20, 0.05) 0%, rgba(58, 90, 138, 0.05) 50%, rgba(30, 46, 84, 0.08) 100%);
}

/* =============================================================================
   LAVA LAMP GRADIENT — soft blurred blobs drifting organically
   ============================================================================= */

.xp-gradient-live {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.xp-gradient-live::before {
    content: '';
    position: absolute;
    width: 55%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(146, 27, 37, 0.45), rgba(111, 7, 20, 0.2));
    filter: blur(100px);
    top: -15%;
    left: -10%;
    animation: xp-lava-a 20s ease-in-out infinite;
}

.xp-gradient-live::after {
    content: '';
    position: absolute;
    width: 50%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(30, 46, 84, 0.5), rgba(15, 26, 58, 0.25));
    filter: blur(90px);
    bottom: -20%;
    right: -10%;
    animation: xp-lava-b 25s ease-in-out infinite;
}

@keyframes xp-lava-a {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25%      { transform: translate(30%, 20%) scale(1.15); }
    50%      { transform: translate(10%, 45%) scale(0.9); }
    75%      { transform: translate(-15%, 15%) scale(1.1); }
}

@keyframes xp-lava-b {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25%      { transform: translate(-25%, -30%) scale(1.1); }
    50%      { transform: translate(-10%, -50%) scale(0.95); }
    75%      { transform: translate(20%, -20%) scale(1.08); }
}

/* =============================================================================
   HERO SECTION — complete rewrite (Exaris-inspired layout)
   ============================================================================= */

.xp-hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(ellipse at 20% 30%, rgba(180, 70, 80, 0.6) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(80, 100, 160, 0.6) 0%, transparent 50%),
        radial-gradient(ellipse at 55% 50%, rgba(100, 120, 170, 0.3) 0%, transparent 45%),
        linear-gradient(135deg, #a04555 0%, #b85565 20%, #6a60a0 40%, #5a70a0 55%, #4a6090 70%, #4a5a88 85%, #5a6a98 100%);
    color: #fff;
    overflow: hidden;
    font-family: var(--xp-font);
}

/* ── Fullscreen background video ── */
.xp-hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 110%;
    object-fit: cover;
    object-position: center top;
    z-index: 0;
}

/* Hide browser video controls / download badge */
.xp-hero-video::-webkit-media-controls,
.xp-hero-video::-webkit-media-controls-enclosure,
.xp-hero-video::-webkit-media-controls-panel {
    display: none !important;
    -webkit-appearance: none;
}

/* Dim down sharply when video freezes so text stays readable */
.xp-hero-video--frozen {
    animation: xp-video-settle 4s ease forwards;
}
@keyframes xp-video-settle {
    0%   { opacity: 1;    filter: brightness(1); }
    40%  { opacity: 0.25; filter: brightness(0.4); }
    100% { opacity: 0.3;  filter: brightness(0.45); }
}

/* ── Hero logo (flex child — shifted toward viewport center) ── */
.xp-hero-logo {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-right: 18vw;
    pointer-events: none;
    opacity: 0;
    gap: 0;
}

.xp-hero-counter {
    display: block;
    font-family: var(--xp-font);
    font-size: clamp(72px, 14vw, 160px);
    font-weight: 800;
    color: #fff;
    line-height: 1;
    margin-bottom: 8px;
    letter-spacing: -4px;
    background: linear-gradient(135deg, #fff 40%, #e8c4c8 70%, #921b25);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter:
        drop-shadow(0 0 40px rgba(111, 7, 20, 0.5))
        drop-shadow(0 0 80px rgba(111, 7, 20, 0.25));
}

.xp-hero-logo img {
    width: clamp(140px, 22vw, 440px);
    height: auto;
    filter: brightness(0) invert(1)
            drop-shadow(0 0 50px rgba(111, 7, 20, 0.6))
            drop-shadow(0 0 100px rgba(111, 7, 20, 0.35));
}

/* Fly-in only — no pulse */
.xp-hero-logo--visible {
    animation: xp-logo-fly-in 2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes xp-logo-fly-in {
    0% {
        opacity: 0;
        transform: scale(0.6);
        filter: blur(20px);
    }
    40% {
        opacity: 0.7;
        filter: blur(4px);
    }
    100% {
        opacity: 1;
        transform: scale(1);
        filter: blur(0);
    }
}

@keyframes xp-logo-pulse {
    0%, 100% {
        transform: scale(1) translateY(0);
        filter: drop-shadow(0 0 50px rgba(111,7,20,0.6)) drop-shadow(0 0 100px rgba(111,7,20,0.35));
    }
    50% {
        transform: scale(1.06) translateY(-10px);
        filter: drop-shadow(0 0 70px rgba(111,7,20,0.8)) drop-shadow(0 0 130px rgba(111,7,20,0.5));
    }
}

/* ── Gradient overlay — cinematic brand vignette (burgundy + navy) ── */
.xp-hero-video-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg,
            rgba(160, 50, 60, 0.4) 0%,
            rgba(140, 50, 60, 0.2) 25%,
            rgba(80, 60, 100, 0.15) 50%,
            rgba(60, 80, 130, 0.25) 75%,
            rgba(60, 80, 130, 0.4) 100%),
        radial-gradient(ellipse at 50% 40%, rgba(160, 50, 60, 0.1) 0%, rgba(60, 80, 130, 0.1) 50%, rgba(160, 50, 60, 0.15) 100%);
    z-index: 1;
    transition: opacity 2s ease;
}

/* After video ends, overlay fades and gradient becomes fully visible */
.xp-hero--video-ended .xp-hero-video-overlay {
    opacity: 0;
}

.xp-hero--video-ended .xp-hero-gradient-bg {
    opacity: 1;
}

/* ── Animated flowing gradient — always visible ── */
.xp-hero-gradient-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0.3;
    transition: opacity 2.5s ease;
    background:
        radial-gradient(ellipse at 20% 25%, rgba(180, 70, 80, 0.7) 0%, transparent 45%),
        radial-gradient(ellipse at 80% 75%, rgba(80, 100, 160, 0.7) 0%, transparent 45%),
        radial-gradient(ellipse at 50% 45%, rgba(100, 120, 170, 0.5) 0%, transparent 40%),
        radial-gradient(ellipse at 35% 70%, rgba(100, 120, 170, 0.4) 0%, transparent 45%),
        radial-gradient(ellipse at 65% 30%, rgba(180, 70, 80, 0.5) 0%, transparent 45%),
        linear-gradient(135deg, #a04555 0%, #b85565 15%, #6a60a0 35%, #5a70a0 50%, #4a6090 65%, #4a5a88 80%, #5a6a98 100%);
    background-size: 200% 200%;
    animation: xp-gradient-flow 12s ease-in-out infinite;
}


@keyframes xp-gradient-flow {
    0% {
        background-position: 0% 0%;
    }
    25% {
        background-position: 100% 50%;
    }
    50% {
        background-position: 50% 100%;
    }
    75% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 0% 0%;
    }
}

/* ── Hero with video background ── */
.xp-hero--has-video .xp-hero-video {
    opacity: 0.55;
    transition: opacity 2s ease;
}

/* After video ends, fade video out completely */
.xp-hero--video-ended .xp-hero-video {
    opacity: 0;
}

/* ── Dark stat cards (on background images) ── */
.xp-applicant-card--dark {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
}

.xp-applicant-card--dark h3 {
    color: #fff;
}

.xp-applicant-card--dark p {
    color: rgba(255, 255, 255, 0.85);
}

.xp-applicant-card--dark .xp-applicant-subtitle {
    color: rgba(255, 255, 255, 0.6);
}

/* ── Content wrapper — full width ── */
.xp-hero-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-left: clamp(48px, 8vw, 140px);
    padding-right: clamp(48px, 8vw, 140px);
    padding: 2rem 2rem;
}

.xp-hero-text {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* =============================================================================
   PAGE-WIDE PERSON-NODE NETWORK
   ============================================================================= */

/* Hidden SVG defs container */
.xp-net-defs {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

/* Enable positioning context for non-hero sections with network */
.xp-pnet-enabled {
    position: relative;
}

.xp-pnet-enabled > .container {
    position: relative;
    z-index: 2;
}

/* ── Network container ── */
.xp-pnet {
    position: absolute;
    top: 0;
    width: 180px;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.8s ease-out;
}

.xp-pnet--visible {
    opacity: 1;
}

/* Hero network (if present) is always visible */
.xp-hero > .xp-pnet {
    opacity: 1;
}

.xp-pnet--left { left: 40px; }
.xp-pnet--right { right: 40px; }

.xp-pnet-svg {
    width: 100%;
    height: 100%;
}

/* ── DARK THEME (Hero) ── */
.xp-pnet--dark .xp-pnet-link {
    stroke: rgba(255, 255, 255, 0.12);
    stroke-width: 1;
    fill: none;
}

.xp-pnet--dark .xp-pnet-link--active {
    stroke: rgba(111, 7, 20, 0.2);
    stroke-width: 1.2;
}

.xp-pnet--dark .xp-pnet-link--branch {
    stroke: rgba(255, 255, 255, 0.08);
    stroke-width: 0.8;
    stroke-dasharray: 4 3;
    animation: xp-pnet-flow 6s linear infinite;
}

.xp-pnet--dark .xp-pnet-dot {
    fill: #921b25;
    opacity: 0.2;
    animation: xp-pnet-dot-pulse 5s ease-in-out infinite;
}

.xp-pnet--dark .xp-pnet-ring {
    fill: none;
    stroke: #921b25;
    stroke-width: 1.5;
    opacity: 0.5;
}

.xp-pnet--dark .xp-pnet-ring--center {
    stroke: #921b25;
    stroke-width: 2;
    opacity: 0.7;
    filter: drop-shadow(0 0 6px rgba(111, 7, 20, 0.5));
}

.xp-pnet--dark .xp-pnet-glow {
    fill: #921b25;
    opacity: 0.15;
    filter: blur(12px);
    animation: xp-pnet-glow-breathe 3s ease-in-out infinite;
}

.xp-pnet--dark .xp-pnet-person {
    color: rgba(255, 255, 255, 0.3);
    animation: xp-pnet-person-pulse 4.5s ease-in-out infinite;
}

.xp-pnet--dark .xp-pnet-person--center {
    color: rgba(255, 255, 255, 0.5);
    animation: xp-pnet-center-pulse 3s ease-in-out infinite;
}

.xp-pnet--dark .xp-pnet-pulse {
    fill: rgba(255, 255, 255, 0.5);
    opacity: 0;
    animation: xp-pnet-light-fade 4s ease-in-out infinite;
}

.xp-pnet--dark .xp-pnet-pulse--active {
    fill: rgba(111, 7, 20, 0.7);
    animation: xp-pnet-light-fade 3.5s ease-in-out infinite;
}

/* ── LIGHT THEME (Mission, Services, Why, Applicants) ── */
.xp-pnet--light .xp-pnet-link {
    stroke: rgba(111, 7, 20, 0.10);
    stroke-width: 1;
    fill: none;
}

.xp-pnet--light .xp-pnet-link--branch {
    stroke: rgba(111, 7, 20, 0.08);
    stroke-width: 0.8;
    stroke-dasharray: 4 3;
    animation: xp-pnet-flow 6s linear infinite;
}

.xp-pnet--light .xp-pnet-dot {
    fill: #6f0714;
    opacity: 0.12;
    animation: xp-pnet-dot-pulse 5s ease-in-out infinite;
}

.xp-pnet--light .xp-pnet-ring {
    fill: none;
    stroke: #6f0714;
    stroke-width: 1.5;
    opacity: 0.18;
}

.xp-pnet--light .xp-pnet-ring--accent {
    stroke: #921b25;
    stroke-width: 1.8;
    opacity: 0.2;
    filter: drop-shadow(0 0 4px rgba(111, 7, 20, 0.2));
}

.xp-pnet--light .xp-pnet-glow {
    fill: #921b25;
    opacity: 0.06;
    filter: blur(10px);
    animation: xp-pnet-glow-breathe 4s ease-in-out infinite;
}

.xp-pnet--light .xp-pnet-person {
    color: rgba(111, 7, 20, 0.25);
    animation: xp-pnet-person-pulse 4.5s ease-in-out infinite;
}

.xp-pnet--light .xp-pnet-person--accent {
    color: rgba(111, 7, 20, 0.25);
    animation: xp-pnet-center-pulse 3.5s ease-in-out infinite;
}

.xp-pnet--light .xp-pnet-pulse {
    fill: rgba(111, 7, 20, 0.3);
    opacity: 0;
    animation: xp-pnet-light-fade 4s ease-in-out infinite;
}

/* ── KEYFRAME ANIMATIONS ── */
@keyframes xp-pnet-flow {
    from { stroke-dashoffset: 0; }
    to   { stroke-dashoffset: -14; }
}

@keyframes xp-pnet-dot-pulse {
    0%, 100% { opacity: 0.15; }
    50%      { opacity: 0.3; }
}

@keyframes xp-pnet-person-pulse {
    0%, 100% { opacity: 0.20; }
    50%      { opacity: 0.40; }
}

@keyframes xp-pnet-center-pulse {
    0%, 100% { opacity: 0.5; }
    50%      { opacity: 0.85; }
}

@keyframes xp-pnet-glow-breathe {
    0%, 100% { opacity: 0.08; }
    50%      { opacity: 0.2; }
}

@keyframes xp-pnet-light-fade {
    0%   { opacity: 0; }
    15%  { opacity: 0.6; }
    85%  { opacity: 0.6; }
    100% { opacity: 0; }
}

/* ── STAGGERED ANIMATION DELAYS ── */
.xp-pnet-person--1 { animation-delay: 0s; }
.xp-pnet-person--2 { animation-delay: -0.6s; }
.xp-pnet-person--3 { animation-delay: -1.3s; }
.xp-pnet-person--4 { animation-delay: -2.0s; }
.xp-pnet-person--5 { animation-delay: -2.7s; }
.xp-pnet-person--6 { animation-delay: -2.7s; }
.xp-pnet-person--7 { animation-delay: -3.4s; }
.xp-pnet-person--8 { animation-delay: -0.9s; }
.xp-pnet-person--9 { animation-delay: -1.8s; }

.xp-pnet-link--branch:nth-child(2n) { animation-delay: -1.5s; }
.xp-pnet-link--branch:nth-child(3n) { animation-delay: -3.2s; }
.xp-pnet-link--branch:nth-child(5n) { animation-delay: -0.8s; }

.xp-pnet-dot:nth-child(2n) { animation-delay: -1.2s; }
.xp-pnet-dot:nth-child(3n) { animation-delay: -2.8s; }
.xp-pnet-dot:nth-child(5n) { animation-delay: -4.0s; }

.xp-pnet-pulse:nth-child(2n) { animation-delay: -1.5s; }
.xp-pnet-pulse:nth-child(3n) { animation-delay: -2.8s; }

/* (hero ::after is now defined above in the hero section block) */


/* =============================================================================
   HERO LOGO SPLASH (shown before content reveal)
   ============================================================================= */

.xp-hero-logo-splash {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.xp-hero-logo-splash--visible {
    opacity: 1;
}

.xp-hero-logo-splash--fadeout {
    opacity: 0;
    transition: opacity 0.5s ease-out;
}

.xp-hero-logo-img {
    width: clamp(280px, 40vw, 550px);
    filter: brightness(0) invert(1)
            drop-shadow(0 0 20px rgba(255, 255, 255, 0.3))
            drop-shadow(0 0 50px rgba(111, 7, 20, 0.2));
    transform: scale(0.9);
    transition: transform 1.5s cubic-bezier(0.22, 1, 0.36, 1),
                filter 1.5s ease;
}

.xp-hero-logo-splash--visible .xp-hero-logo-img {
    transform: scale(1);
    filter: brightness(0) invert(1)
            drop-shadow(0 0 40px rgba(255, 255, 255, 0.5))
            drop-shadow(0 0 80px rgba(111, 7, 20, 0.35));
}

/* =============================================================================
   HERO ENTRANCE ANIMATIONS (staggered)
   ============================================================================= */

/* ── No-video hero: gradient background only ── */
.xp-hero--no-video {
    background: linear-gradient(135deg, #080010 0%, #0a0520 50%, #120822 100%);
}

/* Hidden by default — revealed after video ends via .xp-hero--revealed */
.xp-anim {
    opacity: 0;
    transform: translateY(30px);
}

/* Immediately visible (no video delay needed) */
.xp-anim.xp-anim--visible {
    opacity: 1;
    transform: translateY(0);
    animation: none;
}

.xp-hero--revealed .xp-anim {
    animation: xp-slide-up 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.xp-hero--revealed .xp-anim[data-delay="0"] { animation-delay: 0.1s; }
.xp-hero--revealed .xp-anim[data-delay="1"] { animation-delay: 0.4s; }
.xp-hero--revealed .xp-anim[data-delay="2"] { animation-delay: 0.7s; }
.xp-hero--revealed .xp-anim[data-delay="3"] { animation-delay: 1.0s; }
.xp-hero--revealed .xp-anim[data-delay="4"] { animation-delay: 1.3s; }
.xp-hero--revealed .xp-anim[data-delay="5"] { animation-delay: 1.6s; }

@keyframes xp-slide-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}




/* =============================================================================
   BACKGROUND IMAGE SECTIONS (reusable)
   ============================================================================= */

.xp-has-bg {
    position: relative;
    overflow: hidden;
}

.xp-has-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: var(--section-bg);
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    z-index: 0;
}

.xp-has-bg > * {
    position: relative;
    z-index: 1;
}

/* ── Badge — centered below buttons ── */
.xp-hero-badge {
    display: inline-block;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.9);
    padding: 8px 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.06);
    margin: 24px 0 0;
    transition: border-color 0.8s ease, box-shadow 0.8s ease;
}

.xp-hero-badge--animate {
    border-color: rgba(111, 7, 20, 0.5);
    box-shadow:
        0 0 8px rgba(111, 7, 20, 0.3),
        0 0 20px rgba(111, 7, 20, 0.15),
        inset 0 0 8px rgba(111, 7, 20, 0.1);
}

.xp-hero-badge-brand {
    font-weight: 600;
}

/* ── Hero Alliance Badge ── */
.hero-alliance-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 44px;
    width: 100%;
}

.badge-line1 {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    gap: 14px;
}

.badge-line1::before,
.badge-line1::after {
    content: '';
    display: block;
    width: 40px;
    height: 1px;
    background: rgba(255, 255, 255, 0.35);
}

.badge-line2 {
    font-size: clamp(18px, 2vw, 24px);
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.03em;
    display: flex;
    align-items: center;
    gap: 12px;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
}

.badge-line2 strong {
    font-weight: 700;
    color: #fff;
}

.badge-plus {
    color: rgba(255, 255, 255, 0.5);
    font-size: 20px;
    font-weight: 300;
    line-height: 1;
}

.badge-line3 {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: none;
    color: #7a1a1e;
    animation: xp-badge-pulse 3s ease-in-out infinite;
    margin-top: 8px;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.6), 0 0 16px rgba(255, 255, 255, 0.4), 0 0 24px rgba(255, 255, 255, 0.2);
}

/* ── Commitments & Presence Bar ── */
.hero-commitments {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-top: 40px;
    padding: 24px 0 0;
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: transparent;
}

.commitments-label {
    font-size: 10px;
    font-weight: 300;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.35);
}

.commitments-row {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
    justify-content: center;
}

.commitment-item {
    display: flex;
    align-items: center;
    gap: 14px;
}

.commitment-logo {
    height: 80px;
    max-width: 220px;
    width: auto;
    object-fit: contain;
    filter: none;
    opacity: 1;
    background: none;
    padding: 0;
    border-radius: 0;
}

.commitment-text {
    font-size: 12px;
    font-weight: 300;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.6);
    max-width: 180px;
}

.commitment-divider {
    width: 1px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
}

@keyframes xp-badge-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.03); }
}

/* ── Eyebrow label above headline ── */
.xp-hero-eyebrow {
    position: relative;
    display: inline-block;
    font-size: clamp(14px, 1.8vw, 18px);
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: none;
    color: #fff;
    margin-bottom: 28px;
    padding: 16px 40px;
    border: 2px solid rgba(30, 46, 84, 0.5);
    border-radius: 100px;
    background: linear-gradient(135deg, rgba(20, 35, 70, 0.35), rgba(30, 46, 84, 0.3), rgba(40, 55, 100, 0.25));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow:
        0 0 15px rgba(30, 46, 84, 0.5),
        0 0 35px rgba(30, 46, 84, 0.25),
        0 0 70px rgba(30, 46, 84, 0.12),
        inset 0 0 15px rgba(30, 46, 84, 0.15);
    animation: xp-eyebrow-glow 4s ease-in-out infinite;
}

.xp-eyebrow-brand {
    font-weight: 700;
    color: #fff;
    letter-spacing: 2px;
}

.xp-eyebrow-symbol {
    display: inline-block;
    margin: 0 0.5em;
    font-size: 0.85em;
    vertical-align: middle;
    color: #fff;
    opacity: 0.7;
    font-weight: 300;
}

.xp-eyebrow-symbol--plus {
    font-size: 1em;
    font-weight: 200;
}

.xp-eyebrow-symbol--arrow {
    font-size: 0.9em;
    opacity: 0.7;
}

.xp-eyebrow-brand--result {
    font-weight: 800;
    letter-spacing: 3px;
    background: linear-gradient(135deg, #fff 30%, rgba(255, 255, 255, 0.7) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.1em;
}

.xp-expand {
    cursor: pointer;
}

.xp-expand-full {
    display: none;
}

.xp-expand:hover .xp-expand-short {
    display: none;
}

.xp-expand:hover .xp-expand-full {
    display: inline;
}

.xp-eyebrow-dot {
    opacity: 0.4;
    margin: 0 0.3em;
}

@keyframes xp-eyebrow-glow {
    0% {
        box-shadow:
            0 0 15px rgba(30, 46, 84, 0.5),
            0 0 35px rgba(30, 46, 84, 0.25),
            0 0 70px rgba(30, 46, 84, 0.12),
            inset 0 0 15px rgba(30, 46, 84, 0.15);
        border-color: rgba(30, 46, 84, 0.5);
    }
    50% {
        box-shadow:
            0 0 20px rgba(50, 70, 130, 0.55),
            0 0 45px rgba(50, 70, 130, 0.3),
            0 0 80px rgba(30, 46, 84, 0.15),
            inset 0 0 18px rgba(50, 70, 130, 0.2);
        border-color: rgba(50, 70, 130, 0.55);
    }
    100% {
        box-shadow:
            0 0 15px rgba(30, 46, 84, 0.5),
            0 0 35px rgba(30, 46, 84, 0.25),
            0 0 70px rgba(30, 46, 84, 0.12),
            inset 0 0 15px rgba(30, 46, 84, 0.15);
        border-color: rgba(30, 46, 84, 0.5);
    }
}

/* ── Headline — stacked words ── */
.xp-hero-title {
    font-size: clamp(48px, 8vw, 100px);
    width: 100%;
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -2px;
    margin: 0 0 36px;
    color: #fff;
    text-transform: none;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.8), 0 4px 40px rgba(0, 0, 0, 0.5), 0 0 80px rgba(111, 7, 20, 0.25);
}

.xp-hero-title-word {
    display: block;
}

.xp-hero-subtitle {
    font-size: clamp(13px, 1.4vw, 17px);
    font-weight: 400;
    letter-spacing: 2px;
    color: rgba(210, 170, 175, 0.9);
    margin: 0 0 28px;
    text-shadow: 0 0 15px rgba(146, 27, 37, 0.3);
}

.xp-hero-title-word--highlight {
    display: inline;
    font-weight: 400;
    font-size: clamp(20px, 2.8vw, 32px);
    margin-top: 18px;
    line-height: 1.4;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.7);
    text-shadow: 0 1px 15px rgba(0, 0, 0, 0.3);
}

.xp-heart-ekg {
    display: inline-block;
    width: 1.4em;
    height: 1.2em;
    vertical-align: -0.15em;
    color: var(--xp-primary);
    filter: drop-shadow(0 0 8px rgba(111, 7, 20, 0.5));
    margin: 0 0.1em;
}

.xp-hero-title-word--accent {
    color: rgba(220, 225, 240, 0.85);
    font-weight: 300;
    font-size: clamp(18px, 2.5vw, 28px);
    margin-top: 8px;
    line-height: 1.5;
    letter-spacing: 0.3px;
    text-shadow: 0 1px 15px rgba(0, 0, 0, 0.7), 0 2px 30px rgba(0, 0, 0, 0.4);
}

.xp-hero-title-word--sub {
    color: #fff;
    font-weight: 700;
    font-size: clamp(20px, 3vw, 40px);
    margin-top: 16px;
    margin-bottom: 8px;
    line-height: 1.1;
    letter-spacing: -1px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.8), 0 4px 40px rgba(0, 0, 0, 0.5), 0 0 80px rgba(120, 30, 45, 0.25);
}

/* ── Subheadline ── */
.xp-hero-sub {
    display: block;
    font-size: clamp(22px, 2.5vw, 32px);
    font-weight: 300;
    letter-spacing: 1px;
    text-transform: none;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 24px;
}

/* ── Sector tags ── */
.xp-hero-sectors {
    font-size: clamp(20px, 2.2vw, 30px);
    font-weight: 300;
    letter-spacing: -0.3px;
    text-transform: none;
    color: rgba(255, 255, 255, 0.7);
    margin: -10px 0 36px;
    white-space: nowrap;
}

/* ── Hero description — clean text ── */
.xp-hero-desc {
    font-size: clamp(14px, 1.3vw, 17px);
    font-weight: 400;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.65);
    margin: 0 0 36px;
}

.xp-hero-desc--clean {
    max-width: 680px;
    font-size: clamp(16px, 1.5vw, 20px);
    line-height: 1.8;
    color: rgba(235, 238, 245, 0.9);
    margin: 0 auto 24px;
    text-shadow: 0 1px 20px rgba(0, 0, 0, 0.5);
}

.xp-hero-actions-label {
    flex-basis: 100%;
    text-align: center;
    font-size: clamp(12px, 1.2vw, 15px);
    color: rgba(255, 255, 255, 0.6);
    margin: 1.5rem 0 0.5rem;
    letter-spacing: 1px;
}

.xp-hero-number {
    font-family: var(--xp-font);
    font-size: 1em;
    font-weight: 400;
    font-style: normal;
    color: #fff;
    margin-right: 0;
    letter-spacing: 0;
}

.xp-hero-separator {
    display: inline-block;
    font-size: 0.7em;
    opacity: 0.5;
    vertical-align: middle;
    margin: 0 0.15em;
}

.xp-hero-desc--sub {
    max-width: 720px;
    font-size: clamp(13px, 1.2vw, 15px);
    line-height: 1.8;
    color: rgba(220, 225, 240, 0.7);
    margin: 0 auto 44px;
    text-shadow: 0 1px 15px rgba(0, 0, 0, 0.4);
}

/* ── Buttons ── */
.xp-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    align-items: center;
    margin: 0;
}

.xp-btn-solid,
.xp-btn-ghost {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--xp-font);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    height: 50px;
    min-width: 180px;
    padding: 0 32px;
    border-radius: 4px;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: hidden;
    z-index: 0;
}

/* Animated border — rotating gradient behind the button */
.xp-btn-solid::before,
.xp-btn-ghost::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        rgba(111, 7, 20, 0.8),
        rgba(58, 90, 138, 0.5),
        rgba(255, 255, 255, 0.5),
        rgba(30, 46, 84, 0.7),
        rgba(111, 7, 20, 0.8)
    );
    transform: translate(-50%, -50%) rotate(0deg);
    animation: xp-btn-border-spin 5s linear infinite;
    z-index: -2;
}

/* Inner fill to mask the gradient except the border edge */
.xp-btn-solid::after,
.xp-btn-ghost::after {
    content: '';
    position: absolute;
    inset: 2px;
    border-radius: 5px;
    z-index: -1;
}

.xp-btn-solid::after {
    background: #fff;
}
.xp-btn-ghost::after {
    background: rgba(76, 17, 20, 0.95);
}

@keyframes xp-btn-border-spin {
    0%   { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes xp-pill-border-spin {
    0%   { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.xp-btn-solid {
    background: transparent;
    color: #6a2028;
    border: none;
}

.xp-btn-solid--red {
    color: #fff;
}

.xp-btn-solid--red::after {
    background: var(--xp-primary) !important;
}

.xp-btn-solid:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(111, 7, 20, 0.4), 0 0 40px rgba(111, 7, 20, 0.2);
    color: #6a2028;
}

.xp-btn-ghost {
    background: transparent;
    color: #fff;
    border: none;
}

.xp-btn-ghost:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(111, 7, 20, 0.4), 0 0 40px rgba(111, 7, 20, 0.2);
}

/* ── Scroll-down button (bottom-left of hero) ── */
.xp-hero-scroll {
    position: absolute;
    bottom: clamp(120px, 20vh, 220px);
    left: 3vw;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: #fff;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.xp-hero--revealed .xp-hero-scroll {
    opacity: 1;
    transform: translateY(0);
}

/* Glowing circle */
.xp-hero-scroll-circle {
    position: relative;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.5);
    box-shadow:
        0 0 12px rgba(255, 255, 255, 0.3),
        0 0 30px rgba(255, 255, 255, 0.15),
        inset 0 0 10px rgba(255, 255, 255, 0.1);
    animation: xp-scroll-glow 2.5s ease-in-out infinite;
    transition: box-shadow 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
    cursor: pointer;
}

.xp-hero-scroll:hover .xp-hero-scroll-circle {
    border-color: rgba(255, 255, 255, 0.9);
    box-shadow:
        0 0 20px rgba(255, 255, 255, 0.5),
        0 0 45px rgba(255, 255, 255, 0.25),
        inset 0 0 14px rgba(255, 255, 255, 0.2);
    transform: translateY(3px);
}

.xp-hero-scroll-arrow {
    width: 22px;
    height: 22px;
    stroke: #fff;
    animation: xp-scroll-bounce 2s ease-in-out infinite;
}

/* Label text */
.xp-hero-scroll-text {
    font-family: var(--xp-font);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
    transition: color 0.3s ease;
}

.xp-hero-scroll:hover .xp-hero-scroll-text {
    color: #fff;
}

@keyframes xp-scroll-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(4px); }
}

@keyframes xp-scroll-glow {
    0%, 100% {
        box-shadow:
            0 0 12px rgba(111, 7, 20, 0.5),
            0 0 30px rgba(111, 7, 20, 0.25),
            inset 0 0 10px rgba(111, 7, 20, 0.2);
        border-color: rgba(111, 7, 20, 0.6);
    }
    50% {
        box-shadow:
            0 0 18px rgba(111, 7, 20, 0.7),
            0 0 40px rgba(111, 7, 20, 0.35),
            inset 0 0 14px rgba(111, 7, 20, 0.3);
        border-color: rgba(111, 7, 20, 0.85);
    }
}

/* =============================================================================
   GLOBAL FONT for all homepage sections
   ============================================================================= */

.xp-hero,
.xp-section,
.xp-locations,
.xp-urgency,
.xp-tags,
.xp-cta-section {
    font-family: var(--xp-font);
}


/* =============================================================================
   ELEVATOR SECTION
   ============================================================================= */

.xp-elevator {
    padding: 5rem 0;
    background: linear-gradient(180deg, #f8f9fa 0%, #fff 50%, #f8f9fa 100%);
    text-align: center;
}

.xp-elevator-heading {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    color: var(--xp-primary);
    margin: 0 0 1.5rem;
}

.xp-elevator-heading--sub {
    font-size: 0.6em;
    font-weight: 700;
    color: var(--xp-primary);
    letter-spacing: 0.5px;
}

.xp-elevator-text {
    max-width: 800px;
    margin: 0 auto 1rem;
    font-size: clamp(16px, 1.6vw, 20px);
    line-height: 1.9;
    color: #3a3a3a;
    font-weight: 400;
    letter-spacing: 0.2px;
}

.xp-elevator-text:last-child {
    margin-bottom: 0;
}

.xp-elevator-separator {
    font-size: 0.7em;
    opacity: 0.4;
}

.xp-elevator-text--accent {
    color: #1e2e54;
    margin-top: 1rem;
    font-style: italic;
    font-weight: 300;
    font-size: clamp(15px, 1.4vw, 18px);
}

.xp-elevator-text--accent + .xp-elevator-text--accent {
    margin-top: 0.25rem;
}

[data-theme="dark"] .xp-elevator {
    background: linear-gradient(180deg, #1a1a1a 0%, #222 50%, #1a1a1a 100%);
}

[data-theme="dark"] .xp-elevator-text {
    color: rgba(235, 235, 240, 0.85);
}

/* ── Section with animated gradient background (like hero) ── */
.xp-section--gradient {
    position: relative;
    overflow: hidden;
    color: #fff;
}

.xp-section--gradient .xp-hero-gradient-bg {
    z-index: 0;
    opacity: 1;
}

.xp-section--gradient > .container {
    position: relative;
    z-index: 1;
}

.xp-section--gradient .xp-why-content h2 {
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: #fff;
    color: #fff;
}

.xp-section--gradient .xp-why-content p {
    color: rgba(255, 255, 255, 0.85);
}

.xp-section--gradient .xp-feature-list {
    background: rgba(15, 20, 40, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.xp-section--gradient .xp-feature-item {
    background: none;
    border-bottom-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.xp-section--gradient .xp-feature-item i {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
}

.xp-section--gradient .xp-feature-item strong {
    color: #fff;
    font-weight: 700;
}

.xp-section--gradient .xp-feature-item span {
    color: rgba(255, 255, 255, 0.75);
}

/* =============================================================================
   MARQUEE TICKER STRIP
   ============================================================================= */

.xp-marquee {
    background: linear-gradient(135deg, #7a1a1e 0%, #5c1a3a 45%, #2a2a5c 100%);
    overflow: hidden;
    height: 48px;
    display: flex;
    align-items: center;
    white-space: nowrap;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.xp-marquee:hover .xp-marquee-track {
    animation-play-state: paused;
}

.xp-marquee-track {
    display: flex;
    animation: xp-marquee-scroll 35s linear infinite;
}

.xp-marquee-text {
    font-family: 'Raleway', var(--xp-font);
    font-size: 11px;
    font-weight: 300;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.65);
    padding: 0 2.5rem;
    flex-shrink: 0;
}

.xp-marquee-dot {
    color: #9c2428;
    font-size: 16px;
    margin: 0 0.3em;
    vertical-align: middle;
}

@keyframes xp-marquee-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* =============================================================================
   ABOUT HNC PAGE COMPONENTS
   ============================================================================= */

/* Team photo */
.xp-about-photo {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    object-position: center top;
    border-radius: 12px;
    margin-bottom: 1rem;
}

/* Bio clamp + read more */
.xp-bio-clamp {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    overflow: hidden;
    line-height: 1.7;
    font-size: 13px;
    min-height: calc(1.7em * 4);
    max-height: calc(1.7em * 4);
}

/* Contact question pulse effect */
.xp-contact-question {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    font-weight: 600;
    color: var(--xp-primary);
    animation: xp-question-pulse 4s ease-in-out infinite;
}

@keyframes xp-question-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Contact form submit button */
.xp-contact-submit {
    background: #4d1214;
    color: #fff;
    border: none;
    padding: 16px 48px;
    font-family: 'Raleway', var(--xp-font, sans-serif);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    width: 100%;
    cursor: pointer;
    transition: background 0.3s ease;
    border-radius: 4px;
    margin-top: 0.5rem;
}

.xp-contact-submit:hover {
    background: #7a1a1e;
}

.xp-bio-clamp.expanded {
    -webkit-line-clamp: unset;
    display: block;
    max-height: none;
    min-height: 0;
}

.xp-bio-clamp p {
    font-size: 13px;
    line-height: 1.7;
    color: #4a4a4a;
    margin-bottom: 0.5rem;
}

.read-more-btn {
    display: inline-block;
    background: none;
    border: none;
    padding: 16px 0 0;
    margin-top: auto;
    border-top: 1px solid #f0f0f0;
    font-family: 'Raleway', var(--xp-font, sans-serif);
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.05em;
    color: #4d1214;
    cursor: pointer;
    text-decoration: none;
    width: 100%;
    text-align: left;
}

.read-more-btn:hover {
    color: #7a1a1e;
}

/* Ensure cards stretch equally */
.xp-alliance-card {
    display: flex;
    flex-direction: column;
}

/* Make "Read more" stick to bottom of card */
.xp-alliance-card {
    display: flex;
    flex-direction: column;
}

.xp-alliance-card .read-more-btn {
    margin-top: auto;
}

/* Tags */
.xp-about-tag {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 100px;
    margin-bottom: 1rem;
}

.xp-about-tag--slate {
    background: rgba(30, 45, 68, 0.1);
    color: #1e2d44;
}

.xp-about-tag--crimson {
    background: rgba(77, 18, 20, 0.1);
    color: #4d1214;
}

.xp-about-tag--subrosa {
    background: rgba(180, 80, 200, 0.1);
    color: #9b40b0;
}

.xp-about-tag--blue {
    background: rgba(40, 90, 160, 0.1);
    color: #2860a0;
}

/* Timeline */
.xp-timeline {
    max-width: 500px;
    margin: 0 auto;
    position: relative;
    padding-left: 2rem;
}

.xp-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--xp-primary), #1e2e54);
}

.xp-timeline-item {
    position: relative;
    padding: 0 0 2rem 2rem;
}

.xp-timeline-item::before {
    content: '';
    position: absolute;
    left: -2rem;
    top: 4px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--xp-primary);
    border: 2px solid #fff;
    margin-left: -4px;
}

.xp-timeline-year {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--xp-primary);
    margin-right: 0.75rem;
    min-width: 3rem;
}

.xp-timeline-item p {
    display: inline;
    font-size: 0.95rem;
    color: #4a4a4a;
    line-height: 1.6;
}

/* Client logo collage */
.xp-client-collage {
    text-align: center;
}

.xp-client-collage-img {
    width: 100%;
    max-width: 1100px;
    height: auto;
    border-radius: 12px;
    opacity: 0.85;
    transition: opacity 0.3s ease;
}

.xp-client-collage-img:hover {
    opacity: 1;
}

/* Client logos */
.xp-client-category {
    margin-bottom: 2.5rem;
}

.xp-client-category:last-child {
    margin-bottom: 0;
}

.xp-client-category h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--xp-primary);
    margin-bottom: 1rem;
}

.xp-client-logo-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1rem;
}

.xp-client-logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 1rem;
    height: 70px;
    transition: all 0.3s ease;
}

.xp-client-logo-item:hover {
    border-color: #d0d0d0;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.xp-client-logo-item img {
    max-height: 32px;
    max-width: 100%;
    object-fit: contain;
    filter: grayscale(100%) opacity(0.6);
    transition: filter 0.3s ease;
}

.xp-client-logo-item:hover img {
    filter: grayscale(0%) opacity(1);
}

.xp-client-logo-item .xp-client-fallback {
    font-size: 0.7rem;
    font-weight: 600;
    color: #999;
    text-align: center;
    line-height: 1.2;
}

@media (max-width: 1024px) {
    .xp-client-logo-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 600px) {
    .xp-client-logo-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Client pills (legacy) */
.xp-client-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.xp-client-pill {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 500;
    color: #4a4a4a;
    background: #fff;
    border: 1px solid #e0e0e0;
    padding: 6px 14px;
    border-radius: 100px;
    white-space: nowrap;
}

/* Leigh stats */
.xp-leigh-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.xp-leigh-stat {
    text-align: center;
    padding: 1.5rem;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
}

.xp-leigh-stat-number {
    display: block;
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 800;
    color: var(--xp-primary);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.xp-leigh-stat-label {
    display: block;
    font-size: 0.8rem;
    color: #6c757d;
    font-weight: 500;
}

@media (max-width: 768px) {
    .xp-leigh-stats {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .xp-timeline {
        padding-left: 1.5rem;
    }

    .xp-timeline-item {
        padding-left: 1.5rem;
    }
}

/* =============================================================================
   FUNCTIONAL AREAS & RECENT SEARCHES
   ============================================================================= */

.xp-func-tabs {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-bottom: 2.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 0;
}

.xp-func-tab {
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    padding: 0.75rem 0.5rem;
    font-family: var(--xp-font);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.xp-func-tab:hover {
    color: rgba(255, 255, 255, 0.7);
}

.xp-func-tab--active {
    color: #fff;
    border-bottom-color: #c4474b;
}

.xp-func-panel {
    display: none;
}

.xp-func-panel--active {
    display: block;
}

.xp-func-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.xp-func-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 1.75rem;
    transition: border-color 0.3s ease;
}

.xp-func-card:hover {
    border-color: rgba(196, 71, 75, 0.2);
}

.xp-func-category {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #fff;
    padding-left: 12px;
    border-left: 3px solid rgba(255, 255, 255, 0.4);
    margin-bottom: 1.25rem;
}

.xp-func-roles {
    list-style: none;
    padding: 0;
    margin: 0;
}

.xp-func-roles li {
    font-size: 13px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
    padding: 5px 0;
    transition: color 0.2s ease;
}

.xp-func-roles li::before {
    content: '— ';
    opacity: 0.4;
}

.xp-func-roles li:hover {
    color: #fff;
}

.xp-func-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.xp-func-stats span {
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.45);
    text-transform: uppercase;
}

@media (max-width: 768px) {
    .xp-func-grid {
        grid-template-columns: 1fr;
    }
    .xp-func-stats {
        flex-wrap: wrap;
        gap: 1.5rem;
    }
}

/* =============================================================================
   SERVICES PAGE REFINEMENTS
   ============================================================================= */

/* Service tag */
.xp-label {
    display: inline-block;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    background: rgba(77, 18, 20, 0.07);
    color: #4d1214;
    padding: 5px 12px;
    border-radius: 2px;
    margin-bottom: 1rem;
}

/* Service check items */
.xp-feature-item .bi-check-circle {
    color: #4d1214;
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* Service headings on white bg */
.xp-why-content h2 {
    color: #1a1210;
}

/* Service body text */
.xp-why-content p {
    color: #4a4a4a;
}

/* Service quote */
.xp-quote p {
    color: #4a4a4a;
}

/* Speak to team link */
.xp-services-scroll-link {
    position: absolute;
    left: 3vw;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
}

.xp-services-scroll-btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: #4d1214;
}

.xp-services-scroll-text {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #4d1214;
}

.xp-services-scroll-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(77, 18, 20, 0.06);
    border: 2px solid rgba(77, 18, 20, 0.25);
    color: #4d1214;
    transition: all 0.3s ease;
    animation: xp-scroll-bounce 2s ease-in-out infinite;
}

.xp-services-scroll-btn:hover .xp-services-scroll-circle {
    background: rgba(77, 18, 20, 0.12);
    border-color: rgba(77, 18, 20, 0.5);
}

.xp-services-link {
    display: inline-block;
    font-size: 12px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #4d1214;
    text-decoration: none;
    border-bottom: 1px solid rgba(77, 18, 20, 0.3);
    padding-bottom: 2px;
}

.xp-services-link:hover {
    color: #7a1a1e;
    border-bottom-color: #7a1a1e;
}

/* =============================================================================
   AWARDS & RECOGNITION
   ============================================================================= */

.xp-award-eyebrow {
    display: block;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: #4d1214;
    margin-bottom: 0.75rem;
}

.xp-awards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.xp-award-card {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    border-top: 3px solid #4d1214;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.xp-award-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.xp-award-year {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #4d1214;
    background: rgba(77, 18, 20, 0.07);
    padding: 4px 12px;
    border-radius: 2px;
    margin-bottom: 1rem;
}

.xp-award-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a1210;
    margin-bottom: 0.75rem;
}

.xp-award-desc {
    font-size: 14px;
    font-weight: 300;
    line-height: 1.8;
    color: #6b6069;
    margin: 0;
}

@media (max-width: 1024px) {
    .xp-awards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .xp-awards-grid {
        grid-template-columns: 1fr;
    }
}

/* Insight cards redesign */
.xp-insight-card--redesign {
    background: #fff;
    border: none;
    border-top: 3px solid #4d1214;
    border-radius: 12px;
    padding: 36px 32px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.xp-insight-card--redesign:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    text-decoration: none;
}

.xp-insight-card--redesign h3 {
    color: #1e2d44;
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.xp-insight-card--redesign p {
    color: #4a4a4a;
    font-size: 0.9rem;
    line-height: 1.7;
}

.xp-insight-date-new {
    font-size: 11px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #999;
    margin-bottom: 0.75rem;
}

.xp-insight-link {
    margin-top: auto;
    padding-top: 1rem;
    color: #4d1214;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-decoration: none;
}

.xp-insight-card--redesign:hover .xp-insight-link {
    color: #7a1a1e;
}

/* Case study detail pages */
.xp-case-study-content {
    max-width: 780px;
    margin: 0 auto;
}

.xp-case-study-content h2,
.xp-case-study-content h3 {
    font-family: var(--xp-font);
    font-weight: 600;
    font-size: 22px;
    color: #4d1214;
    padding-left: 16px;
    border-left: 3px solid #4d1214;
    margin: 2rem 0 1rem;
}

.xp-case-study-content p {
    color: #4a4a4a;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.xp-section-centered {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.xp-section-centered h2 {
    margin-bottom: 1.5rem;
    color: var(--xp-primary);
}

.xp-section-centered p {
    font-size: clamp(15px, 1.4vw, 18px);
    line-height: 1.8;
    color: #4a4a4a;
    margin-bottom: 1.25rem;
}

/* =============================================================================
   ALLIANCE SECTION (Two-column HNH / HNC)
   ============================================================================= */

.xp-section--alliance {
    background: linear-gradient(160deg, #f4f5f6 0%, #eaecee 100%);
}

.xp-alliance-header {
    text-align: center;
    margin-bottom: 3rem;
}

.xp-alliance-header h2 {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    color: var(--xp-primary);
    margin: 0 0 0.75rem;
}

.xp-alliance-link {
    display: inline-block;
    font-size: 0.95rem;
    font-weight: 500;
    color: #1e2e54;
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: color 0.2s ease;
}

.xp-alliance-link:hover {
    color: var(--xp-primary);
}

.xp-alliance-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.xp-alliance-card {
    background: #fff;
    border-radius: 12px;
    padding: 2rem 2rem 2rem 2.5rem;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-left: 4px solid;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    text-align: left;
    width: 100%;
    min-width: 0;
}

.xp-alliance-card--hnh {
    border-left-color: #1e2d44;
}

.xp-alliance-card--hnc {
    border-left-color: #4d1214;
}

.xp-alliance-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--xp-primary);
    margin: 0 0 1rem;
}

.xp-alliance-card p {
    font-size: 0.95rem;
    line-height: 1.75;
    color: #4a4a4a;
    margin: 0 0 0.75rem;
}

.xp-alliance-card p:last-child {
    margin-bottom: 0;
}

.xp-alliance-statement {
    text-align: center;
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-weight: 700;
    color: var(--xp-primary);
    margin: 0;
    padding-top: 1rem;
}

@media (max-width: 768px) {
    .xp-alliance-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.xp-alliance-subtitle {
    font-size: clamp(14px, 1.4vw, 17px);
    color: #1e2e54 !important;
    margin: -0.5rem 0 1.5rem;
    letter-spacing: 1px;
}

.xp-section-centered--dark h2 {
    color: #fff;
}

.xp-section-centered--dark p {
    color: rgba(255, 255, 255, 0.8);
}

.xp-section-centered--dark .xp-alliance-subtitle {
    color: rgba(255, 255, 255, 0.6);
}

.xp-alliance-subheading--light {
    color: #fff !important;
}

.xp-section-centered .xp-alliance-closing {
    margin-top: 2.5rem;
    font-size: clamp(15px, 1.4vw, 18px);
    color: #1e2e54 !important;
}

.xp-alliance-subheading {
    font-size: clamp(1.1rem, 1.8vw, 1.35rem);
    font-weight: 700;
    color: var(--xp-primary);
    margin: 2.5rem 0 0.75rem;
    letter-spacing: 0.3px;
}

.xp-alliance-subheading:first-of-type {
    margin-top: 1.5rem;
}

.xp-text-dash {
    display: inline;
    font-size: 0.8em;
    opacity: 0.35;
    margin: 0 0.15em;
}

.xp-section-centered .xp-hero-actions {
    justify-content: center;
    margin-top: 2rem;
}

/* =============================================================================
   SECTIONS (General)
   ============================================================================= */

.xp-section {
    padding: 6rem 0;
}

.xp-section--light {
    background: linear-gradient(180deg, #f8f9fa 0%, #f0f1f5 50%, #f8f9fa 100%);
}

.xp-section--dark {
    position: relative;
    background: transparent;
    color: #fff;
    overflow: hidden;
}

.xp-section--dark > .xp-hero-gradient-bg {
    z-index: 0;
    opacity: 1;
}

.xp-section--dark > .container {
    position: relative;
    z-index: 1;
}

.xp-urgency > .xp-hero-gradient-bg,
.xp-cta-section > .xp-hero-gradient-bg {
    z-index: 0;
    opacity: 1;
}

.xp-urgency > .container,
.xp-cta-section > .container {
    position: relative;
    z-index: 1;
}

/* Ensure content sits above animated gradient background */
.xp-section--dark > *:not(.xp-hero-gradient-bg) {
    position: relative;
    z-index: 1;
}

/* Plain dark variant — no animated gradient */
.xp-section--plain-dark {
    background: #0e1822 !important;
}

.xp-section--plain-dark .xp-section-header h2,
.xp-section--plain-dark .xp-global-header h2 {
    color: #fff;
}

.xp-section--plain-dark .xp-section-header p,
.xp-section--plain-dark .xp-global-header p {
    color: rgba(255, 255, 255, 0.7);
}

.xp-section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.xp-section-eyebrow {
    display: block;
    font-family: var(--xp-font);
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--xp-primary);
    margin-bottom: 0.5rem;
}

.xp-section-header h2 {
    font-size: clamp(2rem, 3.5vw, 2.5rem);
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #4d1214;
    background-clip: text;
}

.xp-section--dark .xp-section-header h2 {
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: #fff;
    background-clip: unset;
    color: #fff;
}

.xp-section--dark .xp-section-header p {
    color: rgba(255, 255, 255, 0.8);
}

.xp-section-header p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin: 0;
}

.xp-section--dark .xp-section-header p {
    color: rgba(255, 255, 255, 0.8);
}

.xp-label {
    display: inline-block;
    padding: 0.375rem 1rem;
    background: var(--xp-accent-light);
    color: var(--xp-primary);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.xp-section--dark .xp-label {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

/* =============================================================================
   ABOUT US SECTION — light
   ============================================================================= */

.xp-about-section {
    position: relative;
    background: linear-gradient(180deg, #f8f9fa 0%, #f2f0f4 40%, #ede8ef 70%, #f8f9fa 100%);
    font-family: var(--xp-font);
    padding: 5rem 0;
    overflow: hidden;
}

.xp-about-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: clamp(500px, 90vw, 1200px);
    opacity: 0.035;
    pointer-events: none;
    z-index: 0;
    clip-path: inset(0 0 30% 0);
}

.xp-about-section-inner {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.xp-about-heading {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    background: linear-gradient(135deg, var(--xp-primary) 0%, #3a5080 45%, #1e2e54 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 2.5rem;
    letter-spacing: -0.5px;
}

.xp-about-badge {
    color: var(--xp-primary);
    border-color: rgba(111, 7, 20, 0.2);
    background: rgba(111, 7, 20, 0.06);
    margin: 0 0 2rem;
    font-size: clamp(15px, 1.5vw, 18px);
    padding: 10px 24px;
}

.xp-about-badge .xp-hero-badge-brand {
    color: var(--xp-primary);
}

.xp-about-brand.xp-about-brand--solid {
    background: none !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
    -webkit-text-fill-color: var(--xp-primary) !important;
    color: var(--xp-primary) !important;
}

.xp-about-brand {
    font-weight: 800;
    background: linear-gradient(135deg, var(--xp-primary), #3a5a8a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Gradient variant */
.xp-about-section--gradient {
    background: transparent;
}

.xp-about-section--gradient .xp-hero-gradient-bg {
    z-index: 0;
    opacity: 1;
}

.xp-about-section--gradient .xp-about-section-inner {
    position: relative;
    z-index: 1;
}

.xp-about-section--gradient .xp-about-heading {
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: #fff;
    color: #fff;
}

.xp-about-section--gradient .xp-about-elevator {
    color: rgba(255, 255, 255, 0.7);
}

.xp-about-elevator {
    font-size: clamp(1.15rem, 1.8vw, 1.35rem);
    font-weight: 400;
    line-height: 1.9;
    color: var(--text-primary, #2a2a2a);
    margin: 0 auto 2.5rem;
    max-width: 1000px;
    width: 100%;
    padding: 0 1rem;
    letter-spacing: 0.2px;
}

/* WHY US? — highlight statement */
/* ── Scroll reveal animation ── */
.xp-scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.xp-scroll-reveal--visible {
    opacity: 1;
    transform: translateY(0);
}

.xp-about-heading--sm {
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    margin-top: 2.5rem;
    white-space: nowrap;
    text-align: center;
}

.xp-about-why {
    margin: 1rem 0 0.5rem;
    font-size: clamp(1rem, 1.4vw, 1.25rem);
    line-height: 1.8;
    text-align: center;
}

.xp-about-why-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--xp-primary);
    margin-bottom: 0.5rem;
    opacity: 0.7;
}

.xp-about-why .xp-about-brand {
    font-weight: 600;
}

/* Slogan — stands out below elevator sentence */
.xp-about-slogan {
    margin-top: 3rem;
    padding-top: 2rem;
}

.xp-about-slogan-text {
    font-size: 1.75rem;
    font-weight: 500;
    color: var(--xp-primary);
    margin: 0;
    letter-spacing: 0.5px;
}

.xp-about-slogan-text strong {
    font-weight: 800;
    background: linear-gradient(135deg, var(--xp-primary), #3a5a8a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* =============================================================================
   SERVICES GRID
   ============================================================================= */

.xp-section--subrosa {
    position: relative;
    overflow: hidden;
}

.xp-subrosa-watermark {
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: clamp(700px, 120vw, 1650px);
    opacity: 0.05;
    pointer-events: none;
    z-index: 0;
    clip-path: inset(8% 0 40% 0);
}

.xp-section--subrosa .container {
    position: relative;
    z-index: 1;
}

.xp-subrosa-icon {
    margin: 1.5rem auto 0;
}

.xp-subrosa-icon .bi {
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--xp-primary), #3a5a8a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    animation: xp-heartbeat 1.2s ease-in-out infinite;
}

@keyframes xp-heartbeat {
    0%   { transform: scale(1); }
    14%  { transform: scale(1.2); }
    28%  { transform: scale(1); }
    42%  { transform: scale(1.15); }
    56%  { transform: scale(1); }
    100% { transform: scale(1); }
}

.xp-subrosa-elevator {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.xp-subrosa-elevator p {
    font-size: clamp(1.15rem, 1.8vw, 1.35rem);
    font-weight: 400;
    line-height: 1.9;
    color: var(--text-primary, #2a2a2a);
    letter-spacing: 0.2px;
}

.xp-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.xp-service-card {
    background: #fff;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.xp-service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(111, 7, 20, 0.15);
    border-color: var(--xp-primary);
}

.xp-service-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: var(--xp-gradient);
    border-radius: 16px;
    margin-bottom: 1.5rem;
    color: #fff;
    font-size: 1.75rem;
}

.xp-service-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.xp-service-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
}

/* =============================================================================
   GLOBAL REACH SECTION (Interactive Map)
   ============================================================================= */

.xp-section--map {
    padding: clamp(60px, 10vh, 120px) 0;
}

.xp-section--map-light {
    background: #ffffff;
}

.xp-section--map-light .xp-section-header h2 {
    font-size: clamp(28px, 4vw, 48px);
    color: #1e2d44;
    letter-spacing: -0.01em;
}

/* Map region buttons */
.xp-map-region-btns {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.xp-map-region-btn {
    background: #fff;
    border: 1px solid #d8dade;
    color: #6c757d;
    font-family: var(--xp-font);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.1em;
    padding: 8px 18px;
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.xp-map-region-btn:hover {
    border-color: #4d1214;
    color: #4d1214;
}

.xp-map-region-btn--active {
    background: #4d1214;
    border-color: #4d1214;
    color: #fff;
}

/* Coverage legend below map */
.xp-coverage-legend {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-top: 24px;
    flex-wrap: wrap;
    font-size: 12px;
    font-weight: 300;
    letter-spacing: 0.08em;
    color: #888;
}

.xp-coverage-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.xp-coverage-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.xp-coverage-dot--office {
    background: #4d1214;
}

.xp-coverage-dot--network {
    background: #c8cdd5;
    border: 1px solid #a0a8b4;
}

.xp-coverage-legend-divider {
    width: 1px;
    height: 16px;
    background: #e0e0e0;
}

.xp-coverage-legend-regions {
    letter-spacing: 0.15em;
    color: #4d1214;
    font-weight: 400;
}

@media (max-width: 768px) {
    .xp-coverage-legend {
        gap: 16px;
        font-size: 11px;
    }
    .xp-coverage-legend-divider {
        display: none;
    }
}

/* Map hover tooltip */
.xp-map-hover-tip {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 8px 12px;
    font-family: var(--xp-font);
    font-size: 12px;
    line-height: 1.4;
    color: #4a4a4a;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.xp-map-hover-tip strong {
    color: #4d1214;
    font-weight: 700;
}

/* Map city labels */
.xp-map-label {
    background: none !important;
    border: none !important;
}

.xp-map-label-inner {
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.xp-map-dot {
    width: 8px;
    height: 8px;
    background: #4d1214;
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
    flex-shrink: 0;
}

.xp-map-city {
    font-family: var(--xp-font);
    font-size: 9px;
    font-weight: 600;
    color: #1e2d44;
    letter-spacing: 0.3px;
    text-shadow: 0 0 3px #fff, 0 0 6px #fff, 0 0 9px #fff;
}

/* Office locations list */
.xp-offices-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid #e8e8e8;
}

.xp-offices-region h4 {
    font-size: 13px;
    font-weight: 700;
    color: #1e2d44;
    margin-bottom: 0.75rem;
    letter-spacing: 0.5px;
}

.xp-offices-region ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.xp-offices-region li {
    font-size: 13px;
    color: #6c757d;
    padding: 3px 0;
    line-height: 1.5;
}

.xp-offices-region li::before {
    content: '→ ';
    color: var(--xp-primary);
    font-size: 11px;
}

@media (max-width: 768px) {
    .xp-offices-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .xp-offices-list {
        grid-template-columns: 1fr;
    }
}

.xp-section--map-light .xp-section-header h2 {
    color: #1e2d44;
}

.xp-global-header {
    text-align: center;
    max-width: 850px;
    margin: 2.5rem auto;
}

.xp-global-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #fff;
}

.xp-global-header p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
    opacity: 0.9;
    margin-bottom: 1rem;
}

.xp-highlight-text {
    font-weight: 600;
    font-size: 1.25rem;
    margin-top: 1.5rem;
}

.xp-global-cta {
    margin-top: 2rem;
}

.xp-global-cta--center {
    text-align: center;
}


/* Map Container */
.xp-map-wrapper {
    position: relative;
    width: 100%;
    height: 520px;
    margin-bottom: 2rem;
    overflow: hidden;
}

#xp-world-map {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    height: clamp(380px, 50vw, 580px);
    background: #f5f5f5;
    border-radius: 4px;
    box-shadow: 0 4px 40px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-top: 2rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* No tile layer - attribution hidden */
#xp-world-map .leaflet-control-attribution {
    display: none;
}

/* Zoom controls */
#xp-world-map .leaflet-control-zoom {
    border: none !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

#xp-world-map .leaflet-control-zoom a {
    background: rgba(111, 7, 20, 0.85) !important;
    color: #fff !important;
    border: none !important;
    width: 34px;
    height: 34px;
    line-height: 34px;
    font-size: 16px;
}

#xp-world-map .leaflet-control-zoom a:hover {
    background: rgba(111, 7, 20, 1) !important;
}

#xp-world-map .leaflet-control-zoom-in {
    border-radius: 6px 6px 0 0 !important;
}

#xp-world-map .leaflet-control-zoom-out {
    border-radius: 0 0 6px 6px !important;
}

/* Custom Pin Markers */
.xp-map-marker {
    background: none !important;
    border: none !important;
}

.xp-map-marker svg {
    filter: drop-shadow(0 2px 4px rgba(76, 17, 20, 0.4));
    transition: transform 0.2s ease;
}

.xp-map-marker:hover svg {
    transform: scale(1.15);
}

/* Tooltip Styling (hover on markers) */
.xp-tooltip-wrapper {
    background: rgba(76, 17, 20, 0.95) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 0 !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3) !important;
}

.xp-tooltip-wrapper::before {
    border-top-color: rgba(76, 17, 20, 0.95) !important;
}

.xp-map-tooltip {
    padding: 0.6rem 1rem;
    text-align: center;
    white-space: nowrap;
}

.xp-map-tooltip strong {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.xp-map-tooltip span {
    display: block;
    font-size: 0.85rem;
    opacity: 0.8;
    margin-top: 3px;
}

/* Map Legend */
.xp-map-legend {
    background: #f8f8f8;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 0.75rem 1.25rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1;
    color: #333333;
    margin-left: 3rem !important;
    margin-top: 0.75rem !important;
}

.xp-legend-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.35rem 0;
}

.xp-legend-color {
    display: inline-block;
    width: 16px;
    height: 16px;
    border-radius: 3px;
    flex-shrink: 0;
}

.xp-legend-office {
    background: rgba(77, 18, 20, 0.25);
    border: 1px solid #4d1214;
}

.xp-legend-network {
    background: #c8cdd5;
    border: 1px solid #a0a8b4;
}

/* =============================================================================
   LOCATIONS TICKER
   ============================================================================= */

.xp-locations {
    position: relative;
    background: linear-gradient(135deg, #6a2028 0%, #6f0714 25%, #921b25 40%, #3a5a8a 60%, #1e2e54 80%, #3a4a78 100%);
    padding: 1.25rem 0;
    overflow: hidden;
}

.xp-locations-track {
    display: flex;
    animation: scroll 40s linear infinite;
    position: relative;
    z-index: 1;
}

.xp-locations-content {
    display: flex;
    align-items: center;
    gap: 0;
    flex-shrink: 0;
    padding-right: 2rem;
}

.xp-locations-content span {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    white-space: nowrap;
    padding: 0 1rem;
}

.xp-dot {
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    flex-shrink: 0;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* =============================================================================
   WHY XPERIODS SECTION
   ============================================================================= */

.xp-why {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.xp-why-content h2 {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    color: #4d1214;
    margin-bottom: 1.5rem;
    letter-spacing: -0.5px;
}

.xp-why-content p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.xp-quote {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--xp-primary);
    padding: 1.5rem 0;
    margin: 1.5rem 0;
    border-left: 4px solid transparent;
    border-image: linear-gradient(180deg, var(--xp-primary), #3a5a8a, #1e2e54) 1;
    padding-left: 1.5rem;
    font-style: italic;
}

.xp-feature-list {
    background: linear-gradient(160deg, #fff 0%, #faf8fb 50%, #f5f2f6 100%);
    border-radius: 16px;
    padding: 1.75rem 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06), 0 1px 0 rgba(111, 7, 20, 0.04);
    border: 1px solid rgba(111, 7, 20, 0.08);
    border-top: 3px solid transparent;
    border-image: linear-gradient(90deg, var(--xp-primary), #3a5a8a, #1e2e54) 1;
    border-image-slice: 1 0 0 0;
    position: sticky;
    top: 100px;
}

.xp-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(111, 7, 20, 0.06);
}

.xp-feature-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.xp-feature-item:first-child {
    padding-top: 0;
}

.xp-feature-item i {
    font-size: 1.25rem;
    color: var(--xp-primary);
    margin-top: 3px;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(111, 7, 20, 0.06);
    border-radius: 8px;
}

.xp-feature-item span {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-primary);
}

.xp-feature-item span strong {
    display: block;
    font-weight: 600;
    margin-bottom: 2px;
}

/* =============================================================================
   URGENCY SECTION
   ============================================================================= */

.xp-urgency {
    position: relative;
    background: transparent;
    padding: 5rem 0;
    text-align: center;
    color: #fff;
    overflow: hidden;
}

.xp-urgency--dark {
    background: #0e1822;
    color: #fff;
}

.xp-urgency--light {
    background: #1e2530;
    color: #fff;
}

/* Partnership section styles */
.xp-partnership-badge {
    display: inline-block;
    font-family: 'Raleway', var(--xp-font);
    font-size: 11px;
    font-weight: 300;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    padding: 8px 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 100px;
    margin-bottom: 2rem;
}

.xp-partnership-headline {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 400;
    color: #fff;
    margin: 0 0 2.5rem;
    line-height: 1.4;
}

.xp-partnership-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.xp-partnership-logo-img {
    height: 44px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.85;
    transition: opacity 0.3s ease;
}

.xp-partnership-logo-img:hover {
    opacity: 1;
}

.xp-partnership-dot {
    color: #9c2428;
    font-size: 2rem;
    line-height: 1;
}

.xp-partnership-desc {
    font-size: clamp(14px, 1.3vw, 16px);
    color: rgba(255, 255, 255, 0.65);
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.8;
}
}

/* Stronger overlay so text stays readable over the scientist image */
.xp-urgency.xp-has-bg::before {
    opacity: 0.2;
}

.xp-urgency-content {
    max-width: 700px;
    margin: 0 auto;
}

.xp-urgency-text {
    font-size: 2rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1rem;
}

.xp-urgency-text strong {
    color: #fff;
    font-size: 2.5rem;
}

.xp-urgency-brand {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.xp-urgency-brand span {
    color: #fff;
    font-weight: 700;
}

/* =============================================================================
   APPLICANTS SECTION
   ============================================================================= */

.xp-applicants-header {
    text-align: center;
    margin-bottom: 3rem;
}

.xp-applicants-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--xp-primary);
    margin-bottom: 0;
}

.xp-applicants-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.xp-applicant-card {
    background: #fff;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.xp-applicant-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(111, 7, 20, 0.1);
}

.xp-applicant-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: var(--xp-accent-light);
    border-radius: 12px;
    margin-bottom: 1.25rem;
    color: var(--xp-primary);
    font-size: 1.5rem;
}

.xp-applicant-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.xp-applicant-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
}

.xp-applicants-cta {
    text-align: center;
    padding-top: 2rem;
}

.xp-cta-text {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.xp-cta-highlight {
    font-size: 1.5rem;
    color: var(--xp-primary);
    margin-bottom: 1.5rem;
}

/* =============================================================================
   TAGS SECTION
   ============================================================================= */

.xp-tags {
    background: #fff;
    padding: 3rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.xp-tags-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.xp-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--xp-accent-light);
    color: var(--xp-primary);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.xp-tag:hover {
    background: var(--xp-primary);
    color: #fff;
}


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

.xp-cta-section {
    position: relative;
    background: transparent;
    padding: 6rem 0;
    text-align: center;
    overflow: hidden;
}

/* Background image for CTA via xp-has-bg */
.xp-cta-section.xp-has-bg::before {
    opacity: 0.25;
    z-index: 0;
}

/* Ensure content sits above animated gradient background */
.xp-cta-section > *:not(.xp-hero-gradient-bg) {
    position: relative;
    z-index: 2;
}

.xp-cta-content h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.xp-cta-content p {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
}

.xp-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-white {
    background: transparent;
    color: var(--xp-primary);
    border: none;
}
.btn-white::after {
    background: #fff;
}

.btn-white:hover {
    background: transparent;
    color: var(--xp-primary);
}

.btn-outline-white {
    background: transparent;
    color: #fff;
    border: none;
}
.btn-outline-white::after {
    background: rgba(76, 17, 20, 0.95);
}

.btn-outline-white:hover {
    background: transparent;
}

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

/* ── 1024 px ── */
@media (max-width: 1024px) {
    .xp-services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .xp-applicants-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .xp-why {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .xp-map-wrapper {
        height: 420px;
    }
}

/* ── 768 px ── */
@media (max-width: 768px) {
    .xp-hero-inner {
        padding: 1.5rem 1.5rem;
    }

    .xp-hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .xp-hero-title {
        letter-spacing: -1.5px;
    }

    .xp-btn-solid,
    .xp-btn-ghost {
        width: 100%;
        min-width: 0;
    }

    .xp-section {
        padding: 4rem 0;
    }

    .xp-section-header h2,
    .xp-global-header h2,
    .xp-why-content h2,
    .xp-applicants-header h2,
    .xp-cta-content h2 {
        font-size: 1.75rem;
    }

    .xp-about-heading {
        font-size: 2rem;
    }

    .xp-services-grid,
    .xp-applicants-grid {
        grid-template-columns: 1fr;
    }

    .xp-map-wrapper {
        height: 320px;
    }

    .xp-quote {
        font-size: 1.25rem;
    }

    .xp-urgency-text {
        font-size: 1.5rem;
    }

    .xp-urgency-text strong {
        font-size: 1.75rem;
    }

    .xp-urgency-brand {
        font-size: 1.25rem;
    }

    .xp-cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .xp-cta-buttons .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ── 480 px ── */
@media (max-width: 480px) {
    .xp-hero-inner {
        padding: 1rem 1rem;
    }

    .xp-hero-title {
        letter-spacing: -1px;
    }


    .xp-locations-content span {
        font-size: 0.7rem;
        padding: 0 0.75rem;
    }
}

/* =============================================================================
   DARK MODE - HOMEPAGE OVERRIDES
   ============================================================================= */

/* Page network: light-theme adjustments for dark mode */
[data-theme="dark"] .xp-pnet--light .xp-pnet-ring {
    stroke: #921b25;
    opacity: 0.3;
}

[data-theme="dark"] .xp-pnet--light .xp-pnet-ring--accent {
    stroke: #921b25;
    opacity: 0.35;
}

[data-theme="dark"] .xp-pnet--light .xp-pnet-link {
    stroke: rgba(111, 7, 20, 0.12);
}

[data-theme="dark"] .xp-pnet--light .xp-pnet-link--branch {
    stroke: rgba(111, 7, 20, 0.08);
}

[data-theme="dark"] .xp-pnet--light .xp-pnet-dot {
    fill: #921b25;
    opacity: 0.15;
}

[data-theme="dark"] .xp-pnet--light .xp-pnet-person {
    color: rgba(111, 7, 20, 0.3);
}

[data-theme="dark"] .xp-pnet--light .xp-pnet-person--accent {
    color: rgba(111, 7, 20, 0.3);
}

[data-theme="dark"] .xp-pnet--light .xp-pnet-pulse {
    fill: rgba(111, 7, 20, 0.4);
}

[data-theme="dark"] .xp-pnet--light .xp-pnet-glow {
    opacity: 0.1;
}

/* Light sections → dark background */
[data-theme="dark"] .xp-section--light,
[data-theme="dark"] .xp-about-section {
    background: #1e1e1e;
    border-color: rgba(111, 7, 20, 0.5);
}

[data-theme="dark"] .xp-about-watermark {
    filter: brightness(0) invert(1);
    opacity: 0.04;
}

[data-theme="dark"] .xp-about-heading {
    color: #e4e4e7;
}

[data-theme="dark"] .xp-about-badge {
    color: #e8c4c8;
    border-color: rgba(111, 7, 20, 0.2);
    background: rgba(111, 7, 20, 0.08);
}

[data-theme="dark"] .xp-about-badge .xp-hero-badge-brand {
    color: #e8c4c8;
}

[data-theme="dark"] .xp-about-brand {
    background: linear-gradient(135deg, #921b25, #b53040);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-theme="dark"] .xp-about-why-label {
    color: #921b25;
}

[data-theme="dark"] .xp-about-elevator {
    color: #d4d4d8;
}

[data-theme="dark"] .xp-about-slogan-text {
    color: #e8c4c8;
}

[data-theme="dark"] .xp-about-slogan-text strong {
    background: linear-gradient(135deg, #921b25, #b53040);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Section headers */
[data-theme="dark"] .xp-section-header h2,
[data-theme="dark"] .xp-why-content h2,
[data-theme="dark"] .xp-applicants-header h2 {
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: #e4e4e7;
    background-clip: unset;
    color: #e4e4e7;
}

[data-theme="dark"] .xp-section-header p,
[data-theme="dark"] .xp-why-content p {
    color: #a1a1aa;
}

/* Labels in light sections */
[data-theme="dark"] .xp-label {
    background: rgba(111, 7, 20, 0.15);
    color: #921b25;
}

/* Service cards */
[data-theme="dark"] .xp-subrosa-watermark {
    opacity: 0.03;
}

[data-theme="dark"] .xp-subrosa-elevator p {
    color: #d4d4d8;
}

[data-theme="dark"] .xp-service-card {
    background: #1e1e1e;
    border-color: #3f3f3f;
}

[data-theme="dark"] .xp-service-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: #921b25;
}

[data-theme="dark"] .xp-service-card h3 {
    color: #e4e4e7;
}

[data-theme="dark"] .xp-service-card p {
    color: #a1a1aa;
}

/* Map background */
[data-theme="dark"] #xp-world-map {
    background: #2a2a3a;
}

/* Map legend */
[data-theme="dark"] .xp-map-legend {
    background: rgba(30, 30, 30, 0.95);
    color: #e4e4e7;
}

/* Why XPERIODS */
[data-theme="dark"] .xp-quote {
    color: #921b25;
    border-left-color: #921b25;
}

[data-theme="dark"] .xp-feature-list {
    background: #1e1e1e;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .xp-feature-item {
    border-bottom-color: #3f3f3f;
}

[data-theme="dark"] .xp-feature-item i {
    color: #921b25;
}

[data-theme="dark"] .xp-feature-item span {
    color: #e4e4e7;
}

/* Urgency section - already has purple gradient + image, minimal dark overrides needed */

/* Applicant cards */
[data-theme="dark"] .xp-applicant-card {
    background: #1e1e1e;
    border-color: #3f3f3f;
}

[data-theme="dark"] .xp-applicant-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .xp-applicant-icon {
    background: rgba(111, 7, 20, 0.15);
    color: #921b25;
}

[data-theme="dark"] .xp-applicant-card h3 {
    color: #e4e4e7;
}

[data-theme="dark"] .xp-applicant-card p {
    color: #a1a1aa;
}

[data-theme="dark"] .xp-cta-text {
    color: #a1a1aa;
}

[data-theme="dark"] .xp-cta-highlight {
    color: #921b25;
}

/* Tags section */
[data-theme="dark"] .xp-tags {
    background: #1a1a1a;
    border-top-color: #3f3f3f;
    border-bottom-color: #3f3f3f;
}

[data-theme="dark"] .xp-tag {
    background: rgba(111, 7, 20, 0.15);
    color: #921b25;
}

[data-theme="dark"] .xp-tag:hover {
    background: #921b25;
    color: #fff;
}

/* =============================================================================
   TESTIMONIALS CAROUSEL
   ============================================================================= */

.xp-testimonials {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 0;
}

.xp-testimonials-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.xp-testimonials-tab {
    padding: 10px 24px;
    border: 2px solid var(--border-color);
    border-radius: 100px;
    background: transparent;
    color: var(--text-secondary);
    font-family: var(--xp-font);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.xp-testimonials-tab:hover {
    border-color: var(--xp-primary);
    color: var(--xp-primary);
}

.xp-testimonials-tab--active {
    background: var(--xp-primary);
    border-color: var(--xp-primary);
    color: #fff;
}

.xp-testimonials-subtitle {
    text-align: center;
    font-style: italic;
    opacity: 0.7;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.xp-testimonials-panels {
    position: relative;
    min-height: 250px;
}

.xp-testimonials-panel {
    display: none;
}

.xp-testimonials-panel--active {
    display: block;
}

.xp-testimonials-slides {
    position: relative;
    min-height: 200px;
    overflow: hidden;
}

.xp-testimonials-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.xp-testimonials-slide--active {
    position: relative;
    opacity: 1;
    pointer-events: auto;
}

.xp-testimonials-slide--exiting {
    opacity: 0;
}

.xp-testimonials-slide blockquote {
    margin: 0;
    padding: 0;
}

.xp-testimonials-slide blockquote p {
    font-size: clamp(1.05rem, 1.6vw, 1.25rem);
    line-height: 1.8;
    color: var(--text-primary);
    font-style: italic;
    margin-bottom: 1.5rem;
}

.xp-testimonials-slide blockquote p::before {
    content: '\201C';
    font-size: 3.5rem;
    background: linear-gradient(135deg, var(--xp-primary), #1e2e54);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-style: normal;
    line-height: 0;
    vertical-align: -0.3em;
    margin-right: 4px;
}

.xp-testimonials-slide blockquote p::after {
    content: '\201D';
    font-size: 2rem;
    color: var(--xp-primary);
    font-style: normal;
    margin-left: 4px;
}

.xp-testimonials-slide cite {
    display: block;
    font-style: normal;
    font-weight: 600;
    color: var(--xp-primary);
    font-size: 0.95rem;
}

.xp-testimonials-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.xp-testimonials-prev,
.xp-testimonials-next {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.xp-testimonials-prev:hover,
.xp-testimonials-next:hover {
    border-color: var(--xp-primary);
    color: var(--xp-primary);
    background: rgba(111, 7, 20, 0.05);
}

.xp-testimonials-counter {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
    min-width: 50px;
    text-align: center;
}

/* Dark mode testimonials */
[data-theme="dark"] .xp-testimonials-tab {
    border-color: #3f3f3f;
    color: #a1a1aa;
}

[data-theme="dark"] .xp-testimonials-tab:hover {
    border-color: #921b25;
    color: #e8c4c8;
}

[data-theme="dark"] .xp-testimonials-tab--active {
    background: #921b25;
    border-color: #921b25;
    color: #fff;
}

[data-theme="dark"] .xp-testimonials-slide blockquote p {
    color: #d4d4d8;
}

[data-theme="dark"] .xp-testimonials-slide cite {
    color: #e8c4c8;
}

[data-theme="dark"] .xp-testimonials-prev,
[data-theme="dark"] .xp-testimonials-next {
    border-color: #3f3f3f;
    color: #a1a1aa;
}

[data-theme="dark"] .xp-testimonials-prev:hover,
[data-theme="dark"] .xp-testimonials-next:hover {
    border-color: #921b25;
    color: #e8c4c8;
    background: rgba(146, 27, 37, 0.15);
}

/* =============================================================================
   BIOTECH LIFECYCLE DIAGRAM
   ============================================================================= */

.xp-lifecycle {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-top: 2rem;
}

.xp-lifecycle-stage {
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.04) 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-lg, 12px);
    padding: 1.75rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
}

.xp-lifecycle-stage:hover {
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.08) 100%);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.xp-lifecycle-stage h3 {
    font-family: var(--xp-font);
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.75rem;
    padding-bottom: 0.6rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.15);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.xp-lifecycle-stage ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.xp-lifecycle-stage li {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.75);
    padding: 4px 0;
    padding-left: 1.25rem;
    position: relative;
}

.xp-lifecycle-stage li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--xp-primary-light, #921b25);
    transform: translateY(-50%);
}

@media (max-width: 980px) {
    .xp-lifecycle {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .xp-lifecycle {
        grid-template-columns: 1fr;
    }
}

/* =============================================================================
   TEAM GRID
   ============================================================================= */

.xp-team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.xp-team-card {
    background: linear-gradient(180deg, #fff 0%, #fafbfc 100%);
    border-radius: var(--radius-lg, 12px);
    padding: 2.5rem;
    border: 1px solid var(--border-color, #dee2e6);
    border-top: 3px solid transparent;
    border-image: linear-gradient(90deg, var(--xp-primary), #3a5a8a, #1e2e54) 1;
    border-image-slice: 1 0 0 0;
    transition: all 0.3s ease;
}

.xp-team-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(111, 7, 20, 0.12);
}

.xp-team-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--xp-primary), #3a5a8a);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
    color: #fff;
}

.xp-team-name {
    font-family: var(--xp-font);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.xp-team-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--xp-primary);
    margin-bottom: 1.5rem;
}

.xp-team-bio p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.xp-team-bio p:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .xp-team-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Dark mode team */
[data-theme="dark"] .xp-team-card {
    background: #1e1e1e;
    border-color: #3f3f3f;
}

[data-theme="dark"] .xp-team-name {
    color: #e4e4e7;
}

[data-theme="dark"] .xp-team-title {
    color: #e8c4c8;
}

[data-theme="dark"] .xp-team-bio p {
    color: #a1a1aa;
}

/* =============================================================================
   STAT CARD SUBTITLE
   ============================================================================= */

.xp-applicant-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
    line-height: 1.5;
}

[data-theme="dark"] .xp-applicant-subtitle {
    color: #71717a;
}

/* =============================================================================
   SERVICE PILLAR CARDS (with bullet lists)
   ============================================================================= */

.xp-applicant-card ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0 1.5rem;
    text-align: left;
}

.xp-applicant-card li {
    font-size: 0.9rem;
    color: var(--text-secondary);
    padding: 5px 0 5px 1.25rem;
    position: relative;
    line-height: 1.5;
}

.xp-applicant-card li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--xp-primary);
    transform: translateY(-50%);
}

.xp-applicant-card .xp-btn-solid {
    display: inline-block;
    margin-top: auto;
    font-size: 0.9rem;
    padding: 10px 24px;
}

[data-theme="dark"] .xp-applicant-card li {
    color: #a1a1aa;
}

/* =============================================================================
   PAGE HERO (inner pages)
   ============================================================================= */

.xp-page-hero {
    padding: 6rem 0 4rem;
    text-align: center;
}

.xp-page-hero h1 {
    font-family: var(--xp-font);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: 1rem;
}

.xp-page-hero p {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    color: rgba(255, 255, 255, 0.8);
    max-width: 650px;
    margin: 0 auto 2rem;
}

/* =============================================================================
   CONTACT FORM CARD
   ============================================================================= */

.xp-contact-card {
    max-width: 720px;
    margin: 0 auto;
    background: var(--white, #fff);
    border: 1px solid var(--border-color, #dee2e6);
    border-radius: var(--radius-lg, 12px);
    padding: 3rem;
    box-shadow: var(--shadow-lg, 0 10px 40px rgba(0, 0, 0, 0.08));
}

.xp-contact-card .form-group {
    margin-bottom: 1.5rem;
}

.xp-contact-card label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.xp-contact-card input,
.xp-contact-card textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color, #dee2e6);
    border-radius: var(--radius, 8px);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background: var(--white, #fff);
    color: var(--text-primary);
}

.xp-contact-card input:focus,
.xp-contact-card textarea:focus {
    outline: none;
    border-color: var(--xp-primary);
    box-shadow: 0 0 0 3px rgba(111, 7, 20, 0.1);
}

.xp-contact-card textarea {
    min-height: 150px;
    resize: vertical;
}

[data-theme="dark"] .xp-contact-card {
    background: #1e1e1e;
    border-color: #3f3f3f;
}

[data-theme="dark"] .xp-contact-card input,
[data-theme="dark"] .xp-contact-card textarea {
    background: #2a2a2a;
    border-color: #3f3f3f;
    color: #e4e4e7;
}

[data-theme="dark"] .xp-contact-card label {
    color: #e4e4e7;
}

/* =============================================================================
   STATS GRID: 6-column responsive layout
   ============================================================================= */

.xp-section--subrosa .xp-applicants-grid {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 980px) {
    .xp-section--subrosa .xp-applicants-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .xp-section--subrosa .xp-applicants-grid {
        grid-template-columns: 1fr;
    }
}

/* =============================================================================
   TEAM PHOTOS (About page)
   ============================================================================= */

.xp-team-card img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1.5rem;
    border: 4px solid rgba(111, 7, 20, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.xp-team-card:hover img {
    transform: scale(1.05);
    box-shadow: 0 8px 30px rgba(111, 7, 20, 0.15);
}

.xp-team-card h3 {
    font-family: var(--xp-font);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.xp-team-card p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

[data-theme="dark"] .xp-team-card h3 {
    color: #e4e4e7;
}

[data-theme="dark"] .xp-team-card p {
    color: #a1a1aa;
}

[data-theme="dark"] .xp-team-card img {
    border-color: rgba(111, 7, 20, 0.3);
}

/* =============================================================================
   INSIGHT BLOG CARDS
   ============================================================================= */

.xp-insight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.xp-insight-card {
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #fff 0%, #fafbfc 100%);
    border-radius: var(--radius-lg, 12px);
    padding: 2rem;
    border: 1px solid var(--border-color, #dee2e6);
    border-top: 3px solid transparent;
    border-image: linear-gradient(90deg, var(--xp-primary), #3a5a8a, #1e2e54) 1;
    border-image-slice: 1 0 0 0;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.xp-insight-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(111, 7, 20, 0.12);
}

.xp-insight-card .xp-applicant-icon {
    margin-bottom: 1.25rem;
}

.xp-insight-card h3 {
    font-family: var(--xp-font);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.xp-insight-card .xp-insight-date {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.xp-insight-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    flex-grow: 1;
}

.xp-insight-card .xp-btn-solid {
    display: inline-block;
    margin-top: 1.25rem;
    align-self: flex-start;
}

[data-theme="dark"] .xp-insight-card {
    background: #1e1e1e;
    border-color: #3f3f3f;
}

[data-theme="dark"] .xp-insight-card:hover {
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .xp-insight-card h3 {
    color: #e4e4e7;
}

[data-theme="dark"] .xp-insight-card p {
    color: #a1a1aa;
}

/* =============================================================================
   BLOG POST DETAIL PAGES
   ============================================================================= */

.xp-blog-header {
    text-align: center;
    padding: 5rem 0 3rem;
}

.xp-blog-header .xp-blog-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.75rem;
}

.xp-blog-header h1 {
    font-family: var(--xp-font);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
}

.xp-blog-header .xp-blog-date {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
}

.xp-blog-body {
    max-width: 800px;
    margin: 0 auto;
}

.xp-blog-body h2 {
    font-family: var(--xp-font);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--xp-primary);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.xp-blog-body h2:first-child {
    margin-top: 0;
}

.xp-blog-body p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

[data-theme="dark"] .xp-blog-body h2 {
    color: #e8c4c8;
}

[data-theme="dark"] .xp-blog-body p {
    color: #a1a1aa;
}

/* =============================================================================
   SECTION IMAGE (e.g. Executive Access)
   ============================================================================= */

.xp-section-image {
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

/* =============================================================================
   STAT CARD ICON IMG
   ============================================================================= */

.xp-applicant-icon img {
    width: 48px;
    height: 48px;
}

.xp-applicant-card--dark .xp-applicant-icon img {
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

/* Feature list icons (Why HNH section) */
.xp-feature-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

/* =============================================================================
   SERVICE PILLAR CARD IMAGE
   ============================================================================= */

.xp-applicant-card > img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    aspect-ratio: 16/10;
    object-fit: cover;
}

/* =============================================================================
   PARTNERSHIP BANNER
   ============================================================================= */

.xp-partnership-logo {
    max-width: 280px;
    margin-top: 1rem;
    filter: brightness(0) invert(1);
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.xp-partnership-logo:hover {
    opacity: 1;
}

/* =============================================================================
   FOOTER CTA WHITE LOGO
   ============================================================================= */

.xp-cta-logo {
    max-width: 200px;
    margin-bottom: 2rem;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

/* =============================================================================
   WORLD MAP STATIC IMAGE
   ============================================================================= */

.xp-world-map-img {
    max-width: 100%;
    border-radius: 12px;
}

/* =============================================================================
   MOBILE PERSON NETWORK HIDE
   ============================================================================= */

@media (max-width: 900px) {
    .xp-pnet {
        display: none;
    }
}

/* =============================================================================
   HERO SECTORS OVERFLOW FIX
   ============================================================================= */

@media (max-width: 768px) {
    .xp-hero-sectors {
        white-space: normal;
    }

    .xp-about-heading--sm {
        white-space: normal;
    }
}

/* =============================================================================
   GENERAL TYPOGRAPHY POLISH
   ============================================================================= */

.xp-section h1 {
    font-family: var(--xp-font);
}

.xp-section h2 {
    font-family: var(--xp-font);
}

.xp-why-content h2 {
    font-family: var(--xp-font);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.xp-why-content p {
    font-size: 1rem;
    line-height: 1.75;
}

/* Smooth scroll anchor offset for sticky header */
[id] {
    scroll-margin-top: 80px;
}

/* =============================================================================
   BACKGROUND IMAGE SECTIONS
   ============================================================================= */

.xp-section--bg {
    background-size: cover;
    background-position: center;
    position: relative;
}

.xp-section--bg > .xp-overlay {
    position: absolute;
    inset: 0;
    background: rgba(76, 17, 20, 0.85);
}

.xp-section--bg > .container {
    position: relative;
    z-index: 1;
}

/* =============================================================================
   HERO ACTIONS SPACING
   ============================================================================= */

.xp-hero-actions--spaced {
    margin-top: 2rem;
}

.xp-hero-actions--spaced-lg {
    margin-top: 3rem;
}

/* =============================================================================
   TEXT CENTER UTILITY
   ============================================================================= */

.xp-text-center {
    text-align: center;
}

/* =============================================================================
   FOOTER TAGLINE
   ============================================================================= */

.footer-tagline {
    margin-top: 1rem;
    font-style: italic;
    opacity: 0.8;
}

/* =============================================================================
   SVG NETWORK VISUALIZATION (Executive Access, About page)
   ============================================================================= */

.xp-viz {
    display: flex;
    justify-content: center;
    align-items: center;
}

.xp-viz--network {
    max-width: 400px;
    margin: 0 auto;
}

.xp-viz-svg {
    width: 100%;
    height: auto;
}

.xp-viz-node--primary {
    fill: var(--xp-primary);
    opacity: 0.9;
}

.xp-viz-node--secondary {
    fill: var(--xp-primary-light, #921b25);
    opacity: 0.6;
}

.xp-viz-node--tertiary {
    fill: var(--xp-primary);
    opacity: 0.3;
}

.xp-viz-link {
    stroke: var(--xp-primary-light, #921b25);
    stroke-width: 1.5;
    stroke-dasharray: 6 4;
    opacity: 0.5;
    animation: xp-viz-flow 3s linear infinite;
}

.xp-viz-link--faint {
    opacity: 0.2;
    stroke-dasharray: 3 6;
}

@keyframes xp-viz-flow {
    to { stroke-dashoffset: -20; }
}

.xp-viz-label {
    fill: #fff;
    font-family: var(--xp-font);
    font-size: 16px;
    font-weight: 700;
}

.xp-viz-sublabel {
    fill: rgba(255, 255, 255, 0.6);
    font-family: var(--xp-font);
    font-size: 10px;
    font-weight: 500;
}

/* =============================================================================
   STATS GRID (6 cards, dark section)
   ============================================================================= */

.xp-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.xp-stat-card {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 3px solid transparent;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.xp-stat-card:hover {
    background: rgba(0, 0, 0, 0.3);
    border-bottom-color: #9c2428;
    transform: translateY(-4px);
}

.xp-stat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    margin-bottom: 1.25rem;
    color: #fff;
    font-size: 1.4rem;
}

.xp-stat-card h3 {
    font-family: var(--xp-font);
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.75rem;
    line-height: 1;
    letter-spacing: -1px;
}

.xp-stat-card > p {
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.xp-stat-detail {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.5;
    margin-top: 0.5rem;
}

@media (max-width: 980px) {
    .xp-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .xp-stats-grid {
        grid-template-columns: 1fr;
    }
}

/* =============================================================================
   PILLAR CARDS (3-column service pillars)
   ============================================================================= */

.xp-pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.xp-pillars-grid[style*="repeat(4"] .xp-alliance-card {
    padding: 28px 24px;
}

.xp-pillars-grid[style*="repeat(4"] .xp-alliance-card p:not(.xp-team-title) {
    font-size: 13px;
}

.xp-pillar-card {
    background: linear-gradient(180deg, #fff 0%, #fafbfc 100%);
    border: 1px solid var(--border-color, #dee2e6);
    border-top: 4px solid transparent;
    border-image: linear-gradient(90deg, var(--xp-primary), #3a5a8a, #1e2e54) 1;
    border-image-slice: 1 0 0 0;
    border-radius: var(--radius-lg, 12px);
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.xp-pillar-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(111, 7, 20, 0.1);
}

.xp-pillar-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    background: linear-gradient(145deg, var(--xp-primary) 0%, #40190d 50%, #1e2e54 100%);
    border-radius: 16px;
    margin-bottom: 1.5rem;
    color: #fff;
    font-size: 2rem;
    box-shadow: 0 4px 20px rgba(111, 7, 20, 0.2);
}

.xp-pillar-card h3 {
    font-family: var(--xp-font);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.xp-pillar-card > p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.xp-pillar-card ul {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    flex-grow: 1;
}

.xp-pillar-card li {
    font-size: 0.9rem;
    color: var(--text-secondary);
    padding: 5px 0 5px 1.25rem;
    position: relative;
    line-height: 1.5;
}

.xp-pillar-card li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 12px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--xp-primary);
}

.xp-btn-pillar {
    display: inline-block;
    margin-top: auto;
    background: transparent;
    border: 1px solid #4d1214;
    color: #4d1214;
    font-family: 'Raleway', var(--xp-font);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 14px 28px;
    border-radius: 4px;
    transition: background 0.3s ease, color 0.3s ease;
    cursor: pointer;
}

.xp-btn-pillar:hover {
    background: #4d1214;
    color: #fff;
}

.xp-pillar-card .xp-btn-solid {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: auto;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1.5px;
    align-self: flex-start;
    font-size: 0.9rem;
    padding: 10px 24px;
}

@media (max-width: 980px) {
    .xp-pillars-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Dark mode — pillar cards */
[data-theme="dark"] .xp-pillar-card {
    background: #1e1e1e;
    border-color: #3f3f3f;
    border-top-color: var(--xp-primary-light, #921b25);
}

[data-theme="dark"] .xp-pillar-card h3 {
    color: #e4e4e7;
}

[data-theme="dark"] .xp-pillar-card > p,
[data-theme="dark"] .xp-pillar-card li {
    color: #a1a1aa;
}

[data-theme="dark"] .xp-pillar-card:hover {
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

/* Dark mode — viz SVG */
[data-theme="dark"] .xp-viz-node--primary {
    fill: var(--xp-primary-light, #921b25);
}

[data-theme="dark"] .xp-viz-link {
    stroke: var(--xp-primary-light, #921b25);
}

@media (max-width: 768px) {
    #xp-world-map {
        height: 280px;
        border-radius: 4px;
    }
}

/* =============================================================================
   CTA SECTION — premium bottom call-to-action
   ============================================================================= */

.xp-cta-eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1rem;
    padding: 6px 18px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 100px;
    background: linear-gradient(135deg, rgba(111, 7, 20, 0.2), rgba(30, 46, 84, 0.15));
}

.xp-cta-subline {
    color: rgba(255, 255, 255, 0.55);
    font-size: clamp(14px, 1.3vw, 17px);
    max-width: 520px;
    margin: 0.75rem auto 2rem;
    line-height: 1.6;
    text-align: center;
}

.xp-cta-desc {
    font-size: clamp(1rem, 1.4vw, 1.15rem);
    color: rgba(255, 255, 255, 0.8);
    max-width: 100%;
    margin: 1rem auto 2.5rem;
    white-space: nowrap;
    line-height: 1.6;
}

.xp-cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* =============================================================================
   SECTION DIVIDER — subtle separator between light sections
   ============================================================================= */

.xp-section + .xp-section--light,
.xp-section--light + .xp-section {
    border-top: 1px solid rgba(111, 7, 20, 0.06);
}

/* =============================================================================
   TESTIMONIALS — polish
   ============================================================================= */

.xp-testimonials-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-style: italic;
}

/* =============================================================================
   RESPONSIVE HERO — mobile polish
   ============================================================================= */

@media (max-width: 768px) {
    .xp-hero-title {
        font-size: clamp(28px, 7vw, 40px);
        letter-spacing: -0.5px;
    }

    .xp-hero-title-word--accent {
        font-size: clamp(16px, 4vw, 22px);
    }

    .xp-hero-desc--clean {
        font-size: 15px;
        padding: 0 1rem;
    }

    .xp-hero-eyebrow {
        font-size: 11px;
        letter-spacing: 2px;
        padding: 10px 20px;
    }

    .xp-hero-actions {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .xp-hero-actions .xp-btn-solid,
    .xp-hero-actions .xp-btn-ghost {
        width: 100%;
        max-width: 300px;
    }

    .xp-hero-scroll {
        bottom: 80px;
    }

    .xp-section {
        padding: 4rem 0;
    }

    .xp-section-header h2 {
        font-size: 1.75rem;
    }
}

@media (max-width: 480px) {
    .xp-hero {
        min-height: 100svh;
    }

    .xp-hero-inner {
        padding: 1.5rem;
    }

    .xp-stat-card {
        padding: 1.5rem;
    }

    .xp-pillar-card {
        padding: 2rem 1.5rem;
    }

    .xp-lifecycle-stage {
        padding: 1.25rem;
    }

    .xp-cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}

/* =============================================================================
   PREMIUM HOVER REFINEMENTS — subtle, professional interactions
   ============================================================================= */

.xp-stat-card {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.xp-stat-card:hover .xp-stat-icon {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.18);
}

.xp-stat-icon {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.xp-pillar-card {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.xp-pillar-card:hover .xp-pillar-icon {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 8px 25px rgba(111, 7, 20, 0.25);
}

.xp-pillar-icon {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.xp-lifecycle-stage {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.xp-feature-item {
    transition: all 0.3s ease;
}

.xp-feature-item:hover {
    transform: translateX(4px);
}

.xp-feature-item:hover i {
    transform: scale(1.15);
}

.xp-feature-item i {
    transition: transform 0.3s ease;
}

/* =============================================================================
   SECTION HEADER — refined typography
   ============================================================================= */

.xp-section-header {
    margin-bottom: 3rem;
}

.xp-section-header p {
    max-width: 820px;
    margin: 0.5rem auto 0;
}

/* ═════════════════════════════════════════════════════════════════════════════
   UTILITY CLASSES
   ============================================================================= */

.xp-container--narrow {
    max-width: 720px;
}

.xp-hero-actions--mt {
    margin-top: 2rem;
}

.xp-viz-caption {
    text-align: center;
    margin-top: 1.5rem;
    font-style: italic;
    color: var(--text-secondary);
}

/* ═════════════════════════════════════════════════════════════════════════════
   DARK MODE — BLOG LABELS (supplement to existing blog dark styles above)
   ============================================================================= */

[data-theme="dark"] .xp-blog-label {
    color: rgba(255, 255, 255, 0.6);
}

[data-theme="dark"] .xp-blog-date {
    color: rgba(255, 255, 255, 0.5);
}

/* ═════════════════════════════════════════════════════════════════════════════
   PREFERS REDUCED MOTION
   ============================================================================= */

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

    .xp-gradient-live {
        animation: none;
    }

    .xp-hero-video {
        display: none;
    }

    .xp-hero-scroll {
        animation: none;
    }

    .xp-viz-link {
        stroke-dasharray: none;
        animation: none;
    }
}
