/* ============================================================
   AAYUSH JHA PORTFOLIO — DESIGN SYSTEM
   Dark mode first. Single accent. Surgical precision.
   ============================================================ */

:root {
    --bg-primary: #0A0A0F;
    --bg-elevated: #13131A;
    --bg-card: #13131A;
    --border-subtle: #1F1F2E;
    --border-hover: #2A2A3E;
    --text-primary: #F0F0F5;
    --text-secondary: #8A8A9A;
    --text-muted: #5A5A6A;
    --accent: #F59E0B;
    --accent-dim: rgba(245, 158, 11, 0.1);
    --accent-glow: rgba(245, 158, 11, 0.3);

    --font-display: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;

    --space-unit: 8px;
    --section-padding: 160px;
    --content-max-width: 1200px;
    --card-padding: 64px;

    --transition-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

::selection {
    background: var(--accent-dim);
    color: var(--accent);
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--border-subtle); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

.section-container {
    max-width: var(--content-max-width);
    margin: 0 auto;
    padding: 0 calc(var(--space-unit) * 4);
}

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s var(--transition-smooth), transform 0.7s var(--transition-smooth);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---- NAVIGATION ---- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0 calc(var(--space-unit) * 4);
    transform: translateY(-100%);
    transition: transform 0.4s var(--transition-smooth), background 0.4s ease;
}

.navbar.visible {
    transform: translateY(0);
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-subtle);
}

.nav-container {
    max-width: var(--content-max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.nav-brand-mono {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 18px;
    color: var(--accent);
    letter-spacing: 0.05em;
}

.nav-links {
    display: flex;
    gap: calc(var(--space-unit) * 4);
}

.nav-link {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    letter-spacing: 0.1em;
    padding: 4px 0;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.3s var(--transition-smooth);
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-social {
    display: flex;
    gap: calc(var(--space-unit) * 2);
    align-items: center;
}

.nav-icon {
    color: var(--text-muted);
    transition: color 0.3s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 6px;
}

.nav-icon:hover {
    color: var(--accent);
    background: var(--accent-dim);
    transform: translateY(-1px);
}

.nav-mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-secondary);
    transition: all 0.3s ease;
}

.mobile-menu {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-subtle);
    padding: calc(var(--space-unit) * 3);
    display: none;
    flex-direction: column;
    gap: calc(var(--space-unit) * 2);
    z-index: 999;
}

.mobile-menu.open { display: flex; }

.mobile-link {
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--text-secondary);
    text-decoration: none;
    padding: calc(var(--space-unit) * 1.5) 0;
    border-bottom: 1px solid var(--border-subtle);
    transition: color 0.3s ease;
}

.mobile-link:hover { color: var(--accent); }

/* ---- HERO SECTION ---- */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: calc(var(--space-unit) * 8);
    background: var(--bg-primary);
}

.hero-container {
    max-width: 900px;
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: calc(var(--space-unit) * 4);
}

.hero-meta {
    position: absolute;
    top: calc(var(--space-unit) * 4);
    left: calc(var(--space-unit) * 4);
    display: flex;
    align-items: center;
    gap: calc(var(--space-unit) * 1.5);
    flex-wrap: wrap;
}

.hero-meta-item,
.hero-meta-separator {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

.hero-name {
    font-family: var(--font-display);
    font-size: clamp(48px, 10vw, 96px);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-top: calc(var(--space-unit) * 6);
}

.hero-tagline {
    display: flex;
    align-items: center;
    gap: calc(var(--space-unit) * 2);
    flex-wrap: wrap;
    justify-content: center;
}

.hero-tagline-primary {
    font-family: var(--font-body);
    font-size: clamp(16px, 3vw, 24px);
    font-weight: 300;
    color: var(--text-secondary);
    font-style: italic;
}

.hero-tagline-divider {
    color: var(--text-muted);
    font-size: 20px;
}

.hero-tagline-accent {
    font-family: var(--font-mono);
    font-size: clamp(14px, 2.5vw, 20px);
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.hero-description {
    font-family: var(--font-body);
    font-size: clamp(15px, 2vw, 18px);
    color: var(--text-secondary);
    max-width: 640px;
    line-height: 1.7;
    margin-top: calc(var(--space-unit) * 2);
}

/* ---- DEPTH STACK ---- */
.depth-stack {
    margin-top: calc(var(--space-unit) * 8);
    width: 100%;
    max-width: 560px;
}

.depth-stack-title {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-muted);
    letter-spacing: 0.2em;
    margin-bottom: calc(var(--space-unit) * 3);
    text-align: left;
}

.depth-stack-layers {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.depth-layer {
    position: relative;
    cursor: pointer;
}

.depth-layer-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: calc(var(--space-unit) * 1.5) calc(var(--space-unit) * 2.5);
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-left: 3px solid var(--border-subtle);
    transition: all 0.3s var(--transition-smooth);
}

.depth-layer:hover .depth-layer-bar {
    background: var(--accent-dim);
    border-color: var(--accent);
    border-left-color: var(--accent);
    transform: translateX(4px);
}

.depth-layer-name {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.08em;
}

.depth-layer-tech {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

.depth-layer:hover .depth-layer-tech { color: var(--accent); }

/* ---- HERO CTA ---- */
.hero-cta {
    margin-top: calc(var(--space-unit) * 6);
    display: inline-flex;
    align-items: center;
    gap: calc(var(--space-unit) * 1.5);
    padding: calc(var(--space-unit) * 2) calc(var(--space-unit) * 4);
    background: transparent;
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-decoration: none;
    transition: all 0.3s var(--transition-smooth);
}

.hero-cta:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-dim);
    transform: translateY(-2px);
}

.hero-cta svg { transition: transform 0.3s ease; }
.hero-cta:hover svg { transform: translateX(4px); }

/* ---- SCROLL INDICATOR ---- */
.hero-scroll-indicator {
    position: absolute;
    bottom: calc(var(--space-unit) * 4);
    left: 50%;
    transform: translateX(-50%);
}

.scroll-line {
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, var(--text-muted), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.7); }
    50% { opacity: 1; transform: scaleY(1); }
}

/* ---- STACK SECTION ---- */
.stack-section {
    background: var(--bg-primary);
    padding: var(--section-padding) 0;
}

.section-header {
    margin-bottom: calc(var(--space-unit) * 12);
    text-align: center;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(36px, 6vw, 56px);
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    margin-bottom: calc(var(--space-unit) * 2);
}

.section-subtitle {
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--accent);
    letter-spacing: 0.1em;
    margin-bottom: calc(var(--space-unit) * 3);
}

.section-intro {
    font-family: var(--font-body);
    font-size: 17px;
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ---- PROJECT CARDS ---- */
.project-card { margin-bottom: 1px; }

.project-card-inner {
    display: grid;
    grid-template-columns: 40% 60%;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    overflow: hidden;
    transition: border-color 0.4s ease;
}

.project-card:hover .project-card-inner { border-color: var(--border-hover); }

.project-content {
    padding: calc(var(--space-unit) * 8);
    display: flex;
    flex-direction: column;
    gap: calc(var(--space-unit) * 4);
}

.project-label {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.1em;
}

.project-title {
    font-family: var(--font-display);
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.project-hook {
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--text-secondary);
    font-style: italic;
    line-height: 1.6;
    border-left: 2px solid var(--border-subtle);
    padding-left: calc(var(--space-unit) * 2);
}

.project-details {
    display: flex;
    flex-direction: column;
    gap: calc(var(--space-unit) * 4);
    margin-top: calc(var(--space-unit) * 2);
}

.detail-block {
    display: flex;
    flex-direction: column;
    gap: calc(var(--space-unit) * 1);
}

.detail-title {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.detail-text {
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ---- PROJECT VISUALS ---- */
.project-visual {
    padding: calc(var(--space-unit) * 8);
    background: rgba(0, 0, 0, 0.2);
    position: relative;
    display: flex;
    flex-direction: column;
    gap: calc(var(--space-unit) * 4);
    overflow: hidden;
}

.visual-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: calc(var(--space-unit) * 3);
}

.visual-caption {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
    text-align: center;
    margin-top: auto;
}

/* AR Engine Preview */
.engine-demo {
    background: var(--bg-primary);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    overflow: hidden;
}

.engine-header {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border-subtle);
}

.engine-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.engine-dot.red { background: #EF4444; }
.engine-dot.yellow { background: #F59E0B; }
.engine-dot.green { background: #10B981; }

.engine-title {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-muted);
    margin-left: auto;
    letter-spacing: 0.05em;
}

.engine-canvas {
    height: 160px;
    position: relative;
    background: linear-gradient(135deg, #0A0A0F 0%, #13131A 100%);
    overflow: hidden;
}

.engine-grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(245, 158, 11, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(245, 158, 11, 0.05) 1px, transparent 1px);
    background-size: 20px 20px;
}

.engine-entity {
    position: absolute;
    width: 24px;
    height: 24px;
    background: var(--accent);
    border-radius: 4px;
    top: 50%;
    left: 20%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 20px var(--accent-glow);
    animation: entityFloat 3s ease-in-out infinite;
}

@keyframes entityFloat {
    0%, 100% { left: 20%; }
    50% { left: 80%; }
}

/* Code Snippet */
.code-snippet {
    background: var(--bg-primary);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    overflow: hidden;
}

.code-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border-subtle);
}

.code-lang {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.1em;
}

.code-filename {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-muted);
}

.code-body {
    padding: 16px;
    margin: 0;
    overflow-x: auto;
}

.code-body code {
    font-family: var(--font-mono);
    font-size: 12px;
    line-height: 1.8;
    color: var(--text-secondary);
}

.code-comment { color: var(--text-muted); }
.code-string { color: #A5D6A7; }
.code-keyword { color: #CE93D8; }
.code-number { color: #FFCC80; }

/* Janakpur Screenshots */
.screenshot-strip {
    display: flex;
    flex-direction: column;
    gap: calc(var(--space-unit) * 3);
}

.screenshot-item {
    display: flex;
    flex-direction: column;
    gap: calc(var(--space-unit) * 1);
}

.screenshot-frame {
    background: var(--bg-primary);
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    padding: calc(var(--space-unit) * 2);
    min-height: 100px;
}

.screenshot-label {
    font-family: var(--font-mono);
    font-size: 9px;
    color: var(--text-muted);
    letter-spacing: 0.1em;
}

/* Admin Dashboard Mock */
.admin-dash .dash-header {
    display: flex;
    align-items: center;
    gap: calc(var(--space-unit) * 2);
    padding-bottom: calc(var(--space-unit) * 2);
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: calc(var(--space-unit) * 2);
}

.dash-logo {
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 700;
    color: var(--accent);
    background: var(--accent-dim);
    padding: 4px 8px;
    border-radius: 4px;
}

.dash-nav {
    font-family: var(--font-mono);
    font-size: 9px;
    color: var(--text-muted);
}

.dash-stats {
    display: flex;
    gap: calc(var(--space-unit) * 3);
}

.stat-box {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.stat-num {
    font-family: var(--font-mono);
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-label {
    font-family: var(--font-mono);
    font-size: 8px;
    color: var(--text-muted);
    letter-spacing: 0.1em;
}

/* Ledger Mock */
.ledger-header {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.1em;
    margin-bottom: calc(var(--space-unit) * 1.5);
    padding-bottom: calc(var(--space-unit) * 1);
    border-bottom: 1px solid var(--border-subtle);
}

.ledger-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(31, 31, 46, 0.5);
}

.ledger-status {
    font-size: 8px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 3px;
    letter-spacing: 0.05em;
}

.ledger-status.paid {
    background: rgba(16, 185, 129, 0.15);
    color: #10B981;
}

.ledger-status.partial {
    background: rgba(245, 158, 11, 0.15);
    color: var(--accent);
}

/* MCQ Mock */
.mcq-header {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.mcq-timer {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 8px;
}

.mcq-question {
    font-family: var(--font-body);
    font-size: 11px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    line-height: 1.5;
}

.mcq-options {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mcq-opt {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-secondary);
    padding: 4px 8px;
    border: 1px solid var(--border-subtle);
    border-radius: 4px;
    cursor: default;
}

.mcq-opt.selected {
    border-color: var(--accent);
    background: var(--accent-dim);
    color: var(--accent);
}

/* Metric Badge */
.metric-badge {
    position: absolute;
    top: calc(var(--space-unit) * 4);
    right: calc(var(--space-unit) * 4);
    display: flex;
    align-items: center;
    gap: calc(var(--space-unit) * 3);
    background: var(--bg-primary);
    border: 1px solid var(--border-subtle);
    padding: calc(var(--space-unit) * 2) calc(var(--space-unit) * 3);
    border-radius: 6px;
}

.metric-badge-item { text-align: center; }

.metric-badge-num {
    display: block;
    font-family: var(--font-mono);
    font-size: 18px;
    font-weight: 700;
    color: var(--accent);
}

.metric-badge-label {
    font-family: var(--font-mono);
    font-size: 8px;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    line-height: 1.4;
}

.metric-badge-divider {
    width: 1px;
    height: 32px;
    background: var(--border-subtle);
}

/* Matrimonial Preview */
.tier-matrix {
    background: var(--bg-primary);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: calc(var(--space-unit) * 3);
}

.tier-matrix-title {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.15em;
    margin-bottom: calc(var(--space-unit) * 2);
    text-align: center;
}

.tier-table {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: var(--border-subtle);
    border-radius: 4px;
    overflow: hidden;
}

.tier-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 1px;
    background: var(--border-subtle);
}

.tier-row.tier-header { background: var(--bg-elevated); }

.tier-cell {
    background: var(--bg-primary);
    padding: 8px 6px;
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-secondary);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.tier-row.tier-header .tier-cell {
    background: var(--bg-elevated);
    color: var(--text-muted);
    font-weight: 600;
    font-size: 9px;
    letter-spacing: 0.1em;
}

.tier-name {
    font-weight: 600;
    color: var(--text-primary);
}

.tier-name.guest { color: var(--text-muted); }
.tier-name.tier1 { color: #8A8A9A; }
.tier-name.tier2 { color: #F0F0F5; }
.tier-name.tier3 { color: var(--accent); }

.tier-check {
    color: #10B981;
    font-weight: 700;
}

.tier-x {
    color: #EF4444;
    font-weight: 700;
}

.match-interface { margin-top: calc(var(--space-unit) * 2); }

.match-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: calc(var(--space-unit) * 3);
    display: flex;
    align-items: center;
    gap: calc(var(--space-unit) * 3);
}

.match-photo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-dim), var(--accent-glow));
    border: 2px solid var(--accent);
}

.match-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.match-name {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.match-meta {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-muted);
}

.match-compat {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    color: var(--accent);
    margin-top: 2px;
}

/* Chat Preview */
.chat-interface {
    display: grid;
    grid-template-columns: 160px 1fr;
    background: var(--bg-primary);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    overflow: hidden;
    min-height: 280px;
}

.chat-sidebar {
    background: var(--bg-elevated);
    border-right: 1px solid var(--border-subtle);
    padding: calc(var(--space-unit) * 2);
    display: flex;
    flex-direction: column;
    gap: calc(var(--space-unit) * 2);
}

.chat-search {
    font-family: var(--font-mono);
    font-size: 9px;
    color: var(--text-muted);
    padding: 6px 8px;
    background: var(--bg-primary);
    border: 1px solid var(--border-subtle);
    border-radius: 4px;
}

.chat-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.chat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px;
    border-radius: 4px;
    cursor: default;
    transition: background 0.2s ease;
}

.chat-item.active,
.chat-item:hover { background: var(--accent-dim); }

.chat-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 600;
    color: var(--text-secondary);
}

.chat-item.active .chat-avatar {
    background: var(--accent-dim);
    color: var(--accent);
    border: 1px solid var(--accent);
}

.chat-name {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 600;
    color: var(--text-primary);
}

.chat-last {
    font-family: var(--font-mono);
    font-size: 8px;
    color: var(--text-muted);
    margin-top: 1px;
}

.chat-main {
    display: flex;
    flex-direction: column;
    padding: calc(var(--space-unit) * 2);
}

.chat-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: calc(var(--space-unit) * 2);
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: calc(var(--space-unit) * 2);
}

.chat-header-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--accent-dim);
    border: 1px solid var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 600;
    color: var(--accent);
}

.chat-header-name {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.chat-header-status {
    font-family: var(--font-mono);
    font-size: 9px;
    color: #10B981;
}

.chat-messages {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: calc(var(--space-unit) * 2);
}

.message {
    display: flex;
    flex-direction: column;
    gap: 2px;
    max-width: 80%;
}

.message.received { align-self: flex-start; }
.message.sent { align-self: flex-end; }

.message-bubble {
    padding: 8px 12px;
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 11px;
    line-height: 1.5;
}

.message.received .message-bubble {
    background: var(--bg-elevated);
    color: var(--text-secondary);
    border-bottom-left-radius: 4px;
}

.message.sent .message-bubble {
    background: var(--accent-dim);
    color: var(--accent);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-bottom-right-radius: 4px;
}

.message-time {
    font-family: var(--font-mono);
    font-size: 8px;
    color: var(--text-muted);
}

.chat-input {
    margin-top: auto;
    padding: 8px 12px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-muted);
}

.social-graph {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: calc(var(--space-unit) * 2);
    background: var(--bg-primary);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
}

.graph-svg {
    width: 100%;
    max-width: 200px;
    height: auto;
}

.graph-label {
    font-family: var(--font-mono);
    font-size: 9px;
    color: var(--text-muted);
    letter-spacing: 0.15em;
}

/* CMS Preview */
.desk-interface {
    background: linear-gradient(135deg, #3D2817 0%, #2A1B0F 100%);
    border-radius: 8px;
    padding: calc(var(--space-unit) * 3);
    position: relative;
    overflow: hidden;
}

.desk-wood {
    position: relative;
    padding-left: 24px;
}

.desk-ruler {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 20px;
    background: linear-gradient(to bottom, #8B6914, #6B4E0A);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    padding: 4px 0;
    border-radius: 2px 0 0 2px;
}

.desk-ruler span {
    font-family: var(--font-mono);
    font-size: 7px;
    color: rgba(255, 255, 255, 0.6);
}

.desk-paper {
    background: #F5F0E8;
    border-radius: 2px;
    padding: calc(var(--space-unit) * 3);
    min-height: 200px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.paper-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: calc(var(--space-unit) * 2);
    border-bottom: 1px solid #D4CFC7;
    margin-bottom: calc(var(--space-unit) * 2);
}

.paper-date {
    font-family: var(--font-mono);
    font-size: 10px;
    color: #8B8680;
}

.paper-subject {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 600;
    color: #4A453F;
}

.paper-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.paper-line {
    height: 20px;
    border-bottom: 1px solid #E8E3DB;
    display: flex;
    align-items: flex-end;
}

.paper-text {
    font-family: var(--font-body);
    font-size: 12px;
    color: #4A453F;
    line-height: 1.4;
}

.paper-photo-placeholder {
    margin-top: calc(var(--space-unit) * 2);
    padding: calc(var(--space-unit) * 3);
    background: #E8E3DB;
    border: 2px dashed #C4BFB7;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.photo-icon { font-size: 20px; }

.paper-photo-placeholder span {
    font-family: var(--font-mono);
    font-size: 9px;
    color: #8B8680;
}

.desk-caption {
    font-style: italic;
    color: var(--text-secondary);
}

/* ---- METRICS SECTION ---- */
.metrics-section {
    background: var(--bg-elevated);
    padding: calc(var(--space-unit) * 16) 0;
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border-subtle);
    border: 1px solid var(--border-subtle);
}

.metric-block {
    background: var(--bg-primary);
    padding: calc(var(--space-unit) * 6);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: calc(var(--space-unit) * 1);
    transition: background 0.3s ease;
}

.metric-block:hover { background: var(--bg-elevated); }

.metric-number {
    font-family: var(--font-mono);
    font-size: clamp(40px, 6vw, 64px);
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
    letter-spacing: -0.02em;
}

.metric-label {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-top: calc(var(--space-unit) * 1);
}

.metric-desc {
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
    max-width: 200px;
    margin-top: calc(var(--space-unit) * 1);
}

/* ---- PHILOSOPHY SECTION ---- */
.philosophy-section {
    background: var(--bg-primary);
    padding: var(--section-padding) 0;
}

.section-eyebrow {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.15em;
    display: block;
    margin-bottom: calc(var(--space-unit) * 3);
}

.philosophy-intro {
    font-family: var(--font-display);
    font-size: clamp(20px, 3vw, 28px);
    font-weight: 300;
    font-style: italic;
    color: var(--text-secondary);
    line-height: 1.5;
    max-width: 600px;
    margin: 0 auto;
}

.principles {
    max-width: 720px;
    margin: calc(var(--space-unit) * 12) auto 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.principle {
    display: flex;
    gap: calc(var(--space-unit) * 4);
    padding: calc(var(--space-unit) * 6) 0;
}

.principle-number {
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 0.05em;
    flex-shrink: 0;
    width: 32px;
    text-align: right;
    padding-top: 2px;
}

.principle-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: calc(var(--space-unit) * 2);
}

.principle-title {
    font-family: var(--font-display);
    font-size: clamp(20px, 3vw, 28px);
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.principle-text {
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.8;
}

.principle-connector {
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, var(--border-subtle), var(--accent), var(--border-subtle));
    margin-left: 48px;
}

/* ---- CONTACT SECTION ---- */
.contact-section {
    background: var(--bg-primary);
    padding: var(--section-padding) 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.contact-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: calc(var(--space-unit) * 4);
}

.contact-name {
    font-family: var(--font-display);
    font-size: clamp(40px, 6vw, 72px);
    font-weight: 900;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.contact-email {
    font-family: var(--font-mono);
    font-size: 16px;
    color: var(--accent);
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: opacity 0.3s ease;
}

.contact-email:hover {
    opacity: 0.8;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.contact-social {
    display: flex;
    gap: calc(var(--space-unit) * 3);
    margin-top: calc(var(--space-unit) * 2);
}

.contact-social-link {
    display: inline-flex;
    align-items: center;
    gap: calc(var(--space-unit) * 1.5);
    padding: calc(var(--space-unit) * 1.5) calc(var(--space-unit) * 3);
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-social-link:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-dim);
    transform: translateY(-2px);
}

.contact-availability {
    margin-top: calc(var(--space-unit) * 4);
    text-align: left;
    max-width: 420px;
}

.availability-title {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    margin-bottom: calc(var(--space-unit) * 2);
}

.availability-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: calc(var(--space-unit) * 1.5);
}

.availability-list li {
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--text-secondary);
    padding-left: calc(var(--space-unit) * 3);
    position: relative;
    line-height: 1.6;
}

.availability-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
}

.contact-cta {
    margin-top: calc(var(--space-unit) * 6);
    display: inline-flex;
    align-items: center;
    gap: calc(var(--space-unit) * 2);
    padding: calc(var(--space-unit) * 2.5) calc(var(--space-unit) * 5);
    background: transparent;
    border: 1px solid var(--text-muted);
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-decoration: none;
    transition: all 0.3s var(--transition-smooth);
}

.contact-cta:hover {
    border-color: var(--accent);
    background: var(--accent);
    color: var(--bg-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px var(--accent-glow);
}

.contact-cta:hover svg {
    stroke: var(--bg-primary);
    transform: translateX(4px);
}

.contact-cta svg {
    transition: transform 0.3s ease, stroke 0.3s ease;
}

/* ---- PREMIUM INTERACTIVE SHOWCASE BROWSER ---- */
.showcase-browser {
    background: var(--bg-primary);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    transition: border-color 0.4s var(--transition-smooth), transform 0.4s var(--transition-smooth);
    width: 100%;
    margin-bottom: calc(var(--space-unit) * 2);
}

.showcase-browser:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.browser-header {
    display: flex;
    align-items: center;
    background: var(--bg-elevated);
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-subtle);
    gap: 16px;
}

.browser-dots {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-shrink: 0;
}

.browser-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.browser-dot.red { background: #EF4444; }
.browser-dot.yellow { background: #F59E0B; }
.browser-dot.green { background: #10B981; }

.browser-address {
    background: var(--bg-primary);
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    padding: 4px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
    flex-grow: 1;
    max-width: 320px;
    margin: 0 auto;
}

.browser-lock {
    display: flex;
    align-items: center;
    color: #10B981;
    flex-shrink: 0;
}

.address-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.browser-content {
    background: #09090d;
    position: relative;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.showcase-tab-content {
    display: none;
    width: 100%;
    height: 100%;
}

.showcase-tab-content.active {
    display: block;
    animation: fadeInTab 0.4s var(--transition-smooth);
}

@keyframes fadeInTab {
    from { opacity: 0; transform: scale(0.98); }
    to { opacity: 1; transform: scale(1); }
}

.showcase-img {
    width: 100%;
    height: auto;
    max-height: 380px;
    object-fit: contain;
    display: block;
    background: #000;
}

/* Tab navigation buttons styling */
.browser-tabs-nav {
    display: flex;
    background: var(--bg-elevated);
    border-top: 1px solid var(--border-subtle);
    padding: 6px;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none; /* Hide scrollbars */
}

.browser-tabs-nav::-webkit-scrollbar {
    display: none;
}

.browser-tab-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 6px 12px;
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s var(--transition-smooth);
    white-space: nowrap;
    letter-spacing: 0.05em;
}

.browser-tab-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.03);
}

.browser-tab-btn.active {
    color: var(--accent);
    background: var(--accent-dim);
    border: 1px solid rgba(245, 158, 11, 0.2);
}

/* ---- PROJECT LINKS ---- */
.project-links {
    margin-top: calc(var(--space-unit) * 4);
    display: flex;
    flex-direction: column;
    gap: calc(var(--space-unit) * 2);
}

.project-link-btn {
    display: inline-flex;
    align-items: center;
    gap: calc(var(--space-unit) * 1.5);
    padding: calc(var(--space-unit) * 2) calc(var(--space-unit) * 3);
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-decoration: none;
    transition: all 0.3s var(--transition-smooth);
    width: fit-content;
    cursor: pointer;
}

.project-link-btn:hover {
    background: var(--accent);
    color: var(--bg-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px var(--accent-glow);
}

.project-link-btn svg {
    transition: transform 0.3s ease;
}

.project-link-btn:hover svg {
    transform: translate(2px, -2px);
}

.project-link-text {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-muted);
    font-style: italic;
}

/* ---- FOOTER ---- */
.footer {
    background: var(--bg-primary);
    padding: calc(var(--space-unit) * 8) 0;
    border-top: 1px solid var(--border-subtle);
}

.footer-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: calc(var(--space-unit) * 2);
}

.footer-build {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

.footer-deploy {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-muted);
}

.footer-copy {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    margin-top: calc(var(--space-unit) * 2);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 1199px) {
    :root {
        --section-padding: 120px;
        --card-padding: 48px;
    }

    .project-card-inner { grid-template-columns: 1fr; }
    .project-visual { order: -1; padding: calc(var(--space-unit) * 4); }
    .project-content { padding: calc(var(--space-unit) * 6); }
    .metrics-grid { grid-template-columns: repeat(2, 1fr); }

    .metric-badge {
        position: relative;
        top: auto;
        right: auto;
        margin-top: calc(var(--space-unit) * 2);
        align-self: flex-start;
    }

    .chat-interface { grid-template-columns: 1fr; }
    .chat-sidebar { display: none; }
}

@media (max-width: 767px) {
    :root {
        --section-padding: 80px;
        --card-padding: 32px;
    }

    .nav-links,
    .nav-social { display: none; }

    .nav-mobile-toggle { display: flex; }

    .hero-meta {
        position: relative;
        top: auto;
        left: auto;
        justify-content: center;
        margin-bottom: calc(var(--space-unit) * 4);
    }

    .hero-name { font-size: 48px; }
    .depth-layer-tech { display: none; }
    .metrics-grid { grid-template-columns: 1fr; }

    .principle {
        flex-direction: column;
        gap: calc(var(--space-unit) * 2);
    }

    .principle-number { text-align: left; }

    .principle-connector {
        margin-left: 0;
        height: 32px;
    }

    .contact-social {
        flex-direction: column;
        width: 100%;
        max-width: 280px;
    }

    .contact-social-link { justify-content: center; }
    .screenshot-strip { gap: calc(var(--space-unit) * 2); }
    .tier-row { grid-template-columns: 1fr 1fr; }
    .tier-row.tier-header { display: none; }

    .tier-cell:nth-child(3),
    .tier-cell:nth-child(4) { display: none; }
}

@media (max-width: 480px) {
    .hero { padding: calc(var(--space-unit) * 4); }
    .hero-name { font-size: 40px; }
    .project-content { padding: calc(var(--space-unit) * 4); }
    .project-visual { padding: calc(var(--space-unit) * 3); }
    .metric-block { padding: calc(var(--space-unit) * 4); }
    .section-container { padding: 0 calc(var(--space-unit) * 2); }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}