

:root {
  --bg: #050505;
  --fg: #f4f4f4;
  --dim: #a3a3a3;
  --faint: #4a4a4a;
  --hairline: #222;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

.defs { position: absolute; width: 0; height: 0; }
.ta-r { text-align: right; }

#bg {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  image-rendering: pixelated;
}

body { cursor: url("assets/cursor-arrow.svg") 0 0, auto; }
a, a *, #brand { cursor: url("assets/cursor-hand.svg") 6 0, pointer; }

main {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 28px 64px;
}

.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 32px 0 48px;
}

.hero-meta {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--dim);
  text-transform: lowercase;
}

h1 {
  font-size: clamp(56px, 13vw, 168px);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.05em;
  filter: url(#melt);
  user-select: none;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 36px;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--hairline);
}

.links a {
  color: var(--fg);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-decoration: none;
  padding: 4px 0;
}

.links a:hover,
.links a:focus-visible {
  filter: url(#warp);
}

:focus-visible { outline: 1px solid var(--fg); outline-offset: 4px; }

.scroll-hint {
  margin-top: 28px;
  text-align: right;
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--faint);
  transition: opacity 400ms;
}

.scroll-hint span {
  display: inline-block;
  animation: hop 900ms steps(1) infinite;
}

@keyframes hop { 50% { transform: translateY(4px); } }

body.scrolled .scroll-hint { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  .scroll-hint span { animation: none; }
}

section {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 20px 40px;
  margin-top: 128px;
}

section.reveal {
  opacity: 0;
  transform: translateY(28px);
}

section.reveal.in {
  opacity: 1;
  transform: none;
  transition: opacity 900ms ease, transform 900ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

h2 {
  position: sticky;
  top: 28px;
  align-self: start;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--dim);
}

h2::after { content: " —"; color: var(--faint); }

.content > p { max-width: 62ch; }

.whoami {
  color: var(--faint);
  font-size: 13px;
  letter-spacing: 0.05em;
  margin-bottom: 14px;
}

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

.bio strong {
  color: var(--fg);
  font-weight: 500;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 36px;
}

.stats div { display: flex; flex-direction: column; }

.stats dd {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.stats dt {
  font-size: 11px;
  color: var(--faint);
  letter-spacing: 0.08em;
  line-height: 1.5;
  margin-top: 4px;
}

.stack {
  margin-top: 36px;
  color: var(--dim);
  font-size: 13px;
  line-height: 2.1;
}

.stack .tok { transition: color 150ms; }

.stack .tok:hover {
  color: var(--fg);
  filter: url(#warp);
}

.entry { margin-bottom: 56px; }
.entry:last-child { margin-bottom: 0; }

.entry-head {
  display: flex;
  align-items: center;
  gap: 16px;
}

.entry-title {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.logo {
  height: 96px;
  width: auto;
  max-width: 220px;
  flex-shrink: 0;
  object-fit: contain;
  object-position: left center;
  image-rendering: pixelated;
  filter: grayscale(1);
}

.logo.glitching {
  filter: grayscale(1) url(#logo-glitch);
}

.entry-head:hover .logo { filter: grayscale(1); }

@media (prefers-reduced-motion: reduce) {
  .logo { filter: grayscale(1); }
}

h3 { font-size: 15px; font-weight: 700; }

.period {
  color: var(--faint);
  font-size: 12px;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.entry ul { list-style: none; margin-top: 16px; }

.entry li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 9px;
  color: #e0e0e0;
  font-size: 13.5px;
  font-weight: 400;
}

.entry li::before {
  content: ">";
  position: absolute;
  left: 0;
  color: var(--faint);
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 160px;
  padding-top: 20px;
  border-top: 1px solid var(--hairline);
  color: var(--faint);
  font-size: 12px;
  letter-spacing: 0.08em;
}

#brand {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
}

.hire-rain {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  overflow: hidden;
}

.hire-rain span {
  position: absolute;
  top: -30px;
  color: var(--fg);
  letter-spacing: 0.08em;
  animation: hire-fall linear forwards;
}

@keyframes hire-fall {
  to { transform: translateY(110vh); }
}

@media (max-width: 640px) {
  section { grid-template-columns: 1fr; margin-top: 88px; }
  h2 { position: static; }
  .links { gap: 8px 24px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  h1 { filter: none; }
  .links a:hover { filter: none; text-decoration: underline; }
  section.reveal { opacity: 1; transform: none; }
}
