/* ---------- Tokens ---------- */
:root {
  --bg: #f5f4f0;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-solid: #ffffff;
  --text: #13151b;
  --muted: #5a6072;
  --faint: #8a90a0;
  --line: rgba(19, 21, 27, 0.09);
  --line-strong: rgba(19, 21, 27, 0.16);
  --shadow: 0 1px 2px rgba(19, 21, 27, 0.05), 0 12px 40px -12px rgba(19, 21, 27, 0.18);
  --orb-opacity: 0.32;
  --dot: rgba(19, 21, 27, 0.07);
  --grain-opacity: 0.035;
  --ok: #16a34a;
  --bad: #dc2626;

  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --radius: 22px;
  --max: 1180px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a0c11;
    --surface: rgba(20, 23, 31, 0.72);
    --surface-solid: #141720;
    --text: #eef0f5;
    --muted: #9aa1b2;
    --faint: #6b7283;
    --line: rgba(255, 255, 255, 0.07);
    --line-strong: rgba(255, 255, 255, 0.14);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 20px 50px -20px rgba(0, 0, 0, 0.6);
    --orb-opacity: 0.22;
    --dot: rgba(255, 255, 255, 0.05);
    --grain-opacity: 0.05;
    --ok: #4ade80;
    --bad: #f87171;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0a0c11;
  --surface: rgba(20, 23, 31, 0.72);
  --surface-solid: #141720;
  --text: #eef0f5;
  --muted: #9aa1b2;
  --faint: #6b7283;
  --line: rgba(255, 255, 255, 0.07);
  --line-strong: rgba(255, 255, 255, 0.14);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 20px 50px -20px rgba(0, 0, 0, 0.6);
  --orb-opacity: 0.22;
  --dot: rgba(255, 255, 255, 0.05);
  --grain-opacity: 0.05;
  --ok: #4ade80;
  --bad: #f87171;
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }
::selection { background: rgba(59, 130, 246, 0.3); }

/* ---------- Backdrop ---------- */
.backdrop { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.orb {
  position: absolute;
  width: 46vmax; height: 46vmax;
  border-radius: 50%;
  filter: blur(90px);
  opacity: var(--orb-opacity);
  animation: drift 26s ease-in-out infinite alternate;
}
.orb-a { background: #22d3ee; top: -18vmax; left: -10vmax; }
.orb-b { background: #f59e0b; top: 20vh; right: -20vmax; animation-delay: -8s; }
.orb-c { background: #a78bfa; bottom: -24vmax; left: 25vw; animation-delay: -16s; }
@keyframes drift {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(6vw, 4vh) scale(1.08); }
  100% { transform: translate(-4vw, -3vh) scale(0.96); }
}
.dots {
  position: absolute; inset: 0;
  background-image: radial-gradient(var(--dot) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 75%);
}
.grain {
  position: absolute; inset: -50%;
  opacity: var(--grain-opacity);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 12px; z-index: 20;
  max-width: var(--max);
  margin: 12px auto 0;
  width: calc(100% - 32px);
  display: flex; align-items: center; gap: 16px;
  padding: 10px 12px 10px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: var(--shadow);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; }
.brand-mark {
  display: grid; place-items: center;
  width: 32px; height: 32px; border-radius: 50%;
  font: 700 13px var(--font-display);
  color: #fff;
  background: conic-gradient(from 200deg, #22d3ee, #3b82f6, #a78bfa, #f59e0b, #22d3ee);
}
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a {
  text-decoration: none; color: var(--muted);
  font-size: 14px; font-weight: 500;
  padding: 6px 12px; border-radius: 999px;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--text); background: var(--line); }
.theme-btn {
  display: grid; place-items: center;
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--line); background: transparent; color: var(--text);
  cursor: pointer;
}
.theme-btn:hover { background: var(--line); }
.theme-btn path { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.theme-btn .moon { display: none; }
:root[data-theme="dark"] .theme-btn .sun { display: none; }
:root[data-theme="dark"] .theme-btn .moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-btn .sun { display: none; }
  :root:not([data-theme="light"]) .theme-btn .moon { display: block; }
}

/* ---------- Layout ---------- */
main { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.section { padding: 56px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.section-head h2, .about h2, .contact h2 { font-size: clamp(28px, 4vw, 40px); }
.section-note { color: var(--muted); font-size: 14px; }

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
  padding: 88px 0 40px;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font: 500 13px var(--font-mono);
  color: var(--muted);
  margin-bottom: 24px;
}
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); position: relative; }
.live-dot::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 2px solid var(--ok); opacity: 0;
  animation: ping 2s ease-out infinite;
}
@keyframes ping { 0% { transform: scale(0.5); opacity: 0.7; } 100% { transform: scale(1.6); opacity: 0; } }
.hero h1 { font-size: clamp(40px, 6.4vw, 76px); line-height: 1.02; font-weight: 700; }
.h1-sub { display: block; margin-top: 14px; font-size: clamp(22px, 2.6vw, 30px); line-height: 1.3; font-weight: 500; color: var(--muted); letter-spacing: -0.01em; }
.grad {
  background: linear-gradient(100deg, #22d3ee 0%, #3b82f6 30%, #a78bfa 60%, #f59e0b 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  animation: sheen 8s ease-in-out infinite alternate;
}
@keyframes sheen { to { background-position: 100% 0; } }
.lede { margin-top: 20px; color: var(--muted); font-size: 17px; max-width: 52ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px; border-radius: 999px;
  font: 600 14px var(--font-body);
  text-decoration: none;
  transition: transform 0.2s, background 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-solid { background: var(--text); color: var(--bg); }
.btn-line { border: 1px solid var(--line-strong); background: var(--surface); }
.btn-line:hover { border-color: var(--text); }

/* Hero stack of mini windows */
.hero-stack { position: relative; height: 420px; }
.mini {
  position: absolute;
  width: 74%;
  aspect-ratio: 16 / 10.5;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.45);
  cursor: pointer;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s;
  text-decoration: none;
  display: flex; flex-direction: column;
}
.mini-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 10px;
  font: 500 10.5px var(--font-mono);
  color: rgba(255, 255, 255, 0.65);
  background: rgba(0, 0, 0, 0.25);
}
.mini-bar i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, 0.25); }
.mini-bar span { margin-left: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-body { flex: 1; position: relative; }
.mini-body svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.mini:nth-child(1) { top: 0; left: 0; transform: rotate(-7deg); z-index: 1; }
.mini:nth-child(2) { top: 48px; left: 26%; transform: rotate(4deg); z-index: 2; }
.mini:nth-child(3) { top: 118px; left: 4%; transform: rotate(-3deg); z-index: 3; }
.mini:nth-child(4) { top: 176px; left: 24%; transform: rotate(2deg); z-index: 4; }
.hero-stack:hover .mini:nth-child(1) { transform: rotate(-11deg) translate(-24px, -18px); }
.hero-stack:hover .mini:nth-child(2) { transform: rotate(8deg) translate(34px, -14px); }
.hero-stack:hover .mini:nth-child(3) { transform: rotate(-5deg) translate(-30px, 14px); }
.hero-stack:hover .mini:nth-child(4) { transform: rotate(3deg) translate(26px, 30px); }
.hero-stack .mini:hover { z-index: 5; box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.55); }

.mini.pcie { background: linear-gradient(160deg, #0b1e2b, #071019); }
.mini.harmonium { background: linear-gradient(160deg, #5a3416, #2e1a0b); }
.mini.i2c { background: linear-gradient(160deg, #1a1b3a, #0c0d1f); }
.mini.uvm { background: linear-gradient(160deg, #10161f, #0a0d12); }

/* ---------- Bento ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}
.card {
  --accent: #3b82f6;
  --accent2: #22d3ee;
  --mx: 50%; --my: 0%;
  position: relative;
  grid-column: span 6;
  display: flex; flex-direction: column;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.3s;
}
.card.wide { grid-column: span 7; }
.card.tall { grid-column: span 5; grid-row: span 2; }
.card.full { grid-column: 1 / -1; flex-direction: row; }
.card.full .visual { flex: 1 1 55%; margin: 10px 0 10px 10px; min-height: 300px; }
.card.full .card-body { flex: 1 1 45%; justify-content: center; }
.card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
/* cursor spotlight */
.card::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(520px circle at var(--mx) var(--my), color-mix(in srgb, var(--accent) 16%, transparent), transparent 45%);
  opacity: 0; transition: opacity 0.3s;
}
.card:hover::before { opacity: 1; }

.visual {
  position: relative;
  margin: 10px 10px 0;
  border-radius: calc(var(--radius) - 8px);
  overflow: hidden;
  min-height: 236px;
}
.card.tall .visual { flex: 1 1 auto; min-height: 300px; }

.card-body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 14px; }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.kicker {
  font: 500 12px var(--font-mono);
  text-transform: uppercase; letter-spacing: 0.08em;
  color: color-mix(in srgb, var(--accent) 75%, var(--text));
}
.status { display: inline-flex; align-items: center; gap: 7px; font: 500 12px var(--font-mono); color: var(--faint); }
.status i { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); }
.status[data-state="live"] { color: var(--ok); }
.status[data-state="live"] i { background: var(--ok); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 20%, transparent); }
.status[data-state="down"] { color: var(--bad); }
.status[data-state="down"] i { background: var(--bad); }
.card h3 { font-size: 26px; font-weight: 600; }
.card-desc { color: var(--muted); font-size: 15px; }

.stats {
  list-style: none; margin: 4px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
}
.stats li {
  padding: 10px 12px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--accent) 7%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 14%, transparent);
}
.stats strong { display: block; font: 700 22px/1.1 var(--font-display); font-variant-numeric: tabular-nums; }
.stats span { font-size: 12px; color: var(--muted); }

.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  font: 500 12px var(--font-mono);
  padding: 4px 10px; border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--muted);
}

.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.btn-accent {
  color: #fff;
  background: linear-gradient(120deg, var(--accent2), var(--accent));
  box-shadow: 0 8px 24px -8px color-mix(in srgb, var(--accent) 70%, transparent);
}
.btn-accent:hover { box-shadow: 0 12px 30px -8px color-mix(in srgb, var(--accent) 85%, transparent); }
.card[data-id="harmonium"] .btn-accent, .card[data-id="uvm"] .btn-accent { color: #111; }
.btn-ghost { border: 1px solid var(--line-strong); }
.btn-ghost:hover { border-color: var(--accent); }

.upcoming {
  grid-column: 1 / -1;
  display: flex; align-items: center; gap: 18px;
  padding: 22px 26px;
  border-radius: var(--radius);
  border: 1.5px dashed var(--line-strong);
  color: var(--muted);
}
.upcoming strong { color: var(--text); font-family: var(--font-display); font-size: 18px; font-weight: 600; display: block; }
.upcoming-dots { display: flex; gap: 6px; }
.upcoming-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--faint); animation: bounce 1.4s ease-in-out infinite; }
.upcoming-dots i:nth-child(2) { animation-delay: 0.16s; }
.upcoming-dots i:nth-child(3) { animation-delay: 0.32s; }
@keyframes bounce { 0%, 80%, 100% { transform: translateY(0); opacity: 0.4; } 40% { transform: translateY(-6px); opacity: 1; } }

/* ---------- Visual: PCIe ---------- */
.v-pcie { position: absolute; inset: 0; background: radial-gradient(ellipse at 30% 0%, #0f2a3a, #061018 70%); }
.v-pcie canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

/* ---------- Visual: I2C ---------- */
.v-i2c { position: absolute; inset: 0; background: radial-gradient(ellipse at 70% 0%, #1e1f45, #0b0c1c 70%); }
.v-i2c canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

/* ---------- Visual: Harmonium ---------- */
.v-harm {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  background:
    repeating-linear-gradient(92deg, rgba(255, 255, 255, 0.025) 0 2px, transparent 2px 9px),
    linear-gradient(170deg, #6b3d1a, #3d220e 60%, #2a170a);
  padding: 16px 16px 0;
}
.grille {
  flex: 1 1 auto;
  min-height: 70px;
  border-radius: 10px;
  margin-bottom: 14px;
  background:
    radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0.55) 0 3.2px, transparent 3.6px) 0 0 / 16px 16px,
    linear-gradient(180deg, #8a5a2b, #6a4019);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.5), 0 1px 0 rgba(255, 255, 255, 0.08);
  position: relative;
  display: grid; place-items: center;
}
.grille-label {
  font: 600 11px var(--font-mono);
  letter-spacing: 0.3em; text-transform: uppercase;
  color: #f6d9a8;
  background: rgba(42, 23, 10, 0.85);
  padding: 6px 12px; border-radius: 6px;
  border: 1px solid rgba(246, 217, 168, 0.25);
}
.played {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 14px;
  padding: 10px 14px;
  border-radius: 8px;
  background: #1a0f06;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.6), 0 1px 0 rgba(255, 255, 255, 0.06);
  font: 500 15px var(--font-mono);
  color: #fbbf24;
  min-height: 46px;
  overflow: hidden; white-space: nowrap;
}
.played-label { font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(246, 217, 168, 0.45); flex: none; }
.played-notes { display: flex; gap: 10px; text-shadow: 0 0 10px rgba(251, 191, 36, 0.5); }
.played-notes span { position: relative; }
.harm-hint {
  position: absolute; right: 12px; top: 10px;
  font: 500 11px var(--font-mono);
  color: rgba(246, 217, 168, 0.75);
}
.keys {
  position: relative;
  display: flex;
  height: 150px;
  user-select: none; -webkit-user-select: none;
  touch-action: none;
}
.card.tall .keys { height: 230px; }
.key {
  position: relative;
  flex: 1;
  border: 0; padding: 0 0 10px; margin: 0;
  font: 600 13px var(--font-body);
  cursor: pointer;
  display: flex; align-items: flex-end; justify-content: center;
  transition: background 0.08s, transform 0.08s;
}
.key.white {
  background: linear-gradient(180deg, #f3ead7, #fffaf0 70%, #e8dcc2);
  color: #4a2c12;
  border-right: 1px solid rgba(74, 44, 18, 0.25);
  border-radius: 0 0 6px 6px;
  box-shadow: inset 0 -6px 0 rgba(74, 44, 18, 0.12);
}
.key.white:last-child { border-right: 0; }
.key.black {
  position: absolute; top: 0;
  width: 8%; height: 60%;
  background: linear-gradient(180deg, #2a1f18, #0e0a07);
  color: #e9d6b3;
  font-size: 11px;
  border-radius: 0 0 5px 5px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.4), inset 0 -4px 0 rgba(255, 255, 255, 0.06);
  z-index: 2;
  transform: translateX(-50%);
  padding-bottom: 8px;
}
.key.white.on { background: linear-gradient(180deg, #f8c873, #fde3ae); transform: translateY(2px); }
.key.black.on { background: linear-gradient(180deg, #b45309, #7c2d12); transform: translateX(-50%) translateY(2px); }
.v-harm .komal { text-decoration: underline; text-underline-offset: 3px; }
.v-harm .tivra { position: relative; }
.v-harm .tivra::before { content: ""; position: absolute; left: 50%; top: -6px; width: 1px; height: 5px; background: currentColor; }
.v-harm .taar { position: relative; }
.v-harm .taar::before { content: ""; position: absolute; left: 50%; top: -5px; width: 3px; height: 3px; margin-left: -1.5px; border-radius: 50%; background: currentColor; }

/* ---------- Visual: UVM ---------- */
.v-uvm {
  position: absolute; inset: 0;
  background: #0b0f15;
  display: flex; flex-direction: column;
  font: 400 12.5px/1.65 var(--font-mono);
  color: #c9d1dc;
}
.term-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 9px 12px;
  background: #121821;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: #6b7686; font-size: 11px;
}
.term-bar i { width: 9px; height: 9px; border-radius: 50%; }
.term-bar i:nth-child(1) { background: #f87171; }
.term-bar i:nth-child(2) { background: #fbbf24; }
.term-bar i:nth-child(3) { background: #4ade80; }
.term-bar span { margin-left: 8px; }
.term-body { position: relative; flex: 1; padding: 12px 16px; overflow: hidden; }
.term-line { white-space: pre; overflow: hidden; text-overflow: ellipsis; opacity: 0; transform: translateY(4px); transition: opacity 0.25s, transform 0.25s; }
.term-line.show { opacity: 1; transform: none; }
.t-dim { color: #5e6878; }
.t-prompt { color: #a78bfa; }
.t-tag { color: #67e8f9; }
.t-ok { color: #4ade80; }
.t-num { color: #fbbf24; }
.term-pass {
  position: absolute; right: 16px; bottom: 14px;
  font: 700 13px var(--font-mono);
  letter-spacing: 0.12em;
  color: #052e16;
  background: #4ade80;
  padding: 6px 12px; border-radius: 6px;
  box-shadow: 0 0 24px rgba(74, 222, 128, 0.55);
  opacity: 0; transform: scale(0.9);
  transition: opacity 0.3s, transform 0.3s cubic-bezier(0.3, 1.6, 0.5, 1);
}
.term-pass.show { opacity: 1; transform: none; }
.cursor { display: inline-block; width: 7px; height: 14px; background: #c9d1dc; vertical-align: -2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- About / Contact ---------- */
.about-card, .contact-card {
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  padding: clamp(24px, 4vw, 44px);
}
.about-card { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; }
.about-text { margin-top: 16px; display: grid; gap: 14px; color: var(--muted); font-size: 17px; max-width: 60ch; }
.toolbox-label { font: 500 12px var(--font-mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--faint); margin-bottom: 14px; }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  padding: 8px 14px; border-radius: 12px;
  background: var(--surface-solid);
  border: 1px solid var(--line);
  font-size: 14px; font-weight: 500;
}
.contact-card { text-align: center; }
.contact-card p { color: var(--muted); margin-top: 10px; }
.contact-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
[data-hidden] { display: none !important; }

/* ---------- Footer ---------- */
.foot {
  max-width: var(--max);
  margin: 0 auto;
  padding: 32px 16px 48px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  color: var(--faint); font-size: 13px;
  border-top: 1px solid var(--line);
}
.foot-short { font-family: var(--font-mono); }
.foot-short a { color: var(--muted); text-decoration: none; margin-left: 10px; }
.foot-short a:hover { color: var(--text); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; padding-top: 56px; gap: 24px; }
  .hero-stack { height: 340px; max-width: 520px; width: 100%; margin: 0 auto; }
  .card, .card.wide, .card.tall, .card.full { grid-column: 1 / -1; grid-row: auto; }
  .card.full { flex-direction: column; }
  .card.full .visual { margin: 10px 10px 0; min-height: 260px; }
  .card.tall .visual { min-height: 300px; }
  .about-card { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 560px) {
  .nav { padding: 8px 8px 8px 10px; gap: 8px; }
  .brand-name { display: none; }
  .nav-links a { padding: 6px 9px; }
  .hero-stack { height: 270px; }
  .mini:nth-child(2) { top: 36px; }
  .mini:nth-child(3) { top: 80px; }
  .mini:nth-child(4) { top: 120px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .card-body { padding: 18px; }
  .card h3 { font-size: 22px; }
  .keys, .card.tall .keys { height: 140px; }
  .v-uvm { font-size: 11px; }
  .upcoming { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
