:root {
  color-scheme: light dark;
  --bg: #f7f5ef;
  --surface: #fffdf8;
  --surface-strong: #ffffff;
  --ink: #141414;
  --muted: #5d625f;
  --line: #d9d5c9;
  --line-strong: #b9b4a7;
  --green: #315f4b;
  --blue: #2c6178;
  --rust: #9a5b3f;
  --gold: #b28b48;
  --shadow: 0 18px 55px rgba(33, 31, 26, 0.09);
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #11130f;
    --surface: #171a16;
    --surface-strong: #1d211c;
    --ink: #f1efe7;
    --muted: #adb4ab;
    --line: #30352e;
    --line-strong: #4b5449;
    --green: #79b997;
    --blue: #83bdd0;
    --rust: #d08a65;
    --gold: #d8bd7a;
    --shadow: 0 18px 55px rgba(0, 0, 0, 0.24);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(49, 95, 75, 0.05) 1px, transparent 1px),
    linear-gradient(180deg, rgba(49, 95, 75, 0.04) 1px, transparent 1px),
    var(--bg);
  background-size: 44px 44px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 72px);
  border-bottom: 1px solid color-mix(in srgb, var(--line), transparent 35%);
  background: color-mix(in srgb, var(--bg), transparent 8%);
  backdrop-filter: blur(18px);
}

.wordmark,
nav {
  display: flex;
  align-items: center;
  gap: 14px;
}

.wordmark {
  font-weight: 750;
  text-decoration: none;
}

.mark {
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--green);
}

nav {
  gap: clamp(14px, 2vw, 28px);
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

nav a {
  text-decoration: none;
}

nav a:hover {
  color: var(--ink);
}

.section,
.footer {
  max-width: 1180px;
  margin: 0 auto;
  padding: 92px clamp(20px, 5vw, 72px);
}

.hero {
  display: grid;
  max-width: 1180px;
  min-height: calc(100vh - 74px);
  margin: 0 auto;
  grid-template-columns: minmax(0, 0.98fr) minmax(360px, 0.82fr);
  align-items: center;
  gap: clamp(36px, 6vw, 86px);
  padding: 58px clamp(20px, 5vw, 72px) 54px;
}

.hero-copy,
.hero-panel {
  min-width: 0;
}

.eyebrow,
.section-label,
.panel-kicker,
.card-index,
.role-meta,
.signal-stack {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow,
.section-label,
.panel-kicker,
.card-index {
  color: var(--green);
}

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

h1 {
  max-width: 920px;
  margin-bottom: 28px;
  font-size: clamp(46px, 5.8vw, 76px);
  line-height: 0.98;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.lead {
  max-width: 760px;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.55;
}

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

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  padding: 10px 16px;
  background: color-mix(in srgb, var(--surface), transparent 8%);
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

.button.primary {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--bg);
}

.hero-panel {
  position: relative;
  min-height: 500px;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 26% 22%, color-mix(in srgb, var(--green), transparent 72%), transparent 26%),
    linear-gradient(135deg, color-mix(in srgb, var(--surface-strong), transparent 4%), color-mix(in srgb, var(--surface), transparent 0%));
  box-shadow: var(--shadow);
}

.panel-grid {
  position: absolute;
  inset: 22px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 10px;
  opacity: 0.78;
}

.panel-grid span {
  border: 1px solid color-mix(in srgb, var(--line-strong), transparent 16%);
  background: color-mix(in srgb, var(--surface), transparent 32%);
}

.panel-grid span:nth-child(2),
.panel-grid span:nth-child(7),
.panel-grid span:nth-child(12) {
  background: color-mix(in srgb, var(--blue), transparent 76%);
}

.panel-grid span:nth-child(5),
.panel-grid span:nth-child(10) {
  background: color-mix(in srgb, var(--green), transparent 75%);
}

.panel-content {
  position: absolute;
  right: 24px;
  bottom: 24px;
  left: 24px;
  border: 1px solid var(--line-strong);
  padding: 22px;
  background: color-mix(in srgb, var(--surface-strong), transparent 4%);
}

.panel-content p:not(.panel-kicker) {
  margin-bottom: 18px;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.35;
}

.signal-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.signal-stack span {
  border: 1px solid var(--line);
  padding: 6px 8px;
  background: color-mix(in srgb, var(--bg), transparent 20%);
  color: var(--muted);
}

.stats {
  display: grid;
  max-width: 1180px;
  margin: -22px auto 0;
  padding: 0 clamp(20px, 5vw, 72px) 72px;
  grid-template-columns: repeat(4, 1fr);
}

.stats article {
  border-top: 1px solid var(--line-strong);
  padding: 22px 20px 0 0;
}

.stats strong {
  display: block;
  margin-bottom: 4px;
  font-size: clamp(26px, 3.6vw, 44px);
  line-height: 1;
}

.stats span {
  color: var(--muted);
  font-size: 14px;
}

.section {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: clamp(28px, 5vw, 70px);
  border-top: 1px solid var(--line);
}

.section-label {
  position: sticky;
  top: 96px;
  align-self: start;
}

.prose {
  max-width: 850px;
  font-size: clamp(19px, 2vw, 24px);
  line-height: 1.58;
}

.prose p {
  margin-bottom: 24px;
}

.timeline {
  display: grid;
  gap: 18px;
}

.role {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 28px;
  border: 1px solid var(--line);
  padding: 24px;
  background: color-mix(in srgb, var(--surface), transparent 12%);
}

.role.featured {
  border-color: color-mix(in srgb, var(--green), var(--line) 58%);
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--green), transparent 90%), transparent 46%),
    color-mix(in srgb, var(--surface-strong), transparent 8%);
}

.role-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--muted);
}

.role h2,
.footer h2,
.builds h2 {
  margin-bottom: 6px;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1;
}

.role-title {
  margin-bottom: 18px;
  color: var(--green);
  font-weight: 800;
}

ul {
  margin: 0;
  padding-left: 18px;
}

li {
  margin-bottom: 10px;
  color: var(--muted);
}

.role.compact p {
  margin-bottom: 0;
  color: var(--muted);
}

.cards,
.skill-grid,
.edu-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.card,
.skill-grid article,
.edu-list article {
  border: 1px solid var(--line);
  padding: 24px;
  background: color-mix(in srgb, var(--surface), transparent 10%);
}

.card h3,
.skill-grid h3,
.edu-list h3,
.build-card h3 {
  margin-bottom: 10px;
  font-size: 22px;
  line-height: 1.15;
}

.card p:last-child,
.skill-grid p,
.edu-list p,
.build-card p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.builds {
  border-top: 1px solid var(--line);
  padding: 104px clamp(20px, 5vw, 72px);
  background:
    linear-gradient(120deg, color-mix(in srgb, var(--green), transparent 90%), transparent 42%),
    linear-gradient(180deg, color-mix(in srgb, var(--surface), transparent 20%), transparent);
}

.builds-intro,
.build-grid {
  max-width: 1180px;
  margin: 0 auto;
}

.builds-intro {
  display: grid;
  grid-template-columns: minmax(240px, 0.62fr) minmax(0, 1fr);
  gap: 44px;
  margin-bottom: 34px;
}

.builds-intro h2 {
  font-size: clamp(42px, 6vw, 72px);
}

.builds-intro p:last-child {
  max-width: 720px;
  color: var(--muted);
  font-size: 20px;
}

.build-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 16px;
}

.build-card {
  display: grid;
  min-height: 410px;
  grid-template-rows: 1fr auto;
  gap: 26px;
  border: 1px solid var(--line-strong);
  padding: 26px;
  background: var(--surface-strong);
  box-shadow: var(--shadow);
}

.build-card.van {
  grid-row: span 2;
}

.build-visual {
  position: relative;
  min-height: 170px;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--line), transparent 30%) 1px, transparent 1px),
    linear-gradient(180deg, color-mix(in srgb, var(--line), transparent 30%) 1px, transparent 1px);
  background-size: 22px 22px;
}

.blueprint {
  min-height: 300px;
}

.scan-line {
  position: absolute;
  inset: 28px 36px auto;
  height: 2px;
  background: var(--blue);
  box-shadow: 0 52px 0 var(--blue), 0 104px 0 var(--blue), 0 156px 0 var(--blue);
  opacity: 0.5;
}

.van-body {
  position: absolute;
  right: 42px;
  bottom: 72px;
  left: 42px;
  height: 95px;
  border: 3px solid var(--green);
  border-top-left-radius: 54px;
  border-top-right-radius: 16px;
  background: color-mix(in srgb, var(--green), transparent 86%);
}

.wheel {
  position: absolute;
  bottom: 48px;
  width: 42px;
  height: 42px;
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: var(--surface);
}

.wheel.one {
  left: 25%;
}

.wheel.two {
  right: 22%;
}

.rack {
  display: grid;
  gap: 12px;
  padding: 22px;
}

.rack span {
  border: 1px solid var(--line-strong);
  background: linear-gradient(90deg, var(--green), var(--blue));
  opacity: 0.82;
}

.parts span {
  position: absolute;
  border: 2px solid var(--rust);
  background: color-mix(in srgb, var(--rust), transparent 88%);
}

.parts span:nth-child(1) {
  inset: 26px auto auto 28px;
  width: 96px;
  height: 96px;
}

.parts span:nth-child(2) {
  right: 32px;
  bottom: 26px;
  width: 116px;
  height: 68px;
  border-radius: 999px;
}

.parts span:nth-child(3) {
  top: 54px;
  right: 42%;
  width: 42px;
  height: 112px;
  transform: rotate(28deg);
}

.footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 390px);
  gap: 44px;
  border-top: 1px solid var(--line);
  padding-bottom: 58px;
}

.contact-list {
  display: grid;
  align-content: start;
  gap: 12px;
  color: var(--muted);
}

.contact-list a {
  color: var(--ink);
  font-weight: 800;
}

@media (max-width: 920px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero,
  .section,
  .builds-intro,
  .footer {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-panel {
    min-height: 360px;
  }

  .stats,
  .cards,
  .skill-grid,
  .edu-list,
  .build-grid {
    grid-template-columns: 1fr;
  }

  .section-label {
    position: static;
  }

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

  .role-meta {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .build-card.van {
    grid-row: auto;
  }
}

@media (max-width: 560px) {
  .site-header {
    padding: 14px 18px;
  }

  .section,
  .footer,
  .builds {
    padding-right: 18px;
    padding-left: 18px;
  }

  h1 {
    max-width: 11ch;
    font-size: 37px;
    line-height: 1.04;
  }

  .lead {
    max-width: 28ch;
    font-size: 18px;
  }

  .hero {
    width: 100%;
    max-width: 100%;
    grid-template-columns: minmax(0, 1fr);
    overflow: hidden;
  }

  .hero-panel {
    width: calc(100vw - 50px);
    max-width: 340px;
  }

  .panel-content {
    right: 16px;
    left: 16px;
    padding: 18px;
  }

  .panel-content p:not(.panel-kicker) {
    font-size: 18px;
  }

  .stats {
    padding-right: 18px;
    padding-left: 18px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .role,
  .card,
  .skill-grid article,
  .edu-list article,
  .build-card {
    padding: 20px;
  }
}
