:root {
  --ink: #0f172a;
  --muted: #526273;
  --paper: #f3f7f6;
  --white: #ffffff;
  --line: #cbd8d5;
  --blue: #0369a1;
  --blue-dark: #07577f;
  --teal: #0f766e;
  --teal-soft: #dff1ed;
  --amber: #a15c13;
  --mono: "IBM Plex Mono", "Cascadia Code", monospace;
  --sans: "Figtree", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 20; padding: .65rem 1rem; color: var(--white); background: var(--ink); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }

.site-header {
  width: min(1180px, calc(100% - 48px));
  height: 88px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.wordmark { display: block; width: 176px; height: 46px; overflow: hidden; }
.wordmark img { width: 184px; height: auto; margin-top: 0; }
nav { display: flex; align-items: center; gap: 2rem; font-size: .9rem; font-weight: 600; }
nav a { text-decoration: none; }
nav a:not(.nav-cta):hover { color: var(--blue); }
.nav-cta { padding: .65rem .95rem; color: var(--white); background: var(--ink); border: 1px solid var(--ink); }
.nav-cta:hover { background: var(--blue-dark); border-color: var(--blue-dark); }

main, footer { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.hero { min-height: 700px; padding: 92px 0 104px; display: grid; grid-template-columns: 1.08fr .92fr; gap: 78px; align-items: center; }
.eyebrow, .section-label { margin: 0 0 1.5rem; color: var(--blue-dark); font-family: var(--mono); font-size: .72rem; font-weight: 500; letter-spacing: .09em; text-transform: uppercase; }
.eyebrow { display: flex; align-items: center; gap: .65rem; }
.eyebrow span { width: 24px; height: 2px; background: var(--teal); }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 1.6rem; max-width: 690px; font-size: clamp(3.4rem, 6vw, 5.75rem); font-weight: 600; line-height: .98; letter-spacing: -.055em; }
h1 em { color: var(--blue); font-style: normal; }
.hero-lede { max-width: 650px; margin-bottom: 2rem; color: var(--muted); font-size: 1.18rem; line-height: 1.7; }
.hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; }
.button { min-height: 48px; padding: .75rem 1.05rem; display: inline-flex; align-items: center; gap: .75rem; border: 1px solid var(--ink); font-size: .92rem; font-weight: 650; text-decoration: none; transition: transform 160ms ease, background 160ms ease, color 160ms ease; }
.button:hover { transform: translateY(-2px); }
.button.primary { color: var(--white); background: var(--ink); }
.button.primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
.button.secondary { background: transparent; }
.button.secondary:hover { color: var(--blue-dark); background: var(--white); }
.trust-note { margin: 1.5rem 0 0; color: var(--muted); font-size: .78rem; }
.trust-note span { margin-right: .4rem; color: var(--teal); }

.trace-card { position: relative; background: var(--white); border: 1px solid #bccbc8; box-shadow: 20px 24px 0 rgba(15,118,110,.08); }
.trace-card::before { content: ""; position: absolute; z-index: -1; inset: -26px 34px 40px -28px; border: 1px solid rgba(3,105,161,.23); }
.trace-card-head, .trace-footer { padding: .85rem 1rem; display: flex; justify-content: space-between; gap: 1rem; font-family: var(--mono); font-size: .67rem; letter-spacing: .05em; text-transform: uppercase; }
.trace-card-head { border-bottom: 1px solid var(--line); }
.status { color: var(--teal); }
.status i { display: inline-block; width: 7px; height: 7px; margin-right: .35rem; border-radius: 50%; background: var(--teal); }
.trace-list { margin: 0; padding: 0; list-style: none; }
.trace-list li { position: relative; min-height: 88px; padding: 1rem; display: grid; grid-template-columns: 36px 1fr auto; gap: .8rem; align-items: center; border-bottom: 1px solid #e0e8e6; }
.trace-list li:not(:last-child)::after { content: ""; position: absolute; top: 56px; bottom: -33px; left: 32px; width: 2px; z-index: 2; background: var(--line); }
.trace-list li.complete:not(:last-child)::after { background: var(--teal); }
.node { width: 34px; height: 34px; z-index: 3; display: grid; place-items: center; color: var(--muted); background: var(--white); border: 2px solid var(--line); border-radius: 50%; font-family: var(--mono); font-size: .6rem; }
.complete .node { color: var(--white); background: var(--teal); border-color: var(--teal); }
.active .node { color: var(--white); background: var(--blue); border-color: var(--blue); box-shadow: 0 0 0 5px #e1eff6; }
.trace-list small, .trace-list strong, .trace-list p { display: block; }
.trace-list small { color: var(--muted); font-family: var(--mono); font-size: .61rem; letter-spacing: .05em; text-transform: uppercase; }
.trace-list strong { margin: .1rem 0; font-size: .88rem; }
.trace-list p { margin: 0; color: var(--muted); font-size: .72rem; line-height: 1.35; }
.state { padding: .2rem .4rem; color: var(--teal); background: var(--teal-soft); font-family: var(--mono); font-size: .56rem; text-transform: uppercase; }
.state.muted { color: var(--muted); background: #eef2f1; }
.trace-footer { background: #f7faf9; }
.trace-footer strong { color: var(--teal); font-weight: 500; }

.thesis { padding: 92px 0 62px; display: grid; grid-template-columns: 1fr .75fr; gap: 100px; border-top: 1px solid var(--line); }
h2 { max-width: 770px; margin-bottom: 0; font-size: clamp(2.2rem, 4vw, 3.7rem); line-height: 1.08; letter-spacing: -.045em; font-weight: 600; }
.thesis > p, .workflow-intro > p:last-child { align-self: end; color: var(--muted); font-size: 1.08rem; }
.capabilities { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); background: var(--white); }
.capabilities article { min-height: 370px; padding: 2.1rem; }
.capabilities article + article { border-left: 1px solid var(--line); }
.capability-mark { width: 34px; height: 34px; margin-bottom: 4.5rem; display: grid; place-items: center; border: 1px solid var(--teal); border-radius: 50%; color: var(--teal); font-family: var(--mono); font-size: .7rem; }
.capabilities h3 { margin-bottom: .7rem; font-size: 1.28rem; }
.capabilities p { color: var(--muted); }
.capabilities ul { margin: 1.4rem 0 0; padding: 1.1rem 0 0; border-top: 1px solid #e1e8e6; list-style: none; color: var(--ink); font-size: .8rem; }
.capabilities li { margin: .4rem 0; }
.capabilities li::before { content: "•"; margin-right: .5rem; color: var(--teal); }

.workflow { padding: 130px 0 120px; }
.workflow-intro { display: grid; grid-template-columns: 1.1fr .6fr; column-gap: 100px; }
.workflow-intro .section-label { grid-column: 1 / -1; }
.workflow-track { position: relative; margin: 80px 0 0; padding: 0; display: grid; grid-template-columns: repeat(8, 1fr); list-style: none; }
.workflow-track::before { content: ""; position: absolute; top: 14px; left: 16px; right: 16px; height: 2px; background: linear-gradient(90deg, var(--teal), var(--blue)); }
.workflow-track li { position: relative; padding-right: .65rem; }
.workflow-track li::before { content: ""; width: 10px; height: 10px; margin: 10px 0 22px; display: block; position: relative; z-index: 2; border: 4px solid var(--paper); border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 1px var(--teal); }
.workflow-track li:nth-child(n+5)::before { background: var(--blue); box-shadow: 0 0 0 1px var(--blue); }
.workflow-track span, .workflow-track strong, .workflow-track small { display: block; }
.workflow-track span { margin-bottom: .25rem; color: var(--muted); font-family: var(--mono); font-size: .62rem; }
.workflow-track strong { font-size: .8rem; }
.workflow-track small { color: var(--muted); font-size: .67rem; line-height: 1.35; }

.principles { margin-bottom: 120px; padding: 80px; display: grid; grid-template-columns: .8fr 1.2fr; gap: 100px; color: var(--white); background: var(--ink); }
.principles .section-label { color: #77c1df; }
.principles h2 { max-width: 400px; }
.principle-list article { padding: 1.5rem 0; display: grid; grid-template-columns: 42px 1fr; gap: 1rem; border-bottom: 1px solid #334155; }
.principle-list article:first-child { padding-top: 0; }
.principle-list span { color: #77c1df; font-family: var(--mono); font-size: .65rem; }
.principle-list h3 { margin-bottom: .25rem; font-size: 1rem; }
.principle-list p { margin: 0; color: #aebdca; font-size: .86rem; }

.closing { position: relative; padding: 110px 0 120px 39%; overflow: hidden; border-top: 1px solid var(--line); }
.closing h2 { margin-bottom: 1rem; }
.closing p:not(.section-label) { max-width: 580px; color: var(--muted); }
.closing-thread { position: absolute; left: 5%; top: 48%; width: 27%; height: 2px; background: var(--teal); }
.closing-thread::before, .closing-thread::after { content: ""; position: absolute; top: -5px; width: 12px; height: 12px; border-radius: 50%; background: var(--teal); }
.closing-thread::before { left: 0; }
.closing-thread::after { right: 0; background: var(--blue); }

footer { min-height: 120px; padding: 2rem 0; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 2rem; align-items: center; border-top: 1px solid var(--line); color: var(--muted); font-size: .75rem; }
.footer-brand { color: var(--ink); font-size: 1.25rem; font-weight: 650; text-decoration: none; }
.footer-brand span { color: var(--blue); }
footer p { margin: 0; text-align: center; }
footer div { display: flex; justify-content: flex-end; gap: 1.25rem; }

@media (max-width: 900px) {
  .hero { padding-top: 64px; grid-template-columns: 1fr; }
  .hero-copy { max-width: 720px; }
  .trace-card { max-width: 600px; }
  .thesis, .workflow-intro, .principles { grid-template-columns: 1fr; gap: 40px; }
  .capabilities { grid-template-columns: 1fr; }
  .capabilities article { min-height: 0; }
  .capabilities article + article { border-left: 0; border-top: 1px solid var(--line); }
  .capability-mark { margin-bottom: 2rem; }
  .workflow-track { grid-template-columns: repeat(4, 1fr); row-gap: 2.5rem; }
  .workflow-track::before { display: none; }
  .principles { padding: 56px 44px; }
}

@media (max-width: 620px) {
  .site-header, main, footer { width: min(100% - 30px, 1180px); }
  .site-header { height: 72px; }
  .wordmark { width: 142px; }
  .wordmark img { width: 150px; }
  nav > a:not(.nav-cta) { display: none; }
  .nav-cta { padding: .55rem .7rem; font-size: .76rem; }
  .hero { min-height: 0; padding: 56px 0 84px; gap: 58px; }
  h1 { font-size: clamp(3rem, 15vw, 4.35rem); }
  .hero-lede { font-size: 1rem; }
  .button { width: 100%; justify-content: space-between; }
  .trace-card { box-shadow: 10px 12px 0 rgba(15,118,110,.08); }
  .trace-card::before { display: none; }
  .trace-list li { grid-template-columns: 34px 1fr; }
  .trace-list .state { display: none; }
  .thesis { padding-top: 72px; }
  .workflow { padding: 90px 0; }
  .workflow-track { grid-template-columns: repeat(2, 1fr); }
  .principles { margin-inline: -15px; margin-bottom: 80px; padding: 52px 28px; }
  .closing { padding: 80px 0; }
  .closing-thread { display: none; }
  footer { grid-template-columns: 1fr; text-align: left; }
  footer p { text-align: left; }
  footer div { justify-content: flex-start; }
}

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