/* ==========================================================================
   Glow — dark-first "tech glow" style for index.html
   ========================================================================== */

/* ---------- Tokens: dark (default) ---------- */
:root {
    color-scheme: dark;
    --bg: #07070d;
    --bg-2: #0d0d18;
    --surface: rgba(255, 255, 255, 0.035);
    --surface-hover: rgba(255, 255, 255, 0.06);
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.16);
    --text: #e8e8f2;
    --text-strong: #ffffff;
    --muted: #9b9bb4;
    --accent: #a78bfa;
    --accent-2: #22d3ee;
    --accent-3: #f472b6;
    --accent-ink: #0b0b14;
    --glow: rgba(167, 139, 250, 0.35);
    --spot: rgba(167, 139, 250, 0.14);
    --chip-bg: rgba(255, 255, 255, 0.05);
    --blob-opacity: 0.55;
    --grid-line: rgba(255, 255, 255, 0.035);
    --shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.7);
    --header-bg: rgba(7, 7, 13, 0.7);
    --vignette: rgba(7, 7, 13, 0.45);

    --font-sans: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    --radius: 20px;
    --radius-sm: 12px;
    --maxw: 1160px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Tokens: light ---------- */
:root[data-theme="light"] {
    color-scheme: light;
    --bg: #f5f5fb;
    --bg-2: #ecebf7;
    --surface: rgba(255, 255, 255, 0.72);
    --surface-hover: rgba(255, 255, 255, 0.92);
    --border: rgba(30, 27, 75, 0.09);
    --border-strong: rgba(30, 27, 75, 0.18);
    --text: #25233d;
    --text-strong: #0f0e1f;
    --muted: #5d5b78;
    --accent: #6d28d9;
    --accent-2: #0e7490;
    --accent-3: #be185d;
    --accent-ink: #ffffff;
    --glow: rgba(109, 40, 217, 0.22);
    --spot: rgba(109, 40, 217, 0.08);
    --chip-bg: rgba(109, 40, 217, 0.06);
    --blob-opacity: 0.35;
    --grid-line: rgba(30, 27, 75, 0.05);
    --shadow: 0 20px 50px -24px rgba(30, 27, 75, 0.25);
    --header-bg: rgba(245, 245, 251, 0.75);
    --vignette: rgba(30, 27, 75, 0.12);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: 88px;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
}

body.menu-open { overflow: hidden; }

img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { color: var(--text-strong); line-height: 1.15; margin: 0; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
strong { color: var(--text-strong); font-weight: 600; }

::selection { background: var(--accent); color: var(--accent-ink); }

:focus-visible {
    outline: 2px solid var(--accent-2);
    outline-offset: 3px;
    border-radius: 6px;
}

.mono { font-family: var(--font-mono); }

.container {
    width: 100%;
    max-width: var(--maxw);
    margin-inline: auto;
    padding-inline: clamp(16px, 4vw, 32px);
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -60px;
    z-index: 100;
    padding: 10px 16px;
    background: var(--accent);
    color: var(--accent-ink);
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
}
.skip-link:focus { top: 16px; }

.gradient-text {
    background: linear-gradient(100deg, var(--accent) 0%, var(--accent-3) 45%, var(--accent-2) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: shimmer 8s linear infinite;
}

@keyframes shimmer {
    to { background-position: 200% center; }
}

/* ---------- Aurora background ---------- */
.aurora {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
    background: radial-gradient(ellipse at top, var(--bg-2), var(--bg) 60%);
}

.blob {
    position: absolute;
    width: 46vmax;
    height: 46vmax;
    border-radius: 50%;
    filter: blur(90px);
    opacity: var(--blob-opacity);
    will-change: transform;
}

.blob-1 {
    top: -18vmax;
    left: -10vmax;
    background: radial-gradient(circle, var(--accent) 0%, transparent 65%);
    animation: drift-1 26s ease-in-out infinite alternate;
}

.blob-2 {
    top: 10vmax;
    right: -16vmax;
    background: radial-gradient(circle, var(--accent-2) 0%, transparent 65%);
    animation: drift-2 32s ease-in-out infinite alternate;
}

.blob-3 {
    bottom: -24vmax;
    left: 20vmax;
    background: radial-gradient(circle, var(--accent-3) 0%, transparent 65%);
    opacity: calc(var(--blob-opacity) * 0.7);
    animation: drift-3 38s ease-in-out infinite alternate;
}

@keyframes drift-1 { to { transform: translate(18vmax, 12vmax) scale(1.15); } }
@keyframes drift-2 { to { transform: translate(-16vmax, 14vmax) scale(0.9); } }
@keyframes drift-3 { to { transform: translate(-12vmax, -16vmax) scale(1.1); } }

.grid-overlay {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse at 50% 0%, #000 20%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 20%, transparent 75%);
}

/* ---------- Header / nav ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    padding-top: env(safe-area-inset-top, 0px);
    transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease);
    border-bottom: 1px solid transparent;
}

/* blur lives on a pseudo-element so the fixed mobile menu isn't trapped by backdrop-filter */
.site-header::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background: var(--header-bg);
    backdrop-filter: blur(16px) saturate(160%);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    opacity: 0;
    transition: opacity 0.3s var(--ease);
}

.site-header.is-scrolled::before { opacity: 1; }
.site-header.is-scrolled { border-bottom-color: var(--border); }

.nav-inner {
    max-width: var(--maxw);
    margin-inline: auto;
    padding: 18px clamp(16px, 4vw, 32px);
    display: flex;
    align-items: center;
    gap: 24px;
    transition: padding 0.3s var(--ease);
}

.is-scrolled .nav-inner { padding-block: 10px; }

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-weight: 600;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    color: var(--accent-ink);
    background: linear-gradient(135deg, var(--accent), var(--accent-3));
    box-shadow: 0 0 24px var(--glow);
}

.brand-text { font-family: var(--font-mono); font-size: 14px; color: var(--text-strong); }
.brand-cursor { color: var(--accent-2); animation: blink 1.1s steps(1) infinite; }

@keyframes blink { 50% { opacity: 0; } }

.nav-links {
    display: flex;
    gap: 4px;
    margin-left: auto;
}

.nav-links a {
    position: relative;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
    color: var(--muted);
    text-decoration: none;
    transition: color 0.2s, background-color 0.2s;
}

.nav-links a:hover { color: var(--text-strong); }

.nav-links a[aria-current="true"] {
    color: var(--text-strong);
    background: var(--surface-hover);
    box-shadow: inset 0 0 0 1px var(--border);
}

.nav-actions { display: flex; align-items: center; gap: 8px; }

.icon-btn {
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s var(--ease), border-color 0.2s, color 0.2s, box-shadow 0.2s;
}

.icon-btn:hover {
    color: var(--accent);
    border-color: var(--border-strong);
    box-shadow: 0 0 20px var(--glow);
    transform: translateY(-1px);
}

.icon-btn-lg { width: 46px; height: 46px; border-radius: 14px; }

/* Theme toggle icon: show sun in dark mode (to switch to light), moon in light */
.icon-moon { display: none; }
:root[data-theme="light"] .icon-sun { display: none; }
:root[data-theme="light"] .icon-moon { display: block; }

.menu-btn { display: none; }

.menu-lines,
.menu-lines::before,
.menu-lines::after {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform 0.3s var(--ease), opacity 0.2s;
}

.menu-lines { position: relative; }
.menu-lines::before, .menu-lines::after { content: ""; position: absolute; left: 0; }
.menu-lines::before { top: -6px; }
.menu-lines::after { top: 6px; }

[aria-expanded="true"] .menu-lines { background: transparent; }
[aria-expanded="true"] .menu-lines::before { transform: translateY(6px) rotate(45deg); }
[aria-expanded="true"] .menu-lines::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 14px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: transform 0.2s var(--ease), box-shadow 0.3s var(--ease), background-color 0.2s, border-color 0.2s;
}

.btn-primary {
    color: var(--accent-ink);
    background: linear-gradient(120deg, var(--accent), var(--accent-3));
    box-shadow: 0 8px 30px -6px var(--glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 40px -6px var(--glow);
}

.btn-ghost {
    color: var(--text-strong);
    background: var(--surface);
    border: 1px solid var(--border-strong);
}

.btn-ghost:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
    box-shadow: 0 0 24px var(--glow);
}

.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.cta-center { justify-content: center; }

/* ---------- Glass cards + cursor spotlight ---------- */
.glass {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: var(--shadow);
    transition: border-color 0.3s var(--ease), transform 0.4s var(--ease), background-color 0.3s;
}

.spot { isolation: isolate; overflow: hidden; }

.spot::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    background: radial-gradient(420px circle at var(--mx, 50%) var(--my, -200px), var(--spot), transparent 60%);
    opacity: 0;
    transition: opacity 0.4s var(--ease);
}

.spot:hover::before { opacity: 1; }
.spot:hover { border-color: var(--border-strong); }

/* ---------- Reveal on scroll ---------- */
/* animation (not transition) so hover transforms stay snappy afterwards */
.js .reveal { opacity: 0; }

.js .reveal.is-visible {
    opacity: 1;
    animation: rise 0.8s var(--ease) backwards;
}

@keyframes rise { from { opacity: 0; transform: translateY(24px); } }

.js .reveal:nth-child(2) { animation-delay: 0.06s; }
.js .reveal:nth-child(3) { animation-delay: 0.12s; }
.js .reveal:nth-child(4) { animation-delay: 0.18s; }
.js .reveal:nth-child(5) { animation-delay: 0.24s; }
.js .reveal:nth-child(6) { animation-delay: 0.30s; }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: calc(100svh - 76px);
    display: flex;
    align-items: center;
    padding-block: 48px 96px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    align-items: center;
    gap: clamp(32px, 6vw, 72px);
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px 6px 10px;
    border-radius: 999px;
    border: 1px solid var(--border-strong);
    background: var(--surface);
    font-size: 13px;
    font-weight: 500;
    color: var(--muted);
}

.pulse {
    position: relative;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #34d399;
}

.pulse::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: #34d399;
    animation: ping 1.8s var(--ease) infinite;
}

@keyframes ping { to { transform: scale(2.8); opacity: 0; } }

.hero-name {
    margin-top: 22px;
    font-size: clamp(2.5rem, 5.4vw, 4.4rem);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.02;
}

.hero-role {
    margin-top: 22px;
    font-size: clamp(1.1rem, 2.2vw, 1.4rem);
    font-weight: 500;
    color: var(--text-strong);
    min-height: 1.6em;
}

.prompt { color: var(--accent-2); margin-right: 6px; }
.typed { color: var(--accent); }

.caret {
    display: inline-block;
    width: 2px;
    height: 1.1em;
    margin-left: 3px;
    vertical-align: -0.15em;
    background: var(--accent-2);
    animation: blink 1s steps(1) infinite;
}

.hero-lead {
    margin-top: 18px;
    max-width: 38rem;
    font-size: 1.08rem;
    color: var(--muted);
}

.hero-loc { margin-top: 14px; font-size: 13px; color: var(--muted); }

.hero .cta-row { margin-top: 32px; }

.hero-visual {
    position: relative;
    justify-self: center;
    width: min(100%, 360px);
}

.avatar-ring {
    position: relative;
    aspect-ratio: 1;
    border-radius: 32px;
    padding: 3px;
    isolation: isolate;
}

.avatar-ring::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    background: conic-gradient(from var(--angle, 0deg), var(--accent), var(--accent-3), var(--accent-2), var(--accent));
    animation: spin 6s linear infinite;
}

.avatar-ring::after {
    content: "";
    position: absolute;
    inset: -12%;
    z-index: -2;
    border-radius: 50%;
    background: radial-gradient(circle, var(--glow), transparent 65%);
    filter: blur(20px);
}

.avatar-ring img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 29px;
    background: var(--bg-2);
}

/* soft vignette keeps the bright window backdrop from competing with the headline */
.avatar-shade {
    position: absolute;
    inset: 3px;
    border-radius: 29px;
    pointer-events: none;
    background: radial-gradient(circle at 50% 42%, transparent 45%, var(--vignette) 100%);
}

@property --angle {
    syntax: "<angle>";
    initial-value: 0deg;
    inherits: false;
}

@keyframes spin { to { --angle: 360deg; } }

.float-chip {
    position: absolute;
    padding: 8px 14px;
    border-radius: 12px;
    font-size: 12px;
    color: var(--text-strong);
    background: var(--header-bg);
    border: 1px solid var(--border-strong);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--shadow);
    white-space: nowrap;
    animation: bob 6s ease-in-out infinite;
}

.chip-a { top: 12%; left: -14%; }
.chip-b { bottom: 10%; right: -10%; animation-delay: -3s; }

@keyframes bob { 50% { transform: translateY(-10px); } }

.scroll-cue {
    position: absolute;
    bottom: 28px;
    left: 50%;
    width: 26px;
    height: 42px;
    margin-left: -13px;
    border: 2px solid var(--border-strong);
    border-radius: 14px;
}

.scroll-cue span {
    position: absolute;
    top: 8px;
    left: 50%;
    width: 4px;
    height: 8px;
    margin-left: -2px;
    border-radius: 2px;
    background: var(--accent);
    animation: scroll-dot 1.8s var(--ease) infinite;
}

@keyframes scroll-dot {
    0% { transform: translateY(0); opacity: 1; }
    80% { transform: translateY(14px); opacity: 0; }
    100% { opacity: 0; }
}

/* ---------- Stats ---------- */
.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.stat {
    padding: 26px 24px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.stat strong {
    font-size: clamp(2.2rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1;
    background: linear-gradient(120deg, var(--text-strong), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-variant-numeric: tabular-nums;
}

.stat span { font-size: 14px; color: var(--muted); line-height: 1.45; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(80px, 12vw, 136px) 0; }

.section-head { margin-bottom: 44px; }

.eyebrow {
    font-size: 13px;
    color: var(--accent-2);
    letter-spacing: 0.02em;
}

.section-head h2 {
    margin-top: 10px;
    font-size: clamp(2rem, 4.4vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.03em;
}

/* ---------- About ---------- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: clamp(32px, 5vw, 64px);
    align-items: start;
}

.about-text { display: grid; gap: 18px; color: var(--muted); font-size: 1.05rem; }

.focus-grid {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.focus-grid li { padding: 20px; }
.focus-grid li:hover { transform: translateY(-3px); }
.focus-idx { font-size: 12px; color: var(--accent); }
.focus-grid h3 { margin-top: 6px; font-size: 1.02rem; font-weight: 600; }
.focus-grid p { margin-top: 6px; font-size: 14px; color: var(--muted); line-height: 1.5; }

/* ---------- Experience timeline ---------- */
.timeline {
    list-style: none;
    position: relative;
    display: grid;
    gap: 28px;
    padding-left: 36px;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 7px;
    top: 10px;
    bottom: 10px;
    width: 2px;
    border-radius: 2px;
    background: linear-gradient(to bottom, var(--accent), var(--accent-3), var(--accent-2), transparent);
    opacity: 0.6;
}

.tl-item { position: relative; }

.tl-node {
    position: absolute;
    left: -36px;
    top: 30px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--bg);
    border: 2px solid var(--accent);
    box-shadow: 0 0 0 4px var(--bg), 0 0 18px var(--glow);
}

.tl-node-live { background: var(--accent); }

.tl-node-live::after {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    border: 2px solid var(--accent);
    animation: ping 2.2s var(--ease) infinite;
}

.job { padding: clamp(22px, 3vw, 32px); }

.job-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px 24px;
}

.job-head h3 { font-size: 1.3rem; font-weight: 600; letter-spacing: -0.01em; }
.job-org { margin-top: 4px; color: var(--accent); font-weight: 500; }

.job-date {
    font-size: 12.5px;
    color: var(--muted);
    padding: 5px 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    white-space: nowrap;
}

.job-groups {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px 32px;
    margin-top: 22px;
}

.job-group h4 {
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent-2);
    margin-bottom: 10px;
}

.job-group ul, .job-list { list-style: none; display: grid; gap: 10px; }
.job-list { margin-top: 20px; }

.job-group li, .job-list li {
    position: relative;
    padding-left: 18px;
    font-size: 15px;
    color: var(--muted);
    line-height: 1.6;
}

.job-group li::before, .job-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.68em;
    width: 6px;
    height: 6px;
    border-radius: 2px;
    background: var(--accent);
    box-shadow: 0 0 8px var(--glow);
}

.expand-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 22px;
    padding: 8px 14px;
    border-radius: 10px;
    border: 1px dashed var(--border-strong);
    background: transparent;
    color: var(--accent);
    font-size: 13px;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s;
}

.expand-btn:hover { background: var(--surface-hover); border-color: var(--accent); }
.expand-btn svg { transition: transform 0.3s var(--ease); }
.expand-btn[aria-expanded="true"] svg { transform: rotate(180deg); }

#hooke-more:not([hidden]) { animation: fade-in 0.5s var(--ease); }

@keyframes fade-in { from { opacity: 0; transform: translateY(-6px); } }

.tags {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
}

.tags li {
    font-family: var(--font-mono);
    font-size: 11.5px;
    padding: 4px 10px;
    border-radius: 7px;
    color: var(--muted);
    background: var(--chip-bg);
}

/* ---------- Skills ---------- */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.skill-card { padding: 24px; }
.skill-card-wide { grid-column: span 3; }
.skill-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 14px; }

.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }

.chips li {
    padding: 6px 12px;
    border-radius: 10px;
    font-size: 13.5px;
    color: var(--text);
    background: var(--chip-bg);
    border: 1px solid var(--border);
    transition: color 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.2s var(--ease);
}

.chips li:hover {
    color: var(--text-strong);
    border-color: var(--accent);
    box-shadow: 0 0 16px var(--glow);
    transform: translateY(-2px);
}

/* ---------- Projects ---------- */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
}

.filter-bar button {
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid var(--border-strong);
    background: var(--surface);
    color: var(--muted);
    font: 500 14px var(--font-sans);
    cursor: pointer;
    transition: all 0.2s var(--ease);
}

.filter-bar button:hover { color: var(--text-strong); border-color: var(--accent); }

.filter-bar button[aria-pressed="true"] {
    color: var(--accent-ink);
    background: linear-gradient(120deg, var(--accent), var(--accent-3));
    border-color: transparent;
    box-shadow: 0 6px 24px -6px var(--glow);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.project {
    display: flex;
    flex-direction: column;
    padding: 26px;
}

.project:hover { transform: translateY(-4px); }

.project-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 12px;
    color: var(--muted);
}

.project-meta span:first-child { color: var(--accent-2); }

.project h3 {
    margin-top: 12px;
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.project ul {
    list-style: none;
    display: grid;
    gap: 8px;
    margin-top: 14px;
    margin-bottom: 22px;
}

.project li {
    position: relative;
    padding-left: 16px;
    font-size: 14.5px;
    color: var(--muted);
    line-height: 1.55;
}

.project li::before {
    content: "›";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
}

.project-link {
    margin-top: auto;
    align-self: flex-start;
    font-size: 13px;
    color: var(--accent);
    text-decoration: none;
}

/* whole card is clickable */
.project-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.project:hover .project-link { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Education + certs ---------- */
.edu-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 18px;
    align-items: start;
}

.edu-col { display: grid; gap: 18px; }

.edu-card { padding: 26px; }
.edu-date { font-size: 12px; color: var(--accent-2); }
.edu-card h3 { margin-top: 8px; font-size: 1.2rem; font-weight: 600; }
.edu-card p:not(.mono) { margin-top: 4px; color: var(--muted); font-size: 15px; }
.edu-gpa { margin-top: 14px; font-size: 13px; color: var(--accent); }

.certs { padding: 26px; }
.certs h3 { font-size: 1.2rem; font-weight: 600; }
.certs dl { margin: 16px 0 0; }

.certs dt {
    margin-top: 16px;
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-2);
}

.certs dt:first-child { margin-top: 0; }

.certs dd {
    margin: 6px 0 0;
    padding-left: 16px;
    position: relative;
    font-size: 14.5px;
    color: var(--text);
}

.certs dd::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.62em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    border: 1.5px solid var(--accent);
}

/* ---------- Contact ---------- */
.contact {
    text-align: center;
    padding: clamp(40px, 7vw, 80px) clamp(20px, 5vw, 64px);
    overflow: hidden;
}

.contact::after {
    content: "";
    position: absolute;
    left: 50%;
    top: -60%;
    width: 80%;
    height: 120%;
    transform: translateX(-50%);
    background: radial-gradient(ellipse, var(--glow), transparent 65%);
    z-index: -1;
    pointer-events: none;
}

.contact h2 {
    margin-top: 12px;
    font-size: clamp(2rem, 5vw, 3.4rem);
    font-weight: 700;
    letter-spacing: -0.03em;
}

.contact > p:not(.eyebrow) {
    max-width: 34rem;
    margin: 16px auto 32px;
    color: var(--muted);
}

/* ---------- Footer ---------- */
.site-footer {
    margin-top: clamp(64px, 10vw, 112px);
    padding-block: 28px calc(28px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--border);
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    font-size: 13px;
    color: var(--muted);
}

.footer-inner a { color: var(--accent); text-decoration: none; }
.footer-inner a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-visual { order: -1; width: min(70%, 260px); }
    .chip-a { left: -22%; }
    .chip-b { right: -22%; }
    .stats { grid-template-columns: repeat(2, 1fr); }
    .about-grid { grid-template-columns: 1fr; }
    .skills-grid { grid-template-columns: repeat(2, 1fr); }
    .skill-card-wide { grid-column: span 2; }
    .edu-grid { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
    .menu-btn { display: inline-grid; }
    .nav-actions { margin-left: auto; }

    .nav-links {
        position: fixed;
        inset: 0;
        top: 0;
        z-index: -1;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 8px;
        margin: 0;
        background: var(--bg);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s var(--ease), visibility 0.3s;
    }

    .nav-links.is-open { opacity: 1; visibility: visible; }
    .nav-links a { font-size: 1.4rem; padding: 12px 24px; }
}

@media (max-width: 640px) {
    body { font-size: 16px; }
    .hero { min-height: auto; padding-top: 24px; }
    .scroll-cue { display: none; }
    .brand-text { display: none; }
    .stats { gap: 10px; }
    .stat { padding: 20px 16px; }
    .focus-grid, .projects-grid, .skills-grid { grid-template-columns: 1fr; }
    .skill-card-wide { grid-column: auto; }
    .timeline { padding-left: 26px; }
    .tl-node { left: -26px; width: 14px; height: 14px; }
    .timeline::before { left: 6px; }
    .chip-a, .chip-b { display: none; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
    .js .reveal { opacity: 1; }
}
