:root {
    --bg: #0a0a0c;
    --sidebar-bg: #141418;
    --surface: #16161a;
    --surface-hover: #1c1c21;
    --text: #e4e4e7;
    --text-mid: #a1a1aa;
    --text-muted: #71717a;
    --border: #2a2a32;
    --accent: #a5b4fc;
    --accent-dim: rgba(165,180,252,.08);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', system-ui, sans-serif; color: var(--text-mid); line-height: 1.7; background: var(--bg); -webkit-font-smoothing: antialiased; display: flex; min-height: 100vh; }

/* ── Sidebar ── */
.sidebar { position: fixed; top: 0; left: 0; bottom: 0; width: 300px; background: var(--sidebar-bg); border-right: 1px solid var(--border); display: flex; flex-direction: column; padding: 32px 28px 24px; z-index: 50; overflow-y: auto; }
.sidebar-top { flex: 0 0 auto; }
.brand { display: flex; align-items: center; gap: 10px; margin-bottom: 28px; }
.bny-logo { width: 42px; height: 20px; color: var(--text); }
.brand-sep { width: 1px; height: 14px; background: #4a4a54; }
.brand-team { font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1.2px; color: var(--text); }

.sidebar-identity { margin-bottom: 4px; }
.avatar { width: 96px; height: 96px; border-radius: 12px; object-fit: cover; object-position: center top; margin-bottom: 16px; border: 1px solid var(--border); }
.sidebar h1 { font-size: 1.25rem; font-weight: 700; color: var(--text); line-height: 1.2; margin-bottom: 4px; letter-spacing: -.02em; }
.sidebar-role { font-size: .8rem; color: var(--text); margin-bottom: 12px; font-weight: 500; }
.sidebar-pitch { font-size: .84rem; color: var(--text-mid); line-height: 1.6; }

.sidebar-nav { flex: 1; display: flex; flex-direction: column; gap: 4px; padding: 24px 0; }
.nav-link { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: .82rem; font-weight: 500; color: var(--text-mid); text-decoration: none; transition: color .15s; }
.nav-link::before { content: ''; width: 16px; height: 1px; background: var(--text-mid); transition: width .2s, background .2s; }
.nav-link:hover { color: var(--text); }
.nav-link:hover::before { width: 28px; background: var(--text-mid); }
.nav-link.active { color: var(--text); }
.nav-link.active::before { width: 36px; background: var(--accent); }

.sidebar-bottom { flex: 0 0 auto; }
.social-links { display: flex; gap: 14px; }
.social-links a { color: var(--text); transition: color .2s; }
.social-links a:hover { color: var(--text); }

/* ── Mobile bar ── */
.mobile-bar { display: none; }

/* ── Main content ── */
.content { margin-left: 300px; flex: 1; min-height: 100vh; padding: 0 56px; }

.sect { padding: 72px 0; border-bottom: 1px solid var(--border); }
.sect-label { font-size: .65rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1.8px; color: var(--accent); margin-bottom: 28px; }
.muted { color: var(--text-muted); }

/* About — 2-column layout */
.about-grid { display: grid; grid-template-columns: 1fr 300px; gap: 56px; }
.about-prose .lead { font-family: 'Newsreader', serif; font-style: italic; font-size: 1.2rem; color: var(--text); line-height: 1.55; margin-bottom: 24px; }
.about-prose p { font-size: .9rem; margin-bottom: 18px; line-height: 1.75; color: var(--text-mid); }
.about-aside { display: flex; flex-direction: column; gap: 24px; padding-top: 4px; }
.aside-block h4 { font-size: .62rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1.5px; color: var(--text-muted); margin-bottom: 6px; }
.aside-block p { font-size: .86rem; color: var(--text); line-height: 1.5; }
.aside-block .muted { color: var(--text-muted); font-size: .8rem; }
.aside-block .skills-list { font-size: .84rem; color: var(--text-mid); line-height: 1.7; }

/* Numbers strip */
.numbers-strip { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--border); }
.num-item { padding: 32px 16px; text-align: center; border-right: 1px solid var(--border); }
.num-item:last-child { border-right: none; }
.num-value { display: block; font-size: 1.4rem; font-weight: 700; color: var(--text); letter-spacing: -.02em; margin-bottom: 4px; }
.num-label { font-size: .68rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .8px; }

/* Experience */
.exp-role { margin-bottom: 36px; }
.exp-heading { display: flex; justify-content: space-between; align-items: baseline; }
.exp-heading h3 { font-size: 1rem; font-weight: 700; color: var(--text); }
.exp-date { font-size: .72rem; color: var(--text-muted); white-space: nowrap; }
.exp-title { font-size: .8rem; color: var(--text-muted); margin-top: 2px; }

.exp-projects-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.exp-project { padding: 28px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); }
.exp-project-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 2px; }
.exp-project-top h4 { font-size: .95rem; font-weight: 700; color: var(--text); }
.exp-stat { font-size: .7rem; color: var(--text-muted); white-space: nowrap; }
.exp-project-sub { font-size: .76rem; color: var(--text-muted); margin-bottom: 20px; }

/* Impact highlights */
.impact-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.impact { display: flex; gap: 16px; padding: 16px 18px; border-radius: 6px; background: var(--surface-hover); transition: background .2s; }
.impact:hover { background: #222228; }
.impact-num { flex-shrink: 0; width: 60px; font-size: .82rem; font-weight: 700; color: var(--accent); text-align: center; padding-top: 2px; }
.impact strong { display: block; font-size: .88rem; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.impact p { font-size: .82rem; color: var(--text-mid); line-height: 1.6; margin: 0; }

/* Detail list */
.detail-list { list-style: none; padding: 16px 0 0; border-top: 1px solid var(--border); }
.detail-list li { font-size: .82rem; color: var(--text-mid); padding: 5px 0; line-height: 1.55; }
.detail-list li::before { content: ''; display: inline-block; width: 3px; height: 3px; border-radius: 50%; background: var(--text-muted); margin-right: 10px; vertical-align: middle; }

/* Projects */
.proj-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.proj { padding: 24px 28px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); transition: border-color .2s; }
.proj:hover { border-color: #3f3f46; }
.proj-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.proj h3 { font-size: .92rem; font-weight: 600; color: var(--text); }
.proj-context { font-size: .65rem; font-weight: 600; text-transform: uppercase; letter-spacing: .8px; color: var(--text-muted); }
.proj p { font-size: .86rem; color: var(--text-mid); margin-bottom: 10px; line-height: 1.6; }
.proj-tech { font-size: .7rem; color: var(--text-muted); }

/* Achievements */
.achievements-strip { margin-top: 28px; padding: 20px 24px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); }
.achievements-strip h4 { font-size: .62rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1.5px; color: var(--accent); margin-bottom: 10px; }
.achievements-strip p { font-size: .86rem; color: var(--text-mid); line-height: 1.6; margin-bottom: 4px; }
.achievements-strip p strong { color: var(--text); font-weight: 600; }

/* Footer */
.foot { padding: 40px 0; font-size: .72rem; color: var(--text-muted); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(10px); transition: opacity .4s ease, transform .4s ease; }
.reveal.in-view { opacity: 1; transform: none; }

/* ── Responsive ── */
@media (max-width: 1200px) {
    .about-grid { grid-template-columns: 1fr 240px; gap: 40px; }
    .exp-projects-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
    .sidebar { position: fixed; transform: translateX(-100%); transition: transform .3s ease; width: 280px; }
    .sidebar.open { transform: translateX(0); }
    .content { margin-left: 0; padding: 0 24px; }
    .sect { padding: 40px 0; }
    .foot { padding: 24px 0; }

    .mobile-bar { display: flex; justify-content: space-between; align-items: center; position: fixed; top: 0; left: 0; right: 0; z-index: 40; padding: 12px 20px; background: rgba(10,10,12,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
    .mobile-name { font-size: .84rem; font-weight: 600; color: var(--text); }
    .mobile-toggle { background: none; border: none; cursor: pointer; display: flex; flex-direction: column; gap: 5px; padding: 4px; }
    .mobile-toggle span { display: block; width: 20px; height: 1.5px; background: var(--text-mid); border-radius: 1px; }
    .content { padding-top: 48px; }
    .numbers-strip { grid-template-columns: repeat(2, 1fr); }
    .num-item:nth-child(2) { border-right: none; }
    .about-grid { grid-template-columns: 1fr; }
    .exp-projects-grid { grid-template-columns: 1fr; }
    .proj-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .sect { padding: 28px 0; }
    .exp-project { padding: 16px; }
    .impact { flex-direction: column; gap: 4px; }
    .impact-num { width: auto; text-align: left; }
    .numbers-strip { grid-template-columns: 1fr 1fr; }
    .exp-projects-grid { grid-template-columns: 1fr; }
    .proj-grid { grid-template-columns: 1fr; }
}
