:root {
  --bg: #0b0d10;
  --surface: #12161b;
  --surface-2: #171c22;
  --text: #f4f3ef;
  --muted: #a8b0ba;
  --line: rgba(255,255,255,.10);
  --accent: #d6ff52;
  --accent-soft: rgba(214,255,82,.12);
  --radius: 22px;
  --shadow: 0 24px 80px rgba(0,0,0,.28);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 85% 10%, rgba(214,255,82,.07), transparent 26rem),
    linear-gradient(180deg, #0b0d10 0%, #0d1014 100%);
  color: var(--text);
  font-size: 17px;
  line-height: 1.65;
}

a { color: inherit; }
.shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.narrow { max-width: 780px; }
.center { text-align: center; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(11,13,16,.82);
  backdrop-filter: blur(18px);
}
.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -.03em;
}
.nav { display: flex; gap: 24px; }
.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: .94rem;
}
.nav a:hover { color: var(--text); }

.hero { padding: 96px 0 78px; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, .55fr);
  gap: 56px;
  align-items: end;
}
.eyebrow, .section-label, .card-kicker {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .76rem;
  font-weight: 800;
}
h1, h2, h3, p { margin-top: 0; }
h1 {
  max-width: 900px;
  margin-bottom: 24px;
  font-size: clamp(3.2rem, 8vw, 7.2rem);
  line-height: .92;
  letter-spacing: -.065em;
}
h2 {
  margin-bottom: 18px;
  font-size: clamp(2.2rem, 4.5vw, 4.6rem);
  line-height: 1;
  letter-spacing: -.05em;
}
h3 {
  margin-bottom: 12px;
  font-size: 1.25rem;
  line-height: 1.2;
  letter-spacing: -.025em;
}
.lede {
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
}
.button.primary { background: var(--accent); color: #10140a; }
.button.secondary { border: 1px solid var(--line); background: rgba(255,255,255,.03); }

.principle-card {
  padding: 32px;
  border: 1px solid rgba(214,255,82,.24);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(214,255,82,.10), rgba(255,255,255,.03));
  box-shadow: var(--shadow);
}
.principle-card p {
  margin-bottom: 0;
  font-size: 2rem;
  line-height: 1.05;
  letter-spacing: -.04em;
  font-weight: 800;
}

.section { padding: 88px 0; border-top: 1px solid var(--line); }
.intro p:last-child, .section-heading > p, .status-panel p, .closing p { color: var(--muted); }

.section-heading {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 470px);
  gap: 40px;
  align-items: end;
  margin-bottom: 36px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.project-card {
  min-height: 300px;
  display: flex;
  flex-direction: column;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.project-card.featured {
  background: linear-gradient(145deg, rgba(214,255,82,.10), var(--surface));
}
.project-card.wide { grid-column: 1 / -1; min-height: 250px; }
.project-card p { color: var(--muted); max-width: 720px; }
.project-number { margin-bottom: auto; color: var(--accent); font-weight: 800; font-size: .8rem; }
.meta-row {
  margin-top: auto;
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  border-top: 1px solid var(--line);
}
.status {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 750;
}
.status.active {
  color: var(--accent);
  border-color: rgba(214,255,82,.3);
  background: var(--accent-soft);
}
.link-placeholder { color: #737c87; font-size: .82rem; }
.project-link {
  color: var(--accent);
  font-size: .84rem;
  font-weight: 750;
  text-decoration: none;
}
.project-link:hover,
.project-link:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr auto 1fr;
  gap: 10px;
  align-items: center;
}
.flow-step {
  min-height: 150px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}
.flow-step span {
  display: block;
  margin-bottom: 34px;
  color: var(--accent);
  font-size: .8rem;
  font-weight: 800;
}
.flow-step strong { display: block; line-height: 1.2; }
.flow-line { width: 20px; height: 1px; background: var(--line); }

.principle-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.principle-grid article {
  padding: 26px;
  border-top: 1px solid rgba(214,255,82,.38);
  background: var(--surface);
}
.principle-grid p { color: var(--muted); margin-bottom: 0; }

.status-panel {
  display: grid;
  grid-template-columns: 1.4fr .6fr;
  gap: 48px;
  align-items: start;
  padding: 42px;
  border-radius: var(--radius);
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.build-note {
  padding: 24px;
  border-left: 1px solid var(--line);
}
.build-note p { margin-top: 16px; margin-bottom: 0; }

.site-footer { padding: 28px 0 44px; border-top: 1px solid var(--line); }
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
  font-size: .85rem;
}

@media (max-width: 900px) {
  .hero-grid, .section-heading, .status-panel { grid-template-columns: 1fr; }
  .principle-grid { grid-template-columns: 1fr 1fr; }
  .flow { grid-template-columns: 1fr; }
  .flow-line { width: 1px; height: 18px; margin-left: 28px; }
  .build-note { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .shell { width: min(100% - 28px, 1180px); }
  .site-header { position: static; }
  .header-inner { min-height: 64px; }
  .nav { display: none; }
  .hero { padding: 64px 0 56px; }
  h1 { font-size: clamp(3rem, 16vw, 4.8rem); }
  .section { padding: 64px 0; }
  .cards, .principle-grid { grid-template-columns: 1fr; }
  .project-card.wide { grid-column: auto; }
  .meta-row { align-items: flex-start; flex-direction: column; }
  .status-panel { padding: 28px; }
  .footer-inner { flex-direction: column; }
}

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