:root {
  --bg: #05070a;
  --ink: #f4f1ea;
  --muted: #9aa194;
  --line: rgba(232, 230, 225, 0.12);
  --gold: #4dffb5;
  --gold-2: #7dffc9;
  --sage: #e8c36a;
  --card: rgba(16, 21, 28, 0.78);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Outfit", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --nav-h: 76px;
  --mx: 70%;
  --my: 18%;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(900px 500px at 80% -10%, rgba(77, 255, 181, 0.16), transparent 55%),
    radial-gradient(700px 480px at -10% 30%, rgba(232, 195, 66, 0.08), transparent 50%),
    var(--bg);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.6;
}

img {
  max-width: 100%;
}

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

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

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

.spot {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  background: radial-gradient(
    420px circle at var(--mx) var(--my),
    rgba(77, 255, 181, 0.1),
    transparent 42%
  );
}

.grain,
.grid-bg {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
}

.grain {
  opacity: 0.16;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.grid-bg {
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(232, 230, 225, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232, 230, 225, 0.06) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 20%, transparent 75%);
}

.nav,
main,
.footer,
.mobile-menu {
  position: relative;
  z-index: 1;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--nav-h);
  padding: 0 32px;
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.mark {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.nav-photo {
  width: 34px;
  height: 34px;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid var(--gold);
}

.nav-links {
  display: flex;
  gap: 26px;
  margin-left: auto;
  color: var(--muted);
  font-size: 13px;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--ink);
}

.nav-cta {
  padding: 8px 16px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  color: var(--gold-2);
  font-size: 13px;
}

.nav-cta:hover {
  background: var(--gold);
  color: #062016;
}

.menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
}

.menu-btn span {
  display: block;
  width: 16px;
  height: 1.5px;
  margin: 5px auto;
  background: var(--ink);
}

.mobile-menu {
  display: none;
  position: sticky;
  top: var(--nav-h);
  z-index: 19;
  flex-direction: column;
  padding: 8px 24px 20px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.mobile-menu a {
  padding: 10px 0;
  color: var(--muted);
}

.mobile-menu:not([hidden]) {
  display: flex;
}

main {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}

.hero {
  padding: 64px 0 12px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--gold);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 0 rgba(77, 255, 181, 0.7);
  animation: pulse 2.4s ease-out infinite;
}

@keyframes pulse {
  70% {
    box-shadow: 0 0 0 9px transparent;
  }
}

.hero-name {
  margin: 18px 0 10px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(44px, 6.4vw, 76px);
  font-weight: 500;
  line-height: 0.96;
  letter-spacing: -0.03em;
}

.hero h1 em {
  font-style: italic;
  color: var(--gold);
}

.lede {
  max-width: 46ch;
  margin-top: 22px;
  color: var(--muted);
  font-size: 18px;
  font-weight: 300;
}

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

.shot {
  position: relative;
  justify-self: end;
  width: 240px;
  margin: 0;
}

.shot-glow {
  position: absolute;
  inset: -18%;
  background: radial-gradient(circle, rgba(77, 255, 181, 0.28), transparent 64%);
  filter: blur(6px);
}

.shot img {
  position: relative;
  z-index: 1;
  display: block;
  width: 240px;
  height: 240px;
  object-fit: cover;
  border-radius: 32px;
  border: 1px solid rgba(77, 255, 181, 0.4);
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.45),
    0 0 0 10px rgba(5, 7, 10, 0.7);
  filter: contrast(1.05) saturate(1.04);
}

.shot figcaption {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  color: #062016;
}

.btn-ghost {
  border: 1px solid var(--line);
  background: rgba(232, 230, 225, 0.03);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 48px 0 8px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stats div {
  padding: 22px 0;
  border-right: 1px solid var(--line);
}

.stats div:last-child {
  border-right: 0;
}

.stats div:not(:first-child) {
  padding-left: 28px;
}

.stats dt {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.stats dd {
  margin: 6px 0 0;
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.section {
  padding: 92px 0 0;
}

.section-head {
  margin-bottom: 36px;
}

.section-head span,
.mono {
  display: block;
  margin-bottom: 10px;
  color: var(--gold);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section-head h2 {
  font-family: var(--serif);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: start;
}

.about-copy {
  display: grid;
  gap: 18px;
  color: var(--muted);
  font-size: 18px;
  font-weight: 300;
}

.terminal {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #0c1116;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

.terminal-bar span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #5a5048;
}

.terminal-bar span:nth-child(1) {
  background: #c98a72;
}

.terminal-bar span:nth-child(2) {
  background: #e0b07a;
}

.terminal-bar span:nth-child(3) {
  background: #8fbfb0;
}

.terminal-bar em {
  margin-left: 8px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  font-style: normal;
}

.terminal pre {
  margin: 0;
  padding: 18px 18px 16px;
  color: #c9d0cc;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.7;
}

.terminal .k {
  color: var(--gold);
}

.terminal .s {
  color: #e8c36a;
}

.terminal .n {
  color: #7eb8ff;
}

.work-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.work-card {
  min-height: 320px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--card);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.work-card:hover {
  transform: translateY(-4px);
  border-color: rgba(77, 255, 181, 0.45);
}

.work-card.current {
  background:
    linear-gradient(180deg, rgba(77, 255, 181, 0.12), transparent 40%),
    var(--card);
}

.work-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 36px;
}

.year {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.badge {
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(77, 255, 181, 0.16);
  color: var(--sage);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.work-card h3 {
  font-family: var(--serif);
  font-size: 48px;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 0.95;
}

.role {
  margin: 8px 0 16px;
  color: var(--gold);
  font-size: 14px;
}

.work-card p {
  color: var(--muted);
  font-weight: 300;
}

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

.chips li {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
}

.stack-row {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 14px;
}

.stack-row article {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--card);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.stack-row article:hover {
  transform: translateY(-4px);
  border-color: rgba(77, 255, 181, 0.4);
}

.stack-row span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.stack-row strong {
  display: block;
  margin: 18px 0 8px;
  font-family: var(--serif);
  font-size: 42px;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
}

.go-tile {
  background:
    linear-gradient(160deg, rgba(77, 255, 181, 0.16), transparent 55%),
    var(--card);
}

.go-tile strong {
  font-size: 72px;
  color: var(--sage);
}

.stack-row p {
  color: var(--muted);
  font-size: 14px;
  font-weight: 300;
}

.edu {
  padding: 40px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    linear-gradient(90deg, rgba(77, 255, 181, 0.1), transparent 45%),
    var(--card);
}

.edu h2 {
  margin: 8px 0 12px;
  font-family: var(--serif);
  font-size: clamp(42px, 7vw, 72px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 0.95;
}

.edu p {
  max-width: 52ch;
  color: var(--muted);
  font-size: 17px;
  font-weight: 300;
}

.connect {
  padding-bottom: 96px;
}

.connect-card {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 32px;
  align-items: center;
  padding: 32px;
  border: 1px solid rgba(77, 255, 181, 0.35);
  border-radius: 28px;
  background:
    linear-gradient(120deg, rgba(77, 255, 181, 0.14), transparent 50%),
    var(--card);
}

.connect-card img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 24px;
  border: 1px solid rgba(77, 255, 181, 0.4);
}

.connect-card h2 {
  margin: 8px 0 12px;
  max-width: 16ch;
  font-family: var(--serif);
  font-size: clamp(32px, 4.6vw, 52px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.02;
}

.connect-card p {
  max-width: 48ch;
  margin-bottom: 22px;
  color: var(--muted);
  font-weight: 300;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 24px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (max-width: 900px) {
  .nav-links,
  .nav-cta {
    display: none;
  }

  .menu-btn {
    display: block;
  }

  .hero-grid,
  .stats,
  .about-grid,
  .work-grid,
  .stack-row,
  .connect-card {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .shot {
    justify-self: start;
    width: 200px;
  }

  .shot img {
    width: 200px;
    height: 200px;
  }

  .stats div,
  .stats div:not(:first-child) {
    padding: 16px 0;
    padding-left: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .stats div:last-child {
    border-bottom: 0;
  }

  .connect-card img {
    width: 88px;
    height: 88px;
  }

  .footer {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .pulse,
  .btn,
  .reveal {
    animation: none;
    transition: none;
  }

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