/* =========================================================
   Amirkian Kiani — "Aurora" portfolio
   Dark, moody, glass. Space Grotesk + Inter + JetBrains Mono.
   ========================================================= */

:root {
  /* base */
  --bg: #080a14;
  --bg-2: #0b0e1c;
  --ink: #e7eaf3;
  --muted: #8a93ab;
  --faint: #5b6480;

  /* aurora hues */
  --violet: #7c5cff;
  --cyan: #22d3ee;
  --magenta: #f471b5;
  --emerald: #34d399;

  /* glass */
  --glass-bg: rgba(255, 255, 255, 0.045);
  --glass-bg-2: rgba(255, 255, 255, 0.02);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-border-strong: rgba(255, 255, 255, 0.18);

  --accent: linear-gradient(120deg, var(--violet), var(--cyan));
  --accent-soft: linear-gradient(120deg, rgba(124, 92, 255, 0.18), rgba(34, 211, 238, 0.18));

  --radius: 20px;
  --radius-sm: 13px;
  --shell: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

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

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

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.05; letter-spacing: -0.02em; }

::selection { background: rgba(124, 92, 255, 0.35); color: #fff; }

/* ---------- Aurora backdrop ---------- */
.aurora {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background:
    radial-gradient(1200px 800px at 75% -10%, rgba(124, 92, 255, 0.12), transparent 60%),
    radial-gradient(1000px 700px at 0% 100%, rgba(34, 211, 238, 0.1), transparent 55%),
    var(--bg);
}
.aurora-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
  will-change: transform;
  mix-blend-mode: screen;
}
.blob-violet  { width: 46vw; height: 46vw; top: -12vh; left: 55vw; background: radial-gradient(circle, var(--violet), transparent 65%); animation: drift1 22s var(--ease) infinite alternate; }
.blob-cyan    { width: 40vw; height: 40vw; top: 30vh; left: -8vw; background: radial-gradient(circle, var(--cyan), transparent 65%); animation: drift2 26s var(--ease) infinite alternate; }
.blob-magenta { width: 34vw; height: 34vw; top: 82vh; left: 60vw; background: radial-gradient(circle, var(--magenta), transparent 65%); opacity: 0.4; animation: drift3 30s var(--ease) infinite alternate; }
.blob-emerald { width: 30vw; height: 30vw; top: 130vh; left: 8vw; background: radial-gradient(circle, var(--emerald), transparent 65%); opacity: 0.35; animation: drift1 28s var(--ease) infinite alternate; }

@keyframes drift1 { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(-8vw, 8vh, 0) scale(1.15); } }
@keyframes drift2 { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(10vw, -6vh, 0) scale(1.1); } }
@keyframes drift3 { from { transform: translate3d(0,0,0) scale(1.1); } to { transform: translate3d(-12vw, -10vh, 0) scale(0.95); } }

.aurora-grain {
  position: absolute;
  inset: -50%;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.35'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
  pointer-events: none;
}

.cursor-glow {
  position: fixed;
  top: 0; left: 0;
  width: 460px; height: 460px;
  margin: -230px 0 0 -230px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 92, 255, 0.14), transparent 60%);
  pointer-events: none;
  z-index: -1;
  transition: opacity 0.4s ease;
  opacity: 0;
}

/* ---------- Glass utility ---------- */
.glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 20px 60px -30px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.94rem;
  padding: 0.8rem 1.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s ease, border-color 0.3s ease;
  white-space: nowrap;
}
.btn i { font-size: 0.82em; }
.btn-primary {
  background: var(--accent);
  color: #08101e;
  font-weight: 600;
  box-shadow: 0 12px 30px -12px rgba(124, 92, 255, 0.7);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -12px rgba(34, 211, 238, 0.6); }
.btn-ghost {
  background: var(--glass-bg);
  border-color: var(--glass-border);
  color: var(--ink);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--glass-border-strong); background: rgba(255, 255, 255, 0.07); }

/* ---------- Header / nav ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 1rem clamp(1rem, 4vw, 2.4rem);
  transition: background 0.4s ease, backdrop-filter 0.4s ease, padding 0.4s ease, border-color 0.4s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(8, 10, 20, 0.6);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--glass-border);
  padding-top: 0.7rem;
  padding-bottom: 0.7rem;
}
.nav-shell {
  max-width: var(--shell);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.brand { display: flex; align-items: center; gap: 0.6rem; font-family: var(--font-display); font-weight: 600; }
.brand-orb {
  width: 15px; height: 15px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 16px rgba(124, 92, 255, 0.9);
}
.brand-name { font-size: 1rem; letter-spacing: -0.01em; }
.nav-links { display: flex; gap: 1.6rem; margin-left: auto; }
.nav-links a {
  font-size: 0.92rem;
  color: var(--muted);
  position: relative;
  padding: 0.2rem 0;
  transition: color 0.25s ease;
}
.nav-links a::after {
  content: "";
  position: absolute; left: 0; bottom: -2px;
  width: 0; height: 1.5px;
  background: var(--accent);
  transition: width 0.3s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { width: 100%; }
.nav-resume { padding: 0.5rem 1.05rem; font-size: 0.88rem; }
.nav-toggle { display: none; }

/* ---------- Layout shell ---------- */
main { position: relative; z-index: 1; }
.section {
  max-width: var(--shell);
  margin: 0 auto;
  padding: clamp(4.5rem, 10vw, 8rem) clamp(1.2rem, 4vw, 2.4rem);
}
.section-head { max-width: 720px; margin-bottom: 3rem; }
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 1rem;
}
.kicker.centered { justify-content: center; }
.kicker-tick { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.section-title { font-size: clamp(1.9rem, 4vw, 2.9rem); }
.section-sub { color: var(--muted); font-size: 1.05rem; margin-top: 1rem; max-width: 60ch; }

/* ---------- Hero ---------- */
.hero {
  max-width: var(--shell);
  margin: 0 auto;
  padding: clamp(7rem, 16vw, 11rem) clamp(1.2rem, 4vw, 2.4rem) clamp(2rem, 5vw, 3rem);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.signal {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  background: var(--glass-bg-2);
  margin-bottom: 1.6rem;
}
.signal-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 10px var(--emerald);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.4; transform: scale(0.7); } }

.hero-title {
  font-size: clamp(2.6rem, 6.4vw, 4.7rem);
  font-weight: 600;
  letter-spacing: -0.03em;
}
.hero-title .line { display: block; }
.grad-text {
  /* natural hue flow (blue -> purple -> pink), palindrome so the loop is seamless */
  background-image: linear-gradient(90deg, var(--cyan), var(--violet), var(--magenta), var(--violet), var(--cyan));
  background-size: 200% auto;
  background-position: 0% center;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: sheen 7s linear infinite;
}
@keyframes sheen {
  from { background-position: 0% center; }
  to { background-position: 200% center; }
}

.hero-lede {
  margin-top: 1.6rem;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: var(--muted);
  max-width: 54ch;
}
.hero-lede strong { color: var(--ink); font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2.1rem; }
.hero-langs {
  display: flex; flex-wrap: wrap; gap: 1.4rem;
  list-style: none; margin-top: 2.4rem;
  font-family: var(--font-mono); font-size: 0.82rem;
  color: var(--faint); letter-spacing: 0.04em;
}
.hero-langs li { position: relative; }
.hero-langs li + li::before { content: "/"; position: absolute; left: -0.85rem; color: rgba(255,255,255,0.15); }

/* Identity card */
.id-card { padding: 1.6rem; }
.id-photo { position: relative; display: flex; flex-direction: column; align-items: center; }
.id-photo img {
  width: 118px; height: 118px; border-radius: 50%;
  object-fit: cover;
  border: 2px solid transparent;
  background: linear-gradient(var(--bg-2), var(--bg-2)) padding-box, var(--accent) border-box;
  box-shadow: 0 0 40px -8px rgba(124, 92, 255, 0.6);
}
.id-available {
  display: inline-flex; align-items: center; gap: 0.45rem;
  margin-top: 0.9rem;
  font-family: var(--font-mono); font-size: 0.72rem;
  color: var(--emerald);
  padding: 0.25rem 0.75rem;
  border: 1px solid rgba(52, 211, 153, 0.3);
  border-radius: 999px;
  background: rgba(52, 211, 153, 0.08);
}
.id-pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--emerald); box-shadow: 0 0 8px var(--emerald); animation: pulse 2s ease-in-out infinite; }
.id-body { text-align: center; margin-top: 1.1rem; }
.id-name { font-size: 1.3rem; }
.id-role { color: var(--muted); font-size: 0.86rem; margin-top: 0.25rem; }
.id-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem; margin: 1.4rem 0 1.2rem;
  padding: 1rem 0;
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
}
.id-stat strong { display: block; font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; color: var(--ink); }
.id-stat span { font-size: 0.66rem; color: var(--muted); line-height: 1.3; display: block; margin-top: 0.2rem; }
.id-links { display: flex; justify-content: center; gap: 0.7rem; }
.id-links a {
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--glass-border);
  color: var(--muted);
  transition: color 0.25s ease, border-color 0.25s ease, transform 0.25s ease, background 0.25s ease;
}
.id-links a:hover { color: var(--ink); border-color: var(--cyan); transform: translateY(-2px); background: rgba(34, 211, 238, 0.1); }

/* Impact strip */
.impact {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: clamp(3rem, 7vw, 5rem);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--glass-border);
}
.impact-item {
  background: rgba(11, 14, 28, 0.7);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  padding: 1.5rem 1.4rem;
  text-align: center;
}
.impact-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 600;
  background: var(--accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  letter-spacing: -0.02em;
}
.impact-item strong.no-count { font-size: clamp(1.1rem, 2.2vw, 1.55rem); }
.impact-item span { display: block; font-size: 0.78rem; color: var(--muted); margin-top: 0.5rem; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.about-card { padding: 1.8rem; transition: transform 0.4s var(--ease), border-color 0.4s ease; }
.about-card:hover { transform: translateY(-5px); border-color: var(--glass-border-strong); }
.about-icon {
  display: grid; place-items: center;
  width: 50px; height: 50px; border-radius: 14px;
  background: var(--accent-soft);
  border: 1px solid var(--glass-border);
  font-size: 1.2rem; color: var(--cyan);
  margin-bottom: 1.2rem;
}
.about-card h3 { font-size: 1.3rem; margin-bottom: 0.7rem; }
.about-card p { color: var(--muted); font-size: 0.96rem; }
.about-tags {
  margin-top: 1.1rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--faint);
  line-height: 1.9;
}

/* ---------- Stack ---------- */
.stack-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
.stack-card { padding: 1.6rem; transition: transform 0.4s var(--ease), border-color 0.4s ease; }
.stack-card:hover { transform: translateY(-4px); border-color: var(--glass-border-strong); }
.stack-card:first-child { grid-column: span 2; }
.stack-card h3 { display: flex; align-items: center; gap: 0.6rem; font-size: 1.05rem; margin-bottom: 1.1rem; color: var(--ink); }
.stack-card h3 i { color: var(--violet); font-size: 0.95rem; }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chips span {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  background: var(--glass-bg-2);
  border: 1px solid var(--glass-border);
  color: var(--muted);
  transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}
.chips span:hover { color: var(--ink); border-color: var(--cyan); background: rgba(34, 211, 238, 0.08); transform: translateY(-2px); }

/* ---------- Work ---------- */
.work-featured { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; margin-bottom: 1.4rem; }
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.work-card {
  padding: 1.7rem;
  display: flex; flex-direction: column;
  transition: transform 0.4s var(--ease), border-color 0.4s ease, box-shadow 0.4s ease;
  position: relative;
  overflow: hidden;
}
.work-card::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--accent-soft);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.work-card:hover { transform: translateY(-5px); border-color: var(--glass-border-strong); box-shadow: 0 30px 60px -30px rgba(124, 92, 255, 0.5); }
.work-card:hover::before { opacity: 0.5; }
.work-card > * { position: relative; z-index: 1; }
.work-card.feature { padding: 2rem; }
.work-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; gap: 1rem; }
.work-eyebrow { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.05em; color: var(--cyan); text-transform: uppercase; }
.chip-live {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-family: var(--font-mono); font-size: 0.68rem;
  color: var(--emerald);
  padding: 0.2rem 0.6rem;
  border: 1px solid rgba(52, 211, 153, 0.3);
  border-radius: 999px;
}
.chip-live .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--emerald); box-shadow: 0 0 8px var(--emerald); }
.work-card h3 { font-size: 1.35rem; margin-bottom: 0.6rem; }
.work-card.feature h3 { font-size: 1.7rem; }
.work-card p { color: var(--muted); font-size: 0.92rem; flex-grow: 1; }
.work-meta { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.1rem; }
.work-meta span { font-family: var(--font-mono); font-size: 0.7rem; color: var(--faint); padding: 0.25rem 0.6rem; border: 1px solid var(--glass-border); border-radius: 7px; }
.work-link {
  display: inline-flex; align-items: center; gap: 0.5rem;
  margin-top: 1.2rem;
  font-family: var(--font-mono); font-size: 0.82rem;
  color: var(--ink);
  transition: gap 0.25s ease, color 0.25s ease;
}
.work-link i { color: var(--cyan); font-size: 0.75em; }
.work-link:hover { gap: 0.8rem; color: var(--cyan); }

/* ---------- Timeline ---------- */
.timeline { list-style: none; position: relative; padding-left: 2rem; }
.timeline::before {
  content: "";
  position: absolute; left: 5px; top: 6px; bottom: 6px;
  width: 2px;
  background: linear-gradient(var(--violet), var(--cyan), var(--magenta));
  opacity: 0.55;
}
.tl-item { position: relative; padding-bottom: 1.4rem; }
.tl-item:last-child { padding-bottom: 0; }
.tl-node {
  position: absolute; left: -2rem; top: 1.5rem;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--cyan);
  box-shadow: 0 0 14px rgba(34, 211, 238, 0.8);
  margin-left: -1px;
}
.tl-card { padding: 1.4rem 1.6rem; transition: transform 0.4s var(--ease), border-color 0.4s ease; }
.tl-card:hover { transform: translateX(5px); border-color: var(--glass-border-strong); }
.tl-date { font-family: var(--font-mono); font-size: 0.75rem; color: var(--cyan); letter-spacing: 0.04em; }
.tl-card h3 { font-size: 1.2rem; margin: 0.4rem 0 0.15rem; }
.tl-org { color: var(--violet); font-size: 0.85rem; font-weight: 500; margin-bottom: 0.6rem; }
.tl-card p:last-child { color: var(--muted); font-size: 0.92rem; }

.edu { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; margin-top: 1.8rem; }
.edu-card { padding: 1.5rem 1.6rem; }
.edu-tag { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--cyan); }
.edu-card p { color: var(--muted); font-size: 0.92rem; margin-top: 0.7rem; }
.edu-card p strong { color: var(--ink); font-weight: 600; }

/* ---------- Contact ---------- */
#contact { max-width: 900px; }
.contact-panel { padding: clamp(2.4rem, 6vw, 4rem); text-align: center; }
.contact-title { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 1rem; }
.contact-sub { color: var(--muted); max-width: 48ch; margin: 0 auto 2rem; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; justify-content: center; margin-bottom: 2rem; }
.contact-links {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.6rem; justify-content: center;
  padding-top: 1.8rem;
  border-top: 1px solid var(--glass-border);
}
.contact-links a {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.88rem; color: var(--muted);
  transition: color 0.25s ease;
}
.contact-links a i { color: var(--cyan); }
.contact-links a:hover { color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 2.5rem clamp(1.2rem, 4vw, 2.4rem) 3rem;
  border-top: 1px solid var(--glass-border);
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}
.foot-orb { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 14px rgba(124, 92, 255, 0.8); margin-bottom: 1rem; }
.foot-note { color: var(--faint); font-size: 0.78rem; margin-top: 0.3rem; }

/* ---------- Scroll top ---------- */
.scroll-top {
  position: fixed; bottom: 1.6rem; right: 1.6rem;
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: rgba(11, 14, 28, 0.75);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: var(--ink);
  cursor: pointer;
  display: grid; place-items: center;
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity 0.35s ease, transform 0.35s var(--ease), visibility 0.35s ease, border-color 0.25s ease;
  z-index: 40;
}
.scroll-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.scroll-top:hover { border-color: var(--cyan); color: var(--cyan); }

/* ---------- Reveal animations ---------- */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
[data-reveal].in { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .id-card { max-width: 420px; }
  .about-grid, .stack-grid, .work-featured, .work-grid { grid-template-columns: repeat(2, 1fr); }
  .stack-card:first-child { grid-column: span 2; }
}
@media (max-width: 720px) {
  .nav-links, .nav-resume { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    margin: 0.6rem clamp(1rem, 4vw, 2.4rem) 0;
    padding: 1.2rem 1.4rem;
    background: rgba(11, 14, 28, 0.95);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    gap: 1rem;
  }
  .nav-toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    margin-left: auto;
    width: 42px; height: 42px;
    border: 1px solid var(--glass-border);
    border-radius: 11px;
    background: var(--glass-bg);
    cursor: pointer;
  }
  .nav-toggle span { display: block; width: 18px; height: 2px; background: var(--ink); margin: 0 auto; transition: transform 0.3s var(--ease), opacity 0.3s ease; }
  .nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .impact { grid-template-columns: 1fr; }
  .about-grid, .stack-grid, .work-featured, .work-grid, .edu { grid-template-columns: 1fr; }
  .stack-card:first-child { grid-column: auto; }
  .id-stats { gap: 0.3rem; }
  .cursor-glow { display: none; }
}
@media (max-width: 420px) {
  .impact { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .aurora-blob { animation: none; }
  .cursor-glow { display: none; }
}
