/* ============================================================
   PORTFOLIO DESIGN SYSTEM — COMPLETE
   Base styles + Performance-optimized animations
   ============================================================ */

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

/* ==================== CUSTOM PROPERTIES ==================== */
:root {
    /* ── New design tokens ── */
    --bg:            #0D0D0D;
    --bg-2:          #141414;
    --bg-3:          #1C1C1C;
    --bg-4:          #242424;
    --border:        rgba(255,255,255,0.07);
    --border-mid:    rgba(255,255,255,0.12);
    --border-strong: rgba(255,255,255,0.18);
    --text:          #F0EDE8;
    --text-2:        #8A8A8A;
    --text-3:        #4A4A4A;
    --purple:        #667EEA;
    --purple-glow:   rgba(102,126,234,0.18);
    --orange:        #FF8C42;
    --gold:          #C4953A;
    --font-display:  'Syne', sans-serif;
    --font-mono:     'IBM Plex Mono', monospace;
    --font-body:     'Inter', sans-serif;
    --ease-spring:   cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-smooth:   cubic-bezier(0.25, 0.46, 0.45, 0.94);

    /* ── Legacy aliases (hiring page & case studies) ── */
    --primary-bg:    var(--bg-2);
    --secondary-bg:  var(--bg-3);
    --surface-bg:    var(--bg-4);
    --border-color:  rgba(255,255,255,0.10);
    --text-primary:  var(--text);
    --text-secondary: var(--text-2);
    --accent-orange: var(--orange);
    --accent-purple: var(--purple);

    /* Animation timing */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
    --duration-fast: 150ms;
    --duration-normal: 200ms;
    --duration-slow: 350ms;
}

[data-theme="light"] {
    --bg:            #ffffff;
    --bg-2:          #f5f5f7;
    --bg-3:          #e8e8ea;
    --bg-4:          #d8d8da;
    --border:        rgba(0,0,0,0.08);
    --border-mid:    rgba(0,0,0,0.12);
    --border-strong: rgba(0,0,0,0.18);
    --text:          #1a1a1a;
    --text-2:        #666666;
    --text-3:        #999999;
    --primary-bg:    var(--bg);
    --secondary-bg:  var(--bg-2);
    --surface-bg:    var(--bg-3);
    --border-color:  rgba(0,0,0,0.12);
    --text-primary:  var(--text);
    --text-secondary: var(--text-2);
}

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    transition: background 300ms ease, color 300ms ease;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Subtle noise texture overlay */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
    opacity: 0.032;
    pointer-events: none;
    z-index: 9000;
}


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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInFromLeft {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.85); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

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

.animate-in-delay-1 { animation-delay: 50ms; }
.animate-in-delay-2 { animation-delay: 100ms; }
.animate-in-delay-3 { animation-delay: 150ms; }
.animate-in-delay-4 { animation-delay: 200ms; }
.animate-in-delay-5 { animation-delay: 250ms; }
.animate-in-delay-6 { animation-delay: 300ms; }


/* ==================== NAVIGATION ==================== */
.nav-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: rgba(26, 26, 26, 0.9);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    z-index: 1000;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.nav-logo {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo-icon {
    width: 40px;
    height: 40px;
    background: radial-gradient(85.82% 49.08% at 49.41% 51.35%, #141414 0%, #444148 100%);
    border: 2px solid #FCFCFC;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    transition: transform var(--duration-normal) var(--ease-out-back);
    will-change: transform;
}

.nav-logo:hover .nav-logo-icon {
    transform: rotate(-5deg) scale(1.08);
}

.nav-links {
    display: flex;
    gap: 24px;
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    position: relative;
    padding: 8px 0;
    transition: color var(--duration-fast) ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent-purple);
    border-radius: 1px;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform var(--duration-normal) var(--ease-out-back);
}

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

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

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

.nav-link.active::after {
    transform: scaleX(1);
    background: var(--accent-orange);
}

.theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: var(--surface-bg);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 12px;
    transition: transform var(--duration-normal) var(--ease-out-back),
                background-color var(--duration-fast) ease;
    will-change: transform;
}

.theme-toggle:hover {
    background: var(--border-color);
    transform: scale(1.1) rotate(15deg);
}

.theme-toggle:active {
    transform: scale(0.95);
}


/* ==================== HERO SECTION ==================== */
.hero {
    margin-top: 64px;
    min-height: calc(100vh - 64px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 32px;
}

.hero-content {
    max-width: 900px;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--surface-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 32px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: transform var(--duration-normal) var(--ease-out-back);
    will-change: transform;
}

.hero-badge:hover {
    transform: translateY(-2px);
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-orange);
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

.hero-title {
    font-size: 64px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 48px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: center;
}


/* ==================== BUTTONS — GLASS (OPTIMIZED) ==================== */
.btn-glass {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 28px;
    height: 48px;
    background: linear-gradient(145deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(255, 255, 255, 0.04) 100%);
    color: #FFF;
    font-family: inherit;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    overflow: hidden;
    transition: transform var(--duration-normal) var(--ease-out-back);
    will-change: transform;
    transform: translateZ(0);
}

.btn-glass::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 9px;
    box-shadow: 
        0 8px 24px 0 rgba(0, 0, 0, 0.35),
        0 4px 8px 0 rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: opacity var(--duration-normal) ease;
    pointer-events: none;
    z-index: -1;
}

.btn-glass::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.12) 50%,
        transparent 100%
    );
    transform: translateX(-100%);
    transition: transform var(--duration-slow) var(--ease-out-expo);
    pointer-events: none;
}

.btn-glass:hover {
    transform: translateY(-3px) translateZ(0);
}

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

.btn-glass:hover::after {
    transform: translateX(100%);
}

.btn-glass:active {
    transform: translateY(1px) translateZ(0);
    transition-duration: 50ms;
}

/* Purple glass variant */
.btn-glass-purple {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 28px;
    height: 48px;
    background: linear-gradient(145deg, 
        rgba(102, 126, 234, 0.3) 0%, 
        rgba(102, 126, 234, 0.15) 100%);
    color: #FFF;
    font-family: inherit;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.5px;
    border: 1px solid rgba(102, 126, 234, 0.35);
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    overflow: hidden;
    transition: transform var(--duration-normal) var(--ease-out-back);
    will-change: transform;
    transform: translateZ(0);
}

.btn-glass-purple::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 9px;
    box-shadow: 
        0 8px 28px 0 rgba(102, 126, 234, 0.4),
        0 0 20px 0 rgba(102, 126, 234, 0.25);
    opacity: 0;
    transition: opacity var(--duration-normal) ease;
    pointer-events: none;
    z-index: -1;
}

.btn-glass-purple::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.15) 50%,
        transparent 100%
    );
    transform: translateX(-100%);
    transition: transform var(--duration-slow) var(--ease-out-expo);
    pointer-events: none;
}

.btn-glass-purple:hover {
    transform: translateY(-3px) translateZ(0);
}

.btn-glass-purple:hover::before {
    opacity: 1;
}

.btn-glass-purple:hover::after {
    transform: translateX(100%);
}

.btn-glass-purple:active {
    transform: translateY(1px) translateZ(0);
    transition-duration: 50ms;
}

/* Size variants */
.btn-sm { height: 36px; padding: 0 18px; font-size: 13px; border-radius: 6px; }
.btn-lg { height: 56px; padding: 0 36px; font-size: 16px; }

/* Ghost variant */
.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 28px;
    height: 48px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-2);
    background: transparent;
    border: 1px solid var(--border-mid);
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: all 200ms ease;
}

.btn-ghost:hover {
    color: var(--text);
    border-color: var(--border-strong);
    background: rgba(255,255,255,0.04);
}

/* Primary button */
.btn-primary {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 28px;
    height: 48px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background: var(--purple);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: all 200ms cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 4px 20px rgba(102,126,234,0.35);
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.12) 0%, transparent 60%);
    border-radius: 8px;
    pointer-events: none;
}

.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(102,126,234,0.5); background: #7b91f0; }
.btn-primary:active { transform: translateY(0); }

/* Legacy secondary (kept for case studies) */
.btn-secondary {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 28px;
    height: 48px;
    background: radial-gradient(85.82% 49.08% at 49.41% 51.35%, #141414 0%, #444148 100%);
    color: #FFF;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.5px;
    border: none;
    border-radius: 8px;
    box-shadow:
        0 8px 25px 0 rgba(0, 0, 0, 0.30),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.15),
        inset 0 -1px 0 0 rgba(0, 0, 0, 0.4);
    cursor: pointer;
    text-decoration: none;
    overflow: visible;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    transition: transform var(--duration-normal) var(--ease-out-back);
    will-change: transform;
}

.btn-secondary span {
    position: relative;
    z-index: 3;
}

.btn-secondary:hover { transform: translateY(-3px); }
.btn-secondary:active { transform: translateY(1px); }


/* ==================== FEATURED WORK SECTION ==================== */
.featured-section {
    padding: 80px 32px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-title {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
}


/* ==================== CARDS (OPTIMIZED) ==================== */
.card {
    position: relative;
    background: linear-gradient(135deg, #f5f5f7 0%, #e8e8ea 100%);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.5);
    text-decoration: none;
    box-shadow: 0 8px 24px 0 rgba(0, 0, 0, 0.35);
    transition: transform var(--duration-normal) var(--ease-out-back),
                border-color var(--duration-fast) ease;
    will-change: transform;
    transform: translateZ(0);
}

/* Pre-rendered glow */
.card::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 16px;
    box-shadow: 
        0 20px 40px 0 rgba(0, 0, 0, 0.4),
        0 0 30px 8px rgba(102, 126, 234, 0.35);
    opacity: 0;
    transition: opacity var(--duration-normal) ease;
    pointer-events: none;
    z-index: -1;
}

.card:hover {
    transform: translateY(-8px) scale(1.01) translateZ(0);
    border-color: rgba(102, 126, 234, 0.6);
}

.card:hover::after {
    opacity: 1;
}

.card:active {
    transform: translateY(-4px) scale(1.005) translateZ(0);
    transition-duration: 100ms;
}

.card-image {
    position: relative;
    width: 100%;
    height: 240px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    transition: transform var(--duration-slow) var(--ease-out-expo);
    will-change: transform;
}

.card:hover .card-image img {
    transform: scale(1.05);
}

.card-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, 
        transparent 0%, 
        rgba(0, 0, 0, 0.1) 100%);
}

.card-placeholder {
    font-size: 64px;
    opacity: 0.3;
    position: relative;
    z-index: 2;
    transition: transform var(--duration-normal) var(--ease-out-back);
}

.card:hover .card-placeholder {
    transform: scale(1.1) rotate(-5deg);
}

.card-content {
    position: relative;
    padding: 24px;
    z-index: 2;
    background: linear-gradient(135deg, #f5f5f7 0%, #e8e8ea 100%);
}

.card-tag {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    color: var(--accent-purple);
    margin-bottom: 16px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.card-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #1a1a1a;
    transition: transform var(--duration-fast) ease;
}

.card:hover .card-title {
    transform: translateX(4px);
}

.card-description {
    font-size: 15px;
    color: #444;
    line-height: 1.6;
}


/* ==================== LOCKED CARD STATE ==================== */
.card.locked {
    cursor: pointer;
    position: relative;
}

.card.locked .card-image::after {
    background: linear-gradient(180deg,
        transparent 0%,
        rgba(0, 0, 0, 0.7) 100%);
}

.card.locked .card-content {
    opacity: 0.7;
}

.card-locked-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 20px 32px;
    z-index: 10;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
    text-align: center;
    transition: transform var(--duration-normal) var(--ease-out-back),
                background-color var(--duration-fast) ease;
}

.card.locked:hover .card-locked-badge {
    background: rgba(30, 30, 30, 0.95);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%) scale(1.05);
}

.card-locked-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.card-locked-text {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    white-space: nowrap;
}


/* ==================== TAGS ==================== */
.tag {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 500;
    color: var(--text-2);
    padding: 4px 10px;
    border: 1px solid var(--border-mid);
    border-radius: 4px;
    letter-spacing: 0.06em;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* New-style colour modifiers */
.tag.purple  { color: var(--purple); border-color: rgba(102,126,234,0.3); background: rgba(102,126,234,0.06); }
.tag.orange  { color: var(--orange); border-color: rgba(255,140,66,0.3);  background: rgba(255,140,66,0.06);  }
.tag.gold    { color: var(--gold);   border-color: rgba(196,149,58,0.3);  background: rgba(196,149,58,0.06);  }

/* Legacy modifiers (hiring page / case studies) */
.tag-default { background: var(--surface-bg); color: var(--text-secondary); border: 1px solid var(--border-color); }
.tag-orange  { background: rgba(255,140,66,0.15); color: var(--accent-orange); border: 1px solid rgba(255,140,66,0.3); }
.tag-purple  { background: rgba(102,126,234,0.15); color: var(--accent-purple); border: 1px solid rgba(102,126,234,0.3); }
.tag-pill    { border-radius: 20px; padding: 5px 14px; }


/* ==================== SKILLS SECTION ==================== */
.skills-section {
    padding: 80px 32px;
    background: var(--secondary-bg);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.skills-container {
    max-width: 1200px;
    margin: 0 auto;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.skill-card {
    position: relative;
    background: var(--primary-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    transition: transform var(--duration-normal) var(--ease-out-back),
                border-color var(--duration-fast) ease;
    will-change: transform;
}

.skill-card::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 13px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3), 0 0 0 1px var(--accent-purple);
    opacity: 0;
    transition: opacity var(--duration-normal) ease;
    pointer-events: none;
    z-index: -1;
}

.skill-card:hover {
    transform: translateY(-6px) scale(1.02);
}

.skill-card:hover::after {
    opacity: 1;
}

.skill-icon {
    width: 48px;
    height: 48px;
    background: var(--surface-bg);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: transform var(--duration-normal) var(--ease-out-back);
}

.skill-card:hover .skill-icon {
    transform: scale(1.15) rotate(-5deg);
}

.skill-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

.skill-description {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
}


/* ==================== LEFT NAVIGATION ==================== */
.left-nav {
    position: fixed;
    left: 0;
    top: 64px;
    bottom: 0;
    width: 240px;
    background: var(--secondary-bg);
    border-right: 1px solid var(--border-color);
    padding: 32px 16px;
    display: flex;
    flex-direction: column;
    z-index: 99;
    animation: slideInFromLeft var(--duration-slow) var(--ease-out-expo);
}

.left-nav-header { padding: 0 12px; margin-bottom: 32px; }
.left-nav-name { font-size: 18px; font-weight: 600; color: var(--text-primary); margin-bottom: 4px; }
.left-nav-title { font-size: 13px; color: var(--text-secondary); }
.left-nav-menu { display: flex; flex-direction: column; gap: 4px; }

.left-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
    position: relative;
    transition: color var(--duration-fast) ease,
                background-color var(--duration-fast) ease;
}

.left-nav-item:hover {
    color: var(--text-primary);
    background-color: rgba(255, 255, 255, 0.05);
}

.left-nav-item.active {
    color: var(--text-primary);
    background-color: rgba(102, 126, 234, 0.15);
}

.left-nav-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 3px;
    height: 24px;
    background: var(--accent-purple);
    border-radius: 0 2px 2px 0;
    transform: translateY(-50%);
}

.left-nav-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    opacity: 0.7;
    transition: transform var(--duration-normal) var(--ease-out-back),
                opacity var(--duration-fast) ease;
}

.left-nav-item:hover .left-nav-icon {
    opacity: 1;
    transform: scale(1.15);
}

.left-nav-item.active .left-nav-icon { opacity: 1; }

.left-nav-indicator {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-purple);
    margin-left: auto;
    animation: pulse-dot 2s ease-in-out infinite;
}

.left-nav-divider { height: 1px; background: var(--border-color); margin: 16px 12px; }


/* ==================== BOTTOM SHEET ==================== */
.bottom-sheet-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    z-index: 2000;
    visibility: hidden;
    transition: background-color var(--duration-normal) ease,
                visibility var(--duration-normal) ease;
}

.bottom-sheet-overlay.open {
    visibility: visible;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.bottom-sheet {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-height: 85vh;
    background: var(--secondary-bg);
    border-radius: 20px 20px 0 0;
    border: 1px solid var(--border-color);
    border-bottom: none;
    z-index: 2001;
    display: flex;
    flex-direction: column;
    box-shadow: 0 -8px 40px 0 rgba(0, 0, 0, 0.5);
    transform: translateY(100%);
    transition: transform var(--duration-slow) var(--ease-out-expo);
    will-change: transform;
}

.bottom-sheet-overlay.open .bottom-sheet {
    transform: translateY(0);
}

.bottom-sheet-handle {
    display: flex;
    justify-content: center;
    padding: 12px;
    cursor: grab;
}

.bottom-sheet-handle-bar {
    width: 40px;
    height: 4px;
    border-radius: 2px;
    background: var(--border-color);
    transition: transform var(--duration-normal) var(--ease-out-back),
                background-color var(--duration-fast) ease;
}

.bottom-sheet-handle:hover .bottom-sheet-handle-bar {
    background: var(--text-secondary);
    transform: scaleX(1.3);
}

.bottom-sheet-header {
    padding: 8px 24px 20px;
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.bottom-sheet-title { font-size: 22px; font-weight: 600; color: var(--text-primary); margin-bottom: 4px; }
.bottom-sheet-subtitle { font-size: 14px; color: var(--text-secondary); }

.bottom-sheet-close {
    position: absolute;
    top: 8px;
    right: 24px;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--surface-bg);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--duration-normal) var(--ease-out-back),
                color var(--duration-fast) ease,
                background-color var(--duration-fast) ease;
    will-change: transform;
}

.bottom-sheet-close:hover {
    background: var(--border-color);
    color: var(--text-primary);
    transform: rotate(90deg);
}

.bottom-sheet-content { padding: 24px; overflow-y: auto; flex: 1; }
.bottom-sheet-actions { padding: 16px 24px 24px; display: flex; gap: 12px; border-top: 1px solid var(--border-color); }


/* ==================== STEPPER ==================== */
.stepper-step {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 8px 0;
    cursor: pointer;
}

.stepper-circle {
    position: relative;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #d0d0d2 0%, #b0b0b5 100%);
    border: 2px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.25);
    transition: transform var(--duration-normal) var(--ease-out-back),
                background var(--duration-normal) ease,
                border-color var(--duration-normal) ease;
    will-change: transform;
}

.stepper-step:hover .stepper-circle { transform: scale(1.15); }

.stepper-step.active .stepper-circle {
    background: radial-gradient(circle at 50% 30%, #FF8C42 0%, #FF6B35 50%, #D94A1A 100%);
    border-color: rgba(255, 140, 66, 0.8);
}

.stepper-step.active .stepper-circle::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 140, 66, 0.4) 0%, transparent 70%);
    animation: pulse-dot 2s ease-in-out infinite;
    z-index: -1;
}

.stepper-step.completed .stepper-circle {
    background: radial-gradient(circle at 50% 30%, #667eea 0%, #5a67d8 100%);
    border-color: rgba(102, 126, 234, 0.8);
}

.stepper-step.completed .stepper-circle::before {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 14px;
    font-weight: 600;
}

.stepper-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    line-height: 1.4;
    transition: color var(--duration-fast) ease,
                transform var(--duration-normal) var(--ease-out-back);
}

.stepper-step:hover .stepper-title { color: var(--text-primary); transform: translateX(4px); }
.stepper-step.active .stepper-title,
.stepper-step.completed .stepper-title { color: var(--text-primary); }


/* ==================== TYPOGRAPHY ==================== */
.headline-display { font-family: 'Instrument Serif', Georgia, serif; font-weight: 400; font-size: clamp(40px, 8vw, 72px); line-height: 1.1; color: var(--text-primary); }
.headline-1 { font-family: 'Instrument Serif', Georgia, serif; font-weight: 400; font-size: clamp(32px, 6vw, 48px); line-height: 1.2; color: var(--text-primary); }
.headline-2 { font-family: 'Instrument Serif', Georgia, serif; font-weight: 400; font-size: clamp(26px, 4vw, 36px); line-height: 1.25; color: var(--text-primary); }
.headline-3 { font-family: 'Instrument Serif', Georgia, serif; font-weight: 400; font-size: clamp(22px, 3vw, 28px); line-height: 1.3; color: var(--text-primary); }

.pullquote {
    font-family: 'Instrument Serif', Georgia, serif;
    font-size: 24px;
    line-height: 1.4;
    color: var(--text-primary);
    padding-left: 24px;
    border-left: 3px solid var(--accent-purple);
    margin: 48px 0;
}

.pullquote-attribution { font-family: Inter, -apple-system, sans-serif; font-size: 14px; color: var(--text-secondary); margin-top: 12px; }


/* ==================== FOOTER ==================== */
.site-footer {
    background: var(--secondary-bg);
    border-top: 1px solid var(--border-color);
    padding: 48px 32px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
}

.footer-text {
    font-size: 14px;
    color: var(--text-secondary);
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    position: relative;
    transition: color var(--duration-fast) ease;
}

.footer-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--accent-purple);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--duration-normal) var(--ease-out-expo);
}

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

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


/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
    .left-nav { 
        transform: translateX(-100%); 
        transition: transform var(--duration-normal) var(--ease-out-expo); 
    }
    .left-nav.open { transform: translateX(0); }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 40px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
    }

    .btn-glass,
    .btn-glass-purple,
    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .work-grid {
        grid-template-columns: 1fr;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .bottom-sheet { 
        border-radius: 16px 16px 0 0; 
    }
    
    .bottom-sheet-actions { 
        flex-direction: column; 
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ============================================================
   NEW DESIGN SYSTEM — SHARED COMPONENTS (index / about / writing)
   ============================================================ */

/* NAV */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    background: rgba(13,13,13,0.82);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    transition: border-color 300ms ease;
}
.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.02em;
    color: var(--text);
    text-decoration: none;
}
.nav-logo-mark {
    width: 32px; height: 32px;
    background: radial-gradient(circle at 40% 35%, #2e2e2e, #111);
    border: 1.5px solid var(--border-strong);
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 500;
    color: var(--text);
    box-shadow: 0 2px 10px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.08);
    flex-shrink: 0;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
}
.nav-link {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-2);
    padding: 6px 12px;
    border-radius: 6px;
    text-decoration: none;
    transition: all 180ms ease;
    letter-spacing: 0.03em;
}
.nav-link:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.nav-link.active { color: var(--text); }
.nav-cta {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 500;
    color: var(--text);
    padding: 7px 16px;
    border: 1px solid var(--border-strong);
    border-radius: 6px;
    text-decoration: none;
    transition: all 180ms ease;
    letter-spacing: 0.03em;
    margin-left: 8px;
}
.nav-cta:hover { background: var(--purple); border-color: var(--purple); color: #fff; }

/* HERO */
.hero {
    padding-top: 60px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: 40%; left: 50%;
    transform: translate(-50%, -50%);
    width: 900px; height: 600px;
    background: radial-gradient(ellipse, rgba(102,126,234,0.07) 0%, transparent 70%);
    pointer-events: none;
}
.hero-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1200px;
    padding: 0 40px;
    text-align: center;
}
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    color: var(--text-2);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 40px;
    padding: 7px 18px;
    border: 1px solid var(--border);
    border-radius: 100px;
    background: rgba(255,255,255,0.025);
}
.hero-dot {
    width: 6px; height: 6px;
    background: var(--orange);
    border-radius: 50%;
    animation: blink 2s ease-in-out infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.3} }
.hero-name {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(72px, 11vw, 148px);
    line-height: 0.92;
    letter-spacing: -0.025em;
    color: var(--text);
    margin-bottom: 32px;
}
.hero-name span {
    display: block;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
.hero-name span:nth-child(2) { animation-delay: 0.1s; }
@keyframes fadeUp { to { opacity:1; transform:translateY(0); } }
.hero-role {
    font-family: var(--font-mono);
    font-size: clamp(12px, 1.4vw, 15px);
    color: var(--purple);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 28px;
    opacity: 0;
    animation: fadeUp 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 0.25s forwards;
}
.hero-bio {
    font-size: clamp(16px, 1.8vw, 20px);
    color: var(--text-2);
    line-height: 1.65;
    max-width: 620px;
    margin: 0 auto 52px;
    font-weight: 400;
    opacity: 0;
    animation: fadeUp 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 0.35s forwards;
}
.hero-bio strong { color: var(--text); font-weight: 600; }
.hero-stats {
    display: flex;
    align-items: stretch;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    background: rgba(255,255,255,0.02);
    max-width: 680px;
    margin: 0 auto 52px;
    opacity: 0;
    animation: fadeUp 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 0.45s forwards;
}
.hero-stat {
    flex: 1;
    padding: 20px 24px;
    text-align: center;
    border-right: 1px solid var(--border);
}
.hero-stat:last-child { border-right: none; }
.stat-value {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 800;
    color: var(--text);
    line-height: 1;
    margin-bottom: 6px;
}
.stat-label {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-3);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    opacity: 0;
    animation: fadeUp 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 0.55s forwards;
}
.hero-scroll {
    position: absolute;
    bottom: 36px; left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-3);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0;
    animation: fadeUp 1s ease 1.2s forwards;
}
.scroll-line {
    width: 1px; height: 40px;
    background: linear-gradient(180deg, var(--text-3), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse { 0%,100%{opacity:0.4} 50%{opacity:0.9} }

/* REVEAL SCROLL ANIMATION */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { 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; }

/* TICKER */
.ticker-wrap {
    overflow: hidden;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--bg-2);
    padding: 14px 0;
}
.ticker-track {
    display: flex;
    animation: ticker 30s linear infinite;
    white-space: nowrap;
}
.ticker-track:hover { animation-play-state: paused; }
.ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 20px;
    padding: 0 28px;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-3);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.ticker-dot { width: 4px; height: 4px; background: var(--purple); border-radius: 50%; flex-shrink: 0; }
@keyframes ticker { from{transform:translateX(0)} to{transform:translateX(-50%)} }

/* SECTION UTILITIES */
.section-label {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 500;
    color: var(--text-3);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.section-label::after { content: ''; width: 32px; height: 1px; background: var(--text-3); }
.section-heading {
    font-family: var(--font-display);
    font-size: clamp(34px, 4.5vw, 56px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: var(--text);
    margin-bottom: 20px;
}
.section-subheading { font-size: 17px; color: var(--text-2); line-height: 1.7; max-width: 540px; }

/* COMPANIES */
.companies { padding: 80px 40px; border-bottom: 1px solid var(--border); }
.companies-inner { max-width: 1160px; margin: 0 auto; }
.companies-label { font-family: var(--font-mono); font-size: 10px; color: var(--text-3); letter-spacing: 0.2em; text-transform: uppercase; text-align: center; margin-bottom: 40px; }
.companies-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--border); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.company-card { background: var(--bg-2); padding: 40px 48px; display: flex; flex-direction: column; gap: 14px; transition: background 200ms ease; }
.company-card:hover { background: var(--bg-3); }
.company-eyebrow { font-family: var(--font-mono); font-size: 10px; color: var(--text-3); letter-spacing: 0.14em; text-transform: uppercase; }
.company-name { font-family: var(--font-display); font-size: 28px; font-weight: 800; color: var(--text); letter-spacing: -0.02em; }
.company-role { font-size: 14px; color: var(--text-2); line-height: 1.6; }
.company-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }

/* SELECTED WORK */
.work-section { padding: 120px 40px; border-bottom: 1px solid var(--border); }
.work-header { max-width: 1160px; margin: 0 auto 80px; }
.case-studies { max-width: 1160px; margin: 0 auto; display: flex; flex-direction: column; gap: 2px; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: var(--border); }
.case-study { background: var(--bg-2); padding: 52px 56px; display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: start; position: relative; cursor: pointer; transition: background 200ms ease; }
.case-study::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: transparent; transition: background 200ms ease; }
.case-study:hover { background: var(--bg-3); }
.case-study:hover::before { background: var(--purple); }
.cs-meta { display: flex; flex-direction: column; gap: 14px; }
.cs-eyebrow { font-family: var(--font-mono); font-size: 10px; color: var(--text-3); letter-spacing: 0.16em; text-transform: uppercase; }
.cs-title { font-family: var(--font-display); font-size: clamp(26px, 3.2vw, 42px); font-weight: 800; color: var(--text); letter-spacing: -0.02em; line-height: 1.05; }
.cs-description { font-size: 15px; color: var(--text-2); line-height: 1.7; max-width: 520px; }
.cs-footer { display: flex; align-items: center; gap: 24px; margin-top: 4px; flex-wrap: wrap; }
.cs-detail { font-family: var(--font-mono); font-size: 11px; color: var(--text-3); letter-spacing: 0.08em; display: flex; align-items: center; gap: 7px; }
.cs-detail-value { color: var(--text-2); }
.cs-access { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 12px; font-weight: 500; color: var(--text-2); padding: 8px 18px; border: 1px solid var(--border-mid); border-radius: 6px; text-decoration: none; transition: all 180ms ease; margin-top: 20px; width: fit-content; cursor: pointer; }
.cs-access:hover { color: var(--purple); border-color: rgba(102,126,234,0.4); background: rgba(102,126,234,0.06); }
.cs-lock-badge { display: flex; flex-direction: column; align-items: flex-end; gap: 16px; flex-shrink: 0; padding-top: 4px; }
.lock-indicator { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 10px; color: var(--text-3); letter-spacing: 0.1em; text-transform: uppercase; padding: 6px 12px; border: 1px solid var(--border); border-radius: 6px; background: rgba(255,255,255,0.02); }
.impact-pill { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 11px; font-weight: 500; color: var(--orange); padding: 5px 12px; border: 1px solid rgba(255,140,66,0.25); border-radius: 100px; background: rgba(255,140,66,0.06); }

/* CAPABILITIES */
.capabilities-section { padding: 120px 40px; border-bottom: 1px solid var(--border); }
.capabilities-layout { max-width: 1160px; margin: 0 auto; display: grid; grid-template-columns: 360px 1fr; gap: 80px; align-items: start; }
.cap-sticky { position: sticky; top: 100px; }
.cap-list { display: flex; flex-direction: column; gap: 2px; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: var(--border); }
.cap-item { background: var(--bg-2); padding: 26px 30px; display: flex; align-items: start; gap: 18px; transition: background 200ms ease; }
.cap-item:hover { background: var(--bg-3); }
.cap-icon { width: 36px; height: 36px; flex-shrink: 0; border: 1px solid var(--border-mid); border-radius: 8px; background: var(--bg-3); display: flex; align-items: center; justify-content: center; font-size: 15px; margin-top: 2px; }
.cap-body { flex: 1; }
.cap-title { font-family: var(--font-display); font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 5px; letter-spacing: -0.01em; }
.cap-desc { font-size: 13px; color: var(--text-2); line-height: 1.6; }
.cap-tag { font-family: var(--font-mono); font-size: 9px; color: var(--text-3); letter-spacing: 0.1em; text-transform: uppercase; margin-top: 8px; }
.process-steps { display: flex; flex-direction: column; gap: 40px; }
.process-step { display: flex; gap: 24px; align-items: start; }
.step-number { font-family: var(--font-mono); font-size: 11px; color: var(--text-3); letter-spacing: 0.1em; padding-top: 4px; flex-shrink: 0; width: 28px; }
.step-content { flex: 1; }
.step-title { font-family: var(--font-display); font-size: 21px; font-weight: 700; color: var(--text); letter-spacing: -0.02em; margin-bottom: 10px; }
.step-desc { font-size: 15px; color: var(--text-2); line-height: 1.7; }
.step-divider { width: 1px; height: 28px; background: var(--border-mid); margin-left: 13px; }

/* WRITING SECTION (index.html) */
.writing-section { padding: 120px 40px; border-bottom: 1px solid var(--border); }
.writing-inner { max-width: 1160px; margin: 0 auto; }
.writing-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--border); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; margin-top: 64px; }
.writing-feature { background: var(--bg-2); padding: 48px; }
.writing-feature-label { font-family: var(--font-mono); font-size: 10px; color: var(--orange); letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 20px; display: flex; align-items: center; gap: 8px; }
.writing-feature-title { font-family: var(--font-display); font-size: 28px; font-weight: 800; color: var(--text); letter-spacing: -0.02em; line-height: 1.1; margin-bottom: 16px; }
.writing-feature-desc { font-size: 15px; color: var(--text-2); line-height: 1.7; margin-bottom: 28px; }
.writing-link { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 12px; font-weight: 500; color: var(--orange); letter-spacing: 0.06em; transition: gap 200ms ease; text-decoration: none; }
.writing-link:hover { gap: 14px; }
.writing-posts { background: var(--bg-2); padding: 48px; display: flex; flex-direction: column; }
.writing-post-item { padding: 18px 0; border-bottom: 1px solid var(--border); display: flex; flex-direction: column; gap: 6px; text-decoration: none; }
.writing-post-item:last-child { border-bottom: none; }
.post-date { font-family: var(--font-mono); font-size: 10px; color: var(--text-3); letter-spacing: 0.1em; }
.post-title { font-size: 14px; font-weight: 600; color: var(--text-2); line-height: 1.45; transition: color 180ms ease; }
.writing-post-item:hover .post-title { color: var(--text); }

/* CTA */
.cta-section { padding: 120px 40px; }
.cta-inner { max-width: 800px; margin: 0 auto; text-align: center; }
.cta-heading { font-family: var(--font-display); font-size: clamp(40px, 5.5vw, 72px); font-weight: 800; color: var(--text); letter-spacing: -0.03em; line-height: 1.0; margin-bottom: 24px; }
.cta-sub { font-size: 17px; color: var(--text-2); line-height: 1.65; max-width: 460px; margin: 0 auto 48px; }
.cta-actions { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }

/* FOOTER */
.footer { border-top: 1px solid var(--border); padding: 32px 40px; display: flex; align-items: center; justify-content: space-between; }
.footer-left { font-family: var(--font-mono); font-size: 11px; color: var(--text-3); letter-spacing: 0.06em; }
.footer-links { display: flex; gap: 28px; }
.footer-link { font-family: var(--font-mono); font-size: 11px; color: var(--text-3); letter-spacing: 0.06em; transition: color 180ms ease; text-decoration: none; }
.footer-link:hover { color: var(--text-2); }

/* CONTACT MODAL */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.72); backdrop-filter: blur(8px); z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 20px; opacity: 0; pointer-events: none; transition: opacity 200ms ease; }
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal { background: var(--bg-3); border: 1px solid var(--border-strong); border-radius: 16px; padding: 48px; max-width: 480px; width: 100%; transform: translateY(20px) scale(0.97); transition: transform 250ms cubic-bezier(0.34, 1.56, 0.64, 1); box-shadow: 0 24px 80px rgba(0,0,0,0.6); }
.modal-overlay.open .modal { transform: translateY(0) scale(1); }
.modal-header { display: flex; align-items: start; justify-content: space-between; margin-bottom: 28px; }
.modal-title { font-family: var(--font-display); font-size: 22px; font-weight: 800; color: var(--text); letter-spacing: -0.02em; }
.modal-subtitle { font-size: 13px; color: var(--text-2); margin-top: 6px; line-height: 1.5; }
.modal-close { width: 32px; height: 32px; background: var(--bg-4); border: 1px solid var(--border-mid); border-radius: 6px; color: var(--text-2); font-size: 14px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 160ms ease; flex-shrink: 0; }
.modal-close:hover { color: var(--text); }
.modal-form { display: flex; flex-direction: column; gap: 14px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-label { font-family: var(--font-mono); font-size: 10px; color: var(--text-3); letter-spacing: 0.12em; text-transform: uppercase; }
.form-input { background: var(--bg-2); border: 1px solid var(--border-mid); border-radius: 8px; padding: 12px 16px; font-family: var(--font-body); font-size: 14px; color: var(--text); outline: none; transition: border-color 160ms ease; }
.form-input::placeholder { color: var(--text-3); }
.form-input:focus { border-color: var(--purple); }
textarea.form-input { resize: vertical; min-height: 80px; }
.modal-submit { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 14px; background: var(--purple); border: none; border-radius: 8px; font-family: var(--font-body); font-size: 14px; font-weight: 600; color: #fff; cursor: pointer; margin-top: 8px; transition: all 180ms ease; }
.modal-submit:hover { background: #7b91f0; }

/* ============================================================
   PAGE: hiring.html (sidebar dashboard)
   ============================================================ */

.hiring-page { --sidebar-bg: #111111; }
[data-theme="light"] .hiring-page { --sidebar-bg: #ffffff; }
.hiring-page .dashboard { display: flex; min-height: 100vh; }

.hiring-page .sidebar {
    width: 300px; min-width: 300px;
    background: var(--sidebar-bg);
    border-right: 1px solid var(--border);
    display: flex; flex-direction: column;
    padding: 32px 16px;
    position: fixed; top: 0; left: 0; bottom: 0;
    z-index: 100;
    animation: slideInFromLeft 400ms var(--ease-out-expo) forwards;
}

.hiring-page .sidebar-logo { display: flex; align-items: center; margin-bottom: 40px; padding: 0 8px; }

.hiring-page .logo-avatar {
    width: 40px; height: 40px;
    background: radial-gradient(circle at 40% 35%, #2e2e2e, #111);
    border: 1.5px solid var(--border-strong);
    border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-mono); font-size: 13px; font-weight: 500; color: var(--text);
    box-shadow: 0 2px 10px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.08);
}

.hiring-page .sidebar-nav { display: flex; flex-direction: column; gap: 4px; flex: 1; }

.hiring-page .nav-item {
    display: flex; align-items: center; gap: 12px;
    padding: 12px; border-radius: 8px;
    color: var(--text-2); text-decoration: none;
    font-family: var(--font-body); font-size: 14px; font-weight: 500;
    cursor: pointer; position: relative;
    transition: background 150ms ease, color 150ms ease;
}
.hiring-page .nav-item:hover { background: rgba(255,255,255,0.05); color: var(--text); }
.hiring-page .nav-item.active { background: rgba(102,126,234,0.12); color: var(--text); }
.hiring-page .nav-item.active::before {
    content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
    width: 3px; height: 20px; background: var(--purple); border-radius: 0 2px 2px 0;
}

.hiring-page .nav-icon { width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; opacity: 0.7; flex-shrink: 0; }
.hiring-page .nav-item.active .nav-icon, .hiring-page .nav-item:hover .nav-icon { opacity: 1; }
.hiring-page .nav-icon svg { width: 24px; height: 24px; stroke: currentColor; }

.hiring-page .sidebar-footer { padding-top: 16px; border-top: 1px solid var(--border); }
.hiring-page .theme-toggle-sidebar {
    display: flex; align-items: center; gap: 12px; width: 100%;
    padding: 12px; border-radius: 8px; border: none; background: transparent;
    color: var(--text-2); font-family: var(--font-body); font-size: 14px; cursor: pointer;
    transition: background 150ms ease, color 150ms ease;
}
.hiring-page .theme-toggle-sidebar:hover { background: rgba(255,255,255,0.05); color: var(--text); }

.hiring-page .main-content { flex: 1; margin-left: 300px; margin-top: 0; padding: 0; display: flex; flex-direction: column; min-height: 100vh; background: var(--bg); }
.hiring-page .mobile-header { display: none; }
.hiring-page .content-container { flex: 1; padding: 64px 64px 48px; display: flex; flex-direction: column; }
.hiring-page .content-view { display: none; }
.hiring-page .content-view.active { display: flex; flex-direction: column; }

.hiring-page .portfolio-grid { display: flex; flex-direction: column; gap: 48px; width: 100%; }

.hiring-page .portfolio-card {
    display: flex; flex-direction: row; align-items: center; gap: 48px; padding: 48px;
    background: var(--bg-2); border: 1px solid var(--border); border-radius: 12px;
    cursor: pointer; text-decoration: none; color: inherit;
    transition: transform 200ms ease, background 200ms ease;
}
.hiring-page .portfolio-card:hover { transform: translateY(-4px); background: var(--bg-3); }

.hiring-page .card-image { width: 500px; min-width: 500px; height: 300px; background: var(--bg-3); border-radius: 10px; overflow: hidden; position: relative; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.hiring-page .card-image img { width: 100%; height: 100%; object-fit: cover; }
.hiring-page .card-content { flex: 1; display: flex; flex-direction: column; gap: 16px; }
.hiring-page .card-tags { display: none; }
.hiring-page .card-title { font-family: var(--font-display); font-size: 47px; font-weight: 500; line-height: 1.05; color: var(--text); letter-spacing: -0.02em; }
.hiring-page .card-description { font-size: 24px; font-weight: 400; line-height: 36px; color: var(--text-2); }

.hiring-page .btn-tertiary { display: inline-flex; align-items: center; background: transparent; border: none; padding: 0; font-family: var(--font-mono); font-size: 12px; font-weight: 500; color: var(--orange); cursor: pointer; text-decoration: underline; letter-spacing: 0.04em; transition: opacity 150ms ease; }
.hiring-page .btn-tertiary:hover { opacity: 0.75; }

.hiring-page .about-header { margin-bottom: 32px; }
.hiring-page .about-title { font-family: var(--font-display); font-size: 42px; font-weight: 700; color: var(--text); letter-spacing: -0.02em; }
.hiring-page .about-content { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.hiring-page .about-section { display: flex; flex-direction: column; gap: 12px; }
.hiring-page .about-section-title { font-family: var(--font-display); font-size: 18px; font-weight: 700; color: var(--text); }
.hiring-page .about-text { font-size: 15px; color: var(--text-2); line-height: 1.7; }
.hiring-page .about-links { display: flex; flex-direction: column; gap: 8px; }
.hiring-page .about-link { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-2); text-decoration: none; transition: color 150ms ease; }
.hiring-page .about-link:hover { color: var(--text); }

.hiring-page .writing-header { margin-bottom: 32px; }
.hiring-page .writing-title { font-family: var(--font-display); font-size: 42px; font-weight: 700; color: var(--text); letter-spacing: -0.02em; margin-bottom: 12px; }
.hiring-page .writing-subtitle { font-size: 16px; color: var(--text-2); line-height: 1.65; margin-bottom: 24px; max-width: 560px; }
.hiring-page .substack-link { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 12px; color: var(--orange); text-decoration: none; border: 1px solid rgba(255,140,66,0.3); padding: 8px 16px; border-radius: 6px; transition: all 180ms ease; }
.hiring-page .substack-link:hover { background: rgba(255,140,66,0.06); }
.hiring-page .articles-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hiring-page .article-card { background: var(--bg-2); border: 1px solid var(--border); border-radius: 10px; padding: 24px; display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: inherit; transition: background 200ms ease; }
.hiring-page .article-card:hover { background: var(--bg-3); }
.hiring-page .article-category { font-family: var(--font-mono); font-size: 10px; color: var(--text-3); letter-spacing: 0.1em; text-transform: uppercase; }
.hiring-page .article-title { font-size: 15px; font-weight: 600; color: var(--text); line-height: 1.45; }
.hiring-page .article-excerpt { font-size: 13px; color: var(--text-2); line-height: 1.6; }

/* Override global .card-content light background */
.hiring-page .card-content { background: transparent !important; padding: 0 !important; z-index: auto !important; }

/* Access request modal — must be hidden by default */
.access-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.72);
    backdrop-filter: blur(8px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.access-modal-overlay.active { display: flex; }
.access-modal {
    background: var(--bg-3);
    border: 1px solid var(--border-strong);
    border-radius: 16px;
    padding: 40px;
    max-width: 480px;
    width: 100%;
    box-shadow: 0 24px 80px rgba(0,0,0,0.6);
}
.access-modal-header { display: flex; align-items: start; justify-content: space-between; margin-bottom: 24px; }
.access-modal-title { font-family: var(--font-display); font-size: 20px; font-weight: 700; color: var(--text); letter-spacing: -0.02em; }
.access-modal-subtitle { font-size: 13px; color: var(--text-2); margin-top: 4px; }
.access-modal-close { width: 32px; height: 32px; background: var(--bg-4); border: 1px solid var(--border-mid); border-radius: 6px; color: var(--text-2); font-size: 18px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: color 160ms ease; flex-shrink: 0; }
.access-modal-close:hover { color: var(--text); }
.access-form { display: flex; flex-direction: column; gap: 14px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-textarea { background: var(--bg-2); border: 1px solid var(--border-mid); border-radius: 8px; padding: 12px 16px; font-family: var(--font-body); font-size: 14px; color: var(--text); outline: none; transition: border-color 160ms ease; resize: vertical; min-height: 80px; }
.form-textarea::placeholder { color: var(--text-3); }
.form-textarea:focus { border-color: var(--purple); }
.access-form-submit { display: flex; align-items: center; justify-content: center; padding: 14px; background: var(--purple); border: none; border-radius: 8px; font-family: var(--font-body); font-size: 14px; font-weight: 600; color: #fff; cursor: pointer; margin-top: 4px; transition: background 180ms ease; }
.access-form-submit:hover { background: #7b91f0; }

.hiring-page .site-footer { padding: 32px 64px; margin-top: auto; background: transparent; border-top: none; }
.hiring-page .footer-content { max-width: none; margin: 0; display: flex; justify-content: space-between; align-items: center; }
.hiring-page .footer-text { font-size: 13px; color: var(--text-3); }
.hiring-page .footer-links { display: flex; gap: 24px; }
.hiring-page .footer-link { color: var(--text-3); text-decoration: none; font-size: 13px; transition: color 150ms ease; }
.hiring-page .footer-link:hover { color: var(--text-2); }

.sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 99; }
.sidebar-overlay.active { display: block; }

/* hiring-page sheet — all styles controlled by inline <style> in hiring.html */
.hiring-page .modal-overlay { position: fixed; inset: 0; }
.hiring-page .modal-container { display: flex; flex-direction: column; overflow: hidden; }
.hiring-page .modal-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 24px; border-bottom: 1px solid var(--border); flex-shrink: 0; }
.hiring-page .modal-header-left { display: flex; align-items: center; gap: 16px; }
.hiring-page .modal-header-right { display: flex; align-items: center; gap: 12px; }
.hiring-page .modal-header-nav { display: flex; gap: 8px; }
.hiring-page .modal-title { font-family: var(--font-display); font-size: 16px; font-weight: 700; color: var(--text); }
.hiring-page .modal-close { width: 36px; height: 36px; background: var(--bg-3); border: 1px solid var(--border-mid); border-radius: 6px; color: var(--text-2); font-size: 18px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 160ms ease; }
.hiring-page .modal-close:hover { color: var(--text); }
.hiring-page .nav-case-button { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 6px; background: var(--bg-3); border: 1px solid var(--border-mid); color: var(--text-2); font-family: var(--font-mono); font-size: 12px; cursor: pointer; transition: all 160ms ease; }
.hiring-page .nav-case-button:hover:not(:disabled) { color: var(--text); border-color: var(--border-strong); }
.hiring-page .nav-case-button:disabled { opacity: 0.3; cursor: not-allowed; }
.hiring-page .modal-content { flex: 1; overflow: hidden; position: relative; }
.hiring-page #modalIframe { width: 100%; height: 100%; border: none; }
.hiring-page .modal-loading { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; background: var(--bg-2); }
.hiring-page .modal-loading.active { display: flex; }
.hiring-page .spinner { width: 32px; height: 32px; border: 2px solid var(--border-mid); border-top-color: var(--purple); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   PAGE: about.html
   ============================================================ */

.about-page { background: var(--bg); }
.about-page-hero { padding: 160px 40px 100px; max-width: 1160px; margin: 0 auto; border-bottom: 1px solid var(--border); }
.about-page-eyebrow { font-family: var(--font-mono); font-size: 10px; color: var(--text-3); letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 24px; display: flex; align-items: center; gap: 10px; }
.about-page-eyebrow::before { content: ''; width: 24px; height: 1px; background: var(--text-3); }
.about-page-name { font-family: var(--font-display); font-size: clamp(56px, 8vw, 112px); font-weight: 800; line-height: 0.95; letter-spacing: -0.03em; color: var(--text); margin-bottom: 40px; }
.about-page-bio { font-size: clamp(17px, 1.8vw, 20px); color: var(--text-2); line-height: 1.7; max-width: 640px; margin-bottom: 48px; }
.about-page-bio strong { color: var(--text); font-weight: 600; }
.about-page-links { display: flex; gap: 12px; flex-wrap: wrap; }
.about-content-section { max-width: 1160px; margin: 0 auto; padding: 80px 40px; border-bottom: 1px solid var(--border); display: grid; grid-template-columns: 280px 1fr; gap: 80px; align-items: start; }
.about-content-section:last-of-type { border-bottom: none; }
.about-section-label { font-family: var(--font-mono); font-size: 10px; color: var(--text-3); letter-spacing: 0.18em; text-transform: uppercase; position: sticky; top: 80px; }
.about-section-body { display: flex; flex-direction: column; gap: 20px; }
.about-section-heading { font-family: var(--font-display); font-size: 32px; font-weight: 700; color: var(--text); letter-spacing: -0.02em; line-height: 1.1; margin-bottom: 4px; }
.about-section-text { font-size: 16px; color: var(--text-2); line-height: 1.75; }
.about-highlight { background: var(--bg-2); border: 1px solid var(--border); border-left: 3px solid var(--purple); border-radius: 8px; padding: 24px 28px; display: flex; flex-direction: column; gap: 8px; }
.about-highlight-title { font-family: var(--font-display); font-size: 16px; font-weight: 700; color: var(--text); }
.about-highlight-text { font-size: 14px; color: var(--text-2); line-height: 1.65; }
.about-skills-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.about-stat-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: var(--border); }
.about-stat-item { background: var(--bg-2); padding: 28px 32px; }
.about-stat-value { font-family: var(--font-display); font-size: 36px; font-weight: 800; color: var(--text); letter-spacing: -0.02em; margin-bottom: 6px; }
.about-stat-label { font-family: var(--font-mono); font-size: 10px; color: var(--text-3); letter-spacing: 0.12em; text-transform: uppercase; }

/* ============================================================
   PAGE: writing.html
   ============================================================ */

.writing-page { background: var(--bg); }
.writing-page-hero { padding: 160px 40px 80px; max-width: 1160px; margin: 0 auto; border-bottom: 1px solid var(--border); }
.writing-page-title { font-family: var(--font-display); font-size: clamp(48px, 7vw, 96px); font-weight: 800; line-height: 0.95; letter-spacing: -0.03em; color: var(--text); margin-bottom: 28px; }
.writing-page-subtitle { font-size: 18px; color: var(--text-2); line-height: 1.65; max-width: 560px; margin-bottom: 40px; }
.writing-page-actions { display: flex; gap: 12px; align-items: center; }
.writing-main { max-width: 1160px; margin: 0 auto; padding: 64px 40px; }
.writing-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 48px; }
.filter-btn { font-family: var(--font-mono); font-size: 11px; color: var(--text-3); padding: 6px 14px; border: 1px solid var(--border); border-radius: 100px; background: transparent; cursor: pointer; transition: all 180ms ease; letter-spacing: 0.06em; text-transform: uppercase; }
.filter-btn:hover { color: var(--text-2); border-color: var(--border-mid); }
.filter-btn.active { color: var(--purple); border-color: rgba(102,126,234,0.4); background: rgba(102,126,234,0.06); }
.writing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--border); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.writing-card { background: var(--bg-2); padding: 36px 40px; display: flex; flex-direction: column; gap: 12px; text-decoration: none; color: inherit; transition: background 200ms ease; position: relative; }
.writing-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: transparent; transition: background 200ms ease; }
.writing-card:hover { background: var(--bg-3); }
.writing-card:hover::before { background: var(--orange); }
.writing-card.featured { grid-column: 1 / -1; }
.writing-card-eyebrow { font-family: var(--font-mono); font-size: 10px; color: var(--orange); letter-spacing: 0.14em; text-transform: uppercase; }
.writing-card-title { font-family: var(--font-display); font-size: 22px; font-weight: 700; color: var(--text); letter-spacing: -0.01em; line-height: 1.2; }
.writing-card.featured .writing-card-title { font-size: 30px; }
.writing-card-excerpt { font-size: 14px; color: var(--text-2); line-height: 1.65; }
.writing-card-meta { display: flex; align-items: center; gap: 16px; margin-top: 8px; }
.writing-card-date { font-family: var(--font-mono); font-size: 10px; color: var(--text-3); letter-spacing: 0.08em; }
.writing-card-read { font-family: var(--font-mono); font-size: 10px; color: var(--text-3); letter-spacing: 0.08em; }
.writing-cta { margin-top: 80px; padding: 64px; background: var(--bg-2); border: 1px solid var(--border); border-radius: 12px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.writing-cta-title { font-family: var(--font-display); font-size: 32px; font-weight: 800; color: var(--text); letter-spacing: -0.02em; }
.writing-cta-sub { font-size: 16px; color: var(--text-2); line-height: 1.6; max-width: 400px; }

/* ============================================================
   RESPONSIVE (new pages)
   ============================================================ */

@media (max-width: 1300px) {
    .hiring-page .portfolio-card { flex-direction: column; padding: 32px; gap: 24px; }
    .hiring-page .card-image { width: 100%; min-width: 100%; height: 260px; }
    .hiring-page .card-title { font-size: 32px; }
    .hiring-page .card-description { font-size: 18px; line-height: 28px; }
    .hiring-page .about-content { grid-template-columns: 1fr; }
}

@media (max-width: 1024px) {
    .hiring-page .sidebar { transform: translateX(-100%); transition: transform 300ms ease; animation: none; }
    .hiring-page .sidebar.open { transform: translateX(0); }
    .hiring-page .main-content { margin-left: 0; }
    .hiring-page .mobile-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 24px; background: var(--bg-2); border-bottom: 1px solid var(--border); }
    .hiring-page .mobile-menu-btn { background: transparent; border: none; color: var(--text-2); cursor: pointer; padding: 4px; }
    .hiring-page .content-container { padding: 32px 24px; }
    .hiring-page .site-footer { padding: 24px; }
    .about-content-section { grid-template-columns: 1fr; gap: 32px; padding: 48px 24px; }
    .about-section-label { position: static; }
    .about-page-hero { padding: 120px 24px 60px; }
    .writing-page-hero { padding: 120px 24px 60px; }
    .writing-main { padding: 48px 24px; }
    .writing-grid { grid-template-columns: 1fr; }
    .writing-card.featured { grid-column: 1; }
    .nav { padding: 0 24px; }
    .nav-cta { display: none; }
    .companies { padding: 60px 24px; }
    .companies-grid { grid-template-columns: 1fr; }
    .work-section { padding: 80px 24px; }
    .case-study { grid-template-columns: 1fr; padding: 36px 30px; }
    .cs-lock-badge { flex-direction: row; align-items: center; }
    .capabilities-section { padding: 80px 24px; }
    .capabilities-layout { grid-template-columns: 1fr; gap: 48px; }
    .cap-sticky { position: relative; top: 0; }
    .writing-section { padding: 80px 24px; }
    .writing-layout { grid-template-columns: 1fr; }
    .cta-section { padding: 80px 24px; }
    .footer { padding: 28px 24px; flex-direction: column; gap: 16px; text-align: center; }
    .hero-stats { flex-direction: column; }
    .hero-stat { border-right: none; border-bottom: 1px solid var(--border); }
    .hero-stat:last-child { border-bottom: none; }
    .hero-actions { flex-direction: column; width: 100%; }
    .btn-primary, .btn-ghost { width: 100%; justify-content: center; }
}

@media (max-width: 768px) {
    .hiring-page .portfolio-card { padding: 24px; gap: 20px; }
    .hiring-page .card-image { height: 220px; }
    .hiring-page .card-title { font-size: 28px; }
    .hiring-page .card-description { font-size: 16px; line-height: 26px; }
    .hiring-page .site-footer { padding: 16px 24px; }
    .about-stat-row { grid-template-columns: 1fr; }
    .writing-cta { padding: 40px 24px; }
    .hero-name { font-size: clamp(56px, 15vw, 96px); }
    .company-card { padding: 28px 24px; }
    .nav { padding: 0 20px; }
}

/* ============================================================
   ABOUT PAGE — additional classes
   ============================================================ */

/* Stats strip below about hero */
.about-stats-strip {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--bg-2);
}
.about-stats-inner {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: stretch;
}
.about-stats-inner .hero-stat {
    flex: 1;
    border-right: 1px solid var(--border);
    padding: 32px 40px;
}
.about-stats-inner .hero-stat:last-child { border-right: none; }

/* Highlight label (small eyebrow inside highlight box) */
.about-highlight-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--purple);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 4px;
}

/* ============================================================
   WRITING PAGE — loading / empty states
   ============================================================ */

.writing-loading {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 80px 40px;
    color: var(--text-3);
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.08em;
    background: var(--bg-2);
}
.writing-loading-icon svg {
    animation: spin 1.2s linear infinite;
}
.writing-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 40px;
    color: var(--text-2);
    font-size: 15px;
    background: var(--bg-2);
}


/* ==================== CASE STUDY LAYOUT ==================== */
.case-study-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    min-height: 100vh;
    padding-top: 64px;
}

.stepper-container {
    position: sticky;
    top: 64px;
    height: calc(100vh - 64px);
    overflow-y: auto;
    background: var(--secondary-bg, #1a1a1a);
    border-right: 1px solid var(--border-color, rgba(255,255,255,0.08));
    padding: 24px 16px;
    flex-shrink: 0;
    scrollbar-width: none;
}
.stepper-container::-webkit-scrollbar { display: none; }

.stepper-header {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-secondary, #b0b0b0);
    margin-bottom: 20px;
    padding: 0 4px;
}

.case-study-layout .main-content {
    margin: 0 !important;
    padding: 48px 56px !important;
    overflow-y: auto;
    min-height: 0;
}

/* ── Content sections ── */
.content-section {
    padding-bottom: 56px;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--border-color, rgba(255,255,255,0.08));
    max-width: 720px;
}
.content-section:last-child { border-bottom: none; }

.section-icon {
    font-size: 28px;
    margin-bottom: 14px;
    display: block;
    line-height: 1;
}

.case-study-layout .section-title {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 14px;
    color: var(--text-primary, #fff);
    letter-spacing: -0.02em;
}
.case-study-layout .section-subtitle {
    font-size: 15px;
    color: var(--text-secondary, #b0b0b0);
    line-height: 1.75;
    margin-bottom: 28px;
}

.content-text {
    font-size: 15px;
    color: var(--text-secondary, #b0b0b0);
    line-height: 1.78;
    margin-bottom: 18px;
}

.case-study-layout h2 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary, #fff);
    margin: 36px 0 12px;
    letter-spacing: -0.01em;
}
.case-study-layout h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary, #fff);
    margin: 24px 0 8px;
}
.case-study-layout h4 {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary, #b0b0b0);
    margin: 20px 0 6px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.case-study-layout ul,
.case-study-layout ol {
    padding-left: 20px;
    margin-bottom: 18px;
}
.case-study-layout li {
    font-size: 15px;
    color: var(--text-secondary, #b0b0b0);
    line-height: 1.7;
    margin-bottom: 6px;
}

/* ── Figures / images ── */
.case-study-figure {
    margin: 28px 0;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border-color, rgba(255,255,255,0.08));
    background: var(--surface-bg, #2a2a2a);
}
.case-study-figure img {
    width: 100%;
    height: auto;
    display: block;
}
.case-study-figure figcaption {
    padding: 10px 16px;
    font-size: 12px;
    color: var(--text-secondary, #b0b0b0);
    background: var(--secondary-bg, #1a1a1a);
    border-top: 1px solid var(--border-color, rgba(255,255,255,0.08));
    line-height: 1.5;
}

/* ── Image placeholder ── */
.image-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 48px 24px;
    margin: 28px 0;
    background: var(--secondary-bg, #1a1a1a);
    border: 1.5px dashed var(--border-color, rgba(255,255,255,0.12));
    border-radius: 10px;
    text-align: center;
}
.image-placeholder-icon { font-size: 32px; }
.image-placeholder-text { font-size: 13px; color: var(--text-secondary, #b0b0b0); line-height: 1.5; }

/* ── Quote block ── */
.quote-block {
    margin: 28px 0;
    padding: 18px 22px;
    border-left: 3px solid var(--accent-purple, #667eea);
    background: rgba(102,126,234,0.07);
    border-radius: 0 8px 8px 0;
}
.quote-text {
    font-size: 15px;
    font-style: italic;
    color: var(--text-primary, #fff);
    line-height: 1.7;
    margin: 0;
}

/* ── Highlight box ── */
.highlight-box {
    margin: 28px 0;
    padding: 22px 24px;
    background: var(--secondary-bg, #1a1a1a);
    border: 1px solid var(--border-color, rgba(255,255,255,0.08));
    border-radius: 10px;
}
.highlight-title {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent-purple, #667eea);
    margin-bottom: 10px;
}
.highlight-text {
    font-size: 15px;
    color: var(--text-primary, #fff);
    line-height: 1.75;
    margin: 0;
}

/* ── Stats table ── */
.stats-table { margin: 20px 0 32px; }
.stats-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color, rgba(255,255,255,0.08));
}
.stats-table th {
    text-align: left;
    padding: 10px 16px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-secondary, #b0b0b0);
    background: var(--surface-bg, #2a2a2a);
    border-bottom: 1px solid var(--border-color, rgba(255,255,255,0.08));
}
.stats-table td {
    padding: 10px 16px;
    border-bottom: 1px solid var(--border-color, rgba(255,255,255,0.08));
    color: var(--text-primary, #fff);
    vertical-align: top;
    line-height: 1.5;
    font-size: 14px;
}
.stats-table tr:last-child td { border-bottom: none; }
.stats-table td:first-child {
    width: 110px;
    color: var(--text-secondary, #b0b0b0);
    background: var(--secondary-bg, #1a1a1a);
    font-size: 13px;
}

/* When loaded inside an iframe (bottom sheet) — hide nav, adjust layout */
.in-modal .nav-header { display: none !important; }
.in-modal .case-study-layout { padding-top: 0; }
.in-modal .stepper-container { top: 0; height: 100vh; }
.in-modal .content-section { max-width: none; }
.in-modal .case-study-layout .main-content { max-width: none !important; }
.writing-empty a { color: var(--orange); }
