/* ============================================================
   Arky (Qing) Yang — resume
   Vanilla CSS. Dark-first, with a light theme via [data-theme].
   ============================================================ */

:root {
  --maxw: 1080px;
  --accent: #f5a623;        /* amber */
  --accent-2: #8a9bff;      /* periwinkle */
  --accent-3: #4fd6c4;      /* teal */
  --radius: 16px;
  --radius-sm: 10px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html[data-theme="dark"] {
  --bg: #0c0d11;
  --bg-2: #0f1116;
  --surface: rgba(255, 255, 255, 0.026);
  --surface-2: rgba(255, 255, 255, 0.045);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --ink: #edeef1;
  --ink-soft: #aab1bd;
  --muted: #6f7783;
  --shadow: 0 20px 50px -24px rgba(0, 0, 0, 0.8);
  --blob-1: #f5a623;
  --blob-2: #7b5cff;
  --blob-3: #1f8f86;
  --blob-opacity: 0.30;
  --grid-opacity: 0.04;
}

html[data-theme="light"] {
  --bg: #f7f5f1;
  --bg-2: #fffefb;
  --surface: rgba(255, 255, 255, 0.7);
  --surface-2: #ffffff;
  --border: rgba(20, 20, 20, 0.09);
  --border-strong: rgba(20, 20, 20, 0.16);
  --ink: #1a1c20;
  --ink-soft: #4b525c;
  --muted: #8a909b;
  --accent: #c2620a;
  --shadow: 0 18px 40px -24px rgba(60, 40, 10, 0.28);
  --blob-1: #f5a623;
  --blob-2: #9d8bff;
  --blob-3: #4fd6c4;
  --blob-opacity: 0.20;
  --grid-opacity: 0.035;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: color-mix(in srgb, var(--accent) 35%, transparent); }

a { color: var(--accent); text-decoration: none; }

/* ---------- Ambient background ---------- */
.ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    radial-gradient(1200px 700px at 80% -10%, color-mix(in srgb, var(--accent) 7%, transparent), transparent 60%),
    var(--bg);
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: var(--blob-opacity);
  will-change: transform;
}
.blob-1 { width: 540px; height: 540px; background: var(--blob-1); top: -160px; left: -120px; animation: drift1 22s var(--ease) infinite alternate; }
.blob-2 { width: 480px; height: 480px; background: var(--blob-2); top: 12%; right: -140px; animation: drift2 26s var(--ease) infinite alternate; }
.blob-3 { width: 460px; height: 460px; background: var(--blob-3); top: 58%; left: 8%; animation: drift3 30s var(--ease) infinite alternate; }
.grid-overlay {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--ink) 1px, transparent 1px), linear-gradient(90deg, var(--ink) 1px, transparent 1px);
  background-size: 54px 54px;
  opacity: var(--grid-opacity);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
}
@keyframes drift1 { to { transform: translate(80px, 60px) scale(1.1); } }
@keyframes drift2 { to { transform: translate(-70px, 50px) scale(1.15); } }
@keyframes drift3 { to { transform: translate(60px, -50px) scale(1.08); } }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 28px;
  transition: padding 0.3s var(--ease);
}
.nav::before {
  content: "";
  position: absolute;
  inset: 0;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: color-mix(in srgb, var(--bg) 62%, transparent);
  border-bottom: 1px solid transparent;
  opacity: 0;
  transition: opacity 0.3s var(--ease), border-color 0.3s var(--ease);
  z-index: -1;
}
.nav.scrolled::before { opacity: 1; border-bottom-color: var(--border); }
.nav.scrolled { padding-top: 10px; padding-bottom: 10px; }

.nav-brand {
  font-family: "JetBrains Mono", monospace;
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.nav-brand .nav-dot { color: var(--accent); }
.nav-links { display: flex; gap: 4px; margin-left: 6px; }
.nav-links a {
  color: var(--ink-soft);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 7px 13px;
  border-radius: 99px;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--ink); background: var(--surface-2); }
.nav-links a.active { color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.theme-toggle {
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 0.95rem;
  transition: border-color 0.2s, color 0.2s, transform 0.2s;
}
.theme-toggle:hover { color: var(--accent); border-color: var(--border-strong); transform: rotate(15deg); }
.icon-moon { display: none; }
html[data-theme="light"] .icon-sun { display: none; }
html[data-theme="light"] .icon-moon { display: inline; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 11px 18px;
  border-radius: 99px;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: transform 0.2s var(--ease), border-color 0.2s, background 0.2s, box-shadow 0.2s, color 0.2s;
  white-space: nowrap;
}
.btn-sm { padding: 8px 15px; font-size: 0.85rem; }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 55%, #ff7a45));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 8px 22px -8px color-mix(in srgb, var(--accent) 70%, transparent);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -10px color-mix(in srgb, var(--accent) 75%, transparent); }
.btn-ghost { background: var(--surface); color: var(--ink); }
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--border-strong); background: var(--surface-2); }

/* ---------- Layout ---------- */
main { display: block; }
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 84px 28px;
  scroll-margin-top: 70px;
}
.section-head { margin-bottom: 40px; max-width: 760px; }
.kicker {
  display: inline-block;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.section-head h2 {
  font-family: "Newsreader", Georgia, serif;
  font-weight: 600;
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0;
}
.section-meta { margin: 10px 0 0; color: var(--muted); font-family: "JetBrains Mono", monospace; font-size: 0.84rem; }
.section-meta a { color: var(--accent); border-bottom: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); }
.section-meta a:hover { border-bottom-color: var(--accent); }

/* ---------- Hero ---------- */
.hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(48px, 9vw, 96px) 28px 56px;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}
.hero-id { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.hero-id .badge-row { margin-bottom: 0; }
.avatar {
  width: 92px; height: 92px; border-radius: 50%;
  object-fit: cover; flex: 0 0 auto;
  border: 2px solid color-mix(in srgb, var(--accent) 60%, transparent);
  box-shadow: 0 10px 26px -10px rgba(0, 0, 0, 0.55), 0 0 0 5px var(--surface);
  transition: transform 0.3s var(--ease);
}
.avatar:hover { transform: scale(1.04) rotate(-2deg); }
.badge-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.status-badge, .loc-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.8rem; font-weight: 500;
  padding: 6px 13px; border-radius: 99px;
  border: 1px solid var(--border); background: var(--surface);
  color: var(--ink-soft);
}
.pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent-3);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent-3) 70%, transparent);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent-3) 65%, transparent); }
  70% { box-shadow: 0 0 0 8px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}
.hero h1 {
  font-family: "Newsreader", Georgia, serif;
  font-weight: 600;
  font-size: clamp(2.8rem, 8vw, 4.6rem);
  line-height: 1.0;
  letter-spacing: -0.02em;
  margin: 0 0 22px;
}
.hero h1 .alt { color: var(--muted); font-weight: 400; }
.hero-role {
  font-size: clamp(1.15rem, 2.6vw, 1.5rem);
  font-weight: 500;
  line-height: 1.4;
  margin: 0 0 16px;
  color: var(--ink);
}
.hero-role .hl {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
}
.hero-sub { color: var(--ink-soft); font-size: 1.02rem; margin: 0 0 28px; max-width: 56ch; }
.hero-sub strong { color: var(--ink); font-weight: 600; }

/* marker-pen highlight (used in body copy) */
.mark {
  font-weight: 600;
  color: var(--ink);
  background-image: linear-gradient(transparent 58%, color-mix(in srgb, var(--accent) 32%, transparent) 58%);
  padding: 0 3px;
  border-radius: 3px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* terminal */
.terminal {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--bg-2) 88%, #000);
  box-shadow: var(--shadow);
  overflow: hidden;
  font-family: "JetBrains Mono", monospace;
  transform: perspective(1200px) rotateY(-4deg) rotateX(2deg);
  transition: transform 0.5s var(--ease);
}
.terminal:hover { transform: perspective(1200px) rotateY(0deg) rotateX(0deg); }
.term-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 11px 14px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.term-dot { width: 11px; height: 11px; border-radius: 50%; }
.term-dot.r { background: #ff5f56; } .term-dot.y { background: #ffbd2e; } .term-dot.g { background: #27c93f; }
.term-title { margin-left: 8px; font-size: 0.72rem; color: var(--muted); }
.term-body { margin: 0; padding: 18px; font-size: 0.74rem; line-height: 1.7; color: var(--ink-soft); overflow-x: auto; }
.t-prompt { color: var(--accent-3); } .t-path { color: var(--accent-2); }
.t-cmd { color: var(--ink); } .t-dim { color: var(--muted); } .t-ok { color: var(--accent-3); }
.t-num { color: var(--accent); font-weight: 600; }
.t-cursor { color: var(--accent); animation: blink 1.1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* now strip */
.now-strip {
  margin-top: 52px;
  display: flex; align-items: center; gap: 18px;
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  flex-wrap: wrap;
}
.now-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent);
  padding-right: 18px; border-right: 1px solid var(--border);
}
.now-items { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.now-chip { font-size: 0.88rem; color: var(--ink-soft); }
.now-chip b { color: var(--ink); font-weight: 600; }
.now-chip b a { color: var(--accent); border-bottom: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); }
.now-chip b a:hover { border-bottom-color: var(--accent); }
.now-chip em { color: var(--muted); font-style: normal; }

/* ---------- Summary ---------- */
.summary-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 44px; align-items: start; }
.lead { font-size: 1.12rem; line-height: 1.65; color: var(--ink-soft); margin: 0; }
.lead strong { color: var(--ink); font-weight: 600; }
.stat-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.stat {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  transition: transform 0.25s var(--ease), border-color 0.25s, background 0.25s;
}
.stat:hover { transform: translateY(-3px); border-color: var(--border-strong); background: var(--surface-2); }
.stat-num {
  display: block;
  font-family: "Newsreader", Georgia, serif;
  font-size: 1.35rem; font-weight: 600;
  color: var(--accent);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.stat-label { font-size: 0.86rem; color: var(--ink-soft); line-height: 1.45; }

/* ---------- Timeline / Work ---------- */
.timeline { display: grid; gap: 14px; }
.t-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: start;
  padding: 22px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  position: relative;
  overflow: hidden;
  transition: transform 0.28s var(--ease), border-color 0.28s, background 0.28s;
}
.t-card::before {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(var(--accent), var(--accent-2));
  transform: scaleY(0); transform-origin: top;
  transition: transform 0.35s var(--ease);
}
.t-card:hover { transform: translateX(4px); border-color: var(--border-strong); background: var(--surface-2); }
.t-card:hover::before { transform: scaleY(1); }
.t-icon {
  display: grid; place-items: center;
  width: 46px; height: 46px;
  font-size: 1.3rem;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
}
.t-card h3 { margin: 2px 0 7px; font-size: 1.08rem; font-weight: 600; }
.t-card p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }
.t-card em { color: var(--accent); font-style: normal; font-weight: 500; }

/* ---------- Projects ---------- */
.project-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.project-card {
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
}
.project-card::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(420px 280px at 100% 0%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 70%);
  opacity: 0; transition: opacity 0.4s var(--ease);
  pointer-events: none;
}
.project-card:hover { transform: translateY(-5px); border-color: var(--border-strong); box-shadow: var(--shadow); }
.project-card:hover::after { opacity: 1; }
.project-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.project-emoji { font-size: 2rem; }
.tag {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.04em;
  padding: 5px 11px; border-radius: 99px;
}
.tag-shipped { background: color-mix(in srgb, var(--accent-3) 16%, transparent); color: var(--accent-3); border: 1px solid color-mix(in srgb, var(--accent-3) 30%, transparent); }
.tag-progress { background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent); }
.project-card h3 { font-family: "Newsreader", serif; font-size: 1.6rem; font-weight: 600; margin: 0 0 6px; }
.project-tagline { font-weight: 600; color: var(--ink); margin: 0 0 12px; font-size: 1.02rem; }
.project-card > p { color: var(--ink-soft); font-size: 0.95rem; margin: 0 0 14px; }
.project-points { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 7px; }
.project-points li { position: relative; padding-left: 22px; font-size: 0.9rem; color: var(--ink-soft); }
.project-points li::before { content: "→"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.project-note { font-size: 0.85rem; color: var(--muted); font-style: italic; margin: 0; padding-top: 12px; border-top: 1px solid var(--border); }
.project-link {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 16px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.82rem; font-weight: 600;
  padding: 9px 16px; border-radius: 99px;
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 32%, transparent);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  transition: transform 0.2s var(--ease), border-color 0.2s, background 0.2s;
}
.project-link:hover { transform: translateY(-2px); border-color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); }

/* ---------- Stack ---------- */
.stack-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.stack-group {
  padding: 22px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.stack-group:first-child { grid-column: 1 / -1; }
.stack-group h4 {
  margin: 0 0 14px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--muted);
}
.pills { display: flex; flex-wrap: wrap; gap: 9px; }
.pill {
  font-size: 0.86rem; font-weight: 500;
  padding: 7px 14px; border-radius: 99px;
  border: 1px solid var(--border); background: var(--surface-2);
  color: var(--ink-soft);
  transition: transform 0.18s var(--ease), border-color 0.18s, color 0.18s;
}
.pill:hover { transform: translateY(-2px); border-color: var(--border-strong); color: var(--ink); }
.pill-ai {
  border-color: color-mix(in srgb, var(--accent-2) 35%, transparent);
  color: var(--accent-2);
  background: color-mix(in srgb, var(--accent-2) 9%, transparent);
}
.pill-ai:hover { color: var(--accent-2); border-color: var(--accent-2); }

/* ---------- Education ---------- */
.edu-list { display: grid; gap: 2px; margin-bottom: 24px; }
.edu-row {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px; padding: 14px 4px;
  border-bottom: 1px solid var(--border);
}
.edu-main { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.edu-deg { font-weight: 600; color: var(--ink); }
.edu-deg em { color: var(--muted); font-weight: 400; font-style: italic; }
.edu-school { color: var(--ink-soft); font-size: 0.95rem; }
.edu-meta { font-family: "JetBrains Mono", monospace; font-size: 0.8rem; color: var(--muted); white-space: nowrap; }

.fine { font-size: 0.9rem; color: var(--muted); line-height: 1.6; margin: 0 0 40px; max-width: 90ch; }
.fine strong { color: var(--ink-soft); }
.fine em { color: var(--ink-soft); }

.dual-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.dual-col h4 {
  margin: 0 0 14px; font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent);
}
.bullets { list-style: none; padding: 0; margin: 0; }
.bullets li { position: relative; padding-left: 20px; margin-bottom: 11px; color: var(--ink-soft); font-size: 0.93rem; }
.bullets li::before { content: ""; position: absolute; left: 3px; top: 0.62em; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.bullets li strong { color: var(--ink); font-weight: 600; }

/* ---------- Footer ---------- */
.footer { margin-top: 40px; border-top: 1px solid var(--border); }
.footer-inner { max-width: var(--maxw); margin: 0 auto; padding: 84px 28px 64px; text-align: center; }
.footer-inner h2 {
  font-family: "Newsreader", serif; font-weight: 600;
  font-size: clamp(1.7rem, 4.5vw, 2.8rem); line-height: 1.15; letter-spacing: -0.015em;
  margin: 0 auto 28px; max-width: 18ch;
}
.footer-cta { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }
.built-badge {
  display: inline-flex; align-items: center; flex-wrap: wrap; justify-content: center; gap: 8px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem; line-height: 1.5;
  padding: 10px 18px; border-radius: 99px;
  border: 1px solid var(--border); background: var(--surface);
  color: var(--ink-soft);
  margin: 0 auto 22px; max-width: 100%;
}
.built-badge a { color: var(--accent); font-weight: 600; border-bottom: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); }
.built-badge a:hover { border-bottom-color: var(--accent); }
.built-dot {
  width: 8px; height: 8px; border-radius: 50%; flex: 0 0 auto;
  background: var(--accent-3);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent-3) 70%, transparent);
  animation: pulse 2s infinite;
}
.footer-fine { color: var(--muted); font-size: 0.85rem; margin: 0; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .terminal { transform: none; max-width: 480px; }
  .summary-grid { grid-template-columns: 1fr; gap: 28px; }
  .project-grid, .dual-grid, .stack-grid { grid-template-columns: 1fr; }
  .stack-group:first-child { grid-column: auto; }
  .nav-links { display: none; }
}
@media (max-width: 520px) {
  .section { padding: 60px 20px; }
  .hero { padding: 40px 20px 40px; }
  .stat-cards { grid-template-columns: 1fr; }
  .edu-row { flex-direction: column; gap: 4px; }
  .now-strip { flex-direction: column; align-items: flex-start; gap: 12px; }
  .now-label { border-right: none; padding-right: 0; }
  .btn { font-size: 0.86rem; padding: 10px 15px; }
  .term-body { font-size: 0.62rem; padding: 14px; }
  .term-title { font-size: 0.64rem; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .blob, .pulse, .t-cursor { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Print ---------- */
@media print {
  .ambient, .nav, .hero-cta, .footer-cta, .theme-toggle, .terminal, .now-strip { display: none !important; }
  html, body { background: #fff !important; color: #000 !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .section, .hero { padding: 16px 0 !important; page-break-inside: avoid; }
  .t-card, .project-card, .stat, .stack-group { border: 1px solid #ddd !important; background: #fff !important; box-shadow: none !important; }
  .hero h1 { color: #000 !important; }
  a { color: #000 !important; }
}
