:root {
  --ink: #16181d;
  --muted: #5b6472;
  --soft: #8c95a3;
  --paper: #ffffff;
  --canvas: #f7f8fa;
  --stroke: #e3e6eb;
  --accent: #1f5fd8;
  --accent-ink: #ffffff;
  --radius: 12px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e8eaef;
    --muted: #a2abba;
    --soft: #6f7889;
    --paper: #14161b;
    --canvas: #0e1014;
    --stroke: #262a33;
    --accent: #5b91f5;
    --accent-ink: #0e1014;
  }
}

*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: var(--accent); }

/* keyboard focus — visible on every interactive element */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

/* skip to content */
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  background: var(--accent); color: var(--accent-ink);
  padding: 10px 16px; border-radius: var(--radius);
  font-size: 14px; font-weight: 650; text-decoration: none;
  transition: top .15s ease;
}
.skip:focus { top: 12px; }

.container { max-width: 940px; margin: 0 auto; padding: 0 24px; }

/* header */
header.site { border-bottom: 1px solid var(--stroke); background: var(--paper); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 68px; }
.brand {
  font-weight: 700; font-size: 16.5px; letter-spacing: -0.01em;
  color: var(--ink); text-decoration: none; white-space: nowrap;
}
header nav { display: flex; gap: 22px; }
header nav a { color: var(--muted); text-decoration: none; font-size: 14.5px; font-weight: 500; }
header nav a:hover { color: var(--ink); }
header nav a[aria-current="page"] { color: var(--ink); font-weight: 650; }

/* hero */
.hero { background: var(--canvas); border-bottom: 1px solid var(--stroke); padding: 76px 0 68px; }
.eyebrow {
  margin: 0 0 14px; font-size: 12px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--soft);
}
.hero h1 {
  margin: 0; font-size: clamp(28px, 5vw, 42px); line-height: 1.15;
  letter-spacing: -0.025em; font-weight: 800; max-width: 30ch;
}
.lede { margin: 18px 0 0; font-size: clamp(16px, 2vw, 18.5px); color: var(--muted); max-width: 60ch; }

.cta {
  display: inline-block; margin-top: 26px; background: var(--accent); color: var(--accent-ink);
  text-decoration: none; font-weight: 650; font-size: 15px;
  padding: 12px 22px; border-radius: var(--radius);
}
.cta:hover { filter: brightness(1.08); }

/* blocks */
.block { padding-top: 62px; padding-bottom: 62px; }
/* Full-bleed tinted band without touching the container's own layout.
   The old approach zeroed this element's padding and re-applied it to every
   child, which silently overrode .cta's padding and broke the buttons. */
.block.alt {
  background: var(--canvas);
  box-shadow: 0 0 0 100vmax var(--canvas);
  clip-path: inset(0 -100vmax);
}
.block h2 {
  margin: 0 0 18px; font-size: 13px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--soft);
}
.block p { margin: 0 0 16px; max-width: 68ch; color: var(--muted); font-size: 16px; }
.block h3 { margin: 0 0 7px; font-size: 16.5px; font-weight: 700; color: var(--ink); letter-spacing: -0.01em; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 22px; margin-top: 30px; }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px 40px; }
.grid p { margin: 0; font-size: 14.8px; }
.card { background: var(--paper); border: 1px solid var(--stroke); border-radius: var(--radius); padding: 22px; }
.block.alt .card { background: var(--paper); }

/* fit signals */
.signals { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.signals li { position: relative; padding-left: 20px; font-size: 14.5px; color: var(--muted); }
.signals li::before {
  content: ""; position: absolute; left: 0; top: 9px;
  width: 7px; height: 7px; border-radius: 2px; background: var(--accent);
}

/* selected work */
.work { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 22px; margin-top: 30px; }
.work-item { background: var(--paper); border: 1px solid var(--stroke); border-radius: var(--radius); padding: 22px; }
.work-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 4px; }
.work-head h3 { margin: 0; font-size: 17px; }
.tag {
  flex: none; font-size: 10.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  color: var(--accent-ink); background: var(--accent); padding: 3px 9px; border-radius: 999px;
}
.work-ctx { font-size: 13.5px; color: var(--soft); margin: 0 0 14px; }
.work-item p { font-size: 14.5px; margin: 0 0 10px; max-width: 68ch; }
.delivered-label { margin-bottom: 2px !important; }
.work-item .signals { margin: 0 0 12px; max-width: 68ch; }
.work-item p:last-child { margin-bottom: 0; }
.work-item strong { color: var(--ink); }
.foot-note { margin: 18px 0 0; font-size: 13.5px; color: var(--muted); }

/* contact */
.contact-list { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 18px; max-width: 520px; }
.contact-list li { border-top: 1px solid var(--stroke); padding-top: 16px; }
.contact-list .k {
  display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--soft); margin-bottom: 4px;
}
.contact-list .v { font-size: 16px; }

/* footer */
footer.site { border-top: 1px solid var(--stroke); background: var(--canvas); padding: 34px 0 40px; margin-top: 20px; }
.legal { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13.5px; color: var(--muted); align-items: baseline; }
.legal strong { color: var(--ink); }
.copy { margin: 14px 0 0; font-size: 12.5px; color: var(--soft); }

/* ── Small screens ────────────────────────────────────────────────────────────
   Must stay at the END of the file: a media query adds no specificity, so
   these only override the base rules above by virtue of coming later.        */
@media (max-width: 460px) {
  .bar { height: auto; padding-top: 14px; padding-bottom: 14px; }
  .brand { font-size: 15px; }
  header nav { gap: 16px; }
  .hero { padding: 52px 0 46px; }
  .block { padding-top: 46px; padding-bottom: 46px; }
  /* The 340px/280px track minimums exceed the width available at 320px and
     force the document wider than the viewport. Single column below the break. */
  .grid,
  .grid.two,
  .work { grid-template-columns: 1fr; }
}
