/* ── fonts ──────────────────────────────────────────────── */
@font-face {
  font-family: "Space Grotesk";
  src: url("assets/space-grotesk.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
  font-style: normal;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("assets/jetbrains-mono.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
  font-style: normal;
}

/* ── tokens ─────────────────────────────────────────────── */
:root {
  --bg: #000000;
  --bg-2: #0a0a0a;
  --cyan: #ffffff;
  --cyan-dim: #a3a3a3;
  --cyan-glow: rgba(255, 255, 255, 0.287);
  --text: #f2f2f2;
  --text-2: #c4c4c4;
  --muted: #8c8c8c;
  --muted-2: #5e5e5e;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --glass: linear-gradient(160deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015));
  --r: 16px;
  --r-sm: 12px;
  --sans: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(900px 600px at 78% -8%, rgba(255, 255, 255, 0.055), transparent 65%),
    radial-gradient(700px 500px at 4% 22%, rgba(255, 255, 255, 0.03), transparent 60%);
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.03em; line-height: 1.08; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: rgba(255, 255, 255, 0.230); color: #fff; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 28px; position: relative; }

.grad {
  background: linear-gradient(100deg, #f2f2f2 0%, var(--cyan) 45%, #8f8f8f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ── chrome ─────────────────────────────────────────────── */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 120;
  background: transparent;
}
.progress i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--cyan-dim), var(--cyan));
  box-shadow: 0 0 12px var(--cyan-glow);
}

.cursor-glow {
  position: fixed;
  width: 520px;
  height: 520px;
  left: 0;
  top: 0;
  margin: -260px 0 0 -260px;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.4s ease;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.055), transparent 62%);
}
.cursor-glow.on { opacity: 1; }

/* ── nav ────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
  border-bottom: 1px solid transparent;
}
.nav.stuck {
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 76px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.328);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.049), 0 0 18px rgba(255, 255, 255, 0.148);
}
.brand-name {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: #fff;
}

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  position: relative;
  padding: 8px 14px;
  font-size: 14px;
  color: var(--text-2);
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease;
}
.nav-links a:hover { color: #fff; background: rgba(255, 255, 255, 0.05); }
.nav-links a.active { color: var(--cyan); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 1px;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
}

.nav-right { display: flex; align-items: center; gap: 8px; }
.ico {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--text-2);
  transition: color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.ico:hover {
  color: var(--cyan);
  border-color: rgba(255, 255, 255, 0.369);
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.131);
}
.nav-toggle { display: none; }

/* ── buttons + pill ─────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  transition: transform 0.2s var(--ease), box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}
.btn-sm { height: 36px; padding: 0 16px; font-size: 13px; }
.btn-primary {
  background: linear-gradient(180deg, #ffffff, #e8e8e8 55%, #c9c9c9);
  color: #000000;
  font-weight: 600;
  box-shadow: 0 8px 26px -12px rgba(255, 255, 255, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px -14px rgba(255, 255, 255, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
.btn-ghost {
  border-color: var(--line-2);
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.369);
  color: var(--cyan);
  transform: translateY(-2px);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.230);
  background: rgba(255, 255, 255, 0.057);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #ededed;
}
.pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
  animation: pulseDot 2.2s ease-in-out infinite;
}
@keyframes pulseDot {
  0%, 100% { opacity: 1; box-shadow: 0 0 10px var(--cyan); }
  50% { opacity: 0.45; box-shadow: 0 0 3px var(--cyan); }
}

/* ── hero ───────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 130px 0 80px;
  overflow: hidden;
}
.scene { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero-fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 220px;
  z-index: 1;
  background: linear-gradient(180deg, transparent, var(--bg) 82%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  align-items: center;
  gap: 40px;
  z-index: 2;
}
.hero-copy > * { opacity: 0; transform: translateY(16px); animation: rise 0.9s var(--ease) forwards; }
.hero-copy > :nth-child(1) { animation-delay: 0.05s; }
.hero-copy > :nth-child(2) { animation-delay: 0.12s; }
.hero-copy > :nth-child(3) { animation-delay: 0.2s; }
.hero-copy > :nth-child(4) { animation-delay: 0.27s; }
.hero-copy > :nth-child(5) { animation-delay: 0.34s; }
.hero-copy > :nth-child(6) { animation-delay: 0.41s; }
@keyframes rise { to { opacity: 1; transform: translateY(0); } }

.hero h1 {
  margin: 22px 0 0;
  font-size: clamp(42px, 6.2vw, 76px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.02;
}
.hero-role {
  margin-top: 14px;
  font-family: var(--mono);
  font-size: clamp(11px, 1.15vw, 13px);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-2);
}
.hero-role em { font-style: normal; color: var(--cyan); margin: 0 4px; }
.hero-bio {
  margin-top: 22px;
  max-width: 44ch;
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--muted);
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-social { display: flex; gap: 10px; margin-top: 30px; }
.hero-social a {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--muted);
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s var(--ease), box-shadow 0.25s ease;
}
.hero-social a:hover {
  color: var(--cyan);
  border-color: rgba(255, 255, 255, 0.410);
  transform: translateY(-3px);
  box-shadow: 0 6px 18px -8px rgba(255, 255, 255, 0.492);
}

/* hero visual + floating widgets */
.hero-visual {
  position: relative;
  height: 460px;
  opacity: 0;
  animation: rise 1.1s var(--ease) 0.3s forwards;
}
.hero-visual::before {
  content: "";
  position: absolute;
  inset: 4% 6% 4% 10%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02) 55%, transparent 72%);
  filter: blur(6px);
  animation: breathe 7s ease-in-out infinite;
}
@keyframes breathe {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.06); opacity: 1; }
}

.widget {
  position: absolute;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(20, 20, 20, 0.86), rgba(8, 8, 8, 0.66));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 22px 50px -22px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  padding: 14px 16px;
  font-family: var(--mono);
  z-index: 3;
}
.w-metrics { top: 34px; left: 0; width: 218px; animation: float1 8s ease-in-out infinite; }
.w-status {
  bottom: 54px;
  right: 0;
  width: 236px;
  display: flex;
  align-items: center;
  gap: 11px;
  animation: float2 9s ease-in-out infinite;
}
@keyframes float1 {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -12px, 0); }
}
@keyframes float2 {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, 10px, 0); }
}
.w-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 11px;
  margin-bottom: 11px;
  border-bottom: 1px solid var(--line);
}
.w-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-size: 10px;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 6px;
}
.w-row b { color: #f5f5f5; font-weight: 500; font-size: 11px; }
.w-bar {
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
  margin-bottom: 12px;
}
.w-bar i {
  display: block;
  height: 100%;
  width: var(--w);
  border-radius: 2px;
  background: linear-gradient(90deg, var(--cyan-dim), var(--cyan));
  box-shadow: 0 0 10px var(--cyan-glow);
  animation: barPulse 3.6s ease-in-out infinite;
}
@keyframes barPulse {
  0%, 100% { opacity: 0.72; }
  50% { opacity: 1; }
}
.w-ico {
  width: 30px;
  height: 30px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--cyan);
  background: rgba(255, 255, 255, 0.082);
  border: 1px solid rgba(255, 255, 255, 0.180);
}
.w-status div { display: flex; flex-direction: column; line-height: 1.35; }
.w-status div span { font-size: 8.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-2); }
.w-status div b { font-size: 11.5px; font-weight: 500; color: #f5f5f5; }
.w-ok {
  margin-left: auto;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #000000;
  background: var(--cyan);
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.410);
}
.chip-float {
  position: absolute;
  top: 46%;
  right: 12px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.262);
  background: rgba(16, 16, 16, 0.88);
  backdrop-filter: blur(10px);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  color: #ededed;
  box-shadow: 0 0 26px -8px rgba(255, 255, 255, 0.492);
  animation: float2 7.5s ease-in-out infinite;
  z-index: 4;
}
.glyph-float {
  position: absolute;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(14, 14, 14, 0.82);
  color: var(--cyan);
  backdrop-filter: blur(10px);
  box-shadow: 0 16px 34px -18px rgba(0, 0, 0, 0.9);
  z-index: 4;
}
.g1 { top: 8px; right: 42px; animation: float1 6.5s ease-in-out infinite; }
.g2 { bottom: 4px; left: 46px; animation: float2 7.8s ease-in-out infinite 0.6s; }

/* ── stats ──────────────────────────────────────────────── */
.stats-wrap { position: relative; z-index: 2; padding: 0 0 40px; }
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  background: var(--line);
  backdrop-filter: blur(10px);
}
.stat {
  background: rgba(9, 9, 9, 0.88);
  padding: 22px 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.stat b {
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -0.04em;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.stat b .unit { font-size: 14px; margin-left: 3px; color: var(--cyan); letter-spacing: 0; }
.stat span {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
}

/* ── sections ───────────────────────────────────────────── */
.section { position: relative; z-index: 2; padding: 104px 0 0; }
.sec-head { max-width: 760px; margin-bottom: 34px; }
.sec-head h2 {
  margin-top: 16px;
  font-size: clamp(30px, 4.1vw, 46px);
  letter-spacing: -0.04em;
}
.sec-sub { margin-top: 12px; color: var(--muted); font-size: 15px; max-width: 52ch; }

.glass {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 24px 60px -34px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

/* ── about ──────────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 20px;
  align-items: stretch;
}
.about-card { padding: 32px 34px 30px; }
.about-lead {
  font-size: 19px;
  line-height: 1.6;
  color: #eaeaea;
  letter-spacing: -0.02em;
}
.about-sub { margin-top: 14px; font-size: 14.5px; line-height: 1.7; color: var(--muted); }
.roles { margin-top: 26px; }
.roles li {
  display: grid;
  grid-template-columns: 14px 150px minmax(0, 1fr);
  align-items: baseline;
  gap: 8px;
  padding: 9px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.055);
}
.roles i { font-style: normal; font-size: 10px; color: var(--muted-2); transition: color 0.22s ease, transform 0.22s ease; }
.roles span {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #e4e4e4;
}
.roles em { font-style: normal; font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.03em; color: var(--muted-2); }
.roles li:hover i { color: var(--cyan); transform: translateX(3px); }
.roles li:hover span { color: var(--cyan); }

/* terminal */
.terminal { display: flex; flex-direction: column; overflow: hidden; }
.t-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.02);
}
.t-head em { margin-left: auto; font-style: normal; font-size: 8.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-2); }
.t-dots { display: flex; gap: 5px; }
.t-dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, 0.16); }
.t-dots i:first-child { background: rgba(255, 255, 255, 0.492); }
.t-body {
  margin: 0;
  padding: 20px 20px 24px;
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 2;
  color: #adadad;
  overflow-x: auto;
  flex: 1;
}
.t-line { display: block; opacity: 0; animation: tIn 0.5s ease forwards; }
.t-line:nth-child(1) { animation-delay: 0.5s; }
.t-line:nth-child(2) { animation-delay: 0.75s; }
.t-line:nth-child(3) { animation-delay: 0.92s; }
.t-line:nth-child(4) { animation-delay: 1.09s; }
.t-line:nth-child(5) { animation-delay: 1.26s; }
.t-line:nth-child(6) { animation-delay: 1.43s; }
.t-line:nth-child(7) { animation-delay: 1.6s; }
.t-line:nth-child(8) { animation-delay: 1.77s; }
.t-line:nth-child(9) { animation-delay: 1.94s; }
.t-line:nth-child(10) { animation-delay: 2.1s; }
@keyframes tIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.t-p { color: var(--cyan); font-style: normal; }
.t-out b { color: #ffffff; font-weight: 500; }
.t-ok { color: var(--cyan); }
.caret {
  display: inline-block;
  width: 6px;
  height: 11px;
  background: var(--cyan);
  vertical-align: -1px;
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }

/* ── services ───────────────────────────────────────────── */
.do-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.do-card {
  padding: 24px 22px 26px;
  transition: transform 0.3s var(--ease), border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}
.do-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.262);
  box-shadow: 0 26px 50px -30px rgba(255, 255, 255, 0.410), inset 0 1px 0 rgba(255, 255, 255, 0.07);
}
.do-ico {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: var(--cyan);
  background: rgba(255, 255, 255, 0.082);
  border: 1px solid rgba(255, 255, 255, 0.197);
  margin-bottom: 18px;
  transition: transform 0.35s var(--ease), box-shadow 0.3s ease;
}
.do-card:hover .do-ico { transform: translateY(-2px) rotate(-4deg); box-shadow: 0 0 22px -6px rgba(255, 255, 255, 0.574); }
.do-ico.purple { color: #dcdcdc; background: rgba(255, 255, 255, 0.07); border-color: rgba(255, 255, 255, 0.2); }
.do-ico.amber { color: #dcdcdc; background: rgba(255, 255, 255, 0.07); border-color: rgba(255, 255, 255, 0.2); }
.do-ico.teal { color: #dcdcdc; background: rgba(255, 255, 255, 0.07); border-color: rgba(255, 255, 255, 0.2); }
.do-card h3 { font-size: 16.5px; letter-spacing: -0.025em; margin-bottom: 14px; }
.do-card p {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.02em;
  color: var(--muted);
  padding: 5px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  transition: color 0.2s ease, padding-left 0.22s ease;
}
.do-card p::before { content: "· "; color: var(--muted-2); }
.do-card:hover p { color: var(--text-2); padding-left: 2px; }

/* ── work ───────────────────────────────────────────────── */
.work-featured { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.proj {
  display: flex;
  flex-direction: column;
  padding: 24px 24px 20px;
  transition: transform 0.3s var(--ease), border-color 0.3s ease, box-shadow 0.35s ease;
}
.proj:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.279);
  box-shadow: 0 30px 60px -34px rgba(255, 255, 255, 0.369), inset 0 1px 0 rgba(255, 255, 255, 0.07);
}
.proj-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.proj-id { display: flex; align-items: center; gap: 10px; }
.proj-top h3 { font-size: 19px; letter-spacing: -0.03em; }
.proj-go {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.25s var(--ease), background 0.2s ease;
}
.proj:hover .proj-go {
  color: #000000;
  background: var(--cyan);
  border-color: var(--cyan);
  transform: translate(2px, -2px);
}
.live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.287);
  background: rgba(255, 255, 255, 0.066);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #ededed;
}
.live i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  animation: pulseDot 1.9s ease-in-out infinite;
}
.proj-desc {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 46ch;
}
.proj-foot {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 18px;
}
.tag {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #a8a8a8;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 9px;
  background: rgba(255, 255, 255, 0.02);
}
.proj-link {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.06em;
  color: var(--cyan);
  opacity: 0.75;
  transition: opacity 0.2s ease;
}
.proj:hover .proj-link { opacity: 1; }

/* ── live console (suki / tsuki) ────────────────────────── */
.console {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: linear-gradient(180deg, rgba(11, 11, 11, 0.92), rgba(5, 5, 5, 0.76));
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.c-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 13px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
  background: rgba(255, 255, 255, 0.022);
}
.c-head em {
  margin-left: auto;
  font-style: normal;
  color: var(--cyan);
  font-size: 9.5px;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
}
.c-head .c-online { color: #d0d0d0; }
.c-dots { display: flex; gap: 4px; }
.c-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, 0.14); }
.c-dots i:first-child { background: rgba(255, 255, 255, 0.533); }
.c-body { padding: 14px 14px 15px; font-family: var(--mono); font-size: 10.5px; line-height: 1.6; }
.crow { display: flex; gap: 10px; padding: 2.5px 0; }
.ck {
  flex: none;
  width: 46px;
  font-size: 8.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
  padding-top: 2px;
}
.cv { color: #d2d2d2; letter-spacing: 0.01em; }
.cbar {
  height: 4px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
  margin: 10px 0 10px;
  position: relative;
}
.cbar i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--cyan-dim), var(--cyan));
  box-shadow: 0 0 12px var(--cyan-glow);
  transition: width 0.35s linear;
}
.cbar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transform: translateX(-100%);
  animation: shimmer 2.4s ease-in-out infinite;
}
@keyframes shimmer { 0% { transform: translateX(-100%); } 60%, 100% { transform: translateX(220%); } }

.cue {
  display: flex;
  gap: 10px;
  padding: 4px 0;
  color: #e6e6e6;
  font-size: 11px;
}
.cue em {
  flex: none;
  width: 46px;
  font-style: normal;
  font-size: 8.5px;
  letter-spacing: 0.1em;
  color: var(--muted-2);
  padding-top: 3px;
}
.cue-out { color: var(--cyan); }
.cue.flash { animation: cueIn 0.55s var(--ease); }
@keyframes cueIn {
  from { opacity: 0; transform: translateY(5px); filter: blur(2px); }
  to { opacity: 1; transform: none; filter: none; }
}
.c-done {
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  margin-top: 4px;
}
.c-done.show { opacity: 1; transform: none; }
.c-done .cv { color: #d0d0d0; }

.chat-body { display: flex; flex-direction: column; gap: 7px; min-height: 148px; justify-content: flex-end; padding: 16px 14px; }
.msg {
  align-self: flex-start;
  max-width: 82%;
  padding: 7px 11px;
  border-radius: 11px;
  font-size: 10.5px;
  line-height: 1.5;
  letter-spacing: 0.01em;
  color: #d8d8d8;
  background: rgba(13, 13, 13, 0.94);
  border: 1px solid var(--line);
  border-bottom-left-radius: 3px;
  animation: msgIn 0.32s var(--ease);
}
.msg.out {
  align-self: flex-end;
  background: rgba(255, 255, 255, 0.098);
  border-color: rgba(255, 255, 255, 0.213);
  color: #ffffff;
  border-bottom-left-radius: 11px;
  border-bottom-right-radius: 3px;
}
@keyframes msgIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.msg.typing { display: inline-flex; align-items: center; gap: 4px; align-self: flex-start; padding: 10px 12px; }
.msg.typing i { width: 4px; height: 4px; border-radius: 50%; background: var(--cyan); animation: tdot 1.1s ease-in-out infinite; }
.msg.typing i:nth-child(2) { animation-delay: 0.15s; }
.msg.typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes tdot { 0%, 60%, 100% { opacity: 0.3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
.c-input {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 10px 13px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted-2);
  background: rgba(255, 255, 255, 0.015);
}
.c-input .caret { width: 5px; height: 10px; margin-left: 1px; }

/* ── small projects ─────────────────────────────────────── */
.work-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.proj-sm { padding: 22px 22px 18px; }
.proj-sm .proj-top h3 { font-size: 16px; }
.proj-sm .proj-desc { font-size: 13px; line-height: 1.6; min-height: 3.2em; }
.code-mini, .models, .week {
  margin-top: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 9px;
  background: rgba(0, 0, 0, 0.28);
}
.code-mini {
  padding: 10px 11px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.01em;
  color: #c4c4c4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ck-w { color: var(--muted-2); }
.code-mini .ck { width: auto; color: #bdbdbd; padding: 0; font-size: inherit; letter-spacing: 0; text-transform: none; }
.code-mini .cf { color: #a8a8a8; }
.code-mini .cfn { color: var(--cyan); }
.code-mini .cs { color: #d8d8d8; }
.models { padding: 6px 10px; }
.mrow {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  font-family: var(--mono);
  font-size: 9.5px;
  color: #a8a8a8;
}
.mrow b { margin-left: auto; font-weight: 400; color: var(--muted-2); }
.mrow i { width: 5px; height: 5px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.mrow .on { animation: pulseDot 2.6s ease-in-out infinite; }
.mrow .p2 { animation-delay: 0.45s; }
.mrow .p3 { animation-delay: 0.9s; }
.week {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 62px;
  padding: 9px 10px;
}
.week i {
  flex: 1;
  height: var(--h);
  border-radius: 2px;
  background: linear-gradient(180deg, var(--cyan), rgba(255, 255, 255, 0.148));
  opacity: 0.55;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.proj-sm:hover .week i { opacity: 1; transform: scaleY(1.06); }
.proj-sm:hover .week i:nth-child(2) { transition-delay: 0.04s; }
.proj-sm:hover .week i:nth-child(3) { transition-delay: 0.08s; }
.proj-sm:hover .week i:nth-child(4) { transition-delay: 0.12s; }
.proj-sm:hover .week i:nth-child(5) { transition-delay: 0.16s; }
.proj-sm:hover .week i:nth-child(6) { transition-delay: 0.2s; }
.proj-sm:hover .week i:nth-child(7) { transition-delay: 0.24s; }

.more-repos {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
  padding: 20px 26px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: linear-gradient(100deg, rgba(255, 255, 255, 0.049), rgba(255, 255, 255, 0.015));
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s var(--ease);
}
.more-repos:hover {
  border-color: rgba(255, 255, 255, 0.287);
  transform: translateY(-2px);
  background: linear-gradient(100deg, rgba(255, 255, 255, 0.082), rgba(255, 255, 255, 0.02));
}
.mr-count {
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.04em;
  color: var(--cyan);
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 26px rgba(255, 255, 255, 0.328);
}
.mr-text { font-size: 14px; color: var(--text-2); }
.mr-text em { font-style: normal; color: var(--muted-2); font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; }
.mr-arrow { margin-left: auto; color: var(--cyan); font-size: 15px; transition: transform 0.25s var(--ease); }
.more-repos:hover .mr-arrow { transform: translate(3px, -3px); }

/* ── snake ──────────────────────────────────────────────── */
.snake-card { padding: 24px 24px 18px; }
.snake-months {
  display: grid;
  grid-template-columns: repeat(53, minmax(0, 1fr));
  gap: 3px;
  margin-left: 32px;
  margin-bottom: 8px;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.snake-body { display: flex; gap: 8px; }
.snake-days {
  display: grid;
  grid-template-rows: repeat(7, auto);
  gap: 3px;
  width: 24px;
  font-family: var(--mono);
  font-size: 8px;
  line-height: 1;
  color: var(--muted-2);
  align-items: center;
}
.snake-grid {
  flex: 1;
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(7, auto);
  grid-auto-columns: minmax(0, 1fr);
  gap: 3px;
  min-width: 0;
}
.sq {
  aspect-ratio: 1 / 1;
  border-radius: 2.5px;
  background: rgba(255, 255, 255, 0.045);
  transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.12s linear;
}
.sq[data-l="1"] { background: rgba(255, 255, 255, 0.131); }
.sq[data-l="2"] { background: rgba(255, 255, 255, 0.295); }
.sq[data-l="3"] { background: rgba(255, 255, 255, 0.508); }
.sq[data-l="4"] { background: rgba(255, 255, 255, 0.779); box-shadow: 0 0 8px rgba(255, 255, 255, 0.287); }
.sq.snake-head {
  background: #ffffff !important;
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.95), 0 0 4px #fff;
  transform: scale(1.22);
  z-index: 2;
}
.sq.snake-seg { background: rgba(255, 255, 255, 0.55) !important; }
.snake-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 16px;
  padding-left: 32px;
}
.snake-days span:nth-child(1) { grid-row: 2; }
.snake-days span:nth-child(2) { grid-row: 4; }
.snake-days span:nth-child(3) { grid-row: 6; }
.snake-note {
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.legend { display: flex; align-items: center; gap: 4px; font-family: var(--mono); font-size: 8px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-2); }
.legend i { width: 9px; height: 9px; border-radius: 2px; display: block; background: rgba(255, 255, 255, 0.045); }
.legend i[data-l="1"] { background: rgba(255, 255, 255, 0.131); }
.legend i[data-l="2"] { background: rgba(255, 255, 255, 0.295); }
.legend i[data-l="3"] { background: rgba(255, 255, 255, 0.508); }
.legend i[data-l="4"] { background: rgba(255, 255, 255, 0.779); }
.legend span:first-child { margin-right: 3px; }
.legend span:last-child { margin-left: 3px; }

/* ── stack ──────────────────────────────────────────────── */
.stack-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.stack-card { padding: 22px 24px 24px; }
.stack-langs { grid-column: 1 / -1; }
.sc-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.sc-head em { font-style: normal; font-size: 8.5px; letter-spacing: 0.12em; color: var(--muted-2); }

.langs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 46px; }
.langs li {
  display: grid;
  grid-template-columns: 54px 92px minmax(0, 1fr) 26px;
  align-items: center;
  gap: 10px;
}
.lnode {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.369);
}
.lname { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.02em; color: #e2e2e2; }
.lbar {
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.07);
  position: relative;
  overflow: hidden;
}
.lbar i {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.287), var(--cyan));
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.410);
  transition: width 1.3s var(--ease);
}
.stack-langs.in .lbar i { width: var(--w, 60%); }
.langs li:nth-child(2) .lbar i { transition-delay: 0.08s; }
.langs li:nth-child(3) .lbar i { transition-delay: 0.16s; }
.langs li:nth-child(4) .lbar i { transition-delay: 0.24s; }
.langs li:nth-child(5) .lbar i { transition-delay: 0.32s; }
.langs li:nth-child(6) .lbar i { transition-delay: 0.4s; }
.lpct {
  font-family: var(--mono);
  font-size: 9px;
  color: var(--muted);
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.langs li:hover .lname { color: var(--cyan); }
.lang-foot {
  display: flex;
  justify-content: space-between;
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.055);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.sc-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.sc-chips span {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.03em;
  color: #b5b5b5;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 11px;
  background: rgba(255, 255, 255, 0.02);
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, transform 0.2s var(--ease);
}
.sc-chips span:hover {
  color: #0a0a0a;
  background: var(--cyan);
  border-color: var(--cyan);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -10px rgba(255, 255, 255, 0.738);
}

/* ── socials ────────────────────────────────────────────── */
.soc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.soc {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 14px;
  grid-template-rows: auto auto;
  align-items: center;
  gap: 2px 12px;
  padding: 18px 20px;
  transition: transform 0.28s var(--ease), border-color 0.28s ease, box-shadow 0.3s ease;
}
.soc:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.279);
  box-shadow: 0 24px 46px -30px rgba(255, 255, 255, 0.451);
}
.soc-ico {
  grid-column: 1;
  grid-row: 1 / 3;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: #e2e2e2;
  transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.soc:hover .soc-ico { color: var(--cyan); border-color: rgba(255, 255, 255, 0.328); background: rgba(255, 255, 255, 0.066); }
.soc-k {
  grid-column: 2;
  grid-row: 1;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.soc-v { grid-column: 2; grid-row: 2; font-size: 13.5px; color: #ececec; letter-spacing: -0.01em; overflow: hidden; text-overflow: ellipsis; }
.soc-a { grid-column: 3; grid-row: 1 / 3; color: var(--muted-2); font-size: 12px; transition: color 0.2s ease, transform 0.25s var(--ease); }
.soc:hover .soc-a { color: var(--cyan); transform: translate(2px, -2px); }

/* ── contact ────────────────────────────────────────────── */
.contact-sec { padding-bottom: 24px; }
.contact-card {
  position: relative;
  overflow: hidden;
  padding: 62px 44px 58px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.contact-glow {
  position: absolute;
  top: -140px;
  left: 50%;
  width: 640px;
  height: 340px;
  margin-left: -320px;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.180), transparent 68%);
  filter: blur(20px);
  pointer-events: none;
  animation: breathe 8s ease-in-out infinite;
}
.contact-card h2 {
  position: relative;
  margin-top: 20px;
  font-size: clamp(28px, 4.4vw, 46px);
  letter-spacing: -0.04em;
  max-width: 18ch;
}
.contact-card > p {
  position: relative;
  margin-top: 16px;
  max-width: 46ch;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}
.contact-cta { position: relative; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 30px; }
.funfact {
  position: relative;
  margin-top: 28px !important;
  font-family: var(--mono) !important;
  font-size: 10.5px !important;
  letter-spacing: 0.08em;
  color: var(--muted-2) !important;
}

/* ── footer ─────────────────────────────────────────────── */
.footer {
  position: relative;
  z-index: 2;
  margin-top: 60px;
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.7);
}
.foot-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-top: 26px;
  padding-bottom: 30px;
}
.foot-note {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.06em;
  line-height: 1.9;
  color: var(--muted-2);
}
.foot-note span { color: rgba(255, 255, 255, 0.492); }
.foot-links { display: flex; flex-wrap: wrap; gap: 18px; }
.foot-links a {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s ease;
}
.foot-links a:hover { color: var(--cyan); }

/* ── reveal on scroll ───────────────────────────────────── */
body.js .sec-head,
body.js .about-card,
body.js .terminal,
body.js .do-card,
body.js .proj,
body.js .snake-card,
body.js .stack-card,
body.js .soc,
body.js .contact-card,
body.js .more-repos,
body.js .stat {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.75s ease, transform 0.75s var(--ease);
}
body.js .sec-head.in,
body.js .about-card.in,
body.js .terminal.in,
body.js .do-card.in,
body.js .proj.in,
body.js .snake-card.in,
body.js .stack-card.in,
body.js .soc.in,
body.js .contact-card.in,
body.js .more-repos.in,
body.js .stat.in {
  opacity: 1;
  transform: none;
}

/* ── responsive ─────────────────────────────────────────── */
@media (max-width: 1040px) {
  .hero-visual { height: 400px; }
  .w-metrics { width: 196px; }
  .w-status { width: 212px; }
  .do-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .langs { grid-template-columns: 1fr; gap: 12px; }
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 76px;
    left: 16px;
    right: 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--r);
    background: rgba(10, 10, 10, 0.96);
    backdrop-filter: blur(18px);
    box-shadow: 0 30px 60px -30px #000;
  }
  .nav-links.open a { padding: 11px 14px; border-radius: 9px; }
  .nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 34px;
    height: 34px;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
  }
  .nav-toggle span { display: block; width: 14px; height: 1.5px; background: var(--text-2); transition: transform 0.25s ease, opacity 0.2s ease; }
  .nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.2px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.2px) rotate(-45deg); }

  .hero { padding: 118px 0 60px; min-height: auto; }
  .hero-grid { grid-template-columns: 1fr; gap: 8px; }
  .hero-bio { max-width: none; }
  .hero-visual { height: 330px; margin-top: 26px; }
  .w-metrics { top: 16px; left: 0; width: 186px; }
  .w-status { bottom: 12px; right: 0; width: 200px; }
  .g1 { right: 8px; }
  .g2 { left: 10px; }
  .chip-float { right: 0; top: 42%; }

  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-grid { grid-template-columns: 1fr; }
  .work-featured { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stack-grid { grid-template-columns: 1fr; }
  .soc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section { padding-top: 84px; }
}

@media (max-width: 640px) {
  .container { padding: 0 20px; }
  .nav-in { height: 66px; }
  .nav-links.open { top: 66px; }
  .nav-right .ico { display: none; }
  .hero { padding-top: 104px; }
  .hero h1 { font-size: clamp(38px, 11.5vw, 52px); }
  .hero-role { font-size: 10px; letter-spacing: 0.16em; }
  .hero-bio { font-size: 15px; margin-top: 18px; }
  .hero-cta { margin-top: 26px; }
  .hero-cta .btn { flex: 1 1 auto; }
  .hero-visual { height: 300px; }
  .w-metrics { width: 172px; padding: 12px 13px; }
  .w-status { width: 186px; }
  .chip-float { font-size: 8.5px; padding: 6px 10px; }
  .glyph-float { width: 36px; height: 36px; }

  .stat { padding: 18px 18px 16px; }
  .stat b { font-size: 25px; }

  .sec-head h2 { font-size: clamp(26px, 7.6vw, 34px); }
  .sec-sub { font-size: 14px; }
  .section { padding-top: 70px; }

  .about-card { padding: 26px 22px 24px; }
  .about-lead { font-size: 17px; }
  .roles li { grid-template-columns: 12px 118px minmax(0, 1fr); gap: 6px; }
  .roles span { font-size: 9px; letter-spacing: 0.09em; }
  .roles em { font-size: 8.5px; }
  .t-body { font-size: 10.5px; padding: 16px 16px 20px; }

  .do-grid { grid-template-columns: 1fr; }
  .do-card { padding: 22px 22px 20px; }
  .do-card p { font-size: 10px; }

  .proj { padding: 20px 20px 18px; }
  .proj-desc { font-size: 13.5px; }
  .work-grid { grid-template-columns: 1fr; }
  .proj-sm .proj-desc { min-height: 0; }
  .c-body { font-size: 9.5px; }
  .ck, .cue em { width: 40px; font-size: 8px; }
  .cbar { margin: 9px 0; }
  .chat-body { min-height: 168px; }
  .more-repos { padding: 18px 20px; gap: 12px; }
  .mr-count { font-size: 22px; }
  .mr-text { font-size: 12.5px; }
  .mr-text em { display: block; margin-top: 2px; font-size: 9px; }

  .snake-card { padding: 18px 16px 14px; }
  .snake-months { margin-left: 22px; font-size: 7px; gap: 2px; }
  .snake-days { width: 16px; font-size: 7px; gap: 2px; }
  .snake-days span:nth-child(1) { grid-row: 2; }
  .snake-days span:nth-child(2) { grid-row: 4; }
  .snake-days span:nth-child(3) { grid-row: 6; }
  .snake-grid { gap: 2px; }
  .sq { border-radius: 1px; }
  .snake-foot { padding-left: 22px; }
  .snake-note { font-size: 7.5px; letter-spacing: 0.08em; }

  .stack-card { padding: 20px 20px 22px; }
  .langs li { grid-template-columns: 46px 78px minmax(0, 1fr) 24px; gap: 8px; }
  .lnode { font-size: 7px; }
  .lname { font-size: 10px; }

  .soc-grid { grid-template-columns: 1fr; }
  .soc { padding: 16px 18px; }
  .soc-v { font-size: 13px; }

  .contact-card { padding: 44px 22px 42px; }
  .contact-card > p { font-size: 14px; }
  .contact-cta { flex-direction: column; width: 100%; }
  .contact-cta .btn { width: 100%; }
  .foot-in { flex-direction: column; align-items: flex-start; gap: 18px; padding-top: 24px; }
  .foot-links { gap: 14px; }
}

@media (max-width: 380px) {
  .langs li { grid-template-columns: 40px 68px minmax(0, 1fr) 22px; }
  .lnode { display: none; }
  .langs li { grid-template-columns: 74px minmax(0, 1fr) 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001s !important; animation-iteration-count: 1 !important; transition-duration: 0.001s !important; }
  .hero-copy > *, .hero-visual, .t-line { opacity: 1 !important; transform: none !important; }
  body.js .sec-head, body.js .about-card, body.js .terminal, body.js .do-card,
  body.js .proj, body.js .snake-card, body.js .stack-card, body.js .soc,
  body.js .contact-card, body.js .more-repos, body.js .stat { opacity: 1; transform: none; }
}

/* ── polish ─────────────────────────────────────────────── */
section[id] { scroll-margin-top: 92px; }

@media (max-width: 720px) {
  .nav-right .btn-sm { display: none; }
  .hero { padding-bottom: 42px; }
  .stats-wrap { padding-bottom: 32px; }
  .contact-card h2 { max-width: none; }
  .funfact { max-width: 34ch; }
}

/* ── monochrome pass ────────────────────────────────────── */
.brand-mark { filter: grayscale(1) contrast(1.06) brightness(1.04); }
.lnode { color: rgba(255, 255, 255, 0.42); }
.grad { background-image: linear-gradient(100deg, #ffffff 0%, #f2f2f2 45%, #bdbdbd 100%); }

/* faint engineering grid behind everything */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.032) 1px, transparent 1px);
  background-size: 76px 76px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 26%, #000 8%, transparent 74%);
  mask-image: radial-gradient(ellipse at 50% 26%, #000 8%, transparent 74%);
  opacity: 0.55;
}
