/**
 * 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: #541971;
    --xp-primary-light: #6b2490;
    --xp-primary-dark: #3d1153;
    --xp-primary-rgb: 84, 25, 113;
    --xp-accent: #541971;
    --xp-accent-light: rgba(84, 25, 113, 0.1);
    --xp-gradient: linear-gradient(135deg, #1a0a2e 0%, #3d1153 25%, #541971 45%, #6b2490 60%, #2d1b69 80%, #1a0a2e 100%);
    --xp-gradient-light: linear-gradient(135deg, rgba(84, 25, 113, 0.05) 0%, rgba(61, 17, 83, 0.1) 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: rgba(139, 92, 246, 0.35);
    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: rgba(107, 36, 144, 0.4);
    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;
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    background: #1a0a2e;
    color: #fff;
    overflow: hidden;
    font-family: var(--xp-font);
}

/* ── Fullscreen background video ── */
.xp-hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    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;
    align-items: center;
    justify-content: center;
    padding-right: 18vw;
    pointer-events: none;
    opacity: 0;
}

.xp-hero-logo img {
    width: clamp(140px, 22vw, 440px);
    height: auto;
    filter: brightness(0) invert(1)
            drop-shadow(0 0 50px rgba(124, 58, 237, 0.6))
            drop-shadow(0 0 100px rgba(192, 38, 211, 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(124,58,237,0.6)) drop-shadow(0 0 100px rgba(192,38,211,0.35));
    }
    50% {
        transform: scale(1.06) translateY(-10px);
        filter: drop-shadow(0 0 70px rgba(124,58,237,0.8)) drop-shadow(0 0 130px rgba(192,38,211,0.5));
    }
}

/* ── Gradient overlay ── */
.xp-hero-video-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(26, 10, 46, 0.80) 0%,
        rgba(26, 10, 46, 0.55) 35%,
        rgba(26, 10, 46, 0.25) 65%,
        rgba(26, 10, 46, 0.10) 100%
    );
    z-index: 1;
}

/* ── Content wrapper — flex row: text left, logo centered right ── */
.xp-hero-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 4vw;
    padding: 2.5rem 6vw 4rem;
}

.xp-hero-text {
    flex: 1 1 0;
    min-width: 0;
}

/* =============================================================================
   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(192, 38, 211, 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: #a78bfa;
    opacity: 0.2;
    animation: xp-pnet-dot-pulse 5s ease-in-out infinite;
}

.xp-pnet--dark .xp-pnet-ring {
    fill: none;
    stroke: #a78bfa;
    stroke-width: 1.5;
    opacity: 0.5;
}

.xp-pnet--dark .xp-pnet-ring--center {
    stroke: #c026d3;
    stroke-width: 2;
    opacity: 0.7;
    filter: drop-shadow(0 0 6px rgba(192, 38, 211, 0.5));
}

.xp-pnet--dark .xp-pnet-glow {
    fill: #c026d3;
    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(192, 38, 211, 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(74, 26, 122, 0.10);
    stroke-width: 1;
    fill: none;
}

.xp-pnet--light .xp-pnet-link--branch {
    stroke: rgba(74, 26, 122, 0.08);
    stroke-width: 0.8;
    stroke-dasharray: 4 3;
    animation: xp-pnet-flow 6s linear infinite;
}

.xp-pnet--light .xp-pnet-dot {
    fill: #4a1a7a;
    opacity: 0.12;
    animation: xp-pnet-dot-pulse 5s ease-in-out infinite;
}

.xp-pnet--light .xp-pnet-ring {
    fill: none;
    stroke: #4a1a7a;
    stroke-width: 1.5;
    opacity: 0.18;
}

.xp-pnet--light .xp-pnet-ring--accent {
    stroke: #c026d3;
    stroke-width: 1.8;
    opacity: 0.2;
    filter: drop-shadow(0 0 4px rgba(192, 38, 211, 0.2));
}

.xp-pnet--light .xp-pnet-glow {
    fill: #c026d3;
    opacity: 0.06;
    filter: blur(10px);
    animation: xp-pnet-glow-breathe 4s ease-in-out infinite;
}

.xp-pnet--light .xp-pnet-person {
    color: rgba(74, 26, 122, 0.25);
    animation: xp-pnet-person-pulse 4.5s ease-in-out infinite;
}

.xp-pnet--light .xp-pnet-person--accent {
    color: rgba(192, 38, 211, 0.25);
    animation: xp-pnet-center-pulse 3.5s ease-in-out infinite;
}

.xp-pnet--light .xp-pnet-pulse {
    fill: rgba(74, 26, 122, 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 ENTRANCE ANIMATIONS (staggered)
   ============================================================================= */

.xp-anim {
    opacity: 0;
    transform: translateY(30px);
    animation: xp-slide-up 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.xp-anim[data-delay="0"] { animation-delay: 0.2s; }
.xp-anim[data-delay="1"] { animation-delay: 0.6s; }
.xp-anim[data-delay="2"] { animation-delay: 1.0s; }
.xp-anim[data-delay="3"] { animation-delay: 1.3s; }
.xp-anim[data-delay="4"] { animation-delay: 1.6s; }
.xp-anim[data-delay="5"] { animation-delay: 1.9s; }

@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 (small pill above headline) ── */
.xp-hero-badge {
    display: inline-block;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.5px;
    color: rgba(196, 181, 253, 0.9);
    padding: 8px 20px;
    border: 1px solid rgba(196, 181, 253, 0.2);
    border-radius: 100px;
    background: rgba(196, 181, 253, 0.06);
    margin: 0 0 40px;
    transition: border-color 0.8s ease, box-shadow 0.8s ease;
}

/* Gradient glow — activated after video ends */
.xp-hero-badge--animate {
    border-color: rgba(124, 58, 237, 0.5);
    box-shadow:
        0 0 8px rgba(124, 58, 237, 0.3),
        0 0 20px rgba(192, 38, 211, 0.15),
        inset 0 0 8px rgba(124, 58, 237, 0.1);
}

.xp-hero-badge-brand {
    font-weight: 600;
}

/* ── Headline (the star of the page) ── */
.xp-hero-title {
    font-size: clamp(48px, 5.5vw, 78px);
    font-weight: 800;
    line-height: 1.04;
    letter-spacing: -3px;
    margin: 0 0 12px;
    color: #fff;
}

/* ── Subheadline (light, lilac, belongs to headline) ── */
.xp-hero-sub {
    display: block;
    font-size: clamp(20px, 2.2vw, 30px);
    font-weight: 300;
    letter-spacing: -0.5px;
    color: #C4B5FD;
    margin-top: 8px;
}

/* ── Sector tags (muted, uppercase) ── */
.xp-hero-sectors {
    font-size: clamp(17px, 1.8vw, 26px);
    font-weight: 300;
    letter-spacing: -0.3px;
    text-transform: none;
    color: #C4B5FD;
    margin: -10px 0 36px;
    white-space: nowrap;
}

/* ── Description (readable, restrained) ── */
.xp-hero-desc {
    font-size: 17px;
    font-weight: 400;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.65);
    max-width: 480px;
    margin: 0 0 44px;
}

.xp-hero-highlight {
    display: inline-block;
    margin-top: 18px;
    padding: 6px 16px;
    border: 1px solid rgba(196, 181, 253, 0.35);
    border-radius: 6px;
    transition: border-color 0.8s ease, box-shadow 0.8s ease;
}

/* Gradient glow — activated after video ends */
.xp-hero-highlight--animate {
    border-color: rgba(124, 58, 237, 0.5);
    box-shadow:
        0 0 8px rgba(124, 58, 237, 0.3),
        0 0 20px rgba(192, 38, 211, 0.15),
        inset 0 0 8px rgba(124, 58, 237, 0.1);
}

/* ── Buttons ── */
.xp-hero-actions {
    display: flex;
    gap: 16px;
    margin: 0 0 56px;
}

.xp-btn-solid,
.xp-btn-ghost {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--xp-font);
    font-size: 15px;
    font-weight: 600;
    height: 52px;
    min-width: 180px;
    padding: 0 36px;
    border-radius: 6px;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    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(124, 58, 237, 0.8),
        rgba(192, 38, 211, 0.8),
        rgba(255, 255, 255, 0.5),
        rgba(124, 58, 237, 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(26, 10, 46, 0.95);
}

@keyframes xp-btn-border-spin {
    0%   { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.xp-btn-solid {
    background: transparent;
    color: #1a0a2e;
    border: none;
}

.xp-btn-solid:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.4), 0 0 40px rgba(192, 38, 211, 0.2);
    color: #1a0a2e;
}

.xp-btn-ghost {
    background: transparent;
    color: #fff;
    border: none;
}

.xp-btn-ghost:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.4), 0 0 40px rgba(192, 38, 211, 0.2);
}

/* ── Stats bar ── */
.xp-hero-stats {
    display: flex;
    gap: 72px;
    padding-top: 48px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.xp-stat {
    display: flex;
    flex-direction: column;
}

.xp-stat-number {
    font-size: 40px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 6px;
    color: #fff;
}

.xp-stat-label {
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.3px;
    color: rgba(255, 255, 255, 0.45);
}

/* =============================================================================
   GLOBAL FONT for all homepage sections
   ============================================================================= */

.xp-hero,
.xp-section,
.xp-locations,
.xp-urgency,
.xp-tags,
.xp-cta-section {
    font-family: var(--xp-font);
}

/* =============================================================================
   SECTIONS (General)
   ============================================================================= */

.xp-section {
    padding: 6rem 0;
}

.xp-section--light {
    background: #f8f9fa;
}

.xp-section--dark {
    position: relative;
    background: linear-gradient(135deg, #1a0a2e 0%, #3d1153 25%, #541971 45%, #6b2490 60%, #2d1b69 80%, #1a0a2e 100%);
    color: #fff;
    overflow: hidden;
}

/* Static ::before removed — replaced by .xp-gradient-live animated element */

.xp-section--dark > * {
    position: relative;
    z-index: 1;
}

.xp-section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.xp-section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--xp-primary);
}

.xp-section--dark .xp-section-header h2 {
    color: #fff;
}

.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;
}

/* =============================================================================
   MISSION SECTION
   ============================================================================= */

.xp-mission {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.xp-mission-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: var(--xp-accent-light);
    border-radius: 50%;
    margin-bottom: 2rem;
    color: var(--xp-primary);
}

.xp-mission-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--xp-primary);
    margin-bottom: 1.5rem;
}

.xp-mission-text {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

/* =============================================================================
   SERVICES GRID
   ============================================================================= */

.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(84, 25, 113, 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-bottom: 3rem;
}

.xp-global-header {
    text-align: center;
    max-width: 850px;
    margin: 0 auto 2.5rem;
}

.xp-global-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.xp-global-header p {
    font-size: 1.125rem;
    line-height: 1.8;
    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;
}

.xp-global-cta .btn-primary {
    background: #fff;
    color: var(--xp-primary);
}

.xp-global-cta .btn-primary:hover {
    background: rgba(255, 255, 255, 0.9);
}

/* Map Container */
.xp-map-wrapper {
    position: relative;
    width: 100%;
    height: 520px;
    margin-bottom: 2rem;
    overflow: hidden;
}

#xp-world-map {
    width: 100%;
    height: 100%;
    background: #e8e0f0;
}

/* 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(84, 25, 113, 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(84, 25, 113, 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(61, 17, 83, 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(61, 17, 83, 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(61, 17, 83, 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: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    padding: 0.75rem 1.25rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1;
    color: #3d1153;
    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: #7c3aed;
    border: 1px solid #a78bfa;
}

.xp-legend-network {
    background: #6889b4;
    border: 1px solid #8fadc8;
}

/* =============================================================================
   LOCATIONS TICKER
   ============================================================================= */

.xp-locations {
    position: relative;
    background: linear-gradient(135deg, #1a0a2e 0%, #3d1153 25%, #541971 45%, #6b2490 60%, #2d1b69 80%, #1a0a2e 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: 2.25rem;
    font-weight: 700;
    color: var(--xp-primary);
    margin-bottom: 1.5rem;
}

.xp-why-content p {
    font-size: 1.1rem;
    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 var(--xp-primary);
    padding-left: 1.5rem;
    font-style: italic;
}

.xp-feature-list {
    background: #fff;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.xp-feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.xp-feature-item:last-child {
    border-bottom: none;
}

.xp-feature-item i {
    font-size: 1.5rem;
    color: var(--xp-primary);
}

.xp-feature-item span {
    font-weight: 500;
    color: var(--text-primary);
}

/* =============================================================================
   URGENCY SECTION
   ============================================================================= */

.xp-urgency {
    position: relative;
    background: linear-gradient(135deg, #1a0a2e 0%, #3d1153 25%, #541971 45%, #6b2490 60%, #2d1b69 80%, #1a0a2e 100%);
    padding: 5rem 0;
    text-align: center;
    color: #fff;
    overflow: hidden;
}

/* 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(84, 25, 113, 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: linear-gradient(135deg, #1a0a2e 0%, #3d1153 25%, #541971 45%, #6b2490 60%, #2d1b69 80%, #1a0a2e 100%);
    padding: 5rem 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;
}

/* Static ::after removed — replaced by .xp-gradient-live */

.xp-cta-section > * {
    position: relative;
    z-index: 2;
}

.xp-cta-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
}

.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(26, 10, 46, 0.95);
}

.btn-outline-white:hover {
    background: transparent;
}

/* =============================================================================
   RESPONSIVE
   ============================================================================= */

/* ── 1440 px ── */
@media (max-width: 1440px) {
    .xp-hero-inner {
        padding: 2.5rem 4vw 4rem;
        gap: 3vw;
    }
}

/* ── 1024 px ── */
@media (max-width: 1024px) {
    .xp-hero-inner {
        flex-direction: column;
        padding: 2rem 4vw 3rem;
        gap: 1.5rem;
    }

    .xp-hero-text {
        text-align: center;
    }

    .xp-hero-logo {
        order: -1;
        padding-right: 0;
    }

    .xp-hero-logo img {
        width: clamp(100px, 20vw, 240px);
    }

    .xp-hero-desc {
        margin-left: auto;
        margin-right: auto;
    }

    .xp-hero-actions {
        justify-content: center;
    }

    .xp-hero-stats {
        gap: 48px;
        justify-content: center;
    }

    .xp-stat-number {
        font-size: 34px;
    }

    .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 {
        min-height: 100vh;
    }

    .xp-hero-inner {
        flex-direction: column;
        padding: 1.5rem 1.5rem 2.5rem;
        gap: 1.25rem;
    }

    .xp-hero-text {
        text-align: center;
    }

    .xp-hero-logo {
        order: -1;
        padding-right: 0;
    }

    .xp-hero-logo img {
        width: clamp(90px, 25vw, 180px);
    }

    .xp-hero-desc {
        margin-left: auto;
        margin-right: auto;
    }

    .xp-hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .xp-hero-stats {
        justify-content: center;
    }

    .xp-hero-video-overlay {
        background: linear-gradient(
            180deg,
            rgba(26, 10, 46, 0.60) 0%,
            rgba(26, 10, 46, 0.35) 40%,
            rgba(26, 10, 46, 0.60) 100%
        );
    }

    .xp-hero-title {
        letter-spacing: -1.5px;
    }

    .xp-hero-stats {
        gap: 32px;
        flex-wrap: wrap;
    }

    .xp-stat-number {
        font-size: 28px;
    }

    .xp-btn-solid,
    .xp-btn-ghost {
        width: 100%;
        min-width: 0;
    }

    .xp-section {
        padding: 4rem 0;
    }

    .xp-section-header h2,
    .xp-mission-title,
    .xp-global-header h2,
    .xp-why-content h2,
    .xp-applicants-header h2,
    .xp-cta-content h2 {
        font-size: 1.75rem;
    }

    .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: 1.25rem 1.25rem 2rem;
        gap: 1rem;
    }

    .xp-hero-logo img {
        width: clamp(70px, 22vw, 140px);
    }

    .xp-hero-title {
        letter-spacing: -1px;
    }

    .xp-stat-number {
        font-size: 24px;
    }

    .xp-hero-stats {
        gap: 24px;
    }

    .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: #a78bfa;
    opacity: 0.3;
}

[data-theme="dark"] .xp-pnet--light .xp-pnet-ring--accent {
    stroke: #c026d3;
    opacity: 0.35;
}

[data-theme="dark"] .xp-pnet--light .xp-pnet-link {
    stroke: rgba(167, 139, 250, 0.12);
}

[data-theme="dark"] .xp-pnet--light .xp-pnet-link--branch {
    stroke: rgba(167, 139, 250, 0.08);
}

[data-theme="dark"] .xp-pnet--light .xp-pnet-dot {
    fill: #a78bfa;
    opacity: 0.15;
}

[data-theme="dark"] .xp-pnet--light .xp-pnet-person {
    color: rgba(167, 139, 250, 0.3);
}

[data-theme="dark"] .xp-pnet--light .xp-pnet-person--accent {
    color: rgba(192, 38, 211, 0.3);
}

[data-theme="dark"] .xp-pnet--light .xp-pnet-pulse {
    fill: rgba(167, 139, 250, 0.4);
}

[data-theme="dark"] .xp-pnet--light .xp-pnet-glow {
    opacity: 0.1;
}

/* Light sections → dark background */
[data-theme="dark"] .xp-section--light {
    background: #1e1e1e;
}

/* Section headers */
[data-theme="dark"] .xp-section-header h2,
[data-theme="dark"] .xp-mission-title,
[data-theme="dark"] .xp-why-content h2,
[data-theme="dark"] .xp-applicants-header h2 {
    color: #e4e4e7;
}

[data-theme="dark"] .xp-section-header p,
[data-theme="dark"] .xp-mission-text,
[data-theme="dark"] .xp-why-content p {
    color: #a1a1aa;
}

/* Labels in light sections */
[data-theme="dark"] .xp-label {
    background: rgba(167, 139, 250, 0.15);
    color: #a78bfa;
}

/* Mission section icon */
[data-theme="dark"] .xp-mission-icon {
    background: rgba(167, 139, 250, 0.15);
    color: #a78bfa;
}

/* Service cards */
[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: #a78bfa;
}

[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: #a78bfa;
    border-left-color: #a78bfa;
}

[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: #a78bfa;
}

[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(167, 139, 250, 0.15);
    color: #a78bfa;
}

[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: #a78bfa;
}

/* Tags section */
[data-theme="dark"] .xp-tags {
    background: #1a1a1a;
    border-top-color: #3f3f3f;
    border-bottom-color: #3f3f3f;
}

[data-theme="dark"] .xp-tag {
    background: rgba(167, 139, 250, 0.15);
    color: #a78bfa;
}

[data-theme="dark"] .xp-tag:hover {
    background: #a78bfa;
    color: #fff;
}
