@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  --fog: #edeff3;
  --ink: #1a1d3a;
  --slate: #555b75;
  --line: #cdd1dc;
  --clip: #c7ccea;
  --rec: #e0242b;
  --on-ink: #ffffff;
  --on-ink-soft: #a9aecb;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: var(--fog);
  color: var(--ink);
  font-family: "Archivo", system-ui, -apple-system, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; }
:focus-visible { outline: 2px solid var(--rec); outline-offset: 3px; border-radius: 2px; }

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

/* Header */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  font-stretch: 85%;
  font-size: 20px;
  letter-spacing: -0.01em;
}
.brand svg { width: 17px; height: 27px; flex: none; }
.nav { display: flex; gap: 28px; font-size: 15px; list-style: none; }
.nav a { text-decoration: none; color: var(--slate); }
.nav a:hover { color: var(--ink); }
@media (max-width: 640px) {
  .nav li:not(:last-child) { display: none; }
}

/* Hero */
.hero { padding-block: clamp(48px, 9vw, 112px) clamp(64px, 9vw, 112px); }
h1 {
  font-stretch: 70%;
  font-weight: 800;
  font-size: clamp(56px, 10vw, 128px);
  line-height: 0.9;
  letter-spacing: -0.015em;
  max-width: 9ch;
}
.lede {
  margin-top: clamp(24px, 3vw, 36px);
  max-width: 56ch;
  font-size: clamp(18px, 1.6vw, 21px);
  color: var(--slate);
}

/* Process timeline in the hero */
.scrub { margin-top: clamp(48px, 7vw, 80px); }
.scrub-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 3px;
  height: 12px;
}
.scrub-track span {
  position: relative;
  overflow: hidden;
  background: var(--clip);
  border-radius: 2px;
}
.scrub-track span::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform-origin: left center;
  animation: fill 0.4s linear both;
}
.scrub-track span:nth-child(1)::after { animation-delay: 0.4s; }
.scrub-track span:nth-child(2)::after { animation-delay: 0.8s; }
.scrub-track span:nth-child(3)::after { animation-delay: 1.2s; }
.scrub-track span:nth-child(4)::after { animation-delay: 1.6s; }
.scrub-track span:nth-child(5)::after { animation-delay: 2.0s; }
.scrub-track span:nth-child(6)::after { animation-delay: 2.4s; }
.playhead {
  position: absolute;
  top: -10px;
  bottom: -6px;
  left: 0;
  width: 2px;
  margin-left: -1px;
  background: var(--rec);
  animation: play 2.4s 0.4s linear both;
}
.playhead::before {
  content: "";
  position: absolute;
  top: -5px;
  left: -4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--rec);
}
@keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes play { from { left: 0; } to { left: 100%; } }

.scrub-labels {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 3px;
  margin-top: 14px;
  font-size: 15px;
  font-stretch: 85%;
  font-weight: 600;
  line-height: 1.3;
}
.scrub-labels span {
  display: block;
  color: var(--slate);
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 560px) {
  .scrub-labels { font-size: 12.5px; font-stretch: 72%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scrub-track span::after, .playhead { animation: none; }
  .playhead { left: 100%; }
}

/* Sections */
.section { padding-block: clamp(72px, 10vw, 128px); border-top: 1px solid var(--line); }
h2 {
  font-stretch: 75%;
  font-weight: 750;
  font-size: clamp(36px, 4.6vw, 56px);
  line-height: 1;
  letter-spacing: -0.01em;
}
h3 {
  font-size: 20px;
  font-weight: 700;
  font-stretch: 90%;
  line-height: 1.25;
}
.intro { margin-top: 20px; max-width: 46ch; color: var(--slate); }

/* What we do */
.three {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 4vw, 56px);
  margin-top: clamp(36px, 5vw, 56px);
}
.three > div { border-top: 2px solid var(--ink); padding-top: 20px; }
.three p { margin-top: 8px; color: var(--slate); font-size: 17px; }
@media (max-width: 820px) {
  .three { grid-template-columns: 1fr; gap: 32px; }
}

/* How we work */
.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.split-head { position: sticky; top: 32px; }
.steps { list-style: none; counter-reset: step; }
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 56px 1fr;
  column-gap: 8px;
  padding-block: 22px;
  border-bottom: 1px solid var(--line);
}
.steps li:first-child { padding-top: 0; }
.steps li::before {
  content: counter(step);
  grid-row: span 2;
  font-stretch: 70%;
  font-weight: 800;
  font-size: 40px;
  line-height: 1;
  color: var(--clip);
  -webkit-text-stroke: 0;
}
.steps p { margin-top: 6px; color: var(--slate); font-size: 17px; }
@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; }
  .split-head { position: static; }
}

/* Who we work with */
.statement {
  margin-top: clamp(24px, 3vw, 32px);
  max-width: 40ch;
  font-size: clamp(22px, 2.6vw, 30px);
  font-stretch: 92%;
  line-height: 1.35;
  letter-spacing: -0.005em;
}

/* Contact band */
.band { background: var(--ink); color: var(--on-ink); }
.band .wrap { padding-block: clamp(72px, 10vw, 128px) clamp(56px, 7vw, 88px); }
.band-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px);
}
.band p { margin-top: 20px; color: var(--on-ink-soft); }
.mail {
  display: inline-block;
  margin-top: 6px;
  font-size: clamp(22px, 2.6vw, 32px);
  font-stretch: 80%;
  white-space: nowrap;
  font-weight: 700;
  line-height: 1.2;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
  text-decoration-color: var(--rec);
}
.mail:hover { text-decoration-color: var(--on-ink); }
.facts { display: grid; gap: 18px; }
.facts div { border-top: 1px solid rgba(255, 255, 255, 0.16); padding-top: 14px; }
.facts dt { font-size: 14px; color: var(--on-ink-soft); }
.facts dd { margin-top: 2px; font-size: 18px; overflow-wrap: anywhere; }
@media (max-width: 820px) {
  .band-grid { grid-template-columns: 1fr; }
  .mail { white-space: normal; overflow-wrap: anywhere; }
}

.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: clamp(64px, 8vw, 104px);
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 14px;
  color: var(--on-ink-soft);
}
.foot a { color: var(--on-ink-soft); text-underline-offset: 3px; }
.foot a:hover { color: var(--on-ink); }

/* Privacy page */
.doc { padding-block: clamp(40px, 7vw, 88px) clamp(72px, 10vw, 128px); }
.doc h1 { font-size: clamp(44px, 7vw, 80px); max-width: none; }
.doc .updated { margin-top: 16px; color: var(--slate); font-size: 15px; }
.doc article { max-width: 66ch; margin-top: clamp(32px, 5vw, 56px); }
.doc h2 { font-size: clamp(24px, 2.6vw, 30px); margin-top: 40px; }
.doc article p { margin-top: 12px; }
.doc article h2:first-child { margin-top: 0; }
