/* ============================================
   DESIGN SYSTEM — Mayank Lakhani Portfolio
   Premium Cinematic Dark Mode
   World-Class Background & Depth System
   ============================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Manrope:wght@500;600;700;800&display=swap');

/* ============================================
   CSS CUSTOM PROPERTIES
   ============================================ */
:root {
    /* Color System - Graphite/Blue-tinted Neutrals */
    --color-bg-base: #08090c;
    --color-bg-surface: #0d0f13;
    --color-bg-elevated: #13151a;
    --color-bg-elevated-2: #191c22;
    --color-bg-elevated-3: #1f222a;

    /* Gradient backgrounds */
    --gradient-base: linear-gradient(180deg, #0a0c10 0%, #08090c 50%, #060709 100%);

    /* Border system - layered opacity */
    --color-border: rgba(255, 255, 255, 0.06);
    --color-border-subtle: rgba(255, 255, 255, 0.04);
    --color-border-hover: rgba(255, 255, 255, 0.12);
    --color-border-focus: rgba(255, 255, 255, 0.20);
    --color-border-glow: rgba(255, 255, 255, 0.08);

    /* Text hierarchy */
    --color-text-primary: #f5f5f7;
    --color-text-secondary: #a1a1aa;
    --color-text-muted: #71717a;
    --color-text-ultra-muted: #52525b;

    /* Accent (cool neutral) */
    --color-accent: #9ca3af;
    --color-accent-hover: #d1d5db;

    /* Spotlight colors */
    --spotlight-hero: rgba(120, 130, 150, 0.04);
    --spotlight-mid: rgba(100, 110, 130, 0.025);
    --spotlight-contact: rgba(110, 120, 140, 0.03);

    /* Shadows & Glows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.6);
    --glow-subtle: 0 0 40px rgba(255, 255, 255, 0.02);
    --glow-card: 0 0 60px rgba(255, 255, 255, 0.03);
    --glow-button: 0 0 20px rgba(255, 255, 255, 0.05);
    --glow-button-hover: 0 0 30px rgba(255, 255, 255, 0.08);

    /* Card inner highlights */
    --card-sheen: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, transparent 40%);
    --card-sheen-strong: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, transparent 50%);

    /* Typography */
    --font-heading: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Type Scale */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 2rem;
    --text-4xl: 2.75rem;
    --text-5xl: 3.5rem;

    /* Spacing Scale */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;
    --space-32: 8rem;

    /* Layout */
    --max-width: 1120px;
    --nav-height: 72px;
    --nav-height-compact: 56px;

    /* Radii */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-2xl: 24px;

    /* Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
    --duration-fast: 150ms;
    --duration-base: 220ms;
    --duration-slow: 320ms;
}

/* ============================================
   RESET & BASE
   ============================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--nav-height) + var(--space-8));
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   WORLD-CLASS BACKGROUND SYSTEM
   ============================================ */
body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--color-text-primary);
    background: var(--gradient-base);
    background-color: var(--color-bg-base);
    background-attachment: fixed;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

/* Layer 1: Cinematic spotlights */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        /* Hero spotlight - centered top */
        radial-gradient(ellipse 80% 50% at 50% 10%, var(--spotlight-hero) 0%, transparent 60%),
        /* Mid-page ambient - offset left */
        radial-gradient(ellipse 60% 40% at 30% 55%, var(--spotlight-mid) 0%, transparent 50%),
        /* Contact/footer ambient - bottom center */
        radial-gradient(ellipse 70% 30% at 60% 95%, var(--spotlight-contact) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* Layer 2: Ultra-subtle noise texture */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.018;
    pointer-events: none;
    z-index: 1;
}

/* Layer 3: Vignette overlay */
.vignette {
    position: fixed;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 40%, rgba(0, 0, 0, 0.4) 100%);
    pointer-events: none;
    z-index: 2;
}

/* Main content sits above backgrounds */
main,
.hero,
.section,
nav,
footer,
header {
    position: relative;
    z-index: 10;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--duration-fast) var(--ease-out);
}

ul,
ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* Focus states */
:focus-visible {
    outline: 2px solid var(--color-border-focus);
    outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}

/* ============================================
   SCROLL PROGRESS INDICATOR
   ============================================ */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.7));
    transform-origin: left;
    transform: scaleX(0);
    z-index: 10001;
    transition: transform 50ms linear;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--color-text-primary);
}

h1 {
    font-size: clamp(var(--text-3xl), 6vw, var(--text-5xl));
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.05;
}

h2 {
    font-size: clamp(var(--text-2xl), 3.5vw, var(--text-3xl));
    font-weight: 700;
    letter-spacing: -0.025em;
}

h3 {
    font-size: var(--text-xl);
    font-weight: 600;
    letter-spacing: -0.02em;
}

p {
    color: var(--color-text-secondary);
    line-height: 1.7;
}

.eyebrow {
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-text-muted);
    margin-bottom: var(--space-3);
}

/* ============================================
   LAYOUT
   ============================================ */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.section {
    padding: var(--space-12) 0;
    /* Reduced from space-24 */
    position: relative;
}

/* Section ambient backgrounds */
.section--proof {
    background: radial-gradient(ellipse 100% 60% at 50% 0%, rgba(255, 255, 255, 0.01) 0%, transparent 60%);
}

.section--work {
    background: radial-gradient(ellipse 80% 50% at 50% 50%, rgba(120, 130, 150, 0.02) 0%, transparent 60%);
}

.section--operate {
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.15) 50%, transparent 100%);
}

.section--contact {
    background:
        radial-gradient(ellipse 60% 40% at 50% 80%, rgba(120, 130, 150, 0.03) 0%, transparent 50%),
        linear-gradient(180deg, var(--color-bg-surface) 0%, var(--color-bg-base) 100%);
}

.section-header {
    margin-bottom: var(--space-12);
}

.section-title {
    margin-bottom: var(--space-3);
}

.section-subtitle {
    font-size: var(--text-lg);
    color: var(--color-text-secondary);
    max-width: 560px;
}

/* Section dividers - soft gradient lines */
.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--color-border) 20%, var(--color-border) 80%, transparent 100%);
    margin: var(--space-8) 0;
    /* Reduced from space-20 */
    position: relative;
}

.section-divider::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.005), transparent);
    pointer-events: none;
}

/* Grid System */
.grid {
    display: grid;
    gap: var(--space-6);
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 768px) {

    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: rgba(8, 9, 12, 0.75);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--color-border-subtle);
    z-index: 1000;
    transition: all var(--duration-base) var(--ease-out);
}

.nav.compact {
    height: var(--nav-height-compact);
    background: rgba(8, 9, 12, 0.92);
    border-bottom-color: var(--color-border);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.nav-logo {
    font-family: var(--font-heading);
    font-size: var(--text-base);
    font-weight: 700;
    color: var(--color-text-primary);
    letter-spacing: 0.01em;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: var(--space-8);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-8);
}

.nav-link {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-text-secondary);
    transition: color var(--duration-fast) var(--ease-out);
    position: relative;
}

.nav-link:hover {
    color: var(--color-text-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--color-text-primary);
    transform: scaleX(0);
    transition: transform var(--duration-fast) var(--ease-out);
}

.nav-link:hover::after {
    transform: scaleX(1);
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-5);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-bg-base);
    background: linear-gradient(135deg, #ffffff 0%, #e8e8ec 100%);
    border-radius: var(--radius-lg);
    box-shadow: var(--glow-button), var(--shadow-sm);
    transition: all var(--duration-fast) var(--ease-out);
}

.nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: var(--glow-button-hover), var(--shadow-md);
}

.nav-cta svg {
    width: 14px;
    height: 14px;
    transition: transform var(--duration-fast) var(--ease-out);
}

.nav-cta:hover svg {
    transform: translate(2px, -2px);
}

/* Mobile Nav */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px;
    border-radius: var(--radius-md);
    transition: background var(--duration-fast) var(--ease-out);
}

.nav-toggle:hover {
    background: var(--color-bg-elevated);
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--color-text-primary);
    border-radius: 2px;
    transition: all var(--duration-fast) var(--ease-out);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu Overlay */
.mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(8, 9, 12, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all var(--duration-base) var(--ease-out);
}

.mobile-menu.open {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-inner {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    gap: var(--space-8);
}

.mobile-menu-link {
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    font-weight: 600;
    color: var(--color-text-secondary);
    transition: color var(--duration-fast) var(--ease-out);
}

.mobile-menu-link:hover {
    color: var(--color-text-primary);
}

.mobile-menu-close {
    position: absolute;
    top: var(--space-6);
    right: var(--space-6);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    color: var(--color-text-secondary);
    transition: all var(--duration-fast) var(--ease-out);
}

.mobile-menu-close:hover {
    background: var(--color-bg-elevated);
    color: var(--color-text-primary);
}

@media (max-width: 768px) {

    .nav-links,
    .nav-cta {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .mobile-menu {
        display: block;
    }
}

/* ============================================
   BUTTONS — Premium Treatment
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-4) var(--space-6);
    font-size: var(--text-sm);
    font-weight: 600;
    border-radius: var(--radius-lg);
    transition: all var(--duration-fast) var(--ease-out);
    min-height: 48px;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    color: var(--color-bg-base);
    background: linear-gradient(135deg, #ffffff 0%, #e8e8ec 100%);
    box-shadow: var(--glow-button), var(--shadow-sm);
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(255, 255, 255, 0.2) 50%, transparent 100%);
    opacity: 0;
    transition: opacity var(--duration-fast) var(--ease-out);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--glow-button-hover), var(--shadow-md);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary svg {
    transition: transform var(--duration-fast) var(--ease-out);
}

.btn-primary:hover svg {
    transform: translate(2px, -2px);
}

.btn-secondary {
    color: var(--color-text-primary);
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    border-color: var(--color-border-hover);
    background: var(--color-bg-elevated-2);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-text-secondary);
    transition: all var(--duration-fast) var(--ease-out);
}

.link-arrow:hover {
    color: var(--color-text-primary);
}

.link-arrow svg {
    transition: transform var(--duration-fast) var(--ease-out);
}

.link-arrow:hover svg {
    transform: translateX(4px);
}

/* ============================================
   HERO SECTION — Cinematic Poster
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: calc(var(--nav-height) + var(--space-16));
    padding-bottom: var(--space-20);
    position: relative;
    overflow: hidden;
}

/* Hero dedicated backdrop - strongest spotlight */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 140%;
    height: 100%;
    background:
        radial-gradient(ellipse 60% 45% at 50% 25%, rgba(140, 150, 170, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse 40% 30% at 30% 40%, rgba(100, 110, 130, 0.03) 0%, transparent 40%);
    pointer-events: none;
    z-index: -1;
}

/* Subtle diagonal sweep */
.hero::after {
    content: '';
    position: absolute;
    top: 20%;
    left: -20%;
    width: 60%;
    height: 40%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.01) 0%, transparent 60%);
    pointer-events: none;
    z-index: -1;
    transform: rotate(-10deg);
}

.hero-grid {
    display: block;
    max-width: 800px;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-headline {
    margin-bottom: var(--space-6);
    max-width: 720px;
    text-shadow: 0 2px 40px rgba(0, 0, 0, 0.5);
}

.hero-subhead {
    font-size: var(--text-lg);
    line-height: 1.75;
    margin-bottom: var(--space-8);
    max-width: 640px;
    color: var(--color-text-secondary);
}

.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-4);
    margin-bottom: var(--space-6);
}

.hero-tertiary {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-6);
}

.hero-note {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    max-width: 520px;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .hero {
        min-height: auto;
        padding-top: calc(var(--nav-height) + var(--space-12));
        padding-bottom: var(--space-12);
    }

    .hero-ctas {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-ctas .btn {
        width: 100%;
    }
}

/* ============================================
   PROOF BAR (METRICS) — Premium Tiles
   ============================================ */
.proof-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
}

.metric-card {
    background: var(--color-bg-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all var(--duration-base) var(--ease-out);
    box-shadow: var(--shadow-sm);
}

/* Top sheen highlight */
.metric-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--card-sheen);
    pointer-events: none;
}

/* Top edge glow line */
.metric-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 20%;
    right: 20%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.metric-card:hover {
    border-color: var(--color-border-hover);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md), var(--glow-subtle);
    background: var(--color-bg-elevated);
}

.metric-value {
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: var(--space-1);
    position: relative;
}

.metric-label {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    position: relative;
}

@media (max-width: 768px) {
    .proof-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .proof-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   WORK CARDS — Most Premium Treatment
   ============================================ */
.work-grid {
    display: grid;
    gap: var(--space-6);
}

.work-card {
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    position: relative;
    overflow: hidden;
    transition: all var(--duration-base) var(--ease-out);
    box-shadow: var(--shadow-md);
}

/* Strong top sheen */
.work-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--card-sheen-strong);
    pointer-events: none;
}

/* Glowing top edge */
.work-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
}

.work-card:hover {
    border-color: var(--color-border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg), var(--glow-card);
}

.work-card-header {
    margin-bottom: var(--space-6);
    position: relative;
}

.work-card-title {
    font-size: var(--text-xl);
    margin-bottom: var(--space-2);
}

.work-card-role {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

.work-card-bullets {
    margin-bottom: var(--space-6);
    position: relative;
}

.work-card-bullets li {
    position: relative;
    padding-left: var(--space-6);
    margin-bottom: var(--space-3);
    color: var(--color-text-secondary);
    font-size: var(--text-sm);
    line-height: 1.6;
}

.work-card-bullets li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    background: var(--color-text-muted);
    border-radius: 50%;
}

/* Impact strip - distinct surface */
.work-card-impact {
    background: var(--color-bg-elevated-2);
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--radius-md);
    padding: var(--space-4) var(--space-5);
    margin-bottom: var(--space-6);
    position: relative;
}

.work-card-impact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06), transparent);
}

.work-card-impact-text {
    font-family: var(--font-heading);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-text-primary);
}

.work-card-footer {
    display: flex;
    justify-content: flex-end;
    position: relative;
}

.work-card-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-text-secondary);
    transition: all var(--duration-fast) var(--ease-out);
}

.work-card-link:hover {
    color: var(--color-text-primary);
}

.work-card-link svg {
    transition: transform var(--duration-fast) var(--ease-out);
}

.work-card:hover .work-card-link svg {
    transform: translateX(4px);
}

.section-cta {
    margin-top: var(--space-10);
    text-align: center;
}

/* ============================================
   HOW I OPERATE — Manifesto Card
   ============================================ */
.manifesto-card {
    background: var(--color-bg-surface);
    border: 1px solid var(--color-border);
    border-left: 3px solid var(--color-border-hover);
    border-radius: var(--radius-xl);
    padding: var(--space-10);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.manifesto-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--card-sheen);
    pointer-events: none;
}

.manifesto-intro {
    font-size: var(--text-lg);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-8);
    max-width: 560px;
    position: relative;
}

.manifesto-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4) var(--space-10);
    position: relative;
}

.manifesto-list li {
    position: relative;
    padding-left: var(--space-6);
    color: var(--color-text-secondary);
    font-size: var(--text-base);
    line-height: 1.7;
}

.manifesto-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-text-muted);
    font-size: var(--text-sm);
}

@media (max-width: 768px) {
    .manifesto-list {
        grid-template-columns: 1fr;
    }

    .manifesto-card {
        padding: var(--space-6);
    }
}

/* ============================================
   LEVERAGE TILES
   ============================================ */
.leverage-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
}

.leverage-tile {
    background: var(--color-bg-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    position: relative;
    overflow: hidden;
    transition: all var(--duration-base) var(--ease-out);
    box-shadow: var(--shadow-sm);
}

.leverage-tile::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--card-sheen);
    pointer-events: none;
}

.leverage-tile:hover {
    border-color: var(--color-border-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md), var(--glow-subtle);
}

.leverage-tile h3 {
    font-size: var(--text-base);
    margin-bottom: var(--space-2);
    position: relative;
}

.leverage-tile p {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    line-height: 1.5;
    position: relative;
}

@media (max-width: 768px) {
    .leverage-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   EXPERIENCE — Timeline Style
   ============================================ */
.experience-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
    position: relative;
    padding-left: var(--space-8);
}

/* Vertical timeline line */
.experience-list::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 12px;
    bottom: 12px;
    width: 1px;
    background: linear-gradient(180deg, var(--color-border-hover), var(--color-border), var(--color-border-hover));
}

.experience-card {
    background: var(--color-bg-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    position: relative;
    overflow: hidden;
    transition: all var(--duration-base) var(--ease-out);
    box-shadow: var(--shadow-sm);
}

.experience-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--card-sheen);
    pointer-events: none;
}

/* Timeline node */
.experience-card::after {
    content: '';
    position: absolute;
    left: calc(-1 * var(--space-8) - 5px);
    top: var(--space-6);
    width: 10px;
    height: 10px;
    background: var(--color-bg-elevated-2);
    border: 2px solid var(--color-border-hover);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.05);
}

.experience-card:hover {
    border-color: var(--color-border-hover);
    box-shadow: var(--shadow-md);
}

.experience-card h3 {
    font-size: var(--text-lg);
    margin-bottom: var(--space-1);
}

.experience-role {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin-bottom: var(--space-3);
}

.experience-desc {
    font-size: var(--text-sm);
    line-height: 1.6;
}

/* ============================================
   CONTACT SECTION — Final Premium CTA
   ============================================ */
.contact-section {
    border-top: 1px solid var(--color-border-subtle);
}

.contact-card {
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-2xl);
    padding: var(--space-10);
    max-width: 640px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

/* Strong sheen for elevated card */
.contact-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--card-sheen-strong);
    pointer-events: none;
}

/* Top glow line */
.contact-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 15%;
    right: 15%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
}

.contact-intro {
    font-size: var(--text-lg);
    margin-bottom: var(--space-8);
    position: relative;
}

.contact-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    margin-bottom: var(--space-6);
    position: relative;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-4) var(--space-5);
    background: var(--color-bg-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    transition: all var(--duration-fast) var(--ease-out);
}

.contact-item:hover {
    border-color: var(--color-border-hover);
    background: var(--color-bg-elevated);
    transform: translateX(4px);
}

.contact-icon {
    width: 20px;
    height: 20px;
    color: var(--color-text-muted);
    flex-shrink: 0;
}

.contact-label {
    font-weight: 600;
    color: var(--color-text-primary);
    min-width: 70px;
}

.contact-value {
    flex: 1;
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    word-break: break-all;
}

.contact-value a:hover {
    color: var(--color-text-primary);
}

.copy-btn {
    padding: var(--space-2) var(--space-3);
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--color-text-muted);
    background: var(--color-bg-elevated-2);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    transition: all var(--duration-fast) var(--ease-out);
}

.copy-btn:hover {
    color: var(--color-text-primary);
    border-color: var(--color-border-hover);
    background: var(--color-bg-elevated-3);
}

.copy-btn.copied {
    color: var(--color-text-primary);
    background: rgba(255, 255, 255, 0.1);
}

.contact-note {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    position: relative;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    padding: var(--space-8) 0;
    border-top: 1px solid var(--color-border-subtle);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-copy {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

.back-to-top {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    transition: all var(--duration-fast) var(--ease-out);
}

.back-to-top:hover {
    color: var(--color-text-primary);
}

.back-to-top svg {
    transition: transform var(--duration-fast) var(--ease-out);
}

.back-to-top:hover svg {
    transform: translateY(-2px);
}

/* ============================================
   WORK PAGE STYLES
   ============================================ */
.page-header {
    padding-top: calc(var(--nav-height) + var(--space-16));
    padding-bottom: var(--space-12);
    border-bottom: 1px solid var(--color-border);
    position: relative;
}

/* Header spotlight */
.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse 60% 60% at 50% 30%, rgba(120, 130, 150, 0.04) 0%, transparent 60%);
    pointer-events: none;
}

.page-header-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-8);
    margin-bottom: var(--space-8);
    position: relative;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    transition: color var(--duration-fast) var(--ease-out);
}

.back-link:hover {
    color: var(--color-text-primary);
}

.back-link svg {
    transition: transform var(--duration-fast) var(--ease-out);
}

.back-link:hover svg {
    transform: translateX(-3px);
}

.page-header h1 {
    margin-bottom: var(--space-3);
}

.page-header-subtitle {
    font-size: var(--text-lg);
    margin-bottom: var(--space-8);
    max-width: 560px;
}

/* Impact summary chips */
.impact-summary {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    position: relative;
}

.impact-chip {
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--color-text-secondary);
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
}

/* On This Page Nav (Desktop) - Glassy panel */
.page-nav {
    position: sticky;
    top: calc(var(--nav-height) + var(--space-8));
    margin-left: auto;
    width: 200px;
    padding: var(--space-6);
    background: rgba(13, 15, 19, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    flex-shrink: 0;
    box-shadow: var(--shadow-md);
}

.page-nav::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    background: var(--card-sheen);
    pointer-events: none;
}

.page-nav-title {
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
    margin-bottom: var(--space-4);
    position: relative;
}

.page-nav-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    position: relative;
}

.page-nav-link {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    padding-left: var(--space-3);
    border-left: 2px solid transparent;
    transition: all var(--duration-fast) var(--ease-out);
}

.page-nav-link:hover,
.page-nav-link.active {
    color: var(--color-text-primary);
    border-left-color: var(--color-text-primary);
}

/* Mobile Jump To Dropdown */
.jump-to-dropdown {
    display: none;
    margin-bottom: var(--space-8);
    position: relative;
}

.jump-to-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: var(--space-4);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-text-secondary);
    background: var(--color-bg-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
}

.jump-to-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: var(--space-2);
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all var(--duration-fast) var(--ease-out);
    box-shadow: var(--shadow-lg);
    z-index: 100;
}

.jump-to-menu.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.jump-to-menu a {
    display: block;
    padding: var(--space-3) var(--space-4);
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    border-radius: var(--radius-sm);
    transition: all var(--duration-fast) var(--ease-out);
}

.jump-to-menu a:hover {
    color: var(--color-text-primary);
    background: var(--color-bg-surface);
}

@media (max-width: 1024px) {
    .page-nav {
        display: none;
    }

    .jump-to-dropdown {
        display: block;
    }
}

/* Work Page Layout */
.work-layout {
    display: flex;
    gap: var(--space-12);
    align-items: flex-start;
}

.work-content {
    flex: 1;
    min-width: 0;
}

/* Case Study Cards — Premium Container */
.case-study {
    background: var(--color-bg-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-2xl);
    padding: var(--space-10);
    margin-bottom: var(--space-8);
    scroll-margin-top: calc(var(--nav-height) + var(--space-8));
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.case-study::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--card-sheen);
    pointer-events: none;
}

.case-study::after {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
}

.case-study-header {
    margin-bottom: var(--space-8);
    padding-bottom: var(--space-6);
    border-bottom: 1px solid var(--color-border-subtle);
    position: relative;
}

.case-study-title {
    font-size: var(--text-2xl);
    margin-bottom: var(--space-2);
}

.case-study-meta {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

.case-study-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
    margin-bottom: var(--space-8);
}

.case-study-block {
    position: relative;
}

.case-study-block h4 {
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
    margin-bottom: var(--space-3);
}

.case-study-block p {
    font-size: var(--text-base);
    line-height: 1.7;
}

.case-study-block ul li {
    position: relative;
    padding-left: var(--space-5);
    margin-bottom: var(--space-2);
    font-size: var(--text-base);
    color: var(--color-text-secondary);
    line-height: 1.7;
}

.case-study-block ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 5px;
    height: 5px;
    background: var(--color-text-muted);
    border-radius: 50%;
}

/* Outcome chips - mini metric style */
.outcome-row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    margin-bottom: var(--space-6);
}

.outcome-chip {
    padding: var(--space-3) var(--space-5);
    font-family: var(--font-heading);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-text-primary);
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    position: relative;
    overflow: hidden;
}

.outcome-chip::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
}

.takeaway-box {
    background: var(--color-bg-elevated);
    border-left: 3px solid var(--color-border-hover);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    padding: var(--space-5) var(--space-6);
    position: relative;
}

.takeaway-box h4 {
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
    margin-bottom: var(--space-2);
}

.takeaway-box p {
    font-size: var(--text-base);
    font-style: italic;
    color: var(--color-text-secondary);
}

@media (max-width: 768px) {
    .case-study {
        padding: var(--space-6);
    }

    .case-study-grid {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }
}

/* Micro Wins */
.micro-wins-section {
    margin-top: var(--space-12);
}

.micro-wins-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--space-4);
}

.micro-win {
    padding: var(--space-5);
    background: var(--color-bg-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    transition: all var(--duration-fast) var(--ease-out);
    position: relative;
    overflow: hidden;
}

.micro-win::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--card-sheen);
    pointer-events: none;
}

.micro-win:hover {
    border-color: var(--color-border-hover);
    color: var(--color-text-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Work Footer */
.work-footer {
    padding: var(--space-10) 0;
    border-top: 1px solid var(--color-border);
    margin-top: var(--space-12);
}

.work-footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.work-footer-links {
    display: flex;
    gap: var(--space-6);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    opacity: 0;
    animation: fadeInUp var(--duration-slow) var(--ease-out) forwards;
}

.animate-delay-1 {
    animation-delay: 80ms;
}

.animate-delay-2 {
    animation-delay: 160ms;
}

.animate-delay-3 {
    animation-delay: 240ms;
}

.animate-delay-4 {
    animation-delay: 320ms;
}

.animate-delay-5 {
    animation-delay: 400ms;
}

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity var(--duration-slow) var(--ease-out),
        transform var(--duration-slow) var(--ease-out);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   THREADS EFFECT
   ============================================ */
#threads-container {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: auto;
    /* For mouse interaction */
    opacity: 0.6;
    mix-blend-mode: screen;
    /* Optional: helps blend with dark background */
}

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

/* Ensure Hero content is above threads */
.hero-content {
    position: relative;
    z-index: 2;
    pointer-events: none;
    /* Let clicks pass through if needed, but text needs selection */
}

.hero-content>* {
    pointer-events: auto;
}

.credential-panel {
    z-index: 2;
    position: relative;
}

/* ============================================
   UPDATES FOR CENTERING
   ============================================ */
.nav-inner {
    justify-content: center !important;
}

.hero-grid {
    margin: 0 auto;
    text-align: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-headline,
.hero-subhead,
.hero-note {
    margin-left: auto;
    margin-right: auto;
}

.hero-ctas {
    justify-content: center;
}

.hero-tertiary {
    justify-content: center;
}

.career-highlights {
    max-width: 800px;
    margin: 0;
    text-align: left;
    color: var(--color-text-secondary);
    line-height: 1.8;
    list-style-type: disc;
    padding-left: var(--space-8);
}

.career-highlights li {
    margin-bottom: var(--space-4);
    padding-left: var(--space-2);
}

/* ============================================
   UPDATES FOR 2-COLUMN HERO & MERGED SECTIONS
   ============================================ */

/* Hero layout override (Left align) */
.hero-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: var(--space-12);
    text-align: left !important;
    max-width: var(--max-width);
    margin: 0 auto;
}

.hero-content {
    align-items: flex-start !important;
    text-align: left !important;
}

.hero-headline,
.hero-subhead,
.hero-note {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.hero-ctas,
.hero-tertiary {
    justify-content: flex-start !important;
}

/* Hero Image */
.hero-image-container {
    position: relative;
    display: flex;
    justify-content: center;
    perspective: 1000px;
}

.hero-image-frame {
    width: 100%;
    max-width: 420px;
    height: auto;
    border-radius: var(--radius-2xl);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        0 0 40px rgba(100, 120, 255, 0.1);

}



@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center !important;
        gap: var(--space-8);
    }

    .hero-content {
        align-items: center !important;
        text-align: center !important;
        order: 2;
    }

    .hero-image-container {
        order: 1;
        margin-bottom: var(--space-6);
    }

    .hero-ctas,
    .hero-tertiary {
        justify-content: center !important;
    }

    .hero-headline,
    .hero-subhead {
        margin-left: auto !important;
        margin-right: auto !important;
    }
}