*, *::before, *::after { box-sizing: border-box; }

:root {
  color-scheme: dark;
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.2, .7, .2, 1);

  --bg: #08090b;
  --dot: rgba(255, 255, 255, .075);
  --glow-1: rgba(139, 123, 255, .18);
  --glow-2: rgba(61, 220, 151, .10);
  --surface: #0f1014;
  --surface-2: #15171c;
  --surface-3: #1d2027;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .15);
  --text: #ededf0;
  --text-2: #a4a4ae;
  --text-3: #8a8a94;
  --pass: #3ddc97;
  --pass-ink: #4ee3a3;
  --pass-soft: rgba(61, 220, 151, .12);
  --on-pass: #03140c;
  --accent: #8b7bff;
  --accent-ink: #a99dff;
  --accent-soft: rgba(139, 123, 255, .14);
  --del: #f47a7a;
  --del-ink: #f89090;
  --del-soft: rgba(244, 122, 122, .12);
  --drop: rgba(0, 0, 0, .55);
  --shadow: inset 0 1px 0 rgba(255, 255, 255, .035), 0 24px 48px -28px rgba(0, 0, 0, .7);
  --shadow-lg: inset 0 1px 0 rgba(255, 255, 255, .04), 0 40px 90px -40px rgba(0, 0, 0, .9);
}

/* Light theme: follows the system unless the toggle has set data-theme. */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --bg: #f4f5f7;
    --dot: rgba(12, 14, 22, .09);
    --glow-1: rgba(91, 69, 224, .11);
    --glow-2: rgba(18, 168, 107, .09);
    --surface: #ffffff;
    --surface-2: #f6f7f9;
    --surface-3: #eceef2;
    --line: rgba(12, 14, 22, .08);
    --line-2: rgba(12, 14, 22, .15);
    --text: #0c0d11;
    --text-2: #4a4f5a;
    --text-3: #5e636e;
    --pass: #0e9f62;
    --pass-ink: #087a4c;
    --pass-soft: rgba(20, 181, 115, .11);
    --on-pass: #ffffff;
    --accent: #5b45e0;
    --accent-ink: #4b35d2;
    --accent-soft: rgba(91, 69, 224, .09);
    --del: #d94c4c;
    --del-ink: #b93434;
    --del-soft: rgba(217, 76, 76, .09);
    --drop: rgba(12, 14, 22, .16);
    --shadow: 0 1px 2px rgba(12, 14, 22, .04), 0 14px 32px -18px rgba(12, 14, 22, .14);
    --shadow-lg: 0 1px 2px rgba(12, 14, 22, .04), 0 40px 80px -36px rgba(12, 14, 22, .28);
  }
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f5f7;
  --dot: rgba(12, 14, 22, .09);
  --glow-1: rgba(91, 69, 224, .11);
  --glow-2: rgba(18, 168, 107, .09);
  --surface: #ffffff;
  --surface-2: #f6f7f9;
  --surface-3: #eceef2;
  --line: rgba(12, 14, 22, .08);
  --line-2: rgba(12, 14, 22, .15);
  --text: #0c0d11;
  --text-2: #4a4f5a;
  --text-3: #5e636e;
  --pass: #0e9f62;
  --pass-ink: #087a4c;
  --pass-soft: rgba(20, 181, 115, .11);
  --on-pass: #ffffff;
  --accent: #5b45e0;
  --accent-ink: #4b35d2;
  --accent-soft: rgba(91, 69, 224, .09);
  --del: #d94c4c;
  --del-ink: #b93434;
  --del-soft: rgba(217, 76, 76, .09);
  --drop: rgba(12, 14, 22, .16);
  --shadow: 0 1px 2px rgba(12, 14, 22, .04), 0 14px 32px -18px rgba(12, 14, 22, .14);
  --shadow-lg: 0 1px 2px rgba(12, 14, 22, .04), 0 40px 80px -36px rgba(12, 14, 22, .28);
}
:root[data-theme="dark"] { color-scheme: dark; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, p, ol, ul { margin: 0; }
a { color: inherit; }
svg { display: block; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent-soft); }

.wrap { width: min(1120px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.mono { font-family: var(--mono); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  padding: 8px 12px; border-radius: 8px;
  background: var(--text); color: var(--bg); font-weight: 500; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklab, var(--bg) 74%, transparent);
  backdrop-filter: saturate(1.5) blur(14px);
  -webkit-backdrop-filter: saturate(1.5) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14px; letter-spacing: -.01em; text-decoration: none; white-space: nowrap; }
.brand-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--pass); box-shadow: 0 0 0 3px var(--pass-soft); }
.nav-links { display: flex; gap: 2px; list-style: none; padding: 0; }
.nav-links a {
  display: block; padding: 6px 10px; border-radius: 8px;
  font-size: 14px; color: var(--text-2); text-decoration: none;
  transition: color .2s, background-color .2s;
}
.nav-links a:hover { color: var(--text); background: var(--surface-2); }
.nav-end { display: flex; align-items: center; gap: 6px; }
.theme-toggle {
  display: grid; place-items: center; width: 30px; height: 30px; padding: 0;
  border: 0; border-radius: 8px; background: none; color: var(--text-3); cursor: pointer;
  transition: color .2s, background-color .2s;
}
.theme-toggle[hidden] { display: none; }
.theme-toggle:hover { color: var(--text); background: var(--surface-2); }
.theme-toggle svg { width: 15px; height: 15px; }
.theme-toggle .sun { display: none; }
.theme-toggle.is-light .sun { display: block; }
.theme-toggle.is-light .moon { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: clip;
  min-height: clamp(560px, calc(92svh - 56px), 960px);
  display: flex; align-items: center;
  padding-block: clamp(56px, 8vw, 96px) clamp(48px, 6vw, 72px);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(var(--dot) 1px, transparent 1.3px);
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 50% 35%, #000 25%, transparent 78%);
          mask-image: radial-gradient(ellipse 75% 70% at 50% 35%, #000 25%, transparent 78%);
}
.hero::after {
  content: ""; position: absolute; z-index: -2; left: -10%; right: -10%; top: -25%; height: 85%;
  background:
    radial-gradient(38% 50% at 28% 40%, var(--glow-1), transparent 70%),
    radial-gradient(32% 44% at 78% 28%, var(--glow-2), transparent 70%);
  filter: blur(8px);
}
.hero-inner { width: min(1120px, 100% - 2 * var(--gutter)); margin-inline: auto; }

.identity { display: flex; align-items: center; gap: clamp(14px, 2vw, 22px); }
.avatar {
  flex: none; width: clamp(56px, 6vw, 76px); aspect-ratio: 1; border-radius: 50%; overflow: hidden;
  display: grid; place-items: center;
  border: 1.5px solid transparent;
  background:
    linear-gradient(var(--surface-2), var(--surface-2)) padding-box,
    conic-gradient(from 210deg, var(--accent), var(--pass), var(--accent)) border-box;
  box-shadow: 0 0 0 6px color-mix(in oklab, var(--accent) 8%, transparent);
}
.avatar > span { font-family: var(--mono); font-weight: 500; font-size: clamp(17px, 1.8vw, 23px); letter-spacing: .02em; }
.avatar > img { width: 100%; height: 100%; object-fit: cover; display: block; }

h1 { font-size: clamp(2.6rem, 1.4rem + 4.6vw, 5.25rem); line-height: .95; letter-spacing: -.045em; font-weight: 600; }
.role { margin-top: 14px; display: flex; align-items: center; gap: 9px; color: var(--text-2); font-size: clamp(15px, 1.25vw, 17px); line-height: 1.3; }
.live-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--pass); animation: live 2.4s ease-out infinite; }
@keyframes live {
  0% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--pass) 55%, transparent); }
  70%, 100% { box-shadow: 0 0 0 8px transparent; }
}

.hero-copy { margin-top: clamp(28px, 4vw, 44px); display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 24px 56px; align-items: end; }
.tagline { font-size: clamp(1.3rem, .95rem + 1.35vw, 2rem); line-height: 1.25; letter-spacing: -.025em; font-weight: 500; color: var(--text-2); max-width: 28ch; }
.tagline em {
  font-style: normal; color: var(--text);
  background: linear-gradient(90deg, var(--pass-ink), var(--accent-ink));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.origin { color: var(--text-3); font-size: 15px; line-height: 1.6; max-width: 46ch; padding-left: 16px; border-left: 1px solid var(--line-2); }

/* Career run card */
.run {
  margin-top: clamp(36px, 5vw, 60px);
  border: 1px solid var(--line); border-radius: 16px;
  background: color-mix(in oklab, var(--surface) 86%, transparent);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.run-head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--text-2); }
.run-title { display: flex; align-items: center; gap: 8px; font-family: var(--mono); color: var(--text); }
.run-title .sep { color: var(--text-3); }
.run-title svg { width: 15px; height: 15px; color: var(--text-3); }
.run-meta { margin-left: auto; font-family: var(--mono); font-size: 12.5px; color: var(--text-3); }

.pill {
  display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: 999px;
  font-family: var(--mono); font-size: 11.5px; font-weight: 500; white-space: nowrap; border: 1px solid;
}
.pill.passed { color: var(--pass-ink); background: var(--pass-soft); border-color: color-mix(in oklab, var(--pass) 30%, transparent); }
.pill.running { color: var(--accent-ink); background: var(--accent-soft); border-color: color-mix(in oklab, var(--accent) 38%, transparent); }
.spinner { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid currentColor; border-right-color: transparent; animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.stages { --gap: 40px; list-style: none; padding: clamp(16px, 2.4vw, 26px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.stage {
  position: relative; display: flex; flex-direction: column; gap: 6px;
  padding: 16px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line);
  animation: rise .7s var(--ease) both; animation-delay: calc(.25s + var(--i, 0) * .15s);
}
.stage-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.stage-icon { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--pass); color: var(--on-pass); }
.stage-icon svg { width: 13px; height: 13px; }
.stage.is-running { border-color: color-mix(in oklab, var(--accent) 45%, var(--line)); box-shadow: 0 0 0 4px var(--accent-soft); }
.stage.is-running .stage-icon { background: var(--accent-soft); color: var(--accent-ink); box-shadow: inset 0 0 0 1.5px color-mix(in oklab, var(--accent) 60%, transparent); }
.stage-name { font-weight: 600; font-size: 15.5px; letter-spacing: -.01em; line-height: 1.3; }
.stage-meta { font-family: var(--mono); font-size: 12.5px; color: var(--text-3); line-height: 1.4; }
.stage:not(:last-child)::after {
  content: ""; position: absolute; top: 50%; left: 100%; width: var(--gap); height: 2px; margin-top: -1px;
  background:
    linear-gradient(90deg, transparent 0 38%, var(--pass) 50%, transparent 62% 100%) 0 0 / 300% 100% no-repeat,
    var(--line-2);
  animation: flow-x 2.6s linear infinite; animation-delay: calc(var(--i, 0) * 1.3s);
}
@keyframes flow-x { from { background-position: 100% 0, 0 0; } to { background-position: 0% 0, 0 0; } }
@keyframes flow-y { from { background-position: 0 100%, 0 0; } to { background-position: 0 0%, 0 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.hero .identity, .hero .hero-copy { animation: rise .8s var(--ease) both; }
.hero .hero-copy { animation-delay: .1s; }
.hero .run { animation: rise .9s var(--ease) .18s both; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(72px, 10vw, 128px); }
.section + .section { border-top: 1px solid var(--line); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 16px 24px; margin-bottom: clamp(28px, 4vw, 44px); }
.eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-family: var(--mono); font-size: 12.5px; color: var(--text-3); }
.eyebrow b { font-weight: 500; color: var(--accent-ink); }
.eyebrow::after { content: ""; width: 28px; height: 1px; background: var(--line-2); }
h2 { font-size: clamp(2rem, 1.3rem + 2.4vw, 3.25rem); line-height: 1.02; letter-spacing: -.04em; font-weight: 600; }
.section-note { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12.5px; color: var(--text-3); }

.card { border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); }

.check { flex: none; width: 16px; height: 16px; border-radius: 50%; display: grid; place-items: center; background: var(--pass); color: var(--on-pass); }
.check svg { width: 10px; height: 10px; }

/* Employer */
.employer { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 24px 48px; align-items: center; padding: clamp(20px, 3vw, 28px); margin-bottom: 16px; }
.employer-id { display: flex; align-items: center; gap: 16px; }
.employer-mark { flex: none; width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line); color: var(--text-2); }
.employer-mark svg { width: 22px; height: 22px; }
.employer h3 { font-size: clamp(1.45rem, 1.15rem + 1vw, 1.9rem); line-height: 1.1; letter-spacing: -.03em; font-weight: 600; }
.employer-sub { margin-top: 4px; color: var(--text-2); font-size: 15px; }
.titles { list-style: none; padding: 0; display: grid; gap: 8px; }
.title-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 2px 12px;
  padding: 12px 14px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line);
}
.title-row strong { font-weight: 600; font-size: 15px; }
.title-row .when { margin-left: auto; font-family: var(--mono); font-size: 12.5px; color: var(--text-3); }
.tdot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--pass); }
.tdot.now { background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.jobs-nav { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; padding-top: 20px; border-top: 1px solid var(--line); }
.jobs-nav a {
  display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 10px 0 8px; border-radius: 8px;
  border: 1px solid var(--line); background: var(--surface-2);
  font-family: var(--mono); font-size: 12px; color: var(--text-2); text-decoration: none;
  transition: color .2s, border-color .2s;
}
.jobs-nav a:hover { color: var(--text); border-color: var(--line-2); }
.jobs-nav .check { width: 14px; height: 14px; background: var(--pass-soft); color: var(--pass-ink); }

/* Jobs */
.jobs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.job { display: flex; flex-direction: column; overflow: hidden; transition: border-color .25s, transform .25s var(--ease); }
.job:hover { border-color: var(--line-2); }
.job-head { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 12.5px; color: var(--text-2); }
.job-head code { font-family: inherit; color: var(--text); }
.job-tags { margin-left: auto; color: var(--text-3); }
.job .viz { margin: 16px 16px 0; }
.job-body { padding: 18px 20px 22px; }
.job h4 { font-size: 18px; line-height: 1.3; letter-spacing: -.02em; font-weight: 600; }
.job p { margin-top: 8px; color: var(--text-2); font-size: 15px; }

.viz {
  position: relative; min-height: 184px; padding: 18px; border-radius: 12px; overflow: hidden;
  border: 1px solid var(--line);
  background-color: var(--surface-2);
  background-image: radial-gradient(var(--dot) 1px, transparent 1.2px);
  background-size: 16px 16px;
  font-family: var(--mono); font-size: 12px; line-height: 1.4; color: var(--text-2);
}

/* Viz 1: migration */
.viz-migrate { display: grid; align-content: center; gap: 14px; }
.lane { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.lane-label { color: var(--text-3); }
.lane-meta { color: var(--text-3); white-space: nowrap; }
.lane-meta.ok { color: var(--pass-ink); }
.track { height: 28px; display: flex; align-items: center; gap: 4px; padding: 4px; border-radius: 8px; background: var(--surface-3); border: 1px solid var(--line); overflow: hidden; }
.track .day { flex: 1; display: flex; gap: 3px; height: 100%; padding-right: 4px; border-right: 1px dashed var(--line-2); }
.track .day i { flex: 1; border-radius: 3px; background: color-mix(in oklab, var(--text-3) 42%, transparent); transition: transform .35s var(--ease), opacity .35s; transition-delay: calc(var(--i, 0) * 120ms); transform-origin: bottom; }
.track .more { padding-inline: 2px 4px; color: var(--text-3); }
.run-bar {
  height: 100%; width: 42%; display: flex; align-items: center; gap: 6px; padding-inline: 8px; border-radius: 4px;
  background: linear-gradient(90deg, var(--pass), color-mix(in oklab, var(--pass) 55%, var(--accent)));
  color: #03140c; font-size: 11px; font-weight: 500; white-space: nowrap;
  transition: clip-path .8s var(--ease) .25s;
  clip-path: inset(0 0 0 0 round 4px);
}
.run-bar svg { width: 10px; height: 10px; }
.reuse { display: flex; align-items: center; gap: 10px; margin-left: 88px; color: var(--text-3); transition: opacity .5s, transform .5s var(--ease); transition-delay: 1.1s; }
.teams { display: flex; }
.teams i { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--surface-2); margin-left: -6px; background: var(--accent); }
.teams i:first-child { margin-left: 0; }
.teams i:nth-child(2) { background: var(--pass); opacity: .85; }
.teams i:nth-child(3) { background: color-mix(in oklab, var(--accent) 55%, var(--pass)); opacity: .65; }
.teams i:nth-child(4) { background: var(--text-3); opacity: .4; }
html.js .viz-migrate:not(.play) .day i { transform: scaleY(.25); opacity: .15; }
html.js .viz-migrate:not(.play) .run-bar { clip-path: inset(0 100% 0 0 round 4px); }
html.js .viz-migrate:not(.play) .reuse { opacity: 0; transform: translateY(4px); }

/* Viz 2: DORA */
.viz-dora { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.repo-grid { display: grid; grid-template-columns: repeat(10, 20px); gap: 6px; }
.repo-grid i {
  width: 20px; height: 20px; border-radius: 5px;
  background: var(--pass); border: 1px solid transparent;
  box-shadow: 0 0 14px -3px color-mix(in oklab, var(--pass) 70%, transparent);
  transition: background-color .3s, box-shadow .3s, border-color .3s; transition-delay: calc(var(--i, 0) * 45ms);
}
html.js .viz-dora:not(.play) .repo-grid i { background: var(--surface-3); border-color: var(--line); box-shadow: none; }
.dora-stats { display: grid; gap: 14px; }
.stat .num { display: block; font-family: var(--font); font-size: 40px; font-weight: 600; letter-spacing: -.045em; line-height: 1; color: var(--text); font-variant-numeric: tabular-nums; }
.stat .unit { display: block; margin-top: 4px; color: var(--text-3); }

/* Viz 3: mesh */
.viz-mesh { display: grid; grid-template-columns: minmax(0, 1fr) 156px; gap: 16px; align-items: center; }
.mesh-svg { width: 100%; max-width: 280px; height: auto; margin-inline: auto; overflow: visible; }
.mesh-svg .node { fill: var(--surface-3); stroke: var(--line-2); }
.mesh-svg .node.front { fill: var(--accent-soft); stroke: color-mix(in oklab, var(--accent) 55%, transparent); }
.mesh-svg text { font-family: var(--mono); font-size: 10px; fill: var(--text-2); }
.mesh-svg .front-t { fill: var(--accent-ink); }
.mesh-svg .edge { fill: none; stroke: var(--line-2); stroke-width: 1.5; }
.mesh-svg .edge-flow { fill: none; stroke: var(--pass); stroke-width: 1.5; stroke-dasharray: 3 5; animation: dash 1.1s linear infinite; transition: opacity .5s .6s; }
@keyframes dash { to { stroke-dashoffset: -16; } }
.mesh-svg .lock { transform-box: fill-box; transform-origin: center; transition: transform .4s var(--ease), opacity .4s; transition-delay: calc(.75s + var(--i, 0) * .12s); }
.mesh-svg .lock-bg { fill: var(--surface-2); stroke: color-mix(in oklab, var(--pass) 55%, transparent); }
.mesh-svg .lock-body { fill: var(--pass); }
.mesh-svg .lock-shackle { fill: none; stroke: var(--pass); stroke-width: 1.4; }
html.js .viz-mesh:not(.play) .edge-flow { opacity: 0; }
html.js .viz-mesh:not(.play) .lock { opacity: 0; transform: scale(.4); }
.cfg { border-radius: 10px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.cfg-head { padding: 8px 10px; border-bottom: 1px solid var(--line); color: var(--text-3); font-size: 11px; }
.cfg-line { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 10px; }
.cfg-line + .cfg-line { border-top: 1px dashed var(--line); }
.cfg-line .k { color: var(--text); }
.cfg-line .v { color: var(--pass-ink); }
.toggle { position: relative; flex: none; width: 30px; height: 18px; border-radius: 99px; background: var(--pass); transition: background-color .3s .35s; }
.toggle i { position: absolute; top: 2px; left: 14px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .3); transition: left .35s var(--ease) .35s; }
html.js .viz-mesh:not(.play) .toggle { background: var(--surface-3); }
html.js .viz-mesh:not(.play) .toggle i { left: 2px; }

/* Viz 4: performance */
.viz-perf { display: grid; align-content: center; gap: 14px; }
.perf-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.perf-top .big { font-family: var(--font); font-size: 34px; font-weight: 600; letter-spacing: -.045em; line-height: 1; color: var(--pass-ink); }
.bars { display: grid; gap: 6px; }
.bar-row { display: grid; grid-template-columns: 14px minmax(0, 1fr) 64px; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 6px; }
.bar-row.del { background: var(--del-soft); }
.bar-row.add { background: var(--pass-soft); }
.bar-row .sign { font-weight: 500; }
.bar-row.del .sign, .bar-row.del .lbl { color: var(--del-ink); }
.bar-row.add .sign { color: var(--pass-ink); }
.bar-row .lbl { text-align: right; color: var(--text-2); }
.bar { position: relative; height: 12px; }
.bar .fill { position: absolute; inset: 0 auto 0 0; border-radius: 3px; }
.bar .fill.before { width: 100%; background: color-mix(in oklab, var(--del) 60%, transparent); }
.bar .fill.after { width: 75%; background: var(--pass); transition: width 1s var(--ease) .3s; }
.bar .cut {
  position: absolute; inset: 0 0 0 75%; border-radius: 3px;
  background: repeating-linear-gradient(-45deg, color-mix(in oklab, var(--del) 45%, transparent) 0 3px, transparent 3px 6px);
  border: 1px dashed color-mix(in oklab, var(--del) 60%, transparent);
  transition: opacity .5s .9s;
}
html.js .viz-perf:not(.play) .fill.after { width: 100%; }
html.js .viz-perf:not(.play) .cut { opacity: 0; }

/* Viz 5: build diff */
.viz-diff { display: grid; align-content: center; gap: 12px; }
.diff { border-radius: 10px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.diff-file { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-bottom: 1px solid var(--line); color: var(--text-3); font-size: 11.5px; }
.diff-file svg { width: 13px; height: 13px; }
.dl { display: grid; grid-template-columns: 22px minmax(0, 1fr); padding: 7px 12px 7px 0; font-size: 12.5px; transition: clip-path .6s var(--ease), opacity .3s; transition-delay: calc(.2s + var(--i, 0) * .35s); clip-path: inset(0 0 0 0); }
.dl .g { text-align: center; }
.dl.del { background: var(--del-soft); color: var(--del-ink); }
.dl.up { color: var(--text); }
.dl.up .g { color: var(--accent-ink); }
.dl .k { color: var(--text-3); }
html.js .viz-diff:not(.play) .dl { clip-path: inset(0 100% 0 0); opacity: .3; }
.build-flow { display: flex; align-items: center; gap: 10px; color: var(--text-3); }
.tool { padding: 4px 9px; border-radius: 6px; border: 1px solid var(--line); background: var(--surface); color: var(--text-2); }
.tool.old { text-decoration: line-through; text-decoration-color: color-mix(in oklab, var(--del) 70%, transparent); }

/* Viz 6: mentoring */
.viz-mentor { display: grid; justify-items: center; align-content: center; gap: 0; }
.m-root { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--accent-soft); border: 1px solid color-mix(in oklab, var(--accent) 45%, transparent); color: var(--text); font-family: var(--font); font-size: 14px; font-weight: 600; }
.m-badge { font-family: var(--mono); font-size: 11px; font-weight: 500; padding: 1px 6px; border-radius: 99px; background: var(--accent); color: var(--bg); }
.m-tree { position: relative; width: min(100%, 340px); height: 26px; }
.m-tree::before, .m-tree::after { content: ""; position: absolute; background: var(--line-2); transition: transform .5s var(--ease); }
.m-tree::before { left: 50%; top: 0; width: 1px; height: 13px; transform-origin: top; transition-delay: .1s; }
.m-tree::after { left: calc((100% - 12px) / 4); right: calc((100% - 12px) / 4); top: 13px; height: 1px; transition-delay: .4s; }
.m-leaves { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: min(100%, 340px); }
.m-leaf { position: relative; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); color: var(--text); text-align: center; transition: opacity .5s, transform .5s var(--ease); transition-delay: calc(.7s + var(--i, 0) * .15s); }
.m-leaf::before { content: ""; position: absolute; left: 50%; bottom: 100%; width: 1px; height: 13px; background: var(--line-2); }
.m-leaf svg { flex: none; width: 15px; height: 15px; color: var(--pass-ink); }
.m-foot { margin-top: 14px; color: var(--text-3); }
html.js .viz-mentor:not(.play) .m-tree::before { transform: scaleY(0); }
html.js .viz-mentor:not(.play) .m-tree::after { transform: scaleX(0); }
html.js .viz-mentor:not(.play) .m-leaf { opacity: 0; transform: translateY(6px); }

/* ---------- What I enjoy ---------- */
.enjoy-hero { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: center; margin-bottom: clamp(32px, 4vw, 48px); }
.loop { width: clamp(132px, 15vw, 196px); height: auto; overflow: visible; }
.loop .track-c { fill: none; stroke: var(--line); stroke-width: 10; }
.loop .arc { fill: none; stroke: url(#loopGrad); stroke-width: 3; stroke-linecap: round; }
.loop .spin { transform-origin: 100px 100px; animation: spin 12s linear infinite; }
.loop .spin-rev { transform-origin: 100px 100px; animation: spin 24s linear infinite reverse; }
.loop .inner { fill: none; stroke: var(--line-2); stroke-dasharray: 2 6; }
.loop .g1 { stop-color: var(--pass); }
.loop .g2 { stop-color: var(--accent); }
.loop .arrow { fill: var(--accent); }
.loop .arrow.a2 { fill: var(--pass); }
.loop text { font-family: var(--mono); font-size: 12px; fill: var(--text-2); text-anchor: middle; }
.motivation { font-size: clamp(1.45rem, 1rem + 1.8vw, 2.4rem); line-height: 1.22; letter-spacing: -.03em; font-weight: 500; color: var(--text-2); max-width: 30ch; }
.motivation strong { font-weight: 500; color: var(--text); }
.enjoy-grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.enjoy-card { padding: 20px; transition: border-color .25s; }
.enjoy-card:hover { border-color: var(--line-2); }
.enjoy-card .ico { width: 36px; height: 36px; margin-bottom: 18px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); border: 1px solid color-mix(in oklab, var(--accent) 22%, transparent); }
.enjoy-card:nth-child(even) .ico { background: var(--pass-soft); color: var(--pass-ink); border-color: color-mix(in oklab, var(--pass) 22%, transparent); }
.enjoy-card .ico svg { width: 18px; height: 18px; }
.enjoy-card h3 { font-size: 16px; font-weight: 600; letter-spacing: -.01em; line-height: 1.3; }
.enjoy-card p { margin-top: 6px; font-size: 14.5px; color: var(--text-2); line-height: 1.55; }

/* ---------- Projects ---------- */
.apps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.app { display: flex; flex-direction: column; overflow: hidden; transition: border-color .25s, transform .3s var(--ease); }
.app:hover { border-color: var(--line-2); transform: translateY(-2px); }
.app-chrome { position: relative; height: 36px; display: flex; align-items: center; gap: 7px; padding: 0 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.app-chrome i { width: 10px; height: 10px; border-radius: 50%; background: var(--surface-3); border: 1px solid var(--line-2); transition: background-color .25s, border-color .25s; }
.app:hover .app-chrome i:nth-child(1) { background: #ff5f57; border-color: transparent; }
.app:hover .app-chrome i:nth-child(2) { background: #febc2e; border-color: transparent; }
.app:hover .app-chrome i:nth-child(3) { background: #28c840; border-color: transparent; }
.app-chrome span { position: absolute; left: 50%; transform: translateX(-50%); font-family: var(--mono); font-size: 12px; color: var(--text-3); }
.app-canvas {
  position: relative; height: 208px; display: grid; place-items: center; overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(60% 70% at 50% 110%, var(--accent-soft), transparent 70%),
    radial-gradient(var(--dot) 1px, transparent 1.2px) 0 0 / 16px 16px,
    var(--surface-2);
}
.app-body { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 20px 20px 22px; }
.app-body h3 { font-size: 18px; font-weight: 600; letter-spacing: -.02em; }
.app-body p { color: var(--text-2); font-size: 15px; }
.tags { list-style: none; margin-top: auto; padding: 10px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { font-family: var(--mono); font-size: 11.5px; padding: 3px 8px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line); color: var(--text-2); }

/* Hark */
.hark { display: grid; justify-items: center; gap: 18px; }
.key {
  display: grid; place-items: center; width: 132px; height: 46px; border-radius: 10px;
  background: linear-gradient(var(--surface), var(--surface-2));
  border: 1px solid var(--line-2);
  box-shadow: 0 4px 0 var(--surface-3), 0 6px 16px -6px var(--drop);
  font-family: var(--mono); font-size: 12px; color: var(--text);
  animation: press 3.2s var(--ease) infinite;
}
@keyframes press {
  0%, 8%, 76%, 100% { transform: translateY(0); box-shadow: 0 4px 0 var(--surface-3), 0 6px 16px -6px var(--drop); border-color: var(--line-2); }
  14%, 70% { transform: translateY(3px); box-shadow: 0 1px 0 var(--surface-3), 0 2px 8px -4px var(--drop), 0 0 0 4px var(--accent-soft); border-color: color-mix(in oklab, var(--accent) 60%, transparent); }
}
.wave { display: flex; align-items: center; gap: 3px; height: 44px; animation: listen 3.2s var(--ease) infinite; }
.wave i {
  width: 3px; border-radius: 2px;
  height: 20px; height: calc(8px + 30px * abs(sin(var(--i, 3) * 1.7)));
  background: linear-gradient(var(--accent), var(--pass));
  animation: bar 0.9s ease-in-out infinite alternate; animation-delay: calc(var(--i, 0) * -0.11s);
  transform-origin: center;
}
@keyframes bar { from { transform: scaleY(.25); } to { transform: scaleY(1); } }
@keyframes listen { 0%, 10%, 78%, 100% { opacity: .25; filter: saturate(0); } 16%, 72% { opacity: 1; filter: none; } }
.hark-cap { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 11px; color: var(--text-3); }
.hark-cap::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--pass); }

/* Speak Latest */
.speak { position: absolute; inset: 0; }
.menubar { position: absolute; inset: 0 0 auto; height: 26px; display: flex; align-items: center; gap: 12px; padding: 0 12px; background: color-mix(in oklab, var(--surface) 80%, transparent); border-bottom: 1px solid var(--line); backdrop-filter: blur(8px); }
.menubar .mb { height: 6px; border-radius: 3px; background: var(--text-3); opacity: .45; }
.menubar .mb.logo { width: 9px; height: 9px; border-radius: 3px; opacity: .7; }
.menubar .spacer { flex: 1; }
.menubar .ic { width: 12px; height: 12px; border-radius: 3px; border: 1.5px solid var(--text-3); opacity: .5; }
.menubar .spk { position: relative; display: grid; place-items: center; width: 22px; height: 18px; border-radius: 5px; background: var(--accent-soft); color: var(--accent-ink); }
.menubar .spk svg { width: 13px; height: 13px; }
.menubar .spk .wv { animation: blink 1.2s ease-in-out infinite; }
.menubar .spk .wv2 { animation-delay: .3s; }
@keyframes blink { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
.popover {
  position: absolute; top: 36px; right: 16px; left: 16px; max-width: 260px; margin-left: auto;
  padding: 12px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line-2);
  box-shadow: 0 18px 40px -18px var(--drop);
}
.pop-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-family: var(--mono); font-size: 11px; color: var(--text-3); }
.eq { display: flex; align-items: flex-end; gap: 2px; height: 10px; margin-left: auto; }
.eq i { width: 2px; height: 100%; border-radius: 1px; background: var(--accent-ink); animation: bar .5s ease-in-out infinite alternate; transform-origin: bottom; }
.eq i:nth-child(2) { animation-delay: -.2s; }
.eq i:nth-child(3) { animation-delay: -.35s; }
.read { font-size: 13.5px; line-height: 1.55; color: var(--text-3); }
.read span { border-radius: 3px; transition: color .2s, background-color .2s; }
.read span.done { color: var(--text); }
.read span.now { color: var(--text); background: var(--accent-soft); box-shadow: 0 0 0 2px var(--accent-soft); }
.pop-foot { margin-top: 10px; font-family: var(--mono); font-size: 10.5px; color: var(--text-3); }

/* Roybot */
.roybot-svg { width: 100%; max-width: 300px; height: auto; }
.roybot-svg .pcb { fill: var(--surface-3); stroke: var(--line-2); }
.roybot-svg .pin { fill: var(--text-3); opacity: .55; }
.roybot-svg .mcu { fill: var(--surface); stroke: var(--line-2); }
.roybot-svg .usb { fill: var(--text-3); opacity: .35; }
.roybot-svg .antenna { fill: none; stroke: var(--accent-ink); stroke-width: 1.5; }
.roybot-svg .board-label { font-family: var(--mono); font-size: 9px; fill: var(--text-2); }
.roybot-svg .led { fill: var(--pass); animation: blink 1.4s ease-in-out infinite; }
.roybot-svg .led-b { fill: var(--accent); animation-delay: .7s; }
.roybot-svg .link { fill: none; stroke: var(--line-2); stroke-width: 1.5; }
.roybot-svg .link-flow { fill: none; stroke-width: 1.5; stroke-dasharray: 3 6; animation: dash 1s linear infinite; }
.roybot-svg .lf-a { stroke: var(--pass); }
.roybot-svg .lf-b { stroke: var(--accent); }
.roybot-svg .dash-win { fill: var(--surface); stroke: var(--line-2); }
.roybot-svg .dash-sep { stroke: var(--line); }
.roybot-svg .wdot { fill: var(--surface-3); stroke: var(--line-2); }
.roybot-svg .gauge-track { fill: none; stroke: var(--surface-3); stroke-width: 5; stroke-linecap: round; }
.roybot-svg .gauge-val { fill: none; stroke: var(--pass); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 63; stroke-dashoffset: 22; }
.roybot-svg .needle { stroke: var(--text); stroke-width: 1.5; stroke-linecap: round; transform-origin: 214px 104px; animation: needle 3s ease-in-out infinite alternate; }
@keyframes needle { from { transform: rotate(-50deg); } to { transform: rotate(35deg); } }
.roybot-svg .joy { fill: var(--surface-2); stroke: var(--line-2); }
.roybot-svg .joy-knob { fill: var(--accent); animation: joy 4s ease-in-out infinite; }
@keyframes joy { 0%, 100% { transform: translate(0, 0); } 25% { transform: translate(5px, -4px); } 50% { transform: translate(-4px, -5px); } 75% { transform: translate(-5px, 4px); } }
.roybot-svg .bar-bg { fill: var(--surface-3); }
.roybot-svg .bar-fg { fill: var(--accent); }
.roybot-svg .bar-fg.b2 { fill: var(--pass); }
.roybot-svg .win-t { font-family: var(--mono); font-size: 8.5px; fill: var(--text-3); }

/* ---------- Education ---------- */
.edu { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); overflow: hidden; }
.edu-main { padding: clamp(22px, 3vw, 32px); border-right: 1px solid var(--line); }
.log-head { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; font-family: var(--mono); font-size: 12.5px; color: var(--text-2); }
.log-head code { font-family: inherit; color: var(--text); }
.edu h3 { font-size: clamp(1.4rem, 1.15rem + .9vw, 1.8rem); line-height: 1.15; letter-spacing: -.03em; font-weight: 600; }
.edu-meta { margin-top: 6px; color: var(--text-2); font-size: 15px; }
.edu-project { margin-top: 16px; color: var(--text-2); font-size: 15px; max-width: 52ch; }
.edu-project strong { color: var(--text); font-weight: 600; }
.log-lines { list-style: none; padding: 0; margin-top: 22px; display: grid; gap: 2px; font-family: var(--mono); font-size: 12.5px; }
.log-lines li { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 12px; padding: 7px 10px; border-radius: 6px; color: var(--text-2); }
.log-lines li:nth-child(odd) { background: var(--surface-2); }
.log-lines time { color: var(--text-3); }
.log-lines .hl { color: var(--pass-ink); }

.port {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1fr); align-content: center; gap: 18px 0;
  padding: clamp(22px, 3vw, 32px);
  background: radial-gradient(var(--dot) 1px, transparent 1.2px) 0 0 / 16px 16px, var(--surface-2);
}
.editor { border-radius: 10px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; box-shadow: var(--shadow); }
.ed-head { display: flex; align-items: center; gap: 6px; padding: 8px 10px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 11.5px; color: var(--text-2); }
.ed-head .lg { width: 8px; height: 8px; border-radius: 2px; }
.java .lg { background: var(--del); }
.py .lg { background: var(--pass); }
.ed-lines { display: grid; gap: 7px; padding: 12px 10px 14px; }
.ed-lines i { height: 5px; width: var(--w, 60%); border-radius: 3px; background: var(--surface-3); margin-left: var(--x, 0); }
.java .ed-lines i:nth-child(3n+1) { background: color-mix(in oklab, var(--del) 45%, var(--surface-3)); }
.py .ed-lines i:nth-child(3n+2) { background: color-mix(in oklab, var(--pass) 45%, var(--surface-3)); }
.port-arrow { position: relative; align-self: center; height: 2px; margin-inline: 8px; background: var(--line-2); }
.port-arrow::after { content: ""; position: absolute; right: -2px; top: -4px; border: 5px solid transparent; border-left-color: var(--line-2); border-right: 0; }
.port-arrow span { position: absolute; top: -2px; left: 0; width: 6px; height: 6px; border-radius: 50%; background: var(--pass); animation: travel 2.2s linear infinite; }
.port-arrow span:nth-child(2) { animation-delay: .73s; }
.port-arrow span:nth-child(3) { animation-delay: 1.46s; }
@keyframes travel { 0% { left: 0; opacity: 0; } 15%, 80% { opacity: 1; } 100% { left: calc(100% - 6px); opacity: 0; } }
.bench { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 10px 12px; border-radius: 10px; border: 1px dashed var(--line-2); font-family: var(--mono); font-size: 12px; color: var(--text-2); }
.bench svg { width: 15px; height: 15px; color: var(--accent-ink); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 32px clamp(32px, 6vw, 80px); align-items: center; }
.contact-lede { margin-top: 16px; color: var(--text-2); font-size: clamp(16px, 1.3vw, 18px); max-width: 34ch; }
.palette { border-radius: 16px; border: 1px solid var(--line-2); background: var(--surface); box-shadow: var(--shadow-lg); overflow: hidden; }
.palette-bar { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); color: var(--text-3); font-size: 15px; }
.palette-bar svg { width: 16px; height: 16px; }
.palette-bar kbd { margin-left: auto; }
kbd { font-family: var(--mono); font-size: 11px; padding: 2px 6px; border-radius: 5px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text-2); }
.palette-group { padding: 10px 16px 4px; font-family: var(--mono); font-size: 11px; color: var(--text-3); }
.palette ul { list-style: none; padding: 4px 8px 8px; }
.p-item {
  display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 14px;
  padding: 12px; border-radius: 10px; text-decoration: none; color: var(--text);
  transition: background-color .15s;
}
.p-item:hover, .p-item:focus-visible { background: var(--surface-2); }
.p-item:focus-visible { outline-offset: -2px; }
.p-ico { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); border: 1px solid color-mix(in oklab, var(--accent) 22%, transparent); }
.p-ico svg { width: 18px; height: 18px; }
li + li .p-ico { background: var(--pass-soft); color: var(--pass-ink); border-color: color-mix(in oklab, var(--pass) 22%, transparent); }
.p-label { font-weight: 600; font-size: 15.5px; line-height: 1.3; }
.p-meta { display: block; font-family: var(--mono); font-size: 12.5px; font-weight: 400; color: var(--text-3); overflow-wrap: anywhere; }
.p-go { display: grid; place-items: center; width: 28px; height: 24px; border-radius: 6px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text-2); }
.p-go svg { width: 13px; height: 13px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-block: 28px; font-size: 13px; color: var(--text-3); }
.footer .pill { font-size: 11px; }
.footer-text { display: grid; gap: 4px; }
.disclaimer { font-size: 12px; }

/* ---------- Reveal ---------- */
html.js [data-reveal] { transition: opacity .7s var(--ease), transform .7s var(--ease); }
html.js [data-reveal]:not(.in) { opacity: 0; transform: translateY(18px); }

/* ---------- Responsive ---------- */
@media (min-width: 861px) {
  .job .viz { min-height: 224px; }
}
@media (max-width: 1100px) {
  .stages { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px var(--gap); }
  .stage:nth-child(2)::after { display: none; }
}
@media (max-width: 960px) {
  .enjoy-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .apps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .apps .app:last-child { grid-column: 1 / -1; }
  .employer { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .jobs { grid-template-columns: minmax(0, 1fr); }
  .edu { grid-template-columns: minmax(0, 1fr); }
  .edu-main { border-right: 0; border-bottom: 1px solid var(--line); }
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .hero-copy { grid-template-columns: minmax(0, 1fr); }
  .stages { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .stage:nth-child(2)::after { display: block; }
  .stage:not(:last-child)::after {
    top: 100%; left: 26px; width: 2px; height: 22px; margin-top: 0;
    background:
      linear-gradient(180deg, transparent 0 38%, var(--pass) 50%, transparent 62% 100%) 0 0 / 100% 300% no-repeat,
      var(--line-2);
    animation-name: flow-y;
  }
  .apps { grid-template-columns: minmax(0, 1fr); }
  .enjoy-hero { grid-template-columns: minmax(0, 1fr); justify-items: start; }
  .loop { width: 132px; }
}
@media (max-width: 560px) {
  .nav-links a { padding: 6px 8px; font-size: 13.5px; }
  .enjoy-grid { grid-template-columns: minmax(0, 1fr); }
  .job .viz { margin: 12px 12px 0; }
  .viz { padding: 16px 14px; }
  .lane { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 10px; }
  .lane .track { grid-column: 1 / -1; grid-row: 2; }
  .reuse { margin-left: 0; }
  .viz-dora { flex-direction: column; align-items: flex-start; }
  .dora-stats { display: flex; gap: 32px; }
  .viz-mesh { grid-template-columns: minmax(0, 1fr); }
  .job-body { padding: 16px 16px 20px; }
  .port { grid-template-columns: minmax(0, 1fr) 40px minmax(0, 1fr); }
  .log-lines li { grid-template-columns: 64px minmax(0, 1fr); }
}
@media (max-width: 375px) {
  .brand-name { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
