/* ============================================================
   OM/OS v3 — design system
   Dark terminal × editorial. One CSS file for every page.
   ============================================================ */

:root {
    --bg: #05070b;
    --bg-1: #0a0e15;
    --bg-2: #0f1520;
    --bg-3: #151d2b;
    --bg-4: #1c2536;

    --line: rgba(255, 255, 255, 0.07);
    --line-2: rgba(255, 255, 255, 0.13);

    --text: #e8ecf3;
    --text-2: #a7b1c2;
    --text-3: #6f7a8d;

    --gold: #f2b544;
    --cyan: #4cc9f0;
    --green: #3ddc97;
    --red: #ff5c7a;
    --violet: #a78bfa;

    --gold-dim: rgba(242, 181, 68, 0.14);
    --cyan-dim: rgba(76, 201, 240, 0.14);
    --green-dim: rgba(61, 220, 151, 0.14);
    --red-dim: rgba(255, 92, 122, 0.14);
    --violet-dim: rgba(167, 139, 250, 0.14);

    --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', 'SF Mono', Menlo, monospace;

    --radius: 8px;
    --radius-lg: 14px;
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
    --glow-gold: 0 0 0 1px rgba(242, 181, 68, 0.35), 0 0 30px rgba(242, 181, 68, 0.12);
    --ease: cubic-bezier(0.2, 0.8, 0.2, 1);

    /* legacy aliases used by the options terminal */
    --bg-deep: var(--bg);
    --bg-dark: var(--bg-1);
    --bg-panel: var(--bg-2);
    --bg-panel-2: var(--bg-3);
    --text-on-dark: var(--text);
    --text-dim: var(--text-3);
    --border-dark: var(--line);
    --border-gold: rgba(242, 181, 68, 0.3);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body::before {
    /* subtle grid */
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse at 50% 0%, black 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at 50% 0%, black 30%, transparent 80%);
    pointer-events: none;
    z-index: 0;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--gold); color: #000; }

.container { width: min(1180px, calc(100% - 48px)); margin: 0 auto; position: relative; z-index: 1; }
.container-wide { width: min(1320px, calc(100% - 48px)); margin: 0 auto; position: relative; z-index: 1; }
.container-narrow { width: min(780px, calc(100% - 48px)); margin: 0 auto; position: relative; z-index: 1; }

.skip-link {
    position: absolute; left: -999px; top: 8px; z-index: 1000;
    background: var(--gold); color: #000; padding: 8px 14px; border-radius: 6px; font-weight: 600;
}
.skip-link:focus { left: 8px; }

/* ---------- type ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: -0.02em; line-height: 1.1; }
.kicker {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--gold);
}
.kicker::before { content: ''; width: 22px; height: 1px; background: var(--gold); }
.h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); margin: 14px 0 14px; font-weight: 600; }
.lede { color: var(--text-2); font-size: 1.1rem; max-width: 62ch; }
.mono { font-family: var(--font-mono); }
.muted { color: var(--text-3); }
.gold { color: var(--gold); } .cyan { color: var(--cyan); } .green { color: var(--green); } .red { color: var(--red); } .violet { color: var(--violet); }

.section { padding: 110px 0; position: relative; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 48px; flex-wrap: wrap; }
.section-head .h2 { margin-bottom: 8px; }
.section-alt { background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.015) 30%, rgba(255, 255, 255, 0.015) 70%, transparent); }
.divider { height: 1px; background: linear-gradient(90deg, transparent, var(--line-2), transparent); }

/* ---------- buttons / chips ---------- */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 20px; border-radius: var(--radius);
    font-weight: 600; font-size: 0.92rem; letter-spacing: 0.01em;
    border: 1px solid var(--line-2); color: var(--text);
    transition: transform 0.25s var(--ease), background 0.25s, border-color 0.25s, box-shadow 0.25s;
    cursor: pointer; white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); border-color: rgba(255, 255, 255, 0.3); background: rgba(255, 255, 255, 0.04); }
.btn-primary { background: var(--gold); color: #0a0a0a; border-color: var(--gold); }
.btn-primary:hover { background: #ffc85c; border-color: #ffc85c; box-shadow: var(--glow-gold); }
.btn-ghost { background: transparent; }
.btn-sm { padding: 8px 14px; font-size: 0.82rem; }
.btn kbd { font-family: var(--font-mono); font-size: 0.7rem; padding: 2px 6px; border-radius: 4px; background: rgba(255, 255, 255, 0.08); border: 1px solid var(--line-2); color: var(--text-2); }

.chip {
    display: inline-flex; align-items: center; gap: 6px;
    font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.04em;
    padding: 5px 10px; border-radius: 999px;
    background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line-2); color: var(--text-2);
}
.chip.gold { background: var(--gold-dim); color: var(--gold); border-color: rgba(242, 181, 68, 0.35); }
.chip.cyan { background: var(--cyan-dim); color: var(--cyan); border-color: rgba(76, 201, 240, 0.35); }
.chip.green { background: var(--green-dim); color: var(--green); border-color: rgba(61, 220, 151, 0.35); }
.chip.red { background: var(--red-dim); color: var(--red); border-color: rgba(255, 92, 122, 0.35); }
.chip.violet { background: var(--violet-dim); color: var(--violet); border-color: rgba(167, 139, 250, 0.35); }
.chip .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.chip .dot.pulse { animation: pulse 1.6s ease-in-out infinite; }

.tag {
    display: inline-block; font-family: var(--font-mono); font-size: 0.72rem;
    padding: 4px 9px; border-radius: 5px; background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--line); color: var(--text-2); cursor: default;
    transition: border-color 0.2s, color 0.2s;
}
.tag:hover, .tag.tag-active { border-color: var(--gold); color: var(--gold); }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- cards / panels ---------- */
.card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015));
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 28px;
    position: relative;
    transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
}
.card:hover { transform: translateY(-3px); border-color: var(--line-2); box-shadow: var(--shadow); }
.card-link { display: block; color: inherit; }
.card-link:hover .arrow { transform: translateX(4px); }
.arrow { display: inline-block; transition: transform 0.25s var(--ease); }

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- market bar ---------- */
.market-bar {
    position: relative; z-index: 101;
    background: var(--bg-1); border-bottom: 1px solid var(--line);
    font-family: var(--font-mono); font-size: 0.72rem; height: 30px;
    display: flex; align-items: center; overflow: hidden;
}
.market-bar-inner { width: 100%; display: flex; align-items: center; gap: 18px; padding: 0 24px; }
.market-bar-label { color: var(--gold); letter-spacing: 0.14em; text-transform: uppercase; flex: 0 0 auto; }
.market-bar-items { display: flex; gap: 22px; flex: 1; overflow: hidden; white-space: nowrap; }
.market-item { color: var(--text-2); }
.market-item strong { color: var(--text); font-weight: 600; margin-right: 6px; }
.market-item .up { color: var(--green); }
.market-item .down { color: var(--red); }
.market-loading { color: var(--text-3); }
.market-clock { margin-left: auto; color: var(--text-3); flex: 0 0 auto; }
.market-clock strong { color: var(--text-2); font-weight: 500; }

/* ---------- nav ---------- */
.navbar {
    position: sticky; top: 0; z-index: 100;
    background: rgba(5, 7, 11, 0.72);
    backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
    border-bottom: 1px solid var(--line);
    transition: background 0.3s;
}
.navbar.scrolled { background: rgba(5, 7, 11, 0.92); }
.nav-container { width: min(1320px, calc(100% - 48px)); margin: 0 auto; height: 64px; display: flex; align-items: center; gap: 28px; }
.nav-logo { font-family: var(--font-mono); font-weight: 600; font-size: 0.95rem; letter-spacing: 0.02em; display: inline-flex; align-items: center; gap: 10px; }
.nav-logo .logo-mark {
    width: 28px; height: 28px; border-radius: 7px; display: grid; place-items: center;
    background: var(--gold); color: #000; font-size: 0.72rem; font-weight: 700; letter-spacing: 0;
}
.nav-logo .logo-sub { color: var(--text-3); font-weight: 400; }
.nav-menu { display: flex; list-style: none; gap: 4px; margin-left: auto; }
.nav-link {
    display: inline-block; padding: 8px 12px; border-radius: 6px;
    font-size: 0.88rem; color: var(--text-2); transition: color 0.2s, background 0.2s;
}
.nav-link:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.nav-link.active { color: var(--gold); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.hamburger { display: none; width: 40px; height: 40px; border-radius: 8px; border: 1px solid var(--line-2); flex-direction: column; gap: 5px; align-items: center; justify-content: center; }
.hamburger .bar { width: 18px; height: 2px; background: var(--text); transition: transform 0.3s, opacity 0.3s; }
.hamburger.active .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active .bar:nth-child(2) { opacity: 0; }
.hamburger.active .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- command palette ---------- */
.cmdk-backdrop {
    position: fixed; inset: 0; z-index: 1000; background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
    display: none; align-items: flex-start; justify-content: center; padding-top: 12vh;
}
.cmdk-backdrop.open { display: flex; }
.cmdk {
    width: min(620px, calc(100% - 32px)); background: var(--bg-2); border: 1px solid var(--line-2);
    border-radius: 14px; box-shadow: var(--shadow), var(--glow-gold); overflow: hidden;
    animation: cmdkIn 0.18s var(--ease);
}
@keyframes cmdkIn { from { opacity: 0; transform: translateY(-8px) scale(0.98); } to { opacity: 1; transform: none; } }
.cmdk-input {
    width: 100%; padding: 18px 20px; background: transparent; border: 0; outline: 0;
    font-family: var(--font-mono); font-size: 1rem; color: var(--text);
    border-bottom: 1px solid var(--line);
}
.cmdk-input::placeholder { color: var(--text-3); }
.cmdk-list { list-style: none; max-height: 380px; overflow-y: auto; padding: 8px; }
.cmdk-item { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 8px; cursor: pointer; color: var(--text-2); font-size: 0.92rem; }
.cmdk-item .ico { font-family: var(--font-mono); color: var(--gold); width: 20px; text-align: center; }
.cmdk-item .sub { margin-left: auto; font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-3); }
.cmdk-item.selected, .cmdk-item:hover { background: rgba(255, 255, 255, 0.06); color: var(--text); }
.cmdk-foot { display: flex; gap: 16px; padding: 10px 16px; border-top: 1px solid var(--line); font-family: var(--font-mono); font-size: 0.68rem; color: var(--text-3); }
.cmdk-foot kbd { padding: 1px 5px; border: 1px solid var(--line-2); border-radius: 4px; margin-right: 4px; }

/* ---------- boot screen ---------- */
.boot {
    position: fixed; inset: 0; z-index: 2000; background: var(--bg);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-mono); color: var(--text-2);
    transition: opacity 0.5s var(--ease), visibility 0.5s;
}
.boot.done { opacity: 0; visibility: hidden; }
.boot-inner { width: min(520px, calc(100% - 48px)); }
.boot-line { font-size: 0.82rem; line-height: 1.9; white-space: pre; opacity: 0; animation: bootLine 0.2s forwards; }
.boot-line .ok { color: var(--green); }
.boot-line .k { color: var(--gold); }
@keyframes bootLine { to { opacity: 1; } }
.boot-bar { height: 2px; background: var(--line-2); margin-top: 18px; overflow: hidden; border-radius: 2px; }
.boot-bar span { display: block; height: 100%; width: 0; background: var(--gold); animation: bootBar 1.3s var(--ease) forwards; }
@keyframes bootBar { to { width: 100%; } }
.boot-skip { position: absolute; bottom: 24px; right: 24px; font-size: 0.7rem; color: var(--text-3); letter-spacing: 0.1em; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: calc(100vh - 94px); display: flex; align-items: center; padding: 80px 0 60px; overflow: hidden; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: 0.9; }
.hero-glow { position: absolute; width: 700px; height: 700px; border-radius: 50%; filter: blur(120px); opacity: 0.16; pointer-events: none; }
.hero-glow.a { background: var(--gold); top: -300px; right: -200px; }
.hero-glow.b { background: var(--cyan); bottom: -350px; left: -250px; opacity: 0.14; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; position: relative; z-index: 1; }
.hero-eyebrow { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 26px; }
.hero-title { font-size: clamp(3rem, 7.4vw, 6.4rem); font-weight: 600; line-height: 0.98; letter-spacing: -0.035em; }
.hero-title .thin { font-weight: 300; color: var(--text-2); }
.hero-title .accent { color: var(--gold); }
.hero-rot { display: inline; color: var(--cyan); transition: opacity 0.25s, transform 0.25s; }
.hero-rot::after { content: '.'; color: var(--gold); }
.hero-rot.fade { opacity: 0; transform: translateY(6px); }
.hero-desc { margin: 28px 0 32px; font-size: 1.15rem; color: var(--text-2); max-width: 58ch; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero-links { display: flex; gap: 20px; margin-top: 28px; font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-3); }
.hero-links a:hover { color: var(--gold); }

/* dossier terminal card */
.dossier {
    background: rgba(10, 14, 21, 0.85); border: 1px solid var(--line-2); border-radius: 16px;
    box-shadow: var(--shadow); overflow: hidden; backdrop-filter: blur(10px);
    transform: perspective(1200px) rotateY(-4deg); transition: transform 0.6s var(--ease);
}
.dossier:hover { transform: perspective(1200px) rotateY(0deg); }
.dossier-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, 0.02); }
.dossier-bar i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; background: #ff5f57; }
.dossier-bar i:nth-child(2) { background: #febc2e; } .dossier-bar i:nth-child(3) { background: #28c840; }
.dossier-bar span { margin-left: auto; font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-3); }
.dossier-body { padding: 20px 22px 22px; display: grid; grid-template-columns: 96px 1fr; gap: 20px; align-items: start; }
.dossier-photo { width: 96px; height: 96px; border-radius: 12px; object-fit: cover; object-position: center 20%; border: 1px solid var(--line-2); }
.dossier-rows { font-family: var(--font-mono); font-size: 0.78rem; display: grid; gap: 7px; }
.dossier-rows div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px dashed var(--line); padding-bottom: 6px; }
.dossier-rows span:first-child { color: var(--text-3); }
.dossier-rows span:last-child { color: var(--text); text-align: right; }
.dossier-foot { grid-column: 1 / -1; display: flex; gap: 8px; flex-wrap: wrap; }
.dossier-spark { grid-column: 1 / -1; height: 54px; }
.dossier-spark canvas { width: 100%; height: 100%; display: block; }

/* ticker */
.ticker { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; background: rgba(255, 255, 255, 0.015); }
.ticker-track { display: flex; gap: 48px; padding: 14px 0; white-space: nowrap; animation: ticker 45s linear infinite; width: max-content; }
.ticker-track span { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); }
.ticker-track span::before { content: '◆'; color: var(--gold); margin-right: 14px; font-size: 0.6rem; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- stats strip ---------- */
.stats { display: grid; grid-template-columns: repeat(5, 1fr); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: rgba(255, 255, 255, 0.02); }
.stat { padding: 26px 24px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat-value { font-family: var(--font-display); font-size: 2.1rem; font-weight: 600; color: var(--gold); letter-spacing: -0.02em; }
.stat-label { font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 4px; }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: start; }
.about-text p { color: var(--text-2); font-size: 1.08rem; margin-bottom: 18px; }
.about-text p strong { color: var(--text); font-weight: 600; }
.now-card { padding: 0; overflow: hidden; }
.now-card header { display: flex; justify-content: space-between; align-items: center; padding: 16px 22px; border-bottom: 1px solid var(--line); }
.now-card header h3 { font-size: 0.8rem; font-family: var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); }
.now-card ul { list-style: none; padding: 8px 0; }
.now-card li { display: grid; grid-template-columns: 90px 1fr; gap: 12px; padding: 12px 22px; border-bottom: 1px dashed var(--line); font-size: 0.92rem; }
.now-card li:last-child { border-bottom: 0; }
.now-card li span { font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.08em; padding-top: 3px; }

/* ---------- story / timeline ---------- */
.story { position: relative; }
.story::before { content: ''; position: absolute; left: 22px; top: 0; bottom: 0; width: 1px; background: linear-gradient(180deg, transparent, var(--line-2) 8%, var(--line-2) 92%, transparent); }
.chapter { position: relative; display: grid; grid-template-columns: 120px 1fr; gap: 32px; padding: 0 0 56px 64px; }
.chapter::before {
    content: ''; position: absolute; left: 16px; top: 8px; width: 13px; height: 13px; border-radius: 50%;
    background: var(--bg); border: 2px solid var(--gold); box-shadow: 0 0 0 4px var(--bg), 0 0 18px var(--gold);
}
.chapter.cyan::before { border-color: var(--cyan); box-shadow: 0 0 0 4px var(--bg), 0 0 18px var(--cyan); }
.chapter.green::before { border-color: var(--green); box-shadow: 0 0 0 4px var(--bg), 0 0 18px var(--green); }
.chapter.violet::before { border-color: var(--violet); box-shadow: 0 0 0 4px var(--bg), 0 0 18px var(--violet); }
.chapter.red::before { border-color: var(--red); box-shadow: 0 0 0 4px var(--bg), 0 0 18px var(--red); }
.chapter-link { display: inline-block; margin-top: 14px; font-size: 0.78rem; color: var(--text-3); border-bottom: 1px dashed var(--line-2); }
.chapter-link:hover { color: var(--gold); border-color: var(--gold); }
.chapter-when { font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-3); line-height: 1.8; }
.chapter-when strong { display: block; color: var(--text); font-size: 1rem; font-weight: 600; }
.chapter h3 { font-size: 1.55rem; margin-bottom: 12px; }
.chapter p { color: var(--text-2); font-size: 1.02rem; max-width: 66ch; }
.chapter .tag-list { margin-top: 16px; }

/* ---------- experience ---------- */
.xp { border-top: 1px solid var(--line); }
.xp-row { display: grid; grid-template-columns: 220px 1fr; gap: 32px; padding: 34px 0; border-bottom: 1px solid var(--line); }
.xp-when { font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-3); line-height: 1.9; }
.xp-when strong { display: block; color: var(--gold); font-weight: 500; }
.xp-company { font-size: 1.45rem; font-weight: 600; font-family: var(--font-display); }
.xp-role { color: var(--text-2); margin: 4px 0 12px; }
.xp-note { display: inline-block; font-family: var(--font-mono); font-size: 0.72rem; color: var(--green); background: var(--green-dim); padding: 3px 9px; border-radius: 4px; margin-bottom: 14px; }
.xp ul { list-style: none; display: grid; gap: 8px; }
.xp li { position: relative; padding-left: 20px; color: var(--text-2); font-size: 0.98rem; }
.xp li::before { content: '›'; position: absolute; left: 0; color: var(--gold); font-weight: 700; }

/* ---------- skills matrix ---------- */
.skills { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.skill-group h3 { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--cyan); margin-bottom: 18px; }
.skill { display: grid; grid-template-columns: 1fr 110px; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 0.92rem; }
.skill:last-child { border-bottom: 0; }
.skill-bar { display: flex; gap: 4px; }
.skill-bar i { flex: 1; height: 8px; border-radius: 2px; background: rgba(255, 255, 255, 0.07); }
.skill-bar i.on { background: var(--gold); box-shadow: 0 0 8px rgba(242, 181, 68, 0.4); }
.skill-group:nth-child(2) .skill-bar i.on { background: var(--cyan); box-shadow: 0 0 8px rgba(76, 201, 240, 0.4); }
.skill-group:nth-child(3) .skill-bar i.on { background: var(--green); box-shadow: 0 0 8px rgba(61, 220, 151, 0.4); }

/* ---------- research ---------- */
.research-list { list-style: none; display: grid; gap: 14px; }
.research-item { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: start; }
.research-item h3 { font-size: 1.2rem; margin-bottom: 6px; }
.research-item h3 a:hover { color: var(--gold); }
.research-item p { color: var(--text-2); font-size: 0.95rem; }
.research-venue { font-family: var(--font-mono); font-size: 0.72rem; color: var(--cyan); letter-spacing: 0.06em; white-space: nowrap; }

/* ---------- passions ---------- */
.passions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.passion { padding: 24px; min-height: 230px; display: flex; flex-direction: column; }
.passion .ico { font-size: 1.5rem; margin-bottom: 18px; width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line-2); }
.passion.gold .ico { color: var(--gold); border-color: rgba(242, 181, 68, 0.4); background: var(--gold-dim); }
.passion.cyan .ico { color: var(--cyan); border-color: rgba(76, 201, 240, 0.4); background: var(--cyan-dim); }
.passion.green .ico { color: var(--green); border-color: rgba(61, 220, 151, 0.4); background: var(--green-dim); }
.passion.red .ico { color: var(--red); border-color: rgba(255, 92, 122, 0.4); background: var(--red-dim); }
.passion.violet .ico { color: var(--violet); border-color: rgba(167, 139, 250, 0.4); background: var(--violet-dim); }
.passion h3 { font-size: 1.1rem; margin-bottom: 8px; }
.passion p { color: var(--text-2); font-size: 0.9rem; flex: 1; }
.passion .meta { font-family: var(--font-mono); font-size: 0.68rem; color: var(--text-3); margin-top: 16px; letter-spacing: 0.04em; }

/* ---------- universe (canvas graph) ---------- */
.universe-wrap { position: relative; border: 1px solid var(--line-2); border-radius: var(--radius-lg); background: radial-gradient(ellipse at 50% 40%, rgba(167, 139, 250, 0.08), transparent 60%), var(--bg-1); overflow: hidden; }
.universe-canvas { display: block; width: 100%; height: 620px; cursor: grab; }
.universe-canvas:active { cursor: grabbing; }
.universe-hud { position: absolute; top: 16px; left: 16px; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.universe-legend { position: absolute; right: 16px; top: 16px; display: grid; gap: 6px; font-family: var(--font-mono); font-size: 0.68rem; color: var(--text-2); background: rgba(5, 7, 11, 0.6); padding: 12px 14px; border-radius: 8px; border: 1px solid var(--line); }
.universe-legend span { display: flex; align-items: center; gap: 8px; }
.universe-legend i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.universe-tip { position: absolute; pointer-events: none; background: var(--bg-3); border: 1px solid var(--line-2); border-radius: 8px; padding: 10px 12px; font-size: 0.82rem; box-shadow: var(--shadow); transform: translate(-50%, calc(-100% - 14px)); opacity: 0; transition: opacity 0.15s; white-space: nowrap; }
.universe-tip.show { opacity: 1; }
.universe-tip strong { display: block; font-family: var(--font-display); }
.universe-tip small { color: var(--text-3); font-family: var(--font-mono); font-size: 0.7rem; }
.universe-controls { position: absolute; bottom: 16px; left: 16px; display: flex; gap: 8px; }
.universe-controls .btn { background: rgba(5, 7, 11, 0.7); }

.topic-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.topic-table th { text-align: left; font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); padding: 10px 12px; border-bottom: 1px solid var(--line-2); }
.topic-table td { padding: 11px 12px; border-bottom: 1px solid var(--line); }
.topic-table td.num { font-family: var(--font-mono); text-align: right; color: var(--text-2); }
.topic-bar { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.06); overflow: hidden; }
.topic-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--violet), var(--cyan)); }

/* ---------- travel ---------- */
.travel-stats { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }
.flags { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.flag { padding: 0; overflow: hidden; }
.flag .flag-img { aspect-ratio: 2 / 1; width: 100%; object-fit: cover; background: var(--bg-3); border-bottom: 1px solid var(--line); }
.flag .flag-ph { aspect-ratio: 2 / 1; display: grid; place-items: center; font-family: var(--font-mono); font-size: 1.6rem; color: var(--text-3); background: repeating-linear-gradient(45deg, rgba(255,255,255,0.03) 0 8px, transparent 8px 16px), var(--bg-3); border-bottom: 1px solid var(--line); }
.flag-body { padding: 12px 14px 14px; }
.flag-body strong { display: block; font-size: 0.95rem; font-family: var(--font-display); }
.flag-body small { display: block; font-family: var(--font-mono); font-size: 0.66rem; color: var(--text-3); margin-top: 3px; letter-spacing: 0.04em; }
.flag-body .note { color: var(--gold); }
.world { position: relative; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg-1); padding: 20px; margin-bottom: 40px; }
.world svg { width: 100%; height: auto; display: block; }
.world .pin { fill: var(--gold); filter: drop-shadow(0 0 6px var(--gold)); }
.world .pin.ring { fill: none; stroke: var(--gold); stroke-width: 1; opacity: 0.6; animation: ping 2.4s ease-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes ping { 0% { transform: scale(0.4); opacity: 0.9; } 100% { transform: scale(2.6); opacity: 0; } }
.world .lbl { font-family: var(--font-mono); font-size: 9px; fill: var(--text-2); }
.world .land { fill: rgba(255, 255, 255, 0.05); stroke: var(--line-2); stroke-width: 0.6; }
.world .grid { stroke: rgba(255, 255, 255, 0.04); stroke-width: 0.5; }

/* ---------- build lab / roadmap ---------- */
.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.project { display: flex; flex-direction: column; }
.project-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.project-year { font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-3); }
.project h3 { font-size: 1.2rem; margin-bottom: 8px; }
.project p { color: var(--text-2); font-size: 0.92rem; flex: 1; }
.project .tag-list { margin: 16px 0; }
.project-cta { font-family: var(--font-mono); font-size: 0.78rem; color: var(--gold); }
.status { font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.1em; text-transform: uppercase; padding: 3px 8px; border-radius: 4px; }
.status.live { background: var(--green-dim); color: var(--green); }
.status.wip { background: var(--gold-dim); color: var(--gold); }
.status.work { background: var(--cyan-dim); color: var(--cyan); }
.status.published { background: var(--violet-dim); color: var(--violet); }

.roadmap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.lane { padding: 0; overflow: hidden; }
.lane header { padding: 14px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.lane header h3 { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; }
.lane.now header h3 { color: var(--green); } .lane.next header h3 { color: var(--gold); } .lane.later header h3 { color: var(--violet); }
.lane ul { list-style: none; padding: 10px; display: grid; gap: 8px; }
.lane li { padding: 12px 14px; border-radius: 8px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line); font-size: 0.92rem; color: var(--text-2); display: flex; gap: 10px; }
.lane li::before { content: '▢'; color: var(--text-3); font-size: 0.8rem; padding-top: 2px; }
.lane.now li::before { content: '◐'; color: var(--green); }

/* ---------- goals ---------- */
.track-head { display: flex; align-items: center; gap: 16px; font-family: var(--font-mono); font-size: 0.74rem; color: var(--text-3); letter-spacing: 0.08em; margin-bottom: 18px; }
.track-bar { flex: 1; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.06); overflow: hidden; }
.track-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--green), var(--gold)); box-shadow: 0 0 10px var(--gold); }
.track { list-style: none; position: relative; }
.track::before { content: ''; position: absolute; left: 15px; top: 12px; bottom: 12px; width: 1px; background: var(--line-2); }
.track-step { position: relative; display: grid; grid-template-columns: 32px 1fr auto; gap: 16px; align-items: center; padding: 14px 0; }
.track-dot { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-mono); font-size: 0.8rem; background: var(--bg); border: 1px solid var(--line-2); color: var(--text-3); position: relative; z-index: 1; }
.track-step.done .track-dot { border-color: var(--green); color: var(--green); box-shadow: 0 0 14px rgba(61, 220, 151, 0.35); }
.track-step.pending .track-dot { border-color: var(--gold); color: var(--gold); box-shadow: 0 0 14px rgba(242, 181, 68, 0.35); animation: pulse 2s infinite; }
.track-step.next .track-dot { border-color: var(--cyan); border-style: dashed; }
.track-step strong { display: block; font-family: var(--font-display); font-size: 1.05rem; }
.track-step small { display: block; color: var(--text-3); font-size: 0.82rem; margin-top: 2px; }
.track-step.planned strong { color: var(--text-2); }
.track-when { font-size: 0.72rem; color: var(--text-3); letter-spacing: 0.08em; }
.schools { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.school h3 { font-size: 1.15rem; margin: 10px 0 4px; }
.school-top { display: flex; justify-content: space-between; align-items: center; }
.school-program { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); }
.school .muted { font-size: 0.88rem; }
.school-note { display: block; margin-top: 10px; font-family: var(--font-mono); font-size: 0.68rem; color: var(--cyan); letter-spacing: 0.04em; }

/* ---------- sports & activities photo wall ---------- */
.era { margin-bottom: 44px; }
.era-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.activities { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.activity { margin: 0; padding: 0; overflow: hidden; }
.activity-media { position: relative; aspect-ratio: 4 / 3; background: var(--bg-3); border-bottom: 1px solid var(--line); }
.activity-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.activity-ph { display: none; position: absolute; inset: 0; align-content: center; justify-items: center; text-align: center; padding: 14px; background: repeating-linear-gradient(45deg, rgba(255,255,255,0.03) 0 8px, transparent 8px 16px), var(--bg-3); }
.activity-media.empty .activity-ph { display: grid; }
.activity-ph span { display: block; font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); }
.activity-ph code { display: block; margin-top: 8px; font-size: 0.66rem; color: var(--text-3); opacity: 0.7; word-break: break-all; }
.activity figcaption { padding: 12px 14px 14px; }
.activity figcaption strong { display: block; font-family: var(--font-display); font-size: 0.98rem; }
.activity figcaption small { display: block; font-family: var(--font-mono); font-size: 0.66rem; color: var(--text-3); margin-top: 3px; letter-spacing: 0.04em; }

/* ---------- visa / paperwork track ---------- */
.visa { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.visa-step { position: relative; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255, 255, 255, 0.02); }
.visa-step.done { border-color: rgba(76, 201, 240, 0.35); }
.visa-code { display: block; font-family: var(--font-mono); font-size: 1rem; font-weight: 600; color: var(--cyan); letter-spacing: 0.06em; }
.visa-step small { display: block; font-family: var(--font-mono); font-size: 0.66rem; color: var(--text-3); margin-top: 2px; letter-spacing: 0.08em; }
.visa-step p { color: var(--text-2); font-size: 0.82rem; margin-top: 8px; line-height: 1.45; }
.visa-arrow { position: absolute; right: -14px; top: 14px; color: var(--text-3); font-size: 0.9rem; z-index: 1; }
@media (max-width: 860px) { .visa { grid-template-columns: 1fr; } .visa-arrow { display: none; } }

/* ---------- coming soon ---------- */
.coming-soon { display: grid; place-items: center; text-align: center; padding: 34px 20px; border: 1px dashed var(--line-2); border-radius: var(--radius); color: var(--text-3); font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; background: repeating-linear-gradient(45deg, rgba(255,255,255,0.02) 0 8px, transparent 8px 16px); }

.changelog { list-style: none; border-left: 1px solid var(--line-2); margin-left: 6px; }
.changelog li { position: relative; padding: 0 0 22px 28px; }
.changelog li::before { content: ''; position: absolute; left: -5px; top: 8px; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px var(--gold); }
.changelog time { display: block; font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-3); margin-bottom: 4px; }
.changelog p { color: var(--text-2); font-size: 0.95rem; }

.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.principle { background: var(--bg); padding: 28px; }
.principle .n { font-family: var(--font-mono); font-size: 0.7rem; color: var(--gold); letter-spacing: 0.12em; }
.principle h3 { font-size: 1.1rem; margin: 12px 0 8px; }
.principle p { color: var(--text-2); font-size: 0.92rem; }

/* ---------- blog ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.blog-card { display: flex; flex-direction: column; }
.blog-card-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-3); }
.blog-tag { color: var(--cyan); letter-spacing: 0.06em; }
.blog-card h2, .blog-card h3 { font-size: 1.25rem; margin-bottom: 10px; }
.blog-card h2 a:hover, .blog-card h3 a:hover { color: var(--gold); }
.blog-card p { color: var(--text-2); font-size: 0.92rem; flex: 1; }
.blog-read-link { margin-top: 18px; font-family: var(--font-mono); font-size: 0.78rem; color: var(--gold); }
.rss-link { font-family: var(--font-mono); font-size: 0.78rem; color: var(--cyan); }

.news-feed { margin: 0 0 36px; }
.news-stub-list { list-style: none; display: grid; gap: 10px; margin-top: 12px; }
.news-stub-list li { display: flex; gap: 12px; align-items: baseline; color: var(--text-2); font-size: 0.92rem; }
.news-stub-tag { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); min-width: 64px; }
.news-placeholder { color: var(--text-3); font-size: 0.9rem; }

.article-container { padding-top: 40px; }
.article-back { font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-3); }
.article-back:hover { color: var(--gold); }
.article-header { margin: 28px 0 40px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.article-header h1 { font-size: clamp(2rem, 4.5vw, 3rem); margin: 14px 0; }
.article-deck { color: var(--text-2); font-size: 1.15rem; }
.article-body { font-size: 1.05rem; color: var(--text-2); }
.article-body p { margin-bottom: 20px; }
.article-body h2 { font-size: 1.5rem; margin: 40px 0 14px; color: var(--text); }
.article-body ul { margin: 0 0 20px 22px; }
.article-body li { margin-bottom: 8px; }
.article-disclaimer { margin-top: 40px; padding: 16px 18px; border-left: 3px solid var(--gold); background: rgba(255, 255, 255, 0.03); font-size: 0.85rem; color: var(--text-3); }

/* ---------- resume ---------- */
.resume-actions { display: flex; gap: 12px; justify-content: flex-end; margin-bottom: 24px; }
.resume-doc { background: #fff; color: #111; border-radius: 10px; padding: 56px 64px; box-shadow: var(--shadow); font-family: var(--font-sans); }
.resume-doc h1 { font-size: 2.2rem; letter-spacing: -0.02em; }
.resume-doc .resume-title { color: #444; font-size: 1.05rem; margin-top: 2px; }
.resume-doc .resume-contact { font-size: 0.85rem; color: #555; margin-top: 8px; font-family: var(--font-mono); }
.resume-doc h2 { font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: #8a6a1c; margin: 34px 0 14px; padding-bottom: 6px; border-bottom: 1px solid #e5e5e5; }
.resume-entry { margin-bottom: 18px; }
.resume-entry-head { display: flex; justify-content: space-between; gap: 12px; font-size: 1rem; }
.resume-entry-head span { color: #666; font-family: var(--font-mono); font-size: 0.82rem; }
.resume-role { color: #444; font-size: 0.95rem; margin: 2px 0 8px; }
.resume-role em { color: #8a6a1c; font-style: normal; font-size: 0.85rem; }
.resume-doc ul { margin-left: 18px; color: #333; font-size: 0.93rem; }
.resume-doc li { margin-bottom: 4px; }
.resume-doc p { font-size: 0.95rem; color: #333; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: start; }
.contact-details { display: grid; gap: 14px; }
.contact-detail { font-family: var(--font-mono); font-size: 0.95rem; color: var(--text-2); display: flex; gap: 12px; align-items: center; }
.contact-detail span.k { color: var(--text-3); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; min-width: 60px; }
.contact-detail a:hover { color: var(--gold); }
.contact-form { display: grid; gap: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { display: grid; gap: 6px; }
.form-group label { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); }
.form-group input, .form-group textarea {
    padding: 12px 14px; background: var(--bg-1); border: 1px solid var(--line-2); border-radius: var(--radius); outline: none;
    transition: border-color 0.2s, box-shadow 0.2s; resize: vertical;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-dim); }
.hidden-field { display: none; }
.form-alt { font-size: 0.82rem; color: var(--text-3); }
.form-alt a { color: var(--gold); }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 40px 0; margin-top: 60px; position: relative; z-index: 1; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; font-size: 0.85rem; color: var(--text-3); }
.footer-links { display: flex; gap: 20px; font-family: var(--font-mono); font-size: 0.75rem; }
.footer-links a:hover { color: var(--gold); }
.footer-status { display: flex; gap: 8px; align-items: center; font-family: var(--font-mono); font-size: 0.72rem; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.08s; } .reveal-delay-2 { transition-delay: 0.16s; } .reveal-delay-3 { transition-delay: 0.24s; } .reveal-delay-4 { transition-delay: 0.32s; } .reveal-delay-5 { transition-delay: 0.4s; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

/* ---------- page hero (sub-pages) ---------- */
.page-hero { padding: 90px 0 50px; position: relative; overflow: hidden; }
.page-hero h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 600; letter-spacing: -0.035em; margin: 14px 0 18px; }
.page-hero .lede { font-size: 1.15rem; }
.page-hero .hero-glow { opacity: 0.16; }

/* ============================================================
   OPTIONS TERMINAL (ported)
   ============================================================ */
body.terminal-page { background: var(--bg); color: var(--text); }
.options-calculator { position: relative; padding: 40px 0 60px; min-height: 80vh; }
.strat-container { max-width: 1320px; }
.panel { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 28px; margin-bottom: 20px; }
.panel-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.panel-header h3 { font-family: var(--font-mono); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--cyan); }
.panel-tag { font-family: var(--font-mono); font-size: 0.68rem; color: var(--text-3); letter-spacing: 0.06em; }
.input-group label { font-family: var(--font-mono); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); min-width: 110px; }
.input-group input, .input-group select { padding: 10px 14px; background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--radius); font-family: var(--font-mono); font-size: 0.88rem; color: var(--text); width: 100%; }
.input-group input:focus, .input-group select:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 2px var(--cyan-dim); }
.input-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 16px; align-items: end; }
.results-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; }
.result-card { background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; text-align: center; transition: border-color 0.2s; }
.result-card:hover { border-color: var(--cyan); }
.result-card h4 { font-family: var(--font-mono); font-size: 0.65rem; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 8px; }
.result-value { font-family: var(--font-mono); font-size: 1.25rem; font-weight: 600; color: var(--gold); }
.chart-container { position: relative; height: 360px; margin-bottom: 20px; background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.chart-controls { display: flex; gap: 32px; flex-wrap: wrap; }
.control-group { display: flex; align-items: center; gap: 12px; font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-3); }
.control-group label { text-transform: uppercase; letter-spacing: 0.06em; }
.control-group input[type="range"] { width: 160px; accent-color: var(--cyan); }
.control-group span { color: var(--cyan); min-width: 48px; }
.strat-topbar { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-bottom: 20px; padding: 20px 24px; }
.quote-block { display: flex; align-items: center; gap: 16px; }
.symbol-input { font-family: var(--font-mono); font-size: 1.25rem; font-weight: 700; width: 100px; padding: 8px 12px; background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--radius); color: var(--cyan); text-transform: uppercase; }
.quote-prices { display: flex; flex-direction: column; gap: 2px; }
.quote-prices .price-value { font-family: var(--font-mono); font-size: 1.6rem; font-weight: 600; color: var(--text); }
.change-value { font-family: var(--font-mono); font-size: 0.85rem; font-weight: 500; }
.change-value.up { color: var(--green); } .change-value.down { color: var(--red); }
.topbar-controls { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.exp-select { padding: 10px 14px; background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--radius); font-family: var(--font-mono); font-size: 0.85rem; color: var(--text); min-width: 160px; }
.data-disclaimer { width: 100%; font-family: var(--font-mono); font-size: 0.68rem; color: var(--text-3); margin: 0; }
.strat-workspace { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.strat-left, .strat-right { display: flex; flex-direction: column; }
.strategy-picker { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.strategy-picker label { font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-3); }
.strategy-picker select { flex: 1; min-width: 180px; padding: 10px 14px; background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--radius); font-family: var(--font-mono); font-size: 0.88rem; color: var(--text); }
.sentiment-badge { font-family: var(--font-mono); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; padding: 5px 12px; border-radius: 20px; background: var(--green-dim); color: var(--green); border: 1px solid rgba(61, 220, 151, 0.3); }
.sentiment-badge.bearish { background: var(--red-dim); color: var(--red); border-color: rgba(255, 92, 122, 0.3); }
.sentiment-badge.neutral { background: var(--cyan-dim); color: var(--cyan); border-color: rgba(76, 201, 240, 0.3); }
.sentiment-badge.defensive { background: var(--gold-dim); color: var(--gold); border-color: var(--border-gold); }
.sentiment-badge.income { background: rgba(148, 163, 184, 0.12); color: #94a3b8; border-color: rgba(148, 163, 184, 0.3); }
.strategy-desc { font-size: 0.88rem; color: var(--text-3); line-height: 1.6; margin-bottom: 16px; }
.legs-container { display: flex; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.leg-input { flex: 1; min-width: 120px; }
.leg-input label { display: block; font-family: var(--font-mono); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-3); margin-bottom: 6px; }
.leg-input select { width: 100%; padding: 10px 12px; background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--radius); font-family: var(--font-mono); font-size: 0.88rem; color: var(--gold); }
.compact-row { grid-template-columns: 1fr 1fr; margin-bottom: 16px; }
.greeks-grid { margin-top: 8px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.greeks-grid .result-card { padding: 12px 8px; }
.greeks-grid .result-value { font-size: 1rem; }
.chain-table-wrap { overflow-x: auto; max-height: 420px; overflow-y: auto; }
.chain-table { width: 100%; border-collapse: collapse; font-family: var(--font-mono); font-size: 0.75rem; }
.chain-table th { padding: 8px 6px; text-align: center; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.65rem; color: var(--text-3); background: var(--bg-1); position: sticky; top: 0; z-index: 1; }
.calls-head { color: var(--green); border-bottom: 2px solid rgba(61, 220, 151, 0.3); }
.puts-head { color: var(--red); border-bottom: 2px solid rgba(255, 92, 122, 0.3); }
.strike-head { color: var(--gold); background: var(--bg-3); }
.chain-subhead th { font-size: 0.6rem; padding: 6px 4px; }
.chain-table td { padding: 7px 6px; text-align: center; color: var(--text-3); border-bottom: 1px solid rgba(255, 255, 255, 0.04); }
.call-cell { background: rgba(61, 220, 151, 0.03); } .put-cell { background: rgba(255, 92, 122, 0.03); }
.strike-cell { font-weight: 700; color: var(--gold) !important; background: var(--bg-3) !important; cursor: pointer; transition: background 0.15s; }
.strike-cell:hover { background: var(--cyan-dim) !important; color: var(--cyan) !important; }
.chain-row.atm-row td { background: rgba(76, 201, 240, 0.05); }
.chain-row.selected-strike .strike-cell { background: var(--cyan-dim) !important; color: var(--cyan) !important; box-shadow: inset 0 0 0 1px var(--cyan); }
.chain-empty { text-align: center; padding: 32px !important; color: var(--text-3); }
.chain-loading { animation: pulse 1.2s ease-in-out infinite; }
.pl-panel .chart-container { height: 320px; }
.metrics-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 16px; }
.metric-box { background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; text-align: center; }
.metric-label { display: block; font-family: var(--font-mono); font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-3); margin-bottom: 4px; }
.metric-value { font-family: var(--font-mono); font-size: 0.95rem; font-weight: 600; color: var(--text); }
.metric-value.profit { color: var(--green); } .metric-value.loss { color: var(--red); }
.iv-panel { margin-top: 16px; }
.iv-chart-container { height: 220px; position: relative; }
.stock-leg { flex-direction: column; align-items: flex-start !important; gap: 4px !important; }
.stock-leg-label { font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.06em; }
.stock-leg-value { font-family: var(--font-mono); font-size: 0.95rem; color: var(--green); }

/* ---------- finance lab specifics ---------- */
.snapshot-shell { overflow: hidden; padding: 0; }
.snapshot-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 26px; border-bottom: 1px solid var(--line); }
.snapshot-status { display: inline-flex; align-items: center; gap: 9px; color: var(--text-3); font: 500 0.72rem var(--font-mono); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 6px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text-3); }
.snapshot-status.live .status-dot { background: var(--green); box-shadow: 0 0 0 5px var(--green-dim); }
.snapshot-metrics { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
.snapshot-metric { padding: 24px 26px; border-right: 1px solid var(--line); }
.snapshot-metric:last-child { border-right: 0; }
.snapshot-metric span { display: block; color: var(--text-3); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; font-family: var(--font-mono); }
.snapshot-metric strong { display: block; margin-top: 7px; font: 600 1.7rem var(--font-display); }
.holdings-list { min-height: 130px; }
.holding-row { display: grid; grid-template-columns: minmax(140px, 1.5fr) 2fr 100px; align-items: center; gap: 24px; padding: 16px 26px; border-bottom: 1px solid var(--line); }
.holding-row:last-child { border-bottom: 0; }
.holding-name strong, .holding-name small { display: block; }
.holding-name strong { font-family: var(--font-mono); }
.holding-name small { color: var(--text-3); font-size: 0.78rem; }
.weight-track { height: 7px; overflow: hidden; border-radius: 999px; background: rgba(255, 255, 255, 0.06); }
.weight-fill { height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--cyan), var(--gold)); }
.holding-weight { text-align: right; font-family: var(--font-mono); }
.snapshot-message { padding: 40px 26px; color: var(--text-3); text-align: center; font-size: 0.92rem; }
.privacy-note { display: flex; gap: 12px; padding: 16px 26px; border-top: 1px solid var(--line); background: rgba(255, 255, 255, 0.02); color: var(--text-3); font-size: 0.82rem; }
.disclaimer { padding: 20px 24px; border-left: 3px solid var(--gold); background: rgba(255, 255, 255, 0.03); color: var(--text-3); font-size: 0.88rem; border-radius: 0 var(--radius) var(--radius) 0; }

/* ---------- 404 ---------- */
.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; }
.notfound h1 { font-family: var(--font-mono); font-size: clamp(4rem, 14vw, 9rem); color: var(--gold); letter-spacing: -0.05em; line-height: 1; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
    .passions { grid-template-columns: repeat(2, 1fr); }
    .flags { grid-template-columns: repeat(4, 1fr); }
    .activities { grid-template-columns: repeat(3, 1fr); }
    .schools { grid-template-columns: repeat(2, 1fr); }
    .stats { grid-template-columns: repeat(3, 1fr); }
    .stat:nth-child(3) { border-right: 0; }
    .stat:nth-child(n+4) { border-top: 1px solid var(--line); }
    .projects, .blog-grid, .roadmap, .skills, .principles, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1024px) {
    .strat-workspace { grid-template-columns: 1fr; }
    .metrics-row { grid-template-columns: repeat(2, 1fr); }
    .hero-grid { grid-template-columns: 1fr; gap: 40px; }
    .dossier { transform: none; max-width: 520px; }
}

@media (max-width: 1080px) {
    .nav-menu {
        position: fixed; top: 64px; left: 0; right: 0; flex-direction: column; gap: 0;
        background: rgba(5, 7, 11, 0.97); border-bottom: 1px solid var(--line-2);
        padding: 12px 24px 20px; display: none;
    }
    .nav-menu.active { display: flex; }
    .nav-link { padding: 12px 8px; font-size: 1rem; white-space: nowrap; }
    .hamburger { display: flex; }
    .nav-actions .btn span.lbl { display: none; }
}

@media (max-width: 860px) {
    .about-grid, .contact-grid, .grid-2 { grid-template-columns: 1fr; }
    .xp-row { grid-template-columns: 1fr; gap: 12px; }
    .chapter { grid-template-columns: 1fr; gap: 10px; padding-left: 52px; }
    .story::before { left: 18px; }
    .chapter::before { left: 12px; }
    .section { padding: 80px 0; }
    .research-item { grid-template-columns: 1fr; gap: 8px; }
    .universe-canvas { height: 480px; }
    .universe-legend { display: none; }
}

@media (max-width: 640px) {
    .container, .container-wide, .container-narrow { width: calc(100% - 32px); }
    .nav-container { width: calc(100% - 32px); }
    .passions, .projects, .blog-grid, .roadmap, .skills, .principles, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .flags { grid-template-columns: repeat(2, 1fr); }
    .activities { grid-template-columns: repeat(2, 1fr); }
    .schools { grid-template-columns: 1fr; }
    .stats { grid-template-columns: repeat(2, 1fr); }
    .stat { border-right: 1px solid var(--line); }
    .stat:nth-child(even) { border-right: 0; }
    .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
    .form-row { grid-template-columns: 1fr; }
    .hero { padding: 48px 0 40px; min-height: auto; }
    .hero-title { font-size: clamp(2.4rem, 11.5vw, 4rem); overflow-wrap: anywhere; }
    .hero-glow { width: 320px; height: 320px; opacity: 0.12; }
    .dossier-body { grid-template-columns: 72px 1fr; }
    .dossier-photo { width: 72px; height: 72px; }
    .resume-doc { padding: 32px 24px; }
    .snapshot-metrics { grid-template-columns: 1fr; }
    .snapshot-metric { border-right: 0; border-bottom: 1px solid var(--line); }
    .holding-row { grid-template-columns: 1fr auto; }
    .weight-track { grid-column: 1 / -1; grid-row: 2; }
    .strat-topbar { flex-direction: column; align-items: stretch; }
    .topbar-controls { margin-left: 0; }
    .market-clock { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
    .reveal { opacity: 1 !important; transform: none !important; }
    .boot { display: none; }
}

@media print {
    body::before, .market-bar, .navbar, .footer, .no-print, .cmdk-backdrop, .boot { display: none !important; }
    body { background: #fff; color: #000; }
    .resume-doc { box-shadow: none; padding: 0; }
}
