/* The career story page. Direction A, "Pull the right end" (docs/decisions/2026-11-10-career-story-direction.md).
   The studio: a seamless paper backdrop, and six dyed cords lying on it. Brand: docs/brand/README.md. */
/* Fonts, self-hosted from Google Fonts (11 Nov 2026): Anybody and Host Grotesk, both SIL OFL (fonts/OFL-*.txt).
   Latin and latin-ext only; the unicode ranges are Google's, so a page loads only the files its characters need. */
/* Anybody, latin-ext */
@font-face {
  font-family: "Anybody";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 50% 150%;
  font-display: swap;
  src: url("fonts/anybody-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Anybody, latin */
@font-face {
  font-family: "Anybody";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 50% 150%;
  font-display: swap;
  src: url("fonts/anybody-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Host Grotesk italic, latin-ext */
@font-face {
  font-family: "Host Grotesk";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/host-grotesk-italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Host Grotesk italic, latin */
@font-face {
  font-family: "Host Grotesk";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/host-grotesk-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Host Grotesk, latin-ext */
@font-face {
  font-family: "Host Grotesk";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("fonts/host-grotesk-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Host Grotesk, latin */
@font-face {
  font-family: "Host Grotesk";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("fonts/host-grotesk-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light dark;
  --backdrop: #E3E6E9;
  --backdrop-deep: #D5D9DE;
  --ink: #15181C;
  --ink-soft: #4B535D;
  --rule: #B9C0C8;
  --cord-ai: #6A3FC0;
  --cord-now: #1B1E23;
  --cord-trustee: #8E6400;
  --cord-consult: #0F7F5E;
  --cord-founder: #C42F6B;
  --cord-eng: #2C57D0;
  /* The paper is light in both themes, so a dot on paper keeps the day colour of its cord at night too. */
  --cord-ai-paper: #6A3FC0; --cord-now-paper: #1B1E23; --cord-trustee-paper: #8E6400;
  --cord-consult-paper: #0F7F5E; --cord-founder-paper: #C42F6B; --cord-eng-paper: #2C57D0;
  --tag: #FFFFFF;
  --tag-ink: #15181C;
  --focus: #2C57D0;
  --shadow-strength: 0.22;
  --twist: rgba(0, 0, 0, 0.24); /* a groove between strands, on a cord drawn flat (decorative) */
  --twist-light: rgba(255, 255, 255, 0.16); /* a strand's lit crown, on a cord drawn flat (decorative) */
  --tag-edge: #6B747E; /* the edge of a paper tag against the backdrop */
  --ease-out-3: cubic-bezier(0, 0, 0.3, 1); /* from Open Props 1.7.23, copied in */

  /* Utopia, 360 to 1440, base 16 to 18, ratio 1.2 to 1.25 */
  --step--1: clamp(0.8333rem, 0.8102rem + 0.1029vw, 0.9rem);
  --step-0: clamp(1rem, 0.9583rem + 0.1852vw, 1.125rem);
  --step-1: clamp(1.2rem, 1.1333rem + 0.2963vw, 1.4063rem);
  --step-2: clamp(1.44rem, 1.3389rem + 0.4491vw, 1.7578rem);
  --step-3: clamp(1.728rem, 1.5801rem + 0.6574vw, 2.1973rem);
  --step-4: clamp(2.0736rem, 1.8562rem + 0.9662vw, 2.7466rem);
  --step-5: clamp(2.4883rem, 2.1678rem + 1.4244vw, 3.4332rem);
  --step-7: clamp(2.6rem, 1.6rem + 4.6vw, 5.9rem);
  --space-2xs: 0.25rem; --space-xs: 0.5rem; --space-s: 1rem; --space-m: 1.5rem; --space-l: 2rem;
  --space-xl: 3rem; --space-2xl: 4.5rem; --space-3xl: 6rem;
  --gutter: clamp(1rem, 4vw, 3.5rem);
  --header-h: 56px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --backdrop: #14171C;
    --backdrop-deep: #0E1014;
    --ink: #ECEEF1;
    --ink-soft: #A3ACB7;
    --rule: #333A44;
    --cord-ai: #B497FF;
    --cord-now: #ECEEF1;
    --cord-trustee: #D9A63A;
    --cord-consult: #3CC596;
    --cord-founder: #EE6E9F;
    --cord-eng: #6E93F5;
    --tag: #ECEEF1;
    --tag-ink: #14171C;
    --focus: #8FAEFF;
    --tag-edge: #ECEEF1;
    --shadow-strength: 0.5;
    /* Lighter grooves at night: the night cords are pale, and a strong groove on the white cord read as a candy
       cane (review, 11 Nov 2026). */
    --twist: rgba(0, 0, 0, 0.12);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 1rem); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--backdrop);
  color: var(--ink);
  font-family: "Host Grotesk", system-ui, sans-serif;
  font-size: var(--step-0);
  line-height: 1.55;
}
a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: var(--gutter); top: -100px; z-index: 50; background: var(--tag); color: var(--tag-ink); padding: 0.5rem 0.9rem; border-radius: 4px; }
.skip:focus { top: 8px; }

/* Header: the name, the way round the page, and the way to get in touch */
.site-header {
  position: sticky; top: 0; z-index: 20;
  height: var(--header-h);
  display: flex; align-items: center; gap: var(--space-m);
  padding: 0 var(--gutter);
  background: var(--backdrop);
  border-bottom: 1px solid var(--rule);
}
.site-header .name { font-family: "Anybody", "Host Grotesk", sans-serif; font-weight: 780; font-variation-settings: "wdth" 96; font-size: var(--step-1); text-decoration: none; letter-spacing: -0.01em; }
.site-header nav { margin-left: auto; }
.site-header ul { list-style: none; margin: 0; padding: 0; display: flex; gap: var(--space-m); align-items: center; font-size: var(--step--1); font-weight: 600; }
.site-header nav a { text-decoration: none; padding: 0.4rem 0; }
.site-header nav a:hover { text-decoration: underline; }
.site-header .talk { border: 2px solid var(--ink); border-radius: 6px; padding: 0.35rem 0.8rem; }
.site-header .talk:hover { background: var(--ink); color: var(--backdrop); text-decoration: none; }

/* The first screen: the knot */
.hero {
  position: relative;
  height: calc(100svh - var(--header-h)); min-height: 600px; max-height: 1100px;
  overflow: hidden;
  background: radial-gradient(120% 90% at 50% 40%, var(--backdrop) 55%, var(--backdrop-deep) 100%);
}
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 90px; background: linear-gradient(transparent, var(--backdrop)); pointer-events: none; }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero-copy {
  position: relative; z-index: 2;
  padding: clamp(1.5rem, 4vw, 3.5rem) var(--gutter) 0;
  max-width: 68rem;
  pointer-events: none;
}
.hero-copy > * { pointer-events: auto; }
h1 {
  font-family: "Anybody", "Host Grotesk", sans-serif;
  font-weight: 780;
  font-size: var(--step-7);
  line-height: 0.96;
  letter-spacing: -0.01em;
  margin: 0 0 var(--space-m);
  font-variation-settings: "wdth" var(--wdth, 64);
  text-wrap: balance;
}
.hero-copy p { margin: 0 0 var(--space-s); max-width: 31rem; color: var(--ink-soft); text-wrap: pretty; }
.controls { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: var(--space-s); }
.btn {
  font: inherit; font-weight: 600; font-size: var(--step--1);
  color: var(--ink); background: transparent;
  border: 2px solid var(--ink); border-radius: 6px;
  padding: 0.55rem 0.95rem; min-height: 44px; cursor: pointer;
  transition: background 160ms var(--ease-out-3), color 160ms var(--ease-out-3);
}
.btn:hover { background: var(--ink); color: var(--backdrop); }
.btn[hidden] { display: none; }

/* The tag on the loose end: tied on at its right, since it hangs off the end to the left */
.pull {
  position: absolute; z-index: 3; left: 0; top: 0;
  transform: translate(-9999px, 0);
  display: inline-flex; align-items: center; gap: 0.45rem;
  font: inherit; font-weight: 700; font-size: var(--step--1);
  color: var(--tag-ink); background: var(--tag);
  border: 1px solid var(--tag-edge); border-radius: 12px 4px 4px 12px;
  padding: 0.5rem 2rem 0.5rem 0.95rem; min-height: 44px;
  box-shadow: 0 1px 0 rgba(0,0,0,.08), 0 6px 16px -6px rgba(0,0,0,.35);
  cursor: grab; touch-action: none; user-select: none;
}
/* The eyelet the cord is tied through: a reinforced ring, with the cord's own colour showing in it. story.js puts
   its centre on the cord's end. */
.pull::after {
  content: ""; position: absolute; right: 9px; top: 50%; width: 12px; height: 12px; margin-top: -6px;
  border-radius: 50%; background: var(--cord-now);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--tag-ink) 40%, var(--tag)), inset 0 1px 2px rgba(0,0,0,.35);
}
.pull:active { cursor: grabbing; }
.pull svg { width: 1.1em; height: 1.1em; }
.pull.down svg { transform: rotate(-90deg); } /* on phones the end comes out downwards */
.pull[data-done] { display: none; }

/* Thread names: each opens its thread's tags. */
.lane-label {
  position: absolute; z-index: 3; left: 0; top: 0;
  font: inherit; font-size: var(--step--1); line-height: 1.2; white-space: nowrap;
  color: var(--ink); background: transparent; border: 0; border-radius: 4px;
  padding: 0.3rem 0.45rem; min-height: 28px; cursor: pointer;
  opacity: 0; visibility: hidden; transition: opacity 400ms var(--ease-out-3);
}
.lane-label b { font-weight: 700; margin-right: 0.4em; }
.lane-label span { color: var(--ink-soft); font-variant-numeric: tabular-nums; }
/* Hidden names and tags are out of the tab order as well as out of sight. */
.lane-label.show { opacity: 1; visibility: visible; }
.lane-label.stack { text-align: right; }
.lane-label.stack b, .lane-label.stack span { display: block; margin: 0; }
.lane-label:hover b { text-decoration: underline; text-underline-offset: 0.2em; }
.lane-label[aria-pressed="true"] { background: var(--tag); color: var(--tag-ink); box-shadow: 0 0 0 1px var(--tag-edge), 0 3px 10px -5px rgba(0,0,0,.35); }
.lane-label[aria-pressed="true"] span { color: var(--tag-ink); opacity: 0.8; }
.year {
  position: absolute; z-index: 2; left: 0; top: 0;
  font-size: var(--step--1); color: var(--ink-soft); font-variant-numeric: tabular-nums;
  transform: translateX(-50%); opacity: 0; visibility: hidden; transition: opacity 400ms var(--ease-out-3);
}
.year.show { opacity: 1; visibility: visible; }

/* Tags tied on the open thread, one per moment. */
.moment {
  position: absolute; z-index: 4; left: 0; top: 0;
  font: inherit; font-size: 0.8rem; font-weight: 650; line-height: 1;
  color: var(--tag-ink); background: var(--tag);
  border: 1px solid var(--tag-edge); border-radius: 3px 9px 9px 3px;
  padding: 0.42rem 0.6rem; min-height: 26px; min-width: 26px;
  box-shadow: 0 1px 0 rgba(0,0,0,.08), 0 4px 10px -4px rgba(0,0,0,.4);
  cursor: pointer; white-space: nowrap;
  opacity: 0; visibility: hidden;
  transition: opacity 300ms var(--ease-out-3);
}
.moment.show { opacity: 1; visibility: visible; }
.moment:hover, .moment[aria-expanded="true"] { background: var(--ink); color: var(--backdrop); }
.moment:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; box-shadow: 0 0 0 2px var(--backdrop); }
/* The Pull tag lies on the cords at rest, so its ring gets the same halo, keeping its own shadow. */
.pull:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; box-shadow: 0 0 0 2px var(--backdrop), 0 6px 16px -6px rgba(0,0,0,.35); }
.string { position: absolute; z-index: 3; left: 0; top: 0; width: 1.5px; height: 10px; background: var(--ink-soft); opacity: 0; visibility: hidden; transition: opacity 300ms; pointer-events: none; }
.string.show { opacity: 0.8; visibility: visible; }

/* Phones: the tags on the cords carry numbers, so a key under the knot names each one (story.js fills it from the
   tags the cords show). Its numbers are the same paper tags. */
.tag-key { display: grid; gap: var(--space-m); padding: var(--space-xs) var(--gutter) 0; transition: opacity 400ms var(--ease-out-3); }
.tag-key[hidden] { display: none; }
/* While the knot is tangled the key keeps its room, unseen, so it never pushes the page down when it appears. */
.tag-key.waiting { opacity: 0; visibility: hidden; }
.tk-name { display: flex; align-items: center; gap: 0.6rem; margin: 0 0 0.6rem; font-size: var(--step--1); font-weight: 700; }
.tk-name .swatch { --lay: 8.5px; width: 2.5rem; height: 10px; border-radius: 5px; flex: none; }
.tk-list { list-style: none; margin: 0; padding: 0; }
/* Room between rows for the focus ring, which reaches 6px out. */
.tk-list li + li { margin-top: 0.4rem; }
.tk-list a { display: grid; grid-template-columns: 2.4rem minmax(0, 1fr); column-gap: 0.5rem; align-items: start; padding: 0.45rem 0; min-height: 44px; text-decoration: none; }
.tk-n {
  justify-self: start; display: inline-flex; align-items: center; justify-content: center;
  min-width: 26px; height: 26px; padding: 0 0.45rem;
  font-size: 0.8rem; font-weight: 650; line-height: 1; font-variant-numeric: tabular-nums;
  color: var(--tag-ink); background: var(--tag);
  border: 1px solid var(--tag-edge); border-radius: 3px 9px 9px 3px;
  box-shadow: 0 1px 0 rgba(0,0,0,.08), 0 4px 10px -4px rgba(0,0,0,.4);
}
.tk-title { display: block; padding-top: 0.15rem; font-weight: 650; line-height: 1.3; text-wrap: pretty; }
.tk-when { display: block; margin-top: 0.1rem; font-size: var(--step--1); color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.tk-title.tk-more { color: var(--ink-soft); }
.tk-list a:hover .tk-title { text-decoration: underline; }

.card {
  position: absolute; z-index: 6; left: 0; top: 0; width: min(22rem, calc(100% - 24px));
  background: var(--tag); color: var(--tag-ink);
  border-radius: 6px; padding: 0.9rem 1rem 1rem;
  box-shadow: 0 2px 4px rgba(0,0,0,.12), 0 18px 34px -12px rgba(0,0,0,.45);
}
.card[hidden] { display: none; }
.card :focus-visible { outline-color: var(--tag-ink); }
.card .when { margin: 0 2.2rem 0.35rem 0; font-size: 0.8rem; opacity: 0.75; font-variant-numeric: tabular-nums; }
.card h2 { font-family: "Anybody", sans-serif; font-variation-settings: "wdth" 96; font-size: var(--step-1); line-height: 1.1; margin: 0 0 0.5rem; outline: none; }
.card dl { margin: 0; display: grid; gap: 0.1rem; font-size: var(--step--1); line-height: 1.45; }
.card dt { font-weight: 700; margin-top: 0.35rem; }
.card dd { margin: 0; }
.card .more { display: inline-block; margin-top: 0.7rem; font-size: var(--step--1); font-weight: 700; }
.card .close { position: absolute; top: 0.35rem; right: 0.35rem; width: 36px; height: 36px; border: 0; background: none; color: inherit; font: inherit; font-size: 1.35rem; line-height: 1; cursor: pointer; border-radius: 4px; }

/* Sections */
main { padding: 0 var(--gutter); }
.section { max-width: 76rem; margin: 0; padding: var(--space-3xl) 0 0; }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 30rem); gap: var(--space-s) var(--space-xl); align-items: end; margin-bottom: var(--space-2xl); }
h2 { font-family: "Anybody", sans-serif; font-weight: 780; font-variation-settings: "wdth" 112; font-size: var(--step-5); line-height: 1; margin: 0; letter-spacing: -0.01em; text-wrap: balance; }
.section-head p { margin: 0; color: var(--ink-soft); text-wrap: pretty; }

/* A length of the knot's rope drawn flat: three strands at the lay's angle, each lit along its crown with a groove
   either side, over a rounded shading lit from above. --lay is the gap between strands measured across them, about
   0.85 of the cord's thickness, as on the 3D rope. The case pages' rail runs the same rope down the page. */
.swatch, .dot, .cp-cord {
  background:
    linear-gradient(to bottom, var(--twist-light), transparent 45%, var(--twist)),
    repeating-linear-gradient(155deg, var(--twist) 0, transparent calc(var(--lay) * 0.12), var(--twist-light) calc(var(--lay) * 0.5), transparent calc(var(--lay) * 0.88), var(--twist) var(--lay)),
    var(--c);
}
/* A short length of a thread's cord: the swatch, and the small dot beside a piece of work. */
.swatch { --lay: 12px; display: block; width: 100%; max-width: 12rem; height: 14px; border-radius: 7px; }
.dot { --lay: 7px; display: inline-block; flex: none; width: 22px; height: 8px; border-radius: 4px; }

/* The work, one thread at a time. The switcher is the threads as short lengths of cord. */
/* Six across on a wide screen, three on a tablet, two on a phone: never an orphan row. */
.switcher { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--space-xs); margin: 0 0 var(--space-l); max-width: 72rem; }
.switch {
  font: inherit; color: var(--ink); background: transparent;
  border: 2px solid transparent; border-radius: 6px;
  padding: 0.55rem 0.7rem 0.6rem; min-height: 44px; cursor: pointer;
  display: grid; gap: 0.3rem; align-content: start; text-align: left;
}
.switch .swatch { --lay: 8.5px; height: 10px; border-radius: 5px; max-width: none; }
.switch b { font-weight: 700; font-size: var(--step--1); line-height: 1.2; }
.switch .yrs { font-size: 0.8rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.switch:hover { border-color: var(--rule); }
/* An open thread is drawn round in ink; a paper fill would hide the white cord at night. Closed ones are bare. */
.switch[aria-pressed="true"] { border-color: var(--ink); }
.switch[aria-pressed="true"] b { font-weight: 800; }
.switch[aria-pressed="false"] .swatch { opacity: 0.55; }
@media (max-width: 1099px) { .switcher { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.js .panel[hidden] { display: none; }
.panel { border-top: 2px solid var(--ink); padding-top: var(--space-l); }
.panel + .panel { margin-top: var(--space-2xl); }
.panel-head {
  display: grid; grid-template-columns: minmax(0, 17rem) minmax(0, 1fr) minmax(0, 19rem);
  grid-template-areas: "title roles left" "title note left";
  gap: var(--space-xs) var(--space-l); align-items: start; margin-bottom: var(--space-l);
}
.panel-title { grid-area: title; font-family: "Anybody", sans-serif; font-weight: 760; font-variation-settings: "wdth" 104; font-size: var(--step-3); line-height: 1.05; margin: 0; }
.panel-title .swatch { max-width: 10rem; margin-bottom: 0.6rem; }
.panel-title .yrs { display: block; margin-top: 0.35rem; font-family: "Host Grotesk", sans-serif; font-weight: 400; font-size: var(--step--1); color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.panel-roles { grid-area: roles; list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; }
.panel-roles li { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: var(--space-s); font-weight: 600; }
.panel-roles .y, .roles-all .y { color: var(--ink-soft); font-weight: 400; font-variant-numeric: tabular-nums; white-space: nowrap; font-size: var(--step--1); padding-top: 0.12rem; }
.panel-note { grid-area: note; margin: var(--space-xs) 0 0; color: var(--ink-soft); max-width: 36rem; text-wrap: pretty; }
.left-me { grid-area: left; margin: 0; padding: 0; }
.left-me h4 { margin: 0 0 var(--space-xs); font-size: var(--step--1); font-weight: 700; }
.left-me p { margin: 0 0 var(--space-xs); font-family: "Anybody", sans-serif; font-variation-settings: "wdth" 88; font-weight: 600; font-size: var(--step-1); line-height: 1.25; text-wrap: pretty; }

/* Each piece of work: a short entry, like a line on a CV, that opens into its own page. */
.case-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--space-xl); border-top: 1px solid var(--rule); }
.case-item { border-bottom: 1px solid var(--rule); }
.case-item a { display: flex; flex-direction: column; gap: 0.45rem; height: 100%; padding: var(--space-m) var(--space-xs) var(--space-m) 0; color: inherit; text-decoration: none; border-radius: 4px; }
.ci-meta { display: flex; align-items: center; gap: 0.55rem; font-size: var(--step--1); color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.ci-title { font-family: "Anybody", sans-serif; font-weight: 760; font-variation-settings: "wdth" 100; font-size: var(--step-2); line-height: 1.08; margin: 0.1rem 0 0; text-wrap: balance; }
.ci-summary { text-wrap: pretty; }
.ci-now { font-size: var(--step--1); text-wrap: pretty; }
.ci-now b { margin-right: 0.4em; }
.ci-more { margin-top: auto; padding-top: 0.25rem; font-size: var(--step--1); font-weight: 700; }
.ci-more::after { content: " →"; }
.case-item a:hover .ci-title, .case-item a:focus-visible .ci-title { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.14em; }

/* Every role, as a plain list. */
.roles-all { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.roles-all li { display: grid; grid-template-columns: 9rem minmax(0, 1fr) minmax(0, 18rem); gap: var(--space-xs) var(--space-l); padding: 0.75rem 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
.roles-all .t { display: flex; flex-wrap: wrap; gap: 0.25rem 0.9rem; font-size: var(--step--1); color: var(--ink-soft); }
.tt { display: inline-flex; align-items: center; gap: 0.45rem; }
.education { margin: var(--space-l) 0 0; color: var(--ink-soft); font-size: var(--step--1); }

/* A case study's own page. */
.cp { max-width: 46rem; padding: var(--space-2xl) var(--gutter) var(--space-xl); }
/* The rail: where this piece sits in its thread, as the thread's cord with every piece tied on. */
.cp-rail { margin-top: var(--space-2xl); }
.cp-rail h2 { font-family: "Host Grotesk", sans-serif; font-variation-settings: normal; font-weight: 700; font-size: var(--step--1); letter-spacing: 0; margin: 0 0 var(--space-s); }
.cp-thread { position: relative; list-style: none; margin: 0; padding: 0 0 0 1.6rem; display: grid; gap: var(--space-s); }
.cp-thread::before { content: ""; position: absolute; left: 0; top: 0.2rem; bottom: 0.2rem; width: 10px; border-radius: 5px; --lay: 8.5px; background: linear-gradient(to right, var(--twist-light), transparent 45%, var(--twist)), repeating-linear-gradient(245deg, var(--twist) 0, transparent calc(var(--lay) * 0.12), var(--twist-light) calc(var(--lay) * 0.5), transparent calc(var(--lay) * 0.88), var(--twist) var(--lay)), var(--c); }
.cp-thread li { position: relative; font-size: var(--step--1); line-height: 1.35; }
.cp-thread li::before { content: ""; position: absolute; left: -1.25rem; top: 0.55em; width: 0.8rem; height: 1.5px; background: var(--ink-soft); }
.cp-thread a { text-decoration: none; display: block; }
.cp-thread a:hover { text-decoration: underline; }
.cp-thread .y { display: block; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.cp-thread .here { font-weight: 700; }
.cp-thread .here::after { content: "You’re here"; display: table; margin-top: 0.35rem; padding: 0.1rem 0.45rem; border: 1px solid var(--tag-edge); border-radius: 3px 8px 8px 3px; background: var(--tag); color: var(--tag-ink); font-weight: 600; font-size: 0.75rem; }
@media (min-width: 1100px) {
  .cp { max-width: none; display: grid; grid-template-columns: minmax(0, 46rem) minmax(0, 18rem); column-gap: var(--space-3xl); align-items: start; }
  .cp-rail { position: sticky; top: calc(var(--header-h) + var(--space-l)); margin-top: 0; padding-top: calc(var(--space-2xl) + 2.4rem); }
}
.cp-crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin: 0 0 var(--space-m); font-size: var(--step--1); color: var(--ink-soft); }
.cp h1 { font-size: var(--step-5); font-variation-settings: "wdth" 100; line-height: 1.02; margin: 0 0 var(--space-s); }
.cp-meta { margin: 0 0 var(--space-m); color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.cp-lede { margin: 0 0 var(--space-l); font-family: "Anybody", sans-serif; font-variation-settings: "wdth" 88; font-weight: 600; font-size: var(--step-2); line-height: 1.22; text-wrap: pretty; }
.cp-cord { --lay: 12px; height: 14px; border-radius: 7px; margin: 0 0 var(--space-2xl); }
.cp-body section { margin: 0 0 var(--space-xl); }
.cp-body h2 { font-family: "Host Grotesk", sans-serif; font-variation-settings: normal; font-weight: 700; font-size: var(--step--1); letter-spacing: 0; margin: 0 0 0.5rem; }
.cp-looked { margin: 0; font-family: "Anybody", sans-serif; font-variation-settings: "wdth" 84; font-weight: 600; font-size: var(--step-2); line-height: 1.2; color: var(--ink-soft); text-wrap: pretty; }
.cp-going { margin: 0; font-size: var(--step-1); line-height: 1.45; font-weight: 500; text-wrap: pretty; }
.cp-did p, .cp-now p { margin: 0 0 var(--space-s); text-wrap: pretty; }
/* A figure on a case page: set off from the story, indented on the deeper backdrop. Plain steps are drawn in pencil;
   the step where a person sits or decides is paper, as the tags on the knot are, in its siblings' shape. */
.cp-figure, .cp-shot { margin: var(--space-l) 0 var(--space-l) var(--space-l); }
.cp-figure { padding: var(--space-m); border-radius: 10px; background: var(--backdrop-deep); }
.fig-row + .fig-row { margin-top: var(--space-m); }
.cp-figure .fig-label { margin: 0 0 var(--space-xs); font-size: var(--step--1); font-weight: 700; }
.cp-figure .fig-note { margin: var(--space-xs) 0 0; font-size: var(--step--1); color: var(--ink-soft); text-wrap: pretty; }
.cp-figure figcaption, .cp-shot figcaption { margin-top: var(--space-m); font-size: var(--step--1); color: var(--ink-soft); text-wrap: pretty; }
.seats, .flow { list-style: none; margin: 0; padding: 0; }
.seats { display: flex; flex-wrap: wrap; gap: var(--space-xs); }
.seats li, .flow li { position: relative; padding: 0.45rem 0.75rem; border: 1px solid var(--ink-soft); border-radius: 999px; font-size: 0.9rem; font-weight: 600; line-height: 1.3; }
.flow { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 1.25rem; align-items: stretch; }
.flow li { display: flex; align-items: center; border-radius: 6px; text-wrap: balance; hyphens: auto; }
.flow li + li::before { content: ""; position: absolute; right: calc(100% + 1px); top: 50%; width: 1.25rem; border-top: 1.5px solid var(--ink-soft); }
.seats li.key, .flow li.key {
  color: var(--tag-ink); background: var(--tag); border-color: var(--tag-edge);
  box-shadow: 0 1px 0 rgba(0,0,0,.08), 0 4px 10px -4px rgba(0,0,0,.4); padding-left: 1.5rem;
}
.seats li.key::after, .flow li.key::after { content: ""; position: absolute; left: 0.6rem; top: 50%; width: 0.5rem; height: 0.5rem; margin-top: -0.25rem; border-radius: 50%; background: var(--c-paper, var(--c)); }
/* A product's own screenshot: a print laid on the backdrop, with the tags' edge and shadow. */
.cp-shot img { display: block; width: 100%; max-width: 34rem; height: auto; border: 1px solid var(--tag-edge); border-radius: 8px; background: var(--tag); box-shadow: 0 1px 0 rgba(0,0,0,.08), 0 10px 24px -12px rgba(0,0,0,.45); }
.cp-site { font-weight: 700; }
@media (max-width: 760px) {
  .cp-figure, .cp-shot { margin-left: 0; }
  .cp-figure { padding: var(--space-s); }
  .flow { grid-auto-flow: row; justify-items: start; gap: 0.9rem; }
  .flow li + li::before { right: auto; left: 1.25rem; top: auto; bottom: calc(100% + 1px); width: 0; height: 0.9rem; border-top: 0; border-left: 1.5px solid var(--ink-soft); }
}
.cp-now { border-top: 2px solid var(--ink); padding-top: var(--space-s); }
.cp-now p { font-weight: 500; }
.cp-next { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-l); margin-top: var(--space-2xl); padding-top: var(--space-m); border-top: 1px solid var(--rule); }
.cp-next a { display: grid; gap: 0.2rem; font-weight: 700; text-decoration: none; }
.cp-next a span { font-weight: 400; font-size: var(--step--1); color: var(--ink-soft); }
.cp-next a:hover { text-decoration: underline; }
.cp-next .next { text-align: right; }
.cp-back { margin: var(--space-l) 0 0; font-weight: 700; }
/* The not-found page: a short loose end of the thread in your hand, then where to go instead, close under the words. */
.nf .cp-cord { max-width: 12rem; margin-bottom: var(--space-l); }
.nf-links { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-xs); font-size: var(--step-1); font-weight: 700; }
.nf-links a { display: inline-block; padding: 0.3rem 0; }
/* The arrow is decoration: empty alt text, and kept out of the underline. */
.nf-links a::after { content: "→"; content: "→" / ""; display: inline-block; margin-left: 0.3em; }
.cp-foot { padding: var(--space-l) var(--gutter) var(--space-2xl); color: var(--ink-soft); font-size: var(--step--1); }
.cp-foot a { white-space: nowrap; } /* "Get in touch" stays on one line on a phone */

/* Get in touch */
.contact { max-width: 76rem; margin: 0; padding: var(--space-3xl) 0 var(--space-2xl); }
.contact h2 { max-width: 18ch; margin-bottom: var(--space-l); line-height: 1.06; }

/* Phones: the page's sections, one tap away, just under the knot. */
.jump { display: none; }
@media (max-width: 760px) {
  .jump { display: block; padding: var(--space-s) var(--gutter) 0; }
  .jump ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; font-size: var(--step--1); font-weight: 650; }
  .jump a { display: inline-block; padding: 0.45rem 0; }
}
.contact .lead { margin: 0 0 var(--space-l); max-width: 34rem; color: var(--ink-soft); }
.channels { display: grid; gap: 0; border-top: 2px solid var(--ink); max-width: 46rem; }
.channel { display: grid; grid-template-columns: 7rem minmax(0, 1fr) auto; gap: var(--space-s); align-items: center; padding: 0.8rem 0; border-bottom: 1px solid var(--rule); }
.channel .k { font-size: var(--step--1); color: var(--ink-soft); font-weight: 600; }
.channel .v { font-weight: 600; overflow-wrap: anywhere; }
.copy { font: inherit; font-size: var(--step--1); font-weight: 650; color: var(--ink); background: transparent; border: 2px solid var(--ink); border-radius: 6px; padding: 0.3rem 0.7rem; min-height: 36px; cursor: pointer; }
.copy:hover { background: var(--ink); color: var(--backdrop); }
footer { max-width: calc(76rem + 2 * var(--gutter)); margin: 0; padding: var(--space-l) var(--gutter) var(--space-2xl); color: var(--ink-soft); font-size: var(--step--1); display: flex; flex-wrap: wrap; gap: var(--space-xs) var(--space-l); justify-content: space-between; }

@media (max-width: 1000px) {
  .section-head { grid-template-columns: minmax(0, 1fr); }
  .panel-head { grid-template-columns: minmax(0, 1fr); grid-template-areas: "title" "roles" "note" "left"; gap: var(--space-s); }
  .roles-all li { grid-template-columns: 8rem minmax(0, 1fr); }
  .roles-all .t { grid-column: 2; }
}
@media (max-width: 900px) {
  .case-list { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .site-header ul li:not(:last-child) { display: none; }
  .section-head { grid-template-columns: minmax(0, 1fr); }
  .switcher { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .panel-roles li, .roles-all li { grid-template-columns: minmax(0, 1fr); gap: 0.1rem; }
  .roles-all .t { grid-column: auto; }
  .cp-next { grid-template-columns: minmax(0, 1fr); }
  .cp-next .next { text-align: left; }
  .channel { grid-template-columns: minmax(0, 1fr) auto; }
  .channel .k { grid-column: 1 / -1; }
  .contact h2 { font-size: var(--step-4); max-width: none; }
  .hero { min-height: 620px; }
}
@media (prefers-reduced-motion: reduce) {
  .lane-label, .year, .moment, .string, .tag-key { transition: none; }
}
