:root {
  --ground: #F4F6F5;
  --surface: #FFFFFF;
  --ink: #12212A;
  --body: #2C3B44;
  --muted: #475761;
  --teal: #0E6B70;
  --gold: #E3A92B;
  --gold-soft: #FBEFD2;
  --line: #D5DDDA;
  --chip: #E3E9E7;
  --display: "Space Grotesk", system-ui, sans-serif;
  --text: "IBM Plex Sans", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 17px/1.6 var(--text);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--display); margin: 0; }
p { margin: 0; }
a { color: var(--teal); }
a:hover { color: #0A4F53; }
a:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 50; }

.wrap { max-width: 1200px; margin: 0 auto; padding-inline: 24px; }
.muted { color: var(--muted); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 24px; border-radius: 999px;
  font-weight: 600; text-decoration: none;
  transition: background-color .2s, color .2s;
}
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #26404E; color: #fff; }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: #F0BB45; color: var(--ink); }
.btn-outline { border: 1.5px solid var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-lg { min-height: 52px; }

/* Nav */
.nav {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 16px; padding-top: 24px;
}
.brand { font-family: var(--display); font-weight: 700; font-size: 20px; color: var(--ink); text-decoration: none; }
.nav nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.nav nav a:not(.btn) {
  color: var(--ink); text-decoration: none; padding: 10px 14px; min-height: 44px;
  display: inline-flex; align-items: center; border-radius: 999px;
}
.nav nav a:not(.btn):hover { background: var(--chip); }
.nav .btn { min-height: 44px; padding: 10px 18px; font-weight: 500; }

/* Hero */
.hero {
  display: flex; flex-wrap: wrap; gap: 56px; align-items: center;
  padding-top: 72px; padding-bottom: 56px;
}
.hero-copy { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hero h1 {
  font-weight: 700; font-size: clamp(40px, 5.4vw, 72px);
  line-height: 1.02; letter-spacing: -0.03em; max-width: 14ch;
}
.lede { font-size: 19px; color: var(--body); max-width: 56ch; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 8px; }

.portrait {
  flex: 1 1 300px; max-width: 400px; margin: 0 auto;
  background: var(--ink); border-radius: 28px; padding: 14px;
}
.portrait img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 18px; }
.portrait figcaption {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  padding: 14px 8px 4px; color: #DDE5E3; font-size: 15px;
}

/* Workflow */
.flow-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 24px;
  padding: 32px; display: flex; flex-direction: column; gap: 24px; margin-bottom: 88px;
}
.flow { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: stretch; gap: 12px; }
.step { flex: 1 1 200px; border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.step-label { font-size: 14px; }
.step-title { font-family: var(--display); font-weight: 600; font-size: 21px; line-height: 1.25; }
.step-light { background: var(--ground); }
.step-light .step-label { color: var(--muted); }
.step-dark { background: var(--ink); color: #fff; }
.step-dark .step-label { color: #B9C7C4; }
.step-gold { background: var(--gold-soft); }
.step-gold .step-label { color: #6B4A00; }
.arrow { display: flex; align-items: center; justify-content: center; padding: 0 4px; }
.arrow svg { width: 32px; height: 32px; fill: none; stroke: var(--teal); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 720px) {
  .arrow { flex-basis: 100%; }
  .arrow svg { transform: rotate(90deg); }
}

/* Sections */
.section { padding-bottom: 96px; display: flex; flex-direction: column; gap: 40px; }
.section-tight { gap: 32px; }
.section h2 {
  font-weight: 700; font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1.1; letter-spacing: -0.02em; max-width: 22ch;
}
#builds { padding-top: 96px; }

.pillars { display: flex; flex-wrap: wrap; gap: 40px; }
.pillar {
  flex: 1 1 300px; display: flex; flex-direction: column; gap: 14px;
  border-top: 3px solid var(--rule); padding-top: 20px;
}
.pillar h3 { font-weight: 600; font-size: 24px; }
.pillar p { color: var(--body); }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { font-size: 14px; padding: 4px 12px; border-radius: 999px; background: var(--chip); }

/* Proof band */
.proof { background: var(--ink); color: #fff; }
.proof-inner {
  display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-end;
  padding-top: 80px; padding-bottom: 80px;
}
.proof-main { flex: 999 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.big {
  font-family: var(--display); font-weight: 700; font-size: clamp(56px, 9vw, 128px);
  line-height: .95; letter-spacing: -0.04em; color: var(--gold);
}
.proof-text { font-size: 19px; color: #DDE5E3; max-width: 52ch; }
.proof-side { flex: 1 1 280px; display: flex; flex-direction: column; gap: 24px; }
.proof-side > div { border-top: 1px solid #3A4C56; padding-top: 16px; }
.stat { font-family: var(--display); font-weight: 600; font-size: 28px; }
.on-dark-muted { color: #B9C7C4; }

/* Builds */
.builds { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 20px; }
.builds article {
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px;
  padding: 28px; display: flex; flex-direction: column; gap: 10px;
}
.builds h3 { font-weight: 600; font-size: 22px; }
.builds p { color: var(--body); }
.builds .meta { color: var(--muted); font-size: 15px; margin-top: auto; }

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li {
  display: flex; flex-wrap: wrap; gap: 8px 32px;
  padding: 22px 0; border-top: 1px solid #C9D3D0;
}
.timeline li:last-child { border-bottom: 1px solid #C9D3D0; }
.when { flex: 0 0 200px; color: var(--muted); }
.timeline li > div { flex: 1 1 420px; min-width: 0; }
.role { font-weight: 600; }

/* Contact */
.contact { background: var(--gold); color: var(--ink); }
.contact-inner {
  display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-end; justify-content: space-between;
  padding-top: 88px; padding-bottom: 88px;
}
.contact-copy { flex: 999 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.contact h2 {
  font-weight: 700; font-size: clamp(32px, 4.4vw, 60px);
  line-height: 1.05; letter-spacing: -0.03em; max-width: 18ch;
}
.contact-copy p { font-size: 19px; max-width: 50ch; }
.contact-actions { flex: 1 1 280px; display: flex; flex-direction: column; gap: 12px; }
.contact-actions p { text-align: center; margin-top: 4px; }
.contact .btn-outline:hover { background: var(--ink); color: var(--gold); }
