/* =========================================================
   FX LAYER — motion, interaction & "wow" effects
   ========================================================= */
:root {
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out-quart: cubic-bezier(0.76, 0, 0.24, 1);
}

#canvas-container { opacity: 1; }

/* ---------- Film grain for depth ---------- */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2000;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Aurora background ---------- */
.aurora {
  position: fixed;
  inset: -10%;
  z-index: -2;
  pointer-events: none;
  overflow: hidden;
  transform: translate3d(calc(var(--px, 0) * -40px), calc(var(--py, 0) * -40px), 0);
  transition: transform 0.6s var(--ease-out-expo);
}
.aurora span {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.28;
  will-change: transform;
}
.aurora .a1 { width: 48vw; height: 48vw; left: -6vw; top: -10vw; background: #6366f1; animation: drift-1 24s ease-in-out infinite alternate; }
.aurora .a2 { width: 40vw; height: 40vw; right: -8vw; top: 10vh; background: #06b6d4; animation: drift-2 28s ease-in-out infinite alternate; }
.aurora .a3 { width: 36vw; height: 36vw; left: 30vw; bottom: -14vw; background: #a855f7; opacity: 0.18; animation: drift-3 32s ease-in-out infinite alternate; }

@keyframes drift-1 { to { transform: translate(18vw, 22vh) scale(1.2); } }
@keyframes drift-2 { to { transform: translate(-22vw, 30vh) scale(0.85); } }
@keyframes drift-3 { to { transform: translate(-14vw, -40vh) scale(1.25); } }

/* ---------- Window chrome (terminal) ---------- */
.term-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
}
.term-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  flex-shrink: 0;
}
.term-dot.red { background: #ff5f57; }
.term-dot.yellow { background: #febc2e; }
.term-dot.green { background: #28c840; }
.term-title {
  flex: 1;
  text-align: center;
  color: #64748b;
  font-size: 0.75rem;
  margin-right: 52px;
}
/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 1001;
  background: linear-gradient(90deg, #6366f1, #06b6d4, #10b981);
  transform-origin: 0 50%;
  transform: scaleX(0);
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.7);
  pointer-events: none;
}

/* ---------- Header: hide on scroll down ---------- */
header {
  transition: padding var(--transition), background var(--transition), border-color var(--transition), transform 0.5s var(--ease-out-expo);
}
header.nav-hidden { transform: translateY(-110%); }

nav { gap: 24px; }
.nav-links { margin-left: auto; }
.nav-actions { display: flex; align-items: center; gap: 10px; }

.nav-cmd {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px 7px 12px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  cursor: pointer;
  transition: border-color var(--transition), color var(--transition), box-shadow var(--transition);
}
.nav-cmd:hover { border-color: rgba(99, 102, 241, 0.6); color: var(--color-text); box-shadow: 0 0 20px rgba(99, 102, 241, 0.25); }

kbd {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  line-height: 1.4;
  padding: 1px 6px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-bottom-width: 2px;
  color: var(--color-text);
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow-x: clip; }

.hero h1 { letter-spacing: 0; }
.hero-hi {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-weight: 500;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}
.hero-hi::before { content: '> '; color: var(--color-secondary); }

.hero-name {
  display: block;
  font-size: clamp(2.6rem, 8vw, 5.4rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -2px;
  padding-bottom: 6px;
}
.hero-name .word { display: inline-block; white-space: nowrap; }
.hero-name .char {
  display: inline-block;
  color: hsl(calc(243 - var(--i) * 4.4), 92%, 74%);
  text-shadow: 0 0 42px hsla(calc(243 - var(--i) * 4.4), 90%, 60%, 0.45);
  animation: char-in 1s var(--ease-out-expo) backwards;
  animation-delay: calc(0.2s + var(--i) * 45ms);
  transition: transform 0.4s var(--ease-out-expo), color 0.3s;
}
.hero-name .char:hover { transform: translateY(-14px) rotate(-8deg) scale(1.1); color: #fff; }
@keyframes char-in {
  from { opacity: 0; transform: translateY(90%) rotate(14deg); filter: blur(10px); }
}

.status-dot { animation: dot-ping 2s ease-out infinite; }
@keyframes dot-ping {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  80%, 100% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
}
.hero-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.hero-meta-item i { color: var(--color-secondary); }
button.hero-meta-item { cursor: pointer; transition: border-color var(--transition), color var(--transition), transform var(--transition); }
button.hero-meta-item:hover { border-color: rgba(99, 102, 241, 0.6); color: var(--color-text); }
#local-time { color: var(--color-text); font-variant-numeric: tabular-nums; }

/* Avatar stage with orbiting tech */
.hero-avatar-stage {
  --r: 200px;
  position: relative;
  width: 450px;
  height: 450px;
  display: grid;
  place-items: center;
}
.hero-avatar-container {
  background: #0b0f19;
  border: 0;
  padding: 5px;
  isolation: isolate;
  box-shadow: none;
}
.hero-avatar-container::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #6366f1, #06b6d4, #10b981, #a855f7, #6366f1);
  animation: spin 5s linear infinite;
  z-index: -1;
}
.hero-avatar-container::after {
  content: '';
  position: absolute;
  inset: -40px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.45), rgba(6, 182, 212, 0.15) 45%, transparent 70%);
  filter: blur(24px);
  z-index: -2;
  animation: breathe 5s ease-in-out infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes breathe { 50% { transform: scale(1.12); opacity: 0.7; } }

.orbit {
  position: absolute;
  inset: calc(50% - var(--r));
  border-radius: 50%;
  border: 1px dashed rgba(148, 163, 184, 0.16);
  animation: spin 36s linear infinite;
  pointer-events: none;
}
.orbit-item {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 46px;
  height: 46px;
  margin: -23px 0 0 -23px;
  transform: rotate(var(--a)) translateX(var(--r)) rotate(calc(-1 * var(--a)));
}
.orbit-item > span {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45);
  font-size: 1.25rem;
  font-family: var(--font-mono);
  font-weight: 700;
  animation: spin 36s linear infinite reverse;
}
.orbit-item .t-cpp { font-size: 0.78rem; color: #f472b6; }

/* Scroll cue */
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 28px;
  width: 26px;
  height: 42px;
  margin-left: -13px;
  border-radius: 14px;
  border: 2px solid rgba(148, 163, 184, 0.35);
  display: flex;
  justify-content: center;
  padding-top: 7px;
  transition: border-color var(--transition);
}
.scroll-cue:hover { border-color: var(--color-secondary); }
.scroll-cue span {
  width: 4px;
  height: 8px;
  border-radius: 2px;
  background: var(--color-secondary);
  animation: cue 1.8s var(--ease-out-expo) infinite;
}
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

/* ---------- Tech marquee ---------- */
.tech-marquee {
  position: relative;
  overflow: hidden;
  padding: 20px 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  background: rgba(11, 15, 25, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track { display: flex; width: max-content; }
.marquee-track.is-running { animation: marquee 45s linear infinite; }
.tech-marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: 52px;
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--color-text-muted);
  white-space: nowrap;
  transition: color var(--transition);
}
.marquee-item:hover { color: var(--color-text); }
.marquee-item i { font-size: 1.3rem; color: var(--color-secondary); }
.marquee-item:nth-child(3n + 2) i { color: #818cf8; }
.marquee-item:nth-child(3n) i { color: var(--color-accent); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Section titles ---------- */
.section-title .title-text { display: inline-block; }
.section-title .scr { color: var(--color-secondary); opacity: 0.75; }
.section-title > span:first-child { text-shadow: 0 0 18px rgba(99, 102, 241, 0.5); }

/* ---------- Spotlight + tilt cards ---------- */
.spotlight { position: relative; }
.spotlight::before,
.spotlight::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease;
}
.spotlight::before {
  background: radial-gradient(460px circle at var(--mx, 50%) var(--my, 50%), rgba(99, 102, 241, 0.16), transparent 45%);
  z-index: 0;
}
.spotlight::after {
  padding: 1px;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgba(34, 211, 238, 0.9), rgba(99, 102, 241, 0.4) 30%, transparent 55%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  z-index: 2;
}
.spotlight:hover::before,
.spotlight:hover::after { opacity: 1; }
.spotlight > * { position: relative; z-index: 1; }

[data-tilt] { transform-style: preserve-3d; will-change: transform; }
[data-tilt].is-tilting { transition: transform 0.12s ease-out, box-shadow var(--transition), border-color var(--transition); }

.project-card { cursor: pointer; }

/* ---------- Language breakdown ---------- */
.lang-breakdown { max-width: 760px; margin: 0 auto 40px; }
.lang-bar {
  display: flex;
  gap: 3px;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
}
.lang-seg {
  height: 100%;
  flex: 0 0 0%;
  transition: flex-basis 1.6s var(--ease-out-expo);
}
.lang-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--color-text-muted);
}
.lang-legend span { display: inline-flex; align-items: center; gap: 7px; }
.lang-legend i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.lang-legend b { color: var(--color-text); font-weight: 600; }

/* ---------- Codeforces live chart ---------- */
.cf-chart-wrap {
  position: relative;
  margin: -8px 0 22px;
  padding: 12px 12px 8px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.cf-chart-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--color-text-muted);
}
.live-pill { display: inline-flex; align-items: center; gap: 6px; color: #10b981; font-weight: 700; letter-spacing: 1.5px; font-size: 0.62rem; }
.live-dot { width: 6px; height: 6px; border-radius: 50%; background: #10b981; animation: dot-ping 1.6s ease-out infinite; }
.cf-chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.cf-line {
  fill: none;
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round;
  stroke-dasharray: var(--len, 2000);
  stroke-dashoffset: var(--len, 2000);
  transition: stroke-dashoffset 2.2s var(--ease-out-expo);
}
.cf-area, .cf-pt { opacity: 0; transition: opacity 0.8s ease 0.9s; }
.cf-chart.drawn .cf-line { stroke-dashoffset: 0; }
.cf-chart.drawn .cf-area, .cf-chart.drawn .cf-pt { opacity: 1; }
.cf-band-label { font-family: var(--font-mono); font-size: 7px; fill: #64748b; }
.cf-guide { stroke: rgba(255, 255, 255, 0.25); stroke-dasharray: 2 3; opacity: 0; }
.cf-pulse { animation: cf-pulse 1.8s ease-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes cf-pulse { from { transform: scale(1); opacity: 0.8; } to { transform: scale(3.2); opacity: 0; } }
.cf-tooltip {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  padding: 7px 10px;
  border-radius: 8px;
  background: rgba(2, 6, 23, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  line-height: 1.5;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.15s;
  z-index: 5;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
.cf-tooltip.show { opacity: 1; }
.cf-tooltip .tt-r { font-weight: 700; font-size: 0.85rem; }
.cf-tooltip .tt-d { color: #64748b; }
.delta-up { color: #10b981; }
.delta-down { color: #f87171; }

/* ---------- Custom cursor ---------- */
.has-cursor, .has-cursor * { cursor: none !important; }
.has-cursor input, .has-cursor textarea { cursor: text !important; }
.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10003;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}
.cursor-dot {
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  border-radius: 50%;
  background: #fff;
  mix-blend-mode: difference;
}
.cursor-ring::before {
  content: '';
  position: absolute;
  left: -18px;
  top: -18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid rgba(165, 180, 252, 0.7);
  transition: transform 0.35s var(--ease-out-expo), background 0.3s, border-color 0.3s;
}
.cursor-ring.is-hover::before { transform: scale(1.55); background: rgba(99, 102, 241, 0.12); border-color: rgba(34, 211, 238, 0.9); }
.cursor-ring.has-label::before { transform: scale(2.3); background: rgba(99, 102, 241, 0.92); border-color: transparent; }
.cursor-ring.is-down::before { transform: scale(0.75); }
.cursor-label {
  position: absolute;
  left: 0;
  top: 0;
  transform: translate(-50%, -50%);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #fff;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.2s;
}
.cursor-ring.has-label .cursor-label { opacity: 1; }

/* ---------- Command palette ---------- */
.cmdk-overlay, .term-overlay {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 12vh 16px 16px;
  background: rgba(3, 6, 14, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, visibility 0.22s;
}
.cmdk-overlay.open, .term-overlay.open { opacity: 1; visibility: visible; }

.cmdk {
  width: min(620px, 100%);
  background: rgba(12, 17, 31, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(99, 102, 241, 0.22), 0 0 80px rgba(99, 102, 241, 0.12);
  transform: translateY(-12px) scale(0.98);
  transition: transform 0.28s var(--ease-out-expo);
}
.open .cmdk, .open .term { transform: none; }
.cmdk-search {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  color: var(--color-text-muted);
}
.cmdk-search input {
  flex: 1;
  min-width: 0;
  background: none;
  border: 0;
  outline: 0;
  color: var(--color-text);
  font: inherit;
  font-size: 1rem;
}
.cmdk-list { max-height: min(420px, 55vh); overflow-y: auto; padding: 6px 8px 10px; }
.cmdk-group {
  padding: 12px 10px 6px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #64748b;
}
.cmdk-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: 10px;
  background: none;
  color: var(--color-text-muted);
  font: inherit;
  font-size: 0.92rem;
  text-align: left;
  cursor: pointer;
}
.cmdk-icon {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.85rem;
}
.cmdk-item.active { background: rgba(99, 102, 241, 0.16); color: #fff; }
.cmdk-item.active .cmdk-icon { background: linear-gradient(135deg, #6366f1, #06b6d4); border-color: transparent; color: #fff; }
.cmdk-hint { margin-left: auto; font-family: var(--font-mono); font-size: 0.7rem; color: #64748b; }
.cmdk-empty { padding: 30px; text-align: center; color: #64748b; font-size: 0.9rem; }
.cmdk-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding: 10px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: #64748b;
}

/* ---------- Terminal ---------- */
.term {
  width: min(780px, 100%);
  height: min(520px, 76vh);
  display: flex;
  flex-direction: column;
  background: rgba(7, 10, 19, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(16, 185, 129, 0.15), 0 0 80px rgba(16, 185, 129, 0.08);
  transform: translateY(-12px) scale(0.98);
  transition: transform 0.28s var(--ease-out-expo);
}
.term-dot.red { cursor: pointer; }
.term-body { flex: 1; overflow-y: auto; padding: 14px 16px 18px; color: #cbd5e1; line-height: 1.65; }
.term-line { white-space: pre-wrap; word-break: break-word; }
.term-input-row { display: flex; align-items: center; gap: 0; flex-wrap: nowrap; }
.term-input {
  flex: 1;
  min-width: 0;
  margin-left: 8px;
  background: none;
  border: 0;
  outline: 0;
  color: #f1f5f9;
  font: inherit;
  caret-color: #22d3ee;
}
.t-prompt { color: #10b981; font-weight: 700; }
.t-path { color: #818cf8; }
.t-acc { color: #22d3ee; }
.t-ok { color: #10b981; }
.t-warn { color: #fbbf24; }
.t-err { color: #f87171; }
.t-dim { color: #64748b; }
.t-b { color: #f1f5f9; font-weight: 700; }
.term a { color: #22d3ee; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 6000;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(16, 185, 129, 0.45);
  color: #e2e8f0;
  font-size: 0.88rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.4s var(--ease-out-expo);
  max-width: calc(100vw - 32px);
  text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Matrix easter egg ---------- */
.matrix-canvas {
  position: fixed;
  inset: 0;
  z-index: 4500;
  width: 100vw;
  height: 100vh;
  transition: opacity 0.6s;
}
.matrix-canvas.out { opacity: 0; }

/* ---------- Contact extras ---------- */
.contact-actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

/* ---------- Responsive ---------- */
@media (max-width: 968px) {
  .hero-avatar-stage { --r: 170px; width: 390px; height: 390px; }
  .hero-avatar-container { width: 270px; height: 270px; }
}

@media (max-width: 768px) {
  .nav-cmd kbd { display: none; }
  .nav-cmd { padding: 8px 10px; }
  .hero-meta { justify-content: center; }
  .hero-avatar-stage { --r: 150px; width: 340px; height: 340px; }
  .hero-avatar-container { width: 230px; height: 230px; }
  .orbit-item { width: 40px; height: 40px; margin: -20px 0 0 -20px; }
  .orbit-item > span { font-size: 1.05rem; border-radius: 12px; }
  .scroll-cue { display: none; }
  .term-title { margin-right: 0; }
}

@media (max-width: 480px) {
  .hero-avatar-stage { --r: 128px; width: 296px; height: 296px; }
  .hero-avatar-container { width: 190px; height: 190px; }
  .orbit-item { width: 36px; height: 36px; margin: -18px 0 0 -18px; }
  .orbit-item > span { font-size: 0.95rem; }
  .hero-avatar-container::after { inset: -20px; }
  .hero-name { letter-spacing: -1px; }
  .cmdk-overlay, .term-overlay { padding-top: 8vh; }
  .term { font-size: 0.78rem; }
  .contact-actions .btn { width: 100%; }
}

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