/* ============================================================
   STICK MIND — Design System & Institutional Styles
   ============================================================ */

/* ── CSS Custom Properties ── */
:root {
    --color-bg: #050208;
    --color-surface: rgba(15, 8, 28, 0.65);
    --color-border: rgba(140, 80, 220, 0.15);
    --color-text: #f0f0f0;
    --color-text-muted: rgba(255, 255, 255, 0.45);
    --color-accent: #9b5de5;
    --color-accent-light: #c77dff;
    --color-accent-glow: rgba(155, 93, 229, 0.4);
    --color-lavender: #e0b0ff;
    --color-white: #ffffff;

    --font-heading: 'Montserrat', sans-serif;
    --font-accent: 'Playfair Display', serif;

    --header-height: 72px;
    --z-canvas: 1;
    --z-ui: 10;
    --z-header: 100;
    --z-cursor: 9999;
    --z-loader: 10000;
}

/* ── Reset ── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow: hidden;
    background: var(--color-bg);
    font-family: var(--font-heading);
    color: var(--color-text);
    cursor: none;
}

html.legacy-autoscroll-active,
html.legacy-autoscroll-active * {
    cursor: ns-resize !important;
}

a {
    color: inherit;
    text-decoration: none;
    cursor: none;
}

/* ============================================================
   LOADING SCREEN
   ============================================================ */
#loading-screen {
    position: fixed;
    inset: 0;
    z-index: var(--z-loader);
    background: var(--color-bg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader-content {
    text-align: center;
}

.loader-logo {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 300;
    letter-spacing: 0.5em;
    color: var(--color-white);
    margin-bottom: 2.5rem;
}

.loader-logo span {
    font-weight: 700;
}

.loader-bar {
    width: 200px;
    height: 2px;
    background: rgba(155, 93, 229, 0.15);
    border-radius: 2px;
    margin: 0 auto 1.2rem;
    overflow: hidden;
}

.loader-progress {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--color-accent), var(--color-lavender));
    border-radius: 2px;
    transition: width 0.3s ease;
}

.loader-text {
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    color: var(--color-text-muted);
    text-transform: uppercase;
}

/* ============================================================
   3D CANVAS
   ============================================================ */
#canvas-container {
    position: fixed;
    inset: 0;
    z-index: var(--z-canvas);
}

#canvas-container canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
}

/* ============================================================
   CUSTOM CURSOR
   ============================================================ */
#cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 8px;
    height: 8px;
    background: #ffffff;
    border-radius: 50%;
    pointer-events: none;
    z-index: var(--z-cursor);
    transform: translate(-50%, -50%);
    opacity: 0;
    mix-blend-mode: difference;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.65);
    will-change: left, top, width, height, opacity;
}

#cursor-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 48px;
    height: 48px;
    background:
        radial-gradient(circle, rgba(255, 255, 255, 0.14) 0%, rgba(199, 125, 255, 0.08) 42%, transparent 72%);
    border-radius: 50%;
    pointer-events: none;
    z-index: calc(var(--z-cursor) - 1);
    transform: translate(-50%, -50%);
    opacity: 0;
    mix-blend-mode: difference;
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(1px);
    box-shadow:
        0 0 24px rgba(199, 125, 255, 0.2),
        inset 0 0 18px rgba(255, 255, 255, 0.08);
    will-change: left, top, width, height, opacity;
}

html.cursor-interactive #cursor-glow {
    box-shadow:
        0 0 34px rgba(199, 125, 255, 0.28),
        inset 0 0 24px rgba(255, 255, 255, 0.13);
}

html.cursor-magnetic #cursor-glow {
    background:
        radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, rgba(199, 125, 255, 0.12) 46%, transparent 74%);
}

/* ============================================================
   HEADER — Epiminds-style glassmorphism
   ============================================================ */
#site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    z-index: var(--z-header);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 4%;
    background: rgba(5, 2, 8, 0);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: background 0.4s ease, border-color 0.4s ease;
}

#site-header.scrolled {
    background: rgba(5, 2, 8, 0.7);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

.header-logo {
    font-size: 0.95rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: lowercase;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0;
}

.brand-image { width: 50px; height: 50px; object-fit: contain;  border-radius: 50%; transform: scale(1.3); margin-right: -4px; margin-left: -8px; }
.logo-icon {
    flex-shrink: 0;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

#main-nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.6);
    padding: 0.3rem 0;
    transition: color 0.3s ease;
    opacity: 0;
}

.nav-link:hover,
.nav-link.active {
    color: #ffffff;
}

.header-cta {
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    padding: 0.55rem 1.6rem;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 100px;
    color: #ffffff;
    background: transparent;
    transition: all 0.3s ease;
    opacity: 0;
}

.header-cta:hover {
    background: #ffffff;
    color: #050208;
    border-color: #ffffff;
}

/* ============================================================
   SCROLL CONTAINER & SECTIONS
   ============================================================ */
#scroll-container {
    position: fixed;
    inset: 0;
    z-index: var(--z-ui);
    overflow-y: auto;
    overflow-x: hidden;
    scroll-snap-type: y proximity;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

#scroll-container::-webkit-scrollbar {
    display: none;
}

/* ── Transition Overlay (zoom-dive dark→light) ── */
#transition-overlay {
    position: fixed;
    inset: 0;
    z-index: 50;
    background: #f5f3f0;
    opacity: 0;
    pointer-events: none;
}

.section {
    width: 100%;
    height: 100vh;
    min-height: 100vh;
    scroll-snap-align: start;
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: 0 3rem;
    padding-bottom: 5rem;
}

/* Pin home content to viewport bottom during scroll */
#home .home-content {
    position: sticky;
    bottom: 0;
    align-self: flex-end;
}

/* ── Us Section (light background) ── */
.section-light {
    background: #f5f3f0;
    align-items: center;
    justify-content: center;
    padding-bottom: 0;
}

.section-light .section-content {
    max-width: 1000px;
    width: 100%;
    text-align: center;
}

/* Eyebrow with line decoration */
.us-eyebrow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    color: #555;
    margin-bottom: 1.2rem;
}

.eyebrow-line {
    display: inline-block;
    width: 40px;
    height: 1px;
    background: #555;
}

/* Title — Instrument Serif, editorial style */
.us-title {
    font-family: 'Instrument Serif', serif !important;
    color: #0a0a0a !important;
    font-size: 3.8rem;
    font-weight: 400;
    line-height: 1.15;
    margin-bottom: 2.5rem;
    letter-spacing: -0.02em;
}

.us-title em {
    font-style: italic;
    color: #0a0a0a !important;
}

/* Video player — larger with image background */
.video-container {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    border-radius: 16px;
    overflow: hidden;
    background: #0a0a0a;
    position: relative;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15);
}

.video-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    cursor: pointer;
    position: relative;
}

.video-placeholder::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.25);
    transition: background 0.3s;
}

.video-placeholder:hover::after {
    background: rgba(0, 0, 0, 0.15);
}

.play-button {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    border: 2px solid rgba(255, 255, 255, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    transition: all 0.3s;
    position: relative;
    z-index: 2;
}

.play-button:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.6);
    transform: scale(1.08);
}

/* Header invert for light sections */
#site-header.light-mode {
    background: rgba(245, 243, 240, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom-color: rgba(0, 0, 0, 0.06);
}


#site-header.light-mode .header-logo,
#site-header.light-mode .logo-icon path {
    color: #0a0a0a;
    fill: #0a0a0a;
}

#site-header.light-mode .nav-link {
    color: rgba(10, 10, 10, 0.5);
}

#site-header.light-mode .nav-link:hover,
#site-header.light-mode .nav-link.active {
    color: #0a0a0a;
}

#site-header.light-mode .header-cta {
    color: #0a0a0a;
    border-color: rgba(10, 10, 10, 0.3);
}

#site-header.light-mode .header-cta:hover {
    background: #0a0a0a;
    color: #ffffff;
    border-color: #0a0a0a;
}

.section-content {
    position: relative;
    z-index: 2;
    pointer-events: auto;
    max-width: 700px;
}

.section-eyebrow {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.25em;
    color: var(--color-text-muted);
    margin-bottom: 1rem;
    text-transform: uppercase;
}

/* Home hero elements start invisible — revealed by entrance animation */
#home .section-eyebrow,
#home .hero-title,
#home #hero-cta {
    opacity: 0;
}

/* Typewriter character spans */
.type-char {
    opacity: 0;
    filter: blur(3px);
}

.hero-title,
.section-title {
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 1.8rem;
    color: var(--color-white);
}

.hero-title {
    font-size: clamp(2.8rem, 6vw, 5.5rem);
    text-shadow: 0 2px 30px rgba(0, 0, 0, 0.5);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.hero-title em,
.section-title em {
    font-family: var(--font-accent);
    font-style: italic;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.75);
}

.section-text {
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.75;
    color: var(--color-text-muted);
    max-width: 520px;
    margin-bottom: 2.5rem;
}

/* ── CTA Button ── */
.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    padding: 0.85rem 2rem;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 100px;
    color: var(--color-white);
    background: transparent;
    transition: all 0.35s ease;
    pointer-events: auto;
}

.cta-button:hover {
    background: #ffffff;
    color: #050208;
    border-color: #ffffff;
    transform: translateY(-2px);
}

.cta-button.large {
    font-size: 1rem;
    padding: 1rem 2.5rem;
}

.cta-arrow {
    font-size: 1.1em;
    transition: transform 0.3s ease;
}

.cta-button:hover .cta-arrow {
    transform: translate(3px, -3px);
}

/* ── Scroll Indicator ── */
.scroll-indicator {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    opacity: 0;
}

.scroll-indicator span {
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(180deg, var(--color-accent-light), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {

    0%,
    100% {
        opacity: 0.3;
        transform: scaleY(0.6);
    }

    50% {
        opacity: 1;
        transform: scaleY(1);
    }
}

/* ── About Section ── */
.about-content {
    padding-bottom: 2rem;
}

.about-stats {
    display: flex;
    gap: 3rem;
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    opacity: 0;
    transform: translateY(10px);
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-white);
    line-height: 1;
}

.stat-label {
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

/* ── Services Section — Chat Conversation ── */
.services-content {
    max-width: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#services {
    align-items: center;
    justify-content: center;
    overflow-y: auto;
}

.chat-feed {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    max-width: 620px;
    width: 100%;
    padding: 2rem 0;
}

/* ── Message Row ── */
.chat-msg {
    display: flex;
    align-items: flex-end;
    gap: 0.7rem;
    visibility: hidden;
    transform: translateY(20px) scale(0.92);
}

.msg-user {
    justify-content: flex-end;
}

.msg-entity {
    justify-content: flex-start;
}

/* ── Message Bubble ── */
.msg-bubble {
    width: fit-content;
    max-width: 480px;
    padding: 0.9rem 1.4rem;
    border-radius: 22px;
    font-size: 0.85rem;
    font-weight: 400;
    line-height: 1.6;
}

/* User bubble — dark with thin light outline */
.msg-user .msg-bubble {
    background: rgba(10, 5, 20, 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.92);
    border-bottom-right-radius: 6px;
}

/* Entity bubble — solid white, dark text */
.msg-entity .msg-bubble {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.95);
    color: rgba(0, 0, 0, 0.85);
    border-bottom-left-radius: 6px;
}

/* ── Avatar ── */
.msg-avatar {
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(155, 93, 229, 0.35), rgba(100, 60, 180, 0.2));
    border: 1px solid rgba(155, 93, 229, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.6);
}

/* ── Message Text — Two-layer approach for fixed sizing ── */
.msg-text {
    margin: 0;
    position: relative;
}

/* Invisible sizer — holds full text to lock bubble dimensions */
.msg-sizer {
    visibility: hidden;
    display: block;
    white-space: pre-wrap;
    word-break: break-word;
}

/* Visible typed overlay — absolute on top of sizer */
.msg-typed-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    visibility: visible;
}

/* Typing cursor — accent for user, dark for entity */
.msg-typed-overlay.typing::after {
    content: '|';
    color: var(--color-accent);
    animation: cursorBlink 0.6s steps(2) infinite;
    margin-left: 1px;
}

.msg-entity .msg-typed-overlay.typing::after {
    color: rgba(0, 0, 0, 0.6);
}

@keyframes cursorBlink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* ── Status Badge ── */
.msg-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin-top: 0.5rem;
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: rgba(0, 0, 0, 0.4);
    opacity: 0;
}

.badge-check {
    color: rgba(0, 0, 0, 0.6);
    font-size: 0.75rem;
}

/* ── Contact Section — Journey + Form Layout ── */
#contact {
    align-items: stretch;
    justify-content: stretch;
    padding: 0;
    position: relative;
}

#contact::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(5, 2, 8, 0.35) 0%, rgba(5, 2, 8, 0.55) 35%, rgba(5, 2, 8, 0.85) 65%, rgba(5, 2, 8, 0.9) 100%);
    z-index: 1;
    pointer-events: none;
}

.contact-layout {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 11vw;
    pointer-events: none;
}

/* ── Left Column: Journey ── */
.contact-left {
    flex: 0 0 34%;
    pointer-events: auto;
}

.contact-left-header {
    margin-bottom: 1.8rem;
}

.contact-left-header > *,
.contact-main > * {
    opacity: 0;
    transform: translateY(25px);
}

.contact-eyebrow-accent {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    color: var(--color-accent-light);
    text-transform: uppercase;
    margin-bottom: 0.7rem;
}

.contact-journey-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    line-height: 1.1;
    color: var(--color-white);
    margin-bottom: 1rem;
}

.contact-journey-title em {
    font-family: var(--font-accent);
    font-style: italic;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
}

.contact-journey-desc {
    font-size: 0.88rem;
    font-weight: 300;
    line-height: 1.7;
    color: var(--color-text-muted);
    max-width: 420px;
}

/* ── Contact Timeline ── */
.contact-timeline {
    --ct-node-size: 42px;
    --ct-node-radius: calc(var(--ct-node-size) / 2);
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
}

.ct-line {
    display: none;
}

.ct-milestone {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 1.1rem;
    padding: 0;
    opacity: 0;
    transform: translateY(15px);
    z-index: 2;
    filter: blur(6px);
    isolation: isolate;
}

.ct-milestone:not(:last-child)::before,
.ct-milestone:not(:last-child)::after {
    content: '';
    position: absolute;
    left: var(--ct-node-radius);
    top: var(--ct-node-size);
    bottom: 0;
    width: 1px;
    transform-origin: top center;
    z-index: 0;
}

.ct-milestone:not(:last-child)::before {
    background: linear-gradient(180deg, rgba(199, 125, 255, 0.28), rgba(155, 93, 229, 0.06));
    box-shadow: 0 0 18px rgba(155, 93, 229, 0.12);
}

.ct-milestone:not(:last-child)::after {
    width: 2px;
    left: calc(var(--ct-node-radius) - 1px);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(199, 125, 255, 0.72) 46%, rgba(155, 93, 229, 0.18));
    box-shadow:
        0 0 12px rgba(199, 125, 255, 0.34),
        0 0 28px rgba(155, 93, 229, 0.16);
    transform: scaleY(0);
    transition: transform 0.58s cubic-bezier(0.22, 1, 0.36, 1);
}

.ct-milestone.is-complete:not(:last-child)::after {
    transform: scaleY(1);
}

.ct-milestone.is-active:not(:last-child)::before {
    background: linear-gradient(180deg, rgba(199, 125, 255, 0.36), rgba(155, 93, 229, 0.1));
}

.ct-node {
    width: var(--ct-node-size);
    height: var(--ct-node-size);
    min-width: var(--ct-node-size);
    border-radius: 50%;
    border: 1px solid rgba(155, 93, 229, 0.3);
    background: rgba(10, 5, 25, 0.96);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(199, 125, 255, 0.7);
    transition: all 0.35s ease;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

.ct-node::before {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(199, 125, 255, 0.22), transparent 65%);
    opacity: 0;
    transform: scale(0.6);
    transition: opacity 0.35s ease, transform 0.35s ease;
    z-index: -1;
}

.ct-node svg {
    width: 18px;
    height: 18px;
}

.ct-milestone.is-active .ct-node,
.ct-milestone.is-complete .ct-node {
    color: rgba(255, 255, 255, 0.92);
    border-color: rgba(199, 125, 255, 0.72);
    background: rgba(20, 10, 38, 0.96);
    box-shadow:
        0 0 18px rgba(199, 125, 255, 0.34),
        inset 0 0 18px rgba(255, 255, 255, 0.05);
}

.ct-milestone.is-active .ct-node::before {
    opacity: 1;
    transform: scale(1);
    animation: ctNodePulse 1.35s ease-in-out infinite;
}

.ct-milestone.is-complete .ct-node::before {
    opacity: 0.45;
    transform: scale(0.9);
}

.ct-milestone:hover .ct-node {
    border-color: rgba(199, 125, 255, 0.5);
    box-shadow: 0 0 15px rgba(155, 93, 229, 0.25);
}

@keyframes ctNodePulse {
    0%,
    100% {
        opacity: 0.45;
        transform: scale(0.86);
    }

    50% {
        opacity: 1;
        transform: scale(1.08);
    }
}

.ct-info {
    padding-top: 3px;
    padding-bottom: 0.6rem;
    position: relative;
    z-index: 2;
}

.ct-year {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--color-accent-light);
    margin-bottom: 0.15rem;
}

.ct-title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 0.3rem;
    line-height: 1.2;
}

.ct-desc {
    font-size: 0.8rem;
    font-weight: 300;
    line-height: 1.6;
    color: var(--color-text-muted);
    max-width: 380px;
    opacity: 0;
}

/* ── Connector Stem (per-milestone) ── */
.ct-stem {
    position: absolute;
    left: 21px;
    top: 42px;
    bottom: 0;
    width: 1px;
    background: rgba(155, 93, 229, 0.2);
    transform-origin: top center;
    transform: scaleY(0);
}

/* ── Right Column: Contact CTA (original style) ── */
.contact-main {
    flex: 0 0 auto;
    max-width: 460px;
    pointer-events: auto;
}

/* Eyebrow with line decoration */
.contact-eyebrow {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.contact-eyebrow .eyebrow-line {
    display: inline-block;
    width: 40px;
    height: 1px;
    background: rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
}

/* Title — large heading */
.contact-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: clamp(2.8rem, 5.5vw, 4.5rem);
    line-height: 1.08;
    color: var(--color-white);
    margin-bottom: 2rem;
}

.contact-title em {
    font-family: var(--font-accent);
    font-style: italic;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.75);
}

/* CTA — white outline pill (same as header) */
.contact-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    padding: 0.8rem 1.8rem;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 100px;
    color: var(--color-white);
    background: transparent;
    transition: all 0.35s ease;
    pointer-events: auto;
}

.contact-cta:hover {
    background: #ffffff;
    color: #050208;
    border-color: #ffffff;
    transform: translateY(-2px);
}

.contact-cta .cta-arrow {
    font-size: 1rem;
    transition: transform 0.3s;
}

.contact-cta:hover .cta-arrow {
    transform: translate(2px, -2px);
}

/* ── Site Footer ── */
.site-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 3rem;
    pointer-events: auto;
}

.footer-logo {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.4);
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-link {
    font-size: 0.72rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.4);
    transition: color 0.3s;
}

.footer-link:hover {
    color: var(--color-white);
}

.footer-sep {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.15);
}

@media (max-width: 1024px) {
    .chat-feed {
        max-width: 500px;
    }

    .contact-layout {
        padding: 0 3%;
        gap: 3vw;
    }
}

.mobile-menu-toggle {
    display: none;
}

.mobile-nav-cta {
    display: none;
}

.gyro-modal {
    display: none;
}

@media (max-width: 768px) {
    .section {
        padding: 0 1.5rem;
        padding-bottom: 4rem;
        height: auto;
        min-height: 100vh;
    }

    #site-header {
        padding: 0 1.5rem;
    }

    .desktop-header-cta {
        display: none !important;
    }

    .scroll-indicator {
        display: none !important;
    }

    #main-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(5, 2, 8, 0.95);
        backdrop-filter: blur(20px);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.4s ease;
        z-index: -1;
    }

    #main-nav.menu-open {
        opacity: 1;
        pointer-events: auto;
    }

    .mobile-nav-cta {
        display: inline-flex;
        margin-top: 2rem;
        padding: 0.8rem 2rem;
        font-size: 1.1rem;
    }

    .mobile-menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 40px;
        height: 40px;
        background: transparent;
        border: none;
        cursor: pointer;
        z-index: 100;
        margin-left: 1rem;
    }

    .mobile-menu-toggle span {
        display: block;
        width: 24px;
        height: 2px;
        background: white;
        margin: 3px 0;
        transition: 0.3s;
    }

    .mobile-menu-toggle.menu-open span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .mobile-menu-toggle.menu-open span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.menu-open span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .chat-feed {
        max-width: 100%;
    }

    .msg-bubble {
        max-width: 90%;
    }

    .about-stats {
        gap: 1.5rem;
    }

    .contact-layout {
        flex-direction: column;
        height: 100%;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: calc(var(--header-height) + 1rem + env(safe-area-inset-top)) 1.5rem calc(6rem + env(safe-area-inset-bottom));
        gap: 2rem;
        pointer-events: auto; /* Fix dead zone */
    }

    .contact-left,
    .contact-main {
        max-width: 100%;
        flex-shrink: 0;
    }

    .contact-timeline {
        --ct-node-size: 38px;
        gap: 0;
    }

    .ct-milestone {
        min-height: 120px;
    }

    .contact-title {
        font-size: 2.2rem;
    }

    .site-footer {
        padding: 1rem 1.5rem;
    }

    #cursor-dot,
    #cursor-glow {
        display: none;
    }

    body {
        cursor: auto;
    }

    .gyro-modal {
        display: flex !important;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.7);
        backdrop-filter: blur(10px);
        z-index: 9999;
        align-items: center;
        justify-content: center;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.5s ease;
    }

    .gyro-modal.active {
        opacity: 1 !important;
        pointer-events: auto !important;
    }

    .gyro-modal.hidden {
        opacity: 0 !important;
        pointer-events: none !important;
    }

    .gyro-btn {
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.3);
        color: var(--color-white);
        padding: 15px 30px;
        border-radius: 30px;
        font-family: inherit;
        font-size: 1.1rem;
        cursor: pointer;
        transition: background 0.3s ease;
    }

    .gyro-btn:hover {
        background: rgba(255, 255, 255, 0.2);
    }
}
