:root {
  color-scheme: dark;
  --ink: #0a0d10;
  --ink-2: #12171c;
  --paper: #f3f0e8;
  --muted: #a8ada7;
  --line: rgba(243, 240, 232, 0.18);
  --acid: #d7ff3f;
  --blue: #5f79ff;
  --mono: "DM Mono", monospace;
  --sans: "Manrope", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--ink); }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }
::selection { background: var(--acid); color: var(--ink); }
.progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 50; }
.progress span { display: block; width: 0; height: 100%; background: var(--acid); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 72px;
  padding: 0 3vw;
  border-bottom: 1px solid var(--line);
  background: rgba(10, 13, 16, 0.9);
  backdrop-filter: blur(14px);
}
.wordmark { font: 500 16px var(--mono); letter-spacing: -0.04em; }
.wordmark span { color: var(--acid); }
nav { display: flex; gap: 30px; font: 400 13px var(--mono); text-transform: uppercase; }
nav a, .header-contact { transition: color .2s ease; }
nav a:hover, .header-contact:hover { color: var(--acid); }
.header-contact { justify-self: end; font: 400 13px var(--mono); text-transform: uppercase; }
.header-contact span { color: var(--acid); margin-left: 6px; }

.hero {
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 48px 3vw 38px;
  background:
    linear-gradient(rgba(255,255,255,.038) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.038) 1px, transparent 1px);
  background-size: 5vw 5vw;
}
.hero-kicker, .eyebrow {
  margin: 0;
  font: 400 12px var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.hero-kicker { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--acid); box-shadow: 0 0 18px var(--acid); }
.hero h1 {
  align-self: center;
  max-width: 1500px;
  margin: 6vh 0;
  font-size: clamp(3.6rem, 9.5vw, 9.4rem);
  line-height: .88;
  letter-spacing: -.075em;
  font-weight: 600;
}
.hero h1 em { display: block; color: var(--acid); font-style: normal; }
.hero-bottom { display: grid; grid-template-columns: minmax(0, 700px) auto; align-items: end; justify-content: space-between; gap: 30px; }
.hero-bottom p { margin: 0; max-width: 650px; font-size: clamp(1.05rem, 1.6vw, 1.4rem); color: #c7cbc6; }
.text-link { display: flex; align-items: center; gap: 42px; border-bottom: 1px solid currentColor; padding: 0 0 8px; font: 400 13px var(--mono); text-transform: uppercase; }
.text-link span { color: var(--acid); }

.proof { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.proof article { min-height: 220px; padding: 32px 3vw; border-right: 1px solid var(--line); display: flex; flex-direction: column; justify-content: space-between; }
.proof article:last-child { border-right: 0; }
.proof strong { font-size: clamp(2.5rem, 5vw, 5.2rem); line-height: 1; letter-spacing: -.07em; font-weight: 500; }
.proof strong span { color: var(--acid); }
.proof p { max-width: 230px; margin: 30px 0 0; color: var(--muted); font-size: .9rem; }

.section-pad { padding: 120px 3vw; }
.section-head { display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 40px; margin-bottom: 64px; }
.eyebrow { color: var(--acid); margin-bottom: 18px; }
h2 { margin: 0; font-size: clamp(2.5rem, 5vw, 5rem); line-height: .98; letter-spacing: -.06em; font-weight: 500; }
.filters { justify-self: end; display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.filter { border: 1px solid var(--line); border-radius: 999px; padding: 9px 14px; background: transparent; color: var(--muted); cursor: pointer; font: 400 12px var(--mono); text-transform: uppercase; transition: .2s ease; }
.filter:hover { border-color: var(--paper); color: var(--paper); }
.filter.is-active { background: var(--acid); border-color: var(--acid); color: var(--ink); }

.frontier { background: var(--ink-2); }
.frontier-intro { color: #bac0bb; }
.frontier-pillars { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.frontier-pillars li { display: flex; flex-direction: column; min-height: 430px; padding: 30px 3vw 0 0; border-right: 1px solid var(--line); }
.frontier-pillars li + li { padding-left: 3vw; }
.frontier-pillars li:last-child { border-right: 0; }
.frontier-pillars > li > span { font: 400 12px var(--mono); color: var(--acid); }
.frontier-pillars h3 { max-width: 340px; margin: 68px 0 18px; font-size: clamp(1.5rem, 2.4vw, 2.2rem); line-height: 1.1; letter-spacing: -.04em; font-weight: 500; }
.frontier-pillars p { max-width: 410px; margin: 0; color: var(--muted); }
.frontier-pillars a { width: fit-content; margin-top: auto; padding: 28px 0 8px; border-bottom: 1px solid var(--line); color: var(--paper); font: 400 12px var(--mono); text-transform: uppercase; transition: color .2s, border-color .2s; }
.frontier-pillars a:hover { color: var(--acid); border-color: var(--acid); }
.frontier-pillars a span { margin-left: 18px; color: var(--acid); }

.project-list { border-top: 1px solid var(--line); }
.project { display: grid; grid-template-columns: 80px minmax(0, 1fr) minmax(240px, .58fr); gap: 3vw; padding: 44px 0; border-bottom: 1px solid var(--line); transition: opacity .25s, transform .25s; }
.project[hidden] { display: none; }
.project-index, .project-meta { font: 400 12px var(--mono); letter-spacing: .04em; text-transform: uppercase; }
.project-index { color: var(--acid); }
.project-meta { margin: 0 0 15px; color: var(--muted); }
.project h3 { max-width: 780px; margin: 0; font-size: clamp(1.8rem, 3.3vw, 3.2rem); line-height: 1.08; letter-spacing: -.045em; font-weight: 500; }
.project-summary { max-width: 760px; color: #b8bdb8; font-size: 1rem; }
.tags { display: flex; flex-wrap: wrap; gap: 7px; padding: 0; margin: 24px 0 0; list-style: none; }
.tags li { padding: 5px 9px; border: 1px solid var(--line); font: 300 11px var(--mono); color: #c4c7c3; text-transform: uppercase; }
.repo-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.repo-links a { padding: 8px 11px; border: 1px solid rgba(215,255,63,.42); color: var(--acid); font: 400 11px var(--mono); text-transform: uppercase; transition: background .2s, color .2s; }
.repo-links a:hover { background: var(--acid); color: var(--ink); }
.repo-links a span { margin-left: 8px; }
.project-outcome { align-self: end; padding: 26px; background: var(--ink-2); border-left: 3px solid var(--blue); }
.project-outcome strong, .project-outcome span, .project-outcome small { display: block; }
.project-outcome strong { font-size: 3.5rem; line-height: 1; letter-spacing: -.06em; color: var(--acid); }
.project-outcome span { margin-top: 5px; font: 400 12px var(--mono); text-transform: uppercase; }
.project-outcome small { margin-top: 30px; color: var(--muted); font-size: .78rem; }
.text-outcome strong { color: var(--paper); }
.system-diagram { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 7px 12px; padding: 24px; border: 1px solid var(--line); background: var(--ink-2); }
.system-diagram span { font: 400 11px var(--mono); }
.system-diagram i { position: relative; height: 1px; background: var(--blue); }
.system-diagram i::after { content: ""; position: absolute; right: 0; top: -3px; width: 7px; height: 7px; border-top: 1px solid var(--blue); border-right: 1px solid var(--blue); transform: rotate(45deg); }
.project-aside > p { margin: 18px 0 0; color: var(--muted); font-size: .84rem; }
.empty-state { padding: 60px 0; color: var(--muted); }

.approach { background: var(--paper); color: var(--ink); }
.section-head.light .eyebrow { color: #465ee4; }
.section-intro { max-width: 520px; justify-self: end; margin: 0; color: #4f5557; font-size: 1.08rem; }
.principles { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; padding: 0; list-style: none; border-top: 1px solid rgba(10,13,16,.25); }
.principles li { padding: 34px 3vw 12px 0; border-right: 1px solid rgba(10,13,16,.25); }
.principles li + li { padding-left: 3vw; }
.principles li:last-child { border-right: 0; }
.principles span { font: 400 12px var(--mono); color: #465ee4; }
.principles h3 { margin: 70px 0 18px; font-size: 1.5rem; letter-spacing: -.035em; }
.principles p { max-width: 370px; color: #4f5557; }

.about { display: grid; grid-template-columns: 1fr 1fr; gap: 8vw; }
.about-copy h2 { max-width: 670px; }
.about-detail { padding-top: 34px; }
.about-detail > p { max-width: 640px; margin: 0 0 25px; color: #bac0bb; font-size: 1.08rem; }
.timeline { margin-top: 70px; border-top: 1px solid var(--line); }
.timeline div { display: grid; grid-template-columns: 120px 1fr 1.2fr; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.timeline time, .timeline small { font: 400 11px var(--mono); color: var(--muted); text-transform: uppercase; }
.timeline span { font-weight: 600; }

.now-strip { margin: 0 3vw 120px; padding: 28px 30px; background: var(--blue); color: white; }
.now-strip .eyebrow { color: white; opacity: .72; }
.now-strip > div { display: grid; grid-template-columns: 1fr auto 1fr; gap: 30px; align-items: center; font-size: clamp(1rem, 1.8vw, 1.4rem); }
.now-strip > div > span:nth-child(2) { color: var(--acid); font-size: 2rem; }

footer { padding: 90px 3vw 28px; background: var(--acid); color: var(--ink); }
footer .eyebrow { color: var(--ink); opacity: .6; }
footer > a { display: flex; justify-content: space-between; align-items: baseline; font-size: clamp(3.5rem, 9.5vw, 9rem); line-height: .95; letter-spacing: -.075em; font-weight: 600; }
footer > a span { font: 300 5vw var(--sans); }
.footer-bottom { display: flex; justify-content: space-between; gap: 40px; margin-top: 90px; padding-top: 20px; border-top: 1px solid rgba(10,13,16,.25); font: 400 11px var(--mono); text-transform: uppercase; }

@media (max-width: 900px) {
  .site-header { grid-template-columns: 1fr 1fr; }
  nav { display: none; }
  .proof { grid-template-columns: 1fr 1fr; }
  .proof article:nth-child(2) { border-right: 0; }
  .proof article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .section-head, .about { grid-template-columns: 1fr; }
  .filters, .section-intro { justify-self: start; }
  .project { grid-template-columns: 54px 1fr; }
  .project-aside, .project-outcome { grid-column: 2; }
  .principles { grid-template-columns: 1fr; }
  .frontier-pillars { grid-template-columns: 1fr; }
  .frontier-pillars li, .frontier-pillars li + li { min-height: 0; padding: 28px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .frontier-pillars li:last-child { border-bottom: 0; }
  .frontier-pillars h3 { margin-top: 36px; }
  .frontier-pillars a { margin-top: 30px; }
  .principles li, .principles li + li { padding: 28px 0; border-right: 0; border-bottom: 1px solid rgba(10,13,16,.25); }
  .principles li:last-child { border-bottom: 0; }
  .principles h3 { margin-top: 36px; }
}

@media (max-width: 600px) {
  .site-header { min-height: 62px; padding-inline: 20px; }
  .hero { min-height: calc(100svh - 62px); padding: 32px 20px 28px; background-size: 64px 64px; }
  .hero h1 { font-size: clamp(3.2rem, 16.5vw, 5rem); line-height: .91; margin: 5vh 0; }
  .hero-bottom { grid-template-columns: 1fr; }
  .text-link { justify-self: start; }
  .proof { grid-template-columns: 1fr; }
  .proof article { min-height: 175px; border-right: 0; border-bottom: 1px solid var(--line); padding: 26px 20px; }
  .proof article:last-child { border-bottom: 0; }
  .section-pad { padding: 82px 20px; }
  .section-head { margin-bottom: 44px; }
  .filters { justify-content: flex-start; }
  .project { grid-template-columns: 1fr; gap: 14px; padding: 34px 0; }
  .project-aside, .project-outcome { grid-column: 1; margin-top: 12px; }
  .project h3 { font-size: 2rem; }
  .now-strip { margin: 0 20px 80px; padding: 24px; }
  .now-strip > div { grid-template-columns: 1fr; gap: 12px; }
  .now-strip > div > span:nth-child(2) { transform: rotate(90deg); justify-self: start; }
  .timeline div { grid-template-columns: 1fr 1fr; }
  .timeline small { grid-column: 2; }
  footer { padding: 70px 20px 24px; }
  footer > a { font-size: 3.6rem; }
  .footer-bottom { flex-direction: column; gap: 10px; margin-top: 70px; }
}

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