/* Premium system - homepage, /fractional-cto/, /first-cto-playbook/.
   Linear's discipline (luminance hierarchy, tight display type, hairlines over boxes,
   product-as-illustration) built from Ben's materials (the book's terracotta, Literata,
   mono registers). Rendered by layouts/premium.njk without Tailwind. */

@font-face {
  font-family: "Inter Var";
  src: url("/fonts/InterVariable.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter Var";
  src: url("/fonts/InterArrows.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+2190-21FF;
}
@font-face {
  font-family: "Geist Mono Var";
  src: url("/fonts/GeistMonoVariable.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Literata";
  src: url("/fonts/Literata-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Literata";
  src: url("/fonts/Literata-400i.woff2") format("woff2");
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Literata";
  src: url("/fonts/Literata-600.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}

:root {
  --bg: #09090a;
  --surface: #101011;
  --surface-2: #161618;
  --surface-3: #1d1d20;
  --ink-1: #f7f7f5;
  --ink-2: #d4d3cf;
  --ink-3: #8e8d88;
  --ink-4: #7c7b76;
  --ink-5: #4a4946;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.13);
  --line-3: rgba(255, 255, 255, 0.22);
  --accent: #d4714e;
  --accent-2: #b85a3a;
  --accent-3: #8b4332;
  --accent-wash: rgba(212, 113, 78, 0.12);
  --bone: #efe9e0;
  --bone-ink: #17130f;
  --navy: #0f1923;
  --ok: #7fb685;
  --no: #c9785f;

  --sans: "Inter Var", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Literata", Georgia, "Times New Roman", serif;
  --mono: "Geist Mono Var", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --maxw: 1440px;
  --gutter: clamp(20px, 5.56vw, 80px);
  --section: clamp(88px, 10vw, 152px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --nav-h: 64px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body, h1, h2, h3, h4, p, ul, ol, li, figure, blockquote, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, svg, video, iframe { display: block; max-width: 100%; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }

html {
  background: var(--bg);
  color-scheme: dark;
  scroll-padding-top: calc(var(--nav-h) + 24px);
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}
body {
  background: var(--bg);
  color: var(--ink-2);
  font: 400 16px/1.6 var(--sans);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
::selection { background: rgba(212, 113, 78, 0.38); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 100;
  background: var(--ink-1); color: var(--bg);
  padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 510;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 12px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------- layout ---------- */
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); border-top: 1px solid var(--line); position: relative; }
.section--tight { padding-block: clamp(64px, 7vw, 104px); }
.section--flush { border-top: 0; }
.split { display: grid; grid-template-columns: 1fr; gap: 20px 64px; align-items: start; }
.stack > * + * { margin-top: var(--stack, 16px); }
@media (min-width: 960px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--wide-left { grid-template-columns: 1.15fr 0.85fr; }
  .split > .split__right { padding-top: 6px; }
}

/* ---------- type ---------- */
.eyebrow {
  font: 400 12px/1.5 var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-4);
}
.eyebrow--accent { color: var(--accent); }
.display {
  font-family: var(--sans);
  font-weight: 510;
  font-size: clamp(40px, 5.3vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.032em;
  color: var(--ink-1);
  text-wrap: balance;
}
.h2 {
  font-family: var(--sans);
  font-weight: 510;
  font-size: clamp(30px, 3.5vw, 50px);
  line-height: 1.06;
  letter-spacing: -0.028em;
  color: var(--ink-1);
  text-wrap: balance;
}
.h2--sm { font-size: clamp(26px, 2.6vw, 36px); letter-spacing: -0.024em; }
.h3 {
  font-family: var(--sans);
  font-weight: 560;
  font-size: 19px;
  line-height: 1.3;
  letter-spacing: -0.014em;
  color: var(--ink-1);
}
.h3--lg { font-size: clamp(20px, 1.8vw, 24px); letter-spacing: -0.018em; }
.tail { color: var(--ink-3); }
.lead {
  font-family: var(--serif);
  font-size: clamp(19px, 1.55vw, 22px);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 36em;
  text-wrap: pretty;
}
.prose { font-family: var(--serif); font-size: 17px; line-height: 1.65; color: var(--ink-3); text-wrap: pretty; }
.prose--bright { color: var(--ink-2); }
.prose strong, .lead strong { color: var(--ink-1); font-weight: 600; }
.prose em, .lead em { font-style: italic; }
.small { font-size: 14px; line-height: 1.55; color: var(--ink-3); }
.muted { color: var(--ink-3); }
.ink-1 { color: var(--ink-1); }
.accent { color: var(--accent); }
.serif { font-family: var(--serif); }
.mono { font-family: var(--mono); }
a.inline, .prose a, .lead a {
  color: var(--ink-1);
  text-decoration: underline;
  text-decoration-color: var(--line-3);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: text-decoration-color 0.2s var(--ease), color 0.2s var(--ease);
}
a.inline:hover, .prose a:hover, .lead a:hover { text-decoration-color: var(--accent); }

/* ---------- buttons + links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 18px;
  border-radius: 999px;
  font: 510 14px/1 var(--sans);
  letter-spacing: -0.006em;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn .arr { display: inline-block; transition: transform 0.25s var(--ease); }
.btn:hover .arr { transform: translateX(2px); }
.btn:hover .arr--down { transform: translateY(2px); }
.btn:active { transform: translateY(1px); }
.btn--primary { background: #f2f1ee; color: #0a0a0b; }
.btn--primary:hover { background: #fff; }
.btn--ghost { background: rgba(255, 255, 255, 0.03); border-color: var(--line-2); color: var(--ink-1); }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.07); border-color: var(--line-3); }
.btn--sm { height: 32px; padding: 0 13px; font-size: 13px; }
.btn--lg { height: 48px; padding: 0 22px; font-size: 15px; }
.btn--block { width: 100%; }
@media (min-width: 640px) { .btn--block { width: auto; } }
.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }

.tlink {
  display: inline-flex; align-items: center; gap: 6px;
  font: 400 15px/1.4 var(--sans);
  letter-spacing: -0.01em;
  color: var(--ink-3);
  transition: color 0.2s var(--ease);
}
.tlink .arr { transition: transform 0.25s var(--ease); }
.tlink:hover { color: var(--ink-1); }
.tlink:hover .arr { transform: translateX(2px); }
.tlink--bright { color: var(--ink-2); }

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  height: 22px; padding: 0 9px;
  border-radius: 999px;
  font: 400 11px/1 var(--mono);
  text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--ink-3);
  border: 1px solid var(--line-2);
  white-space: nowrap;
}
.pill--accent { color: var(--accent); border-color: rgba(212, 113, 78, 0.45); background: var(--accent-wash); }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(9, 9, 10, 0.74);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav__inner { height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 590 15px/1 var(--sans); letter-spacing: -0.012em; color: var(--ink-1); }
.brand__mark { width: 18px; height: 18px; flex: none; }
.nav__links { display: none; align-items: center; gap: 2px; }
.nav__links a {
  display: inline-flex; align-items: center; height: 32px; padding: 0 12px;
  border-radius: 999px; font-size: 13px; color: var(--ink-3);
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.nav__links a:hover { color: var(--ink-1); background: rgba(255, 255, 255, 0.04); }
.nav__links a[aria-current="page"] { color: var(--ink-1); }
.nav__actions { display: flex; align-items: center; gap: 8px; }
.nav__menu { position: relative; }
.nav__menu > summary {
  list-style: none; width: 36px; height: 32px; border-radius: 999px;
  display: grid; place-content: center; gap: 5px; cursor: pointer;
  border: 1px solid var(--line-2);
}
.nav__menu > summary::-webkit-details-marker { display: none; }
.nav__menu > summary span { display: block; width: 14px; height: 1.5px; background: var(--ink-1); border-radius: 2px; transition: transform 0.25s var(--ease); }
.nav__menu[open] > summary span:first-child { transform: translateY(3.25px) rotate(45deg); }
.nav__menu[open] > summary span:last-child { transform: translateY(-3.25px) rotate(-45deg); }
.nav__sheet {
  position: fixed; left: 0; right: 0; top: var(--nav-h);
  background: rgba(9, 9, 10, 0.97);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  padding: 8px var(--gutter) 24px;
}
.nav__sheet a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 0; border-bottom: 1px solid var(--line);
  font: 510 20px/1.2 var(--sans); letter-spacing: -0.02em; color: var(--ink-1);
}
.nav__sheet a span { color: var(--ink-4); font-size: 16px; }
@media (min-width: 900px) {
  .nav__links { display: flex; }
  .nav__menu { display: none; }
}

/* ---------- hero ---------- */
.hero { padding-top: clamp(72px, 12vw, 184px); padding-bottom: clamp(56px, 7vw, 96px); }
.hero__lead { margin-top: 28px; }
.hero__ctas { margin-top: 36px; }
.hero__meta { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; }
.byline { display: inline-flex; align-items: center; gap: 12px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; box-shadow: 0 0 0 1px var(--line-2); }
.avatar--sm { width: 32px; height: 32px; }
.avatar--lg { width: 72px; height: 72px; }
.byline__name { font-weight: 510; font-size: 14px; color: var(--ink-1); line-height: 1.3; }
.byline__role { font-size: 13px; color: var(--ink-3); line-height: 1.3; }
.news-link {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 15px; color: var(--ink-3); letter-spacing: -0.01em;
  transition: color 0.2s var(--ease);
}
.news-link b { font-weight: 510; color: var(--ink-1); }
.news-link:hover { color: var(--ink-1); }

/* entrance: one considered motion, then stillness. Opacity + transform only
   (compositor-friendly; no filter), and it waits for fonts so nothing reflows mid-move. */
@keyframes rise { from { opacity: 0; transform: translate3d(0, 10px, 0); } to { opacity: 1; transform: translate3d(0, 0, 0); } }
.js .rise { opacity: 0; }
.js.fonts-ready .rise { animation: rise 1s cubic-bezier(0.16, 1, 0.3, 1) both; }
.js.fonts-ready .rise-1 { animation-delay: 0s; }
.js.fonts-ready .rise-2 { animation-delay: 0.07s; }
.js.fonts-ready .rise-3 { animation-delay: 0.14s; }
.js.fonts-ready .rise-4 { animation-delay: 0.21s; }
.js.fonts-ready .rise-5 { animation-delay: 0.28s; }
.js .reveal { opacity: 0; transform: translate3d(0, 12px, 0); transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1); }
.js .reveal.is-in { opacity: 1; transform: translate3d(0, 0, 0); }
.js .reveal-d1 { transition-delay: 0.06s; }
.js .reveal-d2 { transition-delay: 0.12s; }
.js .reveal-d3 { transition-delay: 0.18s; }
.reveal-all .reveal { opacity: 1 !important; transform: none !important; }
@media (prefers-reduced-motion: reduce) {
  .js .rise, .js.fonts-ready .rise, .js .reveal { animation: none; opacity: 1; transform: none; transition: none; }
}

/* ---------- hairline figure grid (Linear's FIG row) ---------- */
.figs { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--line); }
.fig { padding: 28px 0 36px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; }
.fig__label { margin-bottom: 20px; }
.fig__art { min-height: 220px; display: grid; place-items: center; margin-bottom: 28px; }
.fig__title { margin-bottom: 8px; }
.fig__text { max-width: 30em; }
.fig__link { margin-top: auto; padding-top: 18px; }
@media (min-width: 900px) {
  .figs { grid-template-columns: repeat(3, 1fr); border-bottom: 0; }
  .fig { padding: 28px 32px 8px; border-bottom: 0; border-left: 1px solid var(--line); }
  .fig:first-child { border-left: 0; padding-left: 0; }
  .fig:last-child { padding-right: 0; }
  .figs--4 { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- hairline index rows ---------- */
.rows { border-top: 1px solid var(--line); }
.row {
  display: grid; grid-template-columns: 1fr; gap: 6px 32px;
  padding: 22px 0; border-bottom: 1px solid var(--line);
}
a.row { transition: background-color 0.2s var(--ease); }
a.row:hover .row__title { color: #fff; }
a.row:hover .arr { transform: translateX(3px); color: var(--ink-1); }
.row .arr { transition: transform 0.25s var(--ease), color 0.2s var(--ease); color: var(--ink-4); }
.row__num { font: 400 12px/1.9 var(--mono); color: var(--ink-4); }
.row__title { font: 510 17px/1.35 var(--sans); letter-spacing: -0.014em; color: var(--ink-1); transition: color 0.2s var(--ease); }
.row__text { font-family: var(--serif); font-size: 16px; line-height: 1.55; color: var(--ink-3); }
.row__meta { font: 400 13px/1.6 var(--mono); color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.03em; }
@media (min-width: 760px) {
  .row--ladder { grid-template-columns: 56px 1.1fr 1.6fr 180px 20px; align-items: baseline; }
  .row--toc { grid-template-columns: 56px 1fr 1.25fr; align-items: baseline; }
  .row--three { grid-template-columns: 1fr 1.6fr auto; align-items: baseline; }
}

/* ---------- artifact panels (the product shots) ---------- */
.panel {
  background: linear-gradient(180deg, #131315 0%, #0f0f10 100%);
  border: 1px solid var(--line-2);
  border-radius: 12px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 40px 100px -20px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  position: relative;
}
.panel__bar {
  height: 44px; display: flex; align-items: center; gap: 10px;
  padding: 0 16px; border-bottom: 1px solid var(--line);
  font: 400 12px/1 var(--mono); color: var(--ink-4);
}
.panel__dots { display: flex; gap: 6px; margin-right: 6px; }
.panel__dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--surface-3); box-shadow: inset 0 0 0 1px var(--line-2); }
.stage { position: relative; }
.stage--bleed { margin-right: calc(var(--gutter) * -1); }
@media (min-width: 1100px) { .stage--bleed { margin-right: 0; } }
.fade-bottom { -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent); mask-image: linear-gradient(180deg, #000 70%, transparent); }

/* Decision Review document */
.doc { display: grid; grid-template-columns: 1fr; min-height: 420px; }
.doc__main { padding: 32px clamp(20px, 3vw, 44px) 40px; }
.doc__side { border-top: 1px solid var(--line); padding: 24px clamp(20px, 3vw, 28px); background: rgba(255, 255, 255, 0.012); }
.doc__q { font: 510 clamp(20px, 2.1vw, 27px)/1.22 var(--sans); letter-spacing: -0.022em; color: var(--ink-1); max-width: 24em; text-wrap: balance; }
.doc__h { font: 400 11px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-4); margin: 26px 0 10px; }
.doc__p { font-family: var(--serif); font-size: 15px; line-height: 1.6; color: var(--ink-3); max-width: 40em; }
.doc__opts { display: grid; gap: 8px; }
.doc__opt {
  display: grid; grid-template-columns: 22px 1fr auto; gap: 10px; align-items: baseline;
  padding: 10px 12px; border-radius: 8px; border: 1px solid var(--line);
  font-size: 14px; color: var(--ink-2);
}
.doc__opt b { font: 400 12px/1 var(--mono); color: var(--ink-4); font-weight: 400; }
.doc__opt em { font-style: normal; font: 400 11px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-4); }
.doc__opt--pick { border-color: rgba(212, 113, 78, 0.5); background: var(--accent-wash); color: var(--ink-1); }
.doc__opt--pick em { color: var(--accent); }
.doc__side dl { display: grid; gap: 14px; }
.doc__side dt { font: 400 11px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-4); margin-bottom: 6px; }
.doc__side dd { font-size: 14px; color: var(--ink-2); line-height: 1.4; }
@media (min-width: 900px) {
  .doc { grid-template-columns: 1fr 260px; }
  .doc__side { border-top: 0; border-left: 1px solid var(--line); }
}

/* JSON console (ReqRes) */
.console { font: 400 13px/1.75 var(--mono); padding: 20px 22px 24px; color: var(--ink-3); overflow: hidden; }
.console .req { color: var(--ink-1); }
.console .verb { color: var(--ok); }
.console .k { color: #b9a8e0; }
.console .s { color: #d9b38c; }
.console .n { color: #8fc0d8; }
.console .c { color: var(--ink-5); }
.console__status { display: inline-flex; gap: 8px; align-items: center; color: var(--ok); }

/* ---------- 3D book (ported from the playbook, sized by --bw) ---------- */
.book-stage { --bw: 280px; perspective: 1200px; perspective-origin: 50% 40%; display: flex; align-items: center; justify-content: center; position: relative; padding: 24px 0 40px; }
.book-stage--sm { --bw: 168px; padding: 8px 0 24px; }
.book-stage--md { --bw: 230px; }
@media (min-width: 900px) { .book-stage--lg { --bw: 340px; } }
.book-floor {
  position: absolute; left: 50%; bottom: 10px;
  transform: translate3d(calc(-50% + var(--floor-x, 0px)), 0, 0);
  width: calc(var(--bw) * 1.2); height: calc(var(--bw) * 0.18);
  /* stacked falloffs instead of filter: blur - no per-frame filter cost in 3D contexts */
  background:
    radial-gradient(closest-side, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.32) 45%, rgba(0, 0, 0, 0.1) 75%, transparent),
    radial-gradient(closest-side, rgba(0, 0, 0, 0.35), transparent 70%);
}
.book {
  width: var(--bw); height: calc(var(--bw) * 1.353);
  position: relative; transform-style: preserve-3d;
  transform: rotateY(-22deg) rotateX(4deg);
  transition: transform 0.7s var(--ease);
}
a:hover .book, .book:hover { transform: rotateY(-14deg) rotateX(2deg); }
@media (prefers-reduced-motion: reduce) { .book { transition: none; } a:hover .book, .book:hover { transform: rotateY(-22deg) rotateX(4deg); } }
/* faces: exact geometry, each drawn only while it faces the viewer (no edge-on shimmer) */
.book__back { position: absolute; inset: 0; background: #0a1219; border-radius: 2px 8px 8px 2px; transform: translateZ(calc(var(--bw) * -0.036)); box-shadow: 18px 26px 60px rgba(0, 0, 0, 0.7); }
.book__spine {
  position: absolute; top: 0; height: 100%;
  left: calc(var(--bw) * -0.036); width: calc(var(--bw) * 0.072);
  background: linear-gradient(to right, #0a1219, #0f1923 45%, #18243a);
  transform: rotateY(-90deg); backface-visibility: hidden;
  border-radius: 2px 0 0 2px; display: flex; align-items: center; justify-content: center;
}
.book__spine span { font: 600 calc(var(--bw) * 0.024)/1 var(--mono); color: rgba(245, 240, 235, 0.5); letter-spacing: 0.2em; writing-mode: vertical-rl; transform: rotate(180deg); text-transform: uppercase; }
.book__pages, .book__top {
  position: absolute; left: 0; width: 100%; height: calc(var(--bw) * 0.072);
  backface-visibility: hidden;
}
.book__pages { top: calc(100% - var(--bw) * 0.036); transform: rotateX(-90deg); background: linear-gradient(to right, #b9b0a2, #cdc4b6 18%, #c6bdae 70%, #a9a092); }
.book__top { top: calc(var(--bw) * -0.036); transform: rotateX(90deg); background: linear-gradient(to right, #c4bbad, #ddd5c8 18%, #d6cdbf 70%, #bfb6a7); }
.book__front {
  position: absolute; inset: 0; backface-visibility: hidden; border-radius: 2px 8px 8px 2px; overflow: hidden;
  transform: translateZ(calc(var(--bw) * 0.036));
  box-shadow: 10px 15px 40px rgba(0, 0, 0, 0.55), inset -2px 0 8px rgba(0, 0, 0, 0.15), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}
.cover { width: 100%; height: 100%; background: var(--navy); position: relative; display: flex; flex-direction: column; }
.cover::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.09) 0%, transparent 42%, transparent 60%, rgba(0, 0, 0, 0.14) 100%);
}
.cover__top { flex: 0 0 38%; position: relative; }
.cover__grid {
  position: absolute; inset: 0; display: grid;
  grid-template-columns: repeat(8, 1fr); grid-template-rows: repeat(5, 1fr);
  gap: calc(var(--bw) * 0.0165); padding: calc(var(--bw) * 0.053) calc(var(--bw) * 0.076);
  opacity: 0.88;
}
.cover__grid i { position: relative; display: block; }
.cover__grid i > b { position: absolute; inset: 0; border-radius: 2px; }
.c-solid > b { background: #b85a3a; }
.c-dark > b { background: #8b4332; }
.c-accent > b { background: #d4714e; }
.c-subtle > b { background: rgba(184, 90, 58, 0.4); }
.c-ordered > b { background: #b85a3a; opacity: 0.9; }
.c-float { transform: rotate(var(--r, 0deg)) translate(var(--tx, 0px), var(--ty, 0px)); opacity: var(--o, 0.8); }
.c-float > b { background: #8b4332; }
/* the chaos breathes: compositor-only, paused offscreen */
@keyframes cell-drift {
  from { transform: translate3d(-0.9px, -0.6px, 0) rotate(-2deg); }
  to { transform: translate3d(0.9px, 0.7px, 0) rotate(2deg); }
}
.js .c-float > b { animation: cell-drift var(--d, 6s) ease-in-out var(--p, 0s) infinite alternate; }
.js .book-stage:not(.is-visible) .c-float > b { animation-play-state: paused; }
/* cells wait, unseen, until the book arrives on screen - then they fall in */
.js .book-stage:not([data-seen]) .cover__grid i > b { opacity: 0; }
.book-fallback .book-stage .cover__grid i > b { opacity: 1; }
.cover__rule { width: calc(var(--bw) * 0.176); height: 2px; background: #d4714e; margin: 0 auto; }
.cover__body { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0 calc(var(--bw) * 0.1); text-align: center; }
.cover__title { font: 700 calc(var(--bw) * 0.147)/1 Georgia, "Times New Roman", serif; color: #f5f0eb; letter-spacing: -0.01em; text-transform: uppercase; margin-bottom: calc(var(--bw) * 0.04); }
.cover__sub { font: italic 400 calc(var(--bw) * 0.044)/1.2 var(--mono); color: #d4714e; letter-spacing: 0.02em; }
.cover__foot { padding: 0 calc(var(--bw) * 0.1) calc(var(--bw) * 0.076); }
.cover__foot i { display: block; height: 1px; background: rgba(212, 113, 78, 0.3); margin-bottom: calc(var(--bw) * 0.047); }
.cover__author { font: 500 calc(var(--bw) * 0.032)/1 var(--mono); color: rgba(245, 240, 235, 0.6); letter-spacing: 0.25em; text-transform: uppercase; text-align: center; }

/* ---------- colour moment: testimonials ---------- */
.quotes { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 900px) { .quotes { grid-template-columns: 1.55fr 1fr; } }
.qcard {
  border-radius: 12px; padding: clamp(24px, 3vw, 36px);
  min-height: clamp(300px, 30vw, 440px);
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
}
.qcard blockquote p {
  font: 450 clamp(21px, 2.15vw, 31px)/1.24 var(--sans);
  letter-spacing: -0.022em; text-wrap: pretty;
}
.qcard__who { display: flex; align-items: center; gap: 14px; padding-top: 4px; }
.qcard__who img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.qcard__name { font: 590 14px/1.3 var(--sans); }
.qcard__role { font-size: 13px; opacity: 0.7; }
.qcard--accent { background: linear-gradient(160deg, #db7d57 0%, #c4623d 100%); color: #140b07; }
.qcard--bone { background: linear-gradient(160deg, #f3eee6 0%, #e7e0d4 100%); color: var(--bone-ink); }
.qcard--accent .qcard__who img, .qcard--bone .qcard__who img { box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12); }
.qcard details summary { cursor: pointer; font: 510 13px/1 var(--sans); list-style: none; opacity: 0.75; margin-top: 18px; display: inline-flex; gap: 6px; }
.qcard details summary::-webkit-details-marker { display: none; }
.qcard details summary:hover { opacity: 1; }
.qcard details[open] summary { margin-bottom: 14px; }
.qcard details p { font: 400 16px/1.6 var(--serif); letter-spacing: 0; }

/* quiet quote grid */
.qgrid { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--line); }
.qgrid > * { padding: 28px 0; border-bottom: 1px solid var(--line); }
.qgrid blockquote p { font-family: var(--serif); font-size: 17px; line-height: 1.6; color: var(--ink-2); }
.qgrid footer { margin-top: 16px; display: flex; align-items: center; gap: 12px; }
.qgrid cite { font: 510 14px/1.3 var(--sans); font-style: normal; color: var(--ink-1); display: block; }
.qgrid .role { font-size: 13px; color: var(--ink-3); }
@media (min-width: 760px) {
  .qgrid { grid-template-columns: repeat(2, 1fr); }
  .qgrid > * { padding: 32px 32px 32px 0; }
  .qgrid > *:nth-child(2n) { padding-left: 32px; padding-right: 0; border-left: 1px solid var(--line); }
}
@media (min-width: 1100px) {
  .qgrid--3 { grid-template-columns: repeat(3, 1fr); }
  .qgrid--3 > * { padding: 32px 32px 32px 0; border-left: 0; }
  .qgrid--3 > *:nth-child(2n) { padding: 32px 32px 32px 0; border-left: 0; }
  .qgrid--3 > *:not(:nth-child(3n + 1)) { padding-left: 32px; border-left: 1px solid var(--line); }
  .qgrid--3 > *:nth-child(3n) { padding-right: 0; }
}

/* sideways scroller (Linear's mobile card rows) */
.scroller {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 82%);
  gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
  margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter);
  scroll-padding-inline: var(--gutter); scrollbar-width: none;
}
.scroller::-webkit-scrollbar { display: none; }
.scroller > * { scroll-snap-align: start; }

/* ---------- logos ---------- */
.logos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 20px; align-items: center; }
.logos a { display: flex; align-items: center; justify-content: center; height: 34px; opacity: 0.62; transition: opacity 0.25s var(--ease); }
.logos a:hover { opacity: 1; }
.logos img { max-height: 26px; width: auto; filter: brightness(0) invert(1); }
.logos img.tall { max-height: 30px; }
@media (min-width: 640px) { .logos { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1100px) { .logos { grid-template-columns: repeat(7, 1fr); } .logos a { justify-content: flex-start; } }

/* ---------- forms ---------- */
.field {
  width: 100%; height: 44px; padding: 0 14px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line-2); border-radius: 10px;
  font-size: 15px; color: var(--ink-1);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), background-color 0.2s var(--ease);
}
.field::placeholder { color: var(--ink-4); }
.field:hover { border-color: var(--line-3); }
.field:focus { outline: none; border-color: rgba(212, 113, 78, 0.7); box-shadow: 0 0 0 3px rgba(212, 113, 78, 0.18); background: rgba(255, 255, 255, 0.05); }
.inline-form { display: flex; flex-direction: column; gap: 10px; max-width: 520px; }
@media (min-width: 560px) { .inline-form { flex-direction: row; } .inline-form .field { flex: 1; } }

.composer {
  background: linear-gradient(180deg, #141416, #101011);
  border: 1px solid var(--line-2); border-radius: 14px;
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.8);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.composer:focus-within { border-color: rgba(212, 113, 78, 0.55); box-shadow: 0 0 0 4px rgba(212, 113, 78, 0.1), 0 40px 100px -30px rgba(0, 0, 0, 0.8); }
.composer__prompt { padding: 24px 24px 0; font: 510 clamp(20px, 2.2vw, 28px)/1.25 var(--sans); letter-spacing: -0.022em; color: var(--ink-1); display: block; }
.composer__input {
  display: block; width: 100%; min-height: 128px; resize: vertical;
  padding: 12px 24px 20px; background: transparent; border: 0; outline: none;
  font: 400 clamp(18px, 1.6vw, 21px)/1.5 var(--serif); color: var(--ink-2);
}
.composer__input::placeholder { color: var(--ink-5); }
.composer__bar { display: flex; flex-direction: column; gap: 10px; padding: 12px; border-top: 1px solid var(--line); }
.composer__bar .field { background: rgba(0, 0, 0, 0.25); }
@media (min-width: 640px) { .composer__bar { flex-direction: row; align-items: center; } .composer__bar .field { flex: 1; } }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: baseline; gap: 24px;
  padding: 22px 0; font: 510 17px/1.4 var(--sans); letter-spacing: -0.014em; color: var(--ink-1);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 300 22px/1 var(--sans); color: var(--ink-4); transition: transform 0.3s var(--ease), color 0.2s var(--ease); flex: none; }
.faq summary:hover::after { color: var(--ink-1); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq__a { padding: 0 0 26px; max-width: 44em; }

/* ---------- checks ---------- */
.checks li { position: relative; padding: 14px 0 14px 30px; border-bottom: 1px solid var(--line); font-family: var(--serif); font-size: 17px; line-height: 1.55; color: var(--ink-2); }
.checks li:first-child { border-top: 1px solid var(--line); }
.checks li::before { position: absolute; left: 2px; top: 14px; font: 400 15px/1.55 var(--mono); }
.checks--yes li::before { content: "+"; color: var(--ok); }
.checks--no li::before { content: "\2212"; color: var(--no); }

/* ---------- timeline (talks) ---------- */
.timeline { display: grid; grid-template-columns: 1fr; gap: 0; }
.tl { position: relative; padding: 28px 0 28px 28px; border-left: 1px solid var(--line); }
.tl::before { content: ""; position: absolute; left: -4.5px; top: 36px; width: 8px; height: 8px; border-radius: 50%; background: var(--surface-3); box-shadow: 0 0 0 1px var(--line-3); }
.tl:first-child::before { background: var(--accent); box-shadow: 0 0 0 4px var(--accent-wash); }
.tl__date { margin-bottom: 10px; }
.tl__title { margin-bottom: 8px; }
@media (min-width: 900px) {
  .timeline { grid-template-columns: repeat(4, 1fr); }
  .tl { padding: 0 28px 0 0; border-left: 0; }
  .tl::before { position: static; display: block; margin-bottom: 28px; }
  .tl::after { content: ""; position: absolute; left: 14px; right: 0; top: 3.5px; height: 1px; background: var(--line); }
  .tl__date { margin-top: 0; }
}

/* ---------- final CTA ---------- */
.final { text-align: center; padding-block: clamp(112px, 14vw, 200px); }
.final .h2 { font-size: clamp(36px, 5vw, 68px); letter-spacing: -0.034em; max-width: 14em; margin-inline: auto; }
.final .btn-row { justify-content: center; margin-top: 36px; }
.final__meta { margin-top: 28px; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding-block: 64px 48px; }
.footer__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px 24px; }
.footer__brand { grid-column: 1 / -1; }
.footer__brand p { margin-top: 14px; max-width: 26em; }
.footer h2 { font: 510 13px/1 var(--sans); color: var(--ink-1); margin-bottom: 18px; }
.footer li + li { margin-top: 12px; }
.footer li a { font-size: 13px; color: var(--ink-3); transition: color 0.2s var(--ease); }
.footer li a:hover { color: var(--ink-1); }
.footer__base { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
@media (min-width: 900px) {
  .footer__grid { grid-template-columns: 1.4fr repeat(4, 1fr); }
  .footer__brand { grid-column: auto; }
}

/* ---------- utilities ---------- */
.mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; } .mt-20 { margin-top: 20px; }
.mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; } .mt-40 { margin-top: 40px; } .mt-56 { margin-top: 56px; }
.mt-72 { margin-top: clamp(48px, 6vw, 72px); } .mt-96 { margin-top: clamp(56px, 8vw, 96px); }
.mb-24 { margin-bottom: 24px; } .mb-40 { margin-bottom: 40px; }
.maxw-40 { max-width: 40em; } .maxw-28 { max-width: 28em; }
.nowrap { white-space: nowrap; }
.center { text-align: center; }

/* ---------- fractional CTO: hero quote, rung, offers, notices, book row ---------- */
.hero-quote blockquote p { font: 400 clamp(18px, 1.5vw, 21px)/1.5 var(--serif); font-style: italic; color: var(--ink-2); max-width: 30em; }
@media (min-width: 960px) { .hero-quote { padding-left: 28px; border-left: 1px solid var(--line-2); } }
.hero__meta { padding-top: 28px; border-top: 1px solid var(--line); margin-top: 56px; }

.rung {
  display: grid; grid-template-columns: 1fr; gap: 14px; align-items: center;
  padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.rung .pill { justify-self: start; }
.rung__text { font-size: 15px; line-height: 1.55; color: var(--ink-3); max-width: 62em; }
@media (min-width: 900px) { .rung { grid-template-columns: auto 1fr auto; gap: 24px; } }

.offers { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.offer { display: flex; flex-direction: column; padding: 32px 0 36px; border-top: 1px solid var(--line); position: relative; }
.offer:first-child { border-top: 0; }
.offer--start::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: var(--accent); }
.offer__head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; min-height: 30px; }
.offer__kind { font-size: 14px; color: var(--ink-3); margin-top: 6px; }
.offer__price { font: 510 clamp(32px, 2.6vw, 38px)/1 var(--sans); letter-spacing: -0.032em; color: var(--ink-1); margin-top: 28px; }
.offer__price small { font-size: 14px; font-weight: 400; letter-spacing: -0.005em; color: var(--ink-3); }
.offer__term { font: 400 12px/1.5 var(--mono); text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-4); margin-top: 10px; }
.offer__outcome { font: italic 400 16px/1.55 var(--serif); color: var(--ink-2); margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); }
.offer__list { margin-top: 20px; display: grid; gap: 10px; }
.offer__list li { position: relative; padding-left: 18px; font-size: 14px; line-height: 1.5; color: var(--ink-3); }
.offer__list li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 8px; height: 1px; background: var(--ink-4); }
.offer__note { font-size: 13px; line-height: 1.55; color: var(--ink-3); margin-top: 18px; }
.offer__note strong, .offer__best strong { color: var(--ink-1); font-weight: 560; }
.offer__note--guarantee { padding: 12px 14px; border-radius: 10px; border: 1px solid rgba(127, 182, 133, 0.35); background: rgba(127, 182, 133, 0.07); }
.offer__note--guarantee strong { color: #cfe6d2; }
.offer__best { font-size: 13px; line-height: 1.55; color: var(--ink-3); margin-top: 18px; }
.offer__cta { margin-top: auto; padding-top: 28px; }
.offer--start { background: linear-gradient(180deg, rgba(212, 113, 78, 0.075), rgba(212, 113, 78, 0.015) 55%, transparent); }
@media (max-width: 759px) { .offer--start { margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); } }
@media (min-width: 760px) {
  .offers { grid-template-columns: repeat(2, 1fr); }
  .offer { padding: 32px 28px 32px; border-top: 0; border-left: 1px solid var(--line); }
  .offer:nth-child(2n + 1) { border-left: 0; }
  .offer:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .offer:nth-child(1) { padding-left: 24px; }
  .offer:nth-child(3) { padding-left: 0; }
}
@media (min-width: 1200px) {
  .offers { grid-template-columns: repeat(4, 1fr); }
  .offer { padding: 32px 24px 28px; }
  .offer:nth-child(n + 3) { border-top: 0; }
  .offer:nth-child(2n + 1) { border-left: 1px solid var(--line); }
  .offer:first-child { border-left: 0; padding-left: 24px; }
  .offer:nth-child(3) { padding-left: 24px; }
  .offer:last-child { padding-right: 0; }
}

.notice { padding: 22px 24px; border-radius: 14px; border: 1px solid rgba(127, 182, 133, 0.35); background: rgba(127, 182, 133, 0.06); }
.notice--error { border-color: rgba(212, 113, 78, 0.45); background: var(--accent-wash); }
.notice__title { display: flex; align-items: center; gap: 10px; font: 590 17px/1.3 var(--sans); color: var(--ink-1); }
.notice .dot { background: var(--ok); }
.status { display: flex; align-items: center; gap: 8px; }
.status .dot { background: var(--ok); box-shadow: 0 0 0 3px rgba(127, 182, 133, 0.18); }

.book-row { display: grid; grid-template-columns: 1fr; gap: 24px; align-items: center; }
.book-row__art { justify-self: start; }
@media (min-width: 760px) { .book-row { grid-template-columns: 260px 1fr; gap: 56px; } .book-row__art { justify-self: center; } }
@media (max-width: 559px) {
  .doc__opt { grid-template-columns: 22px 1fr; row-gap: 6px; }
  .doc__opt em { grid-column: 2; }
}

/* ---------- homepage ---------- */
.hero__row { align-items: end; }
.hero__news { padding-bottom: 12px; }
@media (min-width: 960px) { .hero__news { justify-self: end; text-align: right; } }

.figs--art .fig__art { height: 300px; min-height: 0; margin-bottom: 24px; }
.fig--link { color: inherit; transition: background-color 0.3s var(--ease); }
.fig--link:hover .fig__link { color: var(--ink-1); }
.fig--link:hover .fig__link .arr { transform: translateX(2px); }
.fig--link:hover .mini { border-color: var(--line-3); transform: translateY(-2px); }
.mini { width: 100%; max-width: 360px; transition: border-color 0.3s var(--ease), transform 0.4s var(--ease); }
.mini__body { padding: 18px 18px 20px; display: grid; gap: 8px; }
.mini__q { font: 510 16px/1.3 var(--sans); letter-spacing: -0.016em; color: var(--ink-1); margin-bottom: 6px; text-wrap: balance; }
.mini .doc__opt { padding: 8px 10px; font-size: 13px; grid-template-columns: 18px 1fr auto; }
.mini__flag { font: 400 11px/1.4 var(--mono); text-transform: uppercase; letter-spacing: 0.04em; color: var(--no); margin-bottom: 4px; }
.checklist { display: grid; }
.checklist li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 7px 0; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-2); }
.st { font: 400 10px/1 var(--mono); font-style: normal; text-transform: uppercase; letter-spacing: 0.05em; padding: 4px 7px; border-radius: 999px; border: 1px solid; flex: none; }
.st--fix { color: #f08a72; border-color: rgba(240, 138, 114, 0.4); background: rgba(240, 138, 114, 0.08); }
.st--weak { color: #e3b866; border-color: rgba(227, 184, 102, 0.4); background: rgba(227, 184, 102, 0.07); }
.st--ok { color: var(--ok); border-color: rgba(127, 182, 133, 0.4); background: rgba(127, 182, 133, 0.07); }

.statement { font-size: clamp(28px, 3.4vw, 48px); line-height: 1.12; max-width: 24em; }

.split--book { align-items: center; }
.book-feature { display: flex; justify-content: center; }
.book-quote blockquote p { font: italic 400 19px/1.5 var(--serif); color: var(--ink-2); max-width: 30em; }
.book-quote { padding-left: 20px; border-left: 1px solid var(--line-2); }

.row__title .pill { margin-left: 8px; vertical-align: 2px; }
@media (min-width: 760px) { .row--ladder { grid-template-columns: 1fr 1.6fr 170px 20px; } }

.tq blockquote p { font-size: 16px; }
.clamp { display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.clamp.is-open { display: block; -webkit-line-clamp: unset; overflow: visible; }
.tq__more { margin-top: 10px; font: 510 13px/1 var(--sans); color: var(--ink-3); padding: 4px 0; }
.tq__more:hover { color: var(--ink-1); }
.tq footer .role { display: block; }

.catalogue { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); }
.catalogue li { border-bottom: 1px solid var(--line); }
.catalogue a { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 13px 16px 13px 0; font-size: 15px; color: var(--ink-2); transition: color 0.2s var(--ease); }
.catalogue a:hover { color: var(--ink-1); }
.catalogue a span { font: 400 11px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-4); }
.catalogue li:nth-child(2n) a { padding-left: 16px; padding-right: 0; }
.catalogue li:nth-child(2n) { border-left: 1px solid var(--line); }

.reqres { display: block; color: inherit; transition: border-color 0.3s var(--ease); }
.reqres:hover { border-color: var(--line-3); }
.reqres:hover .tlink { color: var(--ink-1); }
.reqres__foot { display: flex; justify-content: space-between; align-items: end; gap: 16px; padding: 18px 22px 20px; border-top: 1px solid var(--line); }
.reqres__stat { font: 510 34px/1 var(--sans); letter-spacing: -0.03em; color: var(--ink-1); margin-bottom: 8px; }

.latest { display: flex; flex-direction: column; margin-top: 16px; padding: 24px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.latest__title { font: 510 clamp(22px, 2.2vw, 30px)/1.2 var(--sans); letter-spacing: -0.024em; color: var(--ink-1); text-wrap: balance; }
.latest__desc { font-family: var(--serif); font-size: 16px; line-height: 1.55; color: var(--ink-3); margin-top: 12px; max-width: 34em; }
.latest:hover .tlink { color: var(--ink-1); }
.section--art { padding-top: clamp(8px, 2vw, 24px); }
.logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px 40px; }
.logos a { height: 30px; justify-content: flex-start; }
.logos img { height: 22px; max-height: none; width: auto; }
.logos img.tall { height: 28px; }
@media (max-width: 639px) { .logos { justify-content: flex-start; gap: 28px 32px; } .logos img { height: 18px; } .logos img.tall { height: 24px; } }
@media (max-width: 759px) {
  .row--ladder .arr { display: none; }
  .figs--art .fig__art { height: 260px; }
  .qgrid--scroll {
    display: grid; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 86%; gap: 10px;
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    border-top: 0; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter);
  }
  .qgrid--scroll::-webkit-scrollbar { display: none; }
  .qgrid--scroll > * { scroll-snap-align: start; border: 1px solid var(--line); border-radius: 12px; padding: 22px; background: rgba(255, 255, 255, 0.015); }
}

/* ---------- book page ---------- */
.book-hero .split--book { align-items: center; }
@media (min-width: 960px) { .book-hero .split--book { grid-template-columns: 1.15fr 0.85fr; } }
.mono-link { color: var(--ink-3); text-decoration: underline; text-decoration-color: var(--line-3); text-underline-offset: 3px; transition: color 0.2s var(--ease); }
.mono-link:hover { color: var(--ink-1); }
.icon-link { display: inline-flex; vertical-align: -2px; margin-left: 8px; color: var(--ink-3); transition: color 0.2s var(--ease); }
.icon-link:hover { color: var(--ink-1); }

.quotes--even { grid-template-columns: 1fr; }
@media (min-width: 900px) { .quotes--even { grid-template-columns: 1fr 1fr; } }
.qcard__stars { display: flex; align-items: center; gap: 10px; font-size: 14px; letter-spacing: 0.08em; }
.qcard__src { font: 400 11px/1 var(--mono); letter-spacing: 0.05em; text-transform: uppercase; opacity: 0.72; }

.strip { display: grid; grid-template-columns: 1fr; gap: 16px; align-items: center; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.strip__text { font-size: 16px; color: var(--ink-3); }
@media (min-width: 900px) { .strip { grid-template-columns: 1fr minmax(380px, 520px); gap: 32px; } }

.beats { display: grid; gap: clamp(18px, 2.4vw, 30px); }
.beats p, .beats blockquote { max-width: 19em; }
.beats p, .beats blockquote p {
  font: 510 clamp(24px, 3vw, 42px)/1.16 var(--sans); letter-spacing: -0.028em;
  color: var(--ink-3); transition: color 0.9s cubic-bezier(0.16, 1, 0.3, 1); text-wrap: balance;
}
.js .beats [data-beat] p, .js .beats p[data-beat] { color: #6b6a66; }
.js .beats .is-lit p, .js .beats p.is-lit { color: var(--ink-1); }
.beats__quote { margin-block: clamp(16px, 3vw, 40px); padding-left: clamp(18px, 2vw, 28px); border-left: 2px solid var(--accent); }
.beats__quote p { font: italic 400 clamp(24px, 3vw, 40px)/1.25 var(--serif) !important; letter-spacing: -0.01em !important; }
.beats__resolve { margin-top: clamp(8px, 2vw, 24px); }

.sticky-col { align-self: start; }
@media (min-width: 960px) { .sticky-col { position: sticky; top: calc(var(--nav-h) + 40px); } }
.toc__part { font: 400 12px/1.5 var(--mono); text-transform: uppercase; letter-spacing: 0.05em; color: var(--accent); padding: 28px 0 12px; }
.toc__part:first-child { padding-top: 0; }
.toc .rows { border-top: 1px solid var(--line); }
.toc .row { padding: 16px 0; }
.toc .row__title { font-size: 16px; }
.toc .row__text { font-size: 15px; }
.toc__plus { margin-top: 28px; padding: 22px 24px; border-radius: 12px; border: 1px dashed var(--line-3); }

.kit { border-top: 1px solid var(--line); }
.kit__book { padding: 28px 0; border-bottom: 1px solid var(--line); }
.kit__grid { display: grid; grid-template-columns: 1fr; }
.kit__grid > div { padding: 26px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 760px) {
  .kit__grid { grid-template-columns: repeat(2, 1fr); }
  .kit__grid > div { padding: 28px 28px 28px 0; }
  .kit__grid > div:nth-child(2n) { padding-left: 28px; padding-right: 0; border-left: 1px solid var(--line); }
}
@media (min-width: 1100px) {
  .kit__grid { grid-template-columns: repeat(3, 1fr); }
  .kit__grid > div, .kit__grid > div:nth-child(2n) { padding: 30px 28px 30px 0; border-left: 0; }
  .kit__grid > div:not(:nth-child(3n + 1)) { padding-left: 28px; border-left: 1px solid var(--line); }
  .kit__grid > div:nth-child(3n) { padding-right: 0; }
}

.bigquote blockquote p { font: italic 400 clamp(22px, 2.4vw, 32px)/1.42 var(--serif); color: var(--ink-1); max-width: 34em; text-wrap: pretty; }
.cta-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cta-strip__text { font: 510 19px/1.3 var(--sans); letter-spacing: -0.016em; color: var(--ink-1); }

.chart { padding: clamp(22px, 3vw, 32px); }
.chart__bar { display: flex; height: 44px; border-radius: 8px; overflow: hidden; gap: 3px; }
.chart__bar span { flex: 0 0 var(--w); transform-origin: left; }
.js .chart__bar span { transform: scaleX(0); transition: transform 1.1s cubic-bezier(0.16, 1, 0.3, 1); }
.js .chart.is-drawn .chart__bar span { transform: scaleX(1); }
.js .chart.is-drawn .chart__bar span:nth-child(2) { transition-delay: 0.08s; }
.js .chart.is-drawn .chart__bar span:nth-child(3) { transition-delay: 0.16s; }
.js .chart.is-drawn .chart__bar span:nth-child(4) { transition-delay: 0.24s; }
.js .chart.is-drawn .chart__bar span:nth-child(5) { transition-delay: 0.32s; }
.c1 { background: #d4714e; } .c2 { background: #b85a3a; } .c3 { background: #8b4332; } .c4 { background: #5e3326; } .c5 { background: #3a2a24; }
.chart__legend { margin-top: 26px; display: grid; }
.chart__legend li { display: grid; grid-template-columns: 12px 52px 1fr; gap: 12px; align-items: baseline; padding: 12px 0; border-top: 1px solid var(--line); font-size: 15px; color: var(--ink-2); line-height: 1.45; }
.chart__legend i { width: 10px; height: 10px; border-radius: 3px; display: block; transform: translateY(1px); }
.chart__pct { font: 400 14px/1.45 var(--mono); color: var(--ink-1); }
@media (prefers-reduced-motion: reduce) { .js .chart__bar span { transform: none; transition: none; } }

.excerpt { max-width: 38em; }
.excerpt p { font: 400 18px/1.7 var(--serif); color: var(--ink-2); }
.excerpt p + p { margin-top: 1.1em; }
.excerpt__pull { margin-block: 1.6em !important; padding-left: 22px; border-left: 2px solid var(--accent); font-style: italic !important; font-size: clamp(20px, 1.9vw, 24px) !important; line-height: 1.5 !important; color: var(--ink-1) !important; }
.excerpt__end { font-weight: 600 !important; color: var(--ink-1) !important; margin-top: 1.6em !important; }
.cta-strip--inline { border-bottom: 0; padding-bottom: 0; }

.levels { position: relative; display: grid; }
.levels::before { content: ""; position: absolute; left: 15px; top: 18px; bottom: 18px; width: 1px; background: linear-gradient(180deg, var(--line-2), rgba(212, 113, 78, 0.6)); }
.levels li { position: relative; display: grid; grid-template-columns: 32px 1fr; gap: 18px; padding: 14px 0; }
.levels__n {
  width: 31px; height: 31px; border-radius: 50%; display: grid; place-items: center; position: relative; z-index: 1;
  font: 400 12px/1 var(--mono); color: var(--ink-1);
  background: color-mix(in srgb, var(--accent) calc(var(--lvl) * 15%), var(--surface-2));
  box-shadow: 0 0 0 1px var(--line-2), 0 0 0 5px var(--bg);
}
.levels__q { font: 510 17px/1.35 var(--sans); letter-spacing: -0.014em; color: var(--ink-1); padding-top: 5px; }
.levels__a { font: 400 16px/1.55 var(--serif); color: var(--ink-3); margin-top: 4px; }

.about .rows { border-top: 1px solid var(--line); }
.about .row { padding: 16px 0; }
.creds { line-height: 1.9; max-width: 52em; }

.videos { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 900px) { .videos { grid-template-columns: 1fr 1fr; } }
.video { aspect-ratio: 16 / 9; }
.video iframe { width: 100%; height: 100%; border: 0; }

.offers--2 { grid-template-columns: 1fr; }
@media (min-width: 760px) {
  .offers--2 { grid-template-columns: 1fr 1fr; }
  .offers--2 .offer { padding: 32px 32px 32px 0; }
  .offers--2 .offer:nth-child(2) { padding: 32px 0 32px 32px; border-left: 1px solid var(--line); }
}
@media (min-width: 1200px) {
  .offers--2 { grid-template-columns: 1fr 1fr; }
  .offers--2 .offer:first-child { border-left: 0; padding-left: 0; }
  .offers--2 .offer:nth-child(2) { padding-left: 32px; }
}
.offers--2 .offer--start { padding-left: 24px; }
@media (min-width: 760px) { .offers--2 .offer--start { padding-left: 32px; padding-right: 32px; } }

.sticky-buy {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  background: rgba(16, 16, 17, 0.97);
  border-top: 1px solid var(--line-2);
  transform: translate3d(0, 110%, 0); transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.sticky-buy.visible { transform: translate3d(0, 0, 0); }
.sticky-buy__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 60px; }
.sticky-buy__text { font-size: 14px; }
.sticky-buy__actions { display: flex; align-items: center; gap: 6px; }
.sticky-buy__close { width: 32px; height: 32px; border-radius: 999px; color: var(--ink-3); font-size: 20px; line-height: 1; }
.sticky-buy__close:hover { color: var(--ink-1); background: rgba(255, 255, 255, 0.06); }
@media (prefers-reduced-motion: reduce) { .sticky-buy { transition: none; } }

.yt { display: block; position: relative; cursor: pointer; }
.yt img { width: 100%; height: 100%; object-fit: cover; opacity: 0.82; transition: opacity 0.3s var(--ease), transform 0.6s var(--ease); }
.yt:hover img { opacity: 1; transform: scale(1.015); }
.yt__play {
  position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%;
  background: rgba(9, 9, 10, 0.62); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: 0 0 0 1px var(--line-3); transition: transform 0.3s var(--ease), background-color 0.3s var(--ease);
}
.yt__play::after { content: ""; position: absolute; left: 26px; top: 21px; border-left: 16px solid #fff; border-top: 11px solid transparent; border-bottom: 11px solid transparent; }
.yt:hover .yt__play { transform: scale(1.06); background: rgba(212, 113, 78, 0.85); }
.video iframe { position: absolute; inset: 0; }
@media (min-width: 960px) and (max-width: 1199px) {
  .hero__row { grid-template-columns: 1fr; }
  .hero__news { justify-self: start; text-align: left; padding-bottom: 0; }
}

/* ---------- buy page ---------- */
.hero--compact { padding-top: clamp(48px, 7vw, 104px); padding-bottom: clamp(32px, 4vw, 56px); }
.display--sm { font-size: clamp(36px, 4.4vw, 60px); }
.buy-head { display: grid; grid-template-columns: 1fr; gap: 8px; align-items: end; }
.buy-head__book { justify-self: start; }
@media (min-width: 760px) { .buy-head { grid-template-columns: 1fr auto; gap: 48px; } .buy-head__book { justify-self: end; margin-right: 24px; } }

/* ---------- the living cover ---------- */
.is-tilting .book { transition: none; }
.is-tilting:hover .book, a:hover .is-tilting .book { transform: rotateY(-22deg) rotateX(4deg); }
.cover__glare {
  position: absolute; inset: 0; pointer-events: none; z-index: 12;
  background: radial-gradient(circle at var(--glare-x, 50%) var(--glare-y, 35%), rgba(255, 236, 214, 0.32), rgba(255, 236, 214, 0.08) 28%, transparent 55%);
  opacity: var(--glare-o, 0.15);
}
.cover__title {
  background: linear-gradient(105deg, #f5f0eb 32%, #fff8ee 44%, #e8c39c 50%, #fff8ee 56%, #f5f0eb 68%);
  background-size: 280% 100%;
  background-position: var(--foil, 0%) 0;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
@media (prefers-reduced-motion: reduce) { .cover__glare { opacity: 0.12; } .js .c-float > b { animation: none; } }

/* ---------- personality: the brand mark settles into order on hover ---------- */
.brand__mark rect {
  transform-box: fill-box; transform-origin: center;
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), fill 0.45s var(--ease), opacity 0.45s var(--ease);
}
.brand__mark .bm-chaos { transform: translate(0.2px, 0.6px) rotate(-14deg) scale(0.94); opacity: 0.9; }
.brand:hover .bm-chaos, .brand:focus-visible .bm-chaos { transform: none; opacity: 1; fill: #b85a3a; }
@keyframes bm-bump { 0% { transform: scale(1); } 38% { transform: scale(0.8); } 100% { transform: scale(1); } }
.brand:hover .bm-o, .brand:focus-visible .bm-o { animation: bm-bump 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.12s both; }
.brand:hover .bm-o:nth-child(3), .brand:focus-visible .bm-o:nth-child(3) { animation-delay: 0.18s; }
.brand:hover .bm-o:nth-child(4), .brand:focus-visible .bm-o:nth-child(4) { animation-delay: 0.24s; }

/* ---------- personality: the operator prints on arrival (from /journey) ---------- */
.maker-mark { display: inline-flex; align-items: center; gap: 18px; margin-top: 28px; color: inherit; }
.mm-frame { position: relative; display: block; flex: none; }
.maker-mark img { width: 120px; height: 120px; image-rendering: pixelated; display: block; transition: filter 0.35s var(--ease); }
.maker-mark:hover img, .maker-mark:focus-visible img { filter: drop-shadow(0 0 8px rgba(212, 113, 78, 0.5)) brightness(1.08); }
.mm-head { position: absolute; left: -4px; right: -4px; top: 0; height: 2px; background: var(--ink-1); opacity: 0; pointer-events: none; }
.mm-cap { display: flex; flex-direction: column; gap: 7px; font: 400 11px/1.3 var(--mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-4); }
.mm-cap span:first-child { color: var(--ink-3); transition: color 0.2s var(--ease); }
.maker-mark:hover .mm-cap span:first-child { color: var(--ink-1); }
@media (prefers-reduced-motion: no-preference) {
  .js .maker-mark:not(.printed) img { clip-path: inset(0 0 100% 0); }
  .js .maker-mark:not(.printed) .mm-cap span { opacity: 0; }
  .js .maker-mark.printed img { animation: mm-print 1.3s steps(30, end) both; }
  .js .maker-mark.printed .mm-head { animation: mm-sweep 1.3s linear both; }
  .js .maker-mark.printed .mm-cap span { animation: mm-stamp 0.18s steps(2, end) both; }
  .js .maker-mark.printed .mm-cap span:first-child { animation-delay: 1.35s; }
  .js .maker-mark.printed .mm-cap span:last-child { animation-delay: 1.55s; }
}
@keyframes mm-print { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes mm-sweep { 0% { transform: translateY(0); opacity: 0.9; } 94% { opacity: 0.9; } 100% { transform: translateY(118px); opacity: 0; } }
@keyframes mm-stamp { from { opacity: 0; } to { opacity: 1; } }
.reveal-all .maker-mark img { clip-path: none; }
.reveal-all .maker-mark .mm-cap span { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .brand__mark rect { transition: none; } .brand:hover .bm-o { animation: none; } }

/* =====================================================================
   PHYSICAL ARTIFACTS - objects on a desk, not app windows.
   Paper under a dithered lamp, a rubber stamp, a pen mark, a thermal
   receipt hanging on a spring, a phosphor wire, halftone ink.
   ===================================================================== */
:root {
  --tex-grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='p'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.11 0'/></filter><rect width='180' height='180' filter='url(%23p)'/></svg>");
  --tex-grain-ink: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='q'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' seed='7' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.2  0 0 0 0 0.16  0 0 0 0 0.12  0 0 0 0.2 0'/></filter><rect width='180' height='180' filter='url(%23q)'/></svg>");
  --tex-ink: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='i'><feTurbulence type='fractalNoise' baseFrequency='1.1' numOctaves='2' seed='4' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  -2.6 0 0 0 2.05'/></filter><rect width='160' height='160' filter='url(%23i)'/></svg>");
  --pen: #e0714a;
  --paper: #ece5da;
  --print: #24201c;
  --phosphor: #9fd6a6;
}

/* ---------- the desk: a WebGL lamp pool, dithered into halftone, spilling past the object ---------- */
.desk { position: relative; isolation: isolate; --spill: clamp(36px, 6vw, 110px); }
.desk > canvas[data-lamp] {
  position: absolute; z-index: -1; pointer-events: none;
  left: calc(var(--spill) * -1); top: calc(var(--spill) * -1);
  width: calc(100% + var(--spill) * 2); height: calc(100% + var(--spill) * 2);
  -webkit-mask-image: radial-gradient(closest-side, #000 62%, transparent);
  mask-image: radial-gradient(closest-side, #000 62%, transparent);
}
.desk > canvas.lamp--css {
  background: radial-gradient(circle, rgba(212, 113, 78, 0.8) 0.9px, transparent 1.4px) 0 0 / 4px 4px;
  -webkit-mask-image: radial-gradient(42% 48% at 84% 20%, #000, transparent 72%);
  mask-image: radial-gradient(42% 48% at 84% 20%, #000, transparent 72%);
}

/* ---------- paper: grain, weight, a lamp's warmth on its surface ---------- */
.sheet {
  position: relative; z-index: 0; border-radius: 2px;
  background: linear-gradient(164deg, rgba(31, 28, 25, 0.95), rgba(19, 18, 18, 0.94) 48%, rgba(13, 13, 14, 0.95));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 1px 2px rgba(0, 0, 0, 0.7), 0 22px 40px -16px rgba(0, 0, 0, 0.8), 0 70px 120px -50px rgba(0, 0, 0, 0.95);
  transform: rotate(var(--tilt, -0.5deg));
  transition: transform 0.9s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.sheet::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; background: var(--tex-grain); opacity: 0.7; }
.sheet__light { position: absolute; inset: 0; z-index: -2; overflow: hidden; border-radius: inherit; pointer-events: none; }
.sheet__light i {
  position: absolute; left: 62%; top: -40%; width: var(--glow, 900px); height: var(--glow, 900px); border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 204, 170, 0.09), rgba(212, 113, 78, 0.045) 45%, transparent);
  will-change: transform;
}
.desk:hover > .sheet, .fig--link:hover .sheet { transform: rotate(calc(var(--tilt, -0.5deg) * 0.2)) translate3d(0, -3px, 0); }
@keyframes sheet-thud {
  0%, 100% { transform: rotate(var(--tilt, -0.5deg)); }
  30% { transform: rotate(calc(var(--tilt, -0.5deg) - 0.35deg)) translate3d(0, 3px, 0) scale(0.996); }
  64% { transform: rotate(calc(var(--tilt, -0.5deg) + 0.1deg)) translate3d(0, -1px, 0); }
}
.js .is-arrived > .sheet { animation: sheet-thud 0.5s cubic-bezier(0.3, 0.6, 0.4, 1) 0.86s; }

/* ---------- the rubber stamp: double rule, distressed ink, thumps on ---------- */
.stamp {
  position: absolute; z-index: 3; pointer-events: none;
  font: 700 12px/1 var(--mono); letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--pen); padding: 8px 8px 7px 12px;
  border: 2px solid currentColor; border-radius: 2px;
  outline: 1px solid currentColor; outline-offset: -6px;
  transform: rotate(-9deg); opacity: 0.88;
  -webkit-mask-image: var(--tex-ink); mask-image: var(--tex-ink);
}
@keyframes stamp-thump {
  0% { opacity: 0; transform: rotate(-3deg) scale(2.2); }
  58% { opacity: 1; transform: rotate(-10deg) scale(0.92); }
  78% { transform: rotate(-8.6deg) scale(1.03); }
  100% { opacity: 0.88; transform: rotate(-9deg) scale(1); }
}
.js [data-arrive]:not(.is-arrived) .stamp { opacity: 0; }
.js .is-arrived .stamp { animation: stamp-thump 0.5s cubic-bezier(0.3, 0, 0.4, 1) 0.6s both; }

/* ---------- the pen: a loop drawn by hand around the pick ---------- */
.pen { position: relative; display: inline-block; }
.pen svg { position: absolute; left: -14px; top: -10px; width: calc(100% + 28px); height: calc(100% + 20px); overflow: visible; pointer-events: none; transform: rotate(-1.5deg); }
.pen path { fill: none; stroke: var(--pen); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.js .pen:not(.is-arrived) path { stroke-dashoffset: 1; opacity: 0; }
.js .pen.is-arrived path { animation: pen-draw 0.95s cubic-bezier(0.6, 0.05, 0.3, 1) var(--pen-delay, 1s) both; }
@keyframes pen-draw { 0% { stroke-dashoffset: 1; opacity: 0; } 2% { opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 1; } }

/* ---------- typeset options and a dot-leader ledger (no boxes, no rules) ---------- */
.opts { display: grid; gap: 2px; }
.opts li { display: grid; grid-template-columns: 24px auto minmax(16px, 1fr) auto; column-gap: 10px; align-items: baseline; padding: 7px 0; font-size: 15px; line-height: 1.45; color: var(--ink-3); }
.opts li::after { content: ""; grid-column: 3; grid-row: 1; border-bottom: 1px dotted rgba(255, 255, 255, 0.16); transform: translateY(-4px); }
.opts b { font: 400 12px/1 var(--mono); color: var(--ink-4); }
.opts em { grid-column: 4; font: italic 400 14px/1.3 var(--serif); color: var(--ink-4); white-space: nowrap; }
.opts .is-pick { color: var(--ink-1); }
.opts .is-pick em { font: 400 11px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--pen); }
.ledger { display: grid; gap: 14px; align-content: start; }
.ledger div { display: flex; align-items: baseline; gap: 10px; }
.ledger dt { flex: 1 0 auto; display: flex; align-items: baseline; gap: 10px; font: 400 11px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-4); white-space: nowrap; }
.ledger dt::after { content: ""; flex: 1; min-width: 12px; border-bottom: 1px dotted rgba(255, 255, 255, 0.22); }
.ledger dd { flex: 0 1 auto; max-width: 64%; font-size: 14px; line-height: 1.4; color: var(--ink-2); text-align: right; text-wrap: pretty; }

/* ---------- the Decision Review, as a sheet on the desk ---------- */
.review { padding: clamp(28px, 3.6vw, 56px) clamp(22px, 3.8vw, 60px) clamp(30px, 3.6vw, 52px); }
.review .stamp { top: clamp(22px, 2.6vw, 36px); right: clamp(18px, 2.8vw, 40px); }
.review__q { font: 510 clamp(22px, 2.4vw, 32px)/1.18 var(--sans); letter-spacing: -0.024em; color: var(--ink-1); max-width: 21em; padding-right: 130px; text-wrap: balance; }
.review__grid { display: grid; gap: 34px 64px; }
.review .doc__h { margin-top: 26px; }
@media (min-width: 900px) { .review__grid { grid-template-columns: minmax(0, 1fr) 320px; } .review__grid .ledger { margin-top: 30px; } }
@media (max-width: 599px) {
  .review__q { padding-right: 0; margin-top: 46px; }
  .opts li { grid-template-columns: 22px 1fr; row-gap: 4px; }
  .opts li::after { display: none; }
  .opts em { grid-column: 2; }
  .opts .is-pick em { margin-top: 10px; }
}

/* homepage: a smaller sheet, more askew */
.desk--mini { width: 100%; max-width: 340px; --spill: 46px; }
.desk--mini .sheet { --tilt: -1.8deg; --glow: 520px; padding: 22px 20px 14px; }
.desk--mini .stamp { top: 15px; right: 12px; font-size: 10px; padding: 6px 6px 5px 9px; letter-spacing: 0.22em; outline-offset: -5px; }
.desk--mini .review__q { font-size: 16px; line-height: 1.3; padding-right: 76px; margin: 0 0 12px; }
.desk--mini .opts li { font-size: 13px; padding: 5px 0; grid-template-columns: 16px auto minmax(8px, 1fr) auto; column-gap: 8px; }
.desk--mini .opts li::after { transform: translateY(-3px); }
.desk--mini .pen svg { left: -10px; top: -8px; width: calc(100% + 20px); height: calc(100% + 16px); }

/* ---------- the receipt (Thetis): thermal paper fed from a slot, hanging on a spring ---------- */
.fig__art--hang { place-items: start center; }
.printer { position: relative; width: 266px; max-width: 100%; padding-top: 6px; }
.printer__slot { position: relative; z-index: 2; height: 14px; border-radius: 3px 3px 2px 2px; background: linear-gradient(#262628, #121213 55%, #060606); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09), 0 10px 18px -6px rgba(0, 0, 0, 0.9); }
.printer__slot::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 3px; height: 3px; border-radius: 2px; background: #000; box-shadow: 0 1px 0 rgba(255, 255, 255, 0.07); }
.printer__hang { position: relative; z-index: 1; width: 238px; max-width: calc(100% - 28px); margin: -5px auto 0; transform-origin: 50% 0; filter: drop-shadow(0 16px 14px rgba(0, 0, 0, 0.55)); will-change: transform; }
.printer__feed { overflow: hidden; }
.receipt {
  --z: 5px;
  position: relative; padding: 24px 14px calc(16px + var(--z)); color: var(--print);
  background: var(--tex-grain-ink), linear-gradient(rgba(0, 0, 0, 0.16), transparent 20px), var(--paper);
  font: 400 10px/1.65 var(--mono); letter-spacing: 0.03em; text-transform: uppercase;
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(var(--z) * 2) 100%;
  mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(var(--z) * 2) 100%;
}
.receipt__brand { font: 700 15px/1 var(--mono); letter-spacing: 0.34em; text-align: center; padding-left: 0.34em; margin: 2px 0 7px; }
.receipt__sub { text-align: center; }
.receipt__rule { height: 0; border-top: 1px dashed currentColor; opacity: 0.6; margin: 8px 0; }
.receipt__list li { display: flex; align-items: center; gap: 7px; }
.receipt__list li span { flex: 1; min-width: 0; }
.receipt__list b { width: 4ch; font-weight: 400; text-align: right; }
.receipt__list .is-fix b { font-weight: 700; }
.sev { flex: none; width: 21px; height: 8px; background: radial-gradient(circle, var(--print) var(--r), transparent calc(var(--r) + 0.5px)) 0 0 / 3px 3px; }
.sev--fix { --r: 1.45px; }
.sev--weak { --r: 0.95px; }
.sev--ok { --r: 0.5px; }
.receipt__row { display: flex; justify-content: space-between; }
.receipt__row b { font-weight: 700; }
.receipt__joke { margin-top: 9px; text-align: center; font-size: 9px; letter-spacing: 0.08em; opacity: 0.72; }
@keyframes receipt-feed { from { transform: translate3d(0, -101%, 0); } to { transform: none; } }
.js .printer:not(.is-arrived) .receipt { transform: translate3d(0, -101%, 0); }
.js .printer.is-arrived .receipt { animation: receipt-feed 1.7s steps(26, end) 0.25s both; }

/* ---------- the wire (ReqRes): phosphor type on the page, a shadow mask, a packet on the line ---------- */
.wire { position: relative; }
.wire__screen { position: relative; isolation: isolate; padding: 4px 0 2px; }
.wire__screen::before {
  content: ""; position: absolute; inset: -30px -34px; z-index: -1; pointer-events: none;
  background: radial-gradient(circle, rgba(127, 182, 133, 0.17) 0.75px, transparent 1.2px) 0 0 / 3px 3px;
  -webkit-mask-image: radial-gradient(closest-side, #000 25%, transparent); mask-image: radial-gradient(closest-side, #000 25%, transparent);
}
.wire__screen::after {
  content: ""; position: absolute; inset: -6px -12px; pointer-events: none; z-index: 2;
  background: repeating-linear-gradient(to bottom, rgba(9, 9, 10, 0.34) 0 1px, transparent 1px 3px);
}
.wire__roll {
  position: absolute; left: -34px; right: -34px; top: 0; height: 80px; z-index: 1; pointer-events: none;
  background: linear-gradient(rgba(159, 214, 166, 0), rgba(159, 214, 166, 0.05) 55%, rgba(159, 214, 166, 0));
  transform: translate3d(0, -90px, 0); opacity: 0;
}
@keyframes roll { 0% { transform: translate3d(0, -90px, 0); opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { transform: translate3d(0, 380px, 0); opacity: 0; } }
.js .wire.is-arrived .wire__roll { animation: roll 4.8s linear 1.8s 3; }
.wire__req { font: 400 15px/1.4 var(--mono); color: #dff7e2; text-shadow: 0 0 9px rgba(127, 182, 133, 0.4); overflow-wrap: anywhere; }
.wire__req .verb { color: var(--phosphor); margin-right: 10px; }
.wire__line { position: relative; height: 1px; margin: 16px 0 12px; background: linear-gradient(90deg, rgba(127, 182, 133, 0.55), rgba(127, 182, 133, 0.06)); }
.wire__packet { position: absolute; left: 0; top: -3px; width: 7px; height: 7px; border-radius: 50%; background: #d9f7dc; box-shadow: 0 0 10px 2px rgba(127, 182, 133, 0.7); opacity: 0; }
@keyframes packet { 0% { transform: translate3d(0, 0, 0); opacity: 0; } 12% { opacity: 1; } 86% { opacity: 1; } 100% { transform: translate3d(var(--run, 300px), 0, 0); opacity: 0; } }
.is-sending .wire__packet { animation: packet 0.7s cubic-bezier(0.55, 0, 0.25, 1) both; }
.wire__status { font: 400 12px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-4); }
.wire__status b { font-weight: 400; color: var(--phosphor); text-shadow: 0 0 8px rgba(127, 182, 133, 0.45); }
.wire__body { display: block; margin-top: 14px; min-height: calc(8 * 1.75em); font: 400 13px/1.75 var(--mono); color: #b4dcb8; text-shadow: 0 0 7px rgba(127, 182, 133, 0.38); white-space: pre; overflow: hidden; }
.wire__body .k { color: #dff7e2; } .wire__body .s { color: #93d29c; } .wire__body .n { color: #f0fff1; }
.js .wire:not(.is-arrived) .wire__body { visibility: hidden; }
.wire__row { display: block; animation: row-in 0.14s steps(2, end) both; }
@keyframes row-in { from { opacity: 0; } to { opacity: 1; } }
.wire__body .wire__row:last-child::after { content: ""; display: inline-block; width: 0.6em; height: 1.1em; margin-left: 2px; vertical-align: -3px; background: var(--phosphor); box-shadow: 0 0 8px rgba(127, 182, 133, 0.6); animation: blink 1.06s steps(1, end) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.wire__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 18px 24px; margin-top: 30px; }
.wire__actions { display: flex; align-items: center; gap: 24px; }
.wire__again { appearance: none; background: none; border: 0; padding: 10px 0; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; font: 400 12px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.05em; color: var(--phosphor); transition: color 0.2s var(--ease); }
.wire__again:hover { color: #dff7e2; }
.wire__again[aria-busy="true"] { color: var(--ink-4); cursor: progress; }
.wire__again svg { width: 12px; height: 12px; }

/* ---------- the 40% chart, in halftone ink ---------- */
.chart--ink { padding: 0; }
.chart--ink .chart__bar { position: relative; height: 64px; border-radius: 0; gap: 5px; }
.chart--ink .chart__bar span { background: radial-gradient(circle, var(--seg) var(--r), transparent calc(var(--r) + 0.55px)) 0 0 / 4px 4px; }
.chart--ink .c1 { --seg: #e27b56; --r: 1.85px; }
.chart--ink .c2 { --seg: #d4714e; --r: 1.5px; }
.chart--ink .c3 { --seg: #c4643f; --r: 1.18px; }
.chart--ink .c4 { --seg: #b25b3d; --r: 0.9px; }
.chart--ink .c5 { --seg: #a35640; --r: 0.62px; }
.chart--ink .chart__bar::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; mix-blend-mode: color-dodge;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 236, 214, 0.55) 50%, transparent 70%);
  transform: translate3d(-100%, 0, 0);
}
.js .chart--ink.is-drawn .chart__bar::after { animation: shimmer 1.6s cubic-bezier(0.45, 0.05, 0.4, 1) 1.15s both; }
@keyframes shimmer { from { transform: translate3d(-100%, 0, 0); } to { transform: translate3d(100%, 0, 0); } }
.chart--ink .chart__legend i { width: 12px; height: 12px; border-radius: 0; background: radial-gradient(circle, var(--seg) var(--r), transparent calc(var(--r) + 0.55px)) 0 0 / 4px 4px; }
.chart--ink .chart__legend li { border-top: 1px dotted rgba(255, 255, 255, 0.16); }

/* ---------- still and fallback states ---------- */
@media (prefers-reduced-motion: reduce) {
  .sheet, .desk:hover > .sheet, .fig--link:hover .sheet { transition: none; transform: rotate(var(--tilt, -0.5deg)); }
  .js .is-arrived > .sheet, .js .is-arrived .stamp, .js .pen.is-arrived path, .js .printer.is-arrived .receipt,
  .js .wire.is-arrived .wire__roll, .wire__row, .wire__body .wire__row:last-child::after, .js .chart--ink.is-drawn .chart__bar::after { animation: none; }
}
.reveal-all [data-arrive] .stamp { opacity: 0.88; }
.reveal-all .pen path { stroke-dashoffset: 0; }
.reveal-all .printer .receipt { transform: none; }
.reveal-all .wire .wire__body { visibility: visible; }

/* =====================================================================
   WRITING - the archive and long-form posts, set for reading on the dark.
   ===================================================================== */
.d-block { display: block; }

/* archive: a printed table of contents, halftone years, dot leaders */
.latest--lead { margin-top: 20px; }
.latest--lead .archive__date { margin-bottom: 14px; }
.archive { display: grid; gap: 8px 48px; padding-block: 28px; border-top: 1px solid var(--line); }
.archive:first-of-type { border-top: 0; padding-top: 0; }
@media (min-width: 900px) { .archive { grid-template-columns: 220px minmax(0, 1fr); } .archive__year { position: sticky; top: calc(var(--nav-h) + 24px); align-self: start; } }
.archive__year {
  font: 600 clamp(44px, 5.2vw, 76px)/0.9 var(--mono); letter-spacing: -0.04em; color: var(--ink-3);
  background: radial-gradient(circle, var(--ink-2) 1.15px, transparent 1.65px) 0 0 / 4px 4px;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
@media (forced-colors: active) { .archive__year { -webkit-text-fill-color: CanvasText; background: none; } }
.archive__list li a { display: flex; align-items: baseline; gap: 14px; padding: 11px 0; color: var(--ink-2); transition: color 0.2s var(--ease); }
.archive__title { font-size: 17px; line-height: 1.45; letter-spacing: -0.008em; text-wrap: pretty; }
.archive__lead { flex: 1; min-width: 24px; border-bottom: 1px dotted rgba(255, 255, 255, 0.16); transform: translateY(-4px); transition: border-color 0.2s var(--ease); }
.archive__date { flex: none; font: 400 12px/1 var(--mono); letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-4); }
.archive__list li a:hover { color: var(--ink-1); }
.archive__list li a:hover .archive__lead { border-color: rgba(212, 113, 78, 0.6); }
.archive__list li a:hover .archive__date { color: var(--accent); }
.latest .archive__date { display: block; }

/* the post */
.post__head { padding-top: clamp(56px, 8vw, 120px); padding-bottom: clamp(32px, 4vw, 56px); }
.post__head > * { max-width: 700px; margin-inline: auto; }
.post__meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.post__meta a { color: var(--ink-3); transition: color 0.2s var(--ease); }
.post__meta a:hover { color: var(--ink-1); }
.post__title { margin-top: 22px; font: 510 clamp(34px, 4.6vw, 58px)/1.06 var(--sans); letter-spacing: -0.032em; color: var(--ink-1); text-wrap: balance; }
.post__byline { display: flex; align-items: center; gap: 14px; margin-top: 30px; font-size: 14px; line-height: 1.5; color: var(--ink-3); }
.post__byline img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none; filter: grayscale(0.2); }
.post__byline a:hover { color: var(--ink-1); }

.article { max-width: 700px; margin-inline: auto; padding-bottom: clamp(56px, 7vw, 104px); font: 400 18px/1.75 var(--serif); color: var(--ink-2); text-wrap: pretty; overflow-wrap: break-word; }
@media (min-width: 900px) { .article { font-size: 19px; } }
.article > * + * { margin-top: 1.15em; }
.article h1, .article h2, .article h3, .article h4 { font-family: var(--sans); font-weight: 510; color: var(--ink-1); text-wrap: balance; scroll-margin-top: calc(var(--nav-h) + 16px); }
.article h1, .article h2 { font-size: clamp(25px, 2.4vw, 30px); line-height: 1.2; letter-spacing: -0.024em; margin-top: 2.1em; }
.article h3 { font-size: clamp(20px, 1.8vw, 23px); line-height: 1.3; letter-spacing: -0.016em; margin-top: 1.9em; }
.article h4 { font-size: 17px; letter-spacing: -0.01em; margin-top: 1.8em; }
.article h2 + *, .article h3 + *, .article h4 + * { margin-top: 0.7em; }
.article a { color: var(--ink-1); text-decoration: underline; text-decoration-color: rgba(212, 113, 78, 0.55); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: text-decoration-color 0.2s var(--ease), color 0.2s var(--ease); }
.article a:hover { color: #fff; text-decoration-color: var(--accent); }
.article strong, .article b { color: var(--ink-1); font-weight: 600; }
.article em, .article i { font-style: italic; }
.article ul, .article ol { padding-left: 1.4em; }
.article li + li { margin-top: 0.45em; }
.article ul > li { position: relative; list-style: none; }
.article ul > li::before { content: ""; position: absolute; left: -1.05em; top: 0.72em; width: 5px; height: 5px; background: var(--accent); }
.article ol { list-style: decimal; }
.article ol > li::marker { font: 400 0.8em var(--mono); color: var(--accent); }
.article blockquote { padding-left: 22px; border-left: 1px solid var(--accent-3); color: var(--ink-2); font-style: italic; }
.article blockquote p + p { margin-top: 0.8em; }
.article hr { border: 0; height: 0; border-top: 1px dotted var(--line-3); margin-block: 2.6em; }
.article img, .article video { display: block; max-width: 100%; height: auto; margin-inline: auto; border-radius: 2px; }
.article p > img, .article > img, .article figure { margin-block: 2em; }
.article iframe { display: block; max-width: 100%; margin: 2em auto; border: 0; border-radius: 2px; }
.article figcaption, .article .figcaption_hack { display: block; margin-top: 0.8em; font: 400 12px/1.5 var(--mono); letter-spacing: 0.02em; color: var(--ink-4); text-align: center; }
.article table { display: block; width: 100%; overflow-x: auto; border-collapse: collapse; font: 400 15px/1.5 var(--sans); }
.article th { text-align: left; font: 400 11px/1.3 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-4); padding: 10px 16px 10px 0; border-bottom: 1px solid var(--line-2); }
.article td { padding: 12px 16px 12px 0; border-bottom: 1px dotted var(--line-2); color: var(--ink-2); vertical-align: top; }
.article :not(pre) > code { font: 400 0.84em/1 var(--mono); padding: 0.18em 0.38em; border-radius: 2px; background: rgba(255, 255, 255, 0.07); color: var(--ink-1); overflow-wrap: anywhere; }
.article pre { margin-block: 1.8em; padding: 20px 22px; border-radius: 2px; background: #111112; box-shadow: inset 0 0 0 1px var(--line); overflow-x: auto; font: 400 14px/1.7 var(--mono); color: #d4d3cf; tab-size: 2; -webkit-overflow-scrolling: touch; }
.article pre code { font: inherit; background: none; padding: 0; color: inherit; white-space: pre; }
@media (max-width: 599px) { .article pre { margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); border-radius: 0; box-shadow: none; } }
/* syntax: the site palette - terracotta keywords, phosphor strings */
.article .token.comment, .article .token.prolog, .article .token.doctype, .article .token.cdata { color: var(--ink-4); font-style: italic; }
.article .token.punctuation, .article .token.operator { color: var(--ink-3); }
.article .token.keyword, .article .token.tag, .article .token.selector, .article .token.important, .article .token.atrule { color: #e0855f; }
.article .token.string, .article .token.char, .article .token.attr-value, .article .token.regex, .article .token.inserted { color: #9fd6a6; }
.article .token.function, .article .token.class-name, .article .token.attr-name, .article .token.builtin { color: #e8c483; }
.article .token.number, .article .token.boolean, .article .token.constant, .article .token.symbol { color: #8fc0d8; }
.article .token.property, .article .token.variable, .article .token.parameter { color: #c9b8ec; }
.article .token.deleted { color: #f08a72; }
/* leftovers from the 2013-era posts */
.article .post-attention { padding-left: 22px; border-left: 1px solid var(--accent); }
.article .aligncenter { margin-inline: auto; }

/* after the post: the free chapter, the book, the pager */
.post__after { display: grid; gap: 56px; }
@media (min-width: 900px) { .post__after { grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; } }
.signup .prose { max-width: 34em; }
.post__plug { display: block; color: inherit; }
.post__plug--book { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: center; }
@media (min-width: 600px) { .post__plug--book { grid-template-columns: 170px 1fr; } }
.post__book { display: grid; place-items: center; min-height: 220px; }
.post__plug--book:hover .tlink { color: var(--ink-1); }
.post__nav { padding-bottom: clamp(56px, 7vw, 104px); }
.post__pager { display: grid; gap: 0; grid-template-columns: 1fr; }
@media (min-width: 700px) { .post__pager { grid-template-columns: 1fr 1fr; gap: 48px; } }
.post__pg { display: flex; flex-direction: column; gap: 12px; padding: 22px 0; border-top: 1px solid var(--line); color: var(--ink-2); transition: color 0.2s var(--ease); }
.post__pg--next { text-align: right; align-items: flex-end; }
.post__pg-title { font: 510 clamp(18px, 1.6vw, 21px)/1.3 var(--sans); letter-spacing: -0.014em; text-wrap: balance; }
.post__pg:hover { color: var(--ink-1); }
@media (max-width: 699px) { .post__pg--next { text-align: left; align-items: flex-start; } }

/* 404: an empty desk under the lamp; thank-you: the order prints out */
.lost, .thanks { display: grid; gap: 56px; align-items: center; }
@media (min-width: 900px) { .lost { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 80px; } .thanks { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 80px; align-items: start; } }
.lost__desk { width: 100%; max-width: 440px; justify-self: center; --spill: 70px; }
.lost__sheet { --tilt: 2.2deg; --glow: 640px; aspect-ratio: 4 / 3.2; display: grid; place-items: center; }
.lost__sheet .stamp { position: relative; inset: auto; font-size: 20px; padding: 12px 12px 10px 18px; outline-offset: -8px; border-width: 3px; }
.thanks__receipt { display: grid; justify-items: center; }
.thanks__receipt .receipt__row b { text-align: right; }

/* =====================================================================
   PROOF ON THE DESK - client logos as entry stamps; testimonials as
   card stock and a pile of notes you can flick through.
   ===================================================================== */
.visas { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 26px 18px; padding-block: 10px; }
.visa {
  --ink: rgba(239, 233, 224, 0.58);
  position: relative; display: grid; place-items: center; padding: 15px 19px;
  color: var(--ink); border: 2px solid currentColor; border-radius: 3px;
  outline: 1px solid currentColor; outline-offset: -6px;
  -webkit-mask-image: var(--tex-ink); mask-image: var(--tex-ink);
  -webkit-mask-size: 160px; mask-size: 160px;
  -webkit-mask-position: calc(var(--i, 0) * 37px) calc(var(--i, 0) * 23px); mask-position: calc(var(--i, 0) * 37px) calc(var(--i, 0) * 23px);
  transform: translateY(var(--y, 0px)) rotate(var(--r, 0deg));
  transition: color 0.25s var(--ease);
}
.visa--round { border-radius: 16px; border-width: 2.5px; outline: 0; padding: 16px 22px; }
.visa--oval { border-radius: 50%; padding: 19px 30px; outline-offset: -5px; }
.visa__logo { display: block; max-width: 100%; background: currentColor; -webkit-mask: var(--logo) center / contain no-repeat; mask: var(--logo) center / contain no-repeat; }
.visa--empty { --ink: var(--ink-4); border-style: dashed; border-width: 1.5px; outline: 0; padding: 17px 20px; font: 400 11px/1.3 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; -webkit-mask-image: none; mask-image: none; }
.visa:hover, .visa:focus-visible { --ink: var(--accent); }
.visa--empty:hover, .visa--empty:focus-visible { border-style: solid; }
@keyframes visa-thump {
  0% { opacity: 0; transform: translateY(var(--y, 0px)) rotate(calc(var(--r, 0deg) + 7deg)) scale(1.9); }
  55% { opacity: 1; transform: translateY(var(--y, 0px)) rotate(calc(var(--r, 0deg) - 1deg)) scale(0.93); }
  78% { transform: translateY(var(--y, 0px)) rotate(calc(var(--r, 0deg) + 0.4deg)) scale(1.02); }
  100% { opacity: 1; transform: translateY(var(--y, 0px)) rotate(var(--r, 0deg)) scale(1); }
}
@keyframes visa-restamp {
  0% { transform: translateY(var(--y, 0px)) rotate(var(--r, 0deg)) scale(1); }
  35% { transform: translateY(calc(var(--y, 0px) - 7px)) rotate(calc(var(--r, 0deg) + 3deg)) scale(1.12); }
  68% { transform: translateY(var(--y, 0px)) rotate(calc(var(--r, 0deg) - 1deg)) scale(0.95); }
  100% { transform: translateY(var(--y, 0px)) rotate(var(--r, 0deg)) scale(1); }
}
.js .visas:not(.is-arrived) .visa { opacity: 0; }
.js .visas.is-arrived:not(.is-settled) .visa { animation: visa-thump 0.46s cubic-bezier(0.3, 0, 0.4, 1) calc(0.1s + var(--i, 0) * 0.13s) both; }
@media (hover: hover) { .visas.is-settled .visa:hover { animation: visa-restamp 0.42s cubic-bezier(0.3, 0, 0.4, 1); } }
@media (max-width: 639px) { .visas { justify-content: center; gap: 22px 14px; } }

/* halftone portraits: printed, until you look closer */
.face { position: relative; display: inline-block; flex: none; border-radius: 50%; overflow: hidden; line-height: 0; }
.face > img { transition: opacity 0.35s var(--ease); }
.face > canvas { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity 0.35s var(--ease); }
.face.is-printed > img { opacity: 0; }
.qcard:hover .face > img, .note:hover .face > img { opacity: 1; }
.qcard:hover .face > canvas, .note:hover .face > canvas { opacity: 0; }

/* the featured pair: card stock with weight, laid on the desk */
.qcard { border-radius: 2px; position: relative; isolation: isolate; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.45), 0 50px 90px -46px rgba(0, 0, 0, 0.95); transition: rotate 0.8s cubic-bezier(0.34, 1.56, 0.64, 1), translate 0.8s cubic-bezier(0.34, 1.56, 0.64, 1); }
.qcard::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; background: var(--tex-grain-ink); }
.qcard__who img { width: 52px; height: 52px; }
.qcard--accent { --dot: rgba(24, 12, 7, 0.9); }
.qcard--bone { --dot: rgba(36, 32, 28, 0.92); }
@media (min-width: 900px) {
  .quotes .qcard:nth-child(1) { rotate: -0.7deg; }
  .quotes .qcard:nth-child(2) { rotate: 1.2deg; translate: 0 16px; }
  .quotes .qcard:hover { rotate: 0deg; translate: 0 -3px; }
}

/* the pile of notes */
.pile { display: grid; gap: 40px; }
@media (min-width: 1000px) { .pile { grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr); gap: 80px; align-items: center; } .pile.is-spread { grid-template-columns: 1fr; align-items: start; } }
.pile__intro .small { max-width: 30em; }
.pile__ctrl { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.js .pile__ctrl { display: flex; }
.pile__ctrl { display: none; }
.pile__next { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: 999px; background: var(--ink-1); color: #0b0b0c; font: 510 14px/1 var(--sans); transition: background 0.2s var(--ease); }
.pile__next:hover { background: #fff; }
.pile__count { font: 400 12px/1 var(--mono); letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-4); }
.pile__count span:first-child { color: var(--ink-1); }
.pile__spread { font: 400 12px/1 var(--mono); letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-3); padding: 10px 0; text-decoration: underline dotted rgba(255, 255, 255, 0.3); text-underline-offset: 4px; }
.pile__spread:hover { color: var(--ink-1); }
.pile.is-spread .pile__next, .pile.is-spread .pile__count { display: none; }
.pile__deck { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); align-items: start; }
.note {
  --dot: rgba(239, 233, 224, 0.86);
  position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
  padding: clamp(24px, 3vw, 36px); border-radius: 2px;
  background: linear-gradient(164deg, #1d1a18, #141414 50%, #101011);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 1px 2px rgba(0, 0, 0, 0.6), 0 26px 50px -24px rgba(0, 0, 0, 0.85);
}
.note::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; background: var(--tex-grain); opacity: 0.7; }
.note blockquote p { font: 400 17px/1.62 var(--serif); color: var(--ink-2); text-wrap: pretty; }
.note .clamp { -webkit-line-clamp: 9; }
.note figcaption { display: flex; align-items: center; gap: 14px; }
.note .tq__more { align-self: flex-start; margin-top: -8px; }
.note__face { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.note cite { display: block; font: 510 14px/1.3 var(--sans); font-style: normal; color: var(--ink-1); }
.note .role { display: block; font-size: 13px; color: var(--ink-3); }
.js .pile:not(.is-spread) .pile__deck { grid-template-columns: minmax(0, 1fr); align-items: stretch; }
.js .pile:not(.is-spread) .note { grid-area: 1 / 1; rotate: var(--r); touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; }
.js .pile:not(.is-spread) .note.is-top { rotate: calc(var(--r) * 0.35); }
.js .pile:not(.is-spread) .note:active { cursor: grabbing; }
.js .pile:not(.is-spread) .note:not(.is-top) > * { visibility: hidden; }
@media (max-width: 599px) { .note blockquote p { font-size: 16px; } }
@media (prefers-reduced-motion: reduce) {
  .js .visas.is-arrived:not(.is-settled) .visa, .visas.is-settled .visa:hover { animation: none; }
  .js .visas .visa { opacity: 1; }
  .qcard { transition: none; }
}
.reveal-all .visas .visa { opacity: 1; }
.js .pile:not(.is-spread) .note.is-flying > * { visibility: visible; }
.pile.is-spread .note { rotate: calc(var(--r) * 0.3); }
