:root {
    --bg: #d3d2cf;
    --bg-raised: #c7c6c2;
    --surface: rgba(255,255,255,.32);
    --surface-hover: rgba(255,255,255,.46);
    --border: rgba(62,60,56,.2);
    --border-hover: rgba(62,60,56,.34);
    --text: #201f1d;
    --text-dim: #4b4945;
    --text-muted: #66635f;
    --orange: #f97316;
    --purple: #a855f7;
    --cyan: #06b6d4;
    --blue: #3b82f6;
    --grad-warm: linear-gradient(135deg, var(--orange), var(--purple));
    --grad-cool: linear-gradient(135deg, var(--cyan), var(--blue));
    --grad-text: radial-gradient(circle at top left, #79d4ff 0%, #39c3ff 42%, #0ea5e9 100%);
    --font-body: 'Sora', system-ui, sans-serif;
    --font-display: 'Archivo', 'Sora', sans-serif;
    --ease-out: cubic-bezier(.16,1,.3,1);
    --ease-standard: cubic-bezier(.22,.61,.36,1);
    --motion-fast: .2s;
    --motion-base: .25s;
    --motion-slow: .62s;
    --hover-shadow: 0 10px 24px rgba(0,0,0,.22);
    --nav-scrolled-bg: rgba(211,210,207,.86);
    --mobile-menu-bg: rgba(211,210,207,.94);
    --grid-line: rgba(83,69,51,.08);
    --section-glow-top-left: rgba(136,140,146,.34);
    --section-glow-bottom-right: rgba(14,165,233,.12);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --nav-offset: 88px;
}

body.dark-mode {
    --bg: #09090b;
    --bg-raised: #111114;
    --surface: rgba(255,255,255,.04);
    --surface-hover: rgba(255,255,255,.08);
    --border: rgba(255,255,255,.08);
    --border-hover: rgba(255,255,255,.16);
    --text: #fafafa;
    --text-dim: #a1a1aa;
    --text-muted: #71717a;
    --nav-scrolled-bg: rgba(9,9,11,.86);
    --mobile-menu-bg: rgba(9,9,11,.94);
    --grid-line: rgba(255,255,255,.02);
    --section-glow-top-left: rgba(255,255,255,.45);
    --section-glow-bottom-right: rgba(14,165,233,.12);
}

body:not(.dark-mode)::after {
    background:
        linear-gradient(180deg, rgba(15, 23, 42, .14) 0%, rgba(15, 23, 42, .08) 40%, rgba(15, 23, 42, .16) 100%),
        url("assets/background-gemini.webp");
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    opacity: .1;
}

body:not(.dark-mode).mobile-bg::after {
    background-image:
        linear-gradient(180deg, rgba(15, 23, 42, .14) 0%, rgba(15, 23, 42, .08) 40%, rgba(15, 23, 42, .16) 100%),
        url("assets/Gemini glass logo vertical.webp");
}

body {
    --flow-bg-1: rgba(127,137,154,.24);
    --flow-bg-2: rgba(57,195,255,.08);
    --flow-bg-3: rgba(168,85,247,.06);
    --flow-light: rgba(255,255,255,.12);
    --flow-dark: rgba(78,83,92,.16);
}

body.dark-mode {
    --flow-bg-1: rgba(28,38,64,.34);
    --flow-bg-2: rgba(14,165,233,.12);
    --flow-bg-3: rgba(168,85,247,.12);
    --flow-light: rgba(145,198,255,.08);
    --flow-dark: rgba(0,0,0,.3);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background var(--motion-slow) var(--ease-out), color var(--motion-slow) var(--ease-out);
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { border: none; background: none; cursor: pointer; font: inherit; color: inherit; }

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: var(--bg);
    opacity: 0;
    pointer-events: none;
    z-index: 1;
    transition: opacity .95s var(--ease-standard), background .95s var(--ease-standard);
}
body.theme-switching::before { opacity: .7; }

body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        linear-gradient(180deg, rgba(2, 6, 23, .44) 0%, rgba(2, 6, 23, .3) 35%, rgba(2, 6, 23, .42) 100%),
        url("assets/glassyPC.webp");
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    opacity: .1;
    filter: saturate(.95) contrast(.96);
    transform: scale(1.05);
    mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 99.4%, rgba(0,0,0,.94) 99.75%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 99.4%, rgba(0,0,0,.94) 99.75%, transparent 100%);
}

body.dark-mode.mobile-bg::after {
    background-image:
        linear-gradient(180deg, rgba(2, 6, 23, .44) 0%, rgba(2, 6, 23, .3) 35%, rgba(2, 6, 23, .42) 100%),
        url("assets/Black glass rings mobile.webp");
}

.container { max-width: 1120px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 48px); }

.grad-warm { background: var(--grad-text); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.grad-cool { background: var(--grad-cool); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

.vivid-blue {
    color: #1dafff;
    text-shadow:
        -1px 0 0 rgba(0, 0, 0, .92),
        1px 0 0 rgba(0, 0, 0, .92),
        0 -1px 0 rgba(0, 0, 0, .92),
        0 1px 0 rgba(0, 0, 0, .92),
        0 0 10px rgba(29, 175, 255, .22);
}

body.dark-mode .vivid-blue {
    color: #5cc9ff;
    text-shadow:
        -1px 0 0 rgba(0, 0, 0, .9),
        1px 0 0 rgba(0, 0, 0, .9),
        0 -1px 0 rgba(0, 0, 0, .9),
        0 1px 0 rgba(0, 0, 0, .9),
        0 0 12px rgba(92, 201, 255, .38),
        0 0 22px rgba(56, 189, 248, .24);
}

.titan-ink {
    color: #2d3fae;
    letter-spacing: .01em;
    text-shadow:
        -1px 0 0 rgba(0, 0, 0, .9),
        1px 0 0 rgba(0, 0, 0, .9),
        0 -1px 0 rgba(0, 0, 0, .9),
        0 1px 0 rgba(0, 0, 0, .9),
        0 0 10px rgba(45, 63, 174, .2);
}

body.dark-mode .titan-ink {
    color: #4e5ec5;
    text-shadow:
        -1px 0 0 rgba(0, 0, 0, .92),
        1px 0 0 rgba(0, 0, 0, .92),
        0 -1px 0 rgba(0, 0, 0, .92),
        0 1px 0 rgba(0, 0, 0, .92),
        0 0 12px rgba(78, 94, 197, .26);
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 18px;
}
.label-bar { width: 28px; height: 2px; border-radius: 2px; background: var(--grad-warm); }

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.35rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -.03em;
    margin-bottom: 18px;
}

.btn,
.nav-link,
.mobile-link,
.footer-links a,
.theme-toggle,
.glass-card,
.success-card,
.team-card,
.insight-card,
.timeline-item,
.steps-panel li {
    transition:
        transform var(--motion-base) var(--ease-out),
        background var(--motion-base) var(--ease-out),
        border-color var(--motion-base) var(--ease-out),
        box-shadow var(--motion-base) var(--ease-out),
        color var(--motion-fast) var(--ease-out),
        opacity var(--motion-fast) var(--ease-out);
}

.cursor-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(14,165,233,.12), rgba(79,70,229,.08), transparent 70%);
    pointer-events: none;
    z-index: 1;
    transform: translate(-50%, -50%);
    transition: opacity .3s;
}
.cursor-dot { display: none !important; }
@media (hover: none) { .cursor-glow, .cursor-dot { display: none; } }

#particles { position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .45; }
main, .container { position: relative; z-index: 2; }

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 120;
    padding: 16px 0;
    transition: background .4s, backdrop-filter .4s, padding .4s;
}
.nav.scrolled {
    background: var(--nav-scrolled-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}
.nav-inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 48px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    position: relative;
    isolation: isolate;
}
.nav-left { display: flex; align-items: center; gap: 10px; }
.nav-logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1rem; letter-spacing: .01em; position: relative; z-index: 1; }
.logo-svg { width: 30px; height: 30px; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: flex-end;
}

.nav-pill {
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    height: 0;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--border-hover);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.12), 0 6px 18px rgba(0,0,0,.12);
    pointer-events: none;
    z-index: 0;
    opacity: 0;
    transform: translate3d(0, 0, 0);
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    transition:
        transform var(--motion-slow) var(--ease-out),
        width var(--motion-slow) var(--ease-out),
        height var(--motion-slow) var(--ease-out),
        opacity var(--motion-base) var(--ease-out);
}

.nav-pill.ready { opacity: 1; }

.nav-link {
    position: relative;
    z-index: 1;
    font-size: .66rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--text-dim);
    padding: 5px 8px;
    border-radius: 999px;
    border: 1px solid transparent;
}

.nav-link.nav-compact {
    /* No longer used, keep for reference */
}
}
.nav-link:hover {
    color: var(--text);
    border-color: transparent;
}
.nav-link.is-active {
    color: var(--text);
    border-color: transparent;
}
.nav-cta {
    background: var(--grad-warm);
    color: #fff;
    padding: 6px 12px;
    border-radius: 999px;
}

.theme-toggle {
    width: 126px;
    height: 42px;
    position: relative;
    z-index: 130;
    border-radius: 999px;
    background: rgba(145,145,152,.22);
    border: 1px solid rgba(95,95,103,.36);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0,0,0,.12);
}
.theme-toggle:hover {
    transform: translateY(-1px);
    background: rgba(145,145,152,.28);
    border-color: rgba(95,95,103,.42);
}
.theme-toggle-track {
    position: relative;
    width: 96px;
    height: 26px;
    display: block;
    border-radius: 999px;
    background: rgba(122,122,130,.34);
    box-shadow: inset 0 0 0 1px rgba(235,235,240,.12);
    transition: background .65s var(--ease-standard), box-shadow .65s var(--ease-standard);
}
.theme-thumb {
    position: absolute;
    top: 1px;
    left: 1px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255,255,255,.7);
    border: 1px solid rgba(255,255,255,.52);
    box-shadow: 0 1px 6px rgba(0,0,0,.18), inset 0 0 0 1px rgba(255,255,255,.2);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transition: transform .95s var(--ease-standard), background .95s var(--ease-standard), border-color .95s var(--ease-standard), box-shadow .95s var(--ease-standard);
}
.theme-icon {
    position: absolute;
    top: 0;
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    font-size: 14px;
    line-height: 1;
    transition: opacity .72s var(--ease-standard), color .72s var(--ease-standard);
    z-index: 1;
}
.theme-icon.sun { left: 0; opacity: .95; color: #f59e0b; }
.theme-icon.moon { right: 0; opacity: .55; color: #64748b; }

.theme-toggle[aria-pressed="true"] .theme-thumb {
    transform: translateX(70px);
    background: rgba(140,188,255,.56);
    border-color: rgba(145,198,255,.44);
    box-shadow: 0 1px 8px rgba(56,94,160,.32), inset 0 0 0 1px rgba(145,198,255,.18);
}
.theme-toggle[aria-pressed="true"] .theme-icon.sun { opacity: .5; color: #94a3b8; }
.theme-toggle[aria-pressed="true"] .theme-icon.moon { opacity: 1; color: #dbeafe; }

.theme-wave {
    position: fixed;
    border-radius: 50%;
    overflow: hidden;
    pointer-events: none;
    z-index: 90;
    background:
        radial-gradient(circle, rgba(165,225,255,.38) 0%, rgba(130,205,245,.26) 58%, rgba(130,205,245,0) 72%),
        radial-gradient(circle, rgba(255,255,255,.55) 65%, rgba(255,255,255,.20) 69%, rgba(255,255,255,0) 76%);
    border: 1px solid rgba(255,255,255,.28);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.16), 0 0 24px rgba(110,180,225,.22);
    backdrop-filter: blur(12px) saturate(1.22);
    -webkit-backdrop-filter: blur(12px) saturate(1.22);
    transform: scale(0);
    opacity: 0;
    will-change: transform, opacity;
    animation: themeWave 1.45s var(--ease-standard) forwards;
}
.theme-wave::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,.34);
    box-shadow: inset 0 0 22px rgba(255,255,255,.22), 0 0 30px rgba(150,210,255,.22);
    background: radial-gradient(circle, rgba(255,255,255,0) 62%, rgba(255,255,255,.16) 82%, rgba(255,255,255,.08) 100%);
    opacity: .9;
}
.theme-wave.to-dark {
    background:
        radial-gradient(circle, rgba(33,45,70,.38) 0%, rgba(28,40,62,.26) 58%, rgba(28,40,62,0) 72%),
        radial-gradient(circle, rgba(145,198,255,.48) 65%, rgba(145,198,255,.20) 69%, rgba(145,198,255,0) 76%);
    border-color: rgba(145,198,255,.32);
    box-shadow: inset 0 0 0 1px rgba(145,198,255,.16), 0 0 28px rgba(88,140,220,.26);
}
.theme-wave.to-dark::after {
    border-color: rgba(145,198,255,.38);
    box-shadow: inset 0 0 22px rgba(145,198,255,.2), 0 0 34px rgba(88,140,220,.3);
}
.theme-wave.to-light {
    background:
        radial-gradient(circle, rgba(190,198,208,.38) 0%, rgba(166,178,192,.26) 58%, rgba(166,178,192,0) 72%),
        radial-gradient(circle, rgba(255,255,255,.56) 65%, rgba(255,255,255,.20) 69%, rgba(255,255,255,0) 76%);
    border-color: rgba(255,255,255,.3);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.2), 0 0 22px rgba(170,185,202,.24);
}
.theme-wave.to-light::after {
    border-color: rgba(255,255,255,.42);
    box-shadow: inset 0 0 22px rgba(255,255,255,.24), 0 0 28px rgba(170,185,202,.28);
}

@keyframes themeWave {
    0% { transform: scale(0); opacity: 0; }
    20% { opacity: .6; }
    65% { opacity: .42; }
    100% { transform: scale(1); opacity: 0; }
}

.nav-toggle { display: none; width: 32px; height: 24px; position: relative; z-index: 101; }
.nav-toggle span { position: absolute; left: 0; width: 100%; height: 2px; background: var(--text); border-radius: 2px; transition: all .3s var(--ease-out); }
.nav-toggle span:nth-child(1) { top: 0; }
.nav-toggle span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.nav-toggle span:nth-child(3) { bottom: 0; }
.nav-toggle.open span:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { bottom: 50%; transform: translateY(50%) rotate(-45deg); }

.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 99;
    background: var(--mobile-menu-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .4s;
}
.mobile-menu.open { opacity: 1; pointer-events: auto; }
.mobile-link { font-size: 1.4rem; font-weight: 600; color: var(--text-dim); }
.mobile-cta { background: var(--grad-warm); color: #fff; padding: 12px 32px; border-radius: 100px; margin-top: 8px; }

.hero,
.visit {
    position: relative;
}

.hero { overflow: hidden; }
.visit { overflow: visible; }

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 132px 24px 96px;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-content { position: relative; z-index: 2; max-width: 840px; }

/* Fade section edges to blend seamlessly */
.hero-bg,
.visit-bg {
    mask-image: linear-gradient(
        to bottom,
        rgba(0,0,0,0) 0%,
        rgba(0,0,0,.92) 10%,
        rgba(0,0,0,1) 18%,
        rgba(0,0,0,1) 82%,
        rgba(0,0,0,.92) 90%,
        rgba(0,0,0,0) 100%
    );
    -webkit-mask-image: linear-gradient(
        to bottom,
        rgba(0,0,0,0) 0%,
        rgba(0,0,0,.92) 10%,
        rgba(0,0,0,1) 18%,
        rgba(0,0,0,1) 82%,
        rgba(0,0,0,.92) 90%,
        rgba(0,0,0,0) 100%
    );
}

.orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .4; will-change: transform; animation: orbFloat 20s ease-in-out infinite; }
.hero-bg .orb-1 { width: 600px; height: 600px; top: -15%; left: -10%; background: radial-gradient(circle, var(--orange), transparent 70%); }
.hero-bg .orb-2 { width: 500px; height: 500px; bottom: -10%; right: -5%; background: radial-gradient(circle, var(--purple), transparent 70%); animation-delay: -7s; }
.hero-bg .orb-3 { width: 400px; height: 400px; top: 30%; right: 20%; background: radial-gradient(circle, var(--cyan), transparent 70%); animation-delay: -14s; }

@keyframes orbFloat {
    0%,100% { transform: translate(0,0) scale(1); }
    25% { transform: translate(30px,-40px) scale(1.05); }
    50% { transform: translate(-20px,30px) scale(.95); }
    75% { transform: translate(40px,20px) scale(1.02); }
}

.grid-overlay {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, black 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, black 20%, transparent 70%);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 100px;
    padding: 8px 20px;
    font-size: .8rem;
    font-weight: 500;
    color: var(--text-dim);
    margin-bottom: 32px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    will-change: transform, opacity;
}
.badge-pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .5; transform: scale(.8); } }

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.7rem, 7.2vw, 5.4rem);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -.05em;
    margin-bottom: 20px;
}
.hero-title .line { display: block; }
.hero-sub {
    font-size: clamp(1rem, 2.5vw, 1.24rem);
    color: var(--text-dim);
    line-height: 1.75;
    margin: 0 auto 44px;
    max-width: 580px;
    will-change: transform, opacity;
}

.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.hero-actions.anim {
    transition-property: opacity;
    will-change: transform, opacity;
}

/* Keep hero text parallax immediate during scroll */
.hero-badge.anim,
.hero-sub.anim {
    transition-property: opacity;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: .95rem;
    border-radius: 100px;
}
.btn-primary { background: var(--grad-warm); color: #fff; padding: 14px 32px; }
.btn-primary:hover { transform: translateY(-2px); }
.btn-ghost { background: var(--surface); border: 1px solid var(--border); color: var(--text); padding: 14px 32px; }
.btn-ghost:hover { background: var(--surface-hover); }
.btn-lg { padding: 18px 40px; font-size: 1.1rem; }

.scroll-hint {
    position: absolute;
    bottom: 34px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: .66rem;
    letter-spacing: .22em;
    text-transform: uppercase;
}
.scroll-line { width: 1px; height: 40px; background: linear-gradient(to bottom, var(--text-muted), transparent); animation: scrollLine 2s ease-in-out infinite; }
@keyframes scrollLine {
    0% { transform: scaleY(0); transform-origin: top; }
    50% { transform: scaleY(1); transform-origin: top; }
    51% { transform: scaleY(1); transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

.split-section {
    padding: clamp(84px, 12vw, 132px) 0;
    position: relative;
    background: transparent;
    min-height: 70vh;
}

.split-section::before {
    content: none;
}

.split-section.tone-dark::before {
    content: none;
}

.split-section > .container { position: relative; z-index: 2; }

.split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(28px, 5vw, 76px);
}
.split.reverse { direction: rtl; }
.split.reverse > * { direction: ltr; }

.split-text p { color: var(--text-dim); margin-bottom: 14px; font-size: .98rem; line-height: 1.75; max-width: 56ch; }
.split-text p:last-child { margin-bottom: 0; }

#who-we-are .split-text {
    text-align: right;
}

#who-we-are .section-label {
    justify-content: flex-end;
}

#who-we-are .split-text p {
    margin-left: auto;
    margin-right: 0;
}

#who-we-are .section-title {
    text-align: right;
    max-width: 20ch;
    margin-left: auto;
    margin-right: 0;
}

.split-visual { min-height: 340px; }

.parallax-text,
.parallax-visual {
    will-change: transform;
}

/* Keep scroll-parallax transform immediate (no transition lag) */
.parallax-text.anim,
.parallax-visual.anim,
.parallax-text.anim.visible,
.parallax-visual.anim.visible {
    transition-property: opacity;
}

.stacked-cards,
.feature-grid,
.timeline-panel,
.insight-panel,
.steps-panel,
.masonry,
.team-grid {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: clamp(18px, 3vw, 28px);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.glass-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 18px 20px;
    margin-bottom: 12px;
    backdrop-filter: blur(8px);
}
.glass-card:last-child { margin-bottom: 0; }
.glass-card:hover { transform: translateY(-3px); background: var(--surface-hover); border-color: var(--border-hover); box-shadow: var(--hover-shadow); }
.glass-card h3 { font-size: .98rem; margin-bottom: 6px; }
.glass-card h3.audience-title { font-size: 1.2rem; letter-spacing: .06em; }
.glass-card p { color: var(--text-dim); font-size: .86rem; line-height: 1.55; }

.feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.glass-card.mini { margin: 0; }

.timeline-panel { display: grid; gap: 12px; }
.timeline-item {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 16px 18px;
    background: var(--surface);
}
.timeline-item:hover { transform: translateY(-3px); background: var(--surface-hover); border-color: var(--border-hover); box-shadow: var(--hover-shadow); }
.timeline-year { display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 8px; }
.timeline-item p { color: var(--text-dim); font-size: .86rem; line-height: 1.55; }

.insight-panel { display: grid; gap: 12px; }
.insight-card {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 16px 18px;
    background: var(--surface);
}
.insight-card:hover { transform: translateY(-3px); background: var(--surface-hover); border-color: var(--border-hover); box-shadow: var(--hover-shadow); }
.insight-card h3 { font-size: .94rem; margin-bottom: 6px; }
.insight-card p { color: var(--text-dim); font-size: .84rem; }

.steps-panel {
    list-style: none;
    display: grid;
    gap: 10px;
}
.steps-panel li {
    display: grid;
    grid-template-columns: 36px 1fr;
    gap: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
    padding: 12px 14px;
}
.steps-panel li:hover { transform: translateY(-3px); background: var(--surface-hover); border-color: var(--border-hover); box-shadow: var(--hover-shadow); }
.steps-panel span {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-grid;
    place-items: center;
    font-family: var(--font-display);
    font-weight: 700;
    background: rgba(14,165,233,.14);
    color: var(--blue);
}
.steps-panel h3 { font-size: .92rem; margin-bottom: 4px; }
.steps-panel p { color: var(--text-dim); font-size: .82rem; line-height: 1.45; }

.masonry {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.success-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 16px 18px;
    backdrop-filter: blur(8px);
}
.success-card:hover { transform: translateY(-3px); background: var(--surface-hover); border-color: var(--border-hover); box-shadow: var(--hover-shadow); }
.success-card h3 { font-size: .92rem; margin-bottom: 6px; }
.success-card p { color: var(--text-dim); font-size: .82rem; line-height: 1.5; }

.team-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}
.team-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    backdrop-filter: blur(8px);
}
.team-card:hover { transform: translateY(-3px); background: var(--surface-hover); border-color: var(--border-hover); box-shadow: var(--hover-shadow); }
.team-head {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}
.team-photo {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border);
}
.team-meta h3 { font-size: 1rem; margin-bottom: 4px; }
.team-role { color: var(--orange); font-size: .78rem; font-weight: 600; margin: 0; }
.team-desc { color: var(--text-dim); font-size: .82rem; line-height: 1.5; text-align: center; }

.visit {
    padding: clamp(96px, 14vw, 168px) 0;
    text-align: center;
    background: transparent;
}
.visit-bg { position: absolute; inset: 0; z-index: 0; }
.visit .orb {
    animation: none;
    will-change: transform, opacity;
    backface-visibility: hidden;
    transform: translateZ(0);
}
.visit-bg::before {
    content: "";
    position: absolute;
    inset: -8% -6%;
    pointer-events: none;
    background:
        radial-gradient(1100px 620px at 50% 74%, rgba(249,115,22,.12) 0%, rgba(249,115,22,.06) 44%, rgba(249,115,22,0) 84%),
        radial-gradient(1300px 760px at 84% 14%, rgba(168,85,247,.1) 0%, rgba(168,85,247,.05) 44%, rgba(168,85,247,0) 86%);
    filter: blur(34px) saturate(1.08);
}
.visit .container { position: relative; z-index: 1; }
.orb-j1 {
    width: 620px;
    height: 620px;
    top: -26%;
    left: 16%;
    position: absolute;
    opacity: .26;
    filter: blur(120px) saturate(1.08);
    background: radial-gradient(circle, rgba(249,115,22,.22) 0%, rgba(249,115,22,.12) 38%, rgba(249,115,22,.05) 60%, rgba(249,115,22,0) 86%);
}
.orb-j2 {
    width: 520px;
    height: 520px;
    bottom: -18%;
    right: 10%;
    position: absolute;
    opacity: .2;
    filter: blur(116px) saturate(1.08);
    background: radial-gradient(circle, rgba(168,85,247,.22) 0%, rgba(168,85,247,.12) 38%, rgba(168,85,247,.05) 60%, rgba(168,85,247,0) 86%);
}
.orb-j3 {
    width: 420px;
    height: 420px;
    top: 34%;
    left: -8%;
    position: absolute;
    opacity: .14;
    filter: blur(106px) saturate(1.06);
    background: radial-gradient(circle, rgba(6,182,212,.18) 0%, rgba(6,182,212,.1) 40%, rgba(6,182,212,.04) 62%, rgba(6,182,212,0) 86%);
}

@keyframes visitOrbDrift {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(0, -12px, 0) scale(1.015); }
}

.visit-content h2 {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -.03em;
    margin-bottom: 22px;
}
.visit-location {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: .95rem;
    color: var(--text-dim);
    margin-bottom: 10px;
}
.visit-location svg { color: var(--orange); }
.visit-hours { font-size: .95rem; color: var(--text-dim); margin-bottom: 18px; }
.visit-tagline { font-size: 1.04rem; color: var(--text); margin-bottom: 30px; font-style: italic; }

.footer {
    position: relative;
    padding: 40px 0;
}

.footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--border), transparent);
}
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer-brand strong { font-family: var(--font-display); font-size: 1rem; display: block; }
.footer-brand span { font-size: .8rem; color: var(--text-muted); }
.footer-links { display: flex; gap: 14px; flex-wrap: wrap; }
.footer-links a { font-size: .8rem; color: var(--text-muted); padding: 6px 10px; border-radius: 999px; }
.footer-links a:hover { color: var(--text); background: var(--surface); }
.footer-copy { font-size: .75rem; color: var(--text-muted); width: 100%; text-align: center; margin-top: 16px; }

.carousel-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-top: 32px;
    position: relative;
}
.carousel-arrow {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--surface);
    border: 1px solid var(--border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: grid;
    place-items: center;
    color: var(--text);
    box-shadow: 0 4px 16px rgba(0,0,0,.1);
    transition: background .25s, border-color .25s, transform .25s, box-shadow .25s, opacity .25s;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
}
/* Explicitly position arrows on left and right of the carousel-wrapper */
.carousel-arrow.prev {
    left: 0;
    margin-left: 8px;
}
.carousel-arrow.next {
    right: 0;
    margin-right: 8px;
}
.carousel-arrow:hover {
    background: var(--surface-hover);
    border-color: var(--border-hover);
    transform: scale(1.08);
    box-shadow: var(--hover-shadow);
}
.carousel-arrow:disabled {
    opacity: .3;
    pointer-events: none;
}
.carousel-container {
    flex: 1 1 0%;
    padding: 0;
    overflow: hidden;
}
.carousel-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
    align-items: center;
    padding: 0 var(--carousel-pad, 0px);
}
.carousel-track::-webkit-scrollbar { display: none; }
.video-card {
    flex: 0 0 auto;
    width: min(calc(100vw - 120px), 720px);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,.12);
    transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out), opacity .4s var(--ease-out), border-color .3s, filter .4s var(--ease-out);
    opacity: var(--card-p, 0);
    filter: blur(calc((1 - var(--card-p, 0)) * 6px)) saturate(calc(0.55 + (var(--card-p, 0) * 0.45)));
    transform: scale(calc(0.9 + (var(--card-p, 0) * 0.1)));
    pointer-events: none;
}
.video-card.is-center {
    box-shadow: var(--hover-shadow);
    border-color: var(--border-hover);
    pointer-events: auto;
}
.video-placeholder {
    position: relative;
    padding-bottom: 56.25%;
    background: #000;
}
.video-placeholder iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.video-info {
    padding: 18px 20px;
    border-top: 1px solid var(--border);
}
.video-info h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
}
.video-info p {
    font-size: .82rem;
    color: var(--text-muted);
}

@media (max-width: 640px) {
    .carousel-arrow { display: none; }
    .carousel-container { padding: 16px 0; }
    .video-card {
        width: min(100vw - 80px, 640px);
        opacity: 0;
        filter: blur(2px) saturate(.6);
        transform: scale(.9);
    }
    .video-card.is-center {
        opacity: 1;
        filter: blur(0) saturate(1);
        transform: scale(1);
    }
}

.anim { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.anim.visible { opacity: 1; transform: translateY(0); }

.anim[data-delay="80"] { transition-delay: .08s; }
.anim[data-delay="100"] { transition-delay: .1s; }
.anim[data-delay="160"] { transition-delay: .16s; }
.anim[data-delay="200"] { transition-delay: .2s; }
.anim[data-delay="240"] { transition-delay: .24s; }
.anim[data-delay="300"] { transition-delay: .3s; }
.anim[data-delay="320"] { transition-delay: .32s; }
.anim[data-delay="400"] { transition-delay: .4s; }
.anim[data-delay="450"] { transition-delay: .45s; }
.anim[data-delay="600"] { transition-delay: .6s; }

body.theme-switching,
body.theme-switching * {
    transition-property: transform, color, background-color, border-color, fill, stroke, box-shadow, text-shadow, opacity;
    transition-duration: .9s;
    transition-timing-function: var(--ease-standard);
}
body.theme-switching .theme-toggle,
body.theme-switching .theme-toggle * {
    transition-property: transform, background, border-color, box-shadow, color, opacity;
    transition-duration: .95s;
    transition-timing-function: var(--ease-standard);
    animation: none;
}
body.theme-switching { animation: themeTextPulse 1.05s var(--ease-standard); }
@keyframes themeTextPulse {
    0% { opacity: 1; }
    38% { opacity: .84; }
    100% { opacity: 1; }
}

@media (max-width: 1080px) {
    .nav-links { gap: 8px; }
    .nav-link { font-size: .68rem; padding: 7px 9px; }
    .nav-inner { max-width: 100%; }
}

@media (max-width: 900px) {
    .split,
    .split.reverse { grid-template-columns: 1fr; direction: ltr; }
    .split-visual { min-height: 0; }
    .masonry { grid-template-columns: 1fr; }
}

/* Slide-like section progression */
@media (min-width: 901px) and (prefers-reduced-motion: no-preference) {
    html,
    body {
        scroll-snap-type: y mandatory;
        scroll-padding-top: 0;
    }

    .hero,
    .split-section,
    .visit {
        scroll-snap-align: center;
        scroll-snap-stop: always;
        min-height: 100svh;
        transition: transform .46s var(--ease-standard), opacity .46s var(--ease-standard);
    }

    .split-section,
    .visit,
    #showcase {
        display: grid;
        align-content: center;
    }

    .hero:not(.is-snap-focus),
    .split-section:not(.is-snap-focus),
    .visit:not(.is-snap-focus) {
        transform: translateY(10px);
        opacity: .985;
    }

    .hero.is-snap-focus,
    .split-section.is-snap-focus,
    .visit.is-snap-focus {
        transform: translateY(0);
        opacity: 1;
    }
}

@media (max-width: 820px) {
    .nav-links { display: none; }
    .nav-toggle { display: block; }
}

@media (max-width: 640px) {
    .hero { padding: 118px 20px 84px; }
    .theme-toggle { width: 108px; }
    .theme-toggle-track { width: 82px; }
    .theme-toggle[aria-pressed="true"] .theme-thumb { transform: translateX(56px); }
    .footer-inner { flex-direction: column; text-align: center; }
    .footer-links { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
    .anim { opacity: 1; transform: none; }
}

::selection { background: rgba(249,115,22,.3); color: #fff; }
