/* ===== Design tokens ===== */
:root {
  --bg: #0a0b14;
  --bg-soft: #111324;
  --card: rgba(255, 255, 255, 0.04);
  --card-border: rgba(255, 255, 255, 0.08);
  --text: #e7e9f3;
  --text-dim: #9aa0b8;
  --accent: #7c5cff;
  --accent-2: #21d4fd;
  --accent-3: #ff7a59;
  --grad: linear-gradient(120deg, #7c5cff 0%, #21d4fd 60%, #6ef3c5 100%);
  --radius: 18px;
  --maxw: 1080px;
  --shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.7);
}

/* Light theme token overrides (default is dark; set by inline head script + toggle) */
:root[data-theme="light"] {
  --bg: #f6f7fb;
  --bg-soft: #ffffff;
  --card: rgba(15, 18, 40, 0.035);
  --card-border: rgba(15, 18, 40, 0.12);
  --text: #1b1e2e;
  --text-dim: #5a617a;
  --shadow: 0 20px 60px -24px rgba(20, 24, 60, 0.22);
}

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

html { scroll-behavior: smooth; }

/* ===== Inline SVG icons (sized via font-size) ===== */
.icon { width: 1em; height: 1em; display: inline-block; vertical-align: -0.125em; }

/* ===== Accessibility ===== */
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 4px; }
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--accent); color: #fff; padding: 10px 18px;
  border-radius: 0 0 10px 0; font-weight: 600;
}
.skip-link:focus { left: 0; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .brand-text { font-family: 'Sora', sans-serif; line-height: 1.15; }

a { color: inherit; text-decoration: none; }

/* ===== Animated background ===== */
.bg-grid {
  position: fixed; inset: 0; z-index: -2;
  background-image:
    linear-gradient(rgba(124, 92, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 92, 255, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
}
.bg-glow {
  position: fixed; z-index: -1; top: -20%; left: 50%;
  width: 900px; height: 900px; transform: translateX(-50%);
  background: radial-gradient(circle, rgba(124, 92, 255, 0.25), transparent 60%);
  filter: blur(30px); pointer-events: none;
  animation: float 14s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-45%) translateY(40px); }
}

/* ===== Navbar ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px clamp(20px, 5vw, 60px);
  transition: background .3s, padding .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(10, 11, 20, 0.75);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--card-border);
  padding-top: 12px; padding-bottom: 12px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; letter-spacing: .5px; }
.brand-mark { filter: drop-shadow(0 0 8px var(--accent)); }
.brand-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav-links { display: flex; gap: 30px; }
.nav-links a { color: var(--text-dim); font-weight: 500; font-size: .95rem; position: relative; transition: color .2s; }
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--grad); transition: width .25s;
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--text); }
.nav-links a.active::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: 8px; }
.theme-toggle {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: none; border: 1px solid transparent; color: var(--text-dim);
  font-size: 1.05rem; cursor: pointer; transition: color .2s, border-color .2s, transform .2s;
}
.theme-toggle:hover { color: var(--text); border-color: var(--card-border); transform: rotate(15deg); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; }
.nav-toggle span { width: 26px; height: 2px; background: var(--text); border-radius: 2px; transition: .3s; }

/* ===== Layout ===== */
.section { max-width: var(--maxw); margin: 0 auto; padding: 100px clamp(20px, 5vw, 40px); }
.section-head { margin-bottom: 48px; }
.section-tag {
  display: inline-block; font-size: .8rem; font-weight: 600; letter-spacing: 2px;
  text-transform: uppercase; color: var(--accent-2); margin-bottom: 12px;
}
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 700; }
.section-note { color: var(--text-dim); margin-top: 8px; }

/* ===== Hero ===== */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  max-width: var(--maxw); margin: 0 auto; padding: 120px clamp(20px, 5vw, 40px) 60px;
}
.eyebrow {
  font-size: .85rem; letter-spacing: 3px; text-transform: uppercase;
  color: var(--accent-2); font-weight: 600; margin-bottom: 18px;
}
.hero-title { font-size: clamp(2.4rem, 7vw, 4.6rem); font-weight: 800; margin-bottom: 22px; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { font-size: clamp(1rem, 2.2vw, 1.25rem); color: var(--text-dim); max-width: 620px; margin-bottom: 36px; }
.hero-sub strong { color: var(--text); font-weight: 600; }

.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 56px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 26px; border-radius: 999px; font-weight: 600; font-size: .95rem;
  transition: transform .2s, box-shadow .2s, background .2s; cursor: pointer; border: 1px solid transparent;
}
.btn-primary { background: var(--grad); color: #0a0b14; box-shadow: 0 10px 30px -8px rgba(124, 92, 255, 0.6); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -8px rgba(124, 92, 255, 0.8); }
.btn-ghost { background: transparent; border-color: var(--card-border); color: var(--text); }
.btn-ghost:hover { background: var(--card); transform: translateY(-2px); }
/* Strip UA button chrome only — resetting `background` here would out-specify
   .btn-primary's gradient on <button class="btn btn-primary"> elements. */
button.btn { font: inherit; appearance: none; -webkit-appearance: none; }

.hero-stats { display: flex; gap: 48px; flex-wrap: wrap; }
.hero-stats > div { display: flex; flex-direction: column; }
.stat-num { font-family: 'Sora'; font-size: 2rem; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-label { font-size: .85rem; color: var(--text-dim); }

/* ===== About ===== */
.about-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; align-items: start; }
.about-text p { color: var(--text-dim); margin-bottom: 18px; }
.about-text strong { color: var(--text); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.chip {
  font-size: .82rem; padding: 6px 14px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--card-border); color: var(--text-dim);
}
.about-card {
  background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow); backdrop-filter: blur(8px);
}
.about-card-row { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--card-border); font-size: .92rem; }
.about-card-row:last-child { border-bottom: 0; }
.about-card-row span { color: var(--text-dim); }
.about-card-row strong { text-align: right; }
.dot-live { color: #6ef3c5; }
.dot-live::before { content: '●'; margin-right: 6px; font-size: .7em; }

/* ===== Resume ===== */
.resume-summary { color: var(--text-dim); max-width: 760px; margin-bottom: 32px; font-size: 1.02rem; }
.resume-subhead { font-size: 1.1rem; font-weight: 700; margin: 40px 0 18px; }
.resume-subhead:first-of-type { margin-top: 0; }

.skill-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; margin-bottom: 8px; }
.skill-group {
  background: var(--card); border: 1px solid var(--card-border); border-radius: 14px; padding: 18px 20px;
}
.skill-group h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: 1px; color: var(--accent-2); margin-bottom: 10px; }
.skill-group p { color: var(--text-dim); font-size: .88rem; line-height: 1.6; margin: 0; }

.timeline { display: flex; flex-direction: column; gap: 0; border-left: 2px solid var(--card-border); padding-left: 28px; margin-left: 6px; }
.timeline-item { position: relative; padding-bottom: 34px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: ''; position: absolute; left: -33px; top: 4px; width: 10px; height: 10px; border-radius: 50%;
  background: var(--grad); box-shadow: 0 0 0 4px var(--bg);
}
.timeline-role { font-weight: 700; font-size: 1.02rem; }
.timeline-meta { color: var(--accent-2); font-size: .85rem; font-weight: 600; margin-bottom: 10px; }
.timeline-item ul { list-style: none; display: grid; gap: 8px; }
.timeline-item li { position: relative; padding-left: 18px; color: var(--text-dim); font-size: .92rem; line-height: 1.55; }
.timeline-item li::before { content: '—'; position: absolute; left: 0; color: var(--text-dim); }

.resume-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 40px; }
.resume-columns ul { list-style: none; display: grid; gap: 10px; }
.resume-columns li { position: relative; padding-left: 18px; color: var(--text-dim); font-size: .92rem; }
.resume-columns li::before { content: '✦'; position: absolute; left: 0; color: var(--accent); font-size: .85rem; }
.resume-columns li a { color: var(--text-dim); border-bottom: 1px solid transparent; transition: color .2s, border-color .2s; }
.resume-columns li a:hover { color: var(--accent-2); border-color: var(--accent-2); }

.resume-cta { margin-top: 40px; }

/* ===== Project grid ===== */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.pcard {
  display: flex; flex-direction: column; color: inherit;
  position: relative; background: var(--card); border: 1px solid var(--card-border);
  border-radius: var(--radius); overflow: hidden;
  transition: transform .3s, border-color .3s, box-shadow .3s;
}
.pcard.hidden { display: none; }
.pcard-thumb { aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-soft); border-bottom: 1px solid var(--card-border); }
.pcard-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.pcard:hover .pcard-thumb img { transform: scale(1.04); }
.pcard-thumb-empty {
  display: grid; place-items: center; font-size: 2.6rem; color: var(--accent-2);
  background:
    radial-gradient(circle at 30% 20%, rgba(124, 92, 255, 0.18), transparent 55%),
    radial-gradient(circle at 75% 80%, rgba(33, 212, 253, 0.12), transparent 55%);
}
.pcard-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.pcard-icon-sm { color: var(--accent-2); margin-right: 10px; font-size: .95em; }
.pcard-more { font-size: .85rem; font-weight: 600; color: var(--accent-2); display: inline-flex; align-items: center; gap: 6px; transition: gap .2s; }
.pcard:hover .pcard-more { gap: 10px; }
.pcard::before {
  content: ''; position: absolute; inset: 0; border-radius: var(--radius);
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(124, 92, 255, 0.12), transparent 60%);
  opacity: 0; transition: opacity .3s; pointer-events: none; z-index: 1;
}
.pcard:hover { transform: translateY(-6px); border-color: rgba(124, 92, 255, 0.4); box-shadow: var(--shadow); }
.pcard:hover::before { opacity: 1; }
.pcard h3 { font-size: 1.12rem; margin-bottom: 8px; display: flex; align-items: center; }
.pcard p { font-size: .92rem; color: var(--text-dim); margin-bottom: 16px; }
.pcard-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: auto 0 16px; padding-top: 4px; }
.tag { font-size: .72rem; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--card-border); color: var(--text-dim); }
.tag.live { color: #4cd9a6; border-color: rgba(110, 243, 197, 0.4); }
.tag.archived { color: var(--accent-3); border-color: rgba(255, 122, 89, 0.4); }
.pcard-links { display: flex; gap: 14px; flex-wrap: wrap; }
.pcard-links a { font-size: .85rem; font-weight: 600; color: var(--accent-2); display: inline-flex; align-items: center; gap: 5px; transition: gap .2s; }
.pcard-links a:hover { gap: 9px; }

/* ===== Filter tabs ===== */
.filter-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 22px; }
.ftab {
  padding: 8px 20px; border-radius: 999px; font-size: .88rem; font-weight: 600;
  font-family: inherit; background: none; border: 1px solid var(--card-border);
  color: var(--text-dim); cursor: pointer; transition: color .2s, border-color .2s, background .2s;
}
.ftab:hover { color: var(--text); border-color: rgba(124, 92, 255, 0.4); }
.ftab.active { background: var(--grad); color: #0a0b14; border-color: transparent; }

/* ===== Contact ===== */
.contact { display: flex; justify-content: center; }
.contact-card {
  text-align: center; max-width: 620px; padding: 56px clamp(24px, 5vw, 56px);
  background: var(--card); border: 1px solid var(--card-border); border-radius: 24px;
  box-shadow: var(--shadow); backdrop-filter: blur(8px);
}
.contact-card h2 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin-bottom: 14px; }
.contact-card p { color: var(--text-dim); margin-bottom: 30px; }
/* Email on its own row, socials centered beneath — avoids an accidental orphan wrap. */
.contact-actions { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.contact-socials { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ===== Project detail page ===== */
.project-main { max-width: 820px; margin: 0 auto; padding: 130px clamp(20px, 5vw, 40px) 60px; }
.back-link { display: inline-flex; align-items: center; gap: 8px; color: var(--text-dim); font-weight: 600; font-size: .92rem; margin-bottom: 36px; transition: gap .2s, color .2s; }
.back-link:hover { color: var(--text); gap: 12px; }

.project-hero { display: flex; gap: 22px; align-items: flex-start; margin-bottom: 36px; }
.project-hero-icon {
  font-size: 2.2rem; width: 76px; height: 76px; flex: none; display: grid; place-items: center;
  border-radius: 20px; background: rgba(124, 92, 255, 0.14); border: 1px solid var(--card-border);
  box-shadow: var(--shadow); color: var(--accent-2);
}
.project-hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.project-hero h1 { font-size: clamp(1.8rem, 5vw, 2.8rem); }
.project-tagline { color: var(--text-dim); font-size: 1.1rem; margin-top: 6px; }

.project-image {
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--card-border);
  box-shadow: var(--shadow); margin-bottom: 36px; background: var(--card);
}
.project-image img { display: block; width: 100%; height: auto; }
.project-image figcaption {
  color: var(--text-dim); font-size: .85rem; padding: 12px 16px;
  border-top: 1px solid var(--card-border);
}

.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.video-embed {
  position: relative; width: 100%; padding-top: 56.25%; border-radius: 14px; overflow: hidden;
  background: var(--bg-soft); border: 1px solid var(--card-border);
}
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-title { color: var(--text-dim); font-size: .88rem; margin-top: 10px; margin-bottom: 0; }

.project-note {
  background: rgba(255, 122, 89, 0.08); border: 1px solid rgba(255, 122, 89, 0.3);
  color: #ffb39c; border-radius: 14px; padding: 16px 20px; margin-bottom: 32px; font-size: .92rem;
}

.project-block { margin-bottom: 38px; }
.project-block h2 {
  font-size: 1.25rem; margin-bottom: 16px; padding-bottom: 10px;
  border-bottom: 1px solid var(--card-border);
}
.project-block p { color: var(--text-dim); margin-bottom: 14px; }

.feature-list { list-style: none; display: grid; gap: 12px; }
.feature-list li {
  position: relative; padding-left: 30px; color: var(--text-dim); line-height: 1.6;
}
.feature-list li::before {
  content: '✦'; position: absolute; left: 0; top: 1px;
  color: var(--accent); font-size: .95rem;
}

.project-cta { display: flex; gap: 14px; flex-wrap: wrap; margin: 8px 0 44px; }

.related { margin-top: 56px; padding-top: 36px; border-top: 1px solid var(--card-border); }
.related h2 { font-size: 1.25rem; margin-bottom: 20px; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.related-card {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px;
  background: var(--card); border: 1px solid var(--card-border); border-radius: 14px;
  color: var(--text); transition: transform .2s, border-color .2s;
}
.related-card:hover { transform: translateY(-3px); border-color: rgba(124, 92, 255, 0.4); }
.related-icon { font-size: 1.3rem; color: var(--accent-2); display: inline-flex; }
.related-name { font-weight: 600; font-size: .92rem; flex: 1; }
.related-tag { font-size: .7rem; color: var(--text-dim); }

.project-notfound { text-align: center; padding: 80px 20px; }
.project-notfound h1 { font-size: 2rem; margin-bottom: 12px; }
.project-notfound p { color: var(--text-dim); margin-bottom: 28px; }

/* ===== Footer ===== */
.footer { border-top: 1px solid var(--card-border); margin-top: 40px; }
.footer-grid {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px;
  padding: 56px clamp(20px, 5vw, 40px) 44px;
}
.footer-brand p { color: var(--text-dim); font-size: .9rem; margin-top: 14px; max-width: 320px; }
.footer-col { display: flex; flex-direction: column; gap: 11px; }
.footer-col h4 {
  font-family: 'Sora', sans-serif; font-size: .78rem; text-transform: uppercase;
  letter-spacing: 1.5px; color: var(--accent-2); margin-bottom: 6px;
}
.footer-col a {
  color: var(--text-dim); font-size: .92rem; width: fit-content;
  display: inline-flex; align-items: center; gap: 9px; transition: color .2s;
}
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  border-top: 1px solid var(--card-border); text-align: center;
  padding: 22px; color: var(--text-dim); font-size: .85rem;
  display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; justify-content: center;
}

/* ===== Back to top ===== */
.to-top {
  position: fixed; bottom: 26px; right: 26px; z-index: 90;
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: var(--bg-soft); border: 1px solid var(--card-border); color: var(--text);
  font-size: 1.1rem; cursor: pointer; box-shadow: var(--shadow);
  opacity: 0; pointer-events: none; transform: translateY(8px);
  transition: opacity .25s, transform .25s, border-color .2s;
}
.to-top.show { opacity: 1; pointer-events: auto; transform: none; }
.to-top:hover { border-color: rgba(124, 92, 255, 0.5); }

/* ===== Cookie consent banner ===== */
.cookie-banner {
  position: fixed; bottom: 24px; left: 24px; z-index: 95;
  width: min(400px, calc(100vw - 48px)); padding: 20px 22px;
  background: var(--card); border: 1px solid var(--card-border); border-radius: 18px;
  box-shadow: var(--shadow); backdrop-filter: blur(10px);
  opacity: 0; transform: translateY(14px); transition: opacity .3s ease, transform .3s ease;
}
.cookie-banner.show { opacity: 1; transform: none; }
.cookie-banner p { color: var(--text-dim); font-size: .88rem; line-height: 1.55; margin-bottom: 16px; }
.cookie-actions { display: flex; gap: 10px; justify-content: flex-end; }
.btn-sm { padding: 9px 18px; font-size: .85rem; }

.link-btn {
  background: none; border: 0; padding: 0; font: inherit; cursor: pointer;
  color: var(--text-dim); text-decoration: underline; text-underline-offset: 3px;
  transition: color .2s;
}
.link-btn:hover { color: var(--text); }

@media (max-width: 640px) {
  .cookie-banner { left: 16px; bottom: 16px; width: calc(100vw - 32px); }
  /* Keep the round back-to-top button from sitting on top of the banner. */
  body.consent-open .to-top { display: none; }
}

@media print { .cookie-banner { display: none !important; } }

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ===== Light theme component adjustments ===== */
:root[data-theme="light"] .bg-glow { opacity: .4; }
:root[data-theme="light"] .nav.scrolled { background: rgba(246, 247, 251, 0.8); }
:root[data-theme="light"] .nav-links { background: var(--bg-soft); }
:root[data-theme="light"] .tag.live { color: #0e8a5f; border-color: rgba(14, 138, 95, 0.45); }
:root[data-theme="light"] .dot-live { color: #0e8a5f; }
:root[data-theme="light"] .tag.archived { color: #c2551e; border-color: rgba(194, 85, 30, 0.45); }
:root[data-theme="light"] .project-note { background: rgba(194, 85, 30, 0.08); border-color: rgba(194, 85, 30, 0.35); color: #a63f14; }
:root[data-theme="light"] .video-title { color: var(--text-dim); }
:root[data-theme="light"] .timeline-item::before { box-shadow: 0 0 0 4px var(--bg); }
:root[data-theme="light"] .ftab.active { color: #fff; }
:root[data-theme="light"] .btn-primary { color: #10122a; }

/* ===== Responsive ===== */
@media (max-width: 820px) {
  .about-grid { grid-template-columns: 1fr; }
  .resume-columns { grid-template-columns: 1fr; gap: 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .nav-links {
    position: fixed; top: 0; right: -100%; height: 100vh; width: min(75vw, 320px);
    flex-direction: column; gap: 28px; padding: 100px 36px;
    background: var(--bg-soft); border-left: 1px solid var(--card-border);
    transition: right .35s ease; box-shadow: var(--shadow);
  }
  .nav-links.open { right: 0; }
  .nav-links a { font-size: 1.1rem; }
  .nav-toggle { display: flex; z-index: 101; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .hero-stats { gap: 32px; }
}

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

/* ===== Print (Resume → Save as PDF) ===== */
@media print {
  body * { visibility: hidden; }
  #resume, #resume * { visibility: visible; }
  #resume { position: absolute; top: 0; left: 0; width: 100%; padding: 20px 0; }
  #resume .resume-print-btn, .bg-grid, .bg-glow { display: none !important; }
  body { background: #fff; color: #111; }
  .timeline-item::before { background: #111; box-shadow: none; }
  a { color: #111 !important; }
}
