:root {
  color-scheme: dark;
  --bg: #0b0b0c;
  --surface: #111113;
  --surface-hover: #17171a;
  --text: #f4f4f5;
  --muted: #a1a1aa;
  --line: #27272a;
  --accent: #d7ff52;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 85% 8%, rgb(215 255 82 / 8%), transparent 24rem),
    var(--bg);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

.page-shell {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 88px;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.wordmark-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 28px rgb(215 255 82 / 55%);
}

nav {
  display: flex;
  gap: 24px;
  color: var(--muted);
  font-size: 0.9rem;
}

nav a,
.project-link {
  transition: color 160ms ease;
}

nav a:hover,
nav a:focus-visible,
.project-card:hover .project-link {
  color: var(--accent);
}

.hero {
  display: grid;
  align-content: center;
  min-height: min(740px, calc(100svh - 88px));
  padding: 96px 0 112px;
}

.eyebrow {
  margin: 0 0 22px;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.16em;
}

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

h1 {
  max-width: 900px;
  margin-bottom: 28px;
  font-size: clamp(4rem, 10vw, 8.7rem);
  line-height: 0.9;
  letter-spacing: -0.072em;
}

.hero-copy {
  max-width: 680px;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  line-height: 1.55;
  letter-spacing: -0.02em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 650;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #11120c;
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: #52525b;
  background: #141416;
}

.projects {
  padding: 112px 0 124px;
  border-top: 1px solid var(--line);
}

.section-heading {
  margin-bottom: 44px;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: 0.96;
  letter-spacing: -0.055em;
}

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

.project-card {
  display: flex;
  min-height: 330px;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.project-card:hover,
.project-card:focus-visible {
  transform: translateY(-4px);
  border-color: #3f3f46;
  background: var(--surface-hover);
}

.project-index {
  margin-bottom: 52px;
  color: #71717a;
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.12em;
}

h3 {
  margin-bottom: 14px;
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  line-height: 1;
  letter-spacing: -0.045em;
}

.project-card p:not(.project-index) {
  max-width: 48ch;
  color: var(--muted);
  line-height: 1.6;
}

.project-link {
  color: #d4d4d8;
  font-size: 0.88rem;
  font-weight: 650;
}

.principle {
  padding: 124px 0;
  border-top: 1px solid var(--line);
  font-size: clamp(2.3rem, 6vw, 5.7rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.principle p,
.principle strong {
  display: block;
  margin: 0;
}

.principle p {
  color: var(--muted);
}

.principle strong {
  color: var(--accent);
  font-weight: 700;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 0 42px;
  border-top: 1px solid var(--line);
  color: #71717a;
  font-size: 0.78rem;
}

footer p {
  margin: 0;
}

@media (max-width: 760px) {
  .page-shell {
    width: min(calc(100% - 28px), var(--max));
  }

  .site-header {
    min-height: 72px;
  }

  nav {
    gap: 16px;
  }

  nav a:first-child {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 96px 0 88px;
  }

  h1 {
    font-size: clamp(3.7rem, 19vw, 6.2rem);
  }

  .projects {
    padding: 88px 0;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .project-card {
    min-height: 290px;
  }

  .principle {
    padding: 88px 0;
  }

  footer {
    flex-direction: column;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
