/* ==========================================================================
   Lean Systems — site styles
   Editorial / engineering-document aesthetic. One accent colour, used flat.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Fonts (self-hosted, SIL Open Font License; latin subset as served by Google Fonts)
   -------------------------------------------------------------------------- */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("../fonts/archivo-latin-var.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/ibm-plex-mono-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/ibm-plex-mono-500-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Colour */
  --paper: #F2F0EB;
  --paper-2: #E8E5DE;
  --card: #FAF9F6;
  --ink: #101216;
  --ink-2: #3B3E45;
  --ink-3: #6B6E76;
  --rule: rgba(16, 18, 22, 0.14);
  --rule-strong: #101216;
  --blue: #2A52FF;
  --blue-ink: #0B24A6;
  --blue-soft: #DCE3FF;
  --on-blue: #FFFFFF;
  --on-ink: #F2F0EB;
  --on-ink-2: rgba(242, 240, 235, 0.68);
  --rule-on-ink: rgba(242, 240, 235, 0.16);

  /* Type */
  --font-sans: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* Layout */
  --maxw: 1360px;
  --gutter: clamp(16px, 4vw, 48px);
  --gap: clamp(16px, 2vw, 24px);
  --section: clamp(80px, 11vw, 168px);
  --header-h: 72px;

  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

/* Smooth scrolling only after load, so arriving at page.html#section jumps straight there */
html.is-loaded { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; text-decoration: none; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 600;
  font-stretch: 108%;
  letter-spacing: -0.025em;
  line-height: 1.02;
  text-wrap: balance;
}

ul, ol { margin: 0; padding: 0; list-style: none; }
dl, dd { margin: 0; }

button { font: inherit; color: inherit; }

::selection { background: var(--blue); color: var(--on-blue); }

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--on-ink);
  font-size: 14px;
}
.skip-link:focus { top: 12px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* --------------------------------------------------------------------------
   Layout primitives
   -------------------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section); }
.section--tight { padding-block: clamp(56px, 7vw, 104px); }
.section--alt { background: var(--paper-2); }

.section--ink {
  background: var(--ink);
  color: var(--on-ink);
  --rule: var(--rule-on-ink);
  --rule-strong: var(--on-ink);
  --ink-2: var(--on-ink-2);
  --ink-3: rgba(242, 240, 235, 0.5);
}

.section--blue {
  background: var(--blue);
  color: var(--on-blue);
  --rule: rgba(255, 255, 255, 0.24);
  --rule-strong: #fff;
  --ink-2: rgba(255, 255, 255, 0.82);
  --ink-3: rgba(255, 255, 255, 0.66);
}

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gap);
}

/* --------------------------------------------------------------------------
   Type helpers
   -------------------------------------------------------------------------- */

.mono, .label {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.label { color: var(--ink-3); }

.lede {
  font-size: clamp(19px, 1.55vw, 23px);
  line-height: 1.45;
  color: var(--ink-2);
  max-width: 38ch;
}

.muted { color: var(--ink-2); }

.dot { color: var(--blue); }
.section--blue .dot { color: var(--ink); }

/* --------------------------------------------------------------------------
   Buttons & links
   -------------------------------------------------------------------------- */

.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--on-ink);
  display: inline-flex;
  align-items: center;
  gap: 14px;
  height: 52px;
  padding: 0 20px 0 22px;
  border: 1px solid var(--btn-bg);
  border-radius: 3px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 16px;
  font-weight: 500;
  font-stretch: 104%;
  letter-spacing: -0.005em;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.btn .arrow { transition: transform 0.3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.btn--primary { --btn-bg: var(--blue); --btn-fg: var(--on-blue); }
.btn--primary:hover { --btn-bg: var(--ink); }

.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); border-color: var(--rule-strong); }
.btn--ghost:hover { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }

.btn--light { --btn-bg: #fff; --btn-fg: var(--blue-ink); }
.btn--light:hover { --btn-bg: var(--ink); --btn-fg: #fff; border-color: var(--ink); }

.btn--sm { height: 40px; padding: 0 14px 0 16px; font-size: 14px; gap: 10px; }

.arrow {
  width: 1em;
  height: 1em;
  flex: none;
}

.link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  font-stretch: 104%;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  transition: color 0.2s, gap 0.3s var(--ease);
}
.link:hover { color: var(--blue); gap: 12px; }
.section--blue .link:hover, .section--ink .link:hover { color: inherit; opacity: 0.8; }

/* --------------------------------------------------------------------------
   Logo
   -------------------------------------------------------------------------- */

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
  font-weight: 700;
  font-stretch: 114%;
  letter-spacing: -0.03em;
  line-height: 1;
  white-space: nowrap;
}

.logo-mark { width: 22px; height: 22px; color: var(--blue); }
.logo-mark rect { transition: transform 0.5s var(--ease); }
.logo:hover .logo-mark .lm-3 { transform: translateY(-13px); }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}

.site-header.is-scrolled { border-bottom-color: var(--rule); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
}

.nav { display: flex; align-items: center; gap: 4px; }

.nav a {
  position: relative;
  padding: 8px 12px;
  font-size: 15px;
  font-weight: 500;
  font-stretch: 104%;
  color: var(--ink-2);
  transition: color 0.2s;
}

.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }

.nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 12px; right: 12px; bottom: 2px;
  height: 2px;
  background: var(--blue);
}

.header-tools { display: flex; align-items: center; gap: 20px; }

.clock {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-3);
  white-space: nowrap;
}

.clock::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--blue);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse { 50% { opacity: 0.25; } }

.menu-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  height: 40px;
  padding: 0 4px 0 12px;
  border: 0;
  background: none;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.menu-toggle .bars { position: relative; width: 22px; height: 10px; }
.menu-toggle .bars::before, .menu-toggle .bars::after {
  content: "";
  position: absolute; left: 0; right: 0;
  height: 2px; background: currentColor;
  transition: transform 0.3s var(--ease), top 0.3s var(--ease);
}
.menu-toggle .bars::before { top: 0; }
.menu-toggle .bars::after { top: 8px; }
.menu-open .menu-toggle .bars::before { top: 4px; transform: rotate(45deg); }
.menu-open .menu-toggle .bars::after { top: 4px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 49;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px var(--gutter) 32px;
  background: var(--paper);
  overflow-y: auto;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0s 0.3s;
}

.menu-open .mobile-menu {
  visibility: visible;
  opacity: 1;
  transform: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0s;
}

.mobile-menu nav a {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 36px;
  font-weight: 600;
  font-stretch: 112%;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.mobile-menu nav a .mono { color: var(--blue); }
.mobile-menu nav a[aria-current="page"] { color: var(--blue); }

.mobile-menu-foot { display: grid; gap: 20px; padding-top: 32px; }
.mobile-menu-foot .btn { justify-content: space-between; }

.menu-open body { overflow: hidden; }

/* --------------------------------------------------------------------------
   Section heads
   -------------------------------------------------------------------------- */

.sec-head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gap);
  padding-top: 20px;
  border-top: 1px solid var(--rule-strong);
  margin-bottom: clamp(40px, 6vw, 88px);
}

.sec-label {
  grid-column: 1 / span 3;
  display: flex;
  gap: 12px;
  margin: 6px 0 0;
}

.sec-label .num { color: var(--blue); }
.section--blue .sec-label .num { color: var(--ink); }
.section--ink .sec-label .num { color: #8FA4FF; }

.sec-title { grid-column: 4 / -1; }

.sec-title h2 {
  font-size: clamp(34px, 4.6vw, 68px);
  max-width: 18ch;
}

.sec-title .sec-sub {
  margin-top: 20px;
  max-width: 52ch;
  font-size: clamp(17px, 1.3vw, 19px);
  color: var(--ink-2);
}

.sec-head-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 48px;
}

/* --------------------------------------------------------------------------
   Hero (home)
   -------------------------------------------------------------------------- */

.hero { padding-top: clamp(24px, 3.4vw, 48px); padding-bottom: clamp(24px, 3vw, 40px); }

.hero {
  /* Vertical space taken by everything except the three words:
     header, statement row and paddings. Used to fit the hero in one screen. */
  --hero-chrome: 280px;
}

.hero-top {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px var(--gap);
  align-items: end;
  margin-bottom: clamp(28px, 4vw, 56px);
}

.hero-kicker {
  grid-column: 1 / span 7;
  font-size: clamp(20px, 1.7vw, 26px);
  font-weight: 500;
  font-stretch: 104%;
  letter-spacing: -0.015em;
  line-height: 1.3;
  max-width: 30ch;
}

.hero-kicker strong { font-weight: 700; }

.hero-meta {
  grid-column: 9 / -1;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 20px;
  color: var(--ink-3);
}

.hero-meta dt { color: var(--ink-3); }
.hero-meta dd { color: var(--ink); text-align: right; }

.hero-stack { border-bottom: 1px solid var(--rule-strong); }

.hero-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) minmax(200px, 300px);
  align-items: end;
  gap: var(--gap);
  border-top: 1px solid var(--rule-strong);
  padding-top: 4px;
  overflow: hidden;
}

.hero-row .idx {
  align-self: start;
  padding-top: 14px;
  color: var(--blue);
}

.hero-word-box { container-type: inline-size; min-width: 0; }

.hero-word {
  display: block;
  font-size: clamp(56px, 10.5vw, 168px);
  font-size: max(44px, min(20.5cqi, calc((100svh - var(--hero-chrome)) / 2.8)));
  font-weight: 650;
  font-stretch: 112%;
  letter-spacing: -0.045em;
  line-height: 0.86;
  padding-bottom: 0.06em;
  white-space: nowrap;
}

.hero-note {
  margin: 0;
  padding-bottom: clamp(12px, 1.6vw, 26px);
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink-2);
  max-width: 34ch;
}

.hero-actions {
  grid-column: 8 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

/* Load-in animation for hero rows */
.js .hero-word, .js .hero-note, .js .hero-row .idx {
  animation: rise 1s var(--ease) both;
}
.js .hero-row:nth-child(2) > * { animation-delay: 0.08s; }
.js .hero-row:nth-child(3) > * { animation-delay: 0.16s; }
.js .hero-note { animation-name: fade; animation-duration: 1.2s; }

@keyframes rise { from { transform: translateY(105%); } to { transform: none; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

@media (max-width: 960px) {
  .js .hero-word, .js .hero-row .idx { animation-name: fade-up; }
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* --------------------------------------------------------------------------
   Page hero (inner pages)
   -------------------------------------------------------------------------- */

.page-hero { padding-top: clamp(40px, 6vw, 96px); padding-bottom: clamp(56px, 8vw, 120px); }

.page-hero .grid-12 { align-items: end; }

.page-hero .label { grid-column: 1 / -1; margin-bottom: clamp(20px, 3vw, 40px); display: flex; gap: 12px; }
.page-hero .label .num { color: var(--blue); }

.crumbs { align-items: center; flex-wrap: wrap; }
.crumbs a { color: var(--ink-3); transition: color 0.2s; }
.crumbs a:hover { color: var(--blue); }
.crumbs .sep { color: var(--blue); }
.crumbs [aria-current] { color: var(--ink); }

.page-hero h1 {
  grid-column: 1 / span 10;
  font-size: clamp(44px, 7.4vw, 120px);
  font-weight: 650;
  font-stretch: 112%;
  letter-spacing: -0.045em;
  line-height: 0.92;
}

.page-hero .lede { grid-column: 1 / span 6; margin-top: clamp(24px, 3vw, 40px); }

.page-hero-aside {
  grid-column: 8 / -1;
  margin-top: clamp(24px, 3vw, 40px);
  justify-self: end;
}

/* --------------------------------------------------------------------------
   Clients grid
   -------------------------------------------------------------------------- */

.clients {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}

.client {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  min-height: clamp(128px, 12vw, 168px);
  padding: 20px 22px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}

.client-name {
  font-size: clamp(19px, 1.7vw, 24px);
  font-weight: 600;
  font-stretch: 108%;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.client .label { display: flex; justify-content: space-between; gap: 12px; }

.client:hover { background: var(--ink); color: var(--on-ink); }
.client:hover .label { color: var(--on-ink-2); }

.client--cta { color: var(--blue); }
.client--cta .client-name { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.client--cta:hover { background: var(--blue); color: var(--on-blue); }
.client--cta:hover .label { color: rgba(255,255,255,0.8); }

/* --------------------------------------------------------------------------
   About intro (home)
   -------------------------------------------------------------------------- */

.sec-head--flush { margin-bottom: 0; }

.sec-title h2.mission, .mission {
  max-width: 24ch;
  font-size: clamp(30px, 3.9vw, 58px);
  font-weight: 500;
  font-stretch: 106%;
  letter-spacing: -0.03em;
  line-height: 1.08;
  text-wrap: balance;
  margin: 0;
}

.mission em { font-style: normal; color: var(--blue); }

.mission-by { margin-top: 28px; }

.about-cols {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gap);
  margin-top: clamp(56px, 7vw, 104px);
}

.about-cols .col-a { grid-column: 4 / span 4; }
.about-cols .col-b { grid-column: 8 / span 5; }
.about-cols p { color: var(--ink-2); }
.about-cols .about-lead {
  color: var(--ink);
  font-size: clamp(19px, 1.5vw, 22px);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.4;
}

.facts {
  display: grid;
  grid-template-columns: auto 1fr;
  border-top: 1px solid var(--rule);
}

.facts dt, .facts dd {
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
}

.facts dt { color: var(--ink-3); padding-right: 24px; }
.facts dd { text-align: right; font-weight: 500; }

/* --------------------------------------------------------------------------
   Services list (home)
   -------------------------------------------------------------------------- */

.svc-list { border-top: 1px solid var(--rule); }

.svc-row {
  position: relative;
  display: grid;
  grid-template-columns: 64px minmax(0, 4fr) minmax(0, 5fr) 40px;
  gap: var(--gap);
  align-items: start;
  padding: clamp(24px, 2.6vw, 36px) 0;
  border-bottom: 1px solid var(--rule);
  isolation: isolate;
}

.svc-row::before {
  content: "";
  position: absolute;
  inset: 0 calc(var(--gutter) * -1);
  z-index: -1;
  background: var(--ink);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.45s var(--ease);
}

.svc-row .idx { color: var(--blue); padding-top: 10px; }

.svc-row h3 {
  font-size: clamp(26px, 2.6vw, 40px);
  font-stretch: 110%;
  letter-spacing: -0.03em;
}

.svc-row p { color: var(--ink-2); max-width: 54ch; }

.svc-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }

.svc-row .go {
  justify-self: end;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border: 1px solid var(--rule);
  border-radius: 50%;
  transition: transform 0.4s var(--ease), border-color 0.3s, background-color 0.3s;
}

.svc-row:hover { color: var(--on-ink); }
.svc-row:hover::before { transform: scaleY(1); transform-origin: top; }
.svc-row:hover p { color: var(--on-ink-2); }
.svc-row:hover .idx { color: #8FA4FF; }
.svc-row:hover .go { background: var(--blue); border-color: var(--blue); color: #fff; transform: rotate(-45deg); }
.svc-row:hover .chip { border-color: var(--rule-on-ink); color: var(--on-ink-2); }

/* --------------------------------------------------------------------------
   Chips
   -------------------------------------------------------------------------- */

.chip {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink-2);
  white-space: nowrap;
  transition: border-color 0.3s, color 0.3s;
}

/* --------------------------------------------------------------------------
   Case cards (home)
   -------------------------------------------------------------------------- */

.cases {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap);
}

.case {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: clamp(24px, 2.6vw, 40px);
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 4px;
  transition: border-color 0.3s, transform 0.4s var(--ease);
}

.case:hover { border-color: var(--ink); }

.case-top { display: flex; justify-content: space-between; gap: 16px; }

.case-fig {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 14px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--rule);
}

.case-fig .big {
  font-size: clamp(56px, 6.4vw, 104px);
  font-weight: 650;
  font-stretch: 112%;
  letter-spacing: -0.05em;
  line-height: 0.9;
  color: var(--blue);
}

.case-fig .big--text { font-size: clamp(36px, 4vw, 60px); letter-spacing: -0.04em; }

.case-fig .unit {
  font-size: clamp(18px, 1.5vw, 22px);
  font-weight: 600;
  font-stretch: 108%;
  letter-spacing: -0.02em;
}

.case-fig .caption { flex-basis: 100%; color: var(--ink-2); font-size: 15px; margin-top: 8px; }

.case h3 { font-size: clamp(24px, 2.1vw, 32px); font-stretch: 110%; letter-spacing: -0.03em; }

.case p { color: var(--ink-2); }

.case .svc-tags { margin-top: auto; }

/* --------------------------------------------------------------------------
   Principles / stats (dark)
   -------------------------------------------------------------------------- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--rule);
}

.stat {
  padding: 24px 24px 0 0;
  border-right: 1px solid var(--rule);
}

.stat + .stat { padding-left: 24px; }
.stat:last-child { border-right: 0; }

.stat .n {
  display: block;
  font-size: clamp(48px, 6vw, 96px);
  font-weight: 600;
  font-stretch: 112%;
  letter-spacing: -0.05em;
  line-height: 1;
  white-space: nowrap;
  margin: 16px 0 12px;
}

.stat p { color: var(--ink-2); font-size: 15px; max-width: 24ch; }

.principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
  margin-top: clamp(72px, 9vw, 136px);
}

.principle { border-top: 1px solid var(--rule-strong); padding-top: 20px; }
.principle .label { display: flex; gap: 10px; margin-bottom: 40px; }
.principle .label .num { color: #8FA4FF; }
.principle h3 { font-size: clamp(24px, 2.2vw, 32px); font-stretch: 110%; margin-bottom: 16px; }
.principle p { color: var(--ink-2); max-width: 40ch; }

.section--paper-principles .principle .label .num { color: var(--blue); }

/* --------------------------------------------------------------------------
   Engagement models
   -------------------------------------------------------------------------- */

.models {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--rule);
}

.model {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 28px 24px 32px;
  border-right: 1px solid var(--rule);
  transition: background-color 0.3s var(--ease);
}

.model:first-child { padding-left: 0; }
.model:last-child { border-right: 0; padding-right: 0; }

.model .label { display: flex; justify-content: space-between; }
.model .label .num { color: var(--blue); }

.model h3 { font-size: clamp(22px, 1.9vw, 28px); font-stretch: 110%; letter-spacing: -0.025em; margin-top: 24px; }
.model h3 small { display: block; margin-top: 6px; font-size: 15px; font-weight: 500; font-stretch: 100%; letter-spacing: 0; color: var(--ink-3); }

.model p { color: var(--ink-2); font-size: 16px; }

.model .best {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px dashed var(--rule);
  font-size: 15px;
}
.model .best .label { display: block; margin-bottom: 6px; }

.models-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  margin-top: 40px;
  padding: 24px 28px;
  background: var(--blue-soft);
  border-radius: 4px;
}

.models-foot p { margin: 0; font-size: 19px; font-weight: 500; font-stretch: 104%; letter-spacing: -0.01em; color: var(--blue-ink); }

/* --------------------------------------------------------------------------
   Process steps
   -------------------------------------------------------------------------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gap);
  counter-reset: step;
}

.step { position: relative; padding-top: 56px; }

.step::before {
  content: "";
  position: absolute;
  top: 15px; left: 0; right: calc(var(--gap) * -1);
  height: 1px;
  background: var(--rule);
}

.step:last-child::before { right: 0; }

.step-num {
  position: absolute;
  top: 0; left: 0;
  display: grid;
  place-items: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--ink);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
}

.section--alt .step-num { background: var(--paper-2); }
.step:last-child .step-num { background: var(--blue); border-color: var(--blue); color: #fff; }

.step h3 { font-size: clamp(21px, 1.7vw, 25px); font-stretch: 108%; margin-bottom: 12px; }
.step p { color: var(--ink-2); font-size: 16px; max-width: 32ch; }

/* --------------------------------------------------------------------------
   CTA band
   -------------------------------------------------------------------------- */

.cta-band { padding-block: clamp(80px, 10vw, 152px); }

.cta-band .grid-12 { align-items: end; }

.cta-band h2 {
  grid-column: 1 / span 9;
  font-size: clamp(48px, 8.4vw, 136px);
  font-weight: 650;
  font-stretch: 112%;
  letter-spacing: -0.05em;
  line-height: 0.9;
}

.cta-band .cta-body {
  grid-column: 1 / span 5;
  margin-top: clamp(28px, 3vw, 48px);
  font-size: clamp(18px, 1.4vw, 21px);
  color: var(--ink-2);
}

.cta-band .cta-actions {
  grid-column: 7 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 16px 28px;
}

.cta-mail {
  font-size: clamp(18px, 1.6vw, 22px);
  font-weight: 500;
  font-stretch: 104%;
  border-bottom: 1px solid currentColor;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--ink);
  color: var(--on-ink);
  padding-top: clamp(64px, 8vw, 112px);
  padding-bottom: 28px;
  --rule: var(--rule-on-ink);
}

.site-footer .logo { color: var(--on-ink); font-size: 22px; }
.site-footer .logo-mark { color: #8FA4FF; }

.footer-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gap);
}

.footer-brand { grid-column: 1 / span 4; }
.footer-brand p { margin-top: 20px; color: var(--on-ink-2); max-width: 28ch; }

.footer-col { grid-column: span 2; }
.footer-col:last-child { grid-column: span 4; }

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(242, 240, 235, 0.5);
  margin-bottom: 16px;
}

.footer-col li + li { margin-top: 8px; }
.footer-col a { color: var(--on-ink); transition: color 0.2s; }
.footer-col a:hover { color: #8FA4FF; }
.footer-col address { font-style: normal; color: var(--on-ink-2); }
.footer-col address a { color: var(--on-ink); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 32px;
  margin-top: clamp(56px, 7vw, 104px);
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  color: rgba(242, 240, 235, 0.5);
}

.footer-bottom .ka { font-family: var(--font-sans); text-transform: none; letter-spacing: 0; }

/* --------------------------------------------------------------------------
   Services page
   -------------------------------------------------------------------------- */

/* Side menu (desktop) / sticky bar (mobile) + articles */

.svc-layout {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gap);
  align-items: start;
}

.svc-nav-wrap {
  grid-column: 1 / span 3;
  position: sticky;
  top: calc(var(--header-h) + 32px);
  z-index: 10;
}

.svc-articles { grid-column: 4 / -1; }

.svc-nav .label { margin-bottom: 12px; }

.svc-nav ol { border-top: 1px solid var(--rule-strong); }

.svc-nav li a {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--rule);
  color: var(--ink-3);
  font-size: 15px;
  font-weight: 500;
  font-stretch: 104%;
  line-height: 1.3;
  transition: color 0.25s, padding-left 0.35s var(--ease);
}

.svc-nav li a::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 7px; height: 7px;
  margin-top: -3.5px;
  background: var(--blue);
  transform: scale(0);
  transition: transform 0.35s var(--ease);
}

.svc-nav li a:hover { color: var(--ink); }
.svc-nav li a[aria-current="true"] { color: var(--ink); padding-left: 17px; }
.svc-nav li a[aria-current="true"]::before { transform: scale(1); }
.svc-nav li a[aria-current="true"] .mono { color: var(--blue); }

.svc-nav-cta { margin-top: 24px; font-size: 15px; }

.svc-detail {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gap);
  padding-block: clamp(56px, 7vw, 104px);
  border-top: 1px solid var(--rule-strong);
}

.svc-detail:first-child { border-top: 0; padding-top: 0; }

.svc-detail-head { grid-column: 1 / span 5; }

.svc-detail-head .label { display: flex; gap: 12px; margin-bottom: 28px; }
.svc-detail-head .label .num { color: var(--blue); }

.svc-detail-head h2 {
  font-size: clamp(30px, 3.1vw, 48px);
  font-stretch: 112%;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
}

.svc-detail-head p { color: var(--ink-2); max-width: 44ch; }
.svc-detail-head .link { margin-top: 28px; }

.svc-detail-body { grid-column: 7 / -1; display: grid; gap: 48px; align-content: start; }

.block-title { margin-bottom: 16px; }

.checklist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: var(--gap);
  border-top: 1px solid var(--rule);
}

.checklist li {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 16px;
  line-height: 1.4;
}

.checklist li::before {
  content: "";
  flex: none;
  width: 8px; height: 8px;
  margin-top: 6px;
  background: var(--blue);
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips .chip { height: 32px; padding: 0 14px; font-size: 12.5px; }

.mini-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--rule);
}

.mini-stats div { padding: 16px 16px 0 0; }
.mini-stats div + div { padding-left: 16px; border-left: 1px solid var(--rule); }
.mini-stats strong { display: block; white-space: nowrap; font-size: clamp(26px, 2.2vw, 34px); font-weight: 600; font-stretch: 112%; letter-spacing: -0.04em; line-height: 1; margin-bottom: 8px; }
.mini-stats span { font-size: 14px; color: var(--ink-2); }

.proof {
  padding: 20px 22px;
  border-left: 3px solid var(--blue);
  background: var(--card);
}
.proof .label { margin-bottom: 8px; }
.proof p { font-size: 16px; color: var(--ink-2); }
.proof a { font-weight: 500; color: var(--ink); border-bottom: 1px solid var(--rule); }
.proof a:hover { border-color: var(--ink); }

/* FAQ */

.faq { border-top: 1px solid var(--rule); grid-column: 4 / -1; }

.faq details { border-bottom: 1px solid var(--rule); }

.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 24px 0;
  cursor: pointer;
  list-style: none;
  font-size: clamp(19px, 1.6vw, 23px);
  font-weight: 600;
  font-stretch: 106%;
  letter-spacing: -0.015em;
  line-height: 1.25;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary .pm {
  position: relative;
  flex: none;
  width: 28px; height: 28px;
  border: 1px solid var(--rule);
  border-radius: 50%;
  transition: background-color 0.3s, border-color 0.3s;
}

.faq summary .pm::before, .faq summary .pm::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 10px; height: 1.5px;
  background: currentColor;
  transform: translate(-50%, -50%);
  transition: transform 0.3s var(--ease);
}

.faq summary .pm::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq details[open] summary .pm { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.faq details[open] summary .pm::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq summary:hover { color: var(--blue); }

.faq .answer { padding: 0 64px 28px 0; color: var(--ink-2); max-width: 70ch; }

/* --------------------------------------------------------------------------
   Work page
   -------------------------------------------------------------------------- */

.filters {
  position: sticky;
  top: var(--header-h);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 0;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  overflow-x: auto;
  scrollbar-width: none;
}

.filters::-webkit-scrollbar { display: none; }

.filters .label { margin-right: 8px; white-space: nowrap; }

.filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.filter sup { font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-3); top: 0; }
.filter:hover { border-color: var(--ink); }
.filter[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.filter[aria-pressed="true"] sup { color: var(--on-ink-2); }

.ref-count { margin-left: auto; padding-left: 16px; white-space: nowrap; color: var(--ink-3); }

.refs { border-top: 0; }

.ref {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gap);
  padding: clamp(32px, 4vw, 56px) 0;
  border-bottom: 1px solid var(--rule);
}

.ref[hidden] { display: none; }
.ref { scroll-margin-top: calc(var(--header-h) + 88px); }

.ref-head { grid-column: 1 / span 4; }

.ref-head .label { color: var(--blue); margin-bottom: 14px; }

.ref-head h2 {
  font-size: clamp(28px, 2.8vw, 42px);
  font-stretch: 110%;
  letter-spacing: -0.035em;
  margin-bottom: 20px;
}

.ref-meta { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; font-size: 14px; }
.ref-meta dt { color: var(--ink-3); font-family: var(--font-mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.06em; padding-top: 2px; }
.ref-meta dd { color: var(--ink-2); }

.ref-body { grid-column: 5 / span 5; }
.ref-body p { color: var(--ink-2); }
.ref-body .ref-lead { color: var(--ink); font-size: 19px; line-height: 1.45; font-weight: 500; font-stretch: 102%; letter-spacing: -0.01em; }

.ref-apps { grid-column: 10 / -1; }
.ref-apps .label { margin-bottom: 12px; }
.ref-apps .chips { gap: 6px; }
.ref-apps .chip { height: 28px; padding: 0 11px; font-size: 11.5px; }

.ref-site { display: inline-flex; margin-top: 20px; font-size: 14px; }

.refs-empty { padding: 64px 0; color: var(--ink-3); }

/* --------------------------------------------------------------------------
   About page
   -------------------------------------------------------------------------- */

.story {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gap);
}

.story .story-a { grid-column: 4 / span 4; }
.story .story-b { grid-column: 8 / span 5; }
.story p { color: var(--ink-2); }
.story .first { color: var(--ink); font-size: clamp(20px, 1.6vw, 24px); line-height: 1.4; font-weight: 500; letter-spacing: -0.01em; }

.team {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(32px, 4vw, 56px) var(--gap);
}

.person figure { margin: 0; }

.person .photo {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--paper-2);
  border-radius: 3px;
}

.person .photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.04);
  transition: filter 0.6s var(--ease), transform 0.8s var(--ease);
}

.person:hover .photo img { filter: grayscale(0); transform: scale(1.03); }

.person .photo .initials {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 40px;
  font-weight: 600;
  font-stretch: 112%;
  color: var(--ink-3);
  z-index: 0;
}

.person .photo img { position: relative; z-index: 1; }

.person figcaption { padding-top: 14px; }
.person h3 { font-size: 20px; font-stretch: 106%; letter-spacing: -0.02em; line-height: 1.2; }
.person .role { margin-top: 6px; color: var(--ink-3); }
.person .in { display: inline-flex; margin-top: 12px; font-size: 14px; font-weight: 500; border-bottom: 1px solid var(--rule); }
.person .in:hover { color: var(--blue); border-color: var(--blue); }

.join-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  aspect-ratio: 1 / 1;
  padding: 20px;
  background: var(--blue);
  color: #fff;
  border-radius: 3px;
  transition: background-color 0.3s;
}

.join-card:hover { background: var(--ink); }
.join-card strong { font-size: 24px; font-weight: 600; font-stretch: 110%; letter-spacing: -0.03em; line-height: 1.1; }

.location {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gap);
  align-items: end;
}

.location h2 { grid-column: 1 / span 6; font-size: clamp(36px, 5vw, 76px); font-stretch: 112%; letter-spacing: -0.045em; line-height: 0.95; }
.location .loc-body { grid-column: 8 / -1; }
.location address { font-style: normal; font-size: 20px; line-height: 1.45; margin-bottom: 20px; }

.tz-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(48px, 6vw, 80px);
  border-top: 1px solid var(--rule);
}

.tz-strip div { padding: 16px 16px 0 0; }
.tz-strip div + div { padding-left: 16px; border-left: 1px solid var(--rule); }
.tz-strip .t { display: block; font-size: clamp(28px, 3vw, 44px); font-weight: 600; font-stretch: 110%; letter-spacing: -0.03em; line-height: 1; margin-top: 10px; font-variant-numeric: tabular-nums; }
.tz-strip .home .t { color: var(--blue); }

/* --------------------------------------------------------------------------
   Careers page
   -------------------------------------------------------------------------- */

.openings {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gap);
  padding: clamp(32px, 4vw, 56px);
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 4px;
}

.openings .o-head { grid-column: 1 / span 7; }
.openings .o-head h3 { font-size: clamp(26px, 2.6vw, 40px); font-stretch: 110%; letter-spacing: -0.035em; margin: 16px 0 16px; }
.openings .o-head p { color: var(--ink-2); max-width: 52ch; }
.openings .o-actions { grid-column: 9 / -1; align-self: end; display: grid; gap: 12px; justify-items: start; }

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--paper-2);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.status-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3); }

.roles { border-top: 1px solid var(--rule); grid-column: 4 / -1; }

.role-row {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: var(--gap);
  padding: 24px 0;
  border-bottom: 1px solid var(--rule);
}

.role-row h3 { font-size: clamp(21px, 1.8vw, 26px); font-stretch: 108%; }
.role-row p { color: var(--ink-2); font-size: 16px; }

/* --------------------------------------------------------------------------
   Contact page
   -------------------------------------------------------------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gap);
  align-items: start;
}

.contact-form { grid-column: 1 / span 7; }
.contact-side { grid-column: 9 / -1; display: grid; gap: 40px; }

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px var(--gap);
}

.field { display: grid; gap: 8px; }
.field--full { grid-column: 1 / -1; }

.field label, .field legend {
  padding: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.field label .req { color: var(--blue); }

.field input, .field textarea {
  width: 100%;
  padding: 10px 0 12px;
  border: 0;
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 19px;
  line-height: 1.4;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field textarea { min-height: 140px; resize: vertical; }

.field input::placeholder, .field textarea::placeholder { color: rgba(16, 18, 22, 0.32); }

.field input:focus, .field textarea:focus {
  outline: none;
  border-bottom-color: var(--blue);
  box-shadow: 0 1px 0 0 var(--blue);
}

.field .error { display: none; font-size: 13px; color: #C2261C; }
.field.is-invalid input, .field.is-invalid textarea { border-bottom-color: #C2261C; }
.field.is-invalid .error { display: block; }

fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
fieldset.field legend { margin-bottom: 12px; }

.check-chips { display: flex; flex-wrap: wrap; gap: 8px; }

.field .check-chip {
  position: relative;
  font-family: var(--font-sans);
  font-size: 15px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
}
.check-chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; margin: 0; }

.check-chip span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.check-chip span::before {
  content: "";
  width: 8px; height: 8px;
  border: 1px solid var(--ink-3);
  border-radius: 50%;
  transition: background-color 0.2s, border-color 0.2s;
}

.check-chip:hover span { border-color: var(--ink); }
.check-chip input:checked + span { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.check-chip input:checked + span::before { background: var(--blue); border-color: var(--blue); }
.check-chip input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }

.form-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
}

.form-foot p { margin: 0; font-size: 14px; color: var(--ink-3); max-width: 40ch; }

.form-success {
  display: none;
  padding: clamp(28px, 4vw, 48px);
  background: var(--blue);
  color: #fff;
  border-radius: 4px;
}

.form-success h3 { font-size: clamp(28px, 3vw, 44px); font-stretch: 112%; letter-spacing: -0.04em; margin-bottom: 16px; }
.form-success p { color: rgba(255,255,255,0.86); max-width: 48ch; }
.form-success .dot { color: var(--ink); }

.form-context {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin-bottom: 40px;
  padding: 16px 20px;
  background: var(--blue-soft);
  border-radius: 4px;
  color: var(--blue-ink);
}

.form-context[hidden] { display: none; }
.form-context p { margin: 0; font-size: 17px; }
.form-context .link { font-size: 15px; }
.form-context .link:hover { color: var(--ink); }

.contact-form.is-sent form, .contact-form.is-sent .form-context { display: none; }

/* Without JavaScript the function redirects back to #sent or #not-sent */
.form-success:target { display: block; }
.contact-form:has(.form-success:target) form,
.contact-form:has(.form-success:target) .form-context { display: none; }

.form-error {
  display: none;
  margin: 32px 0 0;
  padding: 14px 18px;
  border-left: 3px solid #C2261C;
  background: #FBEAE8;
  color: #8A1A12;
  font-size: 15px;
}
.form-error.is-visible, .form-error:target { display: block; }
.form-error a { color: inherit; border-bottom: 1px solid currentColor; }

/* Honeypot: off-screen for people, visible to bots */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.btn[disabled] { opacity: 0.6; cursor: progress; }
.contact-form.is-sent .form-success { display: block; }

.side-block .label { margin-bottom: 12px; }
.side-block .big-link {
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 600;
  font-stretch: 108%;
  letter-spacing: -0.025em;
  border-bottom: 1px solid var(--rule);
  word-break: break-word;
  transition: color 0.2s, border-color 0.2s;
}
.side-block .big-link:hover { color: var(--blue); border-color: var(--blue); }
.side-block address { font-style: normal; font-size: 17px; color: var(--ink-2); }

.next-steps { border-top: 1px solid var(--rule); counter-reset: ns; }
.next-steps li {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 8px;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 15px;
  color: var(--ink-2);
}
.next-steps li::before {
  counter-increment: ns;
  content: "0" counter(ns);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--blue);
  padding-top: 2px;
}
.next-steps strong { display: block; color: var(--ink); font-weight: 600; margin-bottom: 2px; }

/* --------------------------------------------------------------------------
   404
   -------------------------------------------------------------------------- */

.notfound { min-height: calc(100vh - var(--header-h)); display: grid; align-content: center; padding-block: 80px; }
.notfound .code { font-size: clamp(120px, 26vw, 400px); font-weight: 700; font-stretch: 116%; letter-spacing: -0.06em; line-height: 0.8; color: var(--blue); }
.notfound h1 { font-size: clamp(28px, 3.4vw, 52px); font-stretch: 110%; letter-spacing: -0.035em; margin: 32px 0 16px; max-width: 20ch; }
.notfound p { color: var(--ink-2); max-width: 44ch; margin-bottom: 32px; }

/* --------------------------------------------------------------------------
   Reveal on scroll
   -------------------------------------------------------------------------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: calc(var(--i, 0) * 60ms);
}

.js [data-reveal].is-in { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1180px) {
  .clock { display: none; }
  .models { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .model:nth-child(2) { border-right: 0; padding-right: 0; }
  .model:nth-child(3) { padding-left: 0; }
  .model:nth-child(n+3) { border-top: 1px solid var(--rule); }
  .ref-head { grid-column: 1 / span 4; }
  .ref-body { grid-column: 5 / -1; }
  .ref-apps { grid-column: 5 / -1; }
  .svc-detail-head, .svc-detail-body { grid-column: 1 / -1; }
  .svc-detail { row-gap: 40px; }
}

@media (max-width: 960px) {
  :root { --header-h: 64px; }

  .nav, .header-tools .btn { display: none; }
  .menu-toggle { display: inline-flex; }

  .sec-label { grid-column: 1 / -1; }
  .sec-title { grid-column: 1 / -1; }

  .hero-kicker { grid-column: 1 / -1; }
  .hero-meta { grid-column: 1 / -1; grid-template-columns: auto 1fr auto 1fr; }
  .hero-meta dd { text-align: left; }
  .hero-row { grid-template-columns: 40px minmax(0, 1fr); }
  .hero-note { grid-column: 2 / -1; padding-top: 4px; padding-bottom: 16px; }
  .hero-actions { grid-column: 1 / -1; }
  .hero-actions { justify-content: flex-start; }

  .page-hero h1, .page-hero .lede, .page-hero-aside { grid-column: 1 / -1; }
  .page-hero-aside { justify-self: start; }

  .clients { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .about-cols .col-a, .about-cols .col-b { grid-column: 1 / -1; }

  .svc-row { grid-template-columns: 40px minmax(0, 1fr) 40px; }
  .svc-row .svc-desc { grid-column: 2 / 3; }
  .svc-row .go { grid-row: 1; grid-column: 3; }

  .cases { grid-template-columns: 1fr; }

  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(3) { padding-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--rule); margin-top: 24px; }

  .principles { grid-template-columns: 1fr; gap: 48px; }

  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 48px; }
  .step:nth-child(2)::before { right: 0; }

  .cta-band h2, .cta-band .cta-body, .cta-band .cta-actions { grid-column: 1 / -1; }
  .cta-band .cta-actions { justify-content: flex-start; margin-top: 32px; }

  .footer-brand { grid-column: 1 / -1; margin-bottom: 24px; }
  .footer-col { grid-column: span 6; }
  .footer-col:last-child { grid-column: 1 / -1; margin-top: 16px; }

  .svc-nav-wrap {
    grid-column: 1 / -1;
    top: var(--header-h);
    margin-inline: calc(var(--gutter) * -1);
    padding: 12px var(--gutter);
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
  }
  .svc-articles { grid-column: 1 / -1; margin-top: 32px; }
  .svc-nav .label, .svc-nav-cta { display: none; }
  .svc-nav ol {
    position: relative;
    display: flex;
    gap: 8px;
    border-top: 0;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .svc-nav ol::-webkit-scrollbar { display: none; }
  .svc-nav li a,
  .svc-nav li a[aria-current="true"] {
    height: 36px;
    align-items: center;
    gap: 8px;
    padding: 0 14px;
    border: 1px solid var(--rule);
    border-radius: 999px;
    color: var(--ink);
    font-size: 14px;
    white-space: nowrap;
  }
  .svc-nav li a::before { display: none; }
  .svc-nav li a .mono { font-size: 10.5px; color: var(--ink-3); }
  .svc-nav li a[aria-current="true"] { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
  .svc-nav li a[aria-current="true"] .mono { color: #8FA4FF; }
  .svc-detail { scroll-margin-top: 64px; }

  .svc-detail-head, .svc-detail-body { grid-column: 1 / -1; }

  .faq { grid-column: 1 / -1; }

  .ref-head, .ref-body, .ref-apps { grid-column: 1 / -1; }

  .story .story-a, .story .story-b { grid-column: 1 / -1; }

  .location h2, .location .loc-body { grid-column: 1 / -1; }
  .tz-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tz-strip div:nth-child(3) { padding-left: 0; border-left: 0; }
  .tz-strip div:nth-child(n+3) { margin-top: 20px; border-top: 1px solid var(--rule); }

  .openings .o-head, .openings .o-actions { grid-column: 1 / -1; }
  .roles { grid-column: 1 / -1; }

  .contact-form, .contact-side { grid-column: 1 / -1; }
  .contact-side { margin-top: 56px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }

  .hero-meta { grid-template-columns: auto 1fr; }
  .hero-row { grid-template-columns: 28px minmax(0, 1fr); gap: 12px; }
  .hero-actions .btn { flex: 1 1 auto; justify-content: space-between; }

  .clients { grid-template-columns: 1fr 1fr; }
  .client { padding: 16px; min-height: 120px; }
  .client .label { flex-direction: column; gap: 2px; }

  .svc-row { grid-template-columns: minmax(0, 1fr) 40px; }
  .svc-row .idx { grid-column: 1 / -1; padding-top: 0; }
  .svc-row h3 { grid-column: 1; }
  .svc-row .go { grid-row: 2; grid-column: 2; }
  .svc-row .svc-desc { grid-column: 1 / -1; }

  .models { grid-template-columns: 1fr; }
  .model, .model:first-child, .model:nth-child(3) { padding: 24px 0 28px; border-right: 0; }
  .model + .model { border-top: 1px solid var(--rule); }

  .steps { grid-template-columns: 1fr; row-gap: 0; }
  .step { padding: 0 0 36px 52px; }
  .step::before { top: 32px; bottom: 0; left: 15px; right: auto; width: 1px; height: auto; }
  .step:last-child::before { display: none; }
  .step:last-child { padding-bottom: 0; }

  .team { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .checklist { grid-template-columns: 1fr; }
  .mini-stats { grid-template-columns: 1fr; }
  .mini-stats div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule); margin-top: 16px; }

  .role-row { grid-template-columns: 1fr; gap: 8px; }

  .form-grid { grid-template-columns: 1fr; }

  .faq .answer { padding-right: 0; }

  .footer-col { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  html, html.is-loaded { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

@media print {
  .site-header, .mobile-menu, .site-footer, .filters { display: none; }
  body { background: #fff; }
}
