:root {
  color-scheme: dark;
  --bg: #0d0e0c;
  --surface: #151713;
  --line: #2a2d27;
  --text: #f0f1eb;
  --muted: #9a9e92;
  --accent: #b7f34a;
  --font-sans: "Manrope", sans-serif;
  --font-mono: "DM Mono", monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}

.site-header {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(22px, 5vw, 76px);
  border-bottom: 1px solid var(--line);
}

.wordmark {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}

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

nav { display: flex; gap: 28px; }

nav a, footer a {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 13px;
  text-decoration: none;
  transition: color 140ms ease;
}

nav a:hover, footer a:hover { color: var(--text); }

main, footer {
  width: min(100% - 44px, 1380px);
  margin-inline: auto;
}

.intro {
  min-height: calc(100svh - 76px);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 100px 0 120px;
  border-bottom: 1px solid var(--line);
}

.availability {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 34px;
  color: var(--muted);
  font: 400 12px/1.5 var(--font-mono);
}

.availability span {
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
}

h1 {
  max-width: 1100px;
  margin: 0;
  font-size: clamp(54px, 9.4vw, 142px);
  font-weight: 500;
  line-height: .9;
  letter-spacing: -.065em;
}

.intro-copy {
  max-width: 590px;
  margin: 48px 0 28px;
  color: var(--muted);
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.65;
}

.text-link, .project-link {
  width: fit-content;
  color: var(--text);
  font: 400 13px/1.4 var(--font-mono);
  text-underline-offset: 5px;
  text-decoration-color: var(--muted);
}

.text-link span, .project-link span { color: var(--accent); }

.build-note {
  position: absolute;
  right: 0;
  bottom: 34px;
  display: flex;
  gap: 24px;
  color: #666a61;
  font: 300 10px/1 var(--font-mono);
}

.projects { padding: 120px 0 150px; }

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 30px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 50px);
  font-weight: 500;
  letter-spacing: -.04em;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  font: 300 11px/1 var(--font-mono);
}

.project {
  min-height: 420px;
  display: grid;
  grid-template-columns: 70px minmax(260px, 640px) 1fr;
  gap: clamp(20px, 5vw, 80px);
  align-items: center;
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line);
}

.project:last-child { border-bottom: 1px solid var(--line); }

.project-index {
  align-self: start;
  padding-top: 30px;
  color: var(--muted);
  font: 300 12px/1 var(--font-mono);
}

.project-body { z-index: 1; padding: 70px 0; }

.project-meta {
  display: flex;
  gap: 10px 26px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  color: var(--muted);
  font: 300 11px/1.4 var(--font-mono);
}

.project h3 {
  margin: 0 0 24px;
  font-size: clamp(44px, 7vw, 92px);
  font-weight: 500;
  letter-spacing: -.06em;
}

.project-body > p:not(.project-status) {
  max-width: 560px;
  margin: 0 0 30px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.project-icon {
  justify-self: end;
  width: clamp(140px, 15vw, 210px);
  height: auto;
  aspect-ratio: 1;
  display: block;
  object-fit: cover;
  border-radius: 22.5%;
}

footer {
  min-height: 150px;
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font: 300 12px/1.5 var(--font-mono);
}

footer p { margin: 0; }

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms ease, transform 700ms ease;
}

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

@media (max-width: 760px) {
  .site-header { height: 66px; }
  nav { gap: 18px; }
  nav a:first-child { display: none; }
  main, footer { width: min(100% - 36px, 1380px); }
  .intro { min-height: calc(100svh - 66px); padding: 80px 0 100px; }
  h1 { font-size: clamp(49px, 15vw, 82px); }
  .intro-copy { margin-top: 34px; }
  .build-note { display: none; }
  .projects { padding: 84px 0 100px; }
  .project { min-height: 560px; grid-template-columns: 34px 1fr; gap: 8px; align-items: start; }
  .project-body { padding: 54px 0 210px; }
  .project-icon { width: 112px; position: absolute; right: 10px; bottom: 28px; }
  footer { min-height: 180px; grid-template-columns: 1fr auto; }
  footer p:nth-child(2) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
