/* Interlock site styles. Light theme only. */

:root {
  --paper: #f7f5f0;
  --card: #eeebe3;
  --card-hover: #e8e4da;
  --bg-sunk: #e6e2d8;
  --ink: #15171b;
  --ink-2: #33363d;
  --muted: #62656d;
  --faint: #8b8e95;
  --rule: #dcd7cb;
  --rule-strong: #c9c2b2;
  --accent: #17306f;
  --accent-soft: #e4e8f5;
  --sky-bg: #e3e8f8;
  --on-sky: var(--ink);
  --on-sky-2: #50535b;
  --sky-ring: var(--ink);
  --sky-new: var(--accent);

  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --gutter: clamp(20px, 5vw, 80px);
  --max: 1320px;
  --sheet-r: 28px;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);

  color-scheme: light;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 88px;
  background: var(--sky-bg);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-optical-sizing: auto;
  font-size: 16.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
}

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

a {
  color: inherit;
}

::selection {
  background: var(--accent);
  color: #fff;
}

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

.sky :focus-visible {
  outline-color: var(--ink);
}

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

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 50;
  background: var(--ink);
  color: #fff;
  padding: 8px 14px;
  border-radius: 8px;
  text-decoration: none;
}

.skip:focus {
  top: 12px;
}

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

/* Type */

.h2 {
  font-weight: 400;
  font-size: clamp(32px, 3.5vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin: 0;
  max-width: 20ch;
  text-wrap: balance;
}

.h3 {
  font-weight: 400;
  font-size: clamp(22px, 1.9vw, 28px);
  line-height: 1.18;
  letter-spacing: -0.025em;
  margin: 0;
  text-wrap: balance;
}

.eyebrow {
  display: block;
  margin: 0 0 18px;
  font: 500 14px/1.3 var(--sans);
  letter-spacing: -0.005em;
  color: var(--ink-2);
}

.statement {
  font-weight: 400;
  font-size: clamp(32px, 3.9vw, 60px);
  line-height: 1.08;
  letter-spacing: -0.038em;
  margin: 0;
  max-width: 23ch;
  text-wrap: balance;
}

.statement em {
  font-style: normal;
  color: var(--accent);
}

.lede {
  font-size: clamp(17px, 1.35vw, 20px);
  line-height: 1.5;
  margin: 0;
  max-width: 34em;
  text-wrap: pretty;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  font: 500 14.5px/1 var(--sans);
  letter-spacing: -0.005em;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 160ms ease, color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: #0e2347;
}

.btn-light {
  background: var(--accent);
  color: #fff;
}

.btn-light:hover {
  background: #0e2347;
}

.btn-glass {
  background: rgba(255, 255, 255, 0.55);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(21, 23, 27, 0.16);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.85);
}

.btn-sm {
  height: 38px;
  padding: 0 16px;
  font-size: 13.5px;
}

.arrow {
  display: inline-block;
  transition: transform 180ms var(--ease);
}

.btn:hover .arrow,
.text-link:hover .arrow {
  transform: translateX(3px);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid var(--rule-strong);
  padding-bottom: 3px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

/* YC badge */

.yc-badge {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 14px;
  line-height: 1;
  color: var(--muted);
}

.yc-badge svg {
  width: 18px;
  height: 18px;
  border-radius: 3px;
  flex: none;
}

.yc-badge strong {
  color: var(--ink);
  font-weight: 500;
}

/* Header: a floating pill */

.site-header {
  position: fixed;
  top: 14px;
  left: 0;
  right: 0;
  z-index: 30;
  display: flex;
  justify-content: center;
  padding-inline: 16px;
  pointer-events: none;
}

.pill {
  pointer-events: auto;
  position: relative;
  width: min(100%, 860px);
  height: 52px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: 0 7px 0 22px;
  background: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: saturate(1.6) blur(16px);
  backdrop-filter: saturate(1.6) blur(16px);
  border-radius: 999px;
  box-shadow: 0 0 0 1px rgba(14, 35, 71, 0.06), 0 12px 32px -16px rgba(14, 35, 71, 0.45);
  transition: box-shadow 200ms ease;
}

.site-header.is-scrolled .pill {
  box-shadow: 0 0 0 1px rgba(14, 35, 71, 0.08), 0 14px 36px -14px rgba(14, 35, 71, 0.4);
}

.wordmark {
  display: inline-flex;
  color: var(--ink);
  text-decoration: none;
  width: fit-content;
}

.wordmark svg {
  height: 17px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
}

.nav a {
  color: var(--ink-2);
  text-decoration: none;
  transition: color 140ms ease;
}

.nav a:hover {
  color: var(--ink);
}

.pill-end {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 4px;
}

.menu {
  display: none;
  position: static;
}

.menu summary {
  list-style: none;
  cursor: pointer;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
}

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

.menu summary span,
.menu summary span::before {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--ink);
  position: relative;
  transition: transform 180ms ease;
}

.menu summary span::before {
  content: "";
  position: absolute;
  top: 6px;
}

.menu summary span {
  transform: translateY(-3px);
}

.menu[open] summary span {
  transform: rotate(45deg);
}

.menu[open] summary span::before {
  top: 0;
  transform: rotate(-90deg);
}

.menu-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: 60px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.97);
  border-radius: 22px;
  box-shadow: 0 0 0 1px rgba(14, 35, 71, 0.06), 0 18px 40px -18px rgba(14, 35, 71, 0.45);
  display: grid;
}

.menu-panel a {
  padding: 12px 14px;
  border-radius: 14px;
  text-decoration: none;
  font-size: 16px;
}

.menu-panel a:hover {
  background: var(--paper);
}

/* Sky: the full-bleed brand backdrop (hero, inner-page heroes, cards, closing): one flat light colour */

.sky {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: var(--on-sky);
  background: var(--sky-bg);
}

.sky::after {
  /* flat backdrop: no grain */
  content: none;
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.22;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.sky > * {
  position: relative;
  z-index: 2;
}

.sky > .sky-art {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* Tree rings */

.rings,
.closing-rings {
  height: auto;
  fill: none;
  overflow: visible;
}

.sky-rings {
  position: absolute;
}

.sky-rings .ring,
.closing-rings .ring {
  stroke: var(--sky-ring);
  stroke-width: 0.7;
  opacity: 0.16;
}

.sky-rings .ring.late,
.closing-rings .ring.late {
  stroke-width: 0.85;
  opacity: 0.3;
}

.sky-rings .ring.new,
.closing-rings .ring.new {
  stroke: var(--sky-new);
  stroke-width: 1.3;
  opacity: 0.95;
}

@media (prefers-reduced-motion: no-preference) {
  .js .hero .ring,
  .js .page-hero .ring {
    stroke-dasharray: 1 1;
    stroke-dashoffset: 1;
    animation: ring-in 1.6s var(--ease) forwards;
    animation-delay: calc(var(--i) * 55ms + 150ms);
  }

  .js .hero .ring.new,
  .js .page-hero .ring.new {
    animation-duration: 2.2s;
    animation-delay: calc(var(--i) * 55ms + 450ms);
  }
}

@keyframes ring-in {
  to {
    stroke-dashoffset: 0;
  }
}

/* Hero */

.hero {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: clamp(640px, 100svh, 1040px);
  padding-block: 120px calc(var(--sheet-r) + clamp(56px, 9vh, 104px));
}

.hero .sky-rings .ring {
  opacity: 0.11;
}

.hero .sky-rings .ring.late {
  opacity: 0.2;
}

.hero .sky-rings .ring.new {
  opacity: 0.7;
}

.hero .sky-rings {
  width: clamp(560px, 66vw, 1080px);
  right: clamp(-260px, -8vw, -40px);
  top: 50%;
  transform: translateY(-54%);
}

.hero-copy,
.page-hero-copy {
  width: 100%;
}

.hero .yc-badge,
.page-hero .crumbs {
  margin-bottom: 22px;
}

.sky .yc-badge {
  color: var(--on-sky-2);
}

.hero .yc-badge {
  font-size: 16px;
  gap: 11px;
}

.hero .yc-badge svg {
  width: 21px;
  height: 21px;
}

.sky .yc-badge strong {
  color: var(--ink);
}

.hero-title {
  font-weight: 400;
  font-size: clamp(44px, 5.7vw, 92px);
  line-height: 1;
  letter-spacing: -0.045em;
  margin: 0 0 20px;
  text-wrap: balance;
}

.hero-sub {
  margin: 0 0 32px;
  font-size: clamp(17px, 1.4vw, 21px);
  line-height: 1.45;
  color: var(--on-sky-2);
  max-width: 34em;
  text-wrap: pretty;
}

/* The light sheet that slides over the sky */

.sheet {
  position: relative;
  z-index: 3;
  margin-top: calc(var(--sheet-r) * -1);
  min-height: var(--sheet-r);
  background: var(--paper);
  border-radius: var(--sheet-r) var(--sheet-r) 0 0;
}

/* Sections */

.section {
  padding-top: clamp(88px, 11vw, 152px);
}

.section:first-child {
  padding-top: clamp(72px, 8vw, 112px);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.7fr);
  gap: 24px clamp(32px, 5vw, 80px);
  align-items: end;
}

/* Case study cards */

#case-studies .h2 {
  margin-bottom: clamp(32px, 3.6vw, 52px);
}

.cases {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 1.6vw, 22px);
}

.case {
  display: flex;
  flex-direction: column;
  border-radius: 22px;
  overflow: hidden;
  background: var(--card);
  text-decoration: none;
  color: inherit;
  transition: background-color 200ms ease;
}

.case:hover {
  background: var(--card-hover);
}

.case-art {
  height: clamp(180px, 17vw, 248px);
}

.case-art .sky-rings {
  width: 150%;
  left: 18%;
  top: -55%;
}

.case:nth-child(2) .case-art .sky-rings {
  left: -62%;
  top: -18%;
}

/* Card art for published case studies: the TL;DR numbers */
.case-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  align-content: end;
  gap: 16px;
  padding: clamp(20px, 2.2vw, 30px);
}

.case-stats .cs-n {
  display: block;
  font-size: clamp(30px, 3.4vw, 52px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
}

.case-stats .cs-w {
  display: block;
  margin-top: 10px;
  font-size: 13.5px;
  line-height: 1.3;
  color: var(--on-sky-2);
}

.case-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(20px, 2vw, 28px) clamp(20px, 2.2vw, 30px) clamp(22px, 2.2vw, 30px);
}

.case-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 13.5px;
  color: var(--muted);
}

.case .h3 {
  max-width: 20ch;
}

.case .more {
  margin-top: auto;
  padding-top: 18px;
  font-size: 14.5px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
}

.case:hover .more .arrow {
  transform: translateX(3px);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 26px;
  padding: 0 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: inset 0 0 0 1px var(--rule);
  font: 500 12.5px/1 var(--sans);
  color: var(--ink-2);
}

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

.status.published::before {
  background: #2f8f5b;
}

/* What we do: four stages, each with a small graphic */

.process {
  --gap: clamp(16px, 1.8vw, 28px);
  list-style: none;
  margin: clamp(40px, 5vw, 72px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 40px var(--gap);
}

.process li {
  position: relative;
}

.process li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: calc(var(--stage-h, 300px) / 2 - 5px);
  right: calc(var(--gap) / -2 - 4px);
  width: 9px;
  height: 9px;
  border-top: 1.5px solid var(--ink-2);
  border-right: 1.5px solid var(--ink-2);
  transform: rotate(45deg);
}

.stage {
  height: var(--stage-h, 300px);
  border-radius: 20px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  margin-bottom: 22px;
}

.stage-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--on-sky-2);
}

.stack {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  margin-block: auto;
}

.blk {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 7px 0 12px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.5);
  box-shadow: inset 0 0 0 1px rgba(21, 23, 27, 0.16);
  white-space: nowrap;
}

.blk i {
  font-style: normal;
  font-size: 11.5px;
  opacity: 0.55;
  width: 8px;
}

.blk.code {
  background: rgba(255, 255, 255, 0.75);
  box-shadow: inset 0 0 0 1px rgba(21, 23, 27, 0.42);
}

.blk.own {
  background: var(--accent);
  color: #fff;
  box-shadow: none;
}

.blk.own i {
  opacity: 0.6;
}

.blk.frontier {
  background: rgba(21, 23, 27, 0.04);
  box-shadow: none;
  outline: 1px dashed rgba(21, 23, 27, 0.42);
  outline-offset: -1px;
}

.blk .ok {
  width: 15px;
  height: 15px;
  margin-left: auto;
  flex: none;
}

.blk .tag {
  margin-left: auto;
  flex: none;
  padding: 3px 7px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.2;
}

.tag.own {
  background: var(--accent);
  color: #fff;
}

.tag.code {
  background: #fff;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(21, 23, 27, 0.42);
}

.tag.frontier {
  color: var(--ink-2);
  background: rgba(21, 23, 27, 0.04);
  outline: 1px dashed rgba(21, 23, 27, 0.42);
  outline-offset: -1px;
}

/* Prove: ours against frontier, accuracy and cost */
.vs {
  margin-block: auto;
  display: grid;
  gap: 20px;
}

.vs-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
}

.vs-h em {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-style: normal;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
}

.vs-h .ok {
  width: 14px;
  height: 14px;
}

.vs-bar {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  margin-top: 7px;
}

.vs-bar .who {
  font-size: 12px;
  color: var(--muted);
}

.vs-bar .bar {
  width: var(--w);
  min-width: 8px;
  height: 12px;
  border-radius: 0 4px 4px 0;
}

.bar.own {
  background: var(--accent);
}

.bar.frontier {
  background: var(--faint);
}

/* Own: what stays with the customer */
.owned {
  display: grid;
  gap: 6px;
  padding: 12px;
  border-radius: 14px;
  outline: 1px dashed rgba(21, 23, 27, 0.3);
  outline-offset: -1px;
  background: rgba(255, 255, 255, 0.4);
}

.owned-h {
  margin-bottom: 2px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
}

.own-row {
  display: flex;
  align-items: center;
  height: 28px;
  padding: 0 10px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 500;
  color: #fff;
  background: var(--accent);
}

.infra {
  margin-block: auto;
  display: grid;
  gap: 16px;
}

.slim {
  display: grid;
  gap: 7px;
  padding: 16px;
  border-radius: 14px;
  outline: 1px dashed rgba(21, 23, 27, 0.3);
  outline-offset: -1px;
  background: rgba(255, 255, 255, 0.4);
}

.slim span {
  height: 12px;
  border-radius: 6px;
}

.slim .code {
  box-shadow: inset 0 0 0 1px rgba(21, 23, 27, 0.42);
}

.slim .own {
  background: var(--sky-new);
}

.slim .frontier {
  background: rgba(21, 23, 27, 0.06);
  outline: 1px dashed rgba(21, 23, 27, 0.42);
  outline-offset: -1px;
}

.loop {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--on-sky-2);
}

.loop svg {
  width: 18px;
  height: 18px;
  color: var(--sky-new);
}

.cap {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
  margin-bottom: 8px;
}

.cap .n {
  font-size: 13.5px;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
}

.cap h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.015em;
}

.process p {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 19em;
  text-wrap: pretty;
}

/* Closing card */

.closing-wrap {
  padding-block: clamp(88px, 11vw, 152px) clamp(16px, 2vw, 24px);
}

.closing {
  border-radius: 24px;
  padding: clamp(64px, 9vw, 128px) clamp(24px, 6vw, 88px);
}

.closing-rings {
  position: absolute;
  right: clamp(-320px, -16vw, -120px);
  top: 50%;
  width: clamp(460px, 56vw, 820px);
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 0 !important;
}

.closing-title {
  font-weight: 400;
  font-size: clamp(38px, 4.8vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.045em;
  max-width: 14ch;
  margin: 0 0 clamp(28px, 3vw, 40px);
}

.closing .email {
  color: var(--on-sky-2);
  font-size: 14.5px;
  margin-left: 8px;
}

.closing .email a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid rgba(21, 23, 27, 0.3);
}

.closing .email a:hover {
  border-color: var(--ink);
}

/* Footer: the bottom of the sheet */

.site-footer {
  position: relative;
  z-index: 3;
  background: var(--paper);
  border-radius: 0 0 var(--sheet-r) var(--sheet-r);
  padding-block: clamp(48px, 6vw, 80px) 28px;
  font-size: 14.5px;
}

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

.foot-grid > div {
  padding: 28px 24px 8px;
}

.foot-grid > div:first-child {
  padding-left: 0;
}

.foot-grid > div + div {
  border-left: 1px solid var(--rule);
}

.foot-brand .yc-badge {
  margin-top: 22px;
}

.foot-col h4 {
  font-weight: 500;
  font-size: 13.5px;
  color: var(--faint);
  margin: 0 0 14px;
}

.foot-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
}

.foot-col a {
  color: var(--ink-2);
  text-decoration: none;
}

.foot-col a:hover {
  color: var(--ink);
}

.foot-legal {
  margin-top: 48px;
  font-size: 13px;
  color: var(--faint);
}

/* Inner pages */

.page-hero {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: clamp(480px, 66svh, 760px);
  padding-block: 132px calc(var(--sheet-r) + clamp(48px, 7vh, 88px));
}

.page-hero .sky-rings {
  width: clamp(480px, 52vw, 860px);
  right: clamp(-240px, -10vw, -60px);
  top: 50%;
  transform: translateY(-50%);
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  font-size: 14px;
  color: var(--on-sky-2);
}

.crumbs a {
  color: var(--ink);
  text-decoration: none;
}

.crumbs a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-title {
  font-weight: 400;
  font-size: clamp(36px, 4.4vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.04em;
  max-width: 20ch;
  margin: 0 0 20px;
  text-wrap: balance;
}

.page-hero .lede {
  color: var(--on-sky-2);
}

.page-404 {
  min-height: clamp(520px, 82svh, 900px);
}

.page-404 .page-title {
  margin-bottom: 32px;
}

.page-intro {
  padding-top: clamp(48px, 6vw, 80px);
}

.banner {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 18px;
  border-radius: 16px;
  background: var(--accent-soft);
  color: var(--ink-2);
  font-size: 15.5px;
  max-width: 62em;
}

.banner strong {
  color: var(--ink);
  font-weight: 600;
}

.banner .status {
  flex: none;
  background: #fff;
  box-shadow: none;
}

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

.facts div {
  padding: 18px 20px 0 0;
}

.facts div + div {
  padding-left: 20px;
  border-left: 1px solid var(--rule);
}

.facts dt {
  font-size: 13.5px;
  color: var(--faint);
  margin-bottom: 6px;
}

.facts dd {
  margin: 0;
  font-size: 15.5px;
  color: var(--ink);
}

.results {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: start;
  margin-top: clamp(48px, 6vw, 80px);
  padding: clamp(24px, 3vw, 40px);
  background: var(--card);
  border-radius: 22px;
}

.results .eyebrow {
  margin-bottom: 18px;
}

.results .bars .ttl {
  display: none;
}

.metrics {
  display: grid;
  grid-template-columns: 1fr;
}

.metric {
  padding: 16px 0;
  border-top: 1px solid var(--rule);
}

.metric .value {
  font-size: clamp(34px, 3.4vw, 52px);
  line-height: 1;
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
  margin-bottom: 8px;
}

.metric .value.pending {
  display: flex;
  align-items: center;
  height: clamp(34px, 3.4vw, 52px);
}

.metric .ph {
  display: block;
  width: 72px;
  height: 12px;
  border-radius: 3px;
  background: repeating-linear-gradient(135deg, var(--rule-strong) 0 1px, transparent 1px 6px);
}

.metric .label {
  font-size: 14px;
  line-height: 1.4;
  color: var(--muted);
}

.case-chart {
  margin: 0;
}

/* Bar chart (case studies) */

.bars {
  width: 100%;
  height: auto;
  font-family: var(--sans);
}

.bars .track {
  fill: var(--bg-sunk);
}

.bars .bar {
  fill: var(--ink-2);
}

.bars .bar.hl {
  fill: var(--accent);
}

.bars .lbl {
  font-size: 13px;
  fill: var(--ink-2);
}

.bars .val {
  font-size: 13px;
  font-weight: 600;
  fill: var(--ink);
  font-variant-numeric: tabular-nums;
}

.bars .pend,
.bars .ttl {
  font-size: 10.5px;
  letter-spacing: 0.08em;
  fill: var(--faint);
}

.prose-rows {
  margin-top: clamp(56px, 7vw, 96px);
}

.row {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 7fr);
  gap: 16px clamp(32px, 5vw, 80px);
  padding-block: clamp(28px, 3.4vw, 44px);
  border-top: 1px solid var(--rule);
}

.row > h2 {
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 3px 0 0;
}

.prose {
  max-width: 48em;
}

.prose > p,
.prose > ul,
.prose > ol {
  max-width: 40em;
}

.prose p,
.prose ul {
  margin: 0 0 16px;
  color: var(--ink-2);
}

.prose ul {
  padding-left: 20px;
}

.prose li {
  margin-bottom: 8px;
}

.prose li::marker {
  color: var(--faint);
}

.prose a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

.prose .lead {
  font-size: clamp(20px, 1.7vw, 24px);
  line-height: 1.4;
  letter-spacing: -0.02em;
  color: var(--ink);
}

/* Article-style case studies */

.article-top {
  padding-top: clamp(56px, 7vw, 96px);
}

.article-intro {
  margin: 0;
  max-width: 34em;
  font-size: clamp(20px, 1.85vw, 26px);
  line-height: 1.42;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: pretty;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 1.4vw, 18px);
  margin-top: clamp(36px, 4.5vw, 56px);
}

.stat {
  padding: clamp(18px, 1.8vw, 24px);
  border-radius: 18px;
  background: var(--card);
}

.stat-v {
  font-size: clamp(30px, 2.9vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

.stat p {
  margin: 12px 0 0;
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--muted);
}

.fig {
  margin: 28px 0;
}

.fig-lead {
  margin: clamp(16px, 1.8vw, 24px) 0 0;
}

.fig img {
  width: 100%;
  height: auto;
  border-radius: 18px;
}

.fig-ph {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 6px;
  aspect-ratio: 16 / 7;
  padding: 24px;
  border-radius: 18px;
  border: 1.5px dashed var(--rule-strong);
  background: rgba(238, 235, 227, 0.5);
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

.fig-lead .fig-ph {
  aspect-ratio: 16 / 6;
}

.fig-ph strong {
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
}

.fig-ph code {
  overflow-wrap: anywhere;
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 12.5px;
  color: var(--faint);
}

.tbd {
  display: inline-block;
  padding: 0.05em 0.4em;
  border-radius: 0.3em;
  background: #fde68a;
  color: #6b4500;
  font-size: 0.8em;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.3;
  vertical-align: 0.08em;
}

.table-wrap {
  margin: 4px 0 24px;
  overflow-x: auto;
}

table.data {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}

table.data th,
table.data td {
  padding: 11px 16px 11px 0;
  border-bottom: 1px solid var(--rule);
  text-align: left;
  vertical-align: top;
}

table.data thead th {
  padding-top: 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--faint);
  border-bottom-color: var(--rule-strong);
}

table.data tbody th {
  font-weight: 400;
  color: var(--ink);
}

table.data td {
  color: var(--ink-2);
}

table.data tr.ours th,
table.data tr.ours td {
  font-weight: 600;
  color: var(--ink);
  background: var(--accent-soft);
}

table.data tr.ours th {
  padding-left: 12px;
  border-radius: 10px 0 0 10px;
}

table.data tr.ours td:last-child {
  border-radius: 0 10px 10px 0;
}

table.data tbody th {
  padding-left: 12px;
}

.prose ol {
  margin: 0 0 16px;
  padding-left: 22px;
  color: var(--ink-2);
}

.prose strong {
  color: var(--ink);
  font-weight: 600;
}

.prose .table-wrap + p,
.prose .fig + p {
  margin-top: 0;
}

/* Coded charts (case studies) */

.chart {
  margin: 28px 0;
  padding: clamp(20px, 2.4vw, 32px);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 0 0 1px var(--rule);
}

.fig-lead .chart {
  margin: clamp(16px, 1.8vw, 24px) 0 0;
}

.chart-cap {
  display: grid;
  gap: 4px;
  margin-bottom: 18px;
}

.chart-cap strong {
  font-size: clamp(17px, 1.4vw, 20px);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.chart-cap span {
  font-size: 14px;
  color: var(--muted);
}

.chart-legend,
.flow-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-bottom: 18px;
  font-size: 13px;
  color: var(--muted);
}

.chart-legend span,
.flow-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.k {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.k.ours {
  background: var(--accent);
}

.k.base {
  background: var(--faint);
}

.k.code,
.k.model {
  width: 14px;
  height: 10px;
  border-radius: 3px;
}

.k.code {
  box-shadow: inset 0 0 0 1.5px var(--ink-2);
}

.k.model {
  background: var(--ink);
}

[data-tip] {
  cursor: default;
  outline-offset: 2px;
}

/* Scatter */

.plot-wrap {
  padding: 8px 8px 30px 34px;
}

.plot {
  position: relative;
  height: clamp(240px, 26vw, 340px);
  border-left: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.gy,
.gx {
  position: absolute;
  pointer-events: none;
}

.gy {
  left: 0;
  right: 0;
  height: 0;
  border-top: 1px solid #eeebe4;
}

.gy span {
  position: absolute;
  right: calc(100% + 8px);
  top: -0.7em;
  font-size: 12px;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
}

.gx {
  bottom: 0;
  top: 0;
  width: 0;
}

.gx span {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  transform: translateX(-50%);
  font-size: 12px;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.axis-x {
  margin: -6px 0 0;
  text-align: center;
  font-size: 12.5px;
  color: var(--muted);
}

.plot .link {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.plot .link line {
  stroke: var(--accent);
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
  opacity: 0.55;
}

.annot-m {
  display: none;
}

.annot {
  position: absolute;
  transform: translateX(-50%);
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}

.pt {
  position: absolute;
  width: 10px;
  height: 10px;
  margin: 0 0 -5px -5px;
  border-radius: 50%;
  background: var(--faint);
  box-shadow: 0 0 0 2px #fff;
}

.pt::before {
  content: "";
  position: absolute;
  inset: -9px;
  border-radius: 50%;
}

.pt.ours {
  width: 16px;
  height: 16px;
  margin: 0 0 -8px -8px;
  background: var(--accent);
}

.pl {
  position: absolute;
  font-size: 13px;
  color: var(--ink-2);
  white-space: nowrap;
  pointer-events: none;
}

.pt.ours .pl {
  font-weight: 600;
  color: var(--ink);
}

.pl.right {
  left: calc(100% + 8px);
  top: 50%;
  transform: translateY(-50%);
}

.pl.left {
  right: calc(100% + 8px);
  top: 50%;
  transform: translateY(-50%);
}

.pl.above {
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
}

.pl.below {
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
}

/* Horizontal bars */

.hb {
  display: grid;
  gap: 10px;
}

.hb-row {
  display: grid;
  grid-template-columns: minmax(96px, 150px) minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  font-size: 14px;
}

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

.hb-name em {
  display: block;
  font-style: normal;
  font-size: 12.5px;
  color: var(--muted);
}

/* The bar area leaves room on the right for the value, so widths stay true proportions. */
.hb-track {
  position: relative;
  min-width: 0;
  height: 22px;
  margin-right: 104px;
}

.hb-bar {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  min-width: 4px;
  border-radius: 0 4px 4px 0;
  background: var(--faint);
}

.hb-bar.ours {
  background: var(--accent);
}

.hb-val {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  margin-left: 10px;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  pointer-events: none;
}

.hb-row.is-ours .hb-name,
.hb-row.is-ours .hb-val {
  font-weight: 600;
  color: var(--ink);
}

.hb-stacked .hb-row {
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
}

.hb-stacked .hb-name em {
  display: inline;
}

.hb-stacked .hb-name em::before {
  content: " · ";
}

.hb-stacked {
  gap: 14px;
}

/* Two panels side by side */

.cmp {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 56px);
}

.cmp-title {
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.chart-foot {
  margin: 22px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted);
}

/* Conversation to record */

.dialogue {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 14px;
  margin: 8px 0 28px;
}

.dlg-conv,
.dlg-rec {
  padding: 18px 20px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 0 0 1px var(--rule);
}

.dlg-h {
  margin: 0 0 12px !important;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--faint) !important;
}

.dlg-turn {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 10px;
  margin-bottom: 10px;
  font-size: 14.5px;
  line-height: 1.45;
}

.dlg-turn:last-child {
  margin-bottom: 0;
}

.dlg-turn span {
  padding-top: 1px;
  font-size: 12.5px;
  color: var(--muted);
}

.dlg-turn p {
  margin: 0 !important;
  color: var(--ink) !important;
}

.dlg-turn.agent p {
  color: var(--ink-2) !important;
}

.dlg-rec dl {
  margin: 0;
  display: grid;
  gap: 8px;
  font-size: 14px;
}

.dlg-rec dl div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--rule);
}

.dlg-rec dl div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.dlg-rec dt {
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 12.5px;
  color: var(--muted);
  padding-top: 1px;
}

.dlg-rec dd {
  margin: 0;
  color: var(--ink);
  font-weight: 500;
}

.dialogue figcaption {
  grid-column: 1 / -1;
  font-size: 13px;
  color: var(--muted);
}

.prose p.note {
  font-size: 13.5px;
  color: var(--muted);
}

.as-table {
  margin: -12px 0 24px;
  font-size: 14px;
}

.as-table summary {
  cursor: pointer;
  width: fit-content;
  color: var(--muted);
}

.as-table summary:hover {
  color: var(--ink);
}

.as-table .table-wrap {
  margin-top: 14px;
}

/* Flow */

.flow {
  display: grid;
  justify-items: center;
}

.flow-row {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 26px;
  width: 100%;
}

.flow-row .node {
  position: relative;
  flex: 1 1 0;
  max-width: 180px;
}

.flow-row .node + .node::before {
  content: "→";
  position: absolute;
  right: calc(100% + 6px);
  top: 50%;
  transform: translateY(-50%);
  color: var(--faint);
  font-size: 14px;
}

.node {
  display: grid;
  place-items: center;
  min-height: 48px;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.3;
  text-align: center;
}

.node.code {
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--ink-2);
  background: #fff;
}

.node.model {
  color: #fff;
  background: var(--ink);
}

.node.decision {
  border-radius: 999px;
  padding-inline: 22px;
}

.flow-down {
  width: 1px;
  height: 22px;
  margin: 4px 0;
  background: var(--rule-strong);
  position: relative;
}

.flow-down::after {
  content: "";
  position: absolute;
  left: -3px;
  bottom: 0;
  width: 6px;
  height: 6px;
  border-right: 1px solid var(--rule-strong);
  border-bottom: 1px solid var(--rule-strong);
  transform: rotate(45deg);
}

.flow-decide {
  display: grid;
  justify-items: center;
}

.flow-decide::after {
  content: "";
  width: 1px;
  height: 10px;
  background: var(--rule-strong);
}

.flow-branch {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 210px));
  gap: 18px;
  padding-top: 14px;
  margin-bottom: 14px;
}

.flow-branch::before,
.flow-branch::after {
  content: "";
  position: absolute;
  left: 25%;
  right: 25%;
  height: 12px;
  border: 1px solid var(--rule-strong);
}

.flow-branch::before {
  top: 0;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
}

.flow-branch::after {
  bottom: -14px;
  border-top: 0;
  border-radius: 0 0 8px 8px;
}

.flow-branch > div {
  display: grid;
  justify-items: center;
  gap: 6px;
}

.flow-branch .br {
  font-size: 12.5px;
  color: var(--muted);
}

.flow-branch .node {
  width: 100%;
}

/* Tooltip */

.chart-tip {
  position: fixed;
  z-index: 40;
  max-width: 260px;
  padding: 7px 10px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  line-height: 1.35;
  pointer-events: none;
  opacity: 0;
  transition: opacity 120ms ease;
}

.chart-tip.on {
  opacity: 1;
}

@media (max-width: 640px) {
  .flow-row {
    flex-direction: column;
    align-items: center;
    gap: 22px;
  }

  .flow-row .node {
    width: 100%;
    max-width: 260px;
  }

  .flow-row .node + .node::before {
    content: "↓";
    right: auto;
    left: 50%;
    top: auto;
    bottom: calc(100% + 2px);
    transform: translateX(-50%);
  }

  .flow-branch {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
  }

  .hb-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .cmp,
  .dialogue {
    grid-template-columns: minmax(0, 1fr);
  }

  .hb-track {
    margin-right: 84px;
  }

  .plot-wrap {
    padding-left: 28px;
  }

  .pl {
    font-size: 12px;
  }

  .annot {
    display: none;
  }

  .annot-m {
    display: block;
    width: fit-content;
    margin: -6px 0 14px;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--accent-soft);
    font-size: 13px;
    font-weight: 500;
  }
}

/* Reveal on scroll */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}

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

/* Responsive */

/* The four What we do tiles need about 270px each for step names and tags. */
@media (max-width: 1200px) {
  .process {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 48px;
  }

  .process li::after {
    display: none;
  }
}

@media (max-width: 1100px) {
  .section-head,
  .results {
    grid-template-columns: 1fr;
  }

  .process {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 48px;
  }

  .process li::after {
    display: none;
  }

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

  .foot-brand {
    grid-column: 1 / -1;
    padding-bottom: 28px !important;
  }

  .foot-grid > div:nth-child(2) {
    border-left: 0;
    padding-left: 0;
    border-top: 1px solid var(--rule);
  }

  .foot-grid > div:nth-child(n + 3) {
    border-top: 1px solid var(--rule);
  }
}

@media (max-width: 860px) {
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fig-lead .fig-ph,
  .fig-ph {
    aspect-ratio: 4 / 3;
  }

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

  .case:nth-child(2) .case-art .sky-rings {
    left: 18%;
    top: -55%;
  }

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

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

  .facts div:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }

  .facts div:nth-child(n + 3) {
    margin-top: 18px;
    border-top: 1px solid var(--rule);
  }
}

@media (max-width: 760px) {
  .pill {
    grid-template-columns: minmax(0, 1fr) auto;
    padding-left: 18px;
  }

  .nav {
    display: none;
  }

  .menu {
    display: block;
  }
}

@media (max-width: 640px) {
  :root {
    --sheet-r: 22px;
  }

  body {
    font-size: 16px;
  }

  .container {
    padding-inline: 16px;
  }

  .endmark {
    padding-inline: 16px;
  }

  .site-header {
    top: 10px;
    padding-inline: 10px;
  }

  .pill {
    height: 50px;
  }

  .hero {
    min-height: max(600px, 94svh);
  }

  .hero .sky-rings {
    width: 560px;
    right: -250px;
    top: 34%;
  }

  .hero-title {
    font-size: clamp(42px, 12.4vw, 56px);
    letter-spacing: -0.045em;
  }

  .page-hero .sky-rings {
    width: 460px;
    right: -240px;
    top: 30%;
  }

  .process {
    --stage-h: 248px;
    grid-template-columns: 1fr;
    row-gap: 40px;
  }

  .stage {
    margin-bottom: 18px;
  }

  .actions .btn {
    flex: 1 1 auto;
  }

  .closing .email {
    margin: 8px 0 0;
    flex-basis: 100%;
  }

  .closing-rings {
    right: -220px;
    top: auto;
    bottom: -200px;
    width: 480px;
    transform: none;
  }

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

  .foot-grid > div {
    padding: 24px 16px 4px;
  }

  .foot-grid > div:nth-child(2),
  .foot-grid > div:nth-child(4) {
    border-left: 0;
    padding-left: 0;
  }

  .foot-grid > div:nth-child(4) {
    grid-column: 1 / -1;
  }

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

  .facts div,
  .facts div + div,
  .facts div:nth-child(3) {
    padding: 14px 0 0;
    margin-top: 14px;
    border-left: 0;
  }

  .facts div + div {
    border-top: 1px solid var(--rule);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }

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

/* ---------- Case study format v2: claim headline, TL;DR stat cards, pipeline, methodology stages, fine print ---------- */

.page-title.is-claim {
  font-size: clamp(30px, 3.3vw, 50px);
  line-height: 1.1;
  max-width: 24ch;
}

.nw {
  white-space: nowrap;
}

.tldr {
  padding: clamp(20px, 2.2vw, 30px);
  border-radius: 22px;
  background: var(--accent-soft);
}

.tl-label {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.tl-task {
  margin: 0;
  max-width: 46em;
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.tl-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(10px, 1.2vw, 16px);
  margin-top: clamp(16px, 1.8vw, 22px);
}

.tl-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  padding: clamp(16px, 1.6vw, 22px);
  border-radius: 16px;
  background: var(--paper);
}

.tl-n {
  font-size: clamp(38px, 3.6vw, 54px);
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
}

.tl-w {
  margin-top: 4px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}

.tl-d {
  font-size: 14px;
  line-height: 1.45;
  color: var(--muted);
}

.ucards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 4px 0 20px;
}

.ucard {
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--card);
}

.ucard h3 {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
}

.ucard p {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--muted);
}

.pipe {
  display: flex;
  align-items: stretch;
  margin: 8px 0 18px;
}

.pipe-node {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 14px 15px;
  border-radius: 14px;
}

.pipe-node b {
  font-weight: 500;
  font-size: 15px;
  line-height: 1.25;
  color: var(--ink);
}

.pipe-node span {
  font-size: 13.5px;
  line-height: 1.4;
  color: var(--muted);
}

.pipe-node .pipe-num {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
}

.pipe-node.step {
  background: var(--accent-soft);
  border: 1.5px solid var(--accent);
}

.pipe-node.io {
  border: 1.5px dashed var(--rule-strong);
  align-items: center;
  text-align: center;
}

.pipe-arrow {
  position: relative;
  flex: 0 0 18px;
  align-self: center;
  height: 2px;
  margin: 0 5px;
  background: var(--faint);
}

.pipe-arrow::after {
  content: "";
  position: absolute;
  right: -1px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-top: 2px solid var(--faint);
  border-right: 2px solid var(--faint);
  transform: translateY(-50%) rotate(45deg);
}

.stages {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 4px 0 18px;
}

.stages .stage {
  padding: 18px 20px;
  border-radius: 14px;
  background: var(--card);
}

.stages .stage h3 {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0 0 8px;
  font-size: 15.5px;
  font-weight: 500;
  color: var(--ink);
}

.stage-n {
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
}

.stages .stage p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-2);
}

.prose ul.fine {
  padding-left: 18px;
}

.prose ul.fine li {
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}

.article-foot {
  margin: 0;
  padding-block: 18px 8px;
  border-top: 1px solid var(--rule);
  font-size: 13.5px;
  color: var(--muted);
}

@media (max-width: 760px) {
  .tl-stats,
  .ucards,
  .stages {
    grid-template-columns: minmax(0, 1fr);
  }

  .pipe {
    flex-direction: column;
  }

  .pipe-arrow {
    flex: 0 0 18px;
    width: 2px;
    height: auto;
    margin: 4px 0;
  }

  .pipe-arrow::after {
    right: auto;
    top: auto;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%) rotate(135deg);
  }
}
