/* ═══════════════════════════════════════ */
/*  THE ONYX PROJECT — DESIGN SYSTEM      */
/* ═══════════════════════════════════════ */
:root {
    --onyx-black: #0a0908;
    --onyx-deep: #0f0e0c;
    --onyx-surface: #1a1815;
    --onyx-elevated: #262219;
    --onyx-border: #342f28;
    --onyx-muted: #3e3830;
    /* Section-specific backgrounds (subtle hue shifts) */
    --bg-warm: #0d0b08;              /* About — warm amber tint */
    --bg-cool: #090a0d;              /* Dashboard/Lab — cool blue tint */
    --bg-neutral: #0a0908;           /* Default sections */
    /* 3-tier gold hierarchy */
    --gold-bright: #e8c55a;         /* PRIMARY: CTAs + single most important element */
    --gold: #c9a54e;                /* SECONDARY: headings, icons, labels */
    --gold-muted: #9a8450;          /* TERTIARY: borders, atmospheric, hover states */
    --gold-light: #e0bd58;
    --gold-dim: rgba(201, 165, 78, 0.08);
    --gold-glow: rgba(201, 165, 78, 0.04);
    --gold-hover: rgba(201, 165, 78, 0.12);
    --gold-subtle: rgba(201, 165, 78, 0.04);
    /* Cool secondary accent — data/tools sections */
    --accent-cool: #9ca3af;         /* Steel/silver counterpoint */
    --accent-cool-bright: #b4bcc8;  /* Brighter steel for emphasis */
    --accent-cool-dim: rgba(156, 163, 175, 0.15);
    --accent-cool-border: rgba(156, 163, 175, 0.12);
    --text-primary: #f2efe8;
    --text-secondary: rgba(242, 239, 232, 0.65);
    --text-tertiary: rgba(242, 239, 232, 0.40);
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'DM Sans', system-ui, sans-serif;
    --font-mono: 'IBM Plex Mono', 'Courier New', monospace;
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-quint: cubic-bezier(0.22, 1, 0.36, 1);

    /* ─── Extended design tokens ───────────────────────────────── */

    /* Glassmorphism background stack (dark → light layering) */
    --glass-nav:     rgba(12, 10, 8, 0.85);    /* fixed nav / menus */
    --glass-overlay: rgba(10,  9, 8, 0.72);    /* lighter floating panels */
    --glass-surface: rgba(15, 14, 12, 0.75);   /* cards, side panels */
    --glass-input:   rgba(20, 18, 16, 0.92);   /* input controls */

    /* Elevation shadows (pair with --glow-gold-* for lift effect) */
    --shadow-sm:  0 4px  16px rgba(0, 0, 0, 0.25);
    --shadow-md:  0 8px  32px rgba(0, 0, 0, 0.40);
    --shadow-lg:  0 20px 60px rgba(0, 0, 0, 0.40);
    --shadow-xl:  0 40px 100px rgba(0, 0, 0, 0.55);
    --glow-gold-sm: 0 0 20px rgba(201, 165, 78, 0.08);
    --glow-gold-md: 0 0 40px rgba(201, 165, 78, 0.10);

    /* Status / state indicator colours
       --color-online  = external server pulse (soft pastel green)
       --color-active  = in-app running state  (bright neon green) */
    --color-online:         #6ee7a0;
    --color-online-border:  rgba(110, 231, 160, 0.25);
    --color-online-glow:    rgba(110, 231, 160, 0.50);
    --color-offline:        #d97757;
    --color-offline-border: rgba(217, 119,  87, 0.25);
    --color-offline-glow:   rgba(217, 119,  87, 0.40);
    --color-active:         #4ade80;
    --color-active-glow:    rgba(74,  222, 128, 0.40);

    /* Transition presets */
    --t-fast:   0.2s ease;
    --t-base:   0.3s ease;
    --t-smooth: 0.4s var(--ease-out-expo);
    --t-slow:   0.6s var(--ease-out-expo);
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    background: var(--onyx-black);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    padding-bottom: 0;
}

/* ═══ PAGE LOADER ═══ */
.page-loader {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: var(--onyx-black);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease;
}

.page-loader.hidden { opacity: 0; pointer-events: none; }

.loader-logo {
    width: 50px;
    height: 50px;
    border: 2px solid var(--gold);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    animation: loaderPulse 1.5s ease-in-out infinite;
}

@keyframes loaderPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.15); opacity: 0.7; }
}

/* ═══ CURSOR AMBIENT GLOW ═══ */
.custom-cursor { display: none; } /* dot removed — native cursor preserved */

.cursor-glow {
    display: none;
}

.cursor-glow.hovering {
    display: none;
}

@media (pointer: coarse) {
    .custom-cursor, .cursor-glow { display: none; }
}

::selection { background: var(--gold); color: var(--onyx-black); }

/* Screen-reader only — visually hidden but accessible */
.sr-only {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* Skip to main content — visible on focus */
.skip-to-main {
    position: absolute; top: -40px; left: 0; z-index: 9999;
    background: var(--gold-bright); color: var(--onyx-black);
    padding: 0.5rem 1rem; text-decoration: none; font-weight: 600;
    border-radius: 0 0 4px 0;
}
.skip-to-main:focus { top: 0; outline: 2px solid var(--gold-bright); outline-offset: -2px; }

/* ═══ SCROLL PROGRESS ═══ */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 200; }
.scroll-progress-bar { height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-light)); width: 0%; transition: width 0.1s linear; }

/* ═══ SECTION NAV (desktop vertical sidebar) ═══ */
.section-nav {
    position: fixed; right: 2rem; top: 50%; transform: translateY(-50%);
    z-index: 100; display: flex; flex-direction: column; gap: 0.15rem;
    background: rgba(12, 10, 8, 0.85);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--onyx-border);
    padding: 0.5rem 0.35rem;
}
.nav-dot {
    display: flex; flex-direction: column; align-items: center; gap: 0.2rem;
    text-decoration: none; color: var(--text-tertiary);
    font-size: 0.5rem; font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase;
    padding: 0.55rem 0.5rem; transition: all 0.3s ease;
    min-width: 50px; text-align: center;
    -webkit-tap-highlight-color: transparent;
}
.nav-dot i { font-size: 0.9rem; transition: transform 0.3s ease; }
.nav-dot:hover { color: var(--text-secondary); }
.nav-dot.active { color: var(--gold); background: rgba(200, 164, 90, 0.08); }
.nav-dot.active i { transform: translateY(-1px); }

@media (max-width: 1024px) { .section-nav { right: 1rem; padding: 0.4rem 0.25rem; } .nav-dot { min-width: 44px; font-size: 0.45rem; padding: 0.5rem 0.35rem; } .nav-dot i { font-size: 0.8rem; } }
@media (max-width: 768px) { .section-nav { display: none; } }

/* ═══ BACK TO TOP ═══ */
.back-to-top { position: fixed; bottom: 3rem; right: 3rem; width: 50px; height: 50px; background: var(--gold); color: var(--onyx-black); border: none; cursor: pointer; opacity: 0; transform: translateY(100px); transition: all 0.3s ease; z-index: 99; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; }
.back-to-top.visible { opacity: 1; transform: translateY(0); }
.back-to-top:hover { background: var(--gold-light); transform: translateY(-5px); }
@media (max-width: 768px) { .back-to-top { bottom: 5.5rem; right: 1.5rem; width: 44px; height: 44px; } }

/* ═══ MOBILE BOTTOM NAV ═══ */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 200;
    background: rgba(12, 10, 8, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--onyx-border);
    padding: 0.5rem 0;
    padding-bottom: max(0.5rem, env(safe-area-inset-bottom));
}

@media (max-width: 768px) {
    .mobile-bottom-nav { display: flex; justify-content: space-around; align-items: center; }
    /* Scope bottom padding to portfolio page only — AI page has no bottom nav */
    body:not(.ai-page) { padding-bottom: 70px; }
}

.mob-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    text-decoration: none;
    color: var(--text-tertiary);
    font-size: 0.55rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 0.5rem 0.5rem;
    transition: color 0.3s ease;
    -webkit-tap-highlight-color: transparent;
    flex: 1;
    min-width: 0;
    text-align: center;
}

.mob-nav-item i { font-size: 1.1rem; transition: transform 0.3s ease; }
.mob-nav-item.active { color: var(--gold); }
.mob-nav-item.active i { transform: translateY(-2px); }

/* ═══ GRAIN TEXTURE ═══ */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 50;
    opacity: 0.35;
}

/* ═══ NAVIGATION ═══ */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    padding: 1.5rem 3rem;
    display: flex; align-items: center; justify-content: space-between;
    transition: all 0.7s var(--ease-out-expo);
    background: var(--glass-nav);
    backdrop-filter: blur(24px) saturate(1.3);
    -webkit-backdrop-filter: blur(24px) saturate(1.3);
    border-bottom: 1px solid rgba(201, 165, 78, 0.15);
}
.nav.scrolled {
    padding: 0.8rem 2rem;
    top: 0.75rem;
    left: 2rem; right: 2rem;
    border-radius: 100px;
    background: var(--glass-surface);
    backdrop-filter: blur(24px) saturate(1.3);
    -webkit-backdrop-filter: blur(24px) saturate(1.3);
    border: 1px solid var(--gold-dim);
    border-bottom: 1px solid var(--gold-dim);
    box-shadow:
        var(--shadow-md),
        0 0 0 1px rgba(255, 255, 255, 0.03) inset;
}
.nav.nav-open { z-index: 9999; }
.nav.nav-open.scrolled { 
    backdrop-filter: none; -webkit-backdrop-filter: none;
    background: transparent; border-color: transparent; box-shadow: none;
    top: 0; left: 0; right: 0; border-radius: 0; padding: 1rem 1.5rem;
}

/* Logo */
.nav-logo { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; position: relative; z-index: 120; }
.nav-logo-stone {
    width: 36px; height: 36px;
    background: rgba(201,165,92,0.4);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    display: flex; align-items: center; justify-content: center;
    position: relative;
    transition: transform 0.5s cubic-bezier(0.34,1.56,0.64,1), filter 0.4s ease;
    filter: drop-shadow(0 0 8px rgba(201,165,92,0.3));
    overflow: hidden;
    cursor: pointer;
    animation: gemIdle 6s ease-in-out infinite;
}
@keyframes gemIdle { 0%,100% { filter: drop-shadow(0 0 6px rgba(201,165,92,0.25)); } 50% { filter: drop-shadow(0 0 10px rgba(201,165,92,0.4)); } }
.nav-logo-stone::before {
    content: ''; position: absolute; inset: 1.5px;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    background: conic-gradient(from 0deg at 50% 50%, #38352f 0deg, #38352f 52deg, #2a2824 68deg, #2a2824 112deg, #1e1c18 128deg, #1e1c18 172deg, #131210 188deg, #131210 232deg, #1a1816 248deg, #1a1816 292deg, #302d28 308deg, #302d28 352deg, #38352f 360deg);
}
.nav-logo-stone::after {
    content: ''; position: absolute; top: 1.5px; left: 1.5px;
    width: calc(100% - 3px); height: calc(50% - 1.5px);
    background: linear-gradient(180deg, rgba(255,255,255,0.1) 0%, transparent 100%);
    clip-path: polygon(50% 0%, 100% 50%, 0% 50%);
    transition: opacity 0.3s ease;
}
.nav-logo:hover .nav-logo-stone { filter: drop-shadow(0 0 14px rgba(201,165,92,0.5)); }
.nav-logo:hover .nav-logo-stone::after { background: linear-gradient(180deg, rgba(255,255,255,0.18) 0%, transparent 100%); }
.nav-logo-text {
    font-family: var(--font-display); font-size: 1.4rem; font-weight: 500;
    color: var(--text-primary); letter-spacing: 3px; text-transform: uppercase;
}

/* ── Desktop Links ── */
.nav-links { display: flex; align-items: center; gap: 2.5rem; list-style: none; }
.nav-links a {
    font-size: 0.78rem; font-weight: 500; color: var(--text-secondary);
    text-decoration: none; letter-spacing: 1.5px; text-transform: uppercase;
    position: relative; transition: color 0.3s ease;
}
/* Hover dot indicator */
.nav-links a::after {
    content: ''; position: absolute; bottom: -6px; left: 50%;
    width: 4px; height: 4px; border-radius: 50%;
    background: var(--gold);
    transform: translateX(-50%) scale(0);
    opacity: 0;
    transition: all 0.4s var(--ease-out-expo);
}
.nav-links a:hover { color: var(--text-primary); }
.nav-links a:hover::after { transform: translateX(-50%) scale(1); opacity: 1; }
/* Active section — gold dot persists */
.nav-links a.nav-active { color: var(--gold); }
.nav-links a.nav-active::after { transform: translateX(-50%) scale(1); opacity: 1; }

/* ── Connect CTA (borderless) ── */
.nav-connect-li { margin-left: 0.5rem; }
.nav-cta {
    display: inline-flex !important; align-items: center; gap: 0.5rem;
    padding: 0.55rem 0 !important;
    background: transparent !important;
    border: none !important;
    color: var(--gold) !important;
    font-size: 0.78rem !important;
    font-weight: 600 !important;
    letter-spacing: 2px !important;
    transition: all 0.4s var(--ease-out-expo) !important;
}
.nav-cta-arrow {
    transition: transform 0.4s var(--ease-out-expo);
    opacity: 0.7;
    flex-shrink: 0;
}
.nav-cta:hover {
    color: var(--gold-bright) !important;
}
.nav-cta:hover .nav-cta-arrow {
    transform: translate(3px, -3px);
    opacity: 1;
}
.nav-cta::after { display: none !important; }

/* Mobile menu footer — hidden on desktop */
.mobile-menu-footer { display: none; }

/* ── Hamburger Toggle (3-line traditional) ── */
.nav-toggle {
    display: none; background: none; border: none; cursor: pointer;
    width: 44px; height: 44px; position: relative; z-index: 120;
    -webkit-tap-highlight-color: transparent;
    padding: 0;
}
.nav-toggle span {
    display: block; width: 20px; height: 1.5px;
    background: var(--text-primary);
    border-radius: 1px;
    position: absolute; left: 50%; transform: translateX(-50%);
    transition: all 0.4s var(--ease-out-expo);
    transform-origin: center;
}
.nav-toggle span:nth-child(1) { top: 16px; }
.nav-toggle span:nth-child(2) { top: 22px; }
.nav-toggle span:nth-child(3) { top: 28px; }
/* X state */
.nav-toggle.active span { background: var(--gold); }
.nav-toggle.active span:nth-child(1) { top: 22px; transform: translateX(-50%) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; transform: translateX(-50%) scaleX(0); }
.nav-toggle.active span:nth-child(3) { top: 22px; transform: translateX(-50%) rotate(-45deg); }

/* ═══ HERO ═══ */
.hero {
    min-height: 100vh; min-height: 100dvh;
    display: flex; align-items: center; justify-content: center;
    position: relative; overflow: hidden; padding: 6rem 0;
}

/* Background */
.hero-bg {
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse at 50% 45%, rgba(200,164,90,0.07) 0%, transparent 55%),
        radial-gradient(ellipse at 20% 50%, rgba(200,164,90,0.04) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(200,164,90,0.03) 0%, transparent 40%),
        var(--onyx-black);
}

/* ── Cinematic Entrance ── */
.hero-cinematic {
    position: absolute; inset: 0; z-index: 100;
    background: var(--onyx-black);
    display: flex; align-items: center; justify-content: center;
    pointer-events: none;
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.hero-cinematic.phase-fade { opacity: 0; }

.cinematic-line {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 0; height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    transition: none;
}
.hero-cinematic.phase-line .cinematic-line {
    animation: cineLineExpand 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes cineLineExpand { to { width: min(50vw, 300px); } }

.cinematic-flash {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 0; height: 0; border-radius: 50%;
    background: radial-gradient(circle, rgba(200,164,90,0.5), rgba(200,164,90,0.2) 40%, transparent 70%);
    opacity: 0;
}
.hero-cinematic.phase-flash .cinematic-flash {
    animation: cineFlash 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes cineFlash {
    0%   { width: 0; height: 0; opacity: 0; }
    40%  { width: 500px; height: 500px; opacity: 0.8; }
    100% { width: 900px; height: 900px; opacity: 0; }
}

/* ── Particle Canvas ── */
.hero-particles {
    position: absolute; inset: 0; z-index: 3;
    pointer-events: none;
    opacity: 0;
    transition: opacity 1.5s ease;
}
.hero.entrance-active .hero-particles { opacity: 1; }

/* ── 3D Gem ── */
.hero-gem-wrap {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -55%);
    z-index: 4; width: 420px; height: 420px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 1.2s ease;
}
.hero.entrance-active .hero-gem-wrap { opacity: 1; }

.hero-gem-wrap canvas { width: 100%; height: 100%; display: block; }

/* Static poster that shows until the Three.js gem is ready */
.hero-gem-poster {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; display: block; z-index: 3; pointer-events: none;
}
.hero-gem-wrap.gem-ready .hero-gem-poster {
    opacity: 0; transition: opacity 260ms ease; pointer-events: none;
}

/* ── Orbital Accents (replaces stats) ── */
.hero-orbitals {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -55%);
    width: 600px; height: 600px;
    z-index: 5; pointer-events: none;
    opacity: 0;
    transition: opacity 1.5s ease 0.3s;
}
.hero.entrance-active .hero-orbitals { opacity: 1; }

.orbital-ring {
    position: absolute; top: 50%; left: 50%;
    border-radius: 50%;
    border: 1px solid transparent;
}
.orbital-1 {
    width: 480px; height: 480px;
    transform: translate(-50%, -50%) rotateX(65deg);
    border-color: rgba(200,164,90,0.1);
    border-top-color: rgba(200,164,90,0.25);
    animation: orbitSpin 18s linear infinite;
}
.orbital-2 {
    width: 380px; height: 380px;
    transform: translate(-50%, -50%) rotateX(65deg);
    border-color: rgba(200,164,90,0.06);
    border-bottom-color: rgba(200,164,90,0.18);
    animation: orbitSpin 14s linear infinite reverse;
}
.orbital-3 {
    width: 560px; height: 560px;
    transform: translate(-50%, -50%) rotateX(72deg) rotateZ(30deg);
    border-style: dashed;
    border-color: rgba(200,164,90,0.05);
    animation: orbitSpin 25s linear infinite;
}
@keyframes orbitSpin { to { transform: translate(-50%, -50%) rotateX(65deg) rotate(360deg); } }

/* Preview change: hide the two thin light rings around the gem */
.orbital-1, .orbital-2 {
    display: none !important;
}

/* Remove orbital nodes (thicker dots) */
.orbital-node {
    display: none !important;
}

/* Remove dashed outer ring */
.orbital-3 {
    display: none !important;
}

.orbital-node {
    position: absolute;
    width: 5px; height: 5px;
    background: var(--gold);
    border-radius: 50%;
    box-shadow: 0 0 12px rgba(200,164,90,0.5), 0 0 4px rgba(200,164,90,0.8);
}
.node-1 { top: 8%; left: 50%; animation: nodeFloat 6s ease-in-out infinite; }
.node-2 { top: 30%; right: 5%; animation: nodeFloat 5s ease-in-out infinite 1s; }
.node-3 { bottom: 25%; right: 10%; animation: nodeFloat 7s ease-in-out infinite 2s; }
.node-4 { bottom: 8%; left: 45%; animation: nodeFloat 5.5s ease-in-out infinite 0.5s; }
.node-5 { top: 35%; left: 5%; animation: nodeFloat 6.5s ease-in-out infinite 3s; }
.node-6 { top: 60%; left: 12%; animation: nodeFloat 4.5s ease-in-out infinite 1.5s; }

@keyframes nodeFloat {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.6; }
    50%      { transform: translateY(-8px) scale(1.3); opacity: 1; }
}

/* ── Hero Content ── */
.hero-content {
    position: relative; z-index: 10;
    text-align: center; max-width: 900px; padding: 0 2rem;
}

/* Initially hidden — entrance reveals */
.hero-eyebrow, .hero-title-line span, .hero-subtitle, .hero-actions {
    opacity: 0; transform: translateY(30px);
}

.hero-eyebrow {
    display: inline-flex; align-items: center; gap: 1rem;
    font-size: 0.75rem; font-weight: 600; letter-spacing: 4px;
    text-transform: uppercase; color: var(--gold); margin-bottom: 2.5rem;
}
.hero-eyebrow-line { width: 40px; height: 1px; background: var(--gold); }

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 300; line-height: 1.12; letter-spacing: -2px;
    margin-bottom: 2rem; color: var(--text-primary);
    text-shadow: 0 0 80px rgba(200,164,90,0.15);
}
.hero-title-line { display: block; overflow: hidden; padding-bottom: 0.12em; }
.hero-title-line span { display: inline-block; }
.hero-title em { font-style: italic; color: var(--gold); font-weight: 400; }

.hero-subtitle {
    font-size: 1.1rem; color: var(--text-secondary);
    max-width: 540px; margin: 0 auto 3rem; line-height: 1.8;
}

.hero-actions {
    display: flex; align-items: center; justify-content: center;
    gap: 1.5rem; margin-bottom: 4rem;
}

/* ── Entrance Choreography ── */
.hero.entrance-active .hero-eyebrow {
    animation: heroFadeUp 0.9s var(--ease-out-expo) forwards;
}
.hero.entrance-active .hero-title-line:nth-child(1) span {
    animation: heroTitleReveal 1.1s var(--ease-out-expo) 0.15s forwards;
}
.hero.entrance-active .hero-title-line:nth-child(2) span {
    animation: heroTitleReveal 1.1s var(--ease-out-expo) 0.35s forwards;
}
.hero.entrance-active .hero-subtitle {
    animation: heroFadeUp 0.9s var(--ease-out-expo) 0.55s forwards;
}
.hero.entrance-active .hero-actions {
    animation: heroFadeUp 0.9s var(--ease-out-expo) 0.75s forwards;
}

@keyframes heroTitleReveal {
    from { opacity: 0; transform: translateY(100%); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes heroFadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ═══ BUTTONS ═══ */
.btn-primary { padding: 1rem 2.5rem; background: var(--onyx-black); color: var(--gold); font-family: var(--font-body); font-size: 0.82rem; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; text-decoration: none; border: 1.5px solid var(--gold); cursor: pointer; transition: all 0.4s ease; position: relative; overflow: hidden; }
.btn-primary::before { content: ''; position: absolute; inset: 0; background: var(--gold); transform: translateY(100%); transition: transform 0.4s var(--ease-out-expo); }
.btn-primary:hover::before { transform: translateY(0); }
.btn-primary:hover { color: var(--onyx-black); transform: translateY(-2px); box-shadow: 0 8px 25px rgba(201,165,78,0.2); }
.btn-primary > * { position: relative; z-index: 1; }

.btn-ghost { padding: 1rem 2.5rem; background: transparent; color: var(--text-primary); font-family: var(--font-body); font-size: 0.82rem; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; text-decoration: none; border: 1.5px solid var(--onyx-muted); cursor: pointer; transition: all 0.4s ease; }
.btn-ghost:hover { border-color: var(--gold-muted); color: var(--gold); transform: translateY(-2px); }

/* ═══ SHARED SECTION STYLES ═══ */
.section { padding: 8rem 3rem; position: relative; }
.section-label { display: flex; align-items: center; gap: 1rem; font-size: 0.7rem; font-weight: 600; letter-spacing: 3px; text-transform: uppercase; color: var(--gold); margin-bottom: 1.5rem; }
.section-label::before { content: ''; width: 30px; height: 1px; background: var(--gold-muted); }
.section-title { font-family: var(--font-display); font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 300; line-height: 1.2; letter-spacing: -1px; margin-bottom: 1.5rem; color: var(--text-primary); }
.section-title em { font-style: italic; color: var(--gold); font-weight: 400; }
.section-desc { font-size: 1rem; color: var(--text-secondary); max-width: 600px; line-height: 1.8; margin-bottom: 1rem; }

/* Section transition gradients handled via ::after pseudo-elements */

/* About → Work: warm dissolve into darkness */
.about::after {
    content: ''; position: absolute; bottom: 0; left: 0; right: 0;
    height: 150px; z-index: 3; pointer-events: none;
    background: linear-gradient(180deg, transparent 0%, var(--onyx-black) 100%);
}

/* ═══ ABOUT SECTION ═══ */
.about {
    background: var(--bg-warm);
    position: relative; overflow: hidden;
}

/* ── Mesh Gradient Canvas ── */
.about-mesh {
    position: absolute; inset: 0; z-index: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 2s ease;
}
.about.mesh-active .about-mesh { opacity: 1; }

/* Split layout: content LEFT, portrait RIGHT */
.about-split {
    position: relative; z-index: 2;
    max-width: 1200px; margin: 0 auto;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 5rem; align-items: start;
}

.about-content { padding-top: 0.5rem; }

.about-bio {
    font-size: 1.1rem; color: var(--text-secondary);
    line-height: 1.85; margin-bottom: 3rem; max-width: 520px;
}

/* ── Journey Timeline ── */
.about-timeline {
    position: relative; padding-left: 2.5rem; margin-bottom: 3rem;
}
.timeline-line {
    position: absolute; left: 14px; top: 0; bottom: 0;
    width: 1px; background: var(--onyx-border); overflow: visible;
}
.timeline-energy {
    position: absolute; left: 0; top: -20px;
    width: 1px; height: 40px;
    background: linear-gradient(180deg, transparent, var(--gold), rgba(200,164,90,0.6), transparent);
    box-shadow: 0 0 8px rgba(200,164,90,0.4), 0 0 20px rgba(200,164,90,0.15);
    opacity: 0; will-change: transform;
}
.timeline-energy.active {
    animation: energyTravel 1.8s var(--ease-out-expo) forwards;
}
@keyframes energyTravel {
    0%   { top: -40px; opacity: 0; }
    10%  { opacity: 1; }
    90%  { opacity: 1; }
    100% { top: calc(100% + 20px); opacity: 0; }
}
.timeline-line.energized {
    background: linear-gradient(180deg, var(--gold), var(--gold) 70%, var(--onyx-border));
    transition: background 1.2s ease 0.6s;
}

.timeline-node {
    position: relative; padding: 0 0 2.5rem 1.5rem;
    opacity: 0; transform: translateX(-15px);
    transition: opacity 0.6s var(--ease-out-expo), transform 0.6s var(--ease-out-expo);
}
.revealed .timeline-node:nth-child(2) { opacity: 1; transform: translateX(0); transition-delay: 0.15s; }
.revealed .timeline-node:nth-child(3) { opacity: 1; transform: translateX(0); transition-delay: 0.3s; }
.revealed .timeline-node:nth-child(4) { opacity: 1; transform: translateX(0); transition-delay: 0.45s; }
.revealed .timeline-node:nth-child(5) { opacity: 1; transform: translateX(0); transition-delay: 0.6s; }

.node-marker {
    position: absolute; left: -1.5rem; top: 0;
    width: 30px; height: 30px;
    background: var(--onyx-surface); border: 2px solid var(--onyx-border);
    display: flex; align-items: center; justify-content: center;
    transition: all 0.4s ease;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}
.node-marker i { font-size: 0.65rem; color: var(--gold); transition: all 0.3s ease; }
.node-marker-active { background: var(--gold); border-color: var(--gold); animation: nodeGlow 2s ease-in-out infinite; }
.node-marker-active i { color: var(--onyx-black); }
@keyframes nodeGlow { 0%, 100% { box-shadow: 0 0 0 0 rgba(200,164,90,0.3); } 50% { box-shadow: 0 0 15px 5px rgba(200,164,90,0.15); } }

.timeline-node:hover .node-marker:not(.node-marker-active) { background: var(--gold); border-color: var(--gold); }
.timeline-node:hover .node-marker:not(.node-marker-active) i { color: var(--onyx-black); }
.timeline-node.node-activated .node-marker:not(.node-marker-active) {
    border-color: rgba(200,164,90,0.4);
    animation: nodeActivate 0.5s var(--ease-out-expo);
}
@keyframes nodeActivate { 0% { transform: scale(1); } 50% { transform: scale(1.25); box-shadow: 0 0 15px rgba(200,164,90,0.3); } 100% { transform: scale(1); } }

.node-content h4 { font-family: var(--font-display); font-size: 1.15rem; font-weight: 400; color: var(--text-primary); margin-bottom: 0.5rem; transition: color 0.3s ease; }
.timeline-node:hover .node-content h4 { color: var(--gold); }
.node-content p { font-size: 0.82rem; color: var(--text-tertiary); line-height: 1.5; }

.node-list { list-style: none; padding: 0; margin: 0; }
.node-list li {
    font-size: 0.85rem; color: var(--text-secondary); line-height: 1.6;
    padding: 0.25rem 0 0.25rem 1.25rem; position: relative;
}
.node-list li::before { content: '→'; position: absolute; left: 0; color: var(--gold); font-size: 0.75rem; }
.timeline-node:last-child { padding-bottom: 0; }

/* ── Exploring Ticker ── */
.about-exploring {
    margin-bottom: 3rem; padding: 1.25rem 1.5rem;
    background: var(--onyx-surface); border: 1px solid var(--onyx-border);
    border-left: 3px solid var(--gold); max-width: 400px;
}
.exploring-label { font-size: 0.65rem; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; color: var(--gold); margin-bottom: 0.6rem; display: block; }
.exploring-ticker { font-family: 'Courier New', monospace; font-size: 0.95rem; color: var(--text-primary); min-height: 1.5em; }
.ticker-item { display: none; }
.ticker-item.active { display: inline; }
.ticker-cursor { color: var(--gold); animation: cursorBlink 0.8s step-end infinite; margin-left: 1px; font-weight: 300; }
@keyframes cursorBlink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* ── Compact Toolkit Strip ── */
.about-toolkit { margin-bottom: 3rem; }
.toolkit-strip {
    display: flex; flex-wrap: wrap; gap: 0.5rem;
    margin-top: 0.75rem;
}
.toolkit-chip {
    font-size: 0.78rem; color: var(--text-secondary);
    padding: 0.5rem 1rem;
    background: var(--onyx-surface);
    border: 1px solid var(--onyx-border);
    transition: border-color 0.3s ease, color 0.3s ease;
    line-height: 1.4;
}
.toolkit-chip i {
    color: var(--gold); margin-right: 0.4rem; font-size: 0.7rem;
}
.toolkit-chip:hover {
    border-color: var(--gold-muted); color: var(--text-primary);
}

/* Randomization tool styles */
.rand-form { display: grid; gap: 0.5rem; align-items: start; }
.rand-form label { display: block; font-size: 0.85rem; color: var(--text-secondary); }
.rand-form input { width: 100%; padding: 0.5rem 0.6rem; background: var(--onyx-surface); border: 1px solid var(--onyx-border); color: var(--text-primary); border-radius: 6px; }
.rand-actions { display: flex; gap: 0.6rem; margin-top: 0.6rem; }
.rand-preview { margin-top: 0.8rem; max-height: 220px; overflow: auto; background: rgba(255,255,255,0.02); border: 1px solid var(--onyx-border); padding: 0.6rem; border-radius: 6px; font-family: var(--font-mono); font-size: 0.9rem; color: var(--text-primary); }
.rand-preview table { width: 100%; border-collapse: collapse; font-size: 0.82rem; }
.rand-preview th, .rand-preview td { padding: 0.25rem 0.35rem; text-align: left; border-bottom: 1px solid rgba(255,255,255,0.03); }
.rand-preview thead th { color: var(--gold); font-weight: 600; }

/* ── About CTA Row ── */
.about-cta-row { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ── Cinematic Portrait ── */
.about-portrait { position: sticky; top: 120px; display: flex; flex-direction: column; align-items: center; }

.portrait-frame {
    position: relative; aspect-ratio: 3/4; max-width: 400px; width: 100%;
    overflow: hidden; background: var(--onyx-black);
    box-shadow: 0 40px 80px rgba(0,0,0,0.5), 0 0 0 1px var(--onyx-border);
    transition: box-shadow 0.6s ease;
}
.portrait-frame:hover {
    box-shadow: 0 50px 100px rgba(0,0,0,0.6), 0 0 0 1px rgba(200,164,90,0.3), 0 0 80px rgba(200,164,90,0.08);
}

.portrait-corner { position: absolute; width: 50px; height: 50px; z-index: 3; pointer-events: none; transition: all 0.5s var(--ease-out-expo); }
.corner-tl { top: -1px; left: -1px; border-top: 2px solid var(--gold); border-left: 2px solid var(--gold); }
.corner-tr { top: -1px; right: -1px; border-top: 2px solid var(--gold); border-right: 2px solid var(--gold); }
.corner-bl { bottom: -1px; left: -1px; border-bottom: 2px solid var(--gold); border-left: 2px solid var(--gold); }
.corner-br { bottom: -1px; right: -1px; border-bottom: 2px solid var(--gold); border-right: 2px solid var(--gold); }
.portrait-frame:hover .portrait-corner { width: 65px; height: 65px; }

.portrait-image-wrap { position: relative; width: 100%; height: 100%; overflow: hidden; }
.portrait-image-wrap img {
    width: 100%; height: 100%; object-fit: cover; object-position: center 20%;
    filter: grayscale(25%) contrast(1.05) brightness(0.95);
    transition: filter 0.8s ease;
}
.portrait-frame:hover .portrait-image-wrap img { filter: grayscale(0%) contrast(1) brightness(1); }

.portrait-shine {
    position: absolute; inset: 0;
    background: linear-gradient(115deg, transparent 30%, rgba(200,164,90,0.06) 44%, rgba(200,164,90,0.15) 50%, rgba(200,164,90,0.06) 56%, transparent 70%);
    transform: translateX(-150%); pointer-events: none; z-index: 2;
}
.portrait-frame:hover .portrait-shine { animation: portraitSweep 1.2s ease forwards; }
@keyframes portraitSweep { to { transform: translateX(150%); } }

.portrait-glow {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 80%; height: 80%;
    background: radial-gradient(ellipse, rgba(200,164,90,0.06) 0%, transparent 70%);
    filter: blur(40px); z-index: -1; opacity: 0; transition: opacity 0.8s ease;
}
.portrait-frame:hover .portrait-glow { opacity: 1; }

.portrait-meta { text-align: center; margin-top: 2rem; }
.nameplate-name { display: block; font-family: var(--font-display); font-size: 1.5rem; font-weight: 400; color: var(--text-primary); letter-spacing: 1px; }
.nameplate-title { display: block; font-size: 0.68rem; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; color: var(--gold); margin-top: 0.3rem; }

.portrait-socials { display: flex; justify-content: center; gap: 0.75rem; margin-top: 1.25rem; }
.portrait-socials a {
    width: 42px; height: 42px; display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--onyx-border); color: var(--text-tertiary);
    text-decoration: none; font-size: 0.9rem; transition: all 0.4s ease;
    position: relative; overflow: hidden;
}
.portrait-socials a::before { content: ''; position: absolute; inset: 0; background: var(--gold); transform: translateY(100%); transition: transform 0.4s var(--ease-out-expo); }
.portrait-socials a:hover::before { transform: translateY(0); }
.portrait-socials a:hover { border-color: var(--gold); color: var(--onyx-black); }
.portrait-socials a i { position: relative; z-index: 1; }

/* ═══ HERO DISSOLVE TRANSITION ═══ */
.hero-dissolve {
    position: absolute; bottom: 0; left: 0; right: 0;
    height: 200px; z-index: 20; pointer-events: none;
    background: linear-gradient(180deg, transparent 0%, var(--bg-warm) 100%);
    opacity: 0; transition: opacity 0.3s ease;
}
.hero-dissolve.active { opacity: 1; }

/* ═══ SECTION TRANSITION SYSTEM ═══ */
/* Smooth gradient overlaps between sections */

/* Section entry masks — top gradient fade-ins (alternating backgrounds) */
.carousel-section > .carousel-header,
.carousel-section > .carousel-wrapper { position: relative; z-index: 2; }
.tableau-section::after {
    content: ''; position: absolute; top: -1px; left: 0; right: 0;
    height: 120px; z-index: 1; pointer-events: none;
    background: linear-gradient(180deg, var(--onyx-black) 0%, transparent 100%);
}
.live-lab > * { position: relative; z-index: 1; }
.tableau-section::after { background: linear-gradient(180deg, var(--onyx-black) 0%, transparent 100%); }

/* ═══ SECTION HINTS (scroll breadcrumbs) ═══ */
.section-hint {
    position: absolute; bottom: 2.5rem; left: 50%;
    transform: translateX(-50%); text-align: center; z-index: 5;
    opacity: 0; transition: opacity 0.6s ease;
}
.section-hint.visible { opacity: 1; }
.hint-label {
    display: block; font-size: 0.6rem; font-weight: 600;
    letter-spacing: 2.5px; text-transform: uppercase;
    color: var(--text-tertiary); margin-bottom: 0.5rem;
}
.hint-chevron {
    color: var(--gold); font-size: 0.7rem;
    animation: hintBounce 2s ease-in-out infinite;
}
@keyframes hintBounce {
    0%, 100% { transform: translateY(0); opacity: 0.6; }
    50% { transform: translateY(6px); opacity: 1; }
}

/* ═══ SECTION-SPECIFIC REVEAL CHOREOGRAPHY ═══ */
/* Slide from right (about content) */
.reveal[data-reveal="slide-right"] { transform: translateX(-50px); }
.reveal[data-reveal="slide-right"].revealed { transform: translateX(0); }

/* Slide from left (portrait) */
.reveal[data-reveal="slide-left"] { transform: translateX(50px); }
.reveal[data-reveal="slide-left"].revealed { transform: translateX(0); }

/* Scale up (carousel) */
.reveal[data-reveal="scale"] { transform: scale(0.92); }
.reveal[data-reveal="scale"].revealed { transform: scale(1); }

/* Clip reveal from center */
.reveal[data-reveal="clip"] { clip-path: inset(10% 10% 10% 10%); opacity: 0; transition: opacity 0.9s var(--ease-out-expo), clip-path 1.2s var(--ease-out-expo); }
.reveal[data-reveal="clip"].revealed { clip-path: inset(0% 0% 0% 0%); opacity: 1; }

/* ═══ FEATURED WORK CAROUSEL ═══ */
.carousel-section { background: var(--onyx-black); border-bottom: 1px solid var(--onyx-border); overflow: hidden; position: relative; }
.carousel-section::before { content: ''; position: absolute; inset: 0;
    background:
        linear-gradient(45deg, rgba(200,164,90,0.015) 25%, transparent 25%, transparent 75%, rgba(200,164,90,0.015) 75%),
        linear-gradient(-45deg, rgba(200,164,90,0.015) 25%, transparent 25%, transparent 75%, rgba(200,164,90,0.015) 75%);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at 50% 50%, rgba(0,0,0,0.4) 0%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at 50% 50%, rgba(0,0,0,0.4) 0%, transparent 70%);
    pointer-events: none; z-index: 0; }
.carousel-header { max-width: 1200px; margin: 0 auto 3rem; }

.carousel-wrapper { max-width: 1400px; margin: 0 auto; }

.carousel { position: relative; overflow: hidden; }
.carousel-track { display: flex; transition: transform 0.6s var(--ease-out-expo); will-change: transform; }
.carousel-slide { min-width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; padding: 0 2rem; }

.slide-visual { position: relative; aspect-ratio: 16/10; background: var(--onyx-surface); border: 1px solid var(--onyx-border); overflow: hidden; }
.slide-visual-dark { background: var(--onyx-black); display: flex; align-items: center; justify-content: center; }
.slide-video { width: 100%; height: 100%; object-fit: cover; display: block; }
.slide-video::-webkit-media-controls-panel { background: rgba(12, 10, 8, 0.7); }
@media (pointer: fine) {
    .slide-video {
        cursor: pointer;
    }
    .slide-video::-webkit-media-controls {
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    .slide-video:hover::-webkit-media-controls {
        opacity: 1;
    }
}
@media (max-width: 768px) {
    .slide-video { pointer-events: auto; object-fit: contain; background: var(--onyx-black); }
}
.slide-badge { position: absolute; top: 1rem; right: 1rem; background: rgba(76,175,80,0.1); border: 1px solid rgba(76,175,80,0.3); color: #4caf50; padding: 0.4rem 0.8rem; font-size: 0.65rem; font-weight: 600; letter-spacing: 2px; display: flex; align-items: center; gap: 0.4rem; }
.badge-dot { width: 6px; height: 6px; border-radius: 50%; background: #4caf50; animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

/* Slide placeholder visuals */
.slide-placeholder-viz { text-align: center; color: var(--text-tertiary); padding: 3rem; }

/* ── Auto-formatting slide media (img or video) ── */
.slide-media {
    width: 100%; height: 100%;
    object-fit: cover; object-position: center top;
    display: block;
    transition: filter 0.6s ease;
    filter: brightness(0.95) contrast(1.02);
}
.slide-media:hover { filter: brightness(1) contrast(1); }

/* Fallback if image fails to load — show gold-tinted placeholder */
.slide-media[src=""], .slide-visual:not(:has(.slide-media)) {
    background: var(--onyx-black);
    display: flex; align-items: center; justify-content: center;
}
img.slide-media { background: var(--onyx-surface); }
img.slide-media::before {
    content: ''; display: block; width: 100%; height: 100%;
    background: var(--onyx-black);
}

/* ── Resource thumbnail auto-formatting ── */
.resource-preview { position: relative; overflow: hidden; }
.resource-thumb {
    width: 100%; height: 100%;
    object-fit: cover; object-position: center top;
    display: block; position: absolute; inset: 0;
    z-index: 1;
    transition: transform 0.6s var(--ease-out-expo), filter 0.6s ease;
    filter: brightness(0.9) contrast(1.02);
}
.resource-card:hover .resource-thumb { transform: scale(1.05); filter: brightness(1) contrast(1); }
/* When thumb is present, hide the fallback icon */
.resource-thumb ~ .resource-preview-fallback { display: none; }
/* When thumb fails to load, show fallback icon */
.resource-thumb:not([src]), .resource-thumb[src=""] { display: none; }
.resource-thumb:not([src]) ~ .resource-preview-fallback,
.resource-thumb[src=""] ~ .resource-preview-fallback { display: block; }
/* Format badge sits on top of thumbnail */
.resource-preview .resource-format { position: relative; z-index: 2; }
.slide-placeholder-viz i { font-size: 4rem; color: var(--gold); margin-bottom: 1rem; display: block; }
.slide-placeholder-viz span { display: block; font-size: 1.1rem; color: var(--text-secondary); margin-bottom: 0.5rem; }
.slide-placeholder-viz small { font-size: 0.8rem; color: var(--text-tertiary); }

.slide-content { padding: 1rem 0; }
.slide-number { font-family: var(--font-display); font-size: 3rem; font-weight: 300; color: var(--onyx-border); line-height: 1; margin-bottom: 0.5rem; display: block; }
.slide-title { font-family: var(--font-display); font-size: 2rem; font-weight: 400; color: var(--text-primary); margin-bottom: 1rem; }
.slide-desc { font-size: 0.92rem; color: var(--text-secondary); line-height: 1.8; margin-bottom: 1.5rem; }
.slide-metrics { display: flex; gap: 2rem; margin-bottom: 1.5rem; }
.slide-metric { text-align: center; }
.metric-value { display: block; font-family: var(--font-display); font-size: 1.4rem; font-weight: 500; color: var(--gold); }
.metric-label { font-size: 0.65rem; color: var(--text-tertiary); letter-spacing: 1px; text-transform: uppercase; }
.slide-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1.5rem; }
.tech-tag { font-size: 0.68rem; font-weight: 500; letter-spacing: 1px; text-transform: uppercase; color: var(--text-tertiary); padding: 0.35rem 0.75rem; border: 1px solid var(--onyx-border); transition: all 0.3s ease; }
.tech-tag:hover { border-color: var(--gold-dim); color: var(--text-secondary); }
.slide-cta { display: inline-flex; align-items: center; gap: 0.5rem; }

/* Carousel controls */
.carousel-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 50px; height: 50px; background: rgba(12,10,8,0.8); border: 1px solid var(--onyx-border); color: var(--text-secondary); cursor: pointer; z-index: 5; display: flex; align-items: center; justify-content: center; transition: all 0.3s ease; backdrop-filter: blur(10px); }
.carousel-btn:hover { background: var(--gold); color: var(--onyx-black); border-color: var(--gold); }
.carousel-prev { left: 0; }
.carousel-next { right: 0; }

.carousel-controls { display: flex; flex-direction: column; align-items: center; gap: 1rem; margin-top: 2rem; padding: 0 2rem; }
.carousel-dots { display: flex; gap: 0.75rem; }
.carousel-dot { width: 10px; height: 10px; border: 2px solid var(--onyx-muted); border-radius: 50%; cursor: pointer; transition: all 0.3s ease; background: transparent; padding: 0; }
.carousel-dot.active { background: var(--gold); border-color: var(--gold); transform: scale(1.2); }
.carousel-dot:hover { border-color: var(--gold); }
.carousel-progress { width: 100%; max-width: 300px; height: 2px; background: var(--onyx-border); overflow: hidden; }
.carousel-progress-bar { height: 100%; background: var(--gold); transition: width 0.6s var(--ease-out-expo); }

/* ═══ TABLEAU SECTION — DATA TERMINAL ═══ */
.tableau-section { background: var(--bg-cool); position: relative; overflow: hidden; }
.tableau-container { max-width: 1800px; margin: 0 auto; padding: 0 2rem; position: relative; z-index: 2; }
.tableau-header { text-align: center; max-width: 900px; margin: 0 auto 3rem; }
.tableau-header .section-desc { margin-left: auto; margin-right: auto; }

/* Terminal frame wrapper */
.tableau-wrapper { background: transparent; border: none; padding: 0; }
.tableau-terminal { background: var(--onyx-black); border: 1px solid var(--onyx-border); position: relative; overflow: hidden; }
.tableau-terminal-bar { display: flex; align-items: center; justify-content: space-between; padding: 0.75rem 1.25rem; background: var(--onyx-surface); border-bottom: 1px solid var(--onyx-border); }
.terminal-bar-left { display: flex; align-items: center; gap: 1rem; }
.terminal-dots { display: flex; gap: 0.4rem; }
.terminal-dots span { width: 8px; height: 8px; border-radius: 50%; }
.terminal-dots span:nth-child(1) { background: #ff5f57; }
.terminal-dots span:nth-child(2) { background: #febc2e; }
.terminal-dots span:nth-child(3) { background: #28c840; }
.terminal-bar-title { font-size: 0.7rem; color: var(--accent-cool); letter-spacing: 1.5px; text-transform: uppercase; font-weight: 500; }
.terminal-bar-right { display: flex; align-items: center; gap: 1rem; }
.terminal-status { display: flex; align-items: center; gap: 0.4rem; font-size: 0.65rem; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: #28c840; }
.terminal-status-dot { width: 6px; height: 6px; border-radius: 50%; background: #28c840; animation: pulse 2s ease-in-out infinite; }
.terminal-expand-btn { background: transparent; border: 1px solid var(--onyx-border); color: var(--text-tertiary); width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.3s ease; font-size: 0.7rem; }
.terminal-expand-btn:hover { border-color: var(--gold-muted); color: var(--gold); }

.tableau-embed-container { position: relative; background: var(--onyx-black); width: 100%; height: 1100px; overflow: visible; }
.tableau-embed-container::after { content: ''; position: absolute; inset: 0; box-shadow: inset 0 0 80px rgba(0,0,0,0.4); pointer-events: none; z-index: 2; }
.tableau-embed-container tableau-viz { width: 100% !important; height: 1100px !important; min-height: 1100px !important; display: block; position: relative; z-index: 1; }

.terminal-bar-tips { display: flex; align-items: center; gap: 1.5rem; padding: 0.6rem 1.25rem; background: var(--onyx-surface); border-top: 1px solid var(--onyx-border); }
.terminal-tip { display: flex; align-items: center; gap: 0.5rem; font-size: 0.72rem; color: var(--text-tertiary); }
.terminal-tip i { color: var(--accent-cool); font-size: 0.75rem; }

.tableau-cta { text-align: center; padding: 3rem 0 0; }
.tableau-cta p { font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 1.5rem; }
.tableau-cta .btn-ghost { display: inline-flex; align-items: center; gap: 0.5rem; }

/* ═══ LIVE LAB (TABBED) — OVERHAULED ═══ */
.live-lab {
    background: var(--bg-cool);
    position: relative;
    overflow: hidden;
}

/* Atmospheric background — subtle crosshatch grid */
.lab-grid-bg {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(0deg, rgba(200,164,90,0.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(200,164,90,0.018) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none; z-index: 0;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 0%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 0%, transparent 100%);
}

/* Floating ambient glows */
.lab-glow {
    position: absolute;
    border-radius: 50%;
    pointer-events: none; z-index: 0;
    filter: blur(100px);
}
.lab-glow-1 {
    width: 500px; height: 500px;
    top: 10%; left: -5%;
    background: rgba(200,164,90,0.035);
    animation: labGlowDrift 20s ease-in-out infinite;
}
.lab-glow-2 {
    width: 400px; height: 400px;
    bottom: 5%; right: -5%;
    background: rgba(156,163,175,0.03);
    animation: labGlowDrift 16s ease-in-out infinite reverse;
}
@keyframes labGlowDrift {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(30px, -20px); }
}

.lab-header { max-width: 700px; margin: 0 auto 2.5rem; text-align: center; position: relative; z-index: 2; }

/* ── Tab Bar — sliding indicator ── */
.lab-tabs {
    display: flex; justify-content: center; gap: 0;
    margin-bottom: 3.5rem;
    max-width: 520px; margin-left: auto; margin-right: auto;
    background: var(--onyx-deep);
    border: 1px solid var(--onyx-border);
    padding: 0.35rem;
    position: relative; z-index: 2;
}

.lab-tab-indicator {
    position: absolute;
    top: 0.35rem; left: 0.35rem;
    height: calc(100% - 0.7rem);
    width: calc(50% - 0.35rem);
    background: var(--gold-bright);
    transition: transform 0.45s var(--ease-out-expo);
    pointer-events: none; z-index: 0;
}
.lab-tab-indicator[data-pos="1"] { transform: translateX(100%); }

.lab-tab {
    flex: 1;
    padding: 0.85rem 1.25rem;
    background: transparent;
    border: none;
    color: var(--text-tertiary);
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    cursor: pointer;
    transition: color 0.35s ease;
    display: flex; align-items: center; justify-content: center; gap: 0.5rem;
    position: relative; z-index: 1;
}
.lab-tab:hover { color: var(--text-secondary); }
.lab-tab.active { color: var(--onyx-black); }
.lab-tab i { font-size: 0.8rem; }

/* ── Tab Panels ── */
.lab-panel {
    display: none;
    position: relative; z-index: 2;
}
.lab-panel.active {
    display: block;
    animation: labPanelIn 0.5s var(--ease-out-expo);
}
@keyframes labPanelIn {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Card Grid ── */
.lab-grid {
    max-width: 1200px; margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
    gap: 1.5rem;
}
.lab-grid-single {
    max-width: 680px;
}

/* ── Cards — numbered, striped, with spotlight ── */
.lab-card {
    background: var(--onyx-surface);
    border: 1px solid var(--onyx-border);
    padding: 2.25rem 2rem 2rem;
    transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.4s var(--ease-out-expo);
    overflow: hidden;
    display: flex; flex-direction: column;
    position: relative;
}

/* Gold top stripe */
.lab-card-stripe {
    position: absolute; top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--gold-bright), var(--gold-muted), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}
.lab-card:hover .lab-card-stripe { opacity: 1; }

/* Card number watermark */
.lab-card-num {
    position: absolute; top: 1rem; right: 1.25rem;
    font-family: var(--font-display);
    font-size: 2.8rem; font-weight: 300;
    color: var(--onyx-border);
    line-height: 1;
    pointer-events: none;
    transition: color 0.4s ease;
    z-index: 0;
}
.lab-card:hover .lab-card-num { color: rgba(200,164,90,0.12); }

/* Mouse-tracking spotlight */
.lab-card::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(400px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(200,164,90,0.06) 0%, transparent 60%);
    opacity: 0; transition: opacity 0.3s ease; pointer-events: none; z-index: 0;
}
/* Border glow on hover */
.lab-card::after {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(450px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(200,164,90,0.12) 0%, transparent 40%);
    opacity: 0; transition: opacity 0.3s ease; pointer-events: none; z-index: 0;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude; -webkit-mask-composite: xor; padding: 1px;
}
.lab-card:hover {
    border-color: var(--gold-muted);
    box-shadow: 0 25px 50px rgba(0,0,0,0.25), 0 0 0 1px rgba(200,164,90,0.06);
    transform: translateY(-3px);
}
.lab-card:hover::before, .lab-card:hover::after { opacity: 1; }
.lab-card > * { position: relative; z-index: 1; }

/* ── Card Header — icon + title + badge ── */
.lab-card-header {
    display: flex; align-items: center; gap: 1rem;
    margin-bottom: 1rem;
}
.lab-icon {
    width: 46px; height: 46px;
    background: var(--onyx-deep);
    border: 1px solid rgba(200,164,90,0.2);
    display: flex; align-items: center; justify-content: center;
    transition: all 0.4s var(--ease-out-expo);
    flex-shrink: 0;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}
.lab-card:hover .lab-icon {
    background: var(--gold-bright);
    border-color: var(--gold-bright);
}
.lab-icon i { font-size: 1.1rem; color: var(--gold); transition: color 0.4s ease; }
.lab-card:hover .lab-icon i { color: var(--onyx-black); }

.lab-card-title-group { display: flex; flex-direction: column; gap: 0.3rem; min-width: 0; }
.lab-card h3 {
    font-family: var(--font-display);
    font-size: 1.35rem; font-weight: 400;
    color: var(--text-primary);
    line-height: 1.2;
}
.lab-card p {
    font-size: 0.85rem; color: var(--text-tertiary);
    margin-bottom: 1.5rem; line-height: 1.65;
}

/* ── Status Badges ── */
.lab-card-badge {
    display: inline-flex; align-items: center; gap: 0.35rem;
    font-size: 0.6rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
    padding: 0.2rem 0.6rem;
    width: fit-content;
}
.badge-live {
    color: #4caf50;
    background: rgba(76,175,80,0.08);
    border: 1px solid rgba(76,175,80,0.2);
}
.badge-dot {
    width: 5px; height: 5px;
    border-radius: 50%;
    background: #4caf50;
    animation: badgePulse 2s ease-in-out infinite;
}
@keyframes badgePulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

.badge-instant {
    color: var(--accent-cool-bright);
    background: var(--accent-cool-dim);
    border: 1px solid var(--accent-cool-border);
}

/* ── Tool Inputs — refined ── */
.tool-input-group {
    display: flex; gap: 0.75rem; margin-bottom: 1rem;
}
.lab-card input[type="text"],
.lab-card input[type="number"],
.lab-card textarea {
    flex: 1;
    background: var(--onyx-deep);
    border: 1px solid var(--onyx-border);
    color: var(--text-primary);
    padding: 0.8rem 1rem;
    font-family: var(--font-body);
    font-size: 0.85rem;
    transition: all 0.3s ease;
    width: 100%;
}
.lab-card input:focus, .lab-card textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(200,164,90,0.08);
}
.lab-card textarea {
    min-height: 120px;
    resize: vertical;
    margin-bottom: 0.75rem;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    line-height: 1.7;
}
.tool-btn {
    background: var(--onyx-black);
    color: var(--gold);
    border: 1.5px solid var(--gold);
    padding: 0.8rem 1.75rem;
    font-size: 0.72rem; font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s var(--ease-out-expo);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}
.tool-btn::before {
    content: ''; position: absolute; inset: 0;
    background: var(--gold);
    transform: translateY(100%);
    transition: transform 0.4s var(--ease-out-expo);
}
.tool-btn:hover::before { transform: translateY(0); }
.tool-btn:hover {
    color: var(--onyx-black);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(200,164,90,0.2);
}
.tool-btn > * { position: relative; z-index: 1; }

/* ── Tool Results — enhanced ── */
.tool-result {
    background: var(--onyx-deep);
    border: 1px solid var(--onyx-border);
    border-left: 3px solid var(--gold-muted);
    padding: 1.5rem;
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.8;
    min-height: 60px;
}
.tool-result:empty { display: none; }

/* Skeleton loader */
.skeleton { animation: skeletonPulse 1.5s ease-in-out infinite; }
.skeleton-line { height: 14px; background: var(--onyx-border); margin-bottom: 0.5rem; border-radius: 2px; }
.skeleton-line:nth-child(2) { width: 80%; }
.skeleton-line:nth-child(3) { width: 60%; }
@keyframes skeletonPulse { 0%, 100% { opacity: 0.4; } 50% { opacity: 0.8; } }

/* ── Weather Results ── */
.weather-data { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.weather-item { display: flex; flex-direction: column; padding: 0.5rem 0; }
.weather-label { font-size: 0.65rem; color: var(--accent-cool); letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 0.3rem; font-weight: 600; }
.weather-value { font-size: 1.1rem; color: var(--text-primary); font-weight: 500; }

/* ── Calculator Results ── */
.calc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; }
.calc-item {
    display: flex; justify-content: space-between; align-items: center;
    padding: 0.7rem 0.5rem;
    border-bottom: 1px solid rgba(42,42,42,0.6);
    transition: background 0.2s ease;
}
.calc-item:hover { background: rgba(200,164,90,0.03); }
.calc-label { font-size: 0.7rem; color: var(--accent-cool); text-transform: uppercase; letter-spacing: 1.5px; font-weight: 600; }
.calc-value { font-size: 0.95rem; color: var(--gold); font-weight: 600; font-family: var(--font-mono); }

/* ── Stock Results ── */
.stock-data { display: grid; gap: 1rem; }
.stock-header { display: flex; align-items: baseline; gap: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--onyx-border); }
.stock-symbol { font-family: var(--font-display); font-size: 1.8rem; color: var(--gold); font-weight: 600; }
.stock-name { font-size: 0.85rem; color: var(--text-tertiary); }
.stock-price { font-size: 2.5rem; color: var(--text-primary); font-weight: 300; font-family: var(--font-display); }
.stock-change { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.35rem 0.75rem; font-size: 0.85rem; font-weight: 600; margin-top: 0.5rem; }
.stock-change.positive { background: rgba(76,175,80,0.1); color: #4caf50; }
.stock-change.negative { background: rgba(244,67,54,0.1); color: #f44336; }
.stock-metrics { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; margin-top: 1rem; }
.stock-metric { display: flex; justify-content: space-between; padding: 0.75rem 0.5rem; border-bottom: 1px solid rgba(42,42,42,0.6); }
.stock-metric-label { font-size: 0.7rem; color: var(--accent-cool); text-transform: uppercase; letter-spacing: 1.5px; font-weight: 600; }
.stock-metric-value { font-size: 0.9rem; color: var(--text-primary); font-weight: 600; font-family: var(--font-mono); }
.stock-timestamp { font-size: 0.7rem; color: var(--text-tertiary); text-align: center; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--onyx-border); }

.tech-stack-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
.tech-category { padding: 1rem; background: var(--onyx-deep); border: 1px solid var(--onyx-border); transition: all 0.3s ease; }
.tech-category:hover { border-color: var(--gold-dim); }
.tech-category-label { font-size: 0.7rem; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gold); margin-bottom: 0.5rem; }
.tech-items { font-size: 0.8rem; color: var(--text-secondary); line-height: 1.5; }

/* ── Text Analytics Results ── */
.text-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
    gap: 0.75rem;
    padding: 1.5rem;
    background: var(--onyx-deep);
    border: 1px solid var(--onyx-border);
    border-left: 3px solid var(--gold-muted);
    margin-top: 1rem;
}
.text-stat { text-align: center; padding: 0.5rem 0; }
.text-stat-value { font-size: 1.5rem; color: var(--gold); font-weight: 600; font-family: var(--font-display); }
.text-stat-label { font-size: 0.6rem; color: var(--accent-cool); letter-spacing: 1.5px; text-transform: uppercase; font-weight: 600; margin-top: 0.2rem; }

/* ═══ RESOURCE CARDS ═══ */
.resources-grid { grid-template-columns: repeat(auto-fit, minmax(min(400px, 100%), 1fr)); }
.resource-card {
    background: var(--onyx-surface);
    border: 1px solid var(--onyx-border);
    display: flex; flex-direction: column;
    overflow: hidden;
    transition: all 0.4s var(--ease-out-expo);
}
.resource-card:hover {
    border-color: var(--gold-muted);
    transform: translateY(-3px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.25);
}
.resource-preview {
    padding: 2.5rem;
    background: var(--onyx-black);
    text-align: center;
    position: relative;
    border-bottom: 1px solid var(--onyx-border);
    min-height: 220px;
}
.resource-icon-lg { font-size: 3.5rem; color: var(--gold); margin-bottom: 0.5rem; }
.resource-format {
    display: inline-block;
    background: var(--gold);
    color: var(--onyx-black);
    font-size: 0.6rem; font-weight: 700; letter-spacing: 1.5px;
    padding: 0.25rem 0.65rem;
}
.resource-info { padding: 2rem; flex: 1; display: flex; flex-direction: column; }
.resource-info h3 { font-family: var(--font-display); font-size: 1.3rem; font-weight: 400; color: var(--text-primary); margin-bottom: 0.75rem; }
.resource-info p { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.7; margin-bottom: 1.5rem; flex: 1; }
.resource-meta { display: flex; gap: 1.5rem; margin-bottom: 1.5rem; }
.resource-meta span { font-size: 0.72rem; color: var(--text-tertiary); display: flex; align-items: center; gap: 0.4rem; letter-spacing: 0.5px; }
.resource-meta i { color: var(--gold); font-size: 0.7rem; }
.resource-dl-btn {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.85rem 1.5rem;
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
    text-decoration: none;
    font-size: 0.72rem; font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    text-align: center; justify-content: center;
}
.resource-dl-btn:hover { background: var(--gold); color: var(--onyx-black); }

/* ═══ LAB → CONNECT TRANSITION ═══ */

/* Lab bottom gradient fade-out */
.live-lab::after {
    content: ''; position: absolute; bottom: 0; left: 0; right: 0;
    height: 120px; z-index: 0; pointer-events: none;
    background: linear-gradient(180deg, transparent 0%, var(--onyx-black) 100%);
}

/* Gold line divider — echoes the footer signature */
.section-break-connect {
    position: relative;
    height: 1px;
    background: var(--onyx-black);
    overflow: visible;
    z-index: 5;
}
.section-break-line {
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 0; height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    transition: none;
}
.section-break-connect.break-revealed .section-break-line {
    animation: breakLineDraw 1.2s var(--ease-out-expo) forwards;
}
@keyframes breakLineDraw {
    to { width: min(400px, 60vw); }
}

/* ═══ CTA SECTION — VISUAL CRESCENDO ═══ */
.cta-section { padding: 12rem 3rem 10rem; background: var(--onyx-black); text-align: center; position: relative; overflow: hidden; }
.cta-section::before { content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 900px; height: 900px; background: radial-gradient(circle, rgba(200,164,90,0.08) 0%, rgba(200,164,90,0.03) 30%, transparent 55%); pointer-events: none; animation: ctaPulse 6s ease-in-out infinite; }
@keyframes ctaPulse { 0%, 100% { opacity: 0.7; transform: translate(-50%, -50%) scale(1); } 50% { opacity: 1; transform: translate(-50%, -50%) scale(1.15); } }
.cta-section::after { content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 140px; height: 140px; background: transparent; border: 1px solid rgba(200,164,90,0.06); clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%); pointer-events: none; animation: gemGhost 12s linear infinite; }
@keyframes gemGhost { from { transform: translate(-50%, -50%) rotate(0deg); } to { transform: translate(-50%, -50%) rotate(360deg); } }
.cta-inner { position: relative; z-index: 2; max-width: 800px; margin: 0 auto; }
.cta-title { font-family: var(--font-display); font-size: clamp(3rem, 6vw, 5rem); font-weight: 300; line-height: 1.1; letter-spacing: -2px; margin-bottom: 2rem; }
.cta-desc { font-size: 1.15rem; color: var(--text-secondary); line-height: 1.8; margin-bottom: 3.5rem; max-width: 560px; margin-left: auto; margin-right: auto; }
.cta-actions { display: flex; align-items: center; justify-content: center; gap: 1.5rem; flex-wrap: wrap; margin-top: 2.5rem; }

/* ═══ ABOUT — ENHANCEMENTS ═══ */

/* ═══ CAROUSEL — CINEMA ═══ */

/* Active slide glow edge */
.slide-visual {
    position: relative;
}
.slide-visual::after {
    content: ''; position: absolute; inset: -1px;
    border: 1px solid transparent;
    opacity: 0;
    transition: opacity 0.6s ease, border-color 0.6s ease;
    pointer-events: none;
    box-shadow: inset 0 0 30px rgba(200,164,90,0.08);
}
.carousel-slide .slide-visual::after {
    opacity: 1;
    border-color: rgba(200,164,90,0.2);
    box-shadow: inset 0 0 40px rgba(200,164,90,0.06), 0 0 30px rgba(200,164,90,0.05);
}

/* Slide number watermark treatment */
.slide-number {
    position: relative;
    background: linear-gradient(180deg, var(--onyx-border) 0%, rgba(42,42,42,0.3) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Carousel countdown bar — see Enhancement Layer for glow dot */

/* Tech tags glow on hover */
.tech-tag {
    position: relative;
}
.tech-tag:hover {
    border-color: rgba(200,164,90,0.3);
    color: var(--gold);
    box-shadow: 0 0 15px rgba(200,164,90,0.08);
    text-shadow: 0 0 8px rgba(200,164,90,0.2);
}

/* ═══ TABLEAU — DATA MATRIX ═══ */

/* Dot grid background */
.tableau-dot-grid {
    position: absolute; inset: 0; z-index: 0;
    background-image:
        radial-gradient(circle, rgba(156,163,175,0.07) 1px, transparent 1px);
    background-size: 30px 30px;
    mask-image: radial-gradient(ellipse at 50% 30%, rgba(0,0,0,0.5) 0%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at 50% 30%, rgba(0,0,0,0.5) 0%, transparent 70%);
    pointer-events: none;
}

/* Scan-line sweep */
.tableau-scanline {
    position: absolute; inset: 0; z-index: 1;
    overflow: hidden; pointer-events: none;
}
.tableau-scanline::after {
    content: ''; position: absolute;
    left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(156,163,175,0.2), rgba(156,163,175,0.35), rgba(156,163,175,0.2), transparent);
    box-shadow: 0 0 15px rgba(156,163,175,0.12);
    animation: scanLine 8s ease-in-out infinite;
}
@keyframes scanLine {
    0%   { top: -2px; opacity: 0; }
    5%   { opacity: 1; }
    95%  { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

/* Lab icon pop on hover */
.lab-card:hover .lab-icon i {
    animation: iconPop 0.4s var(--ease-out-expo);
}
@keyframes iconPop {
    0%   { transform: scale(1) rotate(0deg); }
    50%  { transform: scale(1.15) rotate(-8deg); }
    100% { transform: scale(1) rotate(0deg); }
}

/* Tab bar positioning for indicator */
.lab-tabs {
    position: relative;
}
.lab-tab {
    position: relative; z-index: 1;
}

/* Resource card hover glow */
.resource-card {
    position: relative;
}
.resource-card::after {
    content: ''; position: absolute; inset: 0;
    box-shadow: inset 0 0 0 1px transparent;
    transition: box-shadow 0.4s ease;
    pointer-events: none;
}
.resource-card:hover::after {
    box-shadow: inset 0 0 30px rgba(200,164,90,0.05), 0 0 25px rgba(200,164,90,0.04);
}

/* ═══ CONNECT — SIGNAL BEACON ═══ */

/* Radiating rings */
.cta-rings {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none; z-index: 0;
}
.cta-ring {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 1px solid rgba(200,164,90,0.06);
}
.cta-ring-1 {
    width: 300px; height: 300px;
    animation: ctaRingPulse 6s ease-out infinite;
}
.cta-ring-2 {
    width: 300px; height: 300px;
    animation: ctaRingPulse 6s ease-out infinite 1.5s;
}
.cta-ring-3 {
    width: 300px; height: 300px;
    animation: ctaRingPulse 6s ease-out infinite 3s;
}
.cta-ring-4 {
    width: 300px; height: 300px;
    animation: ctaRingPulse 6s ease-out infinite 4.5s;
}
@keyframes ctaRingPulse {
    0%   { width: 100px; height: 100px; opacity: 0.4; border-color: rgba(200,164,90,0.15); }
    100% { width: 900px; height: 900px; opacity: 0; border-color: rgba(200,164,90,0.0); }
}

/* CTA section enhanced gradient */
.cta-section .cta-inner {
    animation: ctaFadeIn 0.8s var(--ease-out-expo);
}
@keyframes ctaFadeIn { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

/* Button hover ring burst */
.cta-actions .btn-primary,
.cta-actions .btn-ghost {
    position: relative; overflow: hidden;
}
.cta-actions .btn-primary::after,
.cta-actions .btn-ghost::after {
    content: ''; position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 0; height: 0; border-radius: 50%;
    background: rgba(200,164,90,0.1);
    transition: width 0.5s ease, height 0.5s ease, opacity 0.5s ease;
    pointer-events: none;
}
.cta-actions .btn-primary:hover::after,
.cta-actions .btn-ghost:hover::after {
    width: 350px; height: 350px; opacity: 0;
}

/* ═══ FOOTER — GOLD SIGNATURE ═══ */
.footer {
    position: relative;
}
.footer-line {
    position: absolute; top: 0; left: 0;
    width: 0; height: 1px;
    background: linear-gradient(90deg, var(--gold), rgba(200,164,90,0.3), transparent);
    transition: none;
}
.footer.footer-revealed .footer-line {
    animation: footerLineDraw 1.5s var(--ease-out-expo) forwards;
}
@keyframes footerLineDraw { to { width: 100%; } }

/* Social link expanding ring */
.footer-links a {
    position: relative; display: inline-flex;
    align-items: center; justify-content: center;
    width: 40px; height: 40px;
}
.footer-links a::before {
    content: ''; position: absolute;
    inset: 0; border-radius: 50%;
    border: 1px solid transparent;
    transform: scale(0.8);
    transition: all 0.4s var(--ease-out-expo);
}
.footer-links a:hover::before {
    border-color: rgba(200,164,90,0.3);
    transform: scale(1.4);
    opacity: 0;
}

/* Success flash enhancement */
.success-flash {
    animation: successRing 0.6s var(--ease-out-expo);
}
@keyframes successRing {
    0%   { box-shadow: 0 0 0 0 rgba(200,164,90,0.4); }
    100% { box-shadow: 0 0 0 12px rgba(200,164,90,0); }
}

/* ═══ SECTION DIVIDER ACCENTS ═══ */
/* Replaced by gradient transition system */


/* ═══ MODAL ═══ */
.modal { position: fixed; inset: 0; z-index: 1000; display: none; align-items: center; justify-content: center; padding: 2rem; }
.modal.active { display: flex; }
.modal-overlay { position: absolute; inset: 0; background: rgba(12,10,8,0.95); backdrop-filter: blur(10px); animation: fadeIn 0.3s ease; }
.modal-content { position: relative; z-index: 2; background: var(--onyx-surface); border: 1px solid var(--onyx-border); max-width: 900px; width: 100%; max-height: 80vh; overflow-y: auto; animation: slideUp 0.4s var(--ease-out-expo); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }
.modal-close { position: absolute; top: 2rem; right: 2rem; background: var(--onyx-deep); border: 1px solid var(--onyx-border); color: var(--text-secondary); width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.3s ease; z-index: 3; }
.modal-close:hover { background: var(--gold); border-color: var(--gold); color: var(--onyx-black); }
.modal-body { padding: 4rem; }
.modal-title { font-family: var(--font-display); font-size: 2.5rem; font-weight: 300; color: var(--text-primary); margin-bottom: 1rem; }
.modal-subtitle { font-size: 1rem; color: var(--text-secondary); line-height: 1.8; }
.modal-section { margin: 2rem 0; }
.modal-section h4 { font-family: var(--font-display); font-size: 1.3rem; color: var(--gold); margin-bottom: 1rem; }
.modal-list { list-style: none; padding: 0; }
.modal-list li { padding: 0.75rem 0 0.75rem 1.5rem; position: relative; color: var(--text-secondary); line-height: 1.8; }
.modal-list li::before { content: '→'; position: absolute; left: 0; color: var(--gold); }

/* ═══ FOOTER ═══ */
.footer { padding: 3rem; border-top: 1px solid var(--onyx-border); display: flex; align-items: center; justify-content: space-between; }
.footer-left { font-size: 0.78rem; color: var(--text-tertiary); }
.footer-links { display: flex; gap: 2rem; }
.footer-links a { font-size: 0.85rem; color: var(--text-tertiary); text-decoration: none; transition: color 0.3s ease; }
.footer-links a:hover { color: var(--gold); }

/* ═══ SCROLL REVEAL ═══ */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.9s var(--ease-out-expo), transform 0.9s var(--ease-out-expo); }
.reveal.revealed { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* ═══════════════════════════════════════════ */
/*  ENHANCEMENT LAYER — 5 SYSTEMS            */
/* ═══════════════════════════════════════════ */

/* Carousel progress bar — travelling glow */
.carousel-progress-bar {
    position: relative;
}
.carousel-progress-bar::after {
    content: '';
    position: absolute;
    right: 0;
    top: -2px;
    width: 20px;
    height: 6px;
    background: var(--gold-bright);
    border-radius: 3px;
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.5), 0 0 4px rgba(212, 175, 55, 0.8);
    opacity: 1;
}

/* Carousel dot active pulse */
.carousel-dot.active {
    animation: dotActivePulse 2s ease-in-out infinite;
}
@keyframes dotActivePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(200, 164, 90, 0.4); }
    50% { box-shadow: 0 0 0 6px rgba(200, 164, 90, 0); }
}

/* ── SCROLL-LINKED OVERRIDES ── */
/* Disable old binary reveal on elements that ScrollEngine handles */
.section-title,
.section-desc,
.section-label,
.cta-title,
.cta-desc,
.about-bio {
    will-change: opacity, transform;
}

/* Ensure sections have relative positioning */
.carousel-section,
.tableau-section,
.live-lab,
.cta-section {
    position: relative;
    overflow: hidden;
}

/* ── TOOL RESULT ANIMATION HELPERS ── */
.tool-result,
.text-stats {
    will-change: max-height, opacity;
}

/* ═══ REDUCED MOTION ═══ */
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; } }

/* ═══ TOUCH TARGETS ═══ */
.btn-primary, .btn-ghost, .tool-btn, .nav-links a, .lab-tab { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
@media (pointer: coarse) {
    .btn-primary, .btn-ghost, .tool-btn, .modal-close, .lab-tab { min-height: 48px; }
    .lab-card input[type="text"], .lab-card input[type="number"], .lab-card textarea { font-size: 16px; }
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 1024px) {
    .section { padding: 6rem 2rem; }
    .nav.scrolled { left: 1.5rem; right: 1.5rem; }
    .nav-links { gap: 1.8rem; }
    .about-split { grid-template-columns: 1fr; gap: 3rem; }
    .about-portrait { position: relative; top: 0; order: -1; }
    .portrait-frame { max-width: 320px; }
    .about-content { max-width: 100%; }
    .carousel-slide { grid-template-columns: 1fr; gap: 2rem; }
    .slide-visual { order: -1; max-height: 350px; }
    .slide-number { font-size: 2rem; }
    .slide-title { font-size: 1.6rem; }
    .carousel-btn { width: 44px; height: 44px; }
    .tableau-embed-container { height: 900px; }
    .tableau-embed-container tableau-viz { height: 900px !important; min-height: 900px !important; }
}

@media (max-width: 768px) {
    html { font-size: 15px; }
    
    /* Nav */
    .nav { padding: 1rem 1.5rem; }
    .nav.scrolled { left: 0; right: 0; top: 0; padding: 0.8rem 1.5rem; border-radius: 0; }
    .nav-logo-text { font-family: var(--font-body); font-size: 1rem; font-weight: 600; letter-spacing: 2.5px; }
    .nav-links { display: none; }
    .nav-toggle { display: block; }

    /* ── Mobile Menu Overlay ── */
    .nav-links.mobile-open {
        display: flex; flex-direction: column;
        position: fixed; top: 0; left: 0; right: 0; bottom: 0;
        background: var(--onyx-black);
        z-index: 110;
        padding: 5.5rem 2.5rem 2.5rem;
        justify-content: flex-start;
        align-items: stretch;
        gap: 0;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        list-style: none;
    }

    /* Ambient glow behind menu */
    .nav-links.mobile-open::before {
        content: ''; position: fixed;
        top: -20%; left: -20%;
        width: 140%; height: 60%;
        background: radial-gradient(ellipse at 50% 0%, rgba(200,164,90,0.06) 0%, transparent 60%);
        pointer-events: none;
        z-index: -1;
    }

    /* Decorative hex — subtle */
    .nav-links.mobile-open::after {
        content: ''; position: fixed;
        bottom: 8%; right: -40px;
        width: 240px; height: 240px;
        border: 1px solid rgba(200,164,90,0.04);
        clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
        pointer-events: none;
        animation: menuHexSpin 40s linear infinite;
    }
    @keyframes menuHexSpin { to { transform: rotate(360deg); } }

    /* ── Menu Items ── */
    .nav-links.mobile-open li {
        width: 100%;
        opacity: 0;
        transform: translateY(20px);
        animation: menuItemReveal 0.6s var(--ease-out-expo) forwards;
    }
    .nav-links.mobile-open li:nth-child(1) { animation-delay: 0.08s; }
    .nav-links.mobile-open li:nth-child(2) { animation-delay: 0.14s; }
    .nav-links.mobile-open li:nth-child(3) { animation-delay: 0.20s; }
    .nav-links.mobile-open li:nth-child(4) { animation-delay: 0.26s; }
    .nav-links.mobile-open li:nth-child(5) { animation-delay: 0.34s; }
    .nav-links.mobile-open li:nth-child(6) { animation-delay: 0.44s; }
    @keyframes menuItemReveal {
        to { opacity: 1; transform: translateY(0); }
    }

    .nav-links.mobile-open li:not(.mobile-menu-footer) {
        border-bottom: 1px solid rgba(255,255,255,0.04);
        position: relative;
    }

    /* Link styling — monospace tech feel, LEFT-ALIGNED */
    .nav-links.mobile-open a:not(.nav-cta) {
        font-family: var(--font-mono);
        font-size: 1rem; font-weight: 400;
        color: var(--text-secondary);
        letter-spacing: 2.5px; text-transform: uppercase;
        text-decoration: none;
        display: flex; align-items: center;
        padding: 1.15rem 0 1.15rem 0;
        position: relative;
        width: 100%;
        transition: color 0.3s ease, padding-left 0.3s var(--ease-out-expo);
    }

    /* Hover — text lights up */
    .nav-links.mobile-open a:not(.nav-cta):hover {
        color: var(--text-primary);
    }

    /* Active section indicator */
    .nav-links.mobile-open a.nav-active:not(.nav-cta) {
        color: var(--gold);
    }
    .nav-links.mobile-open a.nav-active:not(.nav-cta)::before {
        content: '';
        position: absolute; left: 0; top: 50%; transform: translateY(-50%);
        width: 6px; height: 6px;
        background: var(--gold);
        border-radius: 50%;
        box-shadow: 0 0 12px rgba(200,164,90,0.6);
    }

    /* Kill desktop dot in mobile */
    .nav-links.mobile-open a::after { display: none; }

    /* ── Connect CTA (mobile) — matches other links ── */
    .nav-links.mobile-open .nav-connect-li {
        border-bottom: 1px solid rgba(255,255,255,0.04);
    }
    .nav-links.mobile-open .nav-cta {
        font-family: var(--font-mono) !important;
        font-size: 1rem !important;
        font-weight: 400 !important;
        letter-spacing: 2.5px !important;
        text-transform: uppercase !important;
        padding: 1.15rem 0 1.15rem 0 !important;
        margin: 0 !important;
        border: none !important;
        border-bottom: none !important;
        color: var(--gold) !important;
        background: transparent !important;
        width: 100% !important;
        max-width: none !important;
        display: flex !important;
        align-items: center; gap: 0.75rem;
        transition: all 0.4s ease !important;
    }
    .nav-links.mobile-open .nav-cta .nav-cta-arrow {
        width: 16px; height: 16px;
        opacity: 0.7;
    }
    .nav-links.mobile-open .nav-cta:hover,
    .nav-links.mobile-open .nav-cta:active {
        color: var(--gold-bright) !important;
    }

    /* ── Mobile Menu Footer ── */
    .mobile-menu-footer {
        display: flex !important;
        flex-direction: column;
        align-items: flex-start;
        margin-top: auto;
        padding-top: 2.5rem;
        width: 100%;
        border-bottom: none !important;
    }
    .mobile-menu-divider {
        width: 30px; height: 1px;
        background: var(--gold-muted);
        margin-bottom: 1.5rem;
        opacity: 0.5;
    }
    .mobile-menu-socials {
        display: flex; gap: 0.85rem; margin-bottom: 1rem;
    }
    .mobile-menu-socials a {
        width: 42px; height: 42px;
        display: flex !important; align-items: center; justify-content: center;
        border: none;
        border-radius: 0;
        color: var(--text-secondary) !important;
        font-size: 1.05rem !important;
        text-decoration: none;
        transition: all 0.3s ease;
        padding: 0 !important;
        min-height: 42px !important;
        letter-spacing: 0 !important;
        text-transform: none !important;
    }
    .mobile-menu-socials a:hover {
        color: var(--gold) !important;
    }
    .mobile-menu-tagline {
        font-size: 0.55rem; font-weight: 500;
        letter-spacing: 3px; text-transform: uppercase;
        color: var(--text-tertiary);
        opacity: 0.6;
    }

    /* Sections */
    .section { padding: 5rem 1.5rem; }
    .section-title { font-size: clamp(1.8rem, 6vw, 2.5rem); }
    .section-desc { font-size: 0.92rem; }
    
    /* Hero */
    .hero { padding: 5rem 0 4rem; min-height: calc(100dvh - 60px); }
    .hero-content { padding: 0 1.5rem; }
    .hero-subtitle { font-size: 0.95rem; line-height: 1.7; }
    .hero-eyebrow { font-size: 0.65rem; letter-spacing: 3px; }
    .hero-actions { flex-direction: column; align-items: center; }
    .hero-gem-wrap { width: 300px; height: 300px; }
    .hero-orbitals { width: 400px; height: 400px; }
    .orbital-1 { width: 340px; height: 340px; }
    .orbital-2 { width: 260px; height: 260px; }
    .orbital-3 { width: 380px; height: 380px; }
    .btn-primary, .btn-ghost { width: 100%; max-width: 280px; text-align: center; display: flex; justify-content: center; }
    
    /* Carousel */
    .carousel-section { padding: 5rem 0; }
    .carousel-header { padding: 0 1.5rem; margin-bottom: 2rem; }
    .carousel-slide { grid-template-columns: 1fr; gap: 1.5rem; padding: 0 1.5rem; }
    .slide-visual { max-height: 280px; order: -1; }
    .slide-metrics { gap: 1.25rem; flex-wrap: wrap; }
    .slide-cta { width: 100%; max-width: 280px; display: flex; justify-content: center; }
    .carousel-btn { display: none; }

    .carousel-controls { padding: 0 1.5rem; }
    
    /* Tableau */
    .tableau-container { padding: 0 1rem; }
    .tableau-header { margin-bottom: 2rem; }
    .tableau-embed-container { height: 600px; }
    .tableau-embed-container tableau-viz { height: 600px !important; min-height: 600px !important; }
    .terminal-bar-tips { flex-direction: column; gap: 0.5rem; padding: 0.75rem 1rem; }
    .tableau-scanline { display: none; }
    .tableau-dot-grid { background-size: 40px 40px; }
    
    /* About */
    .about-split { gap: 2.5rem; }
    .portrait-frame { max-width: 280px; }
    .about-bio { font-size: 0.98rem; margin-bottom: 2.5rem; }
    .about-timeline { padding-left: 2rem; margin-bottom: 2.5rem; }
    .about-exploring { max-width: 100%; }
    .about-mesh { display: none; }
    .about-cta-row { flex-direction: column; align-items: flex-start; }
    .about-cta-row .btn-primary, .about-cta-row .btn-ghost { width: 100%; max-width: 280px; justify-content: center; }
    .section-hint { display: none; }
    .hero-dissolve { height: 100px; }
    
    /* Lab tabs */
    .lab-tabs { gap: 0; padding: 0.3rem; }
    .lab-tab { padding: 0.7rem 0.6rem; font-size: 0.65rem; letter-spacing: 1px; gap: 0.3rem; }
    .lab-tab span { display: inline; }
    .lab-tab i { font-size: 0.7rem; }
    .lab-tab-indicator { top: 0.3rem; left: 0.3rem; height: calc(100% - 0.6rem); width: calc(50% - 0.3rem); }
    
    /* Lab cards - disable spotlight on mobile */
    .lab-card::before, .lab-card::after { display: none; }
    .lab-card:hover { border-color: var(--gold-muted); transform: none; box-shadow: none; }
    .lab-card-num { font-size: 2.2rem; }
    .lab-glow-1, .lab-glow-2 { display: none; }
    
    /* Lab cards */
    .weather-data { grid-template-columns: 1fr 1fr; }
    .calc-grid { grid-template-columns: 1fr; }
    .stock-metrics { grid-template-columns: 1fr; }
    .stock-price { font-size: 2rem; }
    
    /* CTA */
    .cta-section { padding: 8rem 1.5rem 6rem; }
    
    /* Section transitions */
    .about::after { height: 100px; }
    .live-lab::after { height: 80px; }
    .cta-actions { flex-direction: column; align-items: center; }
    .cta-rings { transform: translate(-50%, -50%) scale(0.6); }
    .cta-section::after { width: 100px; height: 100px; }
    
    /* Modal */
    .modal { padding: 0; }
    .modal-content { max-height: 100dvh; border: none; }
    .modal-body { padding: 3rem 1.5rem 2rem; }
    .modal-close { top: 1rem; right: 1rem; }
    .modal-title { font-size: 1.8rem; }
    
    /* Footer */
    .footer { flex-direction: column; gap: 1.5rem; text-align: center; padding: 2rem 1.5rem; margin-bottom: 0; }
    
    /* Animations */
    .hero.entrance-active .hero-title-line span { animation-duration: 0.8s; }
    .reveal { transition-duration: 0.4s; }
}

@media (max-width: 480px) {
    .section { padding: 4rem 1.25rem; }
    .nav { padding: 1rem 1.25rem; }
    .nav.scrolled { left: 0; right: 0; top: 0; padding: 0.7rem 1.25rem; border-radius: 0; }
    .nav-logo-text { font-size: 0.85rem; letter-spacing: 2px; }
    .nav-logo-stone { width: 30px; height: 30px; }
    
    /* Mobile menu — tighter spacing on small screens */
    .nav-links.mobile-open { padding: 5rem 1.5rem 1.5rem; }
    .nav-links.mobile-open a:not(.nav-cta) { font-size: 0.9rem; padding: 1rem 0; letter-spacing: 2px; }
    .nav-links.mobile-open .nav-cta { font-size: 0.9rem !important; padding: 1rem 0 !important; letter-spacing: 2px !important; }
    .mobile-menu-footer { padding-left: 0; }
    
    .hero { padding: 4rem 0 3rem; }
    .hero-content { padding: 0 1.25rem; }
    .hero-title { letter-spacing: -1px; font-size: clamp(2.5rem, 10vw, 3.5rem); }
    .hero-eyebrow { font-size: 0.6rem; letter-spacing: 2px; gap: 0.5rem; margin-bottom: 2rem; }
    .hero-eyebrow-line { width: 25px; }
    .hero-gem-wrap { width: 220px; height: 220px; }
    .hero-orbitals { width: 280px; height: 280px; }
    .orbital-1 { width: 240px; height: 240px; }
    .orbital-2 { width: 180px; height: 180px; }
    .orbital-3 { width: 260px; height: 260px; }
    
    /* Carousel */
    .carousel-slide { padding: 0 1.25rem; }
    .slide-visual { max-height: 220px; }
    .slide-number { font-size: 1.5rem; }
    .slide-title { font-size: 1.3rem; }
    .slide-desc { font-size: 0.85rem; }
    .slide-metrics { gap: 0.75rem; flex-wrap: wrap; justify-content: flex-start; }
    .metric-value { font-size: 1.1rem; }
    .metric-label { font-size: 0.58rem; letter-spacing: 0.5px; }
    .slide-tags { gap: 0.3rem; }
    .tech-tag { font-size: 0.6rem; padding: 0.25rem 0.5rem; }
    .slide-badge { top: 0.5rem; right: 0.5rem; padding: 0.25rem 0.5rem; font-size: 0.55rem; }
    .slide-cta { display: flex; justify-content: center; }
    
    /* Tableau */
    .tableau-container { padding: 0 0.5rem; }
    .tableau-embed-container { height: 450px; }
    .tableau-embed-container tableau-viz { height: 450px !important; min-height: 450px !important; }
    .terminal-bar-title { display: none; }
    .terminal-bar-tips { display: none; }
    .tableau-dot-grid { display: none; }
    
    /* About */
    .portrait-frame { max-width: 240px; }
    .portrait-corner { width: 35px; height: 35px; }
    .nameplate-name { font-size: 1.25rem; }
    .about-bio { font-size: 0.92rem; }
    .about-timeline { padding-left: 1.75rem; }
    .timeline-node { padding-left: 1.25rem; }
    .node-marker { width: 26px; height: 26px; left: -1.25rem; }
    .node-content h4 { font-size: 1rem; }
    .about-exploring { padding: 1rem 1.25rem; }
    
    /* Lab */
    .tool-input-group { flex-direction: column; }
    .tool-btn { width: 100%; }
    .lab-card { padding: 1.5rem 1.25rem; }
    .lab-card h3 { font-size: 1.2rem; }
    .lab-card-num { font-size: 1.8rem; top: 0.75rem; right: 1rem; }
    .lab-card-badge { font-size: 0.55rem; padding: 0.15rem 0.5rem; }
    .lab-card-stripe { display: none; }
    .lab-icon { width: 38px; height: 38px; }
    .lab-icon i { font-size: 0.95rem; }
    .lab-grid-bg { display: none; }
    .tech-stack-grid { grid-template-columns: 1fr; }
    .weather-data { grid-template-columns: 1fr; }
    .stock-header { flex-direction: column; gap: 0.25rem; }
    .stock-price { font-size: 1.8rem; }
    
    /* Resources */
    .resource-preview { padding: 1.5rem; min-height: 160px; }
    .resource-icon-lg { font-size: 2.5rem; }
    .resource-info { padding: 1.5rem; }
    
    /* CTA */
    .cta-section { padding: 6rem 1.25rem 5rem; }
    .cta-rings { display: none; }
    .cta-section::after { display: none; }
    
    /* Modal */
    .modal-body { padding: 2.5rem 1.25rem 1.5rem; }
    .modal-title { font-size: 1.5rem; }
}

/* ═══ MINIMAL FOOTER ═══ */
.site-footer {
    position: relative;
    padding: 4rem 2rem 2.5rem;
    text-align: center;
    border-top: 1px solid rgba(200,164,90,0.1);
}
.site-footer-inner {
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: 0 auto;
}
.site-footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    margin-bottom: 0.75rem;
}
.site-footer-gem {
    width: 28px; height: 28px;
    background: linear-gradient(135deg, var(--gold), #a8884a);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    display: flex; align-items: center; justify-content: center;
    position: relative;
}
.site-footer-gem::after {
    content: ''; width: 20px; height: 20px;
    background: var(--onyx-black);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}
.site-footer-name {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(240,236,228,0.8);
}
.site-footer-tagline {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 0.85rem;
    color: rgba(200,164,90,0.5);
    margin-bottom: 1.5rem;
}
.site-footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.75rem;
}
.site-footer-link {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(240,236,228,0.4);
    text-decoration: none;
    padding: 0.45rem 0.9rem;
    border: 1px solid rgba(200,164,90,0.1);
    border-radius: 6px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.site-footer-link:hover {
    color: var(--gold);
    border-color: rgba(200,164,90,0.3);
    background: rgba(200,164,90,0.06);
}
.site-footer-link i { font-size: 0.7rem; }
.site-footer-divider {
    width: 80px; height: 1px;
    margin: 0 auto 1.25rem;
    background: linear-gradient(90deg, transparent, rgba(200,164,90,0.25), transparent);
}
.site-footer-bottom {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 1px;
    color: rgba(240,236,228,0.2);
    text-transform: uppercase;
}
.site-footer-dot { margin: 0 0.4rem; }

@media (max-width: 480px) {
    .site-footer { padding: 3rem 1.25rem 2rem; }
    .site-footer-links { gap: 0.4rem; }
    .site-footer-link { font-size: 0.7rem; padding: 0.4rem 0.7rem; }
}

/* ═══ NOW SECTION ═══ */
.now-section {
    background: var(--onyx-black);
    padding: 5rem 3rem;
    position: relative;
    border-top: 1px solid rgba(200,164,90,0.08);
}
.now-inner {
    max-width: 960px;
    margin: 0 auto;
}
.now-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border: 1px solid var(--onyx-border);
    margin-top: 2rem;
}
.now-item {
    padding: 2rem 2.5rem;
    border-right: 1px solid var(--onyx-border);
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    transition: background 0.3s ease;
}
.now-item:last-child { border-right: none; }
.now-item:hover { background: rgba(200,164,90,0.02); }
.now-item-label {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    font-weight: 500;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--gold-muted);
}
.now-item-value {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}
.now-item-future .now-item-label { color: rgba(200,164,90,0.4); }
.now-item-future .now-item-value { color: var(--text-tertiary); }

@media (max-width: 768px) {
    .now-section { padding: 4rem 1.5rem; }
    .now-grid { grid-template-columns: 1fr; }
    .now-item { border-right: none; border-bottom: 1px solid var(--onyx-border); padding: 1.5rem; }
    .now-item:last-child { border-bottom: none; }
}
@media (max-width: 480px) {
    .now-section { padding: 3.5rem 1.25rem; }
    .now-item { padding: 1.25rem; }
}