/* ==============================
   BENE MUNYANDINDA Digital Business Card
   Professional, Minimal, Investor-Ready
   ============================== */

/* Professional Color Palette */
:root {
    --primary-blue: #2C5F8D;
    --accent-teal: #00B4A6;
    --accent-gold: #D4AF37;
    --charcoal: #2C3E50;
    --slate: #34495E;
    --text-dark: #1a1a1a;
    --text-light: #ffffff;
    --text-muted: #7f8c8d;
    --overlay-bg: rgba(0, 0, 0, 0.4);
    --card-bg: #ffffff;
    --left-offset: 1.75rem; /* x-position for left-side accents and content blocks */
    --story-panel-top: 8.7rem;
    --hero-divider-offset: 106px;
    --brand-scroll-space-height: clamp(300px, 42vh, 520px);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #000;
    color: var(--text-dark);
    position: relative;
    min-height: calc(var(--vh, 1vh) * 100);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow: hidden;
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    transform: translate3d(0, var(--page-pull-offset, 0px), 0);
    transition: transform 0.22s ease;
    will-change: transform;
    overscroll-behavior-y: contain;
    /* Respect safe-area insets on devices with notches (iOS) */
    padding-top: env(safe-area-inset-top, 0);
    padding-bottom: env(safe-area-inset-bottom, 0);
}

body.is-pulling {
    transition: none;
}

body.map-popup-open {
    overflow: hidden;
}

body.contact-panel-open {
    overflow: hidden;
}

body.contact-panel-open::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 225;
    background:
        radial-gradient(circle at top, rgba(67, 144, 131, 0.18), transparent 42%),
        rgba(3, 6, 10, 0.76);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    pointer-events: auto;
}

/* Horizontal divider beneath header controls */
.top-divider {
    position: absolute;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(200,200,200,0.95);
    z-index: 39;
    pointer-events: none;
}

@media (max-width: 768px) {
    :root {
        --left-offset: 1.25rem;
        --hero-divider-offset: 84px;
    }
}

@media (max-width: 480px) {
    :root { --left-offset: 1.25rem; }
}

/* ==============================
   SLIDESHOW CONTAINER
   ============================== */

.slideshow-container {
    position: relative;
    width: 100vw;
    /* Use a dynamic --vh unit to avoid mobile 100vh issues (browser UI hiding part of viewport) */
    height: calc(var(--vh, 1vh) * 100);
    overflow: hidden;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
    z-index: 1;
    will-change: opacity;
    transform: translateZ(0);
    backface-visibility: hidden;
    overflow: hidden;
}

.slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    -ms-overflow-style: none;
}

.slide.active::-webkit-scrollbar {
    width: 0;
    height: 0;
}

.slide-content {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: calc((var(--vh, 1vh) * 100) + var(--brand-scroll-space-height));
    transform: translateZ(0);
    backface-visibility: hidden;
}

.slide-stage {
    position: sticky;
    top: 0;
    flex: 0 0 calc(var(--vh, 1vh) * 100);
    min-height: calc(var(--vh, 1vh) * 100);
    width: 100%;
    z-index: 1;
}

/* Portrait Styling */
.portrait-wrapper {
    position: absolute;
    top: var(--hero-divider-offset);
    left: 0;
    width: 100%;
    height: calc((var(--vh, 1vh) * 100) - var(--hero-divider-offset));
    z-index: 1;
    pointer-events: none;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.portrait {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    filter: brightness(0.65) contrast(1.1);
    pointer-events: none;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.brand-scroll-space {
    position: relative;
    flex: 0 0 var(--brand-scroll-space-height);
    min-height: var(--brand-scroll-space-height);
    overflow: hidden;
    z-index: 2;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(5, 10, 15, 0) 0%, rgba(5, 10, 15, 0.92) 18%, rgba(4, 8, 13, 1) 100%);
    box-shadow: inset 0 55px 90px rgba(0, 0, 0, 0.28);
}

.brand-message {
    position: absolute;
    left: 50%;
    right: auto;
    bottom: clamp(1.15rem, 4.2vh, 2.5rem);
    z-index: 3;
    width: min(88vw, 860px);
    height: clamp(4.8rem, 16vh, 7.2rem);
    padding: 0 1rem;
    text-align: center;
    overflow: hidden;
    transform: translateX(-50%);
    pointer-events: none;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.88) 18%, #000 36%, #000 64%, rgba(0, 0, 0, 0.88) 82%, transparent 100%);
    mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.88) 18%, #000 36%, #000 64%, rgba(0, 0, 0, 0.88) 82%, transparent 100%);
}

.brand-message-line {
    position: absolute;
    left: 50%;
    top: 50%;
    margin: 0;
    width: min(100%, 44ch);
    max-width: 44ch;
    color: rgba(255, 255, 255, 0.92);
    font-size: clamp(0.72rem, calc(var(--brand-scroll-space-height) * 0.05), 1.42rem);
    line-height: 1.24;
    letter-spacing: 0.02em;
    opacity: 0;
    transform: translate(-50%, 170%);
    filter: blur(6px);
    text-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
    will-change: transform, opacity, filter;
}

.slide.brand-message-visible .brand-message-line {
    animation: brand-message-roll 10.5s linear infinite;
}

.slide.brand-message-visible .brand-message-line:nth-child(1) {
    animation-delay: 0s;
}

.slide.brand-message-visible .brand-message-line:nth-child(2) {
    animation-delay: 2.1s;
}

.slide.brand-message-visible .brand-message-line:nth-child(3) {
    animation-delay: 4.2s;
}

.slide.brand-message-visible .brand-message-line:nth-child(4) {
    animation-delay: 6.3s;
}

.slide.brand-message-visible .brand-message-line:nth-child(5) {
    animation-delay: 8.4s;
}

.brand-floating-title {
    position: absolute;
    left: 50%;
    bottom: var(--brand-scroll-space-height);
    z-index: 4;
    display: flex;
    justify-content: center;
    align-items: center;
    width: min(92vw, 1100px);
    padding: 0 1rem;
    text-align: center;
    pointer-events: none;
    opacity: 0;
    transform: translateX(-50%) translateY(16px) scale(0.99);
    filter: blur(10px);
    will-change: transform, opacity, filter;
}

.brand-floating-line {
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 0.28em;
    flex-wrap: nowrap;
    white-space: nowrap;
    color: rgba(255, 255, 255, 0.98);
    font-family: "Superclarendon", "Bookman Old Style", Georgia, serif;
    font-size: clamp(0.88rem, calc(var(--brand-scroll-space-height) * 0.082), 3.35rem);
    font-weight: 800;
    line-height: 0.9;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-shadow:
        0 18px 36px rgba(0, 0, 0, 0.42),
        0 0 18px rgba(255, 255, 255, 0.08);
}

.brand-floating-word {
    display: inline-block;
}

.brand-floating-word-primary {
    color: #439083;
}

.brand-floating-word-neutral {
    color: rgba(255, 255, 255, 0.98);
}

.brand-floating-line-secondary {
    color: #f28c28;
    letter-spacing: 0.22em;
}

.slide.brand-title-visible .brand-floating-title {
    animation: brand-title-rise 0.68s cubic-bezier(0.22, 0.82, 0.24, 1) 0.08s forwards;
}

.brand-scroll-space::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 20%, rgba(0, 180, 166, 0.18), transparent 24%),
        radial-gradient(circle at 82% 76%, rgba(212, 175, 55, 0.16), transparent 22%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.06), transparent 38%),
        url("images/logo.png");
    background-repeat: no-repeat;
    background-position: 18% 18%, 82% 74%, center top, center 56%;
    background-size: auto, auto, 100% 100%, clamp(180px, 24vw, 320px);
    opacity: 0.72;
    filter: saturate(0.92);
}

.brand-scroll-space::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 16%),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 76px),
        repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 76px);
    opacity: 0.14;
}

.slide[data-member="orante"] .brand-scroll-space::before {
    background-position: 82% 18%, 18% 76%, center top, center 58%;
}

@keyframes brand-title-rise {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(16px) scale(0.99);
        filter: blur(10px);
    }

    58% {
        opacity: 1;
        transform: translateX(-50%) translateY(-4px) scale(1.004);
        filter: blur(0.8px);
    }

    82% {
        opacity: 1;
        transform: translateX(-50%) translateY(1px) scale(0.999);
        filter: blur(0);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0) scale(1);
        filter: blur(0);
    }
}

@keyframes brand-message-roll {
    from {
        opacity: 0;
        transform: translate(-50%, 170%);
        filter: blur(6px);
    }

    10% {
        opacity: 1;
        transform: translate(-50%, 90%);
        filter: blur(2px);
    }

    32% {
        opacity: 1;
        transform: translate(-50%, -8%);
        filter: blur(0);
    }

    54% {
        opacity: 1;
        transform: translate(-50%, -105%);
        filter: blur(0.2px);
    }

    70% {
        opacity: 0;
        transform: translate(-50%, -175%);
        filter: blur(4px);
    }

    to {
        opacity: 0;
        transform: translate(-50%, -175%);
        filter: blur(4px);
    }
}

.hero-section {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(var(--hero-divider-offset) - 3px);
    z-index: 34;
    pointer-events: none;
}

.hero-visual-cycle {
    position: absolute;
    inset: 0;
    overflow: hidden;
    isolation: isolate;
    background: linear-gradient(180deg, rgba(12, 15, 19, 0.16), rgba(12, 15, 19, 0.4) 74%, rgba(12, 15, 19, 0.54) 100%);
}

.hero-visual-cycle::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(8, 10, 14, 0.12), rgba(8, 10, 14, 0.38) 78%, rgba(8, 10, 14, 0.58) 100%),
        radial-gradient(circle at center top, rgba(255, 255, 255, 0.16), transparent 36%);
    z-index: 2;
}

.hero-visual-cycle::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(220, 220, 220, 0.18));
    z-index: 2;
}

.hero-visual {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
}

.hero-visual-cityscape {
    object-fit: cover;
    object-position: center 34%;
    filter: saturate(0.9) brightness(0.52) contrast(1.02);
}

.hero-visual-brandmark {
    object-fit: cover;
    object-position: center 26%;
    filter: saturate(1.02) contrast(1.02) brightness(0.96);
    opacity: 0;
    transform: translateY(24px) scale(1.02);
}

.slide.active .hero-visual-cityscape {
    animation: hero-cityscape-cycle 2.8s ease-in-out forwards;
}

.slide.active .hero-visual-brandmark {
    animation: hero-brandmark-rise 2.7s cubic-bezier(0.2, 0.84, 0.24, 1) 0.18s forwards;
}

.hero-logo-mark {
    position: absolute;
    top: 0.35rem;
    left: 50%;
    z-index: 3;
    width: min(34vw, 440px);
    max-width: calc(100% - 8rem);
    max-height: calc(100% - 0.7rem);
    height: auto;
    object-fit: contain;
    object-position: center;
    transform: translateX(-50%) translateY(18px) scale(0.985);
    transform-origin: center center;
    filter: drop-shadow(0 12px 22px rgba(0, 0, 0, 0.28));
    opacity: 0;
}

.slide.active .hero-logo-mark {
    animation: hero-logo-rise 1.18s cubic-bezier(0.2, 0.84, 0.24, 1) 0.72s forwards;
}

.hero-catchphrase {
    position: absolute;
    top: calc(var(--hero-divider-offset) + 0.85rem);
    left: var(--left-offset);
    z-index: 58;
    width: min(58vw, 860px);
    pointer-events: none;
}

.hero-catchphrase::before {
    content: "";
    display: block;
    width: clamp(3rem, 8vw, 5.5rem);
    height: 2px;
    margin-bottom: 0.72rem;
    background: linear-gradient(90deg, rgba(0, 180, 166, 0.96), rgba(212, 175, 55, 0.85));
    box-shadow: 0 0 18px rgba(0, 180, 166, 0.22);
    opacity: 0;
    transform: translateX(-18px) scaleX(0.72);
    transform-origin: left center;
}

.hero-catch-title {
    margin: 0;
    display: grid;
    gap: 0.12rem;
}

.hero-catch-line {
    display: block;
    max-width: 100%;
    font-weight: 800;
    line-height: 0.86;
    text-transform: uppercase;
    white-space: nowrap;
    opacity: 0;
    clip-path: inset(0 100% 0 0);
    transform: translate3d(-24px, 18px, 0);
    text-shadow: 0 16px 32px rgba(0, 0, 0, 0.38);
}

.hero-catch-line-primary {
    font-size: clamp(1.95rem, 5.7vw, 5.3rem);
    letter-spacing: 0.12em;
    background: linear-gradient(135deg, rgba(244, 239, 226, 0.98), rgba(195, 245, 239, 0.9));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-catch-line-secondary {
    margin-left: clamp(0.08rem, 1.4vw, 1rem);
    font-size: clamp(1.45rem, 4.6vw, 4.05rem);
    letter-spacing: 0.18em;
    color: rgba(0, 180, 166, 0.96);
}

.slide.active .hero-catchphrase::before {
    animation: hero-catch-bar-reveal 0.82s cubic-bezier(0.2, 0.84, 0.24, 1) 1.02s forwards;
}

.slide.active .hero-catch-line-primary {
    animation: hero-catch-line-reveal 1.05s cubic-bezier(0.2, 0.84, 0.24, 1) 1.15s forwards;
}

.slide.active .hero-catch-line-secondary {
    animation:
        hero-catch-line-reveal 1.05s cubic-bezier(0.2, 0.84, 0.24, 1) 1.34s forwards,
        hero-catch-line-glow 1.12s ease 2.25s forwards;
}

@keyframes hero-cityscape-cycle {
    0% {
        opacity: 1;
        transform: scale(1);
    }

    62% {
        opacity: 1;
        transform: scale(1.02);
    }

    100% {
        opacity: 0;
        transform: scale(1.05);
    }
}

@keyframes hero-brandmark-rise {
    0% {
        opacity: 0;
        transform: translateY(24px) scale(1.02);
    }

    35% {
        opacity: 0.18;
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes hero-logo-rise {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(18px) scale(0.985);
    }

    100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0) scale(1);
    }
}

@keyframes hero-catch-bar-reveal {
    from {
        opacity: 0;
        transform: translateX(-18px) scaleX(0.72);
    }

    to {
        opacity: 1;
        transform: translateX(0) scaleX(1);
    }
}

@keyframes hero-catch-line-reveal {
    from {
        opacity: 0;
        clip-path: inset(0 100% 0 0);
        transform: translate3d(-24px, 18px, 0);
    }

    to {
        opacity: 1;
        clip-path: inset(0 0 0 0);
        transform: translate3d(0, 0, 0);
    }
}

@keyframes hero-catch-line-glow {
    from {
        text-shadow: 0 16px 32px rgba(0, 0, 0, 0.38);
    }

    to {
        text-shadow:
            0 16px 32px rgba(0, 0, 0, 0.38),
            0 0 16px rgba(0, 180, 166, 0.24),
            0 0 28px rgba(0, 180, 166, 0.16);
    }
}

.story-panel {
    position: absolute;
    top: var(--story-panel-top);
    left: 4rem;
    z-index: 55;
    max-width: 250px;
    padding: 0.6rem 0.9rem 0.7rem 1rem;
    border-left: 3px solid rgba(212, 175, 55, 0.78);
    color: var(--text-light);
    text-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
    background: linear-gradient(90deg, rgba(8, 10, 14, 0.42), rgba(8, 10, 14, 0.12) 68%, transparent);
    border-radius: 0 18px 18px 0;
    pointer-events: none;
}

.story-eyebrow {
    margin-bottom: 0.35rem;
    color: rgba(212, 175, 55, 0.92);
    font-size: 0.48rem;
    font-weight: 600;
    letter-spacing: 0.34em;
    text-transform: uppercase;
}

.story-title {
    margin-bottom: 0.5rem;
    color: #f4efe5;
    font-size: 1.26rem;
    line-height: 0.98;
    font-weight: 700;
    letter-spacing: 0.06em;
    max-width: 9ch;
    text-transform: uppercase;
}

.story-summary {
    margin-bottom: 0.55rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.48rem;
    line-height: 1.55;
    max-width: 29ch;
}

.story-services-panel {
    position: absolute;
    right: var(--left-offset);
    bottom: 3rem;
    z-index: 55;
    max-width: 190px;
    padding: 0.52rem 0.9rem 0.58rem 0.7rem;
    border-right: 3px solid rgba(212, 175, 55, 0.78);
    background: linear-gradient(270deg, rgba(8, 10, 14, 0.42), rgba(8, 10, 14, 0.12) 68%, transparent);
    border-radius: 18px 0 0 18px;
    text-align: right;
    text-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
    pointer-events: none;
}

.desktop-map-preview {
    display: none;
}

.desktop-map-canvas {
    display: block;
    width: 100%;
    height: 100%;
}

.story-services {
    list-style: none;
    display: grid;
    gap: 0.24rem;
}

.story-services li {
    position: relative;
    padding-right: 0.78rem;
    padding-left: 0;
    color: rgba(255, 255, 255, 0.94);
    font-size: 0.5rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.story-services li::before {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    width: 0.38rem;
    height: 1px;
    background: linear-gradient(90deg, rgba(0, 180, 166, 0.95), rgba(212, 175, 55, 0.9));
    transform: translateY(-50%);
    box-shadow: 0 0 8px rgba(0, 180, 166, 0.22);
}

/* Text Overlay */
.overlay {
    position: absolute;
    bottom: 3rem;
    left: var(--left-offset);
    right: auto;
    z-index: 60;
    text-align: left;
    padding: 0.75rem 1rem;
    background: transparent;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    max-width: 220px;
    border-left: 3px solid var(--accent-teal);
    transform: translateZ(0);
    backface-visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* About Me Section */
.about-me-section {
    margin-bottom: 0.6rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.about-me-header {
    font-size: 0.55rem;
    font-weight: 600;
    color: var(--accent-teal);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 0.35rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.about-me-header i {
    font-size: 0.55rem;
}

.about-audio {
    display: none;
}

.custom-player {
    position: relative;
    display: flex;
    align-items: stretch;
    min-height: 56px;
    padding: 0.5rem 0.55rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    background:
        radial-gradient(circle at top left, rgba(0, 180, 166, 0.2), transparent 48%),
        radial-gradient(circle at bottom right, rgba(212, 175, 55, 0.2), transparent 46%),
        rgba(7, 12, 18, 0.48);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
    overflow: hidden;
}

.custom-player::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, rgba(255, 255, 255, 0.08), transparent 35%, transparent 65%, rgba(255, 255, 255, 0.05));
    pointer-events: none;
}

.custom-player.is-playing {
    border-color: rgba(0, 180, 166, 0.35);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(0, 180, 166, 0.12);
}

.waveform {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    flex: 1;
    min-width: 0;
    height: 40px;
    margin: 0;
    background: transparent;
}

.waveform-bar {
    flex: 1 1 0;
    min-width: 4px;
    height: var(--bar-height, 50%);
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(0, 180, 166, 0.68));
    box-shadow: 0 0 12px rgba(0, 180, 166, 0.16);
    opacity: 0.5;
    transform-origin: center bottom;
    transform: scaleY(0.55);
    animation: decorative-wave 1.9s ease-in-out infinite;
    animation-delay: var(--wave-delay, 0s);
    animation-play-state: paused;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.custom-player.is-playing .waveform-bar {
    opacity: 1;
    animation-play-state: running;
}

.player-controls {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.player-controls > * {
    pointer-events: auto;
}

.ap-play {
    position: absolute;
    left: 50%;
    top: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    box-shadow: none;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.8rem;
    padding: 0;
    transform: translate(-50%, -58%);
    transition: transform 0.2s ease, color 0.2s ease, text-shadow 0.2s ease, opacity 0.2s ease;
}

.ap-play:hover {
    transform: translate(-50%, -58%) scale(1.04);
    color: rgba(255, 255, 255, 1);
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.28);
}

.ap-play i {
    transform: translateX(0.04em);
}

@keyframes decorative-wave {
    0%, 100% {
        transform: scaleY(0.42);
    }
    25% {
        transform: scaleY(0.98);
    }
    50% {
        transform: scaleY(0.62);
    }
    75% {
        transform: scaleY(1.14);
    }
}

.member-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 0.25rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.member-role {
    font-size: 0.5rem;
    color: var(--accent-gold);
    margin-bottom: 0.875rem;
    font-weight: 400;
    letter-spacing: 0.3px;
}

/* Contact Button */
.contact-btn {
    position: relative;
    background:
        radial-gradient(circle at top left, rgba(0, 180, 166, 0.2), transparent 48%),
        radial-gradient(circle at bottom right, rgba(212, 175, 55, 0.16), transparent 46%),
        rgba(7, 12, 18, 0.48);
    color: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 0.375rem 1rem;
    font-size: 0.475rem;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, color 0.3s ease;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    overflow: hidden;
    isolation: isolate;
}

.contact-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, rgba(255, 255, 255, 0.08), transparent 35%, transparent 65%, rgba(255, 255, 255, 0.05));
    pointer-events: none;
    z-index: 0;
}

.contact-btn > * {
    position: relative;
    z-index: 1;
}

.contact-btn:hover {
    color: rgba(255, 255, 255, 1);
    border-color: rgba(0, 180, 166, 0.32);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(0, 180, 166, 0.12);
}

.contact-btn i {
    font-size: 0.46rem;
    color: rgba(255, 255, 255, 0.88);
}

/* ==============================
   SLIDE INDICATORS (DOTS)
   ============================== */

.slide-indicators {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 5;
    transition: opacity 0.3s ease;
}

.slideshow-container.is-exploring .slide-indicators {
    opacity: 0;
    pointer-events: none;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot:hover {
    background: rgba(255, 255, 255, 0.7);
    transform: scale(1.2);
}

.dot.active {
    background: var(--accent-teal);
    width: 40px;
    border-radius: 6px;
}

.desktop-map-expand-btn {
    display: none;
}

.map-popup {
    position: fixed;
    inset: 0;
    z-index: 220;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(1rem, 2.5vw, 2rem);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.28s ease, visibility 0.28s ease;
}

.map-popup.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.map-popup-backdrop {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top, rgba(67, 144, 131, 0.2), transparent 42%),
        rgba(3, 6, 10, 0.76);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
}

.map-popup-panel {
    position: relative;
    z-index: 1;
    width: min(78vw, 1080px);
    height: min(78vh, 760px);
    min-height: 420px;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 28px;
    background:
        linear-gradient(180deg, rgba(7, 12, 18, 0.94), rgba(5, 9, 14, 0.92)),
        rgba(5, 10, 15, 0.9);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.45);
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    transform: translateY(18px) scale(0.98);
    transition: transform 0.28s ease;
}

.map-popup.show .map-popup-panel {
    transform: translateY(0) scale(1);
}

.map-popup-header {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.25rem 2.75rem 0 0.2rem;
    color: rgba(255, 255, 255, 0.96);
}

.map-popup-kicker {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(242, 140, 40, 0.92);
}

.map-popup-header h2 {
    font-size: clamp(1.5rem, 2vw, 2.2rem);
    font-weight: 700;
    letter-spacing: 0.02em;
}

.map-popup-search {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin-top: 0.55rem;
}

.map-popup-search-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
}

.map-popup-search-row {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.map-popup-search-input {
    flex: 1 1 auto;
    min-width: 0;
    height: 46px;
    padding: 0 1rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.96);
    font-size: 0.98rem;
    transition: border-color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

.map-popup-search-input::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

.map-popup-search-input:hover,
.map-popup-search-input:focus-visible {
    border-color: rgba(67, 144, 131, 0.75);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 4px rgba(67, 144, 131, 0.12);
    outline: none;
}

.map-popup-search-btn {
    flex: 0 0 auto;
    min-width: 118px;
    height: 46px;
    padding: 0 1.05rem;
    border: 1px solid rgba(242, 140, 40, 0.38);
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(242, 140, 40, 0.95), rgba(212, 175, 55, 0.9));
    color: #0d1419;
    font-size: 0.84rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.22s ease, filter 0.22s ease, box-shadow 0.22s ease;
    box-shadow: 0 12px 28px rgba(242, 140, 40, 0.2);
}

.map-popup-search-btn:hover,
.map-popup-search-btn:focus-visible {
    transform: translateY(-1px);
    filter: brightness(1.05);
    box-shadow: 0 16px 32px rgba(242, 140, 40, 0.28);
    outline: none;
}

.map-popup-search-btn:disabled {
    cursor: wait;
    opacity: 0.74;
    transform: none;
    filter: none;
    box-shadow: none;
}

.map-popup-search-status {
    min-height: 1.2rem;
    font-size: 0.82rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.72);
}

.map-popup-close {
    position: absolute;
    top: 0.9rem;
    right: 0.9rem;
    z-index: 2;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.96);
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.22s ease, background 0.22s ease, border-color 0.22s ease;
}

.map-popup-close:hover,
.map-popup-close:focus-visible {
    transform: rotate(90deg);
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.22);
    outline: none;
}

.map-popup-canvas {
    flex: 1 1 auto;
    width: 100%;
    min-height: 0;
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
    filter: saturate(1.02) contrast(1.03);
}

.map-popup-canvas .leaflet-control-container {
    font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
}

.map-popup-canvas .leaflet-top,
.map-popup-canvas .leaflet-bottom {
    z-index: 700;
}

.map-popup-canvas .leaflet-control-zoom {
    border: none;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.28);
    overflow: hidden;
}

.map-popup-canvas .leaflet-control-zoom a {
    width: 34px;
    height: 34px;
    line-height: 34px;
    border: none;
    color: #142027;
    background: rgba(255, 255, 255, 0.94);
}

.map-popup-canvas .leaflet-control-attribution {
    background: rgba(8, 10, 14, 0.72);
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.62rem;
    border-radius: 10px 0 0 0;
    padding: 0.2rem 0.38rem;
}

.map-popup-canvas .leaflet-control-attribution a {
    color: rgba(255, 255, 255, 0.92);
}

@media (max-width: 768px) {
    .map-popup-panel {
        width: min(94vw, 680px);
        height: min(82vh, 620px);
        min-height: 360px;
        border-radius: 24px;
        padding: 0.85rem;
    }

    .map-popup-canvas {
        border-radius: 18px;
    }

    .map-popup-search-row {
        flex-direction: column;
        align-items: stretch;
    }

    .map-popup-search-btn {
        width: 100%;
    }
}

/* ==============================
   CONTACT CARDS (POPUP)
   ============================== */

/* Backdrop: removed to avoid device-specific overlay issues */
.contact-card::after {
    display: none !important;
}

.contact-card {
    position: fixed;
    top: 50%;
    left: 50%;
    width: min(78vw, 980px);
    max-height: min(78vh, 760px);
    padding: 1.15rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 30px;
    background:
        linear-gradient(160deg, rgba(67, 144, 131, 0.16), transparent 36%),
        linear-gradient(180deg, rgba(7, 12, 18, 0.94), rgba(5, 9, 14, 0.92)),
        rgba(5, 10, 15, 0.92);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    box-shadow: 0 28px 72px rgba(0, 0, 0, 0.46);
    z-index: 230;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.32s ease, visibility 0.32s ease, transform 0.32s ease;
    transform: translate(-50%, calc(-50% + 18px)) scale(0.98);
    isolation: isolate;
    overflow: hidden;
}

.contact-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(0, 180, 166, 0.26), rgba(242, 140, 40, 0.16) 44%, transparent 72%),
        radial-gradient(circle at top right, rgba(242, 140, 40, 0.1), transparent 32%);
    opacity: 0.95;
    pointer-events: none;
}

/* Animated SVG border for contact cards */
.card-border {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}
.card-border-rect {
    stroke: rgba(255, 255, 255, 0.2);
    stroke-dasharray: 8 10;
    stroke-linecap: butt;
    stroke-linejoin: miter;
    transition: stroke 200ms;
    animation: dash 4.8s linear infinite;
}
@keyframes dash {
    to { stroke-dashoffset: -48; }
}

/* Ringing phone shake for Contact button */
@media (prefers-reduced-motion: no-preference) {
    .contact-btn {
        animation: phone-ring 2.8s ease-in-out infinite;
        transform-origin: 18% 50%;
    }

    .contact-btn i {
        animation: phone-ring-icon 2.8s ease-in-out infinite;
        transform-origin: 50% 15%;
    }

    @keyframes phone-ring {
        0%, 16%, 42%, 58%, 100% {
            transform: translateX(0) rotate(0deg);
            box-shadow: 0 2px 6px rgba(0, 180, 166, 0.25);
        }
        2% {
            transform: translateX(-1px) rotate(-2deg);
        }
        4% {
            transform: translateX(2px) rotate(3deg);
        }
        6% {
            transform: translateX(-2px) rotate(-4deg);
        }
        8% {
            transform: translateX(2px) rotate(4deg);
            box-shadow: 0 5px 14px rgba(0, 180, 166, 0.34);
        }
        10% {
            transform: translateX(-2px) rotate(-3deg);
        }
        12% {
            transform: translateX(2px) rotate(3deg);
        }
        14% {
            transform: translateX(-1px) rotate(-1deg);
        }
        44% {
            transform: translateX(-1px) rotate(-2deg);
        }
        46% {
            transform: translateX(2px) rotate(3deg);
        }
        48% {
            transform: translateX(-2px) rotate(-4deg);
            box-shadow: 0 5px 14px rgba(0, 180, 166, 0.34);
        }
        50% {
            transform: translateX(2px) rotate(4deg);
        }
        52% {
            transform: translateX(-2px) rotate(-3deg);
        }
        54% {
            transform: translateX(1px) rotate(2deg);
        }
        56% {
            transform: translateX(-1px) rotate(-1deg);
        }
    }

    @keyframes phone-ring-icon {
        0%, 16%, 42%, 58%, 100% {
            transform: rotate(0deg);
        }
        3% {
            transform: rotate(-12deg);
        }
        5% {
            transform: rotate(14deg);
        }
        7% {
            transform: rotate(-16deg);
        }
        9% {
            transform: rotate(16deg);
        }
        11% {
            transform: rotate(-10deg);
        }
        13% {
            transform: rotate(8deg);
        }
        45% {
            transform: rotate(-12deg);
        }
        47% {
            transform: rotate(14deg);
        }
        49% {
            transform: rotate(-16deg);
        }
        51% {
            transform: rotate(16deg);
        }
        53% {
            transform: rotate(-10deg);
        }
        55% {
            transform: rotate(8deg);
        }
    }
}

.contact-card.show {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 3;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    font-size: 1rem;
    color: var(--text-light);
    cursor: pointer;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.22s ease, background 0.22s ease, border-color 0.22s ease;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.22);
    transform: rotate(90deg);
}

.contact-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
    grid-template-areas:
        "name details"
        "role details"
        "social details";
    column-gap: clamp(1.4rem, 3vw, 2.4rem);
    row-gap: 0.7rem;
    height: 100%;
    max-height: calc(min(78vh, 760px) - 2.3rem);
    padding: clamp(1.3rem, 3vw, 2rem);
    overflow: auto;
}

.contact-content::before {
    content: "Direct Contact";
    position: absolute;
    top: 0;
    left: 0;
    color: rgba(242, 140, 40, 0.9);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    pointer-events: none;
}

.contact-content h2 {
    grid-area: name;
    align-self: end;
    margin-top: 1.4rem;
    font-size: clamp(1.8rem, 3.4vw, 3.25rem);
    color: var(--text-light);
    margin-bottom: 0;
    letter-spacing: 0.06em;
    line-height: 0.94;
    font-weight: 700;
    text-transform: uppercase;
    text-shadow: 0 14px 34px rgba(0, 0, 0, 0.3);
}

.card-role {
    grid-area: role;
    align-self: start;
    font-size: clamp(0.92rem, 1.5vw, 1.12rem);
    color: rgba(255, 255, 255, 0.84);
    margin-bottom: 0;
    font-weight: 500;
    letter-spacing: 0.04em;
}

.contact-details {
    grid-area: details;
    margin-bottom: 0;
    padding: clamp(1rem, 2vw, 1.25rem);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
        rgba(5, 9, 14, 0.54);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 18px 28px rgba(0, 0, 0, 0.18);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    padding: 0.95rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-item i {
    font-size: 1rem;
    color: rgba(242, 140, 40, 0.94);
    width: 1rem;
    margin-top: 0.15rem;
    flex-shrink: 0;
}

.contact-item span {
    font-size: 0.98rem;
    color: var(--text-light);
}

/* Make contact links white, remove underline, and allow selection */
.contact-card, .contact-card * {
    -webkit-user-select: text;
    user-select: text;
}
.contact-item a,
.contact-item span {
    color: var(--text-light);
    text-decoration: none;
}
.contact-item a:hover {
    color: rgba(103, 216, 202, 0.98);
    text-decoration: none;
}

.contact-text {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.contact-text span {
    font-size: 0.98rem;
    color: var(--text-light);
}

/* Social Links */
.social-links {
    grid-area: social;
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: flex-start;
    align-self: end;
    margin-top: 0.2rem;
}

.social-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        linear-gradient(135deg, rgba(0, 180, 166, 0.88), rgba(67, 144, 131, 0.96));
    color: var(--text-light);
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 10px 24px rgba(0, 180, 166, 0.22);
}

.social-icon:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(0, 180, 166, 0.32);
    background: linear-gradient(135deg, rgba(242, 140, 40, 0.94), rgba(212, 175, 55, 0.92));
}

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

/* Landscape Orientation Warning */
.landscape-warning {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--charcoal);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
}

.warning-content {
    text-align: center;
    padding: 2rem;
}

.warning-content i {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    color: var(--accent-teal);
    animation: rotate 2s ease-in-out infinite;
}

@keyframes rotate {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(90deg); }
}

.warning-content h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.warning-content p {
    font-size: 1rem;
    color: var(--text-muted);
}

/* Show warning only in landscape mode */
@media screen and (orientation: landscape) and (max-width: 1024px) {
    .landscape-warning {
        display: flex;
    }
    
    .slideshow-container,
    .contact-card {
        display: none !important;
    }
}

/* Desktop: Compact contact card */
@media (min-width: 1025px) {
    :root {
        --brand-scroll-space-height: clamp(360px, 52vh, 640px);
    }

    .desktop-map-preview {
        position: absolute;
        top: 49%;
        right: clamp(4.75rem, 6vw, 7rem);
        z-index: 54;
        display: flex;
        flex-direction: column;
        gap: 0.8rem;
        width: min(24vw, 360px);
        min-width: 290px;
        height: clamp(205px, 24vh, 268px);
        padding: 1rem 1rem 1.05rem;
        border: 1px solid rgba(255, 255, 255, 0.14);
        border-radius: 26px;
        background:
            linear-gradient(160deg, rgba(67, 144, 131, 0.18), transparent 36%),
            linear-gradient(180deg, rgba(8, 10, 14, 0.88), rgba(5, 9, 14, 0.78)),
            rgba(7, 12, 18, 0.76);
        box-shadow:
            0 22px 50px rgba(0, 0, 0, 0.36),
            inset 0 1px 0 rgba(255, 255, 255, 0.06);
        -webkit-backdrop-filter: blur(14px);
        backdrop-filter: blur(14px);
        transform: translateY(-50%);
        overflow: hidden;
        pointer-events: auto;
        touch-action: auto;
    }

    .desktop-map-preview::before {
        content: "";
        position: absolute;
        inset: 0;
        background:
            linear-gradient(90deg, rgba(0, 180, 166, 0.3), rgba(242, 140, 40, 0.18) 45%, transparent 72%),
            radial-gradient(circle at top right, rgba(242, 140, 40, 0.12), transparent 34%);
        opacity: 0.95;
        pointer-events: none;
    }

    .desktop-map-preview::after {
        content: "";
        position: absolute;
        left: 1rem;
        right: 1rem;
        top: 4.05rem;
        height: 1px;
        background: linear-gradient(90deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.04));
        pointer-events: none;
    }

    .desktop-map-preview-header {
        position: relative;
        z-index: 1;
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 0.75rem;
    }

    .desktop-map-preview-heading {
        display: flex;
        flex-direction: column;
        gap: 0.2rem;
        min-width: 0;
    }

    .desktop-map-preview-kicker {
        color: rgba(242, 140, 40, 0.92);
        font-size: 0.62rem;
        font-weight: 700;
        letter-spacing: 0.18em;
        text-transform: uppercase;
    }

    .desktop-map-preview-title {
        color: rgba(255, 255, 255, 0.97);
        font-size: 1.02rem;
        font-weight: 800;
        letter-spacing: 0.2em;
        text-transform: uppercase;
        text-shadow: 0 10px 24px rgba(0, 0, 0, 0.32);
        white-space: nowrap;
    }

    .desktop-map-preview-frame {
        position: relative;
        z-index: 1;
        flex: 1 1 auto;
        min-height: 0;
        padding: 0.38rem;
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 20px;
        background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
            rgba(5, 9, 14, 0.52);
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.06),
            0 16px 28px rgba(0, 0, 0, 0.2);
    }

    .desktop-map-expand-btn {
        position: relative;
        z-index: 1;
        display: inline-flex;
        align-items: center;
        gap: 0.42rem;
        flex-shrink: 0;
        padding: 0.48rem 0.72rem;
        border: 1px solid rgba(255, 255, 255, 0.14);
        border-radius: 999px;
        background: rgba(8, 10, 14, 0.48);
        color: rgba(255, 255, 255, 0.96);
        font-size: 0.63rem;
        font-weight: 700;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        cursor: pointer;
        box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
        transition: transform 0.22s ease, background 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
    }

    .desktop-map-expand-btn:hover,
    .desktop-map-expand-btn:focus-visible {
        transform: translateY(-1px);
        border-color: rgba(67, 144, 131, 0.82);
        background: rgba(14, 18, 24, 0.82);
        box-shadow: 0 14px 28px rgba(0, 0, 0, 0.28);
        outline: none;
    }

    .desktop-map-expand-btn i {
        font-size: 0.76rem;
    }

    .desktop-map-preview iframe {
        display: none;
    }

    .desktop-map-canvas {
        width: 100%;
        height: 100%;
        border-radius: 16px;
        overflow: hidden;
        filter: saturate(0.96) contrast(1.03);
        box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
        pointer-events: auto;
    }

    .desktop-map-canvas .leaflet-control-container {
        font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    }

    .desktop-map-canvas .leaflet-top,
    .desktop-map-canvas .leaflet-bottom {
        z-index: 500;
    }

    .desktop-map-canvas .leaflet-control-zoom {
        border: none;
        box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
        overflow: hidden;
    }

    .desktop-map-canvas .leaflet-control-zoom a {
        width: 28px;
        height: 28px;
        line-height: 28px;
        border: none;
        color: #142027;
        background: rgba(255, 255, 255, 0.92);
    }

    .desktop-map-canvas .leaflet-control-attribution {
        background: rgba(8, 10, 14, 0.7);
        color: rgba(255, 255, 255, 0.72);
        font-size: 0.5rem;
        border-radius: 8px 0 0 0;
        padding: 0.16rem 0.28rem;
    }

    .desktop-map-canvas .leaflet-control-attribution a {
        color: rgba(255, 255, 255, 0.9);
    }

    .brand-floating-title {
        width: min(84vw, 1320px);
    }

    .brand-message {
        bottom: clamp(1.6rem, 4.8vh, 3rem);
        width: min(78vw, 920px);
        height: clamp(5.8rem, 16vh, 8.4rem);
    }

    .brand-message-line {
        font-size: clamp(0.9rem, calc(var(--brand-scroll-space-height) * 0.042), 1.5rem);
        max-width: 46ch;
    }

    .brand-floating-line {
        font-size: clamp(1.3rem, calc(var(--brand-scroll-space-height) * 0.08), 4rem);
        letter-spacing: 0.16em;
    }

    .brand-floating-line-secondary {
        letter-spacing: 0.3em;
    }

    .portrait-wrapper {
        isolation: isolate;
        overflow: hidden;
        background:
            radial-gradient(circle at center 14%, rgba(255, 255, 255, 0.1), transparent 28%),
            linear-gradient(180deg, rgba(7, 12, 18, 0.3) 0%, rgba(7, 12, 18, 0.58) 52%, rgba(4, 8, 13, 0.92) 100%),
            linear-gradient(120deg, rgba(0, 180, 166, 0.14), transparent 34%, transparent 66%, rgba(212, 175, 55, 0.12));
    }

    .slide[data-member="sereine"] .portrait-wrapper::before,
    .slide[data-member="orante"] .portrait-wrapper::before {
        content: "";
        position: absolute;
        inset: -4%;
        background-repeat: no-repeat;
        background-position: center bottom;
        background-size: contain;
        filter: blur(28px) brightness(0.58) saturate(0.92);
        transform: scale(1.06);
        opacity: 0.72;
        z-index: 0;
        pointer-events: none;
    }

    .slide[data-member="sereine"] .portrait-wrapper::before {
        background-image: url("images/tuyisenge-sereine.jpg");
    }

    .slide[data-member="orante"] .portrait-wrapper::before {
        background-image: url("images/tuyizere-orante.jpeg");
    }

    .portrait {
        position: relative;
        z-index: 1;
        object-fit: contain;
        object-position: center bottom;
        filter: brightness(0.72) contrast(1.08) drop-shadow(0 28px 42px rgba(0, 0, 0, 0.34));
        -webkit-mask-image: radial-gradient(circle at center 42%, #000 56%, rgba(0, 0, 0, 0.94) 68%, rgba(0, 0, 0, 0.68) 80%, rgba(0, 0, 0, 0.22) 92%, transparent 100%);
        mask-image: radial-gradient(circle at center 42%, #000 56%, rgba(0, 0, 0, 0.94) 68%, rgba(0, 0, 0, 0.68) 80%, rgba(0, 0, 0, 0.22) 92%, transparent 100%);
    }

    .hero-section {
        height: calc(var(--hero-divider-offset) - 3px);
    }

    .brand-scroll-space::before {
        background-size: auto, auto, 100% 100%, clamp(220px, 18vw, 340px);
    }

    .hero-catchphrase {
        top: calc(var(--hero-divider-offset) + 1rem);
        left: clamp(4.75rem, 6vw, 7rem);
        width: min(60vw, 960px);
    }

    .hero-logo-mark {
        top: 0.4rem;
        width: min(28vw, 460px);
        max-width: calc(100% - 10rem);
    }

    .hero-catch-line-primary {
        font-size: clamp(2.35rem, 5.1vw, 5.8rem);
    }

    .hero-catch-line-secondary {
        font-size: clamp(1.78rem, 4vw, 4.45rem);
    }

    .story-panel {
        top: calc(var(--story-panel-top) + 0.75rem);
        left: clamp(4.75rem, 6vw, 7rem);
        max-width: min(28vw, 430px);
        padding: 1rem 1.4rem 1.15rem 1.45rem;
        border-left-width: 4px;
        border-radius: 0 24px 24px 0;
        background: linear-gradient(90deg, rgba(8, 10, 14, 0.62), rgba(8, 10, 14, 0.22) 72%, transparent);
    }

    .story-eyebrow {
        margin-bottom: 0.5rem;
        font-size: 0.68rem;
        letter-spacing: 0.28em;
    }

    .story-title {
        margin-bottom: 0.75rem;
        font-size: clamp(2rem, 2.5vw, 2.6rem);
        line-height: 0.95;
        max-width: 10ch;
    }

    .story-summary {
        margin-bottom: 0;
        font-size: 0.76rem;
        line-height: 1.6;
        max-width: 34ch;
    }

    .story-services-panel {
        right: clamp(4.75rem, 6vw, 7rem);
        bottom: clamp(4.5rem, 9vh, 6.5rem);
        max-width: min(24vw, 340px);
        padding: 0.95rem 1.25rem 1rem 1rem;
        border-right-width: 4px;
        border-radius: 24px 0 0 24px;
        background: linear-gradient(270deg, rgba(8, 10, 14, 0.62), rgba(8, 10, 14, 0.22) 72%, transparent);
    }

    .story-services {
        gap: 0.42rem;
    }

    .story-services li {
        padding-right: 1rem;
        font-size: 0.72rem;
        letter-spacing: 0.08em;
    }

    .story-services li::before {
        width: 0.52rem;
    }

    .overlay {
        left: clamp(4.75rem, 6vw, 7rem);
        bottom: clamp(4.5rem, 9vh, 6.5rem);
        width: min(26vw, 380px);
        max-width: 380px;
        padding: 1.05rem 1.3rem 1.15rem;
        border-left-width: 4px;
    }

    .about-me-section {
        margin-bottom: 0.8rem;
        padding-bottom: 0.7rem;
    }

    .about-me-header {
        margin-bottom: 0.5rem;
        font-size: 0.66rem;
        letter-spacing: 1px;
        gap: 0.35rem;
    }

    .about-me-header i {
        font-size: 0.66rem;
    }

    .custom-player {
        min-height: 72px;
        padding: 0.65rem 0.75rem;
        border-radius: 18px;
    }

    .waveform {
        gap: 4px;
        height: 50px;
    }

    .waveform-bar {
        min-width: 5px;
    }

    .ap-play {
        font-size: 1rem;
    }

    .ap-play:hover {
        transform: translate(-50%, -58%) scale(1.06);
    }

    .member-name {
        font-size: 1.35rem;
        margin-bottom: 0.35rem;
        letter-spacing: 0.9px;
    }

    .member-role {
        font-size: 0.78rem;
        margin-bottom: 1rem;
        letter-spacing: 0.45px;
    }

    .contact-btn {
        padding: 0.58rem 1.3rem;
        font-size: 0.68rem;
        gap: 0.35rem;
        border-radius: 14px;
    }

    .contact-btn i {
        font-size: 0.62rem;
    }

    .slide-indicators {
        bottom: 24px;
    }

    .contact-card {
        width: min(74vw, 980px);
        max-height: min(78vh, 760px);
        padding: 1.25rem;
    }

    .contact-content h2 {
        font-size: clamp(1.95rem, 3.2vw, 3.25rem);
    }
    /* Keep the role as a normal text line under the name on desktop */
    .card-role {
        font-size: clamp(0.94rem, 1.45vw, 1.1rem);
        color: rgba(255,255,255,0.85);
        margin: 0;
        font-weight: 500;
    }

    .contact-content {
        grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
    }

    .contact-details {
        padding: 1.2rem 1.25rem;
    }

    .contact-item {
        padding: 0.95rem 0;
    }

    .contact-item i {
        font-size: 1rem;
    }

    .contact-item a,
    .contact-item span,
    .contact-text a,
    .contact-text span {
        font-size: 0.96rem;
    }

    .social-icon {
        width: 48px;
        height: 48px;
        font-size: 1rem;
    }

    .close-btn {
        width: 42px;
        height: 42px;
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    :root {
        --mobile-side-panel-width: clamp(128px, 34vw, 162px);
        --brand-scroll-space-height: clamp(240px, 36vh, 340px);
    }

    .slide[data-member="sereine"] .desktop-map-preview {
        position: absolute;
        right: var(--left-offset);
        bottom: clamp(8.1rem, 18vw, 9.5rem);
        z-index: 54;
        display: flex;
        flex-direction: column;
        gap: 0.42rem;
        width: var(--mobile-side-panel-width);
        max-width: var(--mobile-side-panel-width);
        height: clamp(104px, 25vw, 132px);
        padding: 0.48rem 0.48rem 0.5rem;
        border: 1px solid rgba(255, 255, 255, 0.14);
        border-radius: 14px;
        background:
            linear-gradient(160deg, rgba(67, 144, 131, 0.18), transparent 38%),
            linear-gradient(180deg, rgba(8, 10, 14, 0.86), rgba(5, 9, 14, 0.76)),
            rgba(7, 12, 18, 0.72);
        box-shadow:
            0 14px 30px rgba(0, 0, 0, 0.28),
            inset 0 1px 0 rgba(255, 255, 255, 0.05);
        -webkit-backdrop-filter: blur(12px);
        backdrop-filter: blur(12px);
        transform: none;
        overflow: hidden;
        pointer-events: auto;
        touch-action: auto;
    }

    .slide[data-member="sereine"] .desktop-map-preview::before {
        content: "";
        position: absolute;
        inset: 0;
        background:
            linear-gradient(90deg, rgba(0, 180, 166, 0.24), rgba(242, 140, 40, 0.16) 45%, transparent 78%),
            radial-gradient(circle at top right, rgba(242, 140, 40, 0.1), transparent 34%);
        opacity: 0.95;
        pointer-events: none;
    }

    .slide[data-member="sereine"] .desktop-map-preview::after {
        content: "";
        position: absolute;
        left: 0.48rem;
        right: 0.48rem;
        top: 2.18rem;
        height: 1px;
        background: linear-gradient(90deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.04));
        pointer-events: none;
    }

    .slide[data-member="sereine"] .desktop-map-preview-header {
        position: relative;
        z-index: 1;
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 0.32rem;
    }

    .slide[data-member="sereine"] .desktop-map-preview-heading {
        display: flex;
        flex-direction: column;
        gap: 0.12rem;
        min-width: 0;
    }

    .slide[data-member="sereine"] .desktop-map-preview-kicker {
        color: rgba(242, 140, 40, 0.88);
        font-size: clamp(0.28rem, 1.1vw, 0.34rem);
        font-weight: 700;
        letter-spacing: 0.18em;
        text-transform: uppercase;
    }

    .slide[data-member="sereine"] .desktop-map-preview-title {
        color: rgba(255, 255, 255, 0.96);
        font-size: clamp(0.46rem, 1.75vw, 0.58rem);
        font-weight: 800;
        letter-spacing: 0.14em;
        text-transform: uppercase;
        text-shadow: 0 8px 18px rgba(0, 0, 0, 0.26);
        white-space: nowrap;
    }

    .slide[data-member="sereine"] .desktop-map-preview-frame {
        position: relative;
        z-index: 1;
        flex: 1 1 auto;
        min-height: 0;
        overflow: hidden;
        padding: 0.22rem;
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 10px;
        background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
            rgba(5, 9, 14, 0.5);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
    }

    .slide[data-member="sereine"] .desktop-map-expand-btn {
        position: relative;
        z-index: 1;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0;
        flex-shrink: 0;
        width: 1.45rem;
        height: 1.45rem;
        padding: 0;
        border: 1px solid rgba(255, 255, 255, 0.14);
        border-radius: 999px;
        background: rgba(8, 10, 14, 0.46);
        color: rgba(255, 255, 255, 0.95);
        box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
    }

    .slide[data-member="sereine"] .desktop-map-expand-btn span {
        display: none;
    }

    .slide[data-member="sereine"] .desktop-map-expand-btn i {
        font-size: 0.5rem;
    }

    .slide[data-member="sereine"] .desktop-map-canvas {
        border-radius: 8px;
        box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
    }

    .slide[data-member="sereine"] .desktop-map-canvas .leaflet-control-zoom a {
        width: 20px;
        height: 20px;
        line-height: 20px;
        font-size: 0.78rem;
    }

    .slide[data-member="sereine"] .desktop-map-canvas .leaflet-control-attribution {
        font-size: 0.34rem;
        padding: 0.08rem 0.14rem;
    }

    .brand-floating-title {
        width: min(94vw, 560px);
    }

    .brand-message {
        bottom: clamp(0.95rem, 3.6vh, 1.6rem);
        width: min(92vw, 520px);
        height: clamp(3.9rem, 15vh, 5.4rem);
    }

    .brand-message-line {
        font-size: clamp(0.6rem, calc(var(--brand-scroll-space-height) * 0.047), 0.92rem);
        max-width: 34ch;
        line-height: 1.18;
    }

    .brand-floating-line {
        gap: 0.18em;
        font-size: clamp(0.88rem, calc(var(--brand-scroll-space-height) * 0.056), 1.24rem);
        line-height: 0.94;
        letter-spacing: 0.1em;
    }

    .brand-floating-line-secondary {
        letter-spacing: 0.18em;
    }

    .hero-section {
        height: calc(var(--hero-divider-offset) - 3px);
    }

    .brand-scroll-space::before {
        background-position: 18% 16%, 82% 78%, center top, center 58%;
        background-size: auto, auto, 100% 100%, min(52vw, 200px);
    }

    .slide[data-member="orante"] .brand-scroll-space::before {
        background-position: 82% 16%, 18% 78%, center top, center 60%;
    }

    .hero-visual-cityscape {
        object-position: center 34%;
    }

    .hero-logo-mark {
        top: 0.28rem;
        width: min(52vw, 220px);
        max-width: calc(100% - 3rem);
        max-height: calc(100% - 0.56rem);
    }

    .hero-catchphrase {
        top: calc(var(--hero-divider-offset) + 0.62rem);
        width: min(62vw, 250px);
    }

    .hero-catchphrase::before {
        width: clamp(2.1rem, 10vw, 3rem);
        margin-bottom: 0.42rem;
    }

    .hero-catch-title {
        gap: 0.08rem;
    }

    .hero-catch-line-primary {
        font-size: clamp(1.2rem, 6.1vw, 1.85rem);
        letter-spacing: 0.1em;
    }

    .hero-catch-line-secondary {
        margin-left: 0;
        font-size: clamp(0.96rem, 4.8vw, 1.45rem);
        letter-spacing: 0.12em;
    }

    .story-panel {
        left: clamp(1.7rem, 5vw, 2.1rem);
        max-width: clamp(165px, 46vw, 210px);
        padding: clamp(0.4rem, 1.15vw, 0.5rem) clamp(0.58rem, 1.7vw, 0.75rem) clamp(0.46rem, 1.35vw, 0.56rem) clamp(0.66rem, 1.9vw, 0.85rem);
        border-left-width: 2px;
    }

    .story-eyebrow {
        font-size: clamp(0.32rem, 1.2vw, 0.4rem);
        letter-spacing: 0.28em;
        margin-bottom: clamp(0.18rem, 0.7vw, 0.26rem);
    }

    .story-title {
        font-size: clamp(0.88rem, 4vw, 1.08rem);
        margin-bottom: clamp(0.28rem, 1vw, 0.4rem);
    }

    .story-summary {
        font-size: clamp(0.3rem, 1.35vw, 0.36rem);
        line-height: 1.4;
        margin-bottom: 0;
    }

    .story-services-panel {
        right: var(--left-offset);
        bottom: clamp(3.1rem, 7vw, 3.8rem);
        width: var(--mobile-side-panel-width);
        max-width: var(--mobile-side-panel-width);
        padding: clamp(0.34rem, 1.15vw, 0.42rem) clamp(0.52rem, 1.7vw, 0.68rem) clamp(0.38rem, 1.3vw, 0.48rem) clamp(0.44rem, 1.45vw, 0.56rem);
        border-right-width: 2px;
        border-radius: 10px 0 0 10px;
        box-sizing: border-box;
    }

    .story-services {
        gap: clamp(0.16rem, 0.55vw, 0.22rem);
    }

    .story-services li {
        padding-right: clamp(0.42rem, 1.45vw, 0.56rem);
        font-size: clamp(0.38rem, 1.55vw, 0.5rem);
        letter-spacing: 0.04em;
    }

    .story-services li::before {
        width: clamp(0.38rem, 1.2vw, 0.48rem);
    }

    .overlay {
        --mobile-overlay-scale: 0.5;
        bottom: clamp(3.1rem, 7vw, 3.8rem);
        left: var(--left-offset);
        right: auto;
        width: var(--mobile-side-panel-width);
        max-width: var(--mobile-side-panel-width);
        padding: clamp(0.38rem, 1.25vw, 0.5rem) clamp(0.52rem, 1.7vw, 0.68rem);
        border-left-width: 2px;
    }

    .about-me-section {
        margin-bottom: clamp(0.28rem, 1vw, 0.4rem);
        padding-bottom: clamp(0.24rem, 0.8vw, 0.32rem);
    }

    .about-me-header {
        font-size: clamp(0.38rem, 1.4vw, 0.48rem);
        letter-spacing: 0.4px;
        margin-bottom: clamp(0.16rem, 0.55vw, 0.24rem);
        gap: clamp(0.14rem, 0.5vw, 0.2rem);
    }

    .about-me-header i {
        font-size: clamp(0.38rem, 1.4vw, 0.48rem);
    }

    .custom-player {
        min-height: clamp(36px, 8.6vw, 44px);
        padding: clamp(0.34rem, 1.15vw, 0.42rem) clamp(0.36rem, 1.2vw, 0.44rem);
        border-radius: 9px;
    }

    .waveform {
        gap: clamp(2px, 0.6vw, 3px);
        height: clamp(24px, 5.8vw, 30px);
    }

    .waveform-bar {
        min-width: clamp(3px, 0.8vw, 4px);
        box-shadow: 0 0 6px rgba(0, 180, 166, 0.12);
    }

    .player-controls {
        inset: 0;
    }

    .ap-play {
        font-size: clamp(0.36rem, 1.5vw, 0.46rem);
        transform: translate(-50%, -62%);
    }

    .ap-play:hover {
        transform: translate(-50%, -62%) scale(1.04);
    }

    .contact-card {
        width: min(94vw, 680px);
        max-height: min(82vh, 680px);
        padding: 0.9rem;
        border-radius: 24px;
    }

    .card-border-rect {
        stroke-width: 2;
    }

    .close-btn {
        top: 0.75rem;
        right: 0.75rem;
        width: 38px;
        height: 38px;
        font-size: 0.92rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
        grid-template-areas:
            "name"
            "role"
            "details"
            "social";
        row-gap: 0.9rem;
        max-height: calc(min(82vh, 680px) - 1.8rem);
        padding: 1.1rem;
    }

    .contact-content::before {
        position: static;
        margin-bottom: 0.2rem;
        font-size: 0.62rem;
    }

    .contact-content h2 {
        margin-top: 0;
        font-size: clamp(1.35rem, 5.8vw, 1.9rem);
        letter-spacing: 0.05em;
    }

    .card-role {
        font-size: clamp(0.74rem, 2.9vw, 0.88rem);
        margin-bottom: 0;
    }

    .contact-details {
        margin-bottom: 0;
        padding: 0.9rem;
        border-radius: 18px;
    }

    .contact-item {
        gap: 0.7rem;
        padding: 0.75rem 0;
    }

    .contact-item i {
        font-size: 0.84rem;
        width: 0.84rem;
        margin-top: 0.12rem;
    }

    .contact-item a,
    .contact-item span,
    .contact-text a,
    .contact-text span {
        font-size: clamp(0.74rem, 3vw, 0.88rem);
    }

    .contact-text {
        gap: 0.2rem;
    }

    .social-links {
        gap: 0.6rem;
        margin-top: 0;
    }

    .social-icon {
        width: 42px;
        height: 42px;
        font-size: 0.9rem;
    }

    .member-name {
        font-size: clamp(0.82rem, 3.3vw, 1rem);
        margin-bottom: clamp(0.12rem, 0.45vw, 0.18rem);
        letter-spacing: 0.25px;
    }

    .member-role {
        font-size: clamp(0.5rem, 1.85vw, 0.62rem);
        margin-bottom: clamp(0.42rem, 1.45vw, 0.58rem);
        letter-spacing: 0.15px;
    }

    .contact-btn {
        padding: clamp(0.32rem, 1.1vw, 0.42rem) clamp(0.68rem, 2.35vw, 0.88rem);
        font-size: clamp(0.52rem, 1.95vw, 0.64rem);
        gap: clamp(0.14rem, 0.5vw, 0.2rem);
        letter-spacing: 0.25px;
        box-shadow: 0 1px 3px rgba(0, 180, 166, 0.22);
    }

    .contact-btn i {
        font-size: clamp(0.42rem, 1.35vw, 0.5rem);
    }
}

@media (prefers-reduced-motion: reduce) {
    .slide .hero-visual-cityscape {
        opacity: 0;
        transform: none;
        animation: none;
    }

    .slide .hero-visual-brandmark {
        opacity: 1;
        transform: none;
        animation: none;
    }

    .slide .hero-logo-mark {
        opacity: 1;
        transform: translateX(-50%);
        animation: none;
    }

    .slide .hero-catchphrase::before,
    .slide .hero-catch-line {
        opacity: 1;
        clip-path: inset(0 0 0 0);
        transform: none;
        animation: none;
    }

    .slide .hero-catch-line-secondary {
        text-shadow:
            0 16px 32px rgba(0, 0, 0, 0.38),
            0 0 16px rgba(0, 180, 166, 0.24),
            0 0 28px rgba(0, 180, 166, 0.16);
    }
}
