:root {
  --paper: #F5F1E8;
  --paper-2: #ECE6D8;
  --ink: #13222B;
  --ink-soft: #44535C;
  --deep: #0F2A33;
  --deep-2: #17383F;
  --copper: #A04A12;
  --copper-bright: #E39154;
  --line: rgba(19, 34, 43, 0.16);
  --line-dark: rgba(245, 241, 232, 0.18);

  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --wrap: 1120px;
  --gutter: clamp(20px, 5vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }
a { color: inherit; }
svg { display: block; width: 100%; height: auto; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip {
  position: absolute; left: 12px; top: -60px;
  background: var(--ink); color: var(--paper);
  padding: 10px 14px; border-radius: 4px; z-index: 100;
  text-decoration: none; font-size: 15px;
}
.skip:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--copper); outline-offset: 3px; border-radius: 2px; }

/* ---------- type ---------- */

.eyebrow {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 18px;
}

h1, h2 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.012em;
  text-wrap: balance;
}

h1 { font-size: clamp(42px, 6.3vw, 76px); line-height: 1.02; }
h1 em { font-style: italic; color: var(--copper); }
h2 { font-size: clamp(32px, 4.2vw, 50px); line-height: 1.08; }

h3 { font-size: 19px; font-weight: 600; line-height: 1.3; letter-spacing: -0.005em; }

.lede {
  font-size: clamp(18px, 1.6vw, 20.5px);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 34em;
  margin-top: 26px;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--ink); color: var(--paper);
  font-weight: 500; font-size: 16px; line-height: 1;
  padding: 17px 26px;
  border-radius: 999px;
  text-decoration: none;
  transition: background-color .18s ease, transform .18s ease;
}
.btn:hover { background: var(--copper); }
.btn:active { transform: translateY(1px); }
.btn-small { padding: 12px 18px; font-size: 14.5px; }

.link-arrow {
  font-weight: 500; font-size: 16px;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 3px;
  transition: border-color .18s ease, color .18s ease;
}
.link-arrow::after { content: " \2193"; color: var(--copper); }
.link-arrow:hover { border-color: var(--copper); color: var(--copper); }

.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; margin-top: 36px; }

/* ---------- header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; gap: 32px; height: 68px; }

.wordmark {
  font-family: var(--serif);
  font-size: 30px; line-height: 1;
  text-decoration: none;
  letter-spacing: -0.01em;
  margin-right: auto;
}
.wordmark-kd { color: var(--copper); font-style: italic; }

.nav { display: flex; gap: 30px; }
.nav a {
  font-size: 15px; text-decoration: none; color: var(--ink-soft);
  transition: color .15s ease;
}
.nav a:hover { color: var(--ink); }

/* ---------- hero ---------- */

.hero { padding: clamp(48px, 8vw, 96px) 0 0; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.9fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}

.hero-art {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: clamp(18px, 2.6vw, 30px);
}

.wire path { fill: none; stroke: var(--ink); stroke-opacity: .32; stroke-width: 1.25; }
.signal path {
  fill: none; stroke: var(--copper); stroke-width: 2.25; stroke-linecap: round;
  stroke-dasharray: 10 14;
  animation: flow 1.6s linear infinite;
}
@keyframes flow { to { stroke-dashoffset: -24; } }

.node-ring { fill: none; stroke: var(--copper); stroke-width: 1.5; }
.node-dot { fill: var(--copper); }
.box { fill: var(--paper); stroke: var(--ink); stroke-opacity: .32; stroke-width: 1.25; }
.box-strong { fill: var(--ink); stroke: var(--ink); stroke-opacity: 1; }
.box-live { stroke: var(--copper); stroke-opacity: 1; stroke-width: 1.75; }
.box-report { fill: var(--paper); }
.t-box { font-family: var(--sans); font-size: 13.5px; font-weight: 500; fill: var(--ink); }
.t-strong { fill: var(--paper); font-size: 14.5px; }
.t-label { font-family: var(--mono); font-size: 10.5px; letter-spacing: .09em; fill: var(--ink-soft); }
.agents circle { fill: var(--paper); stroke: var(--ink); stroke-opacity: .4; stroke-width: 1.25; }
.agents circle.on { fill: var(--copper); stroke: var(--copper); stroke-opacity: 1; }
.bars rect { fill: var(--ink); fill-opacity: .82; }
.bars-ab rect { fill: var(--copper); }
.axis { stroke: var(--ink); stroke-opacity: .4; stroke-width: 1; }

/* ---------- stats ---------- */

.stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(48px, 7vw, 88px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stats > div { padding: 28px 24px 30px; border-left: 1px solid var(--line); }
.stats > div:first-child { border-left: 0; padding-left: 0; }
.stats dt { font-family: var(--serif); font-size: clamp(34px, 3.6vw, 46px); line-height: 1; letter-spacing: -0.01em; }
.stats dd { margin-top: 10px; font-size: 14.5px; line-height: 1.4; color: var(--ink-soft); max-width: 16em; }

/* ---------- sections ---------- */

.section { padding: clamp(72px, 10vw, 128px) 0; }
.section-head { max-width: 46em; margin-bottom: clamp(36px, 5vw, 60px); }
.section-intro { margin-top: 20px; font-size: 18.5px; color: var(--ink-soft); max-width: 36em; }

/* services */

.services {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.services li {
  padding: 30px 28px 36px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background-color .2s ease;
}
.services li:hover { background: var(--paper-2); }
.num {
  display: block;
  font-family: var(--mono); font-size: 12.5px; letter-spacing: .08em;
  color: var(--copper);
  margin-bottom: 34px;
}
.services h3 { margin-bottom: 10px; }
.services p, .steps p { font-size: 15.5px; line-height: 1.58; color: var(--ink-soft); }

/* dark / experience */

.section-dark { background: var(--deep); color: var(--paper); }
.section-dark .eyebrow { color: var(--copper-bright); }

.timeline { border-top: 1px solid var(--line-dark); }
.timeline li {
  display: grid; grid-template-columns: 190px minmax(0, 1fr);
  gap: 24px;
  padding: 32px 0 34px;
  border-bottom: 1px solid var(--line-dark);
}
.when { font-family: var(--mono); font-size: 13.5px; letter-spacing: .05em; color: var(--copper-bright); padding-top: 9px; }
.timeline h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 2.8vw, 34px); line-height: 1.12; letter-spacing: -0.008em; }
.role { margin-top: 8px; font-size: 15.5px; font-weight: 500; color: rgba(245, 241, 232, .92); }
.role + p { margin-top: 12px; font-size: 15.5px; line-height: 1.6; color: rgba(245, 241, 232, .72); max-width: 46em; }

.platforms { margin-top: clamp(48px, 6vw, 72px); }
.platforms ul { display: flex; flex-wrap: wrap; gap: 10px; }
.platforms li {
  font-family: var(--mono); font-size: 13px; letter-spacing: .02em;
  padding: 9px 14px;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  color: rgba(245, 241, 232, .88);
}

/* approach */

.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--ink); }
.steps li { padding: 26px 28px 0 0; position: relative; }
.steps li::before {
  content: ""; position: absolute; top: -5px; left: 0;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--copper);
}
.steps .num { margin-bottom: 18px; }
.steps h3 { font-family: var(--serif); font-weight: 400; font-size: 28px; line-height: 1.1; margin-bottom: 10px; }

/* about */

.section-tint { background: var(--paper-2); }
.about-grid {
  display: grid; grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}
.monogram {
  aspect-ratio: 4 / 5;
  background: var(--deep);
  border-radius: 10px;
  display: grid; place-items: center;
  position: relative; overflow: hidden;
}
.monogram::before, .monogram::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1px;
  background: var(--copper-bright); opacity: .55;
}
.monogram::before { top: 30px; }
.monogram::after { bottom: 30px; }
.monogram span {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(110px, 15vw, 190px); line-height: 1;
  color: var(--paper);
  letter-spacing: -0.03em;
}
.about-copy h2 { margin-bottom: 26px; }
.about-copy p:not(.eyebrow) { color: var(--ink-soft); max-width: 38em; }
.about-copy p + p { margin-top: 16px; }

/* contact */

.contact-inner { max-width: 820px; }
.contact h2 { font-size: clamp(36px, 5vw, 60px); }

/* footer */

.site-footer { border-top: 1px solid var(--line); padding: 30px 0 36px; }
.footer-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 32px; font-size: 14px; color: var(--ink-soft); }
.footer-row .wordmark { font-size: 24px; margin-right: 0; color: var(--ink); }
.footer-row p:last-child { margin-left: auto; }

/* ---------- responsive ---------- */

@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 520px; }
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 44px; border-top: 0; }
  .steps li { border-top: 1px solid var(--ink); }
  .about-grid { grid-template-columns: 1fr; }
  .monogram { aspect-ratio: 16 / 9; max-width: 520px; }
}

@media (max-width: 720px) {
  body { font-size: 16.5px; }
  .nav { display: none; }
  .header-row { height: 62px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats > div { padding: 22px 16px 24px; }
  .stats > div:nth-child(odd) { border-left: 0; padding-left: 0; }
  .stats > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .timeline li { grid-template-columns: 1fr; gap: 6px; padding: 26px 0 28px; }
  .when { padding-top: 0; }
  .footer-row p:last-child { margin-left: 0; }
}

@media (max-width: 540px) {
  .services { grid-template-columns: 1fr; }
  .services li { padding: 24px 22px 28px; }
  .num { margin-bottom: 20px; }
  .steps { grid-template-columns: 1fr; row-gap: 32px; }
  .hero-actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .signal path { animation: none; }
  .btn, .link-arrow, .services li { transition: none; }
}
