:root {
  --bg: #ffffff;
  --surface: oklch(0.97 0 0);
  --text: oklch(0.2 0 0);
  --text-2: oklch(0.45 0 0);
  --text-3: oklch(0.56 0 0);
  --line: oklch(0 0 0 / 0.09);
  --accent: oklch(0.64 0.22 37);

  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Geist", ui-sans-serif, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --measure: 680px;
  --gutter: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: oklch(0.64 0.22 37 / 0.18); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

/* Type roles */
.label {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
}
.display {
  font-family: var(--serif);
  font-weight: 400;
  font-optical-sizing: auto;
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin: 0;
}
p { margin: 0; text-wrap: pretty; }

/* ---------- Top nav ---------- */
.topnav {
  display: flex; justify-content: center; gap: 28px;
  padding: 28px var(--gutter);
}
.topnav a { text-decoration: none; color: var(--text-2); transition: color 150ms ease; }
.topnav a:hover { color: var(--text); }

/* ---------- Home ---------- */
.hero {
  max-width: 720px; margin: 0 auto;
  padding: 96px var(--gutter) 80px;
  text-align: center;
  display: grid; gap: 20px; justify-items: center;
}
.hero h1 { font-size: clamp(36px, 5vw, 52px); line-height: 1.08; }
.hero h1 em { font-style: italic; }
.hero .sub { color: var(--text-2); max-width: 46ch; }

.work {
  max-width: 1160px; margin: 0 auto;
  padding: 0 var(--gutter) 120px;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 56px 28px;
}
.card { display: grid; gap: 14px; text-decoration: none; }
.card-media {
  aspect-ratio: 3 / 2; border-radius: 14px; overflow: hidden;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}
.card-media video { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms cubic-bezier(.2,.8,.2,1); }
a.card:hover .card-media video { transform: scale(1.015); }
.card-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.card-title { font-family: var(--serif); font-size: 21px; line-height: 1.3; letter-spacing: -0.01em; }
a.card .card-title { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 4px; transition: text-decoration-color 150ms ease; }
a.card:hover .card-title { text-decoration-color: var(--line); }
.card.soon { cursor: default; }
.card.soon .card-title { color: var(--text-2); }
.soon-media { display: grid; place-items: center; }
.tint-1 { background: oklch(0.95 0.025 330); }
.tint-2 { background: oklch(0.95 0.035 60); }
.tint-3 { background: oklch(0.96 0.04 95); }

.outro {
  max-width: 640px; margin: 0 auto;
  padding: 40px var(--gutter) 120px;
  text-align: center; display: grid; gap: 28px; justify-items: center;
  border-top: 1px solid var(--line);
  padding-top: 96px;
}
.outro p.display { font-size: clamp(24px, 3vw, 30px); line-height: 1.3; }
.links { display: flex; gap: 28px; flex-wrap: wrap; justify-content: center; }
.links a { text-decoration: none; color: var(--text-2); transition: color 150ms ease; }
.links a:hover { color: var(--text); }

/* ---------- Case study ---------- */
.cs {
  max-width: 1160px; margin: 0 auto;
  padding: 32px var(--gutter) 120px;
  display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 48px;
}
.side { position: sticky; top: 32px; align-self: start; display: grid; gap: 40px; }
.side a { text-decoration: none; }
.toc { display: grid; gap: 14px; list-style: none; margin: 0; padding: 0; }
.toc a { color: var(--text-3); transition: color 150ms ease; display: inline-flex; align-items: center; gap: 10px; }
.toc a::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: transparent; transition: background 150ms ease; }
.toc a:hover { color: var(--text-2); }
.toc a.active { color: var(--text); }
.toc a.active::before { background: var(--accent); }
.back { color: var(--text-2); }
.back:hover { color: var(--text); }

.cs-main { max-width: 820px; }
.cs-hero { border-radius: 16px; overflow: hidden; background: var(--surface); aspect-ratio: 16 / 9; }
.cs-hero video { width: 100%; height: 100%; object-fit: cover; }

.col { max-width: var(--measure); }
.intro { margin-top: 56px; display: grid; gap: 14px; }
.intro h1 { font-size: clamp(34px, 4.4vw, 46px); line-height: 1.1; }
.intro .lede { color: var(--text-2); font-size: 19px; line-height: 1.55; }

.meta {
  margin-top: 36px; padding: 20px 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px;
}
.meta div { display: grid; gap: 6px; }
.meta p { font-size: 15px; line-height: 1.5; }

section.block { margin-top: 96px; scroll-margin-top: 32px; }
section.block > .label { display: block; margin-bottom: 16px; }
section.block h2 { font-size: clamp(28px, 3.4vw, 34px); line-height: 1.15; margin-bottom: 18px; }
.prose { display: grid; gap: 1.65em; }
.tldr { margin-top: 56px; }

.callout {
  margin-top: 36px; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 24px; align-items: start;
}
.callout img { width: 56px; image-rendering: auto; }
.callout p { font-family: var(--serif); font-size: 22px; line-height: 1.4; letter-spacing: -0.01em; }
.callout strong { font-weight: 500; font-style: italic; }

.sub-head { margin-top: 64px; }
.sub-head h3 { font-family: var(--serif); font-weight: 400; font-size: 26px; line-height: 1.2; letter-spacing: -0.015em; margin: 0 0 12px; }

.steps {
  list-style: none; margin: 32px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px;
  counter-reset: step;
}
.steps li { display: grid; gap: 8px; align-content: start; padding-top: 16px; border-top: 1px solid var(--line); counter-increment: step; }
.steps li::before { content: "0" counter(step); font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; color: var(--accent); }
.steps h4 { margin: 0; font-size: 16px; font-weight: 500; line-height: 1.4; }
.steps p { font-size: 15px; line-height: 1.6; color: var(--text-2); }

.stats { margin-top: 32px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.stat { padding: 28px; border-radius: 14px; background: var(--surface); display: grid; gap: 6px; }
.stat .num { font-family: var(--serif); font-size: 64px; line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums lining-nums; }
.stat h4 { margin: 12px 0 0; font-size: 16px; font-weight: 500; }
.stat p { font-size: 14px; line-height: 1.5; color: var(--text-2); }

.heard { margin-top: 32px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.heard article { padding: 24px; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line); display: grid; gap: 12px; align-content: start; }
.heard img { width: 52px; height: auto; }
.heard h4 { margin: 0; font-size: 16px; font-weight: 500; }
.heard p { font-size: 15px; line-height: 1.6; color: var(--text-2); }

.footer-cs { margin-top: 120px; padding-top: 32px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; }
.footer-cs a { text-decoration: none; color: var(--text-2); }
.footer-cs a:hover { color: var(--text); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .cs { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .side { position: static; }
  .toc { display: none; }
}
@media (max-width: 720px) {
  .work { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .hero { padding: 56px var(--gutter) 56px; }
  .meta, .steps, .stats, .heard { grid-template-columns: minmax(0, 1fr); }
  .steps { gap: 24px; }
  .card-meta { flex-direction: column; gap: 4px; }
  section.block { margin-top: 72px; }
}

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