:root {
  --bg: #05060a;
  --bg-raise: #0b0d14;
  --card: #0c0e15;
  --card-2: #08090e;
  --surface: rgba(255, 255, 255, 0.025);
  --surface-hi: rgba(255, 255, 255, 0.05);
  --line: rgba(255, 255, 255, 0.08);
  --line-hi: rgba(255, 255, 255, 0.16);
  --text: #eceef4;
  --muted: #9097a8;
  --dim: #5b6172;
  --accent: #6ef2c4;
  --accent-2: #7d8bff;
  --accent-3: #c084fc;
  --warn: #ffcf6b;

  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --radius: 18px;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1200px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

h1,
h2,
h3,
p {
  margin: 0;
}

::selection {
  background: var(--accent);
  color: var(--bg);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.mono {
  font-family: var(--mono);
  font-size: 0.8125rem;
  letter-spacing: 0.01em;
}

.accent {
  color: var(--accent);
}

.dim {
  color: var(--dim);
}

/* ---------- Background ---------- */

#field {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  pointer-events: none;
}

.noise {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.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: fixed;
  top: 12px;
  left: 50%;
  translate: -50% 0;
  z-index: 10;
  width: min(var(--max), calc(100% - 24px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 14px 10px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(8, 10, 16, 0.88);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
}

.nav__logo {
  font: 600 1.05rem/1 var(--mono);
  letter-spacing: -0.02em;
}

.nav__cursor {
  color: var(--accent);
  animation: blink 1.1s steps(1) infinite;
}

.nav__links {
  display: flex;
  gap: 4px;
}

.nav__links a {
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.875rem;
  transition: color 0.2s, background 0.2s;
}

.nav__links a:hover {
  color: var(--text);
  background: var(--surface-hi);
}

.nav__clock {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.75rem;
  white-space: nowrap;
}

.nav__clock time {
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(110, 242, 196, 0.6);
  animation: pulse 2.2s infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(110, 242, 196, 0.55);
  }
  70% {
    box-shadow: 0 0 0 9px rgba(110, 242, 196, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(110, 242, 196, 0);
  }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow-x: clip;
  min-height: 100svh;
  max-width: var(--max);
  margin: 0 auto;
  padding: 140px var(--gutter) 96px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero__aura {
  position: absolute;
  z-index: -1;
  top: 18%;
  left: 50%;
  width: min(900px, 120vw);
  aspect-ratio: 1.6;
  translate: -50% 0;
  background:
    radial-gradient(closest-side at 30% 45%, rgba(110, 242, 196, 0.22), transparent 70%),
    radial-gradient(closest-side at 70% 55%, rgba(125, 139, 255, 0.22), transparent 70%),
    radial-gradient(closest-side at 55% 30%, rgba(192, 132, 252, 0.14), transparent 70%);
  filter: blur(40px);
  animation: drift 18s var(--ease) infinite alternate;
  pointer-events: none;
}

@keyframes drift {
  to {
    transform: translate3d(4%, 6%, 0) rotate(8deg) scale(1.08);
  }
}

.hero__id {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 36px;
}

.avatar {
  position: relative;
  width: 64px;
  height: 64px;
  flex: none;
}

.avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  filter: grayscale(0.15) contrast(1.05);
}

.avatar__ring {
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--accent), var(--accent-2), var(--accent-3), transparent 70%, var(--accent));
  mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1.5px));
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1.5px));
  animation: spin 6s linear infinite;
}

@keyframes spin {
  to {
    rotate: 360deg;
  }
}

.hero__handle {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
}

.eyebrow {
  color: var(--muted);
  margin-bottom: 18px;
}

.hero__name {
  font-size: clamp(3.4rem, 13vw, 10.5rem);
  font-weight: 650;
  line-height: 0.9;
  letter-spacing: -0.055em;
  margin-left: -0.04em;
  background: linear-gradient(180deg, #fff 30%, rgba(255, 255, 255, 0.55));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lede {
  max-width: 720px;
  margin-top: 28px;
  font-size: clamp(1.1rem, 2vw, 1.375rem);
  line-height: 1.5;
  color: var(--muted);
  text-wrap: pretty;
}

.hero__lede a {
  color: var(--text);
  border-bottom: 1px solid var(--accent);
}

.hl {
  color: var(--text);
  white-space: nowrap;
}

.stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.stack li {
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  background: var(--card);
}

.stack li::before {
  content: "#";
  color: var(--accent);
  margin-right: 4px;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.link-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 16px;
  border: 1px solid var(--line-hi);
  border-radius: 999px;
  background: var(--card);
  font-size: 0.9rem;
  transition: border-color 0.25s, background 0.25s, transform 0.25s var(--ease);
}

.link-chip:hover {
  border-color: var(--accent);
  background: #0d1a18;
  transform: translateY(-2px);
}

.link-chip svg,
.btn svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Contribution activity ---------- */

.activity {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 56px;
  margin-top: 56px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.activity__label {
  color: var(--dim);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.activity__label a:hover {
  color: var(--accent);
}

.activity__years {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.activity__big {
  font: 500 clamp(2.4rem, 5vw, 3.6rem) / 1 var(--font);
  letter-spacing: -0.04em;
}

.activity__big .accent {
  font-size: 0.55em;
  vertical-align: super;
  margin-left: 2px;
}

.activity__chart {
  margin: 0;
  min-width: 0;
}

.activity__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 20px;
  margin-bottom: 14px;
}

.activity__totals {
  display: flex;
  gap: 16px;
  color: var(--dim);
  font-size: 0.72rem;
}

.activity__totals b {
  color: var(--text);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.activity__plot {
  --gap: 3px;
  --weeks: 53;
  position: relative;
}

.activity__grid,
.activity__bars {
  display: grid;
  grid-template-columns: repeat(var(--weeks), minmax(0, 1fr));
  gap: var(--gap);
}

.activity__grid {
  grid-template-rows: repeat(7, auto);
}

.cell {
  aspect-ratio: 1;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.045);
  animation: cell-in 0.5s var(--ease) backwards;
  animation-delay: calc(var(--col) * 16ms + var(--row) * 22ms);
  transition: background 0.25s, box-shadow 0.25s, transform 0.25s var(--ease);
}

.cell[data-level="1"] {
  background: rgba(110, 242, 196, 0.22);
}

.cell[data-level="2"] {
  background: rgba(110, 242, 196, 0.45);
}

.cell[data-level="3"] {
  background: rgba(110, 242, 196, 0.72);
}

.cell[data-level="4"] {
  background: var(--accent);
  box-shadow: 0 0 8px rgba(110, 242, 196, 0.55);
}

.cell.is-future {
  visibility: hidden;
}

.cell.is-scan {
  transform: scale(1.18);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.cell.is-scan[data-level="0"] {
  background: rgba(255, 255, 255, 0.12);
}

.cell.is-scan:not([data-level="0"]) {
  background: #c8ffe9;
  box-shadow: 0 0 14px var(--accent);
}

@keyframes cell-in {
  from {
    opacity: 0;
    transform: scale(0.2);
  }
}

.activity__bars {
  height: 44px;
  margin-top: 10px;
  align-items: end;
}

.bar {
  height: var(--h);
  min-height: 2px;
  border-radius: 2px 2px 0 0;
  background: linear-gradient(180deg, rgba(125, 139, 255, 0.85), rgba(125, 139, 255, 0.15));
  transform-origin: bottom;
  animation: bar-in 0.7s var(--ease) backwards;
  animation-delay: calc(var(--col) * 16ms + 200ms);
  transition: background 0.25s, box-shadow 0.25s;
}

.bar.is-scan {
  background: linear-gradient(180deg, #fff, var(--accent));
  box-shadow: 0 0 14px rgba(110, 242, 196, 0.6);
}

@keyframes bar-in {
  from {
    transform: scaleY(0);
  }
}

.activity__scan {
  position: absolute;
  top: -6px;
  bottom: -4px;
  left: calc((100% + var(--gap)) * var(--at, 0) / var(--weeks) - var(--gap) / 2);
  width: calc((100% + var(--gap)) / var(--weeks));
  border-radius: 4px;
  background: linear-gradient(180deg, rgba(110, 242, 196, 0.16), rgba(110, 242, 196, 0.02));
  box-shadow: 0 0 0 1px rgba(110, 242, 196, 0.25);
  opacity: 0;
  pointer-events: none;
  transition: left 0.16s linear, opacity 0.4s;
}

.activity__scan.is-on {
  opacity: 1;
}

.activity__scan.is-jump {
  transition: opacity 0.4s;
}

.activity__readout {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.activity__readout b {
  color: var(--text);
  font-weight: 500;
}

.scroll-cue {
  position: absolute;
  bottom: 28px;
  left: var(--gutter);
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--dim);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.scroll-cue__line {
  position: relative;
  width: 64px;
  height: 1px;
  background: var(--line-hi);
  overflow: hidden;
}

.scroll-cue__line::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 40%;
  background: var(--accent);
  animation: scan 2s var(--ease) infinite;
}

@keyframes scan {
  from {
    translate: -100% 0;
  }
  to {
    translate: 260% 0;
  }
}

/* ---------- Sections ---------- */

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 96px var(--gutter);
}

.section__head {
  margin-bottom: 40px;
}

.section__head--row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.section__index {
  color: var(--muted);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
}

.section__title {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

/* Cards with cursor-tracking glow border */
.glow {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--card), var(--card-2));
  isolation: isolate;
  transition: border-color 0.3s, transform 0.4s var(--ease);
}

.glow::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(110, 242, 196, 0.7), rgba(125, 139, 255, 0.35) 40%, transparent 70%);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  -webkit-mask-composite: xor;
  opacity: 0;
  transition: opacity 0.35s;
  pointer-events: none;
}

.glow::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 0%), rgba(110, 242, 196, 0.06), transparent 60%);
  opacity: 0;
  transition: opacity 0.35s;
  pointer-events: none;
}

.glow:hover::before,
.glow:hover::after {
  opacity: 1;
}

/* Browser frame around screenshots */
.frame {
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-raise);
}

.frame__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  border-bottom: 1px solid var(--line);
  color: var(--dim);
  font-size: 0.7rem;
  background: rgba(255, 255, 255, 0.02);
}

.frame__bar i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}

.frame__bar span {
  margin: 0 auto;
  padding: 2px 12px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  transform: translateX(-14px);
}

.frame img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top;
  transition: transform 0.8s var(--ease), filter 0.4s;
  filter: saturate(0.9);
}

.glow:hover .frame img {
  transform: scale(1.035);
  filter: saturate(1.05);
}

/* Lead project */
.feature {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  padding: clamp(20px, 3.5vw, 44px);
  margin-bottom: 24px;
}

.feature__copy > p:not(.tag):not(.feature__lede) {
  color: var(--muted);
  margin-top: 16px;
  text-wrap: pretty;
}

.tag {
  display: inline-block;
  margin-bottom: 18px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.tag--accent {
  color: var(--accent);
  background: rgba(110, 242, 196, 0.08);
  border: 1px solid rgba(110, 242, 196, 0.25);
}

.feature__title {
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 650;
  letter-spacing: -0.05em;
  line-height: 0.95;
}

.feature__lede {
  margin-top: 14px;
  font-size: 1.2rem;
  line-height: 1.4;
  color: var(--text);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 22px;
}

.chips li {
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font-weight: 550;
  font-size: 0.95rem;
  transition: background 0.25s, transform 0.25s var(--ease), box-shadow 0.25s;
}

.btn:hover {
  background: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 10px 40px -10px rgba(110, 242, 196, 0.6);
}

/* Project grid */
.projects {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.project {
  display: flex;
  flex-direction: column;
  padding: 14px;
}

.project__body {
  padding: 20px 8px 8px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.project__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 0.72rem;
}

.project h3 {
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.project h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
}

.project p {
  margin-top: 8px;
  color: var(--muted);
  text-wrap: pretty;
}

.project__links {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-top: auto;
  padding-top: 18px;
  font-size: 0.75rem;
}

.project__links a {
  color: var(--muted);
  transition: color 0.2s;
}

.project__links a:hover {
  color: var(--accent);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 10px currentColor;
}

.status--live {
  color: var(--accent);
  background: rgba(110, 242, 196, 0.08);
}

.status--soon {
  color: var(--warn);
  background: rgba(255, 207, 107, 0.08);
}

/* ---------- Repos ---------- */

.sort {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
}

.sort button {
  appearance: none;
  border: 0;
  padding: 7px 14px;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.sort button[aria-pressed="true"] {
  background: var(--surface-hi);
  color: var(--text);
}

.repos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.repo {
  display: flex;
  flex-direction: column;
  min-height: 172px;
  padding: 20px;
  border-radius: 14px;
  opacity: 0;
  translate: 0 12px;
  animation: rise 0.6s var(--ease) forwards;
  animation-delay: calc(var(--i, 0) * 40ms);
}

@keyframes rise {
  to {
    opacity: 1;
    translate: 0 0;
  }
}

.repo__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.repo__name {
  font: 500 0.95rem/1.3 var(--mono);
  word-break: break-word;
}

.repo__name a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.repo__name .dim {
  font-weight: 400;
}

.repo__home {
  position: relative;
  z-index: 1;
  flex: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  transition: color 0.2s, border-color 0.2s;
}

.repo__home:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.repo__home svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.repo__desc {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.repo__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 16px;
  margin-top: auto;
  padding-top: 16px;
  color: var(--dim);
  font: 0.72rem/1 var(--mono);
}

.repo__meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.lang-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c, var(--dim));
  box-shadow: 0 0 8px var(--c, transparent);
}

.more {
  display: inline-block;
  margin-top: 28px;
  color: var(--muted);
  border-bottom: 1px solid var(--line-hi);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}

.more:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ---------- Timeline ---------- */

.timeline {
  position: relative;
  border-left: 1px solid var(--line-hi);
  margin-left: 6px;
}

.timeline__item {
  position: relative;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  grid-template-areas:
    "when role"
    "when org";
  column-gap: 32px;
  padding: 28px 0 28px 32px;
  border-bottom: 1px solid var(--line);
}

.timeline__item:last-child {
  border-bottom: 0;
}

.timeline__node {
  position: absolute;
  left: -5px;
  top: 38px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--line-hi);
}

.timeline__item:first-child .timeline__node {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 14px var(--accent);
}

.timeline__when {
  grid-area: when;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 8px;
  color: var(--muted);
}

.timeline__role {
  grid-area: role;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.timeline__org {
  grid-area: org;
  margin-top: 4px;
  color: var(--muted);
}

.timeline__org a {
  background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 1px no-repeat;
  transition: background-size 0.35s var(--ease), color 0.2s;
}

.timeline__org a:hover {
  color: var(--text);
  background-size: 100% 1px;
}

/* ---------- Contact ---------- */

.contact {
  padding-top: 120px;
  padding-bottom: 120px;
}

.contact__title {
  font-size: clamp(2.4rem, 7.5vw, 6rem);
  font-weight: 650;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.grad {
  background: linear-gradient(90deg, var(--accent), var(--accent-2) 55%, var(--accent-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.contact__mail {
  display: inline-block;
  margin-top: 40px;
  font: 400 clamp(1rem, 2.6vw, 1.6rem) / 1.2 var(--mono);
  color: var(--muted);
  border-bottom: 1px solid var(--line-hi);
  padding-bottom: 6px;
  word-break: break-all;
  transition: color 0.25s, border-color 0.25s;
}

.contact__mail:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px var(--gutter) 40px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--dim);
  border-top: 1px solid var(--line);
}

.footer a:hover {
  color: var(--accent);
}

/* ---------- Reveal on scroll ---------- */

.reveal {
  opacity: 0;
  translate: 0 24px;
  transition: opacity 0.9s var(--ease), translate 0.9s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  translate: 0 0;
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .feature {
    grid-template-columns: 1fr;
  }

  .feature .frame {
    order: -1;
  }

  .repos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nav__links {
    display: none;
  }
}

@media (max-width: 680px) {
  .projects,
  .repos {
    grid-template-columns: 1fr;
  }

  .activity {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .activity__plot {
    --gap: 2px;
  }

  .activity__readout {
    white-space: normal;
  }

  .timeline__item {
    grid-template-columns: 1fr;
    grid-template-areas:
      "role"
      "org"
      "when";
    padding-left: 22px;
  }

  .timeline__node {
    top: 38px;
  }

  .timeline__when {
    padding-top: 12px;
  }

  .hero {
    padding-top: 120px;
  }

  .scroll-cue {
    display: none;
  }
}

@media (max-width: 440px) {
  .nav__clock > span:not(.pulse) {
    display: none;
  }
}

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

  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    translate: none;
  }
}
