/* Caio Arruda, portfolio. P7 palette, four type families (caio-brand).
   Legibility rules, from the 2026-10-20 audits, rescaled 2026-10-21 ("feels zoomed in" on a 14-inch screen):
   - Type is fluid: body 17px on phones, 18px on wide screens. Nothing under 14px.
   - Proof is set big: every case leads with a number, never at body size.
   - Brass never carries text (2.78:1 on cream). Ink does. Brass stays for rules, markers, underlines.
   - Sienna once per page. Forest takes cream type only. */
:root {
  --cream: #F1ECE2;
  --paper: #FAF7F0;
  --ink: #1B1B1A;
  --ink-2: #3A3A38;   /* secondary text, 10.6:1 on cream */
  --forest: #2D3F33;
  --forest-2: #24342A;
  --brass: #A88A4F;
  --sienna: #B14A2C;
  --steel: #5A5A5A;   /* 5.9:1 on cream, labels only */
  --rule: #C9C0AE;
  --on-forest: #DCD5C6; /* secondary text on forest, 8.9:1 */

  --f-display: "Space Grotesk", system-ui, sans-serif;
  --f-body: "Inter", system-ui, sans-serif;
  --f-serif: "Source Serif 4", Georgia, serif;
  --f-mono: "Space Mono", ui-monospace, monospace;

  --fs-body: clamp(17px, 0.1vw + 16px, 18px);
  --fs-lede: clamp(19px, 0.35vw + 14px, 22px);
  --fs-small: clamp(15px, 0.1vw + 14px, 16px);
  --fs-label: 14px;
  --fs-h1: clamp(38px, 4.2vw, 68px);
  --fs-h1-case: clamp(32px, 3.2vw, 52px);
  --fs-h2: clamp(26px, 2.3vw, 38px);
  --fs-h3: clamp(20px, 1.4vw, 25px);
  --fs-num: clamp(34px, 2.9vw, 50px);

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1320px;
  --head-h: 60px;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(27,27,26,.08), 0 18px 48px rgba(27,27,26,.16);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--head-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 var(--fs-body)/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; text-decoration-color: var(--brass); text-decoration-thickness: 2px; text-underline-offset: 4px; }
a:hover { text-decoration-color: var(--ink); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.band :focus-visible, .stage--forest :focus-visible, .site-foot :focus-visible { outline-color: var(--cream); }
::selection { background: var(--forest); color: var(--cream); }
p { margin: 0 0 1em; }

.skip { position: absolute; left: 16px; top: -100px; background: var(--ink); color: var(--cream); padding: 12px 16px; z-index: 50; font-weight: 600; }
.skip:focus { top: 16px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* Labels, the hardware-tag voice. Short labels only, never sentences. */
.tag {
  font: 400 var(--fs-label)/1.45 var(--f-mono);
  letter-spacing: 0.03em; text-transform: uppercase; color: var(--steel);
}
.tag b { color: var(--ink); font-weight: 700; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 700 var(--fs-label)/1.45 var(--f-mono); letter-spacing: 0.03em; text-transform: uppercase;
  color: var(--ink); margin: 0;
}
.eyebrow::before { content: ""; width: 10px; height: 10px; background: var(--brass); flex: none; }
.confirm { background: #F3D9A8; color: var(--ink); padding: 0 6px; font: 700 14px/1.6 var(--f-mono); text-transform: uppercase; }

/* ---------- Header, sticky ---------- */
/* Ink bar, so the sticky header reads as a frame when it sits over cream content */
.site-head {
  position: sticky; top: 0; z-index: 30;
  background: var(--ink); color: var(--cream);
  border-bottom: 1px solid #000;
}
.site-head :focus-visible { outline-color: var(--cream); }
.site-head ::selection { background: var(--cream); color: var(--ink); }
.site-head .badge { background: var(--cream); color: var(--ink); }
.head-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--head-h); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-height: 44px; }
.badge {
  width: 42px; height: 42px; display: grid; place-items: center;
  background: var(--ink); color: var(--cream);
  font: 700 17px/1 var(--f-display); letter-spacing: 0.02em;
}
.wordmark { font: 600 15px/1 var(--f-body); letter-spacing: 0.18em; text-transform: uppercase; }
.nav { display: flex; gap: 2px; }
.nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
  font: 600 17px/1 var(--f-body); text-decoration: none;
}
.nav a:hover, .nav a[aria-current] { text-decoration: underline; text-decoration-color: var(--brass); text-decoration-thickness: 3px; text-underline-offset: 8px; }
@media (max-width: 560px) {
  :root { --head-h: 64px; }
  .wordmark { display: none; }
  .nav a { padding: 0 10px; font-size: 16px; }
}

/* ---------- Home hero ---------- */
.hero { padding: clamp(48px, 8vw, 120px) 0 clamp(40px, 5vw, 72px); }
.hero-grid { display: grid; gap: 36px; }
.hero h1 { font: 700 var(--fs-h1)/0.98 var(--f-display); letter-spacing: -0.035em; margin: 22px 0 0; }
.hero h1 .accent { color: var(--sienna); }
.hero .lede { font-size: var(--fs-lede); line-height: 1.45; margin: 0; }
.hero-side { border-left: 3px solid var(--brass); padding-left: 24px; align-self: end; }
.hero-side dl { margin: 24px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; }
.hero-side dt { font: 400 var(--fs-label)/1.75 var(--f-mono); text-transform: uppercase; color: var(--steel); }
.hero-side dd { margin: 0; font-size: var(--fs-small); line-height: 1.5; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 7fr 4fr; gap: 72px; } }

/* Proof strip: the numbers a scanner should leave with */
.proof-strip { list-style: none; margin: clamp(40px, 5vw, 72px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); border-top: 2px solid var(--ink); }
.proof-strip li { padding: 20px 16px 4px 0; }
.proof-strip .num { display: block; font: 700 var(--fs-num)/1 var(--f-display); letter-spacing: -0.035em; }
.proof-strip .num small { font-size: 0.42em; letter-spacing: 0; }
.proof-strip .what { display: block; margin-top: 10px; font-size: var(--fs-small); line-height: 1.45; color: var(--ink-2); max-width: 26ch; }
@media (min-width: 960px) {
  .proof-strip { grid-template-columns: repeat(4, 1fr); }
  .proof-strip li + li { padding-left: 24px; border-left: 1px solid var(--rule); }
}
.worked { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 22px; margin: 36px 0 0; padding: 18px 0 0; border-top: 1px solid var(--rule); }
.worked .tag b { font-size: 16px; }

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 8vw, 120px) 0; border-top: 1px solid var(--rule); }
.section-head { display: grid; gap: 14px; margin-bottom: clamp(32px, 4vw, 56px); }
.section-head h2 { font: 700 var(--fs-h2)/1.05 var(--f-display); letter-spacing: -0.025em; margin: 0; max-width: 22ch; }
.section-head p { margin: 0; max-width: 56ch; color: var(--ink-2); }
@media (min-width: 960px) { .section-head { grid-template-columns: 3fr 8fr; align-items: baseline; gap: 48px; } }

/* ---------- Work list: text left, product right. An asymmetric list, not a card grid ---------- */
.work { list-style: none; margin: 0; padding: 0; }
.work-item { display: grid; gap: 24px 56px; padding: clamp(32px, 4vw, 56px) 0; border-top: 1px solid var(--rule); text-decoration: none; }
.work li:last-child .work-item { border-bottom: 1px solid var(--rule); }
.work-item .meta { display: flex; flex-wrap: wrap; gap: 4px 18px; align-items: baseline; }
.work-item h3 { font: 700 var(--fs-h3)/1.12 var(--f-display); letter-spacing: -0.015em; margin: 14px 0 12px; max-width: 22ch; }
.work-item .sum { color: var(--ink-2); max-width: 44ch; margin: 0; }
.work-item .proof { margin: 24px 0 0; padding-top: 18px; border-top: 2px solid var(--ink); max-width: 30ch; }
.work-item .proof .num { display: block; font: 700 var(--fs-num)/1 var(--f-display); letter-spacing: -0.035em; }
.work-item .proof .num small { font-size: 0.42em; letter-spacing: 0; }
.work-item .proof .what { display: block; margin-top: 8px; font-size: var(--fs-small); line-height: 1.45; color: var(--ink-2); }
.work-item .go { display: inline-flex; align-items: center; min-height: 44px; margin-top: 16px; font-weight: 600; text-decoration: underline; text-decoration-color: var(--brass); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.work-item:hover h3 { text-decoration: underline; text-decoration-color: var(--brass); text-decoration-thickness: 3px; text-underline-offset: 8px; }
.work-item .visual { border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 10; background: var(--forest); position: relative; }
.work-item .visual > img { width: 100%; height: 100%; object-fit: cover; }
@media (prefers-reduced-motion: no-preference) {
  .work-item .visual > * { transition: transform .5s cubic-bezier(.2,.7,.2,1); }
  .work-item:hover .visual > * { transform: scale(1.025); }
}
@media (min-width: 960px) {
  .work-item { grid-template-columns: 5fr 6fr; align-items: center; }
}

/* Thumbnail compositions (CSS, so they stay sharp) */
.thumb-stage { position: absolute; inset: 0; display: grid; place-items: center; padding: 7%; background: radial-gradient(120% 90% at 20% 0%, #3A5142 0%, var(--forest) 55%, var(--forest-2) 100%); }
.thumb-stage > img { max-height: 100%; width: auto; border-radius: 8px; box-shadow: var(--shadow); }
.thumb-stage .browser { width: 100%; }
.thumb-phones { display: flex; gap: 4%; align-items: center; justify-content: center; height: 100%; }
.thumb-phones img { height: 100%; width: auto; border-radius: 18px; box-shadow: var(--shadow); }
.thumb-phones img:nth-child(2) { height: 108%; }
.thumb-metric { position: absolute; inset: 0; display: grid; align-content: center; gap: 18px; padding: 8%; color: var(--cream); background: radial-gradient(120% 90% at 80% 0%, #3A5142 0%, var(--forest) 55%, var(--forest-2) 100%); }
.thumb-metric .big { font: 700 clamp(44px, 6vw, 92px)/0.95 var(--f-display); letter-spacing: -0.04em; }
.thumb-metric .big span { color: var(--on-forest); font-weight: 500; }
.thumb-metric .rail { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.thumb-metric .rail i { height: 8px; background: rgba(241,236,226,.28); border-radius: 4px; }
.thumb-metric .rail i:last-child { background: var(--cream); }
.thumb-metric .tag { color: var(--on-forest); }

/* ---------- Frames: product screens shown as objects, not pasted images ---------- */
.stage { border-radius: calc(var(--radius) + 4px); padding: clamp(18px, 4.5vw, 64px); margin: 8px 0 12px; overflow: hidden; }
.stage--forest { background: radial-gradient(130% 100% at 15% 0%, #3A5142 0%, var(--forest) 50%, var(--forest-2) 100%); color: var(--cream); }
.stage--paper { background: var(--paper); border: 1px solid var(--rule); }
.stage--wide { margin-left: calc(-1 * clamp(0px, 2vw, 32px)); margin-right: calc(-1 * clamp(0px, 2vw, 32px)); }
.browser { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.browser .bar { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px; background: #EDE8DD; border-bottom: 1px solid #DCD4C4; }
.browser .bar i { width: 11px; height: 11px; border-radius: 50%; background: #CFC6B4; flex: none; }
.browser .bar span { margin-left: 10px; flex: 1; max-width: 360px; height: 22px; border-radius: 6px; background: #F8F5EE; font: 400 14px/22px var(--f-mono); color: #6A6A66; padding: 0 10px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.browser img { width: 100%; height: auto; }
.shot-figure { margin: 0 0 clamp(28px, 3vw, 40px); }
.shot-figure figcaption, .stage-caption { margin-top: 14px; font-size: var(--fs-small); line-height: 1.5; color: var(--ink-2); max-width: 64ch; }
.stage--forest figcaption { color: var(--on-forest); }

/* Layered: a detail floats over the full screen */
.layered { position: relative; }
.layered .inset { position: absolute; left: -2%; bottom: -6%; width: 46%; border-radius: 8px; box-shadow: 0 24px 60px rgba(0,0,0,.35); background: #fff; }
@media (max-width: 720px) { .layered .inset { position: static; width: 100%; margin-top: 16px; } }

/* Phones */
.phones { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr); gap: clamp(16px, 3vw, 40px); overflow-x: auto; padding: 6px 4px 14px; scroll-snap-type: x mandatory; }
.phones figure { margin: 0; scroll-snap-align: start; }
.phones img { width: 100%; height: auto; border-radius: 30px; box-shadow: var(--shadow); background: #fff; }
.phones figcaption { margin-top: 14px; font-size: var(--fs-small); color: inherit; }
.stage--forest .phones figcaption { color: var(--on-forest); }
.swipe-hint { font-size: var(--fs-small); color: var(--on-forest); margin: 0 0 12px; }
@media (min-width: 960px) { .swipe-hint { display: none; } .phones { overflow: visible; } }

/* Flow diagram, built in HTML so it reflows */
.flow { display: grid; gap: 10px; grid-template-columns: 1fr; counter-reset: step; }
.flow .step { background: rgba(241,236,226,.07); border: 1px solid rgba(241,236,226,.22); border-radius: 8px; padding: 18px; }
.flow .step .tag { color: var(--on-forest); }
.flow .step b { display: block; font: 700 clamp(19px, 1.4vw, 23px)/1.25 var(--f-display); margin-top: 6px; }
.flow .step p { margin: 8px 0 0; font-size: var(--fs-small); line-height: 1.5; color: var(--on-forest); }
.flow .step.is-human { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.flow .step.is-human p, .flow .step.is-human .tag { color: var(--ink-2); }
@media (min-width: 1000px) { .flow { grid-template-columns: repeat(5, 1fr); } }

/* ---------- Case pages ---------- */
.case-hero { padding: clamp(40px, 6vw, 88px) 0 clamp(28px, 3vw, 44px); display: grid; gap: 32px; }
.case-hero h1 { font: 700 var(--fs-h1-case)/1.02 var(--f-display); letter-spacing: -0.03em; margin: 18px 0 22px; max-width: 18ch; }
.case-hero .lede { font-size: var(--fs-lede); line-height: 1.45; max-width: 46ch; margin: 0; }
@media (min-width: 1080px) { .case-hero { grid-template-columns: 7fr 4fr; gap: 72px; align-items: end; } }

/* The short version, for the reader who gives the page ten seconds */
.short { margin: 0; display: grid; gap: 0; border-top: 2px solid var(--ink); }
.short div { padding: 14px 0; border-bottom: 1px solid var(--rule); }
.short dt { font: 700 var(--fs-label)/1.4 var(--f-mono); text-transform: uppercase; letter-spacing: 0.03em; }
.short dd { margin: 6px 0 0; font-size: var(--fs-small); line-height: 1.5; color: var(--ink-2); }

.status { display: inline-flex; align-items: center; gap: 10px; margin-top: 24px; padding: 8px 14px; background: var(--paper); border: 1px solid var(--rule); font: 600 var(--fs-small)/1.3 var(--f-body); }
.status::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--sienna); flex: none; }

.specs { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--rule); margin: 0; }
.specs div { padding: 14px 0; border-bottom: 1px solid var(--rule); }
.specs dt { font: 400 var(--fs-label)/1.4 var(--f-mono); text-transform: uppercase; letter-spacing: 0.03em; color: var(--steel); }
.specs dd { margin: 6px 0 0; font: 500 var(--fs-small)/1.45 var(--f-body); }
@media (min-width: 640px) {
  .specs { grid-template-columns: repeat(2, 1fr); border-left: 1px solid var(--rule); }
  .specs div { padding: 14px 18px; border-right: 1px solid var(--rule); }
}
@media (min-width: 1000px) { .specs { grid-template-columns: repeat(4, 1fr); } }

.kpis { display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); margin: clamp(28px, 4vw, 56px) 0; }
.kpi { background: var(--paper); padding: clamp(20px, 2.4vw, 32px); }
.kpi .num { font: 700 var(--fs-num)/1 var(--f-display); letter-spacing: -0.035em; }
.kpi .num small { font-size: 0.42em; letter-spacing: 0; color: var(--ink-2); }
.kpi p { margin: 12px 0 0; font-size: var(--fs-small); line-height: 1.5; color: var(--ink-2); }
@media (min-width: 720px) { .kpis { grid-template-columns: repeat(3, 1fr); } }

.story { display: grid; gap: 12px 56px; padding: clamp(40px, 5vw, 72px) 0; border-top: 1px solid var(--rule); }
.story > * { min-width: 0; }
.story > h2 { align-self: start; }
.story h3 { font: 700 var(--fs-h3)/1.2 var(--f-display); letter-spacing: -0.01em; margin: 0 0 18px; max-width: 30ch; }
.story p, .story li { max-width: 66ch; }
.story ul, .story ol { margin: 0 0 1em; padding-left: 22px; }
.story li { margin-bottom: 10px; }
@media (min-width: 960px) {
  .story { grid-template-columns: 3fr 8fr; }
  .story > h2 { position: sticky; top: calc(var(--head-h) + 28px); }
}

.pull { font: italic 400 clamp(25px, 2.5vw, 38px)/1.3 var(--f-serif); border-left: 3px solid var(--brass); padding-left: 24px; margin: 6px 0 28px; max-width: 32ch; }

.figure { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); padding: clamp(16px, 3vw, 32px); margin: 8px 0 28px; }
.figure figcaption { margin-top: 16px; font-size: var(--fs-small); color: var(--ink-2); }

/* Data table, for results the source stated as a table */
.results { width: 100%; border-collapse: collapse; margin: 8px 0 28px; font-size: var(--fs-small); }
.results th, .results td { text-align: left; padding: 14px 16px 14px 0; border-bottom: 1px solid var(--rule); }
.results thead th { font: 700 var(--fs-label)/1.4 var(--f-mono); text-transform: uppercase; letter-spacing: 0.03em; border-bottom: 2px solid var(--ink); }
.results td.n { font: 700 clamp(22px, 1.8vw, 28px)/1 var(--f-display); }

.next { display: grid; gap: 24px; padding: 40px 0 64px; border-top: 1px solid var(--rule); }
.next a { text-decoration: none; display: block; padding: 6px 0; }
.next a b { display: block; font: 700 clamp(22px, 1.8vw, 28px)/1.25 var(--f-display); margin-top: 6px; text-decoration: underline; text-decoration-color: var(--brass); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.next a:last-child { text-align: right; }
@media (min-width: 720px) { .next { grid-template-columns: 1fr 1fr; } }

/* ---------- Forest band (About) ---------- */
.band { background: var(--forest); color: var(--cream); }
.band .tag { color: var(--on-forest); }
.band .eyebrow { color: var(--cream); }
.band a { color: var(--cream); }
.quote { font: italic 400 clamp(28px, 3.2vw, 48px)/1.22 var(--f-serif); margin: 0; max-width: 22ch; }
.about-grid { display: grid; gap: 40px; }
.about-grid p { max-width: 60ch; }
@media (min-width: 960px) { .about-grid { grid-template-columns: 5fr 7fr; gap: 72px; } }
.portrait { margin: 24px 0 32px; max-width: 420px; }
.portrait img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); }
.timeline { list-style: none; margin: 32px 0 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 14px 0; border-top: 1px solid rgba(220,213,198,.35); font-size: var(--fs-small); }

/* ---------- Talks ---------- */
.talk-feature { display: grid; gap: 28px 56px; text-decoration: none; padding-bottom: clamp(32px, 4vw, 56px); }
.talk-feature .photo { border-radius: var(--radius); overflow: hidden; aspect-ratio: 3 / 2; }
.talk-feature .photo img { width: 100%; height: 100%; object-fit: cover; }
.talk-feature h3, .talk-feature h2 { font: 700 clamp(30px, 3.2vw, 52px)/1.04 var(--f-display); letter-spacing: -0.025em; margin: 14px 0 16px; }
.talk-feature p { color: var(--ink-2); max-width: 46ch; }
.talk-feature:hover h3, .talk-feature:hover h2 { text-decoration: underline; text-decoration-color: var(--brass); text-decoration-thickness: 3px; text-underline-offset: 8px; }
@media (min-width: 960px) { .talk-feature { grid-template-columns: 7fr 5fr; align-items: center; } }

.talk-list { list-style: none; margin: 0; padding: 0; }
.talk-row { display: grid; grid-template-columns: 112px 1fr; gap: 16px 20px; align-items: center; padding: 18px 0; border-top: 1px solid var(--rule); text-decoration: none; }
.talk-list li:last-child .talk-row { border-bottom: 1px solid var(--rule); }
.talk-row .tn { aspect-ratio: 16 / 10; border-radius: 6px; overflow: hidden; background: var(--forest); display: grid; place-items: center; }
.talk-row .tn img { width: 100%; height: 100%; object-fit: cover; }
.talk-row .tn .tn-label { font: 700 14px/1.2 var(--f-mono); color: var(--cream); text-transform: uppercase; text-align: center; padding: 6px; letter-spacing: .04em; }
.talk-row h3, .talk-row h2 { font: 600 clamp(19px, 1.5vw, 24px)/1.3 var(--f-display); margin: 0 0 4px; }
.talk-row:hover h3, .talk-row:hover h2 { text-decoration: underline; text-decoration-color: var(--brass); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.talk-row .has { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; font: 700 14px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .04em; padding: 7px 9px; border: 1px solid var(--rule); border-radius: 4px; background: var(--paper); color: var(--ink); }
@media (min-width: 720px) { .talk-row { grid-template-columns: 200px 1fr auto; } .talk-row .has { margin: 0; justify-content: flex-end; } }

.talk-hero { padding: clamp(40px, 6vw, 88px) 0 clamp(24px, 3vw, 40px); }
.talk-hero h1 { font: 700 var(--fs-h1-case)/1.02 var(--f-display); letter-spacing: -0.03em; margin: 18px 0 22px; max-width: 20ch; }
.talk-hero .lede { font-size: var(--fs-lede); line-height: 1.45; max-width: 46ch; margin: 0; }
.talk-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 20px; border-radius: 6px; font: 600 var(--fs-small)/1 var(--f-body); text-decoration: none; border: 2px solid var(--ink); }
.btn--solid { background: var(--ink); color: var(--cream); }
.btn--solid:hover { background: var(--forest); border-color: var(--forest); }
.btn--line:hover { background: var(--paper); }
.cover { border-radius: var(--radius); overflow: hidden; margin: 8px 0 clamp(28px, 4vw, 48px); position: relative; }
.cover img { width: 100%; height: auto; }
.cover figcaption { position: absolute; left: 0; bottom: 0; padding: 10px 14px; font: 400 14px/1.3 var(--f-mono); color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.55)); width: 100%; }
.video { display: block; position: relative; border-radius: var(--radius); overflow: hidden; margin: 8px 0 clamp(28px, 4vw, 48px); text-decoration: none; }
.video img { width: 100%; height: auto; }
.video .play { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(27,27,26,.18); }
.video .play span { display: inline-flex; align-items: center; gap: 12px; padding: 14px 22px; border-radius: 999px; background: var(--ink); color: var(--cream); font: 600 var(--fs-small)/1 var(--f-body); box-shadow: var(--shadow); }
.video .play span::before { content: ""; border-left: 14px solid var(--cream); border-top: 9px solid transparent; border-bottom: 9px solid transparent; }
.video:hover .play span { background: var(--forest); }

.ideas { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.ideas li { background: var(--paper); padding: clamp(20px, 2.4vw, 32px); }
.ideas b { display: block; font: 700 clamp(22px, 1.8vw, 28px)/1.2 var(--f-display); margin: 8px 0 10px; }
.ideas p { margin: 0; font-size: var(--fs-small); color: var(--ink-2); }
@media (min-width: 900px) { .ideas { grid-template-columns: repeat(3, 1fr); } }

.gallery { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
.gallery figure { margin: 0; border-radius: 8px; overflow: hidden; }
.gallery img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3 / 2; }
.gallery .tall img { aspect-ratio: 2 / 3; }
.gallery .wide { grid-column: 1 / -1; }
.photo-credit { margin-top: 12px; font-size: var(--fs-small); color: var(--ink-2); }

.also { margin-top: 28px; font-size: var(--fs-small); color: var(--ink-2); }

/* ---------- Footer, the call to action ---------- */
.site-foot { background: var(--ink); color: var(--cream); margin-top: 0; }
.site-foot .wrap { padding-top: clamp(56px, 7vw, 104px); padding-bottom: 40px; }
.foot-cta { font: 700 clamp(34px, 4.6vw, 72px)/1.02 var(--f-display); letter-spacing: -0.03em; margin: 18px 0 28px; max-width: 18ch; }
.site-foot .eyebrow { color: var(--cream); }
.site-foot .links { display: flex; flex-wrap: wrap; gap: 12px; }
.site-foot .btn { border-color: var(--cream); color: var(--cream); }
.site-foot .btn--solid { background: var(--cream); color: var(--ink); }
.site-foot .btn--solid:hover { background: var(--brass); border-color: var(--brass); color: var(--ink); }
.site-foot .btn--line:hover { background: rgba(241,236,226,.1); }
.foot-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: clamp(48px, 6vw, 88px); padding-top: 20px; border-top: 1px solid rgba(241,236,226,.2); }
.foot-meta .tag { color: var(--on-forest); }

/* ---------- Thumbnail and illustration pieces ---------- */
.thumb-stage.is-paper { background: var(--paper); }
.thumb-stage.is-paper > img { box-shadow: none; border-radius: 0; }
.thumb-flow { position: absolute; inset: 0; display: grid; align-content: center; gap: clamp(5px, .8vw, 10px); padding: 6% 12%; background: radial-gradient(120% 90% at 80% 0%, #3A5142 0%, var(--forest) 55%, var(--forest-2) 100%); }
.thumb-flow span { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: clamp(6px, .9vw, 12px) clamp(10px, 1.2vw, 16px); border: 1px solid rgba(241,236,226,.25); border-radius: 8px; background: rgba(241,236,226,.06); color: var(--cream); font: 600 clamp(14px, 1.25vw, 19px)/1.2 var(--f-display); }
.thumb-flow span small { font: 400 14px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .04em; color: var(--on-forest); }
.thumb-flow span.is-human { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.thumb-flow span.is-human small { color: var(--ink-2); }
@media (max-width: 420px) { .thumb-flow span small { display: none; } }

/* Scan This Table: a table tent with a code, and the phone that answers */
.scan-illus { display: flex; align-items: center; justify-content: center; gap: clamp(16px, 4vw, 56px); width: 100%; }
.scan-illus .tent { background: var(--paper); color: var(--ink); border-radius: 10px; padding: clamp(14px, 2vw, 28px); display: grid; justify-items: center; gap: 10px; box-shadow: var(--shadow); transform: rotate(-3deg); }
.scan-illus .tent img { width: clamp(72px, 12vw, 180px); height: auto; }
.scan-illus .tent-title { font: 700 clamp(15px, 1.6vw, 26px)/1.1 var(--f-display); }
.scan-illus .tent-id { font: 700 14px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .05em; color: var(--steel); }
.scan-illus .mini-phone { width: clamp(130px, 20vw, 260px); aspect-ratio: 9 / 17; background: var(--paper); color: var(--ink); border: clamp(6px, .8vw, 10px) solid var(--ink); border-radius: clamp(20px, 2.6vw, 36px); padding: clamp(14px, 2vw, 26px) clamp(10px, 1.4vw, 20px); display: grid; align-content: start; gap: 10px; box-shadow: var(--shadow); }
.scan-illus .mini-phone b { font: 700 clamp(17px, 1.8vw, 28px)/1.1 var(--f-display); }
.scan-illus .mini-phone b::before { content: ""; display: block; width: 14px; height: 14px; border-radius: 50%; background: #3F8F5A; margin-bottom: 10px; }
.scan-illus .mini-btn { margin-top: 8px; display: inline-block; justify-self: start; background: var(--ink); color: var(--cream); font: 600 clamp(14px, 1.1vw, 16px)/1 var(--f-body); padding: 10px 14px; border-radius: 6px; }
.scan-illus.is-small .tent img { width: clamp(58px, 7vw, 110px); }
.scan-illus.is-small .mini-phone { width: clamp(96px, 12vw, 170px); }
.scan-illus.is-small .tent-title { font-size: clamp(14px, 1.1vw, 18px); }
.scan-illus.is-small .mini-phone b { font-size: clamp(14px, 1.2vw, 20px); }
.scan-illus.is-small .mini-btn { padding: 7px 10px; font-size: 14px; }
.scan-illus.is-small .tent-id, .scan-illus.is-small .mini-phone .tag { font-size: 14px; }
.mini-phone .tag { font-size: 14px; }
.more-link { margin: 28px 0 0; }

/* ---------- Talk pages ---------- */
.block { padding: clamp(40px, 5vw, 72px) 0; border-top: 1px solid var(--rule); }
.block > h2.eyebrow { margin-bottom: clamp(20px, 2.4vw, 32px); }
.ideas--four { }
@media (min-width: 900px) { .ideas--four { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .ideas--four { grid-template-columns: repeat(4, 1fr); } }
.ideas .tag { color: var(--steel); }
.cover--type { background: radial-gradient(130% 100% at 15% 0%, #3A5142 0%, var(--forest) 50%, var(--forest-2) 100%); color: var(--cream); padding: clamp(28px, 6vw, 88px); aspect-ratio: 21 / 9; display: grid; align-content: end; gap: 14px; }
.cover--type .tag { color: var(--on-forest); }
.cover--type b { font: 700 clamp(30px, 4.4vw, 68px)/1.02 var(--f-display); letter-spacing: -0.03em; max-width: 18ch; }
@media (max-width: 640px) { .cover--type { aspect-ratio: 4 / 3; } }
.questions { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 2px solid var(--ink); }
.questions li { padding: 20px 0; border-bottom: 1px solid var(--rule); font: italic 400 clamp(21px, 1.8vw, 28px)/1.35 var(--f-serif); }
.questions li .tag { display: block; font-style: normal; margin-bottom: 6px; }
.shot-pair { display: grid; gap: 20px; }
@media (min-width: 880px) { .shot-pair { grid-template-columns: 1fr 1fr; align-items: start; } }
.subtitle { font: 500 var(--fs-small)/1.4 var(--f-body); color: var(--ink-2); margin: -8px 0 18px; }
.talk-row .sub { display: block; font-size: var(--fs-small); color: var(--ink-2); margin-top: 2px; }

/* Thumbnail fit: definite boxes so images never overflow the 16:10 frame */
.thumb-stage > img { position: absolute; inset: 7%; width: 86%; height: 86%; object-fit: contain; max-height: none; }
.thumb-stage.is-paper > img { inset: 5%; width: 90%; height: 90%; }
.thumb-stage .thumb-phones { position: absolute; inset: 9% 6%; height: auto; }
.thumb-stage .thumb-phones img { height: 100%; }
.thumb-stage .thumb-phones img:nth-child(2) { height: 112%; }
.thumb-stage.is-peek { place-items: start center; padding: 7% 7% 0; }
.thumb-stage.is-peek .browser { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.work-item h3 { font-size: clamp(28px, 2.5vw, 40px); }
.go { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; text-decoration: underline; text-decoration-color: var(--brass); text-decoration-thickness: 2px; text-underline-offset: 6px; }
/* Layered figure: the detail sits bottom-right, clear of the banner at the top of the screen */
@media (min-width: 721px) {
  .layered { margin-bottom: clamp(28px, 5vw, 64px); }
  .layered .inset { left: auto; right: -3%; bottom: -14%; width: 28%; }
}
@media (max-width: 959px) { .work-item .visual { order: -1; } }

/* ---------- Round 3 (2026-10-21) ---------- */
/* Text selection must stay visible on dark surfaces (the global rule is forest on forest there) */
.band ::selection, .site-foot ::selection, .stage--forest ::selection, .cover--type ::selection, .thumb-flow ::selection { background: var(--cream); color: var(--ink); }

/* Prototype labels: say plainly that these are not the production screens */
.bar-chip { margin-left: auto; font: 700 13px/1 var(--f-mono); font-size: 14px; font-style: normal; text-transform: uppercase; letter-spacing: .05em; color: var(--ink); background: #F3D9A8; border-radius: 4px; padding: 4px 7px; }
.proto-chip { position: absolute; top: 12px; left: 12px; z-index: 2; font: 700 14px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .05em; color: var(--ink); background: #F3D9A8; border-radius: 4px; padding: 6px 8px; }

/* Phones captured whole on transparent backgrounds: the PNG carries the phone's own corners */
.phones--device img, .thumb-stage .thumb-phones img { border-radius: 0; box-shadow: none; background: transparent; filter: drop-shadow(0 18px 30px rgba(0,0,0,.35)); }
.thumb-stage .thumb-phones { inset: 6% 4%; gap: 1%; }

/* Product photos on a light stage */
.stage--paper > img.center-img { margin: 0 auto; max-height: 640px; width: auto; }

/* Talk photos */
.gallery--pair { margin: 8px 0 clamp(28px, 4vw, 48px); }
.gallery--pair img { aspect-ratio: 3 / 4; }
.split-cover { display: grid; gap: 12px; margin: 8px 0 clamp(28px, 4vw, 48px); }
.split-cover .cover { margin: 0; }
.split-cover .cover img { height: 100%; object-fit: cover; aspect-ratio: 3 / 4; }
.split-cover .cover--type { aspect-ratio: auto; }
@media (min-width: 860px) { .split-cover { grid-template-columns: 5fr 7fr; } }

/* Writing: a two-column list of articles, each with its language links */
.articles { list-style: none; margin: 0; padding: 0; display: grid; gap: 0 56px; border-top: 1px solid var(--rule); }
.article { padding: 22px 0; border-bottom: 1px solid var(--rule); display: grid; gap: 8px; align-content: start; }
.article h3 { font: 600 clamp(20px, 1.6vw, 25px)/1.3 var(--f-display); margin: 0; }
.article h3 a { text-decoration: none; }
.article h3 a:hover { text-decoration: underline; text-decoration-color: var(--brass); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.article .links { display: flex; flex-wrap: wrap; gap: 8px; }
.article .links .chip { min-height: 32px; text-decoration: none; }
.article .links .chip:hover { border-color: var(--ink); }
.chip--soft { background: transparent; }
@media (min-width: 900px) { .articles { grid-template-columns: 1fr 1fr; } }
/* Talk thumbnails: fill the 16:10 box whatever the photo's orientation */
.talk-row .tn { position: relative; }
.talk-row .tn img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- v2 (2026-10-21) ----------
   Fewer labels, one reading column, real device frames, motion only where it explains.
   - The brass-square eyebrow is gone. Spec labels (Space Mono) stay for dates and venues only.
   - Screens sit in a device, on forest, the way the ConnectPro shot does. No fake browser bars.
   - Case pages lead with one big number, then read top to bottom. No sticky side labels. */
.eyebrow::before { content: none; }
.eyebrow { font-weight: 400; color: var(--steel); }
.band .eyebrow, .site-foot .eyebrow { color: var(--on-forest); }

/* Home hero: the claim, the scope, and a real photo */
.hero2 { padding: clamp(40px, 6vw, 96px) 0 0; display: grid; gap: clamp(28px, 4vw, 72px); align-items: end; }
.kicker { font: 600 var(--fs-small)/1.4 var(--f-body); color: var(--ink-2); margin: 0 0 18px; }
.hero2 h1 { font: 700 clamp(42px, 5.8vw, 96px)/0.98 var(--f-display); letter-spacing: -0.035em; margin: 0 0 28px; max-width: 15ch; }
.hero2 .lede { font-size: var(--fs-lede); line-height: 1.45; max-width: 46ch; margin: 0; }
.hero2 .lede + .lede { margin-top: 16px; font-size: var(--fs-body); color: var(--ink-2); }
.hero2 .photo { margin: 0; max-width: 240px; }
.hero2 .photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 35%; border-radius: var(--radius); }
@media (min-width: 960px) { .hero2 { grid-template-columns: 8fr 4fr; } .hero2 .photo { max-width: none; } }

/* Work: rows alternate sides, so six cases stop reading as one template */
.where { font: 600 var(--fs-small)/1.4 var(--f-body); color: var(--ink-2); margin: 0; }
.work-item .where + h3 { margin-top: 10px; }
@media (min-width: 960px) {
  .work li:nth-child(even) .work-item { grid-template-columns: 6fr 5fr; }
  .work li:nth-child(even) .work-item .visual { order: -1; }
}
.work-item .visual { border-radius: 14px; }
.work-item .visual.is-bleed > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.07); }
@media (prefers-reduced-motion: no-preference) { .work-item:hover .visual.is-bleed > img { transform: scale(1.1); } }
.earlier { margin-top: clamp(28px, 3vw, 40px); }
.earlier-row { display: grid; grid-template-columns: 96px 1fr; gap: 16px 24px; align-items: center; padding: 18px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); text-decoration: none; }
.earlier-row .tn { aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: radial-gradient(120% 90% at 20% 0%, #3A5142 0%, var(--forest) 55%, var(--forest-2) 100%); position: relative; }
.earlier-row .tn img { position: absolute; inset: 8%; width: 84%; height: 84%; object-fit: contain; }
.earlier-row h3 { font: 600 clamp(20px, 1.6vw, 25px)/1.3 var(--f-display); margin: 4px 0 0; }
.earlier-row:hover h3 { text-decoration: underline; text-decoration-color: var(--brass); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.earlier-row .num { font: 700 clamp(28px, 2.4vw, 40px)/1 var(--f-display); letter-spacing: -0.03em; white-space: nowrap; }
@media (min-width: 720px) { .earlier-row { grid-template-columns: 120px 1fr auto; } }

/* Device frame: a light bezel on forest, like the ConnectPro product shot */
.device { position: relative; padding: clamp(5px, 0.8vw, 11px); border-radius: clamp(12px, 1.6vw, 24px); background: linear-gradient(160deg, #F2EEE6 0%, #CFC8BA 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 28px 60px rgba(0,0,0,.38); }
.device > .screen { border-radius: clamp(7px, 1vw, 14px); overflow: hidden; background: #fff; box-shadow: 0 0 0 1px rgba(27,27,26,.3); }
.device img { width: 100%; height: auto; display: block; }
.thumb-stage .device { width: 100%; }
.thumb-stage.is-peek .device { position: absolute; left: 7%; right: 7%; top: 10%; }
.stage .device + .device { margin-top: clamp(20px, 3vw, 40px); }
.device-pair { display: grid; gap: clamp(20px, 3vw, 40px); }
@media (min-width: 880px) { .device-pair { grid-template-columns: 1fr 1fr; align-items: start; } }
.stage--forest > figcaption, .stage--forest .stage-caption { color: var(--on-forest); margin-top: 18px; font-size: var(--fs-small); max-width: 64ch; }
.cutout { display: block; margin: 0 auto; width: 100%; height: auto; max-width: 860px; }
.thumb-stage > img.cutout { box-shadow: none; border-radius: 0; }

/* How I lead: a spec sheet, principle, what it looked like, the evidence */
.lead-intro { display: grid; gap: 18px 56px; margin-bottom: clamp(32px, 4vw, 56px); }
.lead-intro h2 { font: 700 var(--fs-h2)/1.05 var(--f-display); letter-spacing: -0.025em; margin: 0; }
.lead-intro .quote { color: var(--ink); }
.lead-intro p { margin: 0; max-width: 56ch; color: var(--ink-2); }
@media (min-width: 960px) { .lead-intro { grid-template-columns: 4fr 7fr; align-items: end; } .lead-intro h2 { grid-column: 1; } }
.ledger { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.ledger li { display: grid; gap: 10px 48px; padding: clamp(22px, 2.4vw, 32px) 0; border-bottom: 1px solid var(--rule); }
.ledger h3 { font: 700 clamp(22px, 1.8vw, 29px)/1.2 var(--f-display); letter-spacing: -0.01em; margin: 0; }
.ledger p { margin: 0; color: var(--ink-2); max-width: 58ch; }
.ledger .ev { font: 700 clamp(32px, 3vw, 50px)/1 var(--f-display); letter-spacing: -0.035em; margin: 0; color: var(--ink); }
.ledger .ev small { display: block; margin-top: 8px; font: 400 var(--fs-label)/1.45 var(--f-mono); letter-spacing: 0.03em; text-transform: uppercase; color: var(--steel); }
@media (min-width: 960px) { .ledger li { grid-template-columns: 3fr 6fr 3fr; align-items: baseline; } }

/* Case pages: one big number up top, then one reading column */
.case-top { padding: clamp(40px, 6vw, 88px) 0 clamp(28px, 3vw, 44px); display: grid; gap: 32px 72px; align-items: end; }
.case-top h1 { font: 700 var(--fs-h1-case)/1.02 var(--f-display); letter-spacing: -0.03em; margin: 12px 0 22px; max-width: 18ch; }
.case-top .lede { font-size: var(--fs-lede); line-height: 1.45; max-width: 46ch; margin: 0; }
.headline-num { border-top: 2px solid var(--ink); padding-top: 18px; }
.headline-num .num { display: block; font: 700 clamp(56px, 6.4vw, 108px)/0.95 var(--f-display); letter-spacing: -0.04em; }
.headline-num .num small { font-size: 0.4em; letter-spacing: 0; }
.headline-num p { margin: 12px 0 0; font-size: var(--fs-small); line-height: 1.5; color: var(--ink-2); max-width: 32ch; }
@media (min-width: 1080px) { .case-top { grid-template-columns: 8fr 4fr; } }
.facts { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 32px; margin: 0 0 clamp(28px, 3vw, 44px); padding: 16px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); font-size: var(--fs-small); line-height: 1.5; color: var(--ink-2); }
.facts b { color: var(--ink); font-weight: 600; margin-right: 6px; }
.read { display: grid; padding-bottom: clamp(40px, 5vw, 72px); }
.read > * { min-width: 0; }
.read h2 { font: 700 var(--fs-h3)/1.2 var(--f-display); letter-spacing: -0.01em; margin: clamp(44px, 5vw, 80px) 0 18px; max-width: 30ch; }
.read > h2:first-child { margin-top: clamp(16px, 2vw, 28px); }
.read p, .read li { max-width: 66ch; }
.read ul, .read ol { margin: 0 0 1em; padding-left: 22px; }
.read li { margin-bottom: 10px; }
.read blockquote { margin: 8px 0 24px; padding-left: 24px; border-left: 3px solid var(--brass); font: italic 400 clamp(24px, 2.2vw, 34px)/1.3 var(--f-serif); max-width: 34ch; }
.read .wide { margin-top: 12px; margin-bottom: 20px; }
@media (min-width: 960px) {
  .read { grid-template-columns: 2fr 8fr 2fr; }
  .read > * { grid-column: 2; }
  .read > .wide { grid-column: 1 / -1; }
}
.status::before { background: var(--sienna); }

/* Explanatory diagrams. Visible by default; motion.js arms them only when it will animate */
.parse-in { margin: 0 0 clamp(18px, 2vw, 28px); display: grid; gap: 8px; }
.parse-in .tag { color: var(--on-forest); }
.parse-in code { font: 700 clamp(18px, 1.9vw, 30px)/1.3 var(--f-mono); color: var(--cream); letter-spacing: 0.02em; overflow-wrap: anywhere; }
.parse-in [data-tok] { border-radius: 4px; padding: 0 4px; margin: 0 -4px; }
.flow .step { position: relative; }
@media (min-width: 1000px) {
  .flow .step + .step::before { content: ""; position: absolute; left: -10px; top: 50%; width: 10px; height: 2px; background: rgba(241,236,226,.45); }
}
.cascade { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.cascade li { background: rgba(241,236,226,.07); border: 1px solid rgba(241,236,226,.22); border-radius: 8px; padding: 16px 18px; color: var(--cream); }
.cascade li:first-child { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.cascade li:first-child .tag, .cascade li:first-child p { color: var(--ink-2); }
.cascade .tag { color: var(--on-forest); }
.cascade b { display: block; font: 700 clamp(19px, 1.4vw, 23px)/1.25 var(--f-display); margin-top: 4px; }
.cascade p { margin: 6px 0 0; font-size: var(--fs-small); line-height: 1.5; color: var(--on-forest); }
@media (min-width: 900px) { .cascade li { width: 64%; } .cascade li:nth-child(2) { margin-left: 9%; } .cascade li:nth-child(3) { margin-left: 18%; } .cascade li:nth-child(4) { margin-left: 27%; } .cascade li:nth-child(5) { margin-left: 36%; } }
.is-armed [data-part] { opacity: 0; }

/* Writing page */
.page-top { padding: clamp(40px, 6vw, 88px) 0 clamp(24px, 3vw, 40px); }
.page-top h1 { font: 700 var(--fs-h1-case)/1.02 var(--f-display); letter-spacing: -0.03em; margin: 0 0 18px; max-width: 18ch; }
.page-top .lede { font-size: var(--fs-lede); line-height: 1.45; max-width: 46ch; margin: 0; }
.ledger .ev .unit { font-size: 0.5em; letter-spacing: 0; color: var(--ink-2); }
.band-h { font: 700 var(--fs-h2)/1.05 var(--f-display); letter-spacing: -0.025em; margin: 0 0 8px; }
/* Talk pages: section labels become real headings, the same voice as the case pages */
.block > h2.eyebrow { font: 700 var(--fs-h3)/1.2 var(--f-display); letter-spacing: -0.01em; text-transform: none; color: var(--ink); }
.section-head > h2:only-child { grid-column: 1 / -1; max-width: 24ch; }
.foot-cta { max-width: 22ch; text-wrap: balance; }
.hero2 h1, .case-top h1, .work-item h3 { text-wrap: balance; }
.headline-num .nb, .proof .nb { white-space: nowrap; }
.article h2 { font: 600 clamp(20px, 1.6vw, 25px)/1.3 var(--f-display); margin: 0; }
.article h2 a { text-decoration: none; }
.article h2 a:hover { text-decoration: underline; text-decoration-color: var(--brass); text-decoration-thickness: 2px; text-underline-offset: 5px; }

/* ---------- v2, round 2 (2026-10-21): "feels zoomed in" on a 14-inch MacBook ----------
   Smaller type scale (tokens above), tighter vertical rhythm, figures capped so each fits one screen. */
.nav a { font-size: 15px; padding: 0 12px; }
.badge { width: 36px; height: 36px; font-size: 15px; }
.wordmark { font-size: 14px; }
.btn { min-height: 44px; padding: 0 18px; }
.section { padding: clamp(44px, 5vw, 80px) 0; }
.section-head { margin-bottom: clamp(24px, 2.6vw, 40px); gap: 8px 48px; align-items: baseline; }
.section-head h2 { font-size: var(--fs-h2); max-width: none; }
.section-head p { font-size: var(--fs-body); }
.hero2 { padding-top: clamp(32px, 4.5vw, 72px); gap: clamp(24px, 3.5vw, 56px); }
.hero2 h1 { font-size: var(--fs-h1); margin-bottom: 22px; max-width: 17ch; }
.hero2 .photo { max-width: 220px; }
@media (min-width: 960px) { .hero2 { grid-template-columns: 8fr 3fr; } .hero2 .photo { max-width: 320px; } }
.proof-strip { margin-top: clamp(32px, 3.5vw, 52px); }
.proof-strip li { padding-top: 16px; }
.work-item { padding: clamp(26px, 2.8vw, 40px) 0; gap: 20px 48px; }
.work-item h3 { font-size: clamp(22px, 1.75vw, 29px); }
.work-item .proof { margin-top: 18px; padding-top: 14px; }
.work-item .go { margin-top: 8px; }
.talk-feature { padding-bottom: clamp(24px, 2.6vw, 40px); }
.talk-feature h3, .talk-feature h2 { font-size: clamp(24px, 2.1vw, 36px); }
.talk-feature .has { display: flex; gap: 8px; margin-top: 4px; }
.more-link { margin-top: 20px; }
.quote { font-size: clamp(22px, 1.9vw, 32px); }
.foot-cta { font-size: clamp(28px, 3vw, 48px); }
.site-foot .wrap { padding-top: clamp(44px, 5vw, 80px); }
.foot-meta { margin-top: clamp(36px, 4vw, 64px); }
.band-h { font-size: var(--fs-h2); }

/* How I lead: heading and quote on one line, no dead space above */
.lead-intro { margin-bottom: clamp(20px, 2.2vw, 32px); }
@media (min-width: 960px) { .lead-intro { grid-template-columns: 4fr 7fr; align-items: start; } }
.lead-intro .quote { margin-top: 2px; }
.ledger li { padding: clamp(16px, 1.6vw, 22px) 0; }
.ledger h3 { font-size: clamp(18px, 1.3vw, 22px); }
.ledger .ev { font-size: clamp(26px, 2.1vw, 36px); }

/* Earlier work: the number carries its own label */
.earlier-row .sum { margin: 4px 0 0; font-size: var(--fs-small); color: var(--ink-2); max-width: 60ch; }
.earlier-row .stat { text-align: right; }
.earlier-row .stat .num { display: block; }
.earlier-row .stat small { display: block; margin-top: 4px; font: 400 var(--fs-label)/1.4 var(--f-mono); text-transform: uppercase; letter-spacing: .03em; color: var(--steel); }
@media (max-width: 719px) { .earlier-row .stat { grid-column: 1 / -1; text-align: left; } }

/* About: heading on top, text and timeline start on the same line */
.about-grid { gap: 24px 64px; }
@media (min-width: 960px) { .about-grid { grid-template-columns: 7fr 5fr; } }
.about-grid > h2 { grid-column: 1 / -1; margin: 0; }
.about-grid .timeline { margin-top: 0; }
.about-grid p:first-child { margin-top: 0; }

/* A UI excerpt, not a whole screen: no device bezel, a lifted panel on forest */
.fragment { margin: 0; }
.fragment img { width: 100%; height: auto; display: block; border-radius: 10px; box-shadow: 0 0 0 1px rgba(27,27,26,.25), 0 24px 56px rgba(0,0,0,.4); background: #fff; }
.label-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 0 0 14px; }
.label-row .tag { color: var(--on-forest); }
.proto-chip.is-static { position: static; }
.thumb-stage .label-row { position: absolute; top: 7%; left: 7%; z-index: 2; margin: 0; }
.thumb-stage.is-peek .fragment { position: absolute; left: 7%; right: 7%; top: 21%; }
.fragment-stack { display: grid; gap: clamp(16px, 2vw, 28px); }
@media (min-width: 880px) { .fragment-stack.is-pair { grid-template-columns: 1fr 1fr; align-items: start; } }

/* Case pages: one shared left edge for text and figures, figures capped to fit a laptop screen */
.case-top { padding: clamp(28px, 3.6vw, 56px) 0 clamp(20px, 2.2vw, 32px); gap: 24px 64px; }
.case-top h1 { margin: 8px 0 16px; max-width: 20ch; }
.headline-num { padding-top: 14px; }
.headline-num .num { font-size: clamp(42px, 3.8vw, 64px); }
.facts { margin-bottom: clamp(20px, 2.2vw, 32px); padding: 12px 0; }
.read { display: block; padding-bottom: clamp(32px, 3.5vw, 56px); }
.read > * { max-width: 68ch; }
.read > .wide { max-width: none; }
.read h2 { font-size: var(--fs-h3); margin: clamp(32px, 3.2vw, 48px) 0 12px; }
.read > h2:first-child { margin-top: 8px; }
.read blockquote { font-size: clamp(20px, 1.6vw, 26px); margin: 4px 0 18px; }
.stage { padding: clamp(16px, 2.6vw, 36px); margin: 4px 0 8px; }
.stage > .device, .stage > .fragment, .stage > .fragment-stack, .stage > .layered, .stage > img, .stage > .device-pair { max-width: min(100%, 980px); margin-left: auto; margin-right: auto; }
.stage > .fragment-stack.is-pair, .stage > .device-pair { max-width: none; }
.stage > img.cutout { max-width: min(100%, 720px); }
.stage--forest > figcaption, .stage-caption { margin-top: 14px; }
.flow .step { padding: 14px; }
.flow .step b { font-size: clamp(16px, 1.1vw, 19px); }
.parse-in code { font-size: clamp(17px, 1.5vw, 24px); }
.cascade { gap: 8px; }
.cascade li { padding: 10px 16px; }
.cascade b { font-size: clamp(16px, 1.1vw, 19px); margin-top: 2px; }
.cascade p { margin-top: 2px; }
@media (min-width: 900px) { .cascade li { width: 56%; } .cascade li:nth-child(2) { margin-left: 11%; } .cascade li:nth-child(3) { margin-left: 22%; } .cascade li:nth-child(4) { margin-left: 33%; } .cascade li:nth-child(5) { margin-left: 44%; } }
.phones { grid-auto-columns: minmax(180px, 240px); justify-content: center; }
.next { padding: 28px 0 48px; }
.next a b { font-size: clamp(19px, 1.4vw, 23px); }
.results td.n { font-size: clamp(20px, 1.5vw, 24px); }
@media (min-width: 960px) { .section-head { grid-template-columns: 4fr 7fr; } }

/* ---------- v2, round 3 (2026-10-21) ---------- */
/* The brand label, kept for the hero only: brass square, Space Mono, ink */
.eyebrow--brand { font-weight: 700; color: var(--ink); margin: 0 0 18px; }
.eyebrow--brand::before { content: ""; width: 10px; height: 10px; background: var(--brass); flex: none; }
/* Hero: text fills its column and the photo sits right beside it, no dead middle */
.hero2 h1 { max-width: 22ch; }
.hero2 h1 .accent { color: var(--sienna); }
.hero2 .lede { max-width: 60ch; }
@media (min-width: 960px) {
  .hero2 { grid-template-columns: minmax(0, 8fr) minmax(0, 3fr); column-gap: clamp(32px, 4vw, 56px); align-items: center; }
  .hero2 .photo { max-width: none; }
}

/* Section heads: the title, then its headline underneath */
.section-head, .lead-intro { display: block; }
.section-head h2, .lead-intro h2 { margin: 0; }
.section-head p { margin: 8px 0 0; font-size: var(--fs-lede); line-height: 1.4; color: var(--ink-2); max-width: 60ch; }
.lead-intro .quote { margin: 8px 0 0; max-width: none; }
.lead-intro .quote + p, .lead-intro p[style] { margin-top: 10px !important; }

/* Case pages: heading on the left, text on the right, figures across both. Both edges line up */
.read { padding-top: clamp(8px, 1vw, 16px); }
.part { padding-top: clamp(32px, 3.4vw, 52px); }
.part > * { max-width: none; }
.part > h2, .read .part > h2:first-child { margin: 0 0 12px; }
.part > .wide { margin: clamp(28px, 3vw, 44px) 0; }
.part > .wide:last-child { margin-bottom: 0; }
@media (min-width: 960px) {
  .part { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 8fr); column-gap: clamp(32px, 4vw, 64px); align-items: start; }
  .part > * { grid-column: 2; }
  .part > h2 { grid-column: 1; grid-row: 1; margin: 0; }
  .part > .wide { grid-column: 1 / -1; }
  .part > p, .part > ul, .part > ol, .part > blockquote, .part > table { line-height: 1.65; }
}
/* More air between the top figure and the first part, and captions that use the width they have */
.case-top + .facts + figure.stage, .case-top + .facts + .shot-figure { margin-bottom: 0; }
.stage figcaption, .stage-caption, .shot-figure figcaption { max-width: none; }
.read > .part { max-width: none; }

/* ---------- v2, round 4 (2026-10-21): each home section reads as its own room ----------
   Surfaces alternate cream, paper, forest, cream, paper, forest, then the ink footer.
   A short brass rule marks where each section starts. */
.proof-strip { margin-bottom: clamp(40px, 4.5vw, 72px); }
.proof-strip li { padding-bottom: 22px; }
.section.is-paper { background: var(--paper); border-top: 0; }
.section.is-cream { background: var(--cream); border-top: 0; }
.section.band { border-top: 0; }
.section-head h2::before, .lead-intro h2::before, .band-h::before { content: ""; display: block; width: 44px; height: 4px; background: var(--brass); margin-bottom: 16px; }
/* How I lead on forest: cream type, quieter rules */
#leadership .lead-intro p:not(.quote) { color: var(--on-forest); }
#leadership .quote { color: var(--cream); }
#leadership .ledger { border-top-color: rgba(241,236,226,.55); }
#leadership .ledger li { border-bottom-color: rgba(241,236,226,.2); }
#leadership .ledger p { color: var(--on-forest); }
#leadership .ledger .ev { color: var(--cream); }
#leadership .ledger .ev .unit, #leadership .ledger .ev small { color: var(--on-forest); }
#leadership a { text-decoration-color: var(--brass); }
/* Cards and rows that sat on cream keep their contrast on paper */
.is-paper .work-item .visual { box-shadow: 0 1px 0 rgba(27,27,26,.04); }
.is-paper .article .chip { background: var(--cream); }

/* ---------- Navigation, six sections (2026-10-21) ----------
   Desktop: every section in page order, Contact as the one button.
   Phones: a Menu button opens the same links as a panel under the header (nav.js).
   Without JavaScript the links wrap in the header instead. */
.nav { align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.nav .nav-cta { margin-left: 10px; min-height: 36px; padding: 0 14px; border: 1.5px solid var(--cream); border-radius: 6px; }
.nav .nav-cta:hover { background: var(--cream); color: var(--ink); text-decoration: none; }
.nav-toggle { display: none; }
@media (max-width: 760px) {
  .js .nav-toggle { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px; background: transparent; color: var(--cream); border: 1.5px solid rgba(241,236,226,.55); border-radius: 6px; font: 600 15px/1 var(--f-body); cursor: pointer; }
  .js .nav-toggle:hover { border-color: var(--cream); }
  .nav-toggle-bars { display: block; width: 16px; height: 10px; border-top: 2px solid currentColor; border-bottom: 2px solid currentColor; }
  .js .nav-toggle[aria-expanded="true"] .nav-toggle-bars { height: 2px; border-bottom: 0; }
  .js .wordmark { display: inline; }
  .js .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 4px var(--gutter) 20px; background: var(--ink); border-bottom: 1px solid #000; box-shadow: 0 18px 40px rgba(0,0,0,.35); }
  .js .nav.is-open { display: flex; }
  .js .nav a { min-height: 52px; padding: 0; font-size: 18px; border-bottom: 1px solid rgba(241,236,226,.14); }
  .js .nav a:hover, .js .nav a[aria-current] { text-underline-offset: 6px; }
  .js .nav .nav-cta { margin: 16px 0 0; justify-content: center; border: 1.5px solid var(--cream); }
}

/* Trail on every page but home: the way back, and where you are */
.trail { padding-top: clamp(14px, 1.6vw, 22px); }
.trail ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; font: 500 15px/1.4 var(--f-body); color: var(--ink-2); }
.trail li { display: flex; align-items: center; min-width: 0; }
.trail li + li::before { content: "/"; content: "/" / ""; margin-right: 10px; color: var(--steel); }
.trail a { display: inline-flex; align-items: center; min-height: 32px; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.trail li:first-child a { font-weight: 600; color: var(--ink); }
.trail [aria-current] { color: var(--ink); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60vw; }
.trail .back { margin-right: 6px; }
