/* katewojogbe.com — shared styles
   Colors sampled from the live site: ground #F4F4F6, coral #FF634A.
   Coral is for marks (dots, rules, underlines) on light grounds; on the dark
   ground it passes contrast and can be used for small text. */

/* Fonts are self-hosted (fonts/) so the site doesn't depend on Google. */
@font-face { font-family: "DM Serif Display"; src: url("fonts/dm-serif-display-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "DM Serif Text"; src: url("fonts/dm-serif-text-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --ground: #F4F4F6;
  --surface: #FFFFFF;
  --ink: #141414;
  --ink-2: #3C3C42;
  --muted: #5E5E66;
  --rule: #D6D6DC;
  --coral: #FF634A;
  --dark: #141414;
  --dark-2: #1E1E21;
  --on-dark: #F4F4F6;
  --on-dark-2: #C9C9D0;
  --on-dark-muted: #9C9CA6;
  --dark-rule: #34343A;

  --serif-display: "DM Serif Display", Georgia, serif;
  --serif-text: "DM Serif Text", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;

  --gutter: clamp(20px, 4vw, 64px);
  --wide: 1240px;
  --content: 1240px;
  --reading: 42rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--coral); outline-offset: 3px; }

.wrap { max-width: var(--wide); margin: 0 auto; padding: 0 var(--gutter); box-sizing: content-box; }
.wrap.content { max-width: var(--content); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 50; background: var(--ink); color: var(--on-dark); padding: 8px 12px; font-family: var(--mono); font-size: 12px; }

/* ---------- Type ---------- */
.label {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.5;
  color: var(--muted);
}
.label.dot { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.label.dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--coral); flex: none; }
.lead { font-family: var(--serif-text); font-size: clamp(21px, 1.9vw, 25px); line-height: 1.45; margin: 0; }
.body { color: var(--ink-2); }
.body p { margin: 0 0 1em; }
.body p:last-child { margin-bottom: 0; }
h1, h2, h3 { font-family: var(--serif-display); font-weight: 400; margin: 0; letter-spacing: -0.005em; }
h2.section { font-size: clamp(30px, 3.3vw, 46px); line-height: 1.06; }
h3.sub { font-size: clamp(24px, 2.3vw, 30px); line-height: 1.12; }
.caption { font-family: var(--mono); font-size: 12px; line-height: 1.5; color: var(--muted); margin-top: 10px; }
.linked { text-decoration: underline; text-decoration-color: var(--coral); text-decoration-thickness: 2px; text-underline-offset: 0.18em; }
a.linked:hover, a:hover .linked { text-decoration-thickness: 4px; }

/* ---------- Site header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(244, 244, 246, 0.94);
  -webkit-backdrop-filter: saturate(1.4) blur(8px);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--rule);
}
.site-header .bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 68px; }
.brand { font-family: var(--serif-display); font-size: 22px; line-height: 1; text-decoration: none; white-space: nowrap; }
.nav { display: flex; align-items: center; gap: 28px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.02em; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 22px; }
.nav a { text-decoration: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; white-space: nowrap; }
.nav a .num { color: var(--muted); }
.nav a:hover .t, .nav a[aria-current="page"] .t { text-decoration: underline; text-decoration-color: var(--coral); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.nav a[aria-current="page"] { font-weight: 500; }
.nav a[aria-current="page"]::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--coral); }
.nav .sep { width: 1px; height: 18px; background: var(--rule); }

.menu { display: none; position: relative; font-family: var(--mono); font-size: 12px; }
.menu summary { list-style: none; cursor: pointer; min-height: 44px; display: inline-flex; align-items: center; gap: 8px; padding: 0 14px; border: 1px solid var(--ink); border-radius: 999px; }
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { background: var(--ink); color: var(--on-dark); }
.menu .panel {
  position: absolute; right: 0; top: calc(100% + 10px); width: min(320px, calc(100vw - 40px));
  background: var(--surface); border: 1px solid var(--rule); box-shadow: 0 12px 32px rgba(20,20,20,0.12);
  padding: 8px 18px;
}
.menu .panel ul { list-style: none; margin: 0; padding: 0; }
.menu .panel li + li { border-top: 1px solid var(--rule); }
.menu .panel a { display: flex; align-items: center; gap: 10px; min-height: 48px; text-decoration: none; }
.menu .panel a .num { color: var(--muted); }
.menu .panel a[aria-current="page"] .t { text-decoration: underline; text-decoration-color: var(--coral); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.menu .panel .group { border-top: 1px solid var(--ink); margin-top: 6px; padding-top: 6px; }

@media (max-width: 980px) {
  .nav { display: none; }
  .menu { display: block; }
}

/* ---------- Home hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: min(860px, calc(100vh - 69px)); }
.hero .copy { display: flex; flex-direction: column; justify-content: flex-end; gap: 24px; padding: 64px var(--gutter) 72px; }
.hero h1 { font-size: clamp(44px, 5.6vw, 84px); line-height: 1.0; letter-spacing: -0.01em; max-width: 12ch; }
.hero p { margin: 0; max-width: 32ch; color: var(--ink-2); }
.hero .media { position: relative; min-height: 420px; }
.hero .media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; }
.pill { align-self: flex-start; display: inline-flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 20px; border: 1px solid currentColor; border-radius: 999px; text-decoration: none; font-family: var(--mono); font-size: 12px; letter-spacing: 0.02em; }
.pill:hover { background: var(--ink); color: var(--on-dark); border-color: var(--ink); }
@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero .copy { padding-top: 48px; padding-bottom: 40px; }
  .hero .media { min-height: 0; aspect-ratio: 4 / 3; }
}

/* ---------- Dark modules ---------- */
.dark { background: var(--dark); color: var(--on-dark); }
.dark .label { color: var(--on-dark-muted); }
.dark .label.dot { color: var(--on-dark); }
.dark .body, .dark p { color: var(--on-dark-2); }

/* Selected work (home) */
.work { padding: 104px 0 112px; }
.work .head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; border-top: 1px solid var(--dark-rule); padding-top: 16px; margin-bottom: 64px; }
.work .head .label { color: var(--coral); }
.work-list { display: flex; flex-direction: column; gap: 96px; }
.work-item { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px 56px; align-items: center; text-decoration: none; }
.work-item:nth-child(even) { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.work-item:nth-child(even) .work-media { order: 2; }
.work-media { overflow: hidden; background: var(--dark-2); }
.work-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .6s ease; }
.work-item:hover .work-media img { transform: scale(1.025); }
@media (prefers-reduced-motion: reduce) { .work-media img { transition: none; } .work-item:hover .work-media img { transform: none; } }
.work-text { display: flex; flex-direction: column; gap: 18px; }
.work-text h3 { font-size: clamp(28px, 2.9vw, 40px); line-height: 1.08; color: var(--on-dark); }
.work-text p { margin: 0; font-size: 17px; line-height: 1.6; }
.work-text .more { font-family: var(--mono); font-size: 12px; color: var(--coral); }
@media (max-width: 820px) {
  .work { padding: 72px 0 80px; }
  .work-list { gap: 64px; }
  .work-item, .work-item:nth-child(even) { grid-template-columns: 1fr; gap: 20px; }
  .work-item:nth-child(even) .work-media { order: 0; }
}

/* ---------- Case study opening ---------- */
.cs-open { padding: 56px 0 40px; }
.cs-open .label.dot { margin-bottom: 20px; }
.cs-open h1 { font-size: clamp(38px, 4.4vw, 62px); line-height: 1.04; letter-spacing: -0.01em; max-width: 30ch; color: var(--on-dark); text-wrap: balance; }
.cs-meta { display: flex; flex-wrap: wrap; gap: 10px 0; margin: 28px 0 0; padding: 18px 0 0; border-top: 1px solid var(--dark-rule); font-family: var(--mono); font-size: 12px; line-height: 1.5; color: var(--on-dark-2); }
.cs-meta div { display: flex; gap: 8px; margin-right: 32px; }
.cs-meta dt { color: var(--on-dark-muted); }
.cs-meta dd { margin: 0; }
.cs-hero { background: var(--dark); }
.cs-hero img { width: 100%; height: clamp(300px, 46vw, 680px); object-fit: cover; }
.cs-hero .cap { padding-top: 12px; padding-bottom: 14px; }
.cs-hero .caption { margin: 0; color: var(--on-dark-muted); }

/* ---------- Case study body ---------- */
.cs-body { padding: 88px 0 112px; }
.cs-body .stack { display: flex; flex-direction: column; gap: 96px; }
.block { display: flex; flex-direction: column; gap: 18px; max-width: var(--reading); }
.block .body { font-size: 18px; }
.figure-row { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
figure { margin: 0; }
.fig-surface { background: var(--surface); }
.section { display: flex; flex-direction: column; gap: 32px; }

.cards { display: grid; gap: 28px 28px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.card { display: flex; flex-direction: column; gap: 10px; border-top: 2px solid var(--coral); padding-top: 14px; }
.card h3 { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; }
.card h3.serif { font-family: var(--serif-display); font-size: 23px; font-weight: 400; letter-spacing: 0; text-transform: none; line-height: 1.18; }
.card p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.card .k { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.04em; }

.figure-row.gens { grid-template-columns: 1fr; }
@media (min-width: 900px) { .figure-row.gens { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 560px) and (max-width: 899px) {
  .figure-row.gens .gen { display: grid; grid-template-columns: minmax(0, 44%) 1fr; column-gap: 24px; row-gap: 8px; align-content: start; }
  .figure-row.gens .gen img { grid-row: span 2; }
  .figure-row.gens .gen .t { align-self: end; }
}
.gen { display: flex; flex-direction: column; gap: 12px; }
.gen img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #E6E6EA; }
.gen .t { font-family: var(--serif-display); font-size: 22px; line-height: 1.2; display: inline-flex; align-items: center; gap: 10px; }
.gen.current .t::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--coral); }
.gen p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink-2); }

/* Practice steps (01) */
.steps { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.steps li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 8px 16px; padding: 24px 0; border-bottom: 1px solid var(--rule); }
.steps .n { font-family: var(--mono); font-size: 12px; color: var(--muted); padding-top: 9px; }
.steps .q { font-family: var(--serif-display); font-size: clamp(24px, 2.4vw, 32px); line-height: 1.12; }
.steps .tags { font-family: var(--mono); font-size: 12px; color: var(--muted); margin-top: 8px; }
.steps li.brief { background: var(--dark); color: var(--on-dark); padding-left: 24px; padding-right: 24px; border-bottom-color: var(--dark); }
.steps li.brief .n { color: var(--coral); font-weight: 500; }
.steps li.brief .q { font-size: clamp(22px, 2.1vw, 28px); }
.steps li.brief p { margin: 10px 0 0; font-size: 16px; line-height: 1.55; color: var(--on-dark-2); max-width: 40rem; }

.brief-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); column-gap: 40px; }
.brief-grid > div { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 4px 12px; padding: 20px 0; border-top: 1px solid var(--rule); }
.brief-grid .n { font-family: var(--mono); font-size: 12px; color: var(--muted); padding-top: 6px; }
.brief-grid .t { font-family: var(--serif-display); font-size: 22px; line-height: 1.15; }
.brief-grid p { margin: 4px 0 0; font-size: 15px; line-height: 1.5; color: var(--ink-2); }

.tiers { background: var(--surface); padding: 4px 28px; }
.tier { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 12px 32px; padding: 22px 0; }
.tier + .tier { border-top: 1px solid #E6E6EA; }
.tier .k { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.04em; display: inline-flex; align-items: center; gap: 8px; }
.tier .k::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--coral); }
.tier .d { font-size: 14px; line-height: 1.45; color: var(--muted); margin: 6px 0 0; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; align-content: flex-start; }
.chips li { font-size: 14px; line-height: 1.3; padding: 7px 12px; border: 1px solid var(--rule); border-radius: 999px; }
@media (max-width: 700px) { .tier { grid-template-columns: 1fr; } .tiers { padding: 4px 18px; } }

/* App stats (03) */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 28px; }
.stat { border-top: 2px solid var(--coral); padding-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.stat .v { font-family: var(--serif-display); font-size: clamp(44px, 4.4vw, 60px); line-height: 1; }
.timeline { display: flex; align-items: center; gap: 14px; font-family: var(--mono); font-size: 12px; }
.timeline i { width: 48px; height: 1px; background: var(--coral); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px 64px; align-items: center; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }
.phone-stage { background: var(--dark); padding: 40px; display: flex; justify-content: center; }
.phone-stage video, .phone-stage img { width: 100%; max-width: 300px; border-radius: 28px; }
.screens { background: var(--dark); padding: 40px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.screens figure { display: flex; flex-direction: column; gap: 10px; align-items: center; }
.screens img { border-radius: 20px; width: 100%; max-width: 260px; }
.screens figcaption { font-family: var(--mono); font-size: 12px; color: var(--on-dark-muted); text-transform: uppercase; letter-spacing: 0.04em; }
@media (max-width: 640px) { .screens { padding: 20px 12px; gap: 10px; } .screens img { border-radius: 12px; } .phone-stage { padding: 24px; } }

/* ---------- Prev / next ---------- */
.pager { padding: 56px 0 64px; border-top: 1px solid var(--dark-rule); }
.pager .top { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 28px; }
.pager .top .label { color: var(--coral); }
.pager .top a { font-family: var(--mono); font-size: 12px; text-decoration: none; color: var(--on-dark-2); min-height: 44px; display: inline-flex; align-items: center; }
.pager .top a:hover { color: var(--on-dark); text-decoration: underline; text-decoration-color: var(--coral); text-underline-offset: 5px; }
.pager .pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 48px; }
.pager .pair a { display: grid; grid-template-columns: 168px minmax(0, 1fr); gap: 20px; align-items: center; text-decoration: none; color: var(--on-dark); }
.pager .pair a.next { grid-template-columns: minmax(0, 1fr) 168px; text-align: right; }
.pager .pair img { width: 168px; aspect-ratio: 4 / 3; object-fit: cover; }
.pager .pair .k { font-family: var(--mono); font-size: 12px; color: var(--on-dark-muted); display: block; margin-bottom: 8px; }
.pager .pair .t { font-family: var(--serif-display); font-size: 23px; line-height: 1.18; }
.pager .pair a:hover .t { text-decoration: underline; text-decoration-color: var(--coral); text-decoration-thickness: 2px; text-underline-offset: 0.18em; }
@media (max-width: 820px) {
  .pager .pair { grid-template-columns: 1fr; }
  .pager .pair a, .pager .pair a.next { grid-template-columns: 112px minmax(0, 1fr); text-align: left; }
  .pager .pair a.next img { order: -1; }
  .pager .pair img { width: 112px; }
}

/* ---------- About ---------- */
.about { padding: 72px 0 96px; }
.about-head { display: flex; flex-direction: column; gap: 10px; padding-bottom: 32px; border-bottom: 1px solid var(--rule); margin-bottom: 56px; }
.about-head h1 { font-size: clamp(40px, 4.2vw, 58px); line-height: 1.02; }
.about-grid { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 48px 80px; align-items: start; }
.about-side { display: flex; flex-direction: column; gap: 28px; position: sticky; top: 100px; }
.about-side img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; filter: grayscale(1); display: block; }
.about-side dl { margin: 0; display: flex; flex-direction: column; gap: 18px; font-size: 15px; line-height: 1.5; }
.about-side dt { font-family: var(--mono); font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.about-side dd { margin: 0; display: flex; flex-direction: column; gap: 2px; }
.about-main { max-width: 44rem; display: flex; flex-direction: column; gap: 72px; }
.lead-group { display: flex; flex-direction: column; gap: 22px; }
.principles { display: flex; flex-direction: column; }
.principle { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 12px 40px; padding: 26px 0; border-top: 1px solid var(--rule); }
.principle h3 { font-size: 24px; line-height: 1.15; }
.principle .body { font-size: 16px; }
.principle figure { margin-top: 18px; background: var(--surface); padding: 18px; }
@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-side { position: static; flex-direction: column; align-items: stretch; }
  .about-side img { max-width: 440px; }
  .principle { grid-template-columns: 1fr; }
}
.mini-work { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.mini-work a { display: flex; flex-direction: column; gap: 10px; text-decoration: none; }
.mini-work img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.mini-work .t { font-family: var(--serif-display); font-size: 21px; line-height: 1.2; }
.mini-work a:hover .t { text-decoration: underline; text-decoration-color: var(--coral); text-decoration-thickness: 2px; text-underline-offset: 0.18em; }
@media (max-width: 820px) { .mini-work { grid-template-columns: 1fr; } .mini-work a { display: grid; grid-template-columns: 120px minmax(0,1fr); align-items: center; gap: 16px; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: var(--on-dark-2); padding: 48px 0 40px; border-top: 1px solid var(--dark-rule); font-family: var(--mono); font-size: 12px; line-height: 1.6; }
.site-footer .row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 48px; align-items: flex-end; align-items: last baseline; }
.site-footer .role { margin: 0; }
.site-footer .row ul { margin-bottom: 0; }
.site-footer .name { font-family: var(--serif-display); font-size: 24px; color: var(--on-dark); line-height: 1.1; margin-bottom: 8px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 22px; }
.site-footer ul a { text-decoration: none; display: inline-block; padding: 10px 0; margin: -10px 0; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--on-dark); text-decoration: underline; text-decoration-color: var(--coral); text-underline-offset: 5px; }
.site-footer .note { color: var(--on-dark-muted); margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--dark-rule); }

/* ---------------------------------------------------------------- Case study layout, Oct 29 */
.cs-hero img { height: clamp(220px, 34vw, 500px); }
.cs-body { padding: 72px 0 104px; }
.cs-body .stack { gap: 88px; }
.lead.xl { font-size: clamp(23px, 2.3vw, 32px); line-height: 1.32; letter-spacing: -0.005em; }
.intro-split .body, .head-split .body, .sec-split .body { font-size: 17px; line-height: 1.6; }
@media (min-width: 1000px) {
  .intro-split { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 72px; align-items: start; }
  .intro-split .body { padding-top: 8px; }
  .head-split { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 72px; align-items: end; }
  .sec-split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 72px; align-items: start; }
  .sec-split > .block { position: sticky; top: 100px; }
  .brief-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards.two { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
}
@media (max-width: 999px) { .intro-split, .head-split, .sec-split { display: flex; flex-direction: column; gap: 20px; } .sec-split { gap: 32px; } }
.head-split h2.section { margin-top: 12px; }

/* The five questions as a track */
.track { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.track li { position: relative; padding: 28px 22px 26px 0; border-top: 1px solid var(--rule); }
.track li::before { content: ""; position: absolute; top: -4px; left: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--ink); }
.track .n { display: block; font-family: var(--mono); font-size: 12px; color: var(--muted); margin-bottom: 14px; }
.track .q { font-family: var(--serif-display); font-size: 21px; line-height: 1.2; }
.track .tags { font-family: var(--mono); font-size: 12px; line-height: 1.6; color: var(--muted); margin-top: 12px; }
.track li.brief { background: var(--dark); color: var(--on-dark); padding: 28px 22px 26px; border-top-color: var(--coral); border-top-width: 2px; }
.track li.brief::before { background: var(--coral); left: 22px; top: -5px; }
.track li.brief .n { color: var(--coral); font-weight: 500; }
.track li.brief p { margin: 12px 0 0; font-size: 14px; line-height: 1.55; color: var(--on-dark-2); }
.track li > div { display: block; }
@media (min-width: 1100px) { .track { grid-template-columns: repeat(2, minmax(0, 1fr)) minmax(0, 1.35fr) repeat(3, minmax(0, 1fr)); } }
@media (min-width: 700px) and (max-width: 1099px) { .track { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 24px; } }
@media (max-width: 699px) { .track li { padding-right: 0; } .track li.brief { margin: 8px 0; } }
@media (min-width: 1100px) { .track li.brief + li { padding-left: 22px; } .track li.brief + li::before { left: 22px; } }

/* ---------------------------------------------------------------- Case study 2 refinements, Oct 29 */
.sec-split.media { align-items: center; }
.sec-split.media > .block { position: static; }
.fig-stack { width: 100%; }
.fig-stack .figure-row { grid-template-columns: 1fr; gap: 28px; }
.block.wide { max-width: none; }
.block.wide .body { max-width: calc((100% - 220px) / 12 * 8 + 140px); }
@media (max-width: 999px) { .block.wide .body { max-width: none; } }
@media (min-width: 1000px) { .sec-split.media.narrow-fig { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); column-gap: 64px; align-items: start; } }
.sec-split.narrow-fig > .block { max-width: none; }
img.tile { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: #E3E3E3; display: block; }
@media (min-width: 1000px) { .sec-split.media { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); } }

.mic-ui { margin: 0; display: flex; flex-direction: column; gap: 20px; }
.mic-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.mic-part { display: grid; grid-template-columns: minmax(120px, 190px) minmax(0, 1fr); gap: 28px; align-items: center; padding: 32px 32px 32px 0; }
.mic-part + .mic-part { border-left: 1px solid var(--rule); padding-left: 32px; padding-right: 0; }
.mic-part svg { width: 100%; height: auto; display: block; }
.mic-part h3, .state h3 { font-family: var(--serif-display); font-weight: 400; font-size: 26px; line-height: 1.1; margin: 8px 0 8px; }
.mic-part p:not(.label), .state p:not(.cond) { margin: 0; font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.mic-combine { margin: 12px 0 0; }
.mic-states { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.state { border: 1px solid var(--rule); padding: 24px; display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; align-content: start; }
.state .glyphs { grid-row: 1; display: flex; gap: 6px; align-items: center; }
.state .glyphs svg { display: block; }
.state .tg { width: 32px; height: 32px; }
.state .sw { width: 18px; height: 31px; }
.state .cond { grid-column: 2; margin: 0; font-family: var(--mono); font-size: 12px; line-height: 1.5; color: var(--muted); }
.state h3, .state p:not(.cond) { grid-column: 1 / -1; }
.state h3 { margin-top: 28px; }
.state.off { background: #E6E6EA; border-color: #E6E6EA; }
@media (max-width: 899px) {
  .mic-pair { grid-template-columns: 1fr; }
  .mic-part, .mic-part + .mic-part { padding: 24px 0; border-left: 0; }
  .mic-part + .mic-part { border-top: 1px solid var(--rule); }
  .mic-states { grid-template-columns: 1fr; }
}
@media (max-width: 480px) { .mic-part { grid-template-columns: 110px minmax(0, 1fr); gap: 18px; } }

/* ---------------------------------------------------------------- App case study structure, Oct 29 */
.chapter { border-top: 1px solid var(--rule); padding-top: 40px; display: flex; flex-direction: column; gap: 32px; }
.chapter > .block .body { font-size: 17px; line-height: 1.6; }
@media (min-width: 1000px) {
  .chapter { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; align-items: start; }
  .chapter > .block { position: sticky; top: 100px; }
}
.stage { background: #E4E4E8; }
.phone-stage.stage { padding: 48px 40px; }
.phone-stage.stage video { max-width: 280px; border: 7px solid #141414; border-radius: 36px; box-shadow: 0 24px 48px -24px rgba(20,20,20,.45); background: #141414; }
.screens.stage { padding: 40px 32px 28px; gap: 20px; }
.screens.stage img { border: 5px solid #141414; border-radius: 26px; box-shadow: 0 18px 36px -20px rgba(20,20,20,.4); }
.screens.stage figcaption { color: var(--muted); }
.head-split.closing { border-top: 1px solid var(--rule); padding-top: 40px; }
@media (max-width: 640px) { .screens.stage { padding: 20px 12px 16px; } .screens.stage img { border-width: 3px; border-radius: 14px; } .phone-stage.stage { padding: 28px 24px; } }

/* ---------------------------------------------------------------- Oct 29: About + home refinements */
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.about { padding-top: 64px; }
/* Sidebar links behave like the nav: plain by default, coral underline on hover and focus */
.about-side a.linked { text-decoration: none; color: var(--ink); }
.about-side a.linked:hover, .about-side a.linked:focus-visible { text-decoration: underline; text-decoration-color: var(--coral); text-decoration-thickness: 2px; text-underline-offset: 5px; }
/* Home: case study images at 80% of their previous height (4:3 -> 5:3) */
.work-media img { aspect-ratio: 5 / 3; }

/* About: name as the page headline, beside the portrait */
.about-title { display: flex; flex-direction: column; gap: 14px; margin-bottom: 18px; }
.about-title h1 { font-family: var(--serif-display); font-weight: 400; font-size: clamp(48px, 6.2vw, 88px); line-height: 0.98; letter-spacing: -0.015em; margin: 0; }
@media (min-width: 821px) { .about-side { padding-top: 10px; } }
/* Touch screens have no hover, so sidebar links get a quiet underline there */
@media (hover: none) {
  .about-side a.linked { text-decoration: underline; text-decoration-color: #A8A8B0; text-decoration-thickness: 1px; text-underline-offset: 4px; }
  .about-side a.linked:active { text-decoration-color: var(--coral); }
}
@media (max-width: 820px) {
  .about-grid { display: flex; flex-direction: column; gap: 28px; }
  .about-main, .about-main > .lead-group { display: contents; }
  .about-title { order: -1; margin: 0; }
  .about-main > section { margin-top: 40px; }
}

/* QA, Oct 29: tap targets at least 44px tall on touch screens */
.brand { display: inline-flex; align-items: center; min-height: 44px; }
@media (hover: none) { .about-side dd a.linked { display: inline-block; padding: 10px 0; margin: -10px 0; } }

/* Home hero, Oct 29: text starts on the same line as the header and the rest of the page at every width,
   and the type keeps scaling on wide screens */
@media (min-width: 821px) {
  .hero { grid-template-columns: minmax(var(--gutter), 1fr) minmax(0, calc(var(--wide) / 2)) 50%; }
  .hero .copy { grid-column: 2; padding-left: 0; padding-right: clamp(32px, 4vw, 72px); }
  .hero .media { grid-column: 3; }
  .hero h1 { font-size: clamp(44px, 3vw + 34px, 96px); max-width: none; text-wrap: balance; }
  .hero p:not(.label) { font-size: clamp(17px, 0.55vw + 11px, 21px); line-height: 1.55; max-width: 34ch; text-wrap: pretty; }
}
/* Very wide screens: the page grid widens a little so header, hero and sections grow together */
:root { --wide: clamp(1240px, 72vw, 1520px); --content: var(--wide); }

/* ---------------------------------------------------------------- Case study 1: shipped programs */
.ship .head-split { align-items: end; }
.legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.legend li { display: inline-flex; align-items: center; gap: 8px; }
.legend li::before { content: ""; width: 18px; height: 2px; background: currentColor; }
.legend .deep { color: var(--ink); }
.ship-years { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); border-top: 1px solid var(--coral); }
.ship-years > li { position: relative; padding: 22px 10px 0 0; }
.ship-years > li::before { content: ""; position: absolute; top: -4px; left: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--coral); }
.ship-years .y { display: block; font-family: var(--serif-display); font-size: clamp(20px, 1.7vw, 26px); line-height: 1; margin-bottom: 14px; }
.ship-years ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 13px; line-height: 1.3; }
.ship-years .deep { color: var(--ink); font-weight: 600; }
.ship-years .platform { color: var(--muted); }
.ship-years sup { font-size: 0.75em; line-height: 0; }
.ship-note { margin-top: 20px; }
@media (max-width: 899px) {
  .ship-years { grid-template-columns: 1fr; border-top: 0; border-left: 1px solid var(--coral); margin-left: 3px; }
  .ship-years > li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 14px; padding: 0 0 18px 20px; }
  .ship-years > li::before { top: 4px; left: -4px; }
  .ship-years .y { margin: 0; font-size: 20px; }
  .ship-years ul { flex-direction: row; flex-wrap: wrap; gap: 4px 14px; font-size: 14px; padding-top: 2px; }
}
/* B: product row */
.ship-tiles { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 12px; }
.ship-tiles figure { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.ship-tiles img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; background: #EFEFED; }
.ship-tiles figcaption { display: flex; justify-content: space-between; gap: 8px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.ship-tiles figcaption span:first-child { color: var(--ink); }
@media (max-width: 1099px) { .ship-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 560px) { .ship-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* C: dark band */
.ship-c { padding: 0 0 88px; margin-top: 16px; }
.ship-band { width: 100%; height: clamp(200px, 30vw, 460px); object-fit: cover; display: block; margin-bottom: 56px; filter: grayscale(1) contrast(1.04); }
.ship-c .legend { color: var(--on-dark-muted); }
.ship-c .legend .deep, .ship-c .ship-years .deep, .ship-c .ship-years .y { color: var(--on-dark); }
.ship-c .ship-years .platform { color: var(--on-dark-muted); }
.ship-c h2.section { color: var(--on-dark); }
.ship h2.section { text-wrap: balance; }
@media (max-width: 560px) {
  .ship-tiles { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter) 6px; scrollbar-width: none; }
  .ship-tiles::-webkit-scrollbar { display: none; }
  .ship-tiles figure { flex: 0 0 44%; scroll-snap-align: start; }
}
@media (max-width: 560px) { .ship-tiles { scroll-padding-inline: var(--gutter); } }
/* C1: band in the middle of the case study */
.ship-c.mid { margin-top: 0; }
.cs-body.ship-after { padding-top: 88px; }
/* Light Previous/Next band (comparison for C2) */
.pager.light { background: var(--ground); color: var(--ink); border-top: 1px solid var(--rule); }
.pager.light .top .label { color: var(--ink); }
.pager.light .top a { color: var(--muted); }
.pager.light .top a:hover { color: var(--ink); }
.pager.light a, .pager.light .t { color: var(--ink); }
.pager.light .k { color: var(--muted); }
/* Shipped-products band on dark gray, so it reads apart from the black Previous/Next band */
.ship-c.gray-1 { background: #303036; }
.ship-c.gray-2 { background: #3A3A41; --on-dark-muted: #B0B0BA; }
.ship-c { margin-top: 0; }
.ship-years sup { font-size: 12px; vertical-align: 0.35em; line-height: 0; }

/* App page: pause/play control on looping videos */
.has-ctl { position: relative; }
.vid-ctl { position: absolute; right: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px 0 14px;
  border: 1px solid rgba(20,20,20,.18); border-radius: 999px; background: rgba(244,244,246,.92); color: var(--ink);
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.02em; cursor: pointer; backdrop-filter: blur(6px); }
.vid-ctl svg { width: 14px; height: 14px; fill: currentColor; }
.vid-ctl:hover { background: var(--ink); color: var(--on-dark); border-color: var(--ink); }
/* Case study 2 outcome: statement + full-width portfolio shot */
.outcome { display: flex; flex-direction: column; gap: 40px; border-top: 1px solid var(--rule); padding-top: 40px; }
.outcome .body { font-size: 17px; line-height: 1.6; }
.outcome-shot { margin: 0; }
.outcome-shot img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; background: #EEEEEE; }
@media (max-width: 640px) { .outcome-shot img { aspect-ratio: 4 / 3; } }
/* Leaner video control: icon only, quiet until hovered (44px tap area, 32px visible circle) */
.vid-ctl { right: 8px; bottom: 8px; width: 44px; height: 44px; min-height: 0; padding: 0; justify-content: center; gap: 0;
  border: 0; background: transparent; backdrop-filter: none; color: var(--muted); }
.vid-ctl::before { content: ""; position: absolute; inset: 6px; border-radius: 50%; border: 1px solid rgba(20,20,20,.16); background: rgba(244,244,246,.6); transition: background .15s, border-color .15s; }
.vid-ctl svg { position: relative; width: 16px; height: 16px; }
.vid-ctl:hover { background: transparent; color: var(--ink); border-color: transparent; }
.vid-ctl:hover::before { background: rgba(244,244,246,.95); border-color: rgba(20,20,20,.35); }
.outcome-shot img { background: #E3E3E3; }

/* App case study closing: small Live Activity vignette, quieter than the chapter media */
.vignette { margin: 0; max-width: 280px; }
.vignette img { width: 100%; height: auto; display: block; border-radius: 18px; }
.vignette .caption { margin-top: 10px; }
.chapter.closing > .block { position: static; }

/* ---------------------------------------------------------------- Case study 1: calmer pass (Oct 29, 2026) */
/* Smaller intro lede (also applies to the app case study intro) */
.lead.xl { font-size: clamp(21px, 1.8vw, 26px); line-height: 1.4; }
/* "The practice, built": headline and paragraph stacked instead of split */
.head-split.stacked { display: block; }
.head-split.stacked h2.section { text-wrap: balance; }
.head-split.stacked .body { max-width: 40rem; margin-top: 20px; }
/* Timeline: smaller questions, keyword lists in Inter */
.track .q { font-size: 19px; line-height: 1.24; }
.track .tags { font-family: var(--sans); font-size: 13px; line-height: 1.5; letter-spacing: 0; color: var(--muted); margin-top: 10px; }
/* Experience Brief: light gray stage, no dot; coral top rule stays */
.track li.brief { background: #E4E4E8; color: var(--ink); }
.track li.brief::before { display: none; }
.track li.brief .n { color: var(--ink); }
.track li.brief p { color: var(--ink-2); }
/* Brief grid without numbers */
.brief-grid > div { grid-template-columns: minmax(0, 1fr); }
/* One shared column line: tier pills and outcome cards start where the brief grid does */
@media (min-width: 1000px) {
  .tier { grid-template-columns: minmax(0, calc((100% - 16px) * 4 / 11 - 28px)) minmax(0, 1fr); column-gap: 72px; }
  .cards.two { column-gap: 40px; }
}
