/* aartikava.com — generated from tools/css/src by tools/css/build.py. Do not edit this file.
   Order: tokens, base, layout, components (one file each), keyframes. */

/* ===== 00-tokens.css ===== */
/* =====================================================================
   TOKENS. Every size, space and colour on the site comes from here.

   Type: one fluid scale in rem. Each step grows smoothly from a 360px phone to a 1440px laptop, then stops.
   Space: golden ratio, 8 · 13 · 21 · 34 · 55 · 89 · 144 at desktop; the larger steps ease down on phones.
   Breakpoints (em, so they follow the reader's own text size). Components use only these:
     30em   480px   large phones
     45em   720px   tablets, portrait
     56.25em 900px  small laptops, tablets landscape (navigation switches here)
     62.5em 1000px  laptops (shelf, open book)
     75em   1200px  desktop (spread, case-study contents)
     102.5em 1640px wide screens
   Rule for grids and lists: gaps are equal on both axes and smaller than the container's own padding.
   The page is a container too: side-by-side columns use --col-gap, which stays smaller than --gutter (the side margin).
   ===================================================================== */

@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 300 700; font-display: swap; src: url("../fonts/fraunces.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-style: italic; font-weight: 300 700; font-display: swap; src: url("../fonts/fraunces-italic.woff2") format("woff2"); }
@font-face { font-family: "League Spartan"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../fonts/league-spartan.woff2") format("woff2"); }

:root {
  /* Type scale (phone → laptop) */
  --t-xs: clamp(0.75rem, 0.7292rem + 0.0926vw, 0.8125rem);      /* 12 → 13  labels, captions */
  --t-sm: clamp(0.875rem, 0.8542rem + 0.0926vw, 0.9375rem);     /* 14 → 15  secondary text */
  --t-base: clamp(1rem, 0.9583rem + 0.1852vw, 1.125rem);        /* 16 → 18  body */
  --t-md: clamp(1.125rem, 1.0625rem + 0.2778vw, 1.3125rem);     /* 18 → 21  lead text, small titles */
  --t-lg: clamp(1.25rem, 1.1458rem + 0.463vw, 1.5625rem);       /* 20 → 25  h3 */
  --t-xl: clamp(1.4375rem, 1.25rem + 0.8333vw, 2rem);           /* 23 → 32  card titles, ledes */
  --t-2xl: clamp(1.75rem, 1.375rem + 1.667vw, 2.875rem);        /* 28 → 46  h2, statements */
  --t-3xl: clamp(2.125rem, 1.5833rem + 2.407vw, 3.75rem);       /* 34 → 60  page titles */
  --t-display: clamp(2.5rem, 1.5833rem + 4.074vw, 5.25rem);     /* 40 → 84  hero, case-study titles */
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "League Spartan", "Helvetica Neue", Arial, sans-serif;

  /* Space scale (phone → laptop) */
  --s1: 0.5rem;                                                 /* 8 */
  --s2: 0.8125rem;                                              /* 13 */
  --s3: 1.3125rem;                                              /* 21 */
  --s4: clamp(1.5rem, 1.2917rem + 0.9259vw, 2.125rem);          /* 24 → 34 */
  --s5: clamp(2.125rem, 1.6042rem + 2.315vw, 3.4375rem);        /* 34 → 55 */
  --s6: clamp(3.4375rem, 2.6042rem + 3.704vw, 5.5625rem);       /* 55 → 89 */
  --s7: clamp(5.5625rem, 4.2083rem + 6.019vw, 9rem);            /* 89 → 144 */

  /* Section rhythm (phone → laptop) */
  --section: clamp(3.5rem, 2.125rem + 6.111vw, 8rem);           /* 56 → 128 */
  --section-tight: clamp(2.125rem, 1.042rem + 4.815vw, 5.5rem); /* 34 → 88 */

  /* Layout */
  --gutter: clamp(1.25rem, 0.5rem + 3.6vw, 4.5rem);             /* 20 → 72 page side margin (the page's own padding) */
  --col-gap: clamp(1rem, 0.25rem + 2.8vw, 3.25rem);             /* gap between side-by-side columns: always about 3/4 of the side margin */
  --max: 87.5rem;                                               /* 1400 content width */
  --read: 42.5rem;                                              /* 680 reading column */
  --header: 4.5rem;
  --radius: 0.25rem;
  --radius-lg: 0.625rem;
  --pill: 999px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  /* Day: paper, ink, copper at golden hour */
  --paper: #f3ede2;
  --paper-deep: #e8dfcf;
  --card: #faf6ef;
  --ink: #1c1a17;
  --ink-2: #4b453e;
  --ink-3: #7d7368;
  --rule: rgba(28, 26, 23, 0.14);
  --accent: #a4562a;
  --accent-soft: rgba(164, 86, 42, 0.12);
  --dusk: #3c3857;
  --sage: #66735a;
  --shadow: rgba(40, 28, 16, 0.4);

  /* Landscape */
  --sky-top: #e6d6bd;
  --sky-bottom: #f3ede2;
  --sun: #e9a867;
  --sun-glow: rgba(233, 168, 103, 0.35);
  --r1: #d9cdbd; --r2: #bfb2a6; --r3: #8d839a; --r4: #5d5870; --r5: #2c2a36; --r15: #cdc1b6;
  --p1: #cbbfca; --p2: #b0a4b8;
  --mist: rgba(243, 237, 226, 0.55);
  --cloud: #fbf7f0;
  --water-top: #e2d6c6;
  --water-bottom: #efe7da;
  --ripple: rgba(255, 255, 255, 0.75);
  --stars: 0;
  --lights: 0;

  /* Shelf */
  --b1: #4f4270; --b2: #a5582f; --b3: #8b957a; --b4: #2f2b38; --b5: #d8c6a6; --b6: #7c3a4c; --b7: #3e6a69; --b8: #e9dfcc;
  --gilt: #e2c48e;
  --wood-top: #cdb28e;
  --wood-bottom: #a88a64;

  /* What I bring */
  --venn: #8f84b5;
  --venn-tint: #b8aedb;
  --venn-core: #4f4270;
  --venn-ink: #4f4270;

  color-scheme: light;
}

/* Dusk: the same view after sunset */
:root[data-theme="dusk"] {
  --paper: #15141b;
  --paper-deep: #1c1a25;
  --card: #272433;
  --ink: #efe8dc;
  --ink-2: #c7beb1;
  --ink-3: #9a9185;
  --rule: rgba(239, 232, 220, 0.16);
  --accent: #e39a63;
  --accent-soft: rgba(227, 154, 99, 0.16);
  --dusk: #a9a3d6;
  --sage: #a3b394;
  --shadow: rgba(0, 0, 0, 0.7);

  --sky-top: #0f0e17;
  --sky-bottom: #2a2536;
  --sun: #efe3c8;
  --sun-glow: rgba(239, 227, 200, 0.18);
  --r1: #3a3448; --r2: #2f2b3d; --r3: #252233; --r4: #1c1a28; --r5: #121118; --r15: #353043;
  --p1: #3f3752; --p2: #342e47;
  --mist: rgba(42, 37, 54, 0.5);
  --cloud: #6a6385;
  --water-top: #221f2e;
  --water-bottom: #17151e;
  --ripple: rgba(239, 227, 200, 0.28);
  --stars: 1;
  --lights: 1;

  --b1: #5d4f82; --b2: #a45a35; --b3: #69735b; --b4: #3a3545; --b5: #9d8a6a; --b6: #85445a; --b7: #43706e; --b8: #4d4858;
  --gilt: #c9a86e;
  --wood-top: #3a3129;
  --wood-bottom: #2a231d;

  --venn: #a89fcc;
  --venn-tint: #6a5f96;
  --venn-core: #b9aee6;
  --venn-ink: #c9c0ee;

  color-scheme: dark;
}

@media (min-width: 102.5em) {
  :root { --max: 95rem; }
}

/* ===== 01-base.css ===== */
/* =====================================================================
   BASE. Elements only: one definition each.
   ===================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html { font-size: 100%; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: var(--t-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background-color 0.6s var(--ease), color 0.6s var(--ease);
}

/* Paper grain: a quiet, tactile texture over everything */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 200; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.35 0 0 0 0 0.28 0 0 0 0 0.2 0 0 0 0.55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.07; mix-blend-mode: multiply;
}
:root[data-theme="dusk"] body::after { mix-blend-mode: screen; opacity: 0.035; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 0.618em;
  font-variation-settings: "SOFT" 50, "WONK" 0;
  text-wrap: balance;
}
h1 { font-size: var(--t-display); font-weight: 350; }
h2 { font-size: var(--t-2xl); font-weight: 350; }
h3 { font-size: var(--t-lg); }
h4 { font-size: var(--t-base); }
h1 em, h2 em, h3 em { font-variation-settings: "SOFT" 100, "WONK" 1; color: var(--accent); }

p { margin: 0 0 1.1em; }
em { font-style: italic; }
strong { font-weight: 500; }
img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--accent); color: var(--paper); }

.skip-link { position: absolute; left: 1rem; top: -3.75rem; z-index: 100; background: var(--ink); color: var(--paper); padding: 0.625rem 1rem; text-decoration: none; }
.skip-link:focus { top: 1rem; }
.nowrap { white-space: nowrap; } /* keeps hyphenated words like e-commerce whole in headings */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

@media print {
  body::after { display: none; }
  body { background: #fff; color: #000; }
}

/* ===== 02-layout.css ===== */
/* =====================================================================
   LAYOUT. Page width, section rhythm, shared text styles, reveal motion, utilities.
   ===================================================================== */
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }
.wrap--read { max-width: calc(var(--read) + var(--gutter) * 2); }

.section { position: relative; padding-block: var(--section); }
.section--tight { padding-block: var(--section-tight); }
.section--deep { background: var(--paper-deep); }

.grid-2 { display: grid; grid-template-columns: 1fr; gap: var(--s5) var(--col-gap); }
.grid-2 > * { min-width: 0; }
@media (min-width: 56.25em) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  /* lines a text column up with the heading beside it (kicker height + gap) */
  .align-title { padding-top: calc(var(--t-xs) * 1.6 + var(--s3) + var(--s1)); }
}

/* Inner page heads */
.page-head { position: relative; padding-top: calc(var(--header) + var(--s6)); padding-bottom: var(--s6); }
.page-head h1 { max-width: 14em; }
.page-head .lede { margin-top: var(--s1); color: var(--ink-2); }
.page-head--compact { padding-top: calc(var(--header) + var(--s5)); padding-bottom: var(--s4); }
.page-head--compact h1 { max-width: none; font-size: var(--t-3xl); margin-bottom: var(--s2); text-wrap: pretty; }
.page-head--compact .lede { font-size: var(--t-md); max-width: 34em; }

/* Shared text styles */
.kicker {
  display: inline-flex; align-items: center; gap: 0.75rem;
  margin-bottom: var(--s3);
  font-family: var(--sans); font-size: var(--t-xs); font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent);
}
.kicker::before { content: ""; width: 1.75rem; height: 1px; background: currentColor; }
.lede { max-width: 30em; font-family: var(--serif); font-size: var(--t-lg); font-weight: 300; line-height: 1.35; letter-spacing: -0.01em; color: var(--ink); }
.muted { color: var(--ink-2); }
.small { font-size: var(--t-sm); }
.rule { border: 0; border-top: 1px solid var(--rule); margin: 0; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(1.5rem); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-visible, .no-js .reveal { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* Page-load entrance: the opening lines of every page rise in, one after another */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > *, .page-head > *, .cs-hero > div > *, .article-head > * { animation: rise 0.9s var(--ease) both; }
  .hero-copy > :nth-child(2), .page-head > :nth-child(2), .cs-hero > div > :nth-child(2), .article-head > :nth-child(2) { animation-delay: 0.08s; }
  .hero-copy > :nth-child(3), .page-head > :nth-child(3), .cs-hero > div > :nth-child(3), .article-head > :nth-child(3) { animation-delay: 0.16s; }
  .hero-copy > :nth-child(4), .page-head > :nth-child(4), .cs-hero > div > :nth-child(4), .article-head > :nth-child(4) { animation-delay: 0.24s; }
  .hero-copy > :nth-child(n+5), .page-head > :nth-child(n+5), .cs-hero > div > :nth-child(n+5), .article-head > :nth-child(n+5) { animation-delay: 0.32s; }
}

/* Utilities: device-aware copy */
.m-only { display: none; }
.when-mouse { display: none; }
@media (max-width: 62.49em) {
  .m-hide { display: none !important; }
  .m-only { display: block; }
}
@media (hover: hover) {
  .when-mouse { display: inline; }
  .when-touch { display: none; }
}

/* Homepage section statements: one size, larger than inner-page h2s */
.statement { font-size: var(--t-3xl); line-height: 1.04; }
.section--ruled { border-top: 1px solid var(--rule); }

/* Utilities (token-based; use instead of inline styles) */
.m-0 { margin: 0; }
.mt-0 { margin-top: 0; }
.pt-0 { padding-top: 0; }
.mt-s2 { margin-top: var(--s2); }
.mt-s4 { margin-top: var(--s4); }
.mt-s5 { margin-top: var(--s5); }
.mt-s6 { margin-top: var(--s6); }
.mb-s2 { margin-bottom: var(--s2); }
.mb-s4 { margin-bottom: var(--s4); }
.mb-s5 { margin-bottom: var(--s5); }
.pt-tight { padding-top: var(--section-tight); }
.pb-section { padding-bottom: var(--section); }
.spacer-section { height: var(--section-tight); }
.measure-h-tight { max-width: 14em; }
.measure-h { max-width: 16em; }
.measure-h-wide { max-width: 18em; }
.measure-short { max-width: 24em; }
.measure { max-width: 34em; }
.measure-read { max-width: var(--read); }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: var(--s4); }
.page-head--full { min-height: 70svh; }

/* ===== 03-buttons.css ===== */
/* =====================================================================
   BUTTONS AND LINKS
   ===================================================================== */
.btn {
  display: inline-flex; align-items: center; gap: 0.625rem;
  padding: 0.875rem 1.375rem 0.75rem;
  font-family: var(--sans); font-size: var(--t-sm); font-weight: 500; letter-spacing: 0.02em;
  color: var(--ink); background: transparent;
  border: 1px solid var(--ink); border-radius: var(--pill);
  text-decoration: none; cursor: pointer;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn--solid { background: var(--ink); color: var(--paper); }
.btn--solid:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
:root[data-theme="dusk"] .btn--solid:hover { color: #1a1410; }
.btn .arrow { transition: transform 0.3s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.btn:hover .arrow--down { transform: translateY(3px); }

.link-arrow { font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--rule); padding-bottom: 2px; transition: border-color 0.3s; }
.link-arrow:hover { border-color: var(--accent); }

/* ===== 04-header.css ===== */
/* =====================================================================
   HEADER. Fixed bar; links from 56.25em, a full-screen menu below that.
   ===================================================================== */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease), transform 0.4s var(--ease); }
.site-header.is-scrolled { background: color-mix(in srgb, var(--paper) 88%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--rule); }
.site-header.is-hidden { transform: translateY(-100%); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; height: var(--header); }

.brand { display: inline-flex; align-items: center; gap: 0.75rem; font-family: var(--serif); font-size: var(--t-md); font-weight: 400; letter-spacing: -0.01em; text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand svg { width: 1.875rem; height: 1.875rem; flex: none; }
.brand .mark-peak { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.brand .mark-sun { fill: var(--accent); transform-origin: center; transition: transform 0.6s var(--ease); }
.brand:hover .mark-sun { transform: translateY(-2px); }

.nav-links { display: none; list-style: none; margin: 0; padding: 0; gap: 1.875rem; align-items: center; }
.nav-links a { position: relative; padding: 0.375rem 0; font-size: var(--t-sm); font-weight: 400; text-decoration: none; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }

.nav-tools { display: flex; align-items: center; gap: 0.625rem; }
.nav-resume { display: none; padding: 0.625rem 1.125rem 0.5rem; font-size: var(--t-sm); }

.theme-toggle, .menu-toggle {
  display: inline-grid; place-items: center; width: 2.625rem; height: 2.625rem;
  color: var(--ink); background: transparent; border: 1px solid var(--rule); border-radius: 50%;
  cursor: pointer; transition: border-color 0.3s, background 0.3s;
}
.theme-toggle:hover, .menu-toggle:hover { border-color: var(--ink); }
.theme-toggle svg { width: 1.125rem; height: 1.125rem; }
.theme-toggle .i-moon, :root[data-theme="dusk"] .theme-toggle .i-sun { display: none; }
:root[data-theme="dusk"] .theme-toggle .i-moon { display: block; }

.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after { display: block; width: 1rem; height: 1px; background: currentColor; }
.menu-toggle span { position: relative; }
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; transition: transform 0.3s var(--ease); }
.menu-toggle span::before { top: -0.3125rem; }
.menu-toggle span::after { top: 0.3125rem; }
.menu-open .menu-toggle span { background: transparent; }
.menu-open .menu-toggle span::before { transform: translateY(0.3125rem) rotate(45deg); }
.menu-open .menu-toggle span::after { transform: translateY(-0.3125rem) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 40;
  display: flex; flex-direction: column; gap: var(--s1);
  padding: calc(var(--header) + var(--s5)) var(--gutter) var(--s5);
  background: var(--paper);
  opacity: 0; visibility: hidden; transition: opacity 0.35s var(--ease), visibility 0.35s;
}
.mobile-menu a { font-family: var(--serif); font-size: var(--t-2xl); line-height: 1.3; text-decoration: none; }
.mobile-menu .btn { margin-top: var(--s4); align-self: flex-start; font-family: var(--sans); font-size: var(--t-sm); }
.menu-open { overflow: hidden; }
.menu-open .mobile-menu { opacity: 1; visibility: visible; }

/* Reading progress on long pages */
.progress { position: fixed; top: 0; left: 0; z-index: 60; width: 100%; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; }

@media (min-width: 56.25em) {
  .nav-links { display: flex; }
  .nav-resume { display: inline-flex; }
  .menu-toggle, .mobile-menu { display: none; }
}

@media print {
  .site-header, .theme-toggle, .progress { display: none; }
}

/* ===== 05-hero.css ===== */
/* =====================================================================
   HERO. The vantage point: copy over a full-height sky, the landscape below.
   Height uses the small viewport unit so mobile browser bars never crop it.
   ===================================================================== */
.hero { position: relative; display: flex; flex-direction: column; min-height: 100svh; overflow: hidden; isolation: isolate; }
.hero-sky { position: absolute; inset: 0; z-index: -2; background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-bottom) 70%); transition: background 0.8s var(--ease); }
.hero-fade { position: absolute; inset: 0; z-index: 2; opacity: 0; pointer-events: none; background: color-mix(in srgb, var(--sky-top) 70%, var(--paper-deep)); }

.hero-copy { position: relative; z-index: 3; padding-top: calc(var(--header) + clamp(var(--s4), 9vh, var(--s6))); will-change: transform, opacity; }
.hero-eyebrow { display: flex; align-items: center; gap: 0.625rem; margin-bottom: var(--s3); font-size: var(--t-xs); font-weight: 500; line-height: 1; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); }
.hero h1 { max-width: 9.5em; margin-bottom: var(--s3); line-height: 1.02; letter-spacing: -0.02em; }
.hero h1 em { white-space: nowrap; }
.hero-sub { max-width: 26em; margin-bottom: var(--s4); font-size: var(--t-md); color: var(--ink-2); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; }
@media (min-width: 62.5em) {
  .hero h1 { max-width: 17.5em; line-height: 1.08; letter-spacing: -0.015em; }
  .hero-sub { max-width: 54em; }
}

/* Live status beside the current role */
/* centred on the capitals, not the line box (uppercase text sits above the descender space) */
.status-dot { position: relative; flex: none; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: #5f8f5a; transform: translateY(var(--cap-nudge, -0.12em)); }
.status-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; opacity: 0.5; }
:root[data-theme="dusk"] .status-dot { background: #8fbf86; }

/* The landscape: at least a third of the width tall, so the peaks never squash on wide screens */
.landscape { position: relative; z-index: 1; flex: 1 0 auto; height: max(clamp(16.25rem, 46vh, 38.75rem), calc(100vw / 3.15)); margin-top: clamp(var(--s4), 4vh, var(--s5)); pointer-events: none; }
.landscape svg { display: block; width: 100%; height: 100%; overflow: visible; }
.landscape a, .landscape .pins a { pointer-events: auto; }
.landscape .layer { will-change: transform; transition: opacity 0.2s linear; }
.landscape .stars { opacity: var(--stars); transition: opacity 1s var(--ease); }
.landscape .stars circle, .landscape .stars .spark { fill: #f1e6cf; }
.landscape .stars .spark { opacity: 0.9; }
.landscape .clouds { opacity: 0.9; }
:root[data-theme="dusk"] .landscape .clouds { opacity: 0.45; }
.landscape .ripples ellipse { fill: none; stroke: var(--ripple); stroke-width: 1.2; }
.landscape .ripples .glint { fill: none; stroke: var(--ripple); stroke-width: 1.4; stroke-linecap: round; opacity: 0.55; }
.onlooker { fill: var(--r5); }

/* Peaks mark journal entries; the title shows when you point at a peak (SVG units, not rem) */
.pin { cursor: pointer; }
.pin .hit { fill: #000; fill-opacity: 0; stroke: none; pointer-events: all; }
.pin line { stroke: var(--ink); stroke-width: 1; opacity: 0.5; }
.pin circle.dot { fill: var(--paper); stroke: var(--ink); stroke-width: 1.4; transition: fill 0.3s; }
.pin circle.halo { fill: var(--accent); opacity: 0; transform-box: fill-box; transform-origin: center; }
.pin text { font-family: var(--serif); font-style: italic; font-size: 17px; fill: var(--ink); paint-order: stroke; stroke: var(--sky-bottom); stroke-width: 5px; stroke-linejoin: round; transition: fill 0.3s; }
.pin--soon line { stroke-dasharray: 3 4; }
.pin--soon circle.dot { fill: transparent; }
.pin--soon text { opacity: 0.75; }
.pin:hover circle.dot, .pin:focus circle.dot { fill: var(--accent); stroke: var(--accent); }
.pin:hover text, .pin:focus text { fill: var(--accent); }
@media (max-width: 56.24em) {
  .landscape .pins { display: none; }
}
@media (hover: hover) {
  .pin text { opacity: 0; transform: translateY(6px); transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), fill 0.3s; }
  .pin line { opacity: 0; transition: opacity 0.35s var(--ease); }
  .pin:hover text, .pin:focus-visible text { opacity: 1; transform: none; }
  .pin--soon:hover text, .pin--soon:focus-visible text { opacity: 0.75; }
  .pin:hover line, .pin:focus-visible line { opacity: 0.5; }
}

@media (prefers-reduced-motion: no-preference) {
  .landscape { animation: fade-in 1.4s var(--ease) 0.2s both; }
  .pin circle.halo { animation: halo 3.4s var(--ease) infinite; }
  .status-dot::after { animation: status-pulse 2.4s cubic-bezier(0.2, 0.6, 0.3, 1) infinite; }
}
.onlooker path { stroke: var(--r5); stroke-width: 0.8; stroke-linejoin: round; }

/* ===== 06-metrics.css ===== */
/* =====================================================================
   TICKER. Career facts drifting past. Hover speeds it up (site.js eases the rate);
   keyboard focus pauses it; reduced motion shows the list still and wrapped.
   ===================================================================== */
.metrics { overflow: hidden; padding-block: var(--s4); background: var(--paper); border-block: 1px solid var(--rule); }
.metrics-track { display: flex; width: max-content; animation: metrics-scroll 50s linear infinite; }
.metrics:focus-within .metrics-track { animation-play-state: paused; }
.metrics-list { display: flex; margin: 0; padding: 0; list-style: none; }
.metric { display: flex; align-items: baseline; gap: var(--s2); padding-inline: var(--s5); border-left: 1px solid var(--rule); white-space: nowrap; }
.metric b { font-family: var(--serif); font-size: var(--t-2xl); font-weight: 350; line-height: 1; letter-spacing: -0.02em; color: var(--accent); }
.metric span { font-size: var(--t-sm); line-height: 1.3; color: var(--ink-2); }

@media (prefers-reduced-motion: reduce) {
  .metrics-track { width: auto; animation: none; }
  .metrics-list { flex-wrap: wrap; row-gap: var(--s3); padding-inline: var(--s3); }
  .metrics-list[aria-hidden] { display: none; }
}

/* ===== 07-pause.css ===== */
/* How I think: one statement, then four steps.
   Phone: a single list, number beside each title. Tablet: 2 x 2. Desktop: four across on a timeline. */
.pause { background: var(--paper-deep); position: relative; overflow: hidden; }
#pause-title.lede { font-size: var(--t-2xl); line-height: 1.2; max-width: 24em; }

.pause-steps { list-style: none; margin: var(--s6) 0 0; padding: 0; display: grid; grid-template-columns: 1fr; position: relative; }
.pause-step { display: grid; grid-template-columns: var(--s4) minmax(0, 1fr); column-gap: var(--s2); padding: var(--s3) 0; border-top: 1px solid var(--rule); position: relative; }
.pause-step .n { grid-row: span 2; font-family: var(--serif); font-style: italic; color: var(--accent); font-size: var(--t-base); line-height: 1.6; }
.pause-step h3 { font-size: var(--t-lg); margin: 0 0 var(--s1); }
.pause-step p { grid-column: 2; margin: 0; color: var(--ink-2); font-size: var(--t-sm); line-height: 1.55; }
.pause-step--build { border-top-color: var(--accent); }
.pause-step--build .n, .pause-step--build h3 { grid-column: 2; grid-row: auto; } /* "Then" is wider than a number: it sits above its heading on phones */

@media (min-width: 45em) {
  .pause-steps { grid-template-columns: 1fr 1fr; gap: var(--s4); }
  .pause-step { display: block; padding: var(--s3) 0 0; }
  .pause-step .n { display: block; margin-bottom: var(--s1); }
}

@media (min-width: 62.5em) {
  .pause-steps { grid-template-columns: repeat(4, 1fr); gap: 0 var(--s4); }
  .pause-step { padding: var(--s4) 0 var(--s3); }
  /* timeline dots on the shared line */
  .pause-step::before { content: ""; position: absolute; top: -0.4375rem; left: 0; width: 0.8125rem; height: 0.8125rem; border-radius: 50%; background: var(--paper-deep); border: 1px solid var(--ink-2); }
  .pause-step--build::before { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 6px var(--accent-soft); }
}

/* The breath: a slow pulse travelling along the line before "build" */
@media (min-width: 62.5em) and (prefers-reduced-motion: no-preference) {
  .pause-steps::after { content: ""; position: absolute; top: -1px; left: 0; height: 1px; width: 18%; background: linear-gradient(90deg, transparent, var(--accent), transparent); animation: breath 7s var(--ease) infinite; opacity: 0; }
  .pause-steps.is-visible::after { opacity: 1; }
}

/* ===== 08-shelf.css ===== */
/* =====================================================================
   SELECTED WORK: the shelf and the open book.
   Phone and tablet (< 62.5em): the shelf hides and the books become a row of swipeable cards.
   Laptop (62.5em): the open book sits left of a shelf of thin spines.
   Desktop (75em): the open book becomes a spread, photo on the left page, story on the right.
   ===================================================================== */
#work { overflow-x: clip; }
.shelf-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: last baseline; gap: var(--s3); margin-bottom: var(--s5); }
.shelf-head p { max-width: 30em; margin: 0; }
.studio-shelf { display: grid; grid-template-columns: 1fr; gap: var(--s5) var(--col-gap); align-items: end; }
.studio-shelf > * { min-width: 0; }

/* ---------- The shelf ---------- */
.shelf-unit { position: relative; }
.spines { display: flex; align-items: flex-end; gap: 0.3125rem; padding: 2.5rem 0.25rem 0; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scrollbar-width: none; }
.spines::-webkit-scrollbar { display: none; }

.spine {
  --h: 380px; --w: 64px; --c: var(--b1); --ct: #f4ede2;
  position: relative; flex: 0 0 auto;
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  width: var(--w); height: var(--h); padding: 1rem 0 0.875rem;
  color: var(--ct); text-decoration: none; cursor: pointer; scroll-snap-align: start;
  background: linear-gradient(90deg, rgba(0,0,0,0.22) 0%, rgba(255,255,255,0.10) 18%, rgba(255,255,255,0.04) 40%, rgba(0,0,0,0) 60%, rgba(0,0,0,0.20) 100%), var(--c);
  border-radius: 0.1875rem 0.1875rem 2px 2px;
  box-shadow: inset 0 2px 0 rgba(255,255,255,0.08), 8px 4px 16px -10px rgba(30, 20, 10, 0.5);
  transition: transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.55s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.spine:hover, .spine:focus, .spine:active { color: var(--ct); }
.spine::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 0.25rem; background: var(--gilt); opacity: 0.9; border-radius: 0.1875rem 0.1875rem 0 0; }
.spine[aria-selected="true"], .spine:focus-visible { transform: translateY(-26px); box-shadow: inset 0 3px 0 rgba(255,255,255,0.12), 0 34px 30px -22px rgba(30, 20, 10, 0.55); }
.spine .emb { flex: none; width: 18px; height: 18px; margin-top: 14px; fill: none; stroke: var(--gilt); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; opacity: 0.95; }
.spine .t {
  flex: 1; display: flex; align-items: center;
  margin-bottom: 0.625rem; padding: 0.875rem 0 1.125rem;
  writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap;
  font-family: var(--sans); font-size: var(--t-sm); font-weight: 500; line-height: 1.1; letter-spacing: 0.08em; text-transform: uppercase;
}
.spine .yr { width: 62%; padding-top: 0.625rem; border-top: 1px solid color-mix(in srgb, currentColor 35%, transparent); font-size: var(--t-xs); font-weight: 600; letter-spacing: 0.06em; text-align: center; }
/* bookmark ribbon: a full case study */
.spine .mark { position: absolute; top: -0.625rem; right: 0.75rem; width: 0.5625rem; height: 1.625rem; background: var(--accent); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 78%, 0 100%); transform-origin: 50% 0; }
.spine--lean { margin-left: 0.625rem; transform: rotate(-5deg); transform-origin: bottom left; }
.spine--lean[aria-selected="true"], .spine--lean:focus-visible { transform: rotate(-5deg) translateY(-18px); }
/* the light spine keeps light text at dusk; its inline style sets dark text for day */
:root[data-theme="dusk"] #sp-8 { --ct: #f4ede2 !important; }
@media (hover: hover) {
  .spine:hover { transform: translateY(-22px); box-shadow: inset 0 3px 0 rgba(255,255,255,0.12), 0 30px 28px -22px rgba(30, 20, 10, 0.5); }
  .spine--lean:hover { transform: rotate(-5deg) translateY(-16px); }
}

.shelf-board { position: relative; height: 1rem; border-radius: 2px; background: linear-gradient(180deg, var(--wood-top) 0 3px, var(--wood-bottom) 3px); box-shadow: 0 -1px 0 rgba(255,255,255,0.25) inset, 0 22px 30px -18px rgba(40, 28, 16, 0.5); }
.shelf-caption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem; margin-top: 1rem; font-size: var(--t-xs); color: var(--ink-3); }

/* Bookend by day: a cat napping on a small stack of books (desktop only) */
.nap { position: relative; flex: 0 0 7.5rem; align-self: flex-end; height: 6rem; margin-left: 0.25rem; pointer-events: none; }
.book-stack { position: absolute; left: 0; bottom: 0; width: 7.5rem; height: 2.125rem; overflow: visible; }
.book-stack .bs { filter: drop-shadow(2px 2px 2px rgba(30, 20, 10, 0.25)); }
.book-stack .bs-1 { fill: var(--b2); }
.book-stack .bs-2 { fill: var(--b1); }
.book-stack .bs-gilt { fill: none; stroke: var(--gilt); stroke-width: 0.9; opacity: 0.8; }
.shelf-cat { position: absolute; left: 0.875rem; bottom: 2.062rem; z-index: 2; width: 5.25rem; height: 3.5rem; overflow: visible; pointer-events: none; }
.shelf-cat .cat-body { fill: var(--card); stroke: var(--ink-2); stroke-width: 1.4; stroke-linejoin: round; }
.shelf-cat .cat-fur { fill: #fffaf2; }
.shelf-cat .cat-edge { fill: none; stroke: var(--ink-2); stroke-width: 1.4; stroke-linejoin: round; }
.shelf-cat .cat-stroke { stroke: var(--ink-2); stroke-width: 1.4; stroke-linejoin: round; }
.shelf-cat .cat-ln { fill: none; stroke: var(--ink-2); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.shelf-cat .cat-thin { stroke-width: 1; }
.shelf-cat .cat-orange { fill: #e39a5c; }
.shelf-cat .cat-dark { fill: #3d3531; }
.shelf-cat .cat-pink { fill: #efb2b0; }
.shelf-cat .cat-blush { fill: #ef9f9c; opacity: 0.5; }
.shelf-cat .cat-nose { fill: #e0878d; }
.shelf-cat .cat-tail { fill: none; stroke: #e39a5c; stroke-width: 4.2; stroke-linecap: round; }
.shelf-cat .cat-head { transform-box: view-box; transform-origin: 32px 58px; transition: transform 0.7s var(--ease); }
.shelf-cat .eyes-open { opacity: 0; transition: opacity 0.3s ease 0.25s; }
.shelf-cat .eyes-open circle { fill: #2a2522; }
.shelf-cat .eyes-open .cat-shine { fill: #fff; }
.shelf-cat .eyes-closed { transition: opacity 0.2s ease 0.2s; }
.shelf-cat .cat-z { font-family: var(--serif); font-style: italic; font-size: var(--t-xs); fill: var(--ink-3); transition: opacity 0.3s; }
/* pointing at the shelf wakes her */
.shelf-unit:hover .shelf-cat .cat-head, .shelf-unit:focus-within .shelf-cat .cat-head { transform: rotate(-10deg) translate(1px, -7px); }
.shelf-unit:hover .shelf-cat .eyes-open, .shelf-unit:focus-within .shelf-cat .eyes-open { opacity: 1; }
.shelf-unit:hover .shelf-cat .eyes-closed, .shelf-unit:focus-within .shelf-cat .eyes-closed { opacity: 0; }
.shelf-unit:hover .shelf-cat .cat-z, .shelf-unit:focus-within .shelf-cat .cat-z { opacity: 0; animation: none; }
:root[data-theme="dusk"] .nap { display: none; }

/* Bookend by night: a reading lamp that lights when you point at the shelf */
.shelf-lamp, .lamp-glow { display: none; }
:root[data-theme="dusk"] .shelf-lamp { display: block; position: absolute; right: 1%; bottom: 0.875rem; z-index: 2; width: 4.375rem; height: 9.375rem; pointer-events: none; }
.shelf-lamp .shade { fill: #3a3346; stroke: #d8c7a6; stroke-width: 1.2; }
.shelf-lamp .line { fill: none; stroke: var(--ink-2); stroke-width: 1.4; stroke-linecap: round; }
.shelf-lamp .base { fill: var(--ink-2); }
.shelf-lamp .bulb { fill: #ffe3ad; filter: drop-shadow(0 0 6px rgba(255, 214, 150, 0.9)); opacity: 0; transition: opacity 0.6s var(--ease); }
:root[data-theme="dusk"] .lamp-glow { display: block; position: absolute; right: -22%; bottom: -3.75rem; z-index: 1; width: 95%; height: 175%; opacity: 0; pointer-events: none; background: radial-gradient(ellipse at 76% 58%, rgba(255, 214, 150, 0.5), rgba(255, 205, 140, 0.18) 40%, rgba(255, 205, 140, 0) 68%); transition: opacity 0.5s var(--ease); }
.shelf-unit:hover .lamp-glow, .shelf-unit:focus-within .lamp-glow, .shelf-unit:hover .shelf-lamp .bulb, .shelf-unit:focus-within .shelf-lamp .bulb { opacity: 1; }

/* ---------- The open book (one card per work) ---------- */
.book-panel { position: relative; display: grid; }
.book-panel > .book-page { grid-area: 1 / 1; align-self: stretch; }
.book-page {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  background: var(--card); border-radius: 1rem;
  box-shadow: 0 30px 60px -40px rgba(40, 28, 16, 0.55), 0 0 0 1px color-mix(in srgb, var(--ink) 6%, transparent);
}
:root[data-theme="dusk"] .book-page { box-shadow: 12px 22px 44px -26px rgba(0, 0, 0, 0.85), inset 0 0 0 1px rgba(239, 232, 220, 0.07); }
.js .book-page { opacity: 0; visibility: hidden; transition: opacity 0.18s ease, visibility 0s linear 0.18s; }
.js .book-page.is-active { opacity: 1; visibility: visible; transition: opacity 0.32s ease 0.12s, visibility 0s; }
.no-js .book-page:not(:first-child) { display: none; }

.book-media { position: relative; flex: none; display: grid; place-items: center; aspect-ratio: 1 / 1; overflow: hidden; background: var(--paper-deep); }
.book-media::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 0.25rem; background: var(--c); }
.book-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.book-page.is-active .book-media img, .book-page:hover .book-media img { transform: scale(1.03); }
:root[data-theme="dusk"] .book-media img { filter: brightness(0.9) contrast(1.02); }
.book-media--contain img { object-fit: contain; padding: var(--s3); }
.book-media--type { padding: 1.875rem; font-family: var(--serif); font-size: var(--t-xl); line-height: 1.15; text-align: center; color: var(--ct, #f4ede2); background: var(--c); }
/* Side projects: a drawing of the maker's table instead of a photo */
.book-media--making { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--s2); padding: var(--s3); color: var(--ink); }
.book-media--making .making { width: min(70%, 16.25rem); height: auto; }
.making .mk-ln { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.making .mk-sk { fill: none; stroke: var(--accent); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.making .mk-acc { fill: var(--accent); }
.making .mk-page { fill: #fbf8f2; }
.making .mk-block { fill: #d9b98f; }
.making .mk-block2 { fill: #c49c6c; }
.making .mk-block3 { fill: #b0875a; }
.making-cap { max-width: 14em; font-family: var(--serif); font-size: var(--t-base); line-height: 1.2; text-align: center; }

.book-body { flex: 1; display: flex; flex-direction: column; align-items: flex-start; padding: var(--s3) var(--s3) var(--s4); }
.book-body .kicker { margin-bottom: var(--s1); font-size: var(--t-xs); letter-spacing: 0.16em; color: var(--ink-2); }
.book-body .kicker::before { width: 0.625rem; height: 0.625rem; border-radius: 50%; background: var(--c); }
.book-body h3 { margin-bottom: 0.75rem; font-size: var(--t-xl); line-height: 1.12; }
.book-body > p:not(.kicker) { display: none; }
.book-note { display: flex; align-items: center; gap: 0.5rem; margin: 0 0 0.875rem; font-size: var(--t-xs); font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2); }
.book-note::before { content: ""; width: 0.875rem; height: 1px; background: currentColor; }
.book-tags { display: flex; flex-wrap: wrap; gap: var(--s1); margin: 0 0 var(--s3); pointer-events: none; }
.book-tags span { padding: 0.375rem 0.625rem 0.3125rem; font-size: var(--t-xs); font-weight: 500; line-height: 1; letter-spacing: 0.04em; white-space: nowrap; color: var(--ink-2); border: 1px solid var(--rule); border-radius: var(--pill); }
.book-body .outcomes { display: flex; flex-wrap: wrap; gap: var(--s2); margin: 0 0 var(--s2); padding: 0; list-style: none; font-size: var(--t-sm); }
.book-body .outcomes li { display: inline-flex; align-items: center; gap: 0.4375rem; font-weight: 500; line-height: 1.1; white-space: nowrap; color: var(--ink); }
.book-body .outcomes li::before { content: ""; flex: none; width: 0.3125rem; height: 0.3125rem; border-radius: 50%; background: var(--c); }
/* phone: the whole card is the link, the button reads as a quiet text link */
.book-body .btn { padding: 0; font-size: var(--t-sm); color: var(--ink); background: none; border: 0; }
.book-body .btn .arrow { color: var(--c); }
.book-page .book-body .btn::after { content: ""; position: absolute; inset: 0; border-radius: 1rem; }

/* ---------- Phones and tablets: swipeable cards ---------- */
.shelf-more { display: none; }
@media (max-width: 62.49em) {
  .js .studio-shelf .shelf-unit, .js .shelf-head > p { display: none; }
  .js .shelf-more { display: block; margin: var(--s2) 0 0; }
  .js .book-panel {
    display: flex; align-items: flex-start; gap: 1rem;
    margin-inline: calc(var(--gutter) * -1); padding: var(--s2) var(--gutter) 1.75rem;
    overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none;
  }
  .js .book-panel::-webkit-scrollbar { display: none; }
  .js .book-panel > .book-page { flex: 0 0 min(86%, 35rem); scroll-snap-align: start; opacity: 1; visibility: visible; transition: none; }
  .shelf-swipe { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); margin-top: var(--s3); font-size: var(--t-xs); color: var(--ink-2); }
  .js .shelf-swipe { margin-top: 0; }
  .shelf-dots { display: flex; gap: 2px; }
  .shelf-dots button { display: grid; place-items: center; width: 1.375rem; height: 1.375rem; padding: 0; background: none; border: 0; cursor: pointer; }
  .shelf-dots button::before { content: ""; width: 0.4375rem; height: 0.4375rem; border-radius: 50%; background: var(--rule); transition: background 0.3s, transform 0.3s; }
  .shelf-dots button.on::before { background: var(--accent); transform: scale(1.3); }
}

/* Tablet: two cards in view, the description and a real button come back */
@media (min-width: 45em) {
  .js .book-panel > .book-page { flex-basis: min(62%, 35rem); }
  .book-media { aspect-ratio: 4 / 3; }
  .book-body { padding: var(--s4) var(--s4) 1.75rem; }
  .book-body > p:not(.kicker) { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; margin-bottom: var(--s3); font-size: var(--t-base); line-height: 1.55; color: var(--ink-2); }
  .book-body .outcomes { width: 100%; margin: auto 0 1.125rem; padding-top: 1.125rem; border-top: 1px solid var(--rule); }
  .book-body .btn { padding: 0.875rem 1.375rem 0.75rem; border: 1px solid var(--ink); }
  .book-body .btn--solid { color: #fff; background: var(--c); border-color: var(--c); }
  .book-body .btn--solid:hover { filter: brightness(1.1); background: var(--c); }
  .book-body .btn .arrow { color: inherit; }
  .book-page .book-body .btn::after { content: none; }
}

/* ---------- Laptop: the open book beside the shelf ---------- */
@media (min-width: 62.5em) {
  .studio-shelf { grid-template-columns: minmax(0, 1fr) 22.5rem; column-gap: var(--col-gap); }
  .studio-shelf .book-panel { order: -1; }
  .shelf-swipe { display: none; }
  .spine { width: calc(var(--w) * 0.7); }
  .book-media { aspect-ratio: 16 / 10; }
  .book-media img { object-position: 50% 42%; }
  .book-body { padding: 1.375rem 1.625rem 1.5rem; }
  .book-body h3 { margin-bottom: 0.5rem; font-size: var(--t-lg); }
  .book-body > p:not(.kicker) { -webkit-line-clamp: 2; margin-bottom: 1rem; }
  .book-body .outcomes { margin-bottom: 1rem; padding-top: 0.875rem; }
}

/* ---------- Desktop: the selected book opens as a spread ---------- */
@media (min-width: 75em) {
  .studio-shelf { grid-template-columns: minmax(0, 1fr) 21.25rem; }
  .spine { width: calc(var(--w) * 0.68); height: calc(var(--h) * 0.8); }
  .book-page { flex-direction: row; min-height: 26.25rem; padding: 0.4375rem; background: var(--c); border-radius: 0.25rem 0.4375rem 0.4375rem 0.25rem; box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12) inset, 14px 26px 44px -28px rgba(40, 28, 16, 0.5); }
  :root[data-theme="dusk"] .book-page { box-shadow: 14px 26px 44px -26px rgba(0, 0, 0, 0.85); }
  .book-media { flex: 0 0 45%; aspect-ratio: auto; border-radius: 2px 0 0 2px; }
  .book-media::after { top: 0; left: auto; width: 1.875rem; height: auto; background: linear-gradient(90deg, transparent, rgba(30, 20, 12, 0.22)); }
  .book-media img { object-position: 50% 45%; }
  .book-media--contain img { padding: 1.75rem; }
  .book-media--type { padding: 2rem; font-size: var(--t-lg); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06); }
  .book-media--making { padding: var(--s3); }
  .book-body { position: relative; padding: 2rem 2.125rem 1.75rem 2.375rem; background: var(--card); border-radius: 0 0.1875rem 0.1875rem 0; box-shadow: inset -1px 0 0 var(--rule), inset -3px 0 0 var(--card), inset -4px 0 0 var(--rule), inset -6px 0 0 var(--card), inset -7px 0 0 var(--rule); }
  .book-body::before { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 1.625rem; pointer-events: none; background: linear-gradient(90deg, rgba(30, 20, 12, 0.13), transparent); }
  .book-body h3 { margin-bottom: 0.75rem; line-height: 1.15; }
  .book-body > p:not(.kicker) { -webkit-line-clamp: 3; margin-bottom: 1.25rem; }
  #bk-8 { background: color-mix(in srgb, var(--c) 78%, #6b5a45); }
  #bk-8 .book-media--making { background: color-mix(in srgb, var(--c) 92%, #6b5a45); }
}

/* Bookend only where the shelf has room */
@media (max-width: 74.99em) {
  .nap { display: none; }
}

@media (prefers-reduced-motion: no-preference) {
  .shelf-cat .cat-z { animation: cat-z 3.2s ease-in-out infinite; }
  .shelf-cat .cat-z2 { animation-delay: 1.1s; }
  .spine[aria-selected="true"] .mark { animation: ribbon 1.8s cubic-bezier(0.3, 0.6, 0.4, 1) both; }
}

/* ===== 09-venn.css ===== */
/* =====================================================================
   WHAT I BRING. Three overlapping circles; pick one to see what goes into it.
   SVG text sizes are in SVG units (the drawing scales as a whole).
   ===================================================================== */
.toolkit { border-bottom: 1px solid var(--rule); }
/* the heading and its intro always stack, never side by side */
.toolkit-head { display: grid; grid-template-columns: 1fr; gap: var(--s3); align-items: start; margin-bottom: var(--s4); }
.toolkit-head h2 { max-width: 16em; margin: 0; }
.toolkit-head p { max-width: 36em; margin: 0; }

.venn-wrap { display: grid; gap: var(--s5) var(--col-gap); align-items: center; margin-top: var(--s4); }
.venn { justify-self: center; width: 100%; max-width: 21.25rem; overflow: visible; }
.venn .v { cursor: pointer; outline: none; }
.venn .v text { font-family: var(--serif); font-size: 21px; text-anchor: middle; fill: var(--venn-ink); pointer-events: none; transition: fill 0.3s; }

/* the three outer circles */
.venn .v:not(.v--core) circle {
  fill: var(--venn-tint); fill-opacity: 0.42; stroke: var(--venn-core); stroke-opacity: 0.18; stroke-width: 1;
  mix-blend-mode: multiply; transition: fill-opacity 0.4s var(--ease), stroke-opacity 0.4s var(--ease);
}
:root[data-theme="dusk"] .venn .v:not(.v--core) circle { mix-blend-mode: screen; fill-opacity: 0.38; }
.venn .v:not(.v--core):hover circle { fill-opacity: 0.6; stroke-opacity: 0.45; }
.venn .v[aria-pressed="true"]:not(.v--core) circle, .venn .v:not(.v--core):focus-visible circle { fill-opacity: 0.72; stroke-opacity: 0.9; stroke-width: 1.6; }

/* the core: where all three meet; pointing at it lifts the lens */
.venn .v--core circle { fill: var(--venn-core); fill-opacity: 1; stroke: none; }
.venn .v--core .core-outline { display: none; }
.venn .v--core > g:first-of-type { transform-box: view-box; transform-origin: 200px 172px; transition: transform 0.5s var(--ease), filter 0.5s var(--ease); }
.venn .v--core text { font-style: italic; font-size: 15px; fill: #fbf7ef; transform-box: view-box; transform-origin: 200px 185px; transition: transform 0.5s var(--ease); }
:root[data-theme="dusk"] .venn .v--core text { fill: #1d1a26; }
.venn .v--core:hover > g:first-of-type, .venn .v--core:focus-visible > g:first-of-type { transform: scale(1.06); filter: drop-shadow(0 8px 14px rgba(79, 66, 112, 0.28)); }
:root[data-theme="dusk"] .venn .v--core:hover > g:first-of-type, :root[data-theme="dusk"] .venn .v--core:focus-visible > g:first-of-type { filter: drop-shadow(0 0 16px rgba(185, 174, 230, 0.35)); }
.venn .v--core:hover text, .venn .v--core:focus-visible text { transform: scale(1.06); }

/* the panel beside it */
.venn-panel { min-height: 14em; }
.venn-panel .vp { display: grid; gap: 0.75rem; animation: vpIn 0.5s var(--ease) both; }
.venn-panel .kicker { color: var(--venn-ink); }
.venn-panel .kicker::before { background: var(--venn-ink); }
.venn-panel h3 { margin: 0; font-size: var(--t-xl); line-height: 1.12; }
.venn-panel ul { display: grid; gap: var(--s1); margin: 0.25rem 0 0; padding: 0; list-style: none; }
.venn-panel li { display: flex; align-items: baseline; gap: 0.625rem; font-size: var(--t-sm); color: var(--ink-2); }
.venn-panel li::before { content: ""; flex: none; width: 0.3125rem; height: 0.3125rem; border-radius: 50%; background: var(--venn-ink); transform: translateY(-2px); }

@media (min-width: 45em) {
  .venn { max-width: 28.75rem; }
  .venn-panel { min-height: 15.5em; }
}
@media (min-width: 56.25em) {
  .venn-wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .venn-panel .vp { animation: none; }
  .venn .v--core > g:first-of-type, .venn .v--core text { transform: none; }
}

/* ===== 10-range.css ===== */
/* =====================================================================
   THE RANGE. Depth of expertise as bars, all one quiet tone; pointing at one warms it to the accent.
   Phone: horizontal bars, labels read left to right. Tablet up: the vertical M-shape chart.
   ===================================================================== */
.mshape-wrap { display: grid; grid-template-columns: 1fr; gap: var(--s5) var(--col-gap); align-items: end; }
.mshape-wrap > * { min-width: 0; }

.mshape { position: relative; display: grid; grid-template-columns: 1fr; gap: 0.375rem; margin: 0; padding: 0; list-style: none; border-left: 1px solid var(--ink); }
.mshape li {
  --bar: var(--r3);
  position: relative; isolation: isolate; display: flex; align-items: center;
  width: calc(var(--h) * 100%); height: 1.875rem; padding-left: 0.75rem;
  background: linear-gradient(90deg, color-mix(in srgb, var(--bar) 70%, var(--paper)), var(--bar));
  border-radius: 0 var(--pill) var(--pill) 0;
  transform-origin: left; transform: scaleX(0.04);
  transition: transform 1.1s var(--ease); transition-delay: calc(var(--i) * 60ms);
  cursor: default;
}
:root[data-theme="dusk"] .mshape li { --bar: #39344d; }
.mshape li::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 55%, var(--paper)), var(--accent)); opacity: 0; transition: opacity 0.35s var(--ease); }
.mshape li:hover::before { opacity: 1; }
.mshape li span { position: relative; font-size: var(--t-xs); font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; color: #fff; }
.mshape.is-visible li, .no-js .mshape li { transform: none; }

@media (min-width: 45em) {
  .mshape { grid-template-columns: repeat(11, minmax(0, 1fr)); gap: clamp(0.25rem, 0.7vw, 0.625rem); align-items: end; height: clamp(22.5rem, 42vw, 32.5rem); border-left: 0; border-bottom: 1px solid var(--ink); }
  .mshape li { justify-content: center; align-items: flex-end; width: auto; height: calc(var(--h) * 100%); padding: 0 0 0.75rem; background: linear-gradient(180deg, var(--bar) 0%, color-mix(in srgb, var(--bar) 55%, var(--paper)) 100%); border-radius: var(--pill) var(--pill) 0 0; transform-origin: bottom; transform: scaleY(0.04); }
  .mshape li::before { background: linear-gradient(180deg, var(--accent) 0%, color-mix(in srgb, var(--accent) 55%, var(--paper)) 100%); }
  .mshape li span { writing-mode: vertical-rl; transform: rotate(180deg); }
}
@media (min-width: 56.25em) {
  .mshape-wrap { grid-template-columns: 1fr 1.618fr; align-items: stretch; }
  .mshape-wrap > div:last-child { display: flex; flex-direction: column; }
  .mshape { flex: 1; height: auto; min-height: 18.75rem; }
}
@media (prefers-reduced-motion: reduce) {
  .mshape li { transform: none; }
}

/* ===== 11-principles.css ===== */
/* =====================================================================
   PRINCIPLES (How I lead; also used inside case studies).
   Rows: number, statement, explanation. Three columns from 56.25em.
   Homepage on phone and tablet: swipeable cards. Homepage with a mouse: the short line at rest,
   and a soft band wipes in from the edge the pointer entered, carrying the fuller note (site.js builds .p-mask).
   ===================================================================== */
.principles { display: grid; margin-top: var(--s4); }
.principle { display: grid; grid-template-columns: 1fr; gap: var(--s1); padding: var(--s4) var(--s3); border-top: 1px solid var(--rule); }
.principle:last-child { border-bottom: 1px solid var(--rule); }
.principle .n { font-family: var(--serif); font-size: var(--t-base); font-style: italic; color: var(--accent); }
.principle h3 { margin: 0; }
.principle p { margin: 0; color: var(--ink-2); }
@media (min-width: 56.25em) {
  .principle { grid-template-columns: var(--s4) minmax(0, 1fr) minmax(0, 1.618fr); column-gap: var(--col-gap); align-items: baseline; }
}

/* Homepage: short and full notes share one cell, so the row never jumps */
#leadership .p-swap { display: grid; }
#leadership .p-swap > p { grid-area: 1 / 1; }
#leadership .p-short, #leadership .p-mask { display: none; }

@media (max-width: 62.49em) {
  #leadership .principles { display: flex; gap: var(--s2); margin-inline: calc(var(--gutter) * -1); padding: 0.25rem var(--gutter) 0.75rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none; }
  #leadership .principles::-webkit-scrollbar { display: none; }
  #leadership .principle { flex: 0 0 min(82%, 26.25rem); align-content: start; gap: 0.625rem; padding: var(--s4) var(--s3); background: var(--card); border: 1px solid var(--rule); border-radius: 1rem; scroll-snap-align: start; }
  #leadership .principle p { font-size: var(--t-sm); }
}
@media (min-width: 45em) and (max-width: 62.49em) {
  #leadership .principle { flex-basis: min(46%, 26.25rem); }
}
@media (max-width: 62.49em) and (prefers-reduced-motion: no-preference) {
  #leadership .principles { scroll-behavior: smooth; }
}

@media (hover: hover) and (min-width: 62.5em) {
  #leadership .p-short { display: block; }
  #leadership .p-full { visibility: hidden; }
  #leadership .principle { position: relative; outline-offset: -2px; }
  #leadership .p-mask {
    position: absolute; inset: 0; z-index: 1; display: grid;
    grid-template-columns: inherit; gap: inherit; align-items: inherit; align-content: inherit; padding: inherit;
    color: var(--ink); background: color-mix(in srgb, var(--accent) 7%, var(--paper)); box-shadow: inset 2px 0 0 var(--accent);
    clip-path: inset(0 0 100% 0); transition: clip-path 0.7s var(--ease-in-out); pointer-events: none;
  }
  :root[data-theme="dusk"] #leadership .p-mask { background: color-mix(in srgb, var(--accent) 9%, var(--paper)); }
  #leadership .p-mask h3 { margin: 0; color: var(--ink); }
  #leadership .p-mask p { margin: 0; color: var(--ink-2); }
  #leadership .p-mask .n { color: var(--accent); }
}
@media (prefers-reduced-motion: reduce) {
  #leadership .p-mask { transition: none; }
}

/* Inside a case study on phones: swipeable cards */
@media (max-width: 44.99em) {
  .reader .principles { display: flex; gap: 0.75rem; margin-inline: calc(var(--gutter) * -1); padding: 0.375rem var(--gutter) 0.875rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none; }
  .reader .principles::-webkit-scrollbar { display: none; }
  .reader .principles::after { content: ""; flex: 0 0 1px; }
  .reader .principle { flex: 0 0 82%; align-content: start; gap: 0.625rem; padding: var(--s3); background: var(--card); border: 1px solid var(--rule); border-radius: 1rem; scroll-snap-align: start; }
}

/* ===== 12-journal.css ===== */
/* =====================================================================
   JOURNAL. Notes pinned to a board (homepage and Journal page), the topic filter, earlier entries.
   Phone and tablet: the board on the homepage becomes a swipeable row.
   ===================================================================== */
.notes { overflow-x: clip; background: var(--paper-deep); }
.notes-wrap { display: grid; grid-template-columns: 1fr; gap: var(--s5) var(--col-gap); align-items: start; }
.notes-board { display: grid; grid-template-columns: 1fr; gap: var(--s4); padding-top: var(--s2); }

.note {
  position: relative; display: flex; flex-direction: column; gap: var(--s2);
  padding: var(--s4) var(--s3) var(--s3);
  color: var(--ink); text-decoration: none;
  background: repeating-linear-gradient(180deg, transparent 0 27px, color-mix(in srgb, var(--dusk) 12%, transparent) 27px 28px), var(--card);
  border-radius: 0.1875rem;
  box-shadow: 0 1px 0 var(--rule), 8px 16px 30px -22px rgba(40, 28, 16, 0.45);
  transform: rotate(var(--r, 0deg));
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.note:hover, a.note:focus-visible { color: var(--ink); transform: rotate(0deg) translateY(-6px); box-shadow: 0 1px 0 var(--rule), 12px 24px 40px -24px rgba(40, 28, 16, 0.5); }
:root[data-theme="dusk"] .note { background: repeating-linear-gradient(180deg, transparent 0 27px, rgba(239, 232, 220, 0.07) 27px 28px), #2e2a3c; box-shadow: 0 0 0 1px rgba(239, 232, 220, 0.12), 10px 18px 34px -18px rgba(0, 0, 0, 0.75); }
:root[data-theme="dusk"] .note:hover, :root[data-theme="dusk"] a.note:focus-visible { box-shadow: 0 0 0 1px rgba(227, 154, 99, 0.45), 12px 24px 40px -18px rgba(0, 0, 0, 0.8); }
.note.reveal { transform: rotate(var(--r, 0deg)) translateY(1.5rem); }
.note.reveal.is-visible, .no-js .note.reveal { transform: rotate(var(--r, 0deg)); }
.note--soon { cursor: default; }
.note--soon:hover { transform: rotate(var(--r, 0deg)) translateY(-3px); }

.tape { position: absolute; top: -0.625rem; left: 50%; width: 5.5rem; height: 1.375rem; background: color-mix(in srgb, var(--accent) 22%, var(--paper)); opacity: 0.85; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08); transform: translateX(-50%) rotate(-3deg); }
.note-meta { display: flex; justify-content: space-between; align-items: center; font-size: var(--t-xs); font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
:root[data-theme="dusk"] .note-meta { color: #b3aa9d; }
.stamp { padding: 0.25rem 0.625rem 2px; color: var(--accent); letter-spacing: 0.1em; border: 1px solid var(--accent); border-radius: var(--pill); }
.note-sketch { width: 3rem; height: 3rem; }
.note-sketch * { fill: none; stroke: var(--accent); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.note-photo { display: block; width: 100%; aspect-ratio: 16 / 10; margin: 0.25rem 0 1rem; object-fit: cover; border-radius: 0.25rem; box-shadow: 0 8px 16px -12px rgba(40, 28, 16, 0.5); }
.note h3 { margin: 0; font-size: var(--t-lg); }
.note p { margin: 0; font-size: var(--t-sm); color: var(--ink-2); }
:root[data-theme="dusk"] .note p { color: #d6cdc0; }
.note-more { margin-top: auto; font-size: var(--t-sm); font-weight: 500; }

@media (min-width: 45em) {
  .notes-board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .notes-board .note:first-child { grid-column: 1 / -1; }
}
@media (min-width: 62.5em) {
  .notes-wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1.618fr); }
}

/* Homepage board on phones and tablets: a swipeable row */
@media (max-width: 62.49em) {
  .notes .notes-board { display: flex; gap: var(--s2); margin-inline: calc(var(--gutter) * -1); padding: 1.125rem var(--gutter) 1.375rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none; }
  .notes .notes-board::-webkit-scrollbar { display: none; }
  .notes .notes-board .note { flex: 0 0 min(80%, 23.75rem); scroll-snap-align: start; transform: none; }
}
@media (min-width: 45em) and (max-width: 62.49em) {
  .notes .notes-board .note { flex-basis: min(46%, 23.75rem); }
}
@media (max-width: 62.49em) and (prefers-reduced-motion: no-preference) {
  .notes .notes-board { scroll-behavior: smooth; }
}

/* Journal page */
.journal-page .notes-board { margin-bottom: var(--s6); }
.journal-sub { margin: 0 0 var(--s3); font-family: var(--sans); font-size: var(--t-xs); font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); }
.journal-note { margin: calc(-1 * var(--s2)) 0 var(--s3); font-size: var(--t-sm); }
.topic-filter { display: flex; flex-wrap: wrap; gap: var(--s1); margin: 0 0 var(--s5); }
.topic-filter button { all: unset; padding: 0.5rem 1rem 0.375rem; font-size: var(--t-sm); color: var(--ink-2); background: var(--card); border: 1px solid var(--rule); border-radius: var(--pill); cursor: pointer; transition: border-color 0.25s, color 0.25s, background 0.25s; }
.topic-filter button:hover { color: var(--accent); border-color: var(--accent); }
.topic-filter button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.topic-filter button[aria-pressed="true"] { color: var(--paper); background: var(--ink); border-color: var(--ink); }

/* Earlier entries: a simple list */
.entries { display: grid; }
.entry { display: grid; grid-template-columns: 1fr; gap: 0.375rem var(--col-gap); padding: var(--s4) 0; text-decoration: none; border-top: 1px solid var(--rule); transition: padding 0.4s var(--ease); }
.entry:last-child { border-bottom: 1px solid var(--rule); }
.entry:hover { padding-left: 0.875rem; color: var(--ink); }
.entry:hover h3 { color: var(--accent); }
.entry .date, .entry .where { font-size: var(--t-xs); color: var(--ink-3); }
.entry .date { letter-spacing: 0.1em; text-transform: uppercase; }
.entry h3 { margin: 0 0 0.375rem; transition: color 0.3s; }
.entry p { margin: 0; font-size: var(--t-sm); color: var(--ink-2); }
.entry--soon { cursor: default; }
.entry--soon:hover { padding-left: 0; }
.entry--soon h3 { color: var(--ink-2); }
.format { display: inline-block; margin-right: 0.5rem; padding: 0.3125rem 0.625rem 0.1875rem; font-size: var(--t-xs); font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2); border: 1px solid var(--rule); border-radius: var(--pill); }
@media (min-width: 56.25em) {
  .entry { grid-template-columns: 10rem 1fr 8.75rem; align-items: baseline; }
  .entry .where { text-align: right; }
}

/* ===== 13-now.css ===== */
/* =====================================================================
   RIGHT NOW. The band above the contact doors (homepage) and the Now page list.
   ===================================================================== */
.now-band { display: grid; gap: 1rem; margin-top: var(--s5); padding-block: var(--s3); border-block: 1px solid var(--rule); }
.now-band .kicker { margin: 0; }
.now-band ul { display: grid; grid-template-columns: 1fr; gap: var(--s3); margin: 0; padding: 0; list-style: none; }
.now-band li { display: grid; gap: 0.25rem; font-size: var(--t-sm); line-height: 1.45; color: var(--ink-2); }
.now-band b { font-family: var(--serif); font-size: var(--t-base); font-weight: 400; color: var(--ink); }
.now-band .link-arrow { justify-self: start; font-size: var(--t-sm); }
@media (min-width: 30em) {
  .now-band ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 62.5em) {
  .now-band ul { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.now-card { position: relative; padding: var(--s5); background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); }
.now-list { margin: 0; padding: 0; list-style: none; }
.now-list li { display: grid; grid-template-columns: 6.875rem 1fr; gap: 1rem; padding: 0.875rem 0; border-bottom: 1px dashed var(--rule); }
.now-list li:last-child { border-bottom: 0; }
.now-list b { padding-top: 0.1875rem; font-size: var(--t-xs); font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }

/* ===== 14-contact.css ===== */
/* =====================================================================
   CONTACT DOORS. Two ways in: hiring and consulting. Side by side from 45em.
   ===================================================================== */
.doors { display: grid; grid-template-columns: 1fr; gap: var(--s3); }
.now-band + .doors { margin-top: var(--s5); }
.door {
  display: flex; flex-direction: column; justify-content: space-between; gap: var(--s3);
  padding: var(--s4);
  text-decoration: none; background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius);
  transition: background 0.4s var(--ease), color 0.4s var(--ease), transform 0.4s var(--ease);
}
:root[data-theme="dusk"] .door { box-shadow: inset 0 0 0 1px rgba(239, 232, 220, 0.08); }
.door:hover { color: var(--paper); background: var(--ink); transform: translateY(-4px); }
.door:hover .muted { color: color-mix(in srgb, var(--paper) 75%, transparent); }
.door h3 { margin-bottom: 0.75rem; font-size: var(--t-xl); }
.door .go { display: flex; justify-content: space-between; align-items: center; font-weight: 500; }
.door .go svg { width: 2.25rem; height: 2.25rem; transition: transform 0.4s var(--ease); }
.door:hover .go svg { transform: translateX(6px); }

@media (min-width: 45em) {
  .doors { grid-template-columns: 1fr 1fr; }
  .door { min-height: 18.75rem; padding: var(--s5); }
}
.door .kicker { margin-bottom: var(--s2); }

/* ===== 15-footer.css ===== */
/* =====================================================================
   FOOTER. Always dark, in both themes.
   ===================================================================== */
.site-footer { position: relative; overflow: hidden; padding: var(--section) 0 var(--s4); color: #efe8dc; background: var(--r5); }
:root[data-theme="dusk"] .site-footer { background: #0c0b11; border-top: 1px solid rgba(239, 232, 220, 0.08); }
.site-footer a:hover { color: #eaa877; }
.footer-ridge { position: absolute; left: 0; right: 0; top: 0; height: 3.75rem; opacity: 0.5; }
.footer-ridge path { fill: none; stroke: rgba(239, 232, 220, 0.2); stroke-width: 1; }

.footer-big { max-width: 13em; margin-bottom: var(--s4); font-family: var(--serif); font-size: var(--t-3xl); font-weight: 300; line-height: 1.05; letter-spacing: -0.02em; }
.footer-big em { color: #eaa877; font-variation-settings: "SOFT" 100, "WONK" 1; }
.footer-mail { padding-bottom: 0.25rem; font-family: var(--serif); font-size: var(--t-xl); text-decoration: none; word-break: break-all; border-bottom: 1px solid rgba(239, 232, 220, 0.35); }

.footer-grid { display: grid; grid-template-columns: 1fr; gap: var(--s4) var(--col-gap); margin-top: var(--s6); padding-top: var(--s4); font-size: var(--t-sm); border-top: 1px solid rgba(239, 232, 220, 0.18); }
.footer-grid h4 { margin-bottom: 0.875rem; font-family: var(--sans); font-size: var(--t-xs); font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: #9d9487; }
.footer-grid ul { margin: 0; padding: 0; list-style: none; }
.footer-grid li { margin-bottom: 0.5rem; }
.footer-grid a { text-decoration: none; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem; margin-top: var(--s5); font-size: var(--t-xs); color: #9d9487; }

@media (min-width: 56.25em) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}
@media print {
  .site-footer { display: none; }
}
.footer-grid p { margin: 0; }

/* ===== 16-work.css ===== */
/* =====================================================================
   WORK PAGE. Case "volumes" (cover + summary), more work in a collapsible archive, side projects.
   ===================================================================== */
.volume { display: grid; grid-template-columns: 1fr; gap: var(--s4) var(--col-gap); padding-block: var(--s6); border-top: 1px solid var(--rule); }
.volume > * { min-width: 0; }
.volume .no { display: block; margin-bottom: var(--s1); font-family: var(--serif); font-size: var(--t-base); font-style: italic; color: var(--accent); }
.volume-media { display: grid; place-items: center; min-height: 17.5rem; padding: var(--s4); background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); }
.volume-media img { width: auto; max-height: 32.5rem; border-radius: 0.375rem; }
:root[data-theme="dusk"] .volume-media img, :root[data-theme="dusk"] .archive img { filter: brightness(0.9) contrast(1.02); }
/* the cover photo variant: full-bleed on phones */
.volume-media--cover { display: block; min-height: 0; margin-inline: calc(var(--gutter) * -1); padding: 0; overflow: hidden; background: none; border: 0; border-radius: 0; box-shadow: 0 30px 60px -40px rgba(40, 28, 16, 0.55); }
.volume-media--cover img { display: block; width: 100%; height: auto; max-height: none; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 0; transition: transform 1.2s var(--ease); }
.volume-media--cover:hover img { transform: scale(1.03); }

.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s2); margin: var(--s3) 0 var(--s4); padding-block: var(--s3); border-block: 1px solid var(--rule); }
.facts dt { font-size: var(--t-xs); font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); }
.facts dd { margin: 0.25rem 0 0; font-size: var(--t-sm); }
.outcomes { display: flex; flex-wrap: wrap; gap: var(--s2); margin: 0 0 var(--s4); padding: 0; list-style: none; }
.outcomes li { display: inline-flex; align-items: center; gap: 0.4375rem; font-size: var(--t-sm); font-weight: 500; line-height: 1.1; white-space: nowrap; color: var(--ink); }
.outcomes li::before { content: ""; flex: none; width: 0.3125rem; height: 0.3125rem; border-radius: 50%; background: var(--accent); }

@media (min-width: 45em) {
  .volume-media--cover { margin-inline: 0; border-radius: 1rem; }
}
@media (min-width: 56.25em) {
  .volume { grid-template-columns: 5fr 6fr; align-items: start; }
  .volume:nth-of-type(even) .volume-media { order: 2; }
}

/* More work: a collapsible archive */
.archive { border-top: 1px solid var(--rule); }
.archive details { border-bottom: 1px solid var(--rule); }
.archive summary { display: grid; grid-template-columns: 1fr auto; gap: 0.5rem var(--s4); align-items: baseline; padding: var(--s4) 0; list-style: none; cursor: pointer; transition: padding 0.35s var(--ease); }
.archive summary::-webkit-details-marker { display: none; }
.archive summary:hover { padding-left: 0.625rem; }
.archive summary .yr { grid-column: 1 / -1; font-size: var(--t-xs); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.archive summary h3 { margin: 0; font-size: var(--t-lg); }
.archive summary .what { grid-column: 1 / -1; font-size: var(--t-sm); color: var(--ink-2); }
.archive summary .plus { display: grid; place-items: center; justify-self: end; width: 1.75rem; height: 1.75rem; border: 1px solid var(--rule); border-radius: 50%; transition: transform 0.35s var(--ease), background 0.35s; }
.archive summary .plus::before { content: "+"; font-size: var(--t-sm); line-height: 1; }
.archive details[open] summary .plus { color: var(--paper); background: var(--ink); transform: rotate(45deg); }
.archive-body { display: grid; grid-template-columns: 1fr; gap: var(--s3) var(--col-gap); padding: 0 0 var(--s4); }
.archive-body p { margin-bottom: 0.875rem; color: var(--ink-2); }
.archive-body .img-wrap { display: grid; place-items: center; padding: var(--s3); background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); }
.archive-body img { width: auto; max-height: 22.5rem; margin: 0 auto; border-radius: var(--radius); }
@media (min-width: 56.25em) {
  .archive summary { grid-template-columns: 6.875rem 1fr 1fr 2.5rem; }
  .archive summary .yr, .archive summary .what { grid-column: auto; }
  .archive-body { grid-template-columns: 6.875rem 5fr 4fr; }
  .archive-body > :first-child { grid-column: 2; }
}

/* Side projects (the curiosity shelf) */
.curiosity { display: grid; grid-template-columns: 1fr; gap: var(--s3); }
.curio { display: flex; flex-direction: column; justify-content: space-between; min-height: 13.75rem; padding: var(--s4); background: transparent; border: 1px dashed var(--ink-3); border-radius: var(--radius); }
.curio .yr { font-size: var(--t-xs); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.curio h3 { margin: var(--s3) 0 var(--s1); }
.curio p { margin: 0; font-size: var(--t-sm); color: var(--ink-2); }
.curio--soon { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: var(--s3); min-height: 0; }
.curio--soon > div { max-width: 40em; }
@media (min-width: 45em) {
  .curiosity { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 62.5em) {
  .curiosity { grid-template-columns: repeat(3, 1fr); }
}

/* Journal teaser: one entry in focus, with its opening to read */
.journal-feature { display: grid; grid-template-columns: 1fr; gap: var(--s5) var(--col-gap); align-items: center; }
.jf-intro h2 { margin-bottom: var(--s3); }
.jf-intro p { max-width: 30em; margin-bottom: var(--s4); }
.jf-card {
  position: relative; display: grid; grid-template-columns: 1fr; gap: var(--s3);
  padding: var(--s3); color: var(--ink); text-decoration: none;
  background: repeating-linear-gradient(180deg, transparent 0 27px, color-mix(in srgb, var(--dusk) 9%, transparent) 27px 28px), var(--card);
  border-radius: 0.375rem;
  box-shadow: 0 1px 0 var(--rule), 14px 26px 50px -30px rgba(40, 28, 16, 0.45);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
:root[data-theme="dusk"] .jf-card { background: repeating-linear-gradient(180deg, transparent 0 27px, rgba(239, 232, 220, 0.06) 27px 28px), #2e2a3c; box-shadow: 0 0 0 1px rgba(239, 232, 220, 0.12), 14px 26px 50px -24px rgba(0, 0, 0, 0.75); }
.jf-card:hover, .jf-card:focus-visible { color: var(--ink); transform: translateY(-4px); box-shadow: 0 1px 0 var(--rule), 18px 32px 56px -30px rgba(40, 28, 16, 0.5); }
.jf-card .tape { z-index: 2; }
.jf-photo { margin: 0; overflow: hidden; border-radius: 0.25rem; aspect-ratio: 4 / 3; background: var(--paper-deep); }
.jf-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.jf-card:hover .jf-photo img { transform: scale(1.04); }
:root[data-theme="dusk"] .jf-photo img { filter: brightness(0.9) contrast(1.02); }
.jf-body { display: flex; flex-direction: column; padding: 0 var(--s1) var(--s1); }
.jf-body .note-meta { gap: var(--s2); }
.jf-body .stamp { white-space: nowrap; }
.jf-body h3 { margin: var(--s3) 0 var(--s2); font-size: var(--t-xl); }
.jf-body p { margin: 0 0 0.9em; font-size: var(--t-sm); line-height: 1.7; color: var(--ink-2); }
.jf-open::first-letter { float: left; padding: 0.04em 0.08em 0 0; font-family: var(--serif); font-size: 3.4em; line-height: 0.8; color: var(--accent); }
.jf-fade { max-height: 3.4em; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, #000 20%, transparent); mask-image: linear-gradient(180deg, #000 20%, transparent); }
.jf-more { margin-top: auto; font-size: var(--t-sm); font-weight: 500; color: var(--accent); }
.jf-more span { display: inline-block; transition: transform 0.3s var(--ease); }
.jf-card:hover .jf-more span { transform: translateX(4px); }
@media (min-width: 45em) {
  .jf-card { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr); gap: var(--s4); padding: var(--s3); }
  .jf-photo { aspect-ratio: auto; height: 100%; min-height: 20rem; }
  .jf-body { padding: var(--s2) var(--s2) var(--s2) 0; }
}
@media (min-width: 56.25em) {
  .journal-feature { grid-template-columns: minmax(0, 1fr) minmax(0, 1.618fr); }
}

/* Side projects, until the shelf is filled: one quiet line */
.curio-note { display: grid; gap: var(--s1) var(--col-gap); align-items: baseline; }
.curio-note .kicker, .curio-note p { margin: 0; }
.curio-note p:not(.kicker) { font-size: var(--t-sm); color: var(--ink-2); }
.curio-note .link-arrow { justify-self: start; font-size: var(--t-sm); }
@media (min-width: 56.25em) {
  .curio-note { grid-template-columns: auto minmax(0, 1fr) auto; }
}

/* ===== 17-case-study.css ===== */
/* =====================================================================
   CASE STUDIES. Head (title, cover, key facts, results), the reader (contents + chapters),
   and the building blocks used inside chapters. Mobile-first: rows of cards swipe on phones
   and settle into grids from 45em. Contents: a floating pill below 75em, a sticky column above.
   ===================================================================== */

/* ---------- Head ---------- */
.chapter-head { padding-top: calc(var(--header) + var(--s6)); padding-bottom: var(--s5); }
.chapter-head .crumbs { margin-bottom: var(--s4); font-size: var(--t-xs); color: var(--ink-3); }
.chapter-head .crumbs a { text-decoration: none; }
.chapter-head h1 { max-width: 10em; }
.chapter-head .deck { max-width: 26em; font-family: var(--serif); font-size: var(--t-xl); font-style: italic; font-weight: 300; line-height: 1.35; color: var(--ink-2); }
.cs-hero { display: grid; grid-template-columns: 1fr; gap: var(--s5) var(--col-gap); align-items: center; }
.cs-visual { margin: 0 calc(var(--gutter) * -1); aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper-deep); box-shadow: 12px 22px 48px -30px rgba(40, 28, 16, 0.4); }
:root[data-theme="dusk"] .cs-visual { box-shadow: 12px 24px 50px -28px rgba(0, 0, 0, 0.9); }
.cs-visual img { width: 100%; height: 100%; object-fit: cover; }
.cs-visual--cover-crop img { object-position: 50% 45%; }
@media (min-width: 45em) {
  .cs-visual { margin-inline: 0; border-radius: 0.375rem; }
}
@media (min-width: 62.5em) {
  .cs-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1.618fr); }
  .cs-hero h1 { font-size: var(--t-3xl); } /* a sentence-long title in a narrow column: page-title size keeps it to 3-4 lines with the deck above the fold */
}
@media (min-width: 75em) {
  .chapter-head { padding-left: var(--gutter); }
}
@media (prefers-reduced-motion: no-preference) {
  .cs-hero > .cs-visual { animation: rise 1.2s var(--ease) 0.2s both; }
}

/* Key facts: one column on phones (long values), two on tablets, four on laptops */
.cs-key { display: grid; grid-template-columns: 1fr; gap: var(--s3); margin: var(--s5) 0 0; padding-top: var(--s4); border-top: 1px solid var(--ink); }
.cs-key dt { margin-bottom: var(--s1); font-size: var(--t-xs); font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); }
.cs-key dd { margin: 0; font-family: var(--serif); font-size: var(--t-lg); font-weight: 400; line-height: 1.2; }
.cs-key dd small { display: block; margin-top: 0.375rem; font-family: var(--sans); font-size: var(--t-xs); line-height: 1.4; color: var(--ink-2); }
.cs-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin-top: var(--s4); overflow: hidden; background: var(--rule); border: 1px solid var(--rule); border-radius: var(--radius); }
.cs-metrics div { padding: var(--s3); background: var(--paper); }
.cs-metrics b { display: block; margin-bottom: var(--s1); font-family: var(--serif); font-size: var(--t-2xl); font-weight: 350; line-height: 1; letter-spacing: -0.02em; color: var(--accent); }
.cs-metrics span { font-size: var(--t-sm); color: var(--ink-2); }
.cs-scope { margin-top: var(--s3); font-size: var(--t-sm); color: var(--ink-2); }
.cs-scope b { font-weight: 500; color: var(--ink); }
@media (min-width: 45em) {
  .cs-key { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 56.25em) {
  .cs-key { grid-template-columns: 1.618fr 1fr 1.618fr 1.618fr; }
  .cs-metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cs-metrics--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* The short version: swipeable cards on phones, a panel of three (or four) from 56.25em */
.tldr { display: flex; gap: 0.75rem; margin: var(--s5) calc(var(--gutter) * -1) 0; padding: 0.375rem var(--gutter) 0.875rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none; }
.tldr::-webkit-scrollbar { display: none; }
.tldr::after { content: ""; flex: 0 0 1px; }
.tldr > * { flex: 0 0 82%; scroll-snap-align: start; padding: var(--s3); background: var(--card); border: 1px solid var(--rule); border-radius: 1rem; }
.tldr h4 { font-family: var(--sans); font-size: var(--t-xs); font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.tldr p { margin: 0; font-size: var(--t-sm); color: var(--ink-2); }
.tldr--arc > div { position: relative; }
.tldr--arc .revealed h4 { color: var(--ink); }
.tldr--arc .revealed h4::after { content: " ✦"; color: var(--accent); }
@media (min-width: 45em) {
  .tldr { display: grid; grid-template-columns: 1fr; gap: var(--s3); margin-inline: 0; padding: var(--s5); overflow: visible; background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); }
  .tldr::after { content: none; }
  .tldr > * { padding: 0; background: none; border: 0; border-radius: 0; }
  :root[data-theme="dusk"] .tldr { box-shadow: inset 0 0 0 1px rgba(239, 232, 220, 0.08); }
}
@media (min-width: 56.25em) {
  .tldr { grid-template-columns: repeat(3, 1fr); }
}
/* the four-part arc: 2 x 2 until there is room for four readable columns */
@media (min-width: 56.25em) {
  .tldr--arc { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 75em) {
  .tldr--arc { grid-template-columns: repeat(4, 1fr); }
  .tldr--arc > div + div { padding-left: var(--s3); border-left: 1px solid var(--rule); }
}

/* ---------- The reader: contents + chapters ---------- */
.reader { display: grid; grid-template-columns: 1fr; gap: var(--s5) var(--col-gap); }
.reader > * { min-width: 0; }
.chapter { padding-block: var(--s6); border-top: 1px solid var(--rule); scroll-margin-top: 5rem; }
.chapter:first-of-type { padding-top: 0; border-top: 0; }
.chapter-no { display: block; margin-bottom: 0.875rem; font-family: var(--serif); font-size: var(--t-base); font-style: italic; color: var(--accent); }
.chapter .principles, .chapter .cross-link { max-width: none; }
.chapter--feature { margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); background: var(--paper-deep); border-radius: 0.375rem; }
.chapter--feature h2 { font-size: var(--t-3xl); }

/* Contents: hidden column; below 75em a pill floats at the bottom and opens a sheet */
.toc { display: none; }
.toc-pill, .proto-switch { display: none; }
@media (max-width: 74.99em) {
  .toc-pill {
    position: fixed; z-index: 70; left: 50%; bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
    display: inline-flex; align-items: center; gap: 0.625rem; max-width: calc(100vw - 2rem);
    padding: 0.6875rem 1rem 0.5625rem 1.125rem;
    font: 500 var(--t-sm)/1 var(--sans); white-space: nowrap; color: var(--ink);
    background: color-mix(in srgb, var(--card) 88%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    border: 1px solid var(--rule); border-radius: var(--pill); box-shadow: 0 14px 30px -18px rgba(30, 20, 10, 0.55);
    cursor: pointer; opacity: 0; transform: translate(-50%, 140%); transition: transform 0.45s var(--ease), opacity 0.3s;
  }
  .toc-pill.is-on { opacity: 1; transform: translate(-50%, 0); }
  .toc-pill-k { font-size: var(--t-xs); letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
  .toc-pill-t { overflow: hidden; text-overflow: ellipsis; }
  .toc-pill svg { flex: none; width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.6; transition: transform 0.3s; }
  .toc-pill[aria-expanded="true"] svg { transform: rotate(180deg); }
  .reader .toc {
    position: fixed; z-index: 69; left: 0.75rem; right: 0.75rem; bottom: calc(4.75rem + env(safe-area-inset-bottom, 0px));
    display: block; max-height: min(64vh, 32.5rem); padding: var(--s3) var(--s3) 0.875rem; overflow-y: auto;
    background: var(--card); border: 1px solid var(--rule); border-radius: 1.125rem; box-shadow: 0 30px 60px -30px rgba(30, 20, 10, 0.6);
    opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity 0.3s, transform 0.35s var(--ease), visibility 0s linear 0.35s;
  }
  .reader .toc.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity 0.3s, transform 0.35s var(--ease), visibility 0s; }
  .reader .toc ol { display: grid; gap: 2px; }
  .reader .toc a { display: block; padding: 0.5625rem 0; font-size: var(--t-sm); }
}
@media (min-width: 45em) and (max-width: 74.99em) {
  .reader .toc { left: 50%; right: auto; width: 26.25rem; transform: translate(-50%, 12px); }
  .reader .toc.is-open { transform: translate(-50%, 0); }
}
@media (min-width: 75em) {
  .reader { grid-template-columns: 10.625rem minmax(0, 1fr); gap: var(--col-gap); }
  .toc { position: sticky; top: 6.875rem; align-self: start; display: block; font-size: var(--t-xs); }
  .toc h4 { font-family: var(--sans); font-size: var(--t-xs); font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-3); }
  .toc ol { margin: 0; padding: 0; list-style: none; counter-reset: toc; }
  .toc li { counter-increment: toc; }
  .toc a { display: flex; gap: 0.625rem; padding: 0.4375rem 0; line-height: 1.3; text-decoration: none; color: var(--ink-3); transition: color 0.3s; }
  .toc a::before { content: counter(toc, upper-roman); min-width: 1.75rem; font-family: var(--serif); font-style: italic; }
  .toc a.is-active, .toc a:hover { color: var(--ink); }
  .toc a.is-active::before { color: var(--accent); }
}

/* ---------- Text ---------- */
.prose { max-width: var(--read); }
.prose h2 { margin-top: 0; }
.prose p, .prose li { color: var(--ink-2); }
.prose p strong { color: var(--ink); }
.prose ul { padding-left: 1.1em; }
.prose li { margin-bottom: 0.4em; }
.prose .dropcap::first-letter { float: left; padding: 0.06em 0.1em 0 0; font-family: var(--serif); font-size: 4.6em; font-weight: 400; line-height: 0.82; color: var(--accent); }
.marginalia { margin: var(--s4) 0; padding: 0.25rem 0 0.25rem var(--s3); font-family: var(--serif); font-size: var(--t-base); font-style: italic; line-height: 1.5; color: var(--ink); border-left: 2px solid var(--accent); }
.marginalia small { display: block; margin-bottom: 0.375rem; font-family: var(--sans); font-size: var(--t-xs); font-style: normal; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); }
.pull { max-width: 24em; margin: var(--s5) 0; padding-left: var(--s3); font-family: var(--serif); font-size: var(--t-xl); font-weight: 300; line-height: 1.25; letter-spacing: -0.02em; border-left: 2px solid var(--accent); }
.pull::before { content: "\201C"; }
.pull::after { content: "\201D"; }
.pull em { color: var(--accent); font-variation-settings: "SOFT" 100, "WONK" 1; }
.learning { max-width: var(--read); margin: var(--s5) 0; padding: var(--s4); background: var(--card); border: 1px solid var(--rule); border-radius: 0.375rem; }
.learning .kicker { margin-bottom: var(--s2); }
.learning p { margin: 0; color: var(--ink-2); }
.learning p.big { margin: 0 0 var(--s2); font-family: var(--serif); font-size: var(--t-xl); line-height: 1.15; letter-spacing: -0.015em; color: var(--ink); }
.cross-link { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--s2); max-width: var(--read); margin: var(--s4) 0; padding: var(--s3); font-size: var(--t-sm); background: var(--accent-soft); border-radius: 0.375rem; }
.cross-link a { margin-left: auto; font-weight: 500; white-space: nowrap; }
.ext { display: inline-block; width: 0.7em; height: 0.7em; margin-left: 0.1em; vertical-align: 0.02em; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.numbered { margin: var(--s3) 0; padding: 0; list-style: none; counter-reset: n; }
.numbered li { position: relative; padding: 1.125rem 0 1.125rem 2.75rem; border-top: 1px solid var(--rule); counter-increment: n; }
.numbered li::before { content: counter(n) "."; position: absolute; left: 0; top: 1rem; font-family: var(--serif); font-size: var(--t-base); font-style: italic; color: var(--accent); }
.numbered b { display: block; margin-bottom: 0.25rem; font-weight: 500; color: var(--ink); }
.numbered span { color: var(--ink-2); }
.credits { margin: var(--s4) 0 0; padding: var(--s3) 0 0; font-size: var(--t-sm); color: var(--ink-2); border-top: 1px solid var(--rule); }
.credits h4 { margin-bottom: 0.625rem; font-family: var(--sans); font-size: var(--t-xs); font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); }
.credits ul { margin: 0; padding: 0; list-style: none; }
.credits li { padding: 0.25rem 0; }
@media (max-width: 44.99em) {
  .chapter h2 { line-height: 1.1; }
}

/* ---------- Figures ---------- */
.figure { margin: var(--s5) 0; }
.figure .frame { padding: clamp(0.625rem, 2vw, 1.5rem); overflow: hidden; background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); }
.figure .frame--plain, .figure .frame--bare, .figure .frame--blend { padding: 0; background: none; border: 0; }
.figure .frame--bare img { border-radius: var(--radius); }
.figure .frame--blend img { mix-blend-mode: multiply; border-radius: 0; }
.figure .frame--white { display: grid; place-items: center; padding: clamp(var(--s3), 4vw, var(--s5)); background: #fcfcfc; border-color: #ece8e1; }
.figure .frame--white img { width: auto; max-width: 100%; max-height: 22.5rem; }
.figure .frame--white.frame--full { padding: calc(clamp(var(--s3), 4vw, var(--s5)) * 0.9); }
.figure .frame--full img { width: 100%; max-height: none; }
.figure .frame--scroll { max-height: 40rem; overflow-y: auto; overscroll-behavior: contain; }
.figure img { width: 100%; border-radius: 0.1875rem; cursor: zoom-in; }
.figure figcaption { display: flex; gap: 0.75rem; margin-top: 0.75rem; font-size: var(--t-xs); color: var(--ink-3); }
.figure figcaption b { font-weight: 500; white-space: nowrap; color: var(--accent); }
:root[data-theme="dusk"] .figure .frame:not(.frame--bare):not(.frame--blend) { box-shadow: inset 0 0 0 1px rgba(239, 232, 220, 0.08); }
:root[data-theme="dusk"] .figure img, :root[data-theme="dusk"] .cs-visual img, :root[data-theme="dusk"] .phones img { filter: brightness(0.9) contrast(1.02); }
:root[data-theme="dusk"] .figure .frame--white { background: #e9e5de; border-color: transparent; }
:root[data-theme="dusk"] .figure .frame--blend { padding: var(--s3); background: #e9e5de; border-radius: var(--radius); }
:root[data-theme="dusk"] .figure .frame--blend img { mix-blend-mode: normal; }
/* phones: wide figures go edge to edge; very wide boards pan sideways */
@media (max-width: 44.99em) {
  .reader .figure--wide, .reader .figure--bleed { margin-inline: calc(var(--gutter) * -1); }
  .reader .figure--wide .frame, .reader .figure--bleed .frame, .reader .figure--wide img, .reader .figure--bleed img { border-left: 0; border-right: 0; border-radius: 0; }
  .reader .figure--wide figcaption, .reader .figure--bleed figcaption { padding-inline: var(--gutter); }
}
@media (max-width: 56.24em) {
  .reader .frame.frame--pan { overflow-x: auto; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
  .reader .frame.frame--pan img { display: block; width: auto; max-width: none; height: min(62vh, 28.75rem); }
  .reader .figure--wide:has(.frame--pan)::after { content: "Swipe across to see the whole board →"; display: block; margin-top: 0.25rem; padding-inline: var(--gutter); font-size: var(--t-xs); color: var(--ink-3); }
}

/* Phone screens in a row; two across on phones (the inline --n sets the desktop count) */
.phones { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: clamp(0.75rem, 2.4vw, 1.75rem); align-items: end; }
.phones[style*="--n:1"] { grid-template-columns: minmax(0, 18.75rem); justify-content: center; }
.phones figure { margin: 0; text-align: center; }
.phones img { width: 100%; cursor: zoom-in; }
.phones figcaption { margin-top: 0.625rem; font-size: var(--t-xs); color: var(--ink-3); }
.phones--card { padding: var(--s4); background: #fff; border: 1px solid var(--rule); border-radius: 0.375rem; }
.phones--card figcaption { color: #7d7368; }
:root[data-theme="dusk"] .phones--card { background: #e9e5de; border-color: transparent; }
:root[data-theme="dusk"] .phones--card figcaption { color: #4b453e; }
@media (max-width: 44.99em) {
  .phones { --n: 2 !important; } /* beats the inline count */
  .phones[style*="--n:1"] { grid-template-columns: minmax(0, 16.25rem); }
  .split--narrow-img .phones figcaption { text-align: center; }
}

/* Image + text pairs */
.split { display: grid; grid-template-columns: 1fr; gap: var(--s5) var(--col-gap); align-items: center; margin: var(--s5) 0; }
.split .prose { max-width: none; }
.pair { display: grid; grid-template-columns: 1fr; gap: var(--s3); align-items: start; margin: var(--s4) 0; }
.pair figure { margin: 0; }
.pair .frame { display: block; padding: var(--s3); background: #fff; border: 1px solid var(--rule); border-radius: var(--radius); }
.pair img { width: 100%; height: auto; object-fit: contain; cursor: zoom-in; }
.pair figcaption { margin-top: var(--s2); font-size: var(--t-xs); color: var(--ink-3); }
.pair figcaption b { margin-right: 0.5rem; font-weight: 500; color: var(--accent); }
.surfaces { display: grid; gap: var(--s5); margin-top: var(--s4); }
.surface { display: grid; gap: var(--s4) var(--col-gap); align-items: center; }
.surface-media { margin: 0; }
.surface--wide .surface-media img { display: block; width: 100%; border-radius: var(--radius); }
.surface .phones { justify-self: center; width: 100%; max-width: 28.75rem; }
.surface-text h4 { margin-bottom: var(--s1); font-size: var(--t-lg); }
.surface-text p { margin: 0; color: var(--ink-2); }
.surface--note { padding: var(--s4); background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); }
@media (min-width: 45em) {
  .pair { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 56.25em) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--narrow-img { grid-template-columns: 1fr 1.618fr; }
  .split--text-wide { grid-template-columns: minmax(0, 1.618fr) minmax(0, 1fr); }
  .surface { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
  .surface--wide { grid-template-columns: minmax(0, 1.618fr) minmax(0, 1fr); }
  .surface--flip .surface-media { order: 2; }
}

/* ---------- Cards and lists inside chapters (swipe on phones, grids from 45em) ---------- */
.three-up, .findings, .challenges { display: flex; gap: 0.75rem; margin: var(--s4) calc(var(--gutter) * -1); padding: 0.375rem var(--gutter) 0.875rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none; }
.three-up::-webkit-scrollbar, .findings::-webkit-scrollbar, .challenges::-webkit-scrollbar { display: none; }
.three-up::after, .findings::after, .challenges::after { content: ""; flex: 0 0 1px; }
.three-up > *, .findings > *, .challenges > * { flex: 0 0 82%; scroll-snap-align: start; }
@media (min-width: 45em) {
  .three-up, .findings, .challenges { display: grid; gap: var(--s3); margin-inline: 0; padding: 0; overflow: visible; }
  .three-up::after, .findings::after, .challenges::after { content: none; }
  .three-up { grid-template-columns: repeat(3, 1fr); }
  .findings { grid-template-columns: 1fr 1fr; }
  .challenges { grid-template-columns: repeat(3, 1fr); }
}

.three-up > div { padding: var(--s3); background: var(--card); border: 1px solid var(--rule); border-radius: 1rem; }
.three-up h4 { margin-bottom: var(--s1); }
.three-up p { margin: 0; font-size: var(--t-sm); }
.three-up .who { display: block; margin-bottom: var(--s1); font-size: var(--t-xs); font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.three-up .ill { display: block; width: 4rem; height: auto; margin: 0 0 var(--s3); }
.three-up .icon-ill { display: block; width: 3.5rem; height: 3.5rem; margin: 0 0 var(--s3); border-radius: 50%; }
:root[data-theme="dusk"] .three-up > div { box-shadow: inset 0 0 0 1px rgba(239, 232, 220, 0.08); }
:root[data-theme="dusk"] .three-up .ill { filter: brightness(0.92); }
@media (min-width: 45em) {
  .three-up > div { border-radius: var(--radius); }
  .three-up .ill { width: auto; height: 8.75rem; }
}

/* Findings: two structured cards, numbered rows, a coloured top edge per side */
.findings > div { padding: var(--s4) var(--s4) var(--s3); background: var(--card); border: 1px solid var(--rule); border-top: 3px solid var(--ink-3); border-radius: var(--radius); counter-reset: finding; }
.findings > div:nth-child(2) { border-top-color: var(--accent); }
.findings h4 { margin: 0 0 var(--s3); font-family: var(--sans); font-size: var(--t-xs); font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.findings > div:nth-child(1) h4 { color: var(--ink-2); }
.findings dl { display: grid; grid-template-columns: 1fr; column-gap: var(--s3); margin: 0; padding-left: 2.2em; }
.findings dt { position: relative; margin-top: 0; padding-top: var(--s2); font-family: var(--serif); font-size: var(--t-base); border-top: 1px solid var(--rule); }
.findings dt:first-of-type { padding-top: 0; border-top: 0; }
.findings dt::before { content: "0" counter(finding); counter-increment: finding; position: absolute; left: calc(-1 * var(--s3) - 1.6em); top: calc(var(--s2) + 0.1em); width: 1.6em; font-family: var(--serif); font-size: var(--t-sm); font-style: italic; color: var(--accent); }
.findings dt:first-of-type::before { top: 0.1em; }
.findings > div:nth-child(1) dt::before { color: var(--ink-3); }
.findings dd { margin: 0.25rem 0 var(--s2); font-size: var(--t-sm); line-height: 1.65; color: var(--ink-2); }

.challenges figure { margin: 0; }
.challenges .img { display: grid; place-items: center; aspect-ratio: 4 / 3; overflow: hidden; background: #fff; border: 1px solid var(--rule); border-radius: 0.375rem; }
.challenges .img img { width: 82%; height: 82%; object-fit: contain; }
.challenges h4 { margin: var(--s3) 0 var(--s1); }
.challenges p { margin: 0; font-size: var(--t-sm); color: var(--ink-2); }
@media (min-width: 45em) {
  .challenges .img { aspect-ratio: 1 / 1; }
}

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: 1px; margin: var(--s4) 0; overflow: hidden; background: var(--rule); border: 1px solid var(--rule); border-radius: var(--radius); }
.stat { padding: var(--s3); background: var(--paper); }
.stat b { display: block; margin-bottom: 0.625rem; font-family: var(--serif); font-size: var(--t-2xl); font-weight: 350; line-height: 1; letter-spacing: -0.02em; color: var(--accent); }
.stat span { font-size: var(--t-sm); color: var(--ink-2); }
:root[data-theme="dusk"] .stats, :root[data-theme="dusk"] .learning, :root[data-theme="dusk"] .cross-link { box-shadow: inset 0 0 0 1px rgba(239, 232, 220, 0.08); }
@media (min-width: 56.25em) {
  .stats { grid-template-columns: repeat(4, 1fr); }
}

.shipped { display: grid; grid-template-columns: 1fr; gap: var(--s3); margin: var(--s4) 0; }
.shipped h4 { font-family: var(--sans); font-size: var(--t-xs); font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; }
.shipped ul { margin: 0; padding: 0; list-style: none; }
.shipped li { padding: 0.625rem 0; font-size: var(--t-sm); border-bottom: 1px solid var(--rule); }
.shipped .cut li { color: var(--ink-3); text-decoration: line-through; text-decoration-color: var(--accent); text-decoration-thickness: 1px; }
@media (min-width: 45em) {
  .shipped { grid-template-columns: 1fr 1fr; }
}

/* Goals and the personas each one serves */
.goals > .goal { display: flex; flex-direction: column; }
.goal p { flex: 1; }
.goal-for { display: flex; align-items: center; gap: var(--s1); margin-top: var(--s3); padding-top: var(--s2); border-top: 1px solid var(--rule); }
.goal-for > span:first-child { font-size: var(--t-xs); font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); }
.pa { display: block; object-fit: cover; background: #121212; border-radius: 50%; }
.pa-stack { display: flex; }
.pa-stack .pa { width: 2.25rem; height: 2.25rem; margin-left: -0.5rem; border: 2px solid var(--card); }
.pa-stack .pa:first-child { margin-left: 0; }
.persona-legend { display: flex; flex-wrap: wrap; gap: var(--s3); margin: var(--s4) 0 var(--s3); padding: 0; list-style: none; }
.persona-legend li { display: flex; align-items: center; gap: var(--s1); font-size: var(--t-sm); color: var(--ink-2); }
.persona-legend .pa { width: 2.75rem; height: 2.75rem; }

/* The core insight: one watch, split. Drag to compare specs with the story people buy. */
.insight-split { display: grid; align-items: center; gap: var(--s2); margin: var(--s4) 0 var(--s3); padding: var(--s3); background: var(--card); border: 1px solid var(--rule); border-radius: 0.5rem; box-shadow: 12px 24px 48px -32px rgba(40, 28, 16, 0.35); }
:root[data-theme="dusk"] .insight-split { box-shadow: 12px 24px 48px -28px rgba(0, 0, 0, 0.8), inset 0 0 0 1px rgba(239, 232, 220, 0.08); }
.insight-split figcaption { grid-column: 1 / -1; margin-top: var(--s1); padding-top: var(--s3); font-family: var(--serif); font-size: var(--t-md); font-style: italic; text-align: center; color: var(--ink-2); border-top: 1px solid var(--rule); }
.insight-split figcaption span { display: none; margin-top: 0.375rem; font-family: var(--sans); font-size: var(--t-xs); font-style: normal; color: var(--ink-3); }
.is-watch { position: relative; justify-self: center; width: 100%; max-width: 23.75rem; aspect-ratio: 720 / 960; overflow: hidden; background: #fff; border-radius: 0.375rem; cursor: ew-resize; touch-action: pan-y; }
:root[data-theme="dusk"] .is-watch { box-shadow: 0 20px 44px -24px rgba(0, 0, 0, 0.8); }
.is-watch img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
:root[data-theme="dusk"] .is-watch img { filter: brightness(0.92); }
.is-photo { clip-path: inset(0 0 0 var(--split)); transition: clip-path 0.12s linear; }
.is-divider { position: absolute; top: 6%; bottom: 6%; left: var(--split); width: 1px; background: var(--accent); transform: translateX(-0.5px); transition: left 0.12s linear; }
.is-divider::after { content: ""; position: absolute; top: 50%; left: 50%; width: 0.6875rem; height: 0.6875rem; background: var(--accent); border-radius: 50%; transform: translate(-50%, -50%); box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 22%, transparent); }
.is-head { margin: 0 0 var(--s2); font-size: var(--t-xs); font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; }
.is-side ul { display: grid; gap: var(--s2); margin: 0; padding: 0; list-style: none; }
.is-specs .is-head { color: var(--ink-3); }
.is-specs li { padding-bottom: 0.375rem; font-size: var(--t-sm); color: var(--ink-3); border-bottom: 1px dashed var(--rule); }
.is-story .is-head { color: var(--accent); }
.is-story li { padding-bottom: 0.375rem; font-family: var(--serif); font-size: var(--t-md); font-style: italic; line-height: 1.25; color: var(--ink); border-bottom: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); }
@media (min-width: 56.25em) {
  .insight-split { grid-template-columns: 1fr minmax(0, 1.15fr) 1fr; gap: var(--s3); padding: var(--s4); }
  .insight-split figcaption span { display: block; }
  .is-specs { text-align: right; }
}

/* Roadmap: a wide timeline that scrolls sideways when it doesn't fit */
.roadmap-wrap { margin: var(--s4) calc(var(--gutter) * -1); overflow-x: auto; background: var(--card); border-block: 1px solid var(--rule); }
.roadmap { position: relative; min-width: 61.25rem; padding: var(--s5) var(--s3) var(--s3) 7.5rem; font-size: var(--t-xs); }
.roadmap .row { position: relative; height: 2.125rem; margin-bottom: 0.5rem; }
.roadmap .row-label { position: absolute; left: -6.75rem; top: 0.5rem; width: 6.25rem; font-size: var(--t-xs); font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.roadmap .bar { position: absolute; top: 0; left: calc(var(--from) / 9 * 100%); width: calc((var(--to) - var(--from)) / 9 * 100%); height: 1.875rem; padding: 0.4375rem 0.625rem; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: #2b2740; border-radius: 0.5rem; }
.roadmap .bar--strategy { background: #f5e3b8; }
.roadmap .bar--build { background: #d9d4f5; }
.roadmap .bar--build-2 { background: #c6bff0; }
.roadmap .bar--docs { background: #f3d68a; }
.roadmap .bar--prod { color: var(--ink-2); background: color-mix(in srgb, var(--ink) 8%, transparent); }
.roadmap .phase { position: absolute; top: 0; bottom: 2.375rem; left: calc(7.5rem + (100% - 7.5rem - var(--s3)) * var(--at) / 9); border-left: 1px dashed var(--ink-3); }
.roadmap .phase span { position: absolute; top: 0.375rem; left: 0.375rem; font-family: var(--serif); font-size: var(--t-sm); white-space: nowrap; color: var(--ink); }
.roadmap .phase small { display: block; max-width: 13em; font-family: var(--sans); font-size: var(--t-xs); line-height: 1.3; white-space: normal; color: var(--ink-3); }
.roadmap .months { display: grid; grid-template-columns: repeat(9, 1fr); gap: 0.25rem; margin-top: var(--s2); }
.roadmap .months span { padding: 0.25rem 0.5rem; color: var(--ink-3); font-variant-numeric: tabular-nums; background: color-mix(in srgb, var(--ink) 6%, transparent); border-radius: 0.25rem; }
@media (min-width: 45em) {
  .roadmap-wrap { margin-inline: 0; border: 1px solid var(--rule); border-radius: 0.375rem; }
  .roadmap { min-width: 47.5rem; }
}

/* Type scale specimen (design system case study) */
.typescale { margin: var(--s4) 0; border-top: 1px solid var(--ink); }
.typescale .step { display: grid; grid-template-columns: 1fr auto; gap: var(--s3); align-items: baseline; padding: var(--s2) 0; border-bottom: 1px solid var(--rule); }
.typescale .name { font-size: var(--t-xs); font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.typescale .spec { font-size: var(--t-xs); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.typescale .sample { grid-column: 1 / -1; overflow: hidden; line-height: 1.15; white-space: nowrap; text-overflow: ellipsis; color: var(--ink); }
.typescale .serif { font-family: var(--serif); }
.typescale .caps { letter-spacing: 0.06em; text-transform: uppercase; }
.type-rules { display: grid; grid-template-columns: 1fr; gap: var(--s3); margin: var(--s4) 0; }
.type-rules div { padding-top: var(--s2); border-top: 2px solid var(--accent); }
.type-rules h4 { margin-bottom: var(--s1); }
.type-rules p { margin: 0; font-size: var(--t-sm); color: var(--ink-2); }
@media (min-width: 45em) {
  .typescale .step { grid-template-columns: 7.5em 5.5em minmax(0, 1fr); }
  .typescale .sample { grid-column: auto; }
  .type-rules { grid-template-columns: repeat(3, 1fr); }
}

/* Figma prototypes: load only on request; old/new pairs switch on small screens */
.proto { margin: var(--s5) 0; }
.proto-stage { display: grid; place-items: center; padding: var(--s5); background: var(--paper-deep); border: 1px solid var(--rule); border-radius: var(--radius); }
.proto-device { position: relative; width: 100%; overflow: hidden; background: #111; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.5); }
.proto--mobile .proto-device { max-width: 23.75rem; aspect-ratio: 9 / 19; border: 10px solid #111; border-radius: 2.625rem; }
.proto--desktop .proto-device { aspect-ratio: 16 / 10; border: 1px solid var(--rule); border-radius: 0.625rem; }
.proto-device iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.proto-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.55; }
.proto-play { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.875rem; padding: var(--s3); font-family: var(--sans); font-size: var(--t-sm); font-weight: 500; letter-spacing: 0.04em; text-align: center; color: #f4ede2; background: transparent; border: 0; cursor: pointer; }
.proto-play .ring { display: grid; place-items: center; width: 4.5rem; height: 4.5rem; border: 1px solid rgba(244, 237, 226, 0.7); border-radius: 50%; transition: transform 0.4s var(--ease), background 0.4s var(--ease); }
.proto-play:hover .ring { background: var(--accent); border-color: var(--accent); transform: scale(1.08); }
.proto-play svg { width: 22px; height: 22px; margin-left: 4px; fill: currentColor; }
.proto-play small { font-weight: 300; letter-spacing: 0; opacity: 0.75; }
.proto-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.625rem; margin-top: 0.75rem; font-size: var(--t-xs); color: var(--ink-3); }
.proto-meta b { font-weight: 500; color: var(--accent); }
.proto-pair { display: grid; gap: var(--s4) var(--col-gap); margin: var(--s3) 0 var(--s5); }
.proto-pair .proto { margin: 0; }
.proto-pair .proto-device { max-width: 20rem; }
@media (max-width: 56.24em) {
  .proto-switch { display: inline-flex; gap: 2px; margin: var(--s3) 0 var(--s2); padding: 0.25rem; background: var(--card); border: 1px solid var(--rule); border-radius: var(--pill); }
  .proto-switch button { padding: 0.6875rem 1.25rem 0.5625rem; font: 500 var(--t-sm)/1 var(--sans); color: var(--ink-2); background: none; border: 0; border-radius: var(--pill); cursor: pointer; }
  .proto-switch button[aria-pressed="true"] { color: var(--paper); background: var(--ink); }
  .proto-pair.is-switchable { margin-top: 0; }
  .proto-pair.is-switchable > .proto:not(.is-shown) { display: none; }
}
@media (min-width: 56.25em) {
  .proto-pair { grid-template-columns: 1fr 1fr; }
}

/* ---------- More case studies (end of each case study) ---------- */
.more-cases { position: relative; padding-block: var(--section); }
.more-cases::before { content: ""; position: absolute; top: 0; inset-inline: var(--gutter); border-top: 1px solid var(--rule); } /* the rule stops at the page margins, like every other divider */
.more-cases-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: last baseline; gap: var(--s3); margin-bottom: var(--s4); }
.more-cases-grid { display: grid; grid-template-columns: 1fr; gap: var(--s3); }
.case-card { display: flex; flex-direction: column; overflow: hidden; text-decoration: none; background: var(--card); border: 1px solid var(--rule); border-radius: 0.375rem; transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.case-card:hover { color: var(--ink); transform: translateY(-4px); box-shadow: 10px 20px 40px -28px rgba(40, 28, 16, 0.4); }
.case-card .img { aspect-ratio: 16 / 9; overflow: hidden; background: var(--paper-deep); }
.case-card .img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.case-card:hover .img img { transform: scale(1.03); }
.case-card .body { padding: var(--s3); }
.case-card .kicker { margin-bottom: var(--s1); }
.case-card h3 { margin-bottom: var(--s1); transition: color 0.3s; }
.case-card:hover h3 { color: var(--accent); }
.case-card p { margin: 0; font-size: var(--t-sm); color: var(--ink-2); }
@media (min-width: 45em) {
  .more-cases-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: var(--s4); background: rgba(12, 11, 16, 0.92); opacity: 0; visibility: hidden; cursor: zoom-out; transition: opacity 0.3s, visibility 0.3s; }
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img { max-width: 100%; max-height: 90vh; border-radius: var(--radius); }

/* Variants used in case-study markup */
.figure--narrow { max-width: 35rem; }
.caption-tight { margin-top: calc(-1 * var(--s2)); }
.roadmap-space { height: 3.875rem; }
.phones--single { max-width: 20rem; margin-inline: auto; }
.phones--pair { max-width: 38.75rem; margin-inline: auto; }
.stats--pair { grid-template-columns: 1fr 1fr; }
@media (min-width: 45em) {
  .three-up.goals { grid-template-columns: repeat(auto-fit, minmax(11.25rem, 1fr)); }
}

/* ===== 18-about.css ===== */
/* =====================================================================
   ABOUT. Hero with portrait, facts strip, what I'm known for, kind words, off the clock (sketch pad),
   timeline, range facets, languages, resume band.
   ===================================================================== */

/* ---------- Hero ---------- */
.about-hero { display: grid; grid-template-columns: 1fr; gap: var(--s4); align-items: center; }
.about-hero h1 { max-width: 13em; font-size: var(--t-3xl); }
.about-hero .lede { max-width: 32em; margin-top: var(--s3); font-family: var(--sans); font-size: var(--t-base); font-weight: 300; line-height: 1.65; color: var(--ink-2); }
.about-portrait { max-width: 26.25rem; margin: 0; }
.about-portrait img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 0.375rem; box-shadow: 14px 26px 50px -32px rgba(40, 28, 16, 0.5); }
@media (min-width: 56.25em) {
  .about-hero { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); column-gap: var(--col-gap); }
  .about-hero h1 { max-width: none; }
  .about-portrait { justify-self: end; width: 100%; }
}

/* At a glance: a quiet strip of facts under the hero */
.glance-strip { margin-top: var(--s5); padding-block: var(--s3); border-block: 1px solid var(--rule); }
.glance-strip dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); margin: 0; }
.glance-strip dt { margin-bottom: 0.375rem; font-size: var(--t-xs); font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.glance-strip dd { margin: 0; font-size: var(--t-sm); line-height: 1.4; color: var(--ink); }
@media (min-width: 45em) {
  .glance-strip dl { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 75em) {
  .glance-strip dl { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

/* ---------- What I'm known for ---------- */
.known { display: grid; grid-template-columns: 1fr; gap: var(--s2); margin-top: var(--s4); }
.known article {
  display: grid; grid-template-columns: 2rem minmax(0, 1fr); gap: 0.25rem var(--s2); align-content: start;
  padding: var(--s3); background: var(--card); border: 1px solid var(--rule); border-radius: 0.375rem;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.known article:hover { transform: translateY(-4px); box-shadow: 10px 20px 36px -26px rgba(40, 28, 16, 0.4); }
.known svg { grid-row: span 2; width: 2rem; height: 2rem; }
.known svg * { fill: none; stroke: var(--accent); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.known h3 { margin: 0; font-size: var(--t-base); }
.known p { margin: 0; font-size: var(--t-sm); color: var(--ink-2); }
@media (min-width: 45em) {
  .known { grid-template-columns: repeat(2, 1fr); gap: var(--s3); }
  .known article { grid-template-columns: 1fr; gap: var(--s2); }
  .known svg { grid-row: auto; width: 2.75rem; height: 2.75rem; }
}
@media (min-width: 75em) {
  .known { grid-template-columns: repeat(5, 1fr); }
}

/* ---------- Kind words ---------- */
.kw { position: relative; margin: 0; padding-top: 3.25rem; border-top: 1px solid var(--rule); }
.kw::before { content: "\201C"; position: absolute; top: 2px; left: -2px; font-family: var(--serif); font-size: var(--t-3xl); line-height: 1; color: var(--accent); }
.kw blockquote { margin: 0 0 var(--s3); font-family: var(--serif); font-size: var(--t-base); line-height: 1.5; color: var(--ink); }
.kw figcaption { font-size: var(--t-xs); line-height: 1.4; color: var(--ink-2); }
.kw figcaption b { display: block; font-weight: 500; letter-spacing: 0.02em; color: var(--ink); }
.kw--lead { max-width: 52em; margin-top: var(--s4); padding-top: 4.375rem; border-top: 0; }
.kw--lead::before { top: 0; font-size: var(--t-display); }
.kw--lead blockquote { font-size: var(--t-lg); line-height: 1.4; }
.kw-full { margin-top: var(--s3); }
.kw-full summary { display: inline-flex; align-items: center; gap: 0.5rem; font-size: var(--t-sm); font-weight: 500; color: var(--accent); list-style: none; cursor: pointer; }
.kw-full summary::-webkit-details-marker { display: none; }
.kw-full summary::after { content: "+"; font-size: 1.1em; line-height: 1; transition: transform 0.3s var(--ease); }
.kw-full[open] summary::after { transform: rotate(45deg); }
.kw-full p { max-width: 44em; margin: var(--s2) 0 0; font-size: var(--t-sm); line-height: 1.6; color: var(--ink-2); }

/* mentee quotes: swipe on phones, three across from 56.25em */
.kind-words { display: flex; gap: var(--s3); margin: var(--s4) calc(var(--gutter) * -1) 0; padding: 0 var(--gutter) var(--s2); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none; }
.kind-words::-webkit-scrollbar { display: none; }
.kind-words .kw { flex: 0 0 84%; scroll-snap-align: start; }
@media (min-width: 45em) {
  .kind-words .kw { flex-basis: 46%; }
}
@media (min-width: 56.25em) {
  .kind-words { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--col-gap); margin-inline: 0; padding: 0; overflow: visible; }
}

/* what mentees say, sized by how often it comes up */
.mentee-words { margin: var(--s5) 0 0; text-align: center; }
.mentee-words p { max-width: 46em; margin: 0 auto; font-family: var(--serif); line-height: 1.25; text-wrap: balance; color: var(--ink-2); }
.mentee-words span { display: inline-block; margin: 0 0.28em; }
.mentee-words .w1 { font-size: var(--t-2xl); font-style: italic; color: var(--accent); }
.mentee-words .w2 { font-size: var(--t-xl); color: var(--ink); }
.mentee-words .w3 { font-size: var(--t-md); }
.mentee-words .w4 { font-size: var(--t-base); font-style: italic; color: var(--ink-3); }
.mentee-words figcaption { margin-top: var(--s3); font-size: var(--t-xs); color: var(--ink-3); }

/* mentoring reach: one quiet row */
.mentor-reach { display: grid; gap: var(--s2) var(--col-gap); align-items: center; margin-top: var(--s4); padding-top: var(--s3); border-top: 1px solid var(--rule); }
.mr-stats { display: flex; gap: var(--s4); margin: 0; }
.mr-stats div { display: flex; flex-direction: column-reverse; }
.mr-stats dd { margin: 0; font-family: var(--serif); font-size: var(--t-xl); font-weight: 350; line-height: 1; color: var(--accent); }
.mr-stats dt { margin-top: 0.375rem; font-size: var(--t-xs); color: var(--ink-2); }
.mr-places { margin: 0; font-size: var(--t-xs); line-height: 1.6; text-wrap: balance; color: var(--ink-2); }
@media (min-width: 56.25em) {
  .mentor-reach { grid-template-columns: auto minmax(0, 1fr) auto; }
}

/* ---------- Off the clock: a wire-bound sketch pad (fixed paper colours, the same in both themes) ---------- */
.sketchbook {
  position: relative; margin-top: var(--s5); padding: var(--s3);
  color: #3a3530; background-color: #fffdf9;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.36 0 0 0 0 0.29 0 0 0 0 0.2 0 0 0 0.17 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='520' height='260'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.006 0.09' numOctaves='3' seed='9'/%3E%3CfeColorMatrix values='0 0 0 0 0.45 0 0 0 0 0.37 0 0 0 0 0.26 0 0 0 0.1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)'/%3E%3C/svg%3E");
  border-radius: 0.1875rem 0.1875rem 0.375rem 0.375rem;
  box-shadow: 0 0 0 1px rgba(60, 44, 28, 0.08), 0 1px 0 #e6ddcf, 0 3px 0 #f8f3ea, 0 4px 0 #dcd2c2, 0 18px 34px -24px rgba(40, 28, 16, 0.45);
}
.sb-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.sb-ring {
  position: absolute; left: var(--s3); right: var(--s3); top: -0.6875rem; height: 1.375rem; pointer-events: none;
  background-image: radial-gradient(circle at 10px 16px, #a99e8c 0 2.3px, transparent 2.8px), linear-gradient(90deg, transparent 8.4px, #5f5a53 8.4px, #b8b2a8 10px, #6a655d 11.6px, transparent 11.6px);
  background-size: 20px 22px, 20px 16px; background-repeat: repeat-x;
}

/* each hobby is a tile; gaps equal both ways and smaller than the pad's margin */
.offclock { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s2); align-items: stretch; margin: 0; padding: 0; }
.offclock li { position: relative; text-align: center; list-style: none; background: rgba(255, 255, 255, 0.45); border: 1px solid rgba(60, 44, 28, 0.1); border-radius: 0.625rem; transition: border-color 0.3s, background 0.3s; }
.offclock li:hover { background: rgba(255, 255, 255, 0.75); border-color: rgba(181, 96, 58, 0.35); }
.offclock button { all: unset; box-sizing: border-box; display: grid; justify-items: center; align-content: start; gap: 0.25rem; width: 100%; height: 100%; padding: var(--s2) 0.375rem; border-radius: var(--radius); cursor: pointer; }
.offclock button:focus-visible { outline: 2px solid #b5603a; outline-offset: 3px; }
.offclock svg { width: 2.5rem; height: 2.5rem; margin-bottom: 0.25rem; overflow: visible; transition: transform 0.4s var(--ease); }
.offclock button:hover svg, .offclock button:focus-visible svg { transform: translateY(-3px); }
/* the title: serif, with a hand-drawn underline that draws in on hover */
.offclock span {
  padding-bottom: 0.1875rem; font-family: var(--serif); font-size: var(--t-sm); font-weight: 400; line-height: 1.2; color: #2f2a25;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='5' viewBox='0 0 16 5'%3E%3Cpath d='M0 3 Q4 0 8 3 T16 3' fill='none' stroke='%23b5603a' stroke-width='1.4'/%3E%3C/svg%3E") 0 100% / 0 5px repeat-x;
  transition: background-size 0.4s var(--ease);
}
.offclock button:hover span, .offclock button:focus-visible span { background-size: 16px 5px; }
/* the note: hidden on phones until the drawing is tapped */
.oc-note { display: none; font-size: var(--t-xs); font-style: normal; line-height: 1.4; color: #6a6157; }
.offclock button.is-open .oc-note { display: block; }
/* drawing parts (pencil colours) */
.offclock svg .ln { fill: none; stroke: #45403a; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.offclock button:hover svg .ln, .offclock button:focus-visible svg .ln, .offclock button:hover .lens, .offclock button:focus-visible .lens, .offclock button:hover .brush { stroke: #b5603a; }
.offclock svg .fl { fill: #b5603a; opacity: 0.75; }
.offclock svg .fl2 { fill: #8e93a8; opacity: 0.45; }
.offclock .thin { stroke-width: 1; }
.offclock .lens { fill: #fbf8f2; stroke: #45403a; stroke-width: 1.6; }
.offclock .dot { fill: #8f857a; opacity: 0.55; }
.offclock .brush { fill: none; stroke: #45403a; stroke-width: 3.2; stroke-linecap: round; }
.offclock .acc { stroke: #b5603a; }
.offclock .accdot, .offclock .tip, .offclock .blush { fill: #b5603a; }
.offclock .blush { opacity: 0.28; }
.offclock .shine { fill: #fff; }
.offclock .paint { stroke: none; }
.offclock .p1 { fill: var(--accent); }
.offclock .p2 { fill: var(--b1); }
.offclock .p3 { fill: var(--b3); }
.offclock .p4 { fill: var(--b5); }
.offclock .spoke, .offclock .blink { transform-box: fill-box; transform-origin: center; }
@media (min-width: 45em) {
  .sketchbook { padding: var(--s4); }
  .offclock { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .offclock button { padding: var(--s3) var(--s2); }
  .offclock svg { width: 3.5rem; height: 3.5rem; }
  .offclock span { font-size: var(--t-base); line-height: 1.25; }
  .oc-note { display: block; }
}
@media (min-width: 75em) {
  .offclock { grid-template-columns: repeat(7, minmax(0, 1fr)); }
}
/* drawings play when pointed at or opened */
@media (prefers-reduced-motion: no-preference) {
  .offclock .anim { transform-box: fill-box; transform-origin: center; }
  .offclock button:is(:hover, .is-open) .spin { animation: spin 1.2s linear infinite; }
  .offclock button:is(:hover, .is-open) .float { animation: float 2.4s ease-in-out infinite; }
  .offclock button:is(:hover, .is-open) .roll { animation: roll 1.4s var(--ease) both; }
  .offclock button:is(:hover, .is-open) .bubble { animation: bubble 1.6s ease-out infinite; }
  .offclock button:is(:hover, .is-open) .bubble:nth-of-type(2) { animation-delay: 0.5s; }
  .offclock button:is(:hover, .is-open) .blink { animation: blink 2.2s infinite; }
  .offclock button:is(:hover, .is-open) .wag { animation: wag 0.8s ease-in-out infinite alternate; transform-origin: 0% 100%; }
  .offclock button:is(:hover, .is-open) .draw { stroke-dasharray: 60; animation: draw 1.4s ease forwards; }
  .offclock button:is(:hover, .is-open) .spoke { animation: spin 2.4s linear infinite; }
  .offclock button:is(:hover, .is-open) .road { animation: road 1.8s linear infinite; }
  .offclock button:is(:hover, .is-open) .ride { animation: ride-bob 1.2s ease-in-out infinite alternate; }
  .offclock button:is(:hover, .is-open) .glide { animation: glide 1.6s ease-in-out infinite alternate; }
  .offclock button:is(:hover, .is-open) .note-fly { animation: notefly 1.8s ease-out infinite; }
  .offclock button.is-open:not(:hover):not(:focus-visible) :is(.anim, .spoke, .road, .ride, .glide, .draw, .note-fly) { animation: none; }
}

/* ---------- Timeline ---------- */
.timeline { position: relative; margin: 0; padding: 0; list-style: none; }
.timeline::before { content: ""; position: absolute; left: 0.4375rem; top: 0.5rem; bottom: 0.5rem; width: 1px; background: var(--rule); }
.timeline li { position: relative; display: grid; grid-template-columns: 1fr; gap: 0.25rem var(--col-gap); padding: 0 0 var(--s4) 2.125rem; }
.timeline li::before { content: ""; position: absolute; left: 2px; top: 0.5625rem; width: 0.6875rem; height: 0.6875rem; background: var(--paper); border: 1px solid var(--ink); border-radius: 50%; }
.timeline li.now::before { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 5px var(--accent-soft); }
.timeline .when { padding-top: 0.25rem; font-size: var(--t-xs); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.timeline h3 { margin-bottom: 0.25rem; }
.timeline .where { display: block; margin-bottom: 0.5rem; font-size: var(--t-sm); color: var(--accent); }
.timeline p { margin: 0; color: var(--ink-2); }
@media (min-width: 56.25em) {
  .timeline::before { left: 10.44rem; }
  .timeline li { grid-template-columns: 7.5rem 1fr; padding-left: 0; }
  .timeline li::before { left: 10.12rem; }
  .timeline .what { padding-left: 2.5rem; }
}

/* ---------- The rest of the range: facets, languages ---------- */
.facets { display: grid; grid-template-columns: 1fr; gap: var(--s3); }
.facet { padding: var(--s4); background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); }
.facet b { display: block; margin-bottom: 0.75rem; font-family: var(--serif); font-size: var(--t-xl); font-weight: 350; line-height: 1; color: var(--accent); }
.facet h4 { margin-bottom: 0.375rem; }
.facet p { margin: 0; font-size: var(--t-sm); color: var(--ink-2); }
.facet .facet-links { display: flex; flex-direction: column; gap: 0.25rem; margin-top: 0.625rem; }
.langs { padding: var(--s3) 0.25rem 0; }
.langs h4 { margin-bottom: 0.75rem; }
.langs ul { display: grid; gap: 0.4375rem; margin: 0; padding: 0; list-style: none; }
.langs li { display: flex; justify-content: space-between; gap: 0.75rem; padding-bottom: 0.4375rem; font-size: var(--t-sm); border-bottom: 1px dotted var(--rule); }
.langs li span { color: var(--ink-2); }
@media (min-width: 45em) {
  .facets { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 62.5em) {
  .facets { grid-template-columns: repeat(4, 1fr); }
  .facets--3 { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Resume band ---------- */
.resume-band { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--s3); padding: var(--s5); color: var(--paper); background: var(--ink); border-radius: var(--radius); }
.resume-band h3 { margin: 0 0 0.375rem; color: var(--paper); }
.resume-band p { margin: 0; color: color-mix(in srgb, var(--paper) 72%, transparent); }
.resume-band .btn { color: var(--paper); border-color: var(--paper); }
.resume-band .btn:hover { color: var(--ink); background: var(--paper); }
.resume-band .btn--solid { color: #fff; background: var(--accent); border-color: var(--accent); }
:root[data-theme="dusk"] .resume-band .btn--solid { color: #1a1410; }

/* ===== 19-work-with-me.css ===== */
/* =====================================================================
   WORK WITH ME. Consulting offers as rows: title, what it is, how long.
   ===================================================================== */
.offers { display: grid; }
.offer { display: grid; grid-template-columns: 1fr; gap: 0.625rem var(--col-gap); padding: var(--s4) 0; border-top: 1px solid var(--rule); }
.offer:last-child { border-bottom: 1px solid var(--rule); }
.offer h3 { margin: 0; }
.offer p { margin: 0; color: var(--ink-2); }
.offer .len { font-size: var(--t-xs); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
@media (min-width: 56.25em) {
  .offer { grid-template-columns: 5fr 6fr 2fr; align-items: baseline; }
  .offer .len { text-align: right; }
}

/* ===== 20-article.css ===== */
/* =====================================================================
   JOURNAL ARTICLES. A single reading column with a drop cap, figures and related reading.
   ===================================================================== */
.article-head { padding-top: calc(var(--header) + var(--s6)); padding-bottom: var(--s4); }
.article-head .date { font-size: var(--t-xs); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.article-head h1 { margin-top: var(--s3); font-size: var(--t-3xl); }
.article { padding-bottom: var(--section); }
.article .prose p, .article .prose li { margin-bottom: 0.8em; font-size: var(--t-md); line-height: 1.75; }
.article .prose p:first-of-type::first-letter { float: left; padding: 0.06em 0.1em 0 0; font-family: var(--serif); font-size: 4.2em; line-height: 0.82; color: var(--accent); }
.article .prose h2 { margin-top: var(--s5); margin-bottom: var(--s2); font-size: var(--t-xl); }
.article .prose h2 + p { margin-top: 0; }

.post-fig { margin: var(--s5) 0; }
.post-fig img { display: block; width: 100%; height: auto; max-height: 78vh; object-fit: cover; border-radius: 0.375rem; }
.post-fig figcaption { margin-top: 0.625rem; font-size: var(--t-xs); color: var(--ink-3); }
.post-fig--sketch svg { display: block; width: 100%; max-width: 35rem; margin: 0 auto; overflow: visible; }
.post-fig--sketch figcaption { text-align: center; }
.post-fig--sketch .c-body, .post-fig--sketch .c-rim, .post-fig--sketch .c-saucer { fill: var(--card); stroke: var(--ink-2); stroke-width: 1.6; }
.post-fig--sketch .c-handle { fill: none; stroke: var(--ink-2); stroke-width: 5; stroke-linecap: round; }
.post-fig--sketch .c-band { fill: var(--accent); opacity: 0.16; }
.post-fig--sketch .c-dot { fill: var(--accent); opacity: 0.7; }
.post-fig--sketch .c-mark { fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linejoin: round; opacity: 0.8; }
.post-fig--trio .trio { display: grid; grid-template-columns: 1fr; gap: var(--s2); }
.post-fig--trio a { font-size: var(--t-xs); text-decoration: none; color: var(--ink-2); }
.post-fig--trio img { max-height: none; margin-bottom: 0.5rem; aspect-ratio: 1; border-radius: 0.375rem; transition: transform 0.4s var(--ease); }
@media (min-width: 45em) {
  .post-fig--trio .trio { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.also-read { margin: var(--s4) 0 var(--s3); padding-top: var(--s3); border-top: 1px solid var(--rule); }
.also-read ul { display: grid; margin: 0.75rem 0 0; padding: 0; list-style: none; }
.also-read a { display: grid; gap: 2px; padding: 0.75rem 0; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--rule); transition: padding-left 0.35s var(--ease), color 0.3s; }
.also-read a span { font-family: var(--serif); font-size: var(--t-base); line-height: 1.25; }
.also-read a small { font-size: var(--t-xs); color: var(--ink-3); }

@media (hover: hover) {
  .post-fig--trio a:hover img { transform: translateY(-3px); }
  .also-read a:hover { padding-left: 0.5rem; color: var(--accent); }
}
.article-head .date a { text-decoration: none; }
.article-head .lede { color: var(--ink-2); }
.article hr.rule { margin: var(--s5) 0 var(--s3); }

/* ===== 90-keyframes.css ===== */
/* =====================================================================
   KEYFRAMES. Every animation used on the site, in one place.
   ===================================================================== */
@keyframes breath { 0% { transform: translateX(0); } 60% { transform: translateX(420%); } 100% { transform: translateX(420%); opacity: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(4px, -6px); } }
@keyframes roll { 0% { transform: translateX(-18px) rotate(-200deg); } 100% { transform: translateX(0) rotate(0); } }
@keyframes bubble { 0% { transform: translateY(0); opacity: 0.9; } 100% { transform: translateY(-16px); opacity: 0; } }
@keyframes blink { 0%, 44%, 52%, 100% { transform: scaleY(1); } 48% { transform: scaleY(0.1); } }
@keyframes wag { from { transform: rotate(-10deg); } to { transform: rotate(14deg); } }
@keyframes draw { from { stroke-dashoffset: 60; } to { stroke-dashoffset: 0; } }
@keyframes notefly { 0% { transform: translate(0, 0); opacity: 1; } 100% { transform: translate(10px, -14px); opacity: 0; } }
@keyframes halo { 0% { opacity: 0.4; transform: scale(0.6); } 70%, 100% { opacity: 0; transform: scale(2.6); } }
@keyframes metrics-scroll { to { transform: translateX(-50%); } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes road { from { transform: translateX(0); } to { transform: translateX(-18px); } }
@keyframes ride-bob { from { transform: translateY(0); } to { transform: translateY(-0.8px); } }
@keyframes glide { from { transform: translateX(-3px); } to { transform: translateX(3px); } }
@keyframes cat-z { 0% { opacity: 0; transform: translate(0, 4px); } 40% { opacity: 0.9; } 100% { opacity: 0; transform: translate(4px, -6px); } }
@keyframes vpIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes ribbon { 0% { transform: rotate(0); } 14% { transform: rotate(11deg); } 32% { transform: rotate(-7deg); } 50% { transform: rotate(4deg); } 68% { transform: rotate(-2deg); } 84% { transform: rotate(0.8deg); } 100% { transform: rotate(0); } }
@keyframes status-pulse { 0% { transform: scale(1); opacity: 0.5; } 70%, 100% { transform: scale(2.6); opacity: 0; } }
