/* Layout: Circle-style sidebar + one scrolling main column. Module frames are
   fixed 1600×900 stages scaled by --s, so every frame keeps slide proportions. */
:root {
  --paper: #e4ddcb;
  --paper-2: #ece6d7;
  --paper-3: #f6f1e5;
  --card: #fbf8f1;
  --ink: #221f1c;
  --ink-2: #4b453e;
  --ink-3: #7d7366;
  --rule: #d2c9b5;
  --brick: #93593e;
  --mustard: #d6b63b;
  --mustard-ink: #a5871f;
  --slate: #55626e;
  --blue: #4b5fae;
  --sand: #a39274; /* palette name for Dillard's pond colour (was a hex in the module) */
  --green: #2c6b45;
  --purple: #7a4f9a;
  --night: #121115;

  --display: 'Cormorant Garamond', 'EB Garamond', Georgia, serif;
  --serif: 'EB Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Lato', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --caps: 'Varela Round', 'Lato', system-ui, sans-serif;
  --ease: cubic-bezier(.2, .75, .15, 1);
  --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .14 0 0 0 0 .12 0 0 0 0 .1 0 0 0 .5 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--paper-2); color: var(--ink); font: 15px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: inherit; }
img { max-width: 100%; display: block; }
a { color: inherit; }
kbd { font: 600 11px/1 var(--sans); padding: 3px 5px; border-radius: 4px; border: 1px solid currentColor; opacity: .6; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
.eyebrow { font: 13px/1.3 var(--caps); letter-spacing: .22em; text-transform: uppercase; color: var(--brick); }
.muted { color: var(--ink-3); }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--rule); background: var(--card); font: 600 13px/1 var(--sans); text-decoration: none; white-space: nowrap; transition: background .2s, border-color .2s; }
.btn:hover { border-color: var(--ink-3); }
.btn-dark { background: var(--ink); color: var(--paper-3); border-color: var(--ink); }
.btn-dark:hover { background: #000; }
.btn-dark kbd { border-color: var(--paper-3); }

/* ---------- shell ---------- */
.app { display: grid; grid-template-columns: 248px minmax(0, 1fr); height: 100%; transition: grid-template-columns .32s var(--ease); }
.topbar { display: none; }
.side { background: var(--card); border-right: 1px solid var(--rule); overflow: hidden auto; display: flex; flex-direction: column; padding: 18px 12px 12px; gap: 4px; white-space: nowrap; }
.sb-brand { display: flex; gap: 10px; align-items: center; padding: 4px 0 14px 8px; }
.sb-mark { width: 34px; height: 34px; border-radius: 9px; background: var(--ink); color: var(--paper-3); display: grid; place-items: center; font: 600 22px/1 var(--display); flex: none; }
.sb-name { min-width: 0; }
.sb-brand b { display: block; font: 600 16px/1.1 var(--sans); }
.sb-brand small { color: var(--ink-3); font-size: 12px; }
.sb-toggle { margin-left: auto; width: 36px; height: 36px; border-radius: 8px; display: grid; place-items: center; color: var(--ink-2); flex: none; transition: background .15s; }
.sb-toggle:hover { background: var(--paper-2); }
.sb-toggle svg, .tb-menu svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.sb-nav { display: flex; flex-direction: column; gap: 1px; }
.sb-group { font: 600 11px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); padding: 18px 10px 8px; }
.sb-item { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 8px; color: var(--ink-2); font-weight: 500; text-decoration: none; transition: background .15s; }
.sb-item svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.sb-item:hover { background: var(--paper-2); }
.sb-item.on { background: var(--ink); color: var(--paper-3); }
/* Rows that leave the prototype for the live site show a small arrow on hover. */
.sb-ext { margin-left: auto; display: grid; opacity: 0; transition: opacity .15s; color: var(--ink-3); }
.sb-ext svg { width: 15px; height: 15px; stroke-width: 2; }
.sb-item:hover .sb-ext, .sb-item:focus-visible .sb-ext { opacity: 1; }
.sb-me { margin-top: auto; display: flex; gap: 10px; align-items: center; padding: 12px 8px 4px; border-top: 1px solid var(--rule); }
.sb-av { width: 32px; height: 32px; border-radius: 50%; background: var(--brick); color: var(--paper-3); display: grid; place-items: center; font: 700 12px/1 var(--sans); flex: none; }
.sb-me b { display: block; font-size: 14px; }
.sb-me small { color: var(--ink-3); }
/* Collapsed (desktop): an icon rail; the menu button stays where it was. */
@media (min-width: 861px) {
  .nav-collapsed .app { grid-template-columns: 64px minmax(0, 1fr); }
  .nav-collapsed .side { padding-inline: 10px; }
  .nav-collapsed .sb-brand { padding-left: 0; justify-content: center; }
  .nav-collapsed .sb-mark, .nav-collapsed .sb-name, .nav-collapsed .sb-item > span, .nav-collapsed .sb-ext, .nav-collapsed .sb-me > span:not(.sb-av) { display: none; }
  .nav-collapsed .sb-toggle { margin: 0; }
  .nav-collapsed .sb-item { justify-content: center; padding-inline: 0; height: 36px; }
  .nav-collapsed .sb-group { font-size: 0; padding: 0; height: 1px; background: var(--rule); margin: 12px 8px; }
  .nav-collapsed .sb-me { justify-content: center; padding-inline: 0; }
}
.main { overflow-y: auto; overflow-x: hidden; height: 100%; position: relative; }

@media (max-width: 860px) {
  .app { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
  .topbar { display: flex; align-items: center; gap: 10px; padding: 10px max(16px, env(safe-area-inset-right, 0px)) 10px max(16px, env(safe-area-inset-left, 0px)); background: var(--card); border-bottom: 1px solid var(--rule); }
  .side { position: fixed; z-index: 60; inset: 0 auto 0 0; width: 270px; transform: translateX(-100%); transition: transform .3s var(--ease); box-shadow: 0 0 40px rgba(0, 0, 0, .2); }
  .nav-open .side { transform: none; }
}

/* ---------- library and community pages ---------- */
.pagewrap { max-width: 1120px; margin: 0 auto; padding-block: 40px 80px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
@media (min-width: 700px) { .pagewrap { padding-left: 40px; padding-right: 40px; } }
.lib-head h1 { font: 600 clamp(40px, 6vw, 60px)/1 var(--display); margin: 6px 0 10px; text-wrap: balance; }
.lib-head p { max-width: 60ch; color: var(--ink-2); font: 19px/1.5 var(--serif); margin: 0; }
.lib-bar { display: flex; gap: 6px; margin: 28px 0 18px; border-bottom: 1px solid var(--rule); flex-wrap: wrap; }
.tab { padding: 8px 12px; font-weight: 600; font-size: 14px; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tab.on { border-color: var(--ink); }
.tab em { font-style: normal; color: var(--ink-3); font-weight: 400; }
.lib-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 22px; }
.lc { display: flex; flex-direction: column; border-radius: 14px; background: var(--card); border: 1px solid var(--rule); overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s var(--ease); animation: rise .7s var(--ease) both; animation-delay: calc(var(--i) * 60ms); }
.lc:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -18px rgba(34, 31, 28, .45); }
.lc-img { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--paper); }
.lc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.lc:hover .lc-img img { transform: scale(1.05); }
.lc.draft .lc-img img { filter: saturate(.55); }
.lc.draft { cursor: default; }
.lc.draft:hover { transform: none; box-shadow: none; }
.lc.draft:hover .lc-img img { transform: none; }
.lc-lock { position: absolute; right: 10px; top: 10px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: rgba(251, 248, 241, .92); color: var(--ink-2); }
.lc-lock svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lc-date { position: absolute; left: 10px; top: 10px; background: var(--card); border-radius: 8px; padding: 5px 8px; text-align: center; font: 600 10px/1.1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--brick); }
.lc-date b { display: block; font: 600 20px/1 var(--display); color: var(--ink); letter-spacing: 0; }
.lc-body { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 16px; }
.lc-status { align-self: flex-start; font: 700 10px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; padding: 4px 7px; border-radius: 99px; background: var(--paper-2); color: var(--ink-3); margin-bottom: 4px; }
.lc-status.ready { background: var(--ink); color: var(--mustard); }
.lc-status.staff-draft { background: var(--brick); color: var(--paper-3); }
.lc-w { font: 600 22px/1.15 var(--display); }
.lc-e { font: italic 16px/1.3 var(--serif); color: var(--ink-2); }
.lc-meta { font-size: 12px; color: var(--ink-3); margin-top: 6px; }
.lib-how { margin-top: 56px; padding: 28px; border-radius: 16px; background: var(--paper); }
.lib-how h2 { font: 600 32px/1.1 var(--display); margin: 6px 0 18px; }
.how-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 14px; margin-bottom: 14px; }
.how { background: var(--card); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.how b { font: 600 17px/1.2 var(--sans); }
.how p { margin: 0; color: var(--ink-2); font: 16px/1.45 var(--serif); }
.how-tag { margin-top: auto; align-self: flex-start; font: 12px/1 ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--paper-2); padding: 5px 7px; border-radius: 6px; }
.home-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 20px; margin-top: 28px; }
.home-card { display: flex; flex-direction: column; border-radius: 14px; overflow: hidden; background: var(--card); border: 1px solid var(--rule); }
.home-card img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.home-card span { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; }
.home-card small { color: var(--brick); font-weight: 600; }
.home-card b { font: 600 24px/1.1 var(--display); }
.home-card em { font: italic 17px var(--serif); color: var(--ink-2); }
.ev-list { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-direction: column; gap: 10px; }
.ev-list li { display: flex; align-items: center; gap: 16px; background: var(--card); border: 1px solid var(--rule); border-radius: 12px; padding: 12px 16px; flex-wrap: wrap; }
.ev-list li.past { opacity: .7; }
.ev-date { width: 52px; text-align: center; font: 600 11px/1.1 var(--sans); text-transform: uppercase; color: var(--brick); letter-spacing: .08em; }
.ev-date b { display: block; font: 600 26px/1 var(--display); color: var(--ink); letter-spacing: 0; }
.ev-date.sm svg { width: 22px; height: 22px; fill: none; stroke: var(--ink-3); stroke-width: 1.7; margin: auto; }
.ev-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ev-body small { color: var(--ink-3); }
.ev-body b { font: 600 20px/1.2 var(--display); }
.ev-body em { font: italic 16px var(--serif); color: var(--ink-2); }

/* ---------- walkthrough ---------- */
.walk { --s: .6; }
.mbar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; display: flex; align-items: center; gap: 10px; padding: 10px max(16px, env(safe-area-inset-right, 0px)) 10px max(16px, env(safe-area-inset-left, 0px)); background: color-mix(in srgb, var(--paper-2) 86%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--rule); flex-wrap: wrap; }
.mb-back { font-weight: 600; font-size: 14px; color: var(--ink-2); padding: 6px 8px; border-radius: 8px; }
.mb-back:hover { background: var(--paper); }
.mb-switch { position: relative; min-width: 0; }
.mb-cur { display: flex; align-items: center; gap: 10px; padding: 4px 10px 4px 4px; border-radius: 10px; border: 1px solid var(--rule); background: var(--card); min-width: 0; }
.mb-cur img { width: 52px; height: 30px; object-fit: cover; border-radius: 6px; }
.mb-cur span:not(.caret) { display: flex; flex-direction: column; min-width: 0; }
.mb-cur small { font-size: 11px; color: var(--ink-3); white-space: nowrap; }
.mb-cur b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.caret { color: var(--ink-3); font-size: 12px; }
.mb-menu { position: absolute; top: calc(100% + 8px); left: 0; width: min(380px, calc(100vw - 32px)); max-height: 70vh; overflow-y: auto; background: var(--card); border: 1px solid var(--rule); border-radius: 14px; padding: 6px; box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .35); animation: rise .3s var(--ease); }
.mb-opt { display: flex; gap: 12px; align-items: center; width: 100%; padding: 8px; border-radius: 10px; }
.mb-opt:hover { background: var(--paper-2); }
.mb-opt.cur { background: var(--paper); }
.mb-opt img { width: 72px; height: 41px; object-fit: cover; border-radius: 6px; flex: none; }
.mb-opt span { display: flex; flex-direction: column; min-width: 0; }
.mb-opt small { font-size: 11px; color: var(--ink-3); }
.mb-opt b { font-size: 14px; }
.mb-opt em { font: italic 14px var(--serif); color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mb-nav { display: flex; gap: 2px; }
.mb-nav button { width: 32px; height: 32px; border-radius: 8px; font-size: 20px; line-height: 1; display: grid; place-items: center; color: var(--ink-2); }
.mb-nav button:hover:not(:disabled) { background: var(--paper); }
.mb-nav button:disabled { opacity: .3; cursor: default; }
.mb-spacer { flex: 1; }
.mb-hint { font-size: 12px; color: var(--ink-3); }
@media (max-width: 1640px) { .mb-hint { display: none; } }

.w-body { display: grid; grid-template-columns: minmax(0, 1fr) 210px; gap: 32px; max-width: 1360px; margin: 0 auto; padding: 28px max(16px, env(safe-area-inset-right, 0px)) 120px max(16px, env(safe-area-inset-left, 0px)); }
@media (min-width: 700px) { .w-body { padding-left: 36px; padding-right: 36px; } }
@media (max-width: 1180px) { .w-body { grid-template-columns: minmax(0, 1fr); } .w-rail { display: none; } }
.w-col { min-width: 0; }
.w-rail { position: sticky; top: 84px; align-self: start; display: flex; flex-direction: column; gap: 1px; max-height: calc(100vh - 110px); overflow-y: auto; }
.rl-chap { font: 12px/1.2 var(--caps); letter-spacing: .14em; text-transform: uppercase; color: var(--brick); padding: 14px 0 6px; }
.rl-item { display: flex; align-items: center; gap: 9px; padding: 5px 8px; border-radius: 7px; font-size: 13px; color: var(--ink-2); transition: background .2s; }
.rl-item i { width: 5px; height: 5px; border-radius: 50%; flex: none; display: inline-block; background: var(--ink-3); opacity: .55; transition: background .2s, opacity .2s; }
.rl-item.on i { background: var(--brick); opacity: 1; }
.rl-item:hover { background: var(--paper); }
.rl-item.on { background: var(--card); color: var(--ink); font-weight: 600; box-shadow: inset 2px 0 0 var(--brick); }

.wf { margin-bottom: 72px; }
.wf-pin { position: relative; }
.wf-sticky { position: sticky; }
.sbox { position: relative; width: 100%; max-width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 14px; box-shadow: 0 30px 60px -36px rgba(34, 31, 28, .55), 0 0 0 1px rgba(34, 31, 28, .06); background: var(--paper); }
.wf-note { margin-top: 14px; max-width: 70ch; font: 17px/1.5 var(--serif); color: var(--ink-2); }
.walk .wf:not(.seen) .stage .a { opacity: 0; }

.tmeta { display: flex; gap: 24px; justify-content: space-between; align-items: flex-end; padding: 22px 4px 0; flex-wrap: wrap; }
.tmeta-l { min-width: 0; flex: 1 1 340px; }
.tmeta ul { margin: 8px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 2px; font: 17px/1.4 var(--serif); color: var(--ink-2); }
.tmeta-r { display: flex; flex-direction: column; gap: 12px; align-items: flex-end; }
.tmeta-btns { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 700px) { .tmeta-r { align-items: flex-start; } }

/* reading pages inside the walkthrough */
.page { background: var(--card); border-radius: 14px; border: 1px solid var(--rule); padding: clamp(22px, 5vw, 56px); }
.pg-wrap { max-width: 68ch; margin: 0 auto; }
.prose h3 { font: 600 30px/1.15 var(--display); margin: 0 0 12px; }
.prose h3:not(:first-child) { margin-top: 36px; }
.prose p, .pg-wrap p { font: 19px/1.62 var(--serif); color: var(--ink); margin: 0 0 16px; }
.lede { font: 20px/1.55 var(--serif) !important; color: var(--ink-2) !important; }
.nt-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 16px; margin-top: 18px; }
.pg-wrap:has(.nt-grid) { max-width: 980px; }
.nt-card { background: var(--paper-3); border-radius: 12px; padding: 18px; display: flex; flex-direction: column; gap: 8px; border: 1px solid var(--rule); box-shadow: inset 0 0 0 2px transparent; }
.nt-card p { font-size: 17px !important; margin: 0 !important; }
.nt-top { display: flex; gap: 12px; align-items: center; }
.nt-top img { width: 52px; height: 52px; border-radius: 10px; background: #fff; padding: 4px; border: 2px solid var(--mustard); }
.nt-code { font: 11px/1.2 var(--caps); letter-spacing: .12em; text-transform: uppercase; }
.nt-card h3 { margin: 2px 0 0; font: 600 24px/1 var(--display); }
.nt-q { font-style: italic; color: var(--ink-3) !important; }
.nt-quote { margin-top: auto; text-align: left; font: italic 16px/1.45 var(--serif); padding: 10px 12px; border-left: 3px solid var(--mustard); background: var(--card); border-radius: 0 8px 8px 0; transition: background .2s; }
.nt-quote:hover { background: #fff; }
.tk-list { font: 20px/1.5 var(--serif); padding-left: 1.2em; display: flex; flex-direction: column; gap: 14px; margin: 0 0 24px; }
.pend h3 { font: 600 26px/1.2 var(--display); margin: 24px 0 10px; }
.pend-list { font: 18px/1.55 var(--serif); padding-left: 1.2em; }
.dv { position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 21 / 8; background: var(--ink); max-width: 100%; }
.dv img { position: absolute; inset: -6% 0; width: 100%; height: 112%; object-fit: cover; opacity: .55; }
.dv-text { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(18px, 4vw, 44px); color: var(--paper-3); background: linear-gradient(transparent 30%, rgba(18, 17, 21, .85)); }
.dv-text .eyebrow { color: var(--mustard); }
.dv-text h2 { font: 600 clamp(34px, 5vw, 64px)/1 var(--display); margin: 8px 0; }
.dv-text p { margin: 0; font: italic 19px/1.4 var(--serif); max-width: 50ch; }
@media (max-width: 600px) { .dv { aspect-ratio: 4 / 3; } }

/* ---------- stage base ---------- */
.stage { position: absolute; left: 0; top: 0; width: 1600px; height: 900px; transform-origin: 0 0; transform: scale(var(--s, 1)); background: var(--paper); color: var(--ink); overflow: hidden; font-family: var(--serif); }
.stage::after { content: ""; position: absolute; inset: 0; background-image: var(--grain); opacity: .2; mix-blend-mode: multiply; pointer-events: none; z-index: 40; }
.stage .eyebrow { font-size: 26px; }
.stage h1, .stage h2, .stage h3 { margin: 0; font-weight: 600; text-wrap: balance; }
.stage p { margin: 0; }
.stage img { max-width: none; }

@keyframes rise { from { opacity: 0; transform: translateY(22px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
.enter .a { animation: rise .95s var(--ease) both; animation-delay: calc(var(--i, 0) * 85ms + 60ms); }
.s-intro.enter .a, .s-agenda.enter .a { animation-duration: .38s; animation-delay: calc(var(--i, 0) * 28ms); }
.stage [data-step] { transition: opacity .6s var(--ease), transform .75s var(--ease), filter .6s var(--ease); }
.s-intro [data-step], .s-agenda [data-step] { transition: opacity .26s var(--ease), transform .3s var(--ease), filter .26s var(--ease); }
.stage [data-step].off { opacity: 0; transform: translateY(18px); filter: blur(5px); pointer-events: none; animation: none; }

/* clickable things inside stages */
.fn { display: inline-grid; place-items: center; min-width: 1.25em; height: 1.25em; padding: 0 .25em; margin: 0 .05em 0 .1em; border-radius: 99px; background: var(--ink); color: var(--paper-3); font: 700 .55em/1 var(--sans); vertical-align: super; transition: background .2s, transform .2s; }
.fn:hover { background: var(--brick); transform: scale(1.12); }
.term { border-bottom: 2px dotted var(--brick); text-decoration: none; color: inherit; font: inherit; transition: background .2s; padding: 0 .05em; }
.term:hover { background: rgba(214, 182, 59, .3); }
.chip { display: inline-flex; align-items: center; gap: 6px; font: 600 15px/1 var(--sans); letter-spacing: .02em; padding: 7px 12px; border-radius: 99px; border: 1.5px solid var(--ink); margin-left: 12px; vertical-align: middle; transition: background .2s, color .2s; }
.chip::before { content: "❝"; font-size: 15px; }
.chip:hover { background: var(--ink); color: var(--paper-3); }

/* decorative shapes */
.deco { position: absolute; border-radius: 50%; pointer-events: none; }
.deco-sun { left: -120px; top: -150px; width: 440px; height: 440px; background: var(--mustard); opacity: .9; }
.deco-dot { left: 236px; top: 100px; width: 88px; height: 88px; background: var(--brick); }
.deco-moon { right: -40px; top: 480px; width: 170px; height: 170px; background: var(--slate); }
.deco-blob-br { right: -60px; bottom: -120px; width: 560px; height: 330px; border-radius: 58% 42% 50% 50%; background: var(--brick); opacity: .85; }
.deco-sun-soft { left: -80px; top: -110px; width: 360px; height: 360px; background: var(--mustard); opacity: .35; }
.deco-dot-soft { left: 160px; top: 140px; width: 180px; height: 180px; background: var(--brick); opacity: .25; }
.deco-sun-br { right: 120px; bottom: -160px; width: 420px; height: 300px; background: var(--mustard); opacity: .25; }
.deco-night-bl { left: -120px; bottom: -140px; width: 420px; height: 420px; background: var(--slate); opacity: .9; }
.brush { position: absolute; left: 260px; width: 1000px; height: 26px; }
.brush-top { top: 104px; }
.brush-bot { top: 862px; left: 280px; width: 900px; }

/* ---------- title ---------- */
.s-title { background: #e8e1cf; }
.t-hero { position: absolute; left: 57px; top: 0; width: 1486px; height: 900px; overflow: hidden; }
.t-hero img { width: 100%; height: 100%; object-fit: cover; }
.t-cover { left: 0; width: 1600px; }
.t-box { position: absolute; left: 497px; top: 0; right: 0; min-height: 266px; background: #121112; color: #fbf6ea; border-bottom-left-radius: 44px; padding: 56px 40px 44px 84px; display: flex; flex-direction: column; justify-content: center; }
.t-title { font: 700 72px/1.05 var(--display) !important; letter-spacing: -.005em; }
.t-by { font: 400 66px/1.1 var(--display); margin-top: 4px; }
.t-by em { font-size: 46px; }

/* ---------- syllabus ---------- */
.s-syllabus { background: #e0dac8; padding: 46px 70px; }
.sy-head h2 { font: 400 76px/1 var(--display); margin-top: 6px; }
.sy-head .eyebrow { color: var(--mustard-ink); font-size: 32px; letter-spacing: .14em; }
.sy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 32px; background: #ece5d3; padding: 0 0 0 0; }
.sy-col { display: flex; flex-direction: column; }
.sy-row { display: flex; align-items: center; gap: 30px; padding: 24px 22px; border-bottom: 2px solid #4a443e44; border-radius: 4px; transition: background .25s; position: relative; }
.sy-row.cur { border: 10px solid #c9a94f; border-radius: 22px; padding: 14px 12px; margin: -8px -8px 0; background: #ece5d3; animation: sy-board 2.4s ease-in-out infinite; }
@keyframes sy-board { 0%, 100% { box-shadow: 0 0 0 0 rgba(201, 169, 79, 0); border-color: #c9a94f; } 50% { box-shadow: 0 0 0 8px rgba(201, 169, 79, .45); border-color: #e6cc72; } }
@media (prefers-reduced-motion: reduce) { .sy-row.cur { animation: none; } }
.sy-row:hover { background: #f3eddd; }
.sy-date { width: 80px; display: flex; flex-direction: column; }
.sy-date b { font: 400 44px/1 var(--display); }
.sy-date span { font: 20px/1 var(--caps); letter-spacing: .14em; color: var(--brick); text-transform: uppercase; margin-top: 4px; }
.sy-row img { width: 196px; height: 110px; object-fit: cover; flex: none; }
.sy-txt { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.sy-w { font: 600 32px/1.1 var(--serif); }
.sy-e { font: italic 23px/1.2 var(--serif); color: var(--ink-2); }

/* ---------- bonus: a source's contents in columns ---------- */
.s-index { background: #e6e0cf; }
.ix-img { position: absolute; left: 70px; top: 70px; width: 400px; height: 760px; display: flex; flex-direction: column; gap: 14px; }
.ix-img img { flex: 1; min-height: 0; width: 100%; object-fit: contain; object-position: top; filter: drop-shadow(0 10px 24px rgba(40, 30, 20, .25)); }
.ix-cap { font: italic 17px/1.35 var(--serif); color: var(--ink-2); text-align: center; }
.ix-txt { position: absolute; left: 530px; right: 70px; top: 66px; bottom: 50px; display: flex; flex-direction: column; }
.ix-txt .eyebrow { color: var(--mustard-ink); font-size: 22px; letter-spacing: .14em; }
.ix-txt h2 { font: 400 56px/1.05 var(--display); margin-top: 6px; }
.ix-sub { font: 400 21px/1.4 var(--serif); color: var(--ink-2); margin: 10px 0 0; max-width: 900px; }
.ix-list { display: grid; grid-template-columns: repeat(4, 1fr); margin: 24px 0 0; }
.ix-list ol { list-style: none; padding: 0 17px; margin: 0; }
.ix-list ol:first-child { padding-left: 0; }
.ix-list ol + ol { border-left: 1px solid #4a443e2e; }
.ix-list li { font: 400 17.5px/1.62 var(--serif); color: var(--ink); }
.ix-list li.hit { color: var(--brick); font-weight: 700; }

/* ---------- intro ---------- */
.s-intro { background: #ddd7c5; }
.in-text { position: absolute; left: 80px; top: 300px; }
.in-text h2 { font: 400 72px/1 var(--display); color: var(--ink-2); }
.in-text ol { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-direction: column; gap: 16px; }
.in-text li { font: 400 36px/1.2 var(--sans); display: flex; gap: 32px; }
.in-text li span { color: var(--brick); width: 20px; }
.in-img { position: absolute; right: 74px; top: 80px; width: 806px; height: 740px; border-radius: 22px; overflow: hidden; border: 2px solid var(--ink); }
.in-img img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- agenda ---------- */
.s-agenda { background: #fbfaf7; }
.ag-img { position: absolute; left: 0; top: 0; width: 780px; height: 900px; overflow: hidden; clip-path: polygon(0 0, 100% 0, 89% 100%, 0 100%); }
.ag-img img { width: 100%; height: 100%; object-fit: cover; }
.ag-list { position: absolute; left: 900px; top: 40px; right: 60px; display: flex; flex-direction: column; gap: 12px; }
.ag-list h2 { font: italic 600 46px/1 var(--display); letter-spacing: .02em; margin-left: 150px; margin-bottom: 4px; }
.ag-item { display: flex; gap: 0; align-items: flex-start; border-radius: 16px; padding: 6px 10px 6px 0; transition: background .25s; }
button.ag-item:hover { background: var(--paper-3); }
.ag-num { width: 150px; flex: none; font: 600 70px/1 var(--display); color: #c9a94f; padding-top: 26px; }
.ag-body { display: flex; flex-direction: column; }
.ag-body .eyebrow { font-size: 24px; letter-spacing: .2em; }
.ag-t { font: 600 40px/1.12 var(--display); margin: 2px 0 4px; }
.ag-p { font: 22px/1.3 var(--display); color: #8b8478; max-width: 480px; }
.s-agenda .ag-list h2 { margin-bottom: 40px; } /* room between the title and the first point */

/* "What you'll learn" (title reprise in the live deck): faded cover, one point per step */
.t-fade img { opacity: .16; filter: saturate(.6); }
.wl { position: absolute; left: 150px; top: 96px; width: 1300px; }
.wl .eyebrow { color: var(--brick); letter-spacing: .2em; }
.stage .wl-h { margin-top: 10px; font: 600 96px/1 var(--display); letter-spacing: -.015em; }
.wl-list { list-style: none; margin: 56px 0 0; padding: 0; display: flex; flex-direction: column; gap: 34px; }
.wl-list li { display: grid; grid-template-columns: 70px 92px 1fr; align-items: center; gap: 22px; padding-top: 30px; border-top: 2px solid rgba(34, 31, 28, .18); }
.wl-n { font: 600 64px/1 var(--display); color: var(--mustard-ink); }
.wl-list img { width: 92px; height: 92px; padding: 12px; box-sizing: border-box; border: 2.5px solid var(--ink); border-radius: 50%; background: #fff; object-fit: contain; }
.wl-pat { font: 18px/1 var(--caps); letter-spacing: .18em; text-transform: uppercase; }
.wl-pat span { color: var(--ink-3); }
.stage .wl-list p { margin-top: 8px; font: 500 28px/1.2 var(--display); color: var(--ink); white-space: nowrap; }

/* ---------- portrait ---------- */
.s-portrait { background: #e4ddcb; }
.po-img { position: absolute; left: 140px; top: 112px; width: 943px; height: 718px; border-radius: 40px; overflow: hidden; border: 2px solid var(--ink); box-shadow: 10px 16px 0 rgba(34, 31, 28, .12); }
.po-img img { width: 100%; height: 100%; object-fit: cover; }
.po-txt { position: absolute; left: 1160px; right: 70px; top: 360px; display: flex; flex-direction: column; gap: 22px; align-items: center; text-align: center; }
.po-life { font: 29px/1 var(--caps); letter-spacing: .14em; color: #b07c3a; }
.po-life .term { border-bottom-color: #b07c3a; }
.po-txt h2 { font: 700 76px/1.02 var(--display); }
.po-txt:has(.po-roles) { top: 250px; } /* taller block: keep it centred on the photo */
.po-roles { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 6px; }
.po-role { font: 600 22px/1 var(--sans); letter-spacing: .04em; padding: 11px 22px; border-radius: 99px; border: 2px solid var(--ink); color: var(--ink); background: transparent; transition: background .2s, color .2s; }
button.po-role:hover { background: var(--ink); color: var(--paper-3); }
.po-more { font: 600 20px/1 var(--sans); padding: 12px 18px; border-radius: 99px; border: 2px solid var(--ink); transition: background .2s, color .2s; }
.po-more:hover { background: var(--ink); color: var(--paper-3); }

/* ---------- background frames: shared parallax ---------- */
/* .px layers drift by --d px across a build: --sp (async scroll) or --prog (live step). */
.px { translate: 0 calc((var(--sp, var(--prog, 1)) - .5) * var(--d, 0) * -1px); transition: translate .9s var(--ease); }
.stage .steps { display: none; }

/* ---------- feature (the novel) ---------- */
.s-feature { background: radial-gradient(1100px 760px at 28% 62%, #f4ecda, #e6dcc5); }
.fx-year { position: absolute; left: 30px; top: -10px; }
.fx-year span { font: 600 400px/1 var(--display); letter-spacing: -.03em; color: transparent; -webkit-text-stroke: 2px rgba(147, 89, 62, .2); }
.fx-notes { position: absolute; right: 30px; top: -240px; display: flex; flex-direction: column; align-items: center; gap: 22px; font: 15px/1 var(--caps); color: var(--ink-3); opacity: .45; }
.fx-sun { position: absolute; left: 560px; top: 150px; width: 300px; height: 300px; border-radius: 50%; background: var(--mustard); opacity: .9; }
.fx-book { position: absolute; left: 80px; top: 236px; width: 810px; }
.fx-book-in { border-radius: 30px; overflow: hidden; rotate: -2.5deg; box-shadow: 0 50px 70px -36px rgba(34, 31, 28, .6), 0 0 0 1px rgba(34, 31, 28, .06); }
.fx-book-in img { display: block; width: 100%; }
.fx-book.scene .fx-book-in { rotate: 0deg; border-radius: 12px; }
.fx-text { position: absolute; left: 960px; top: 92px; width: 560px; }
.fx-text.talk { top: 0; height: 900px; display: flex; flex-direction: column; justify-content: center; }
.fx-title { margin-top: 10px !important; font: 600 96px/.92 var(--display) !important; letter-spacing: -.015em; }
.fx-title em { font-style: normal; }
.fx-title.two { font-size: 84px !important; } /* two-line titles: keeps the paragraphs on the slide */
.fx-title.long { font-size: 84px !important; white-space: nowrap; } /* a long one-line title, still inside the column */
.fx-title span { display: block; margin-top: 12px; font: italic 400 44px/1 var(--display); color: var(--brick); }
.fx-p { margin-top: 26px !important; font: 26px/1.42 var(--display); color: #5b5246; }
.fx-stats { position: absolute; left: 80px; top: 752px; width: 810px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.fx-stats div { border-top: 2px solid var(--ink); padding-top: 14px; }
.fx-stats b { display: block; font: 600 64px/1 var(--display); }
.fx-bleed { position: absolute; inset: 0; background: #111; }
.fx-bleed img { width: 100%; height: 100%; object-fit: cover; object-position: center center; }
.fx-cap { position: absolute; top: 0; right: 0; width: 480px; background: #121112; color: #fbf6ea; padding: 34px 40px 30px 42px; border-bottom-left-radius: 32px; }
.fx-cap .eyebrow { color: #d23b2e; font-size: 18px; letter-spacing: .16em; text-transform: uppercase; }
.stage .fx-cap h2 { margin: 8px 0 0; color: #fff; font: 600 48px/1.05 var(--display); }
.fx-stats span { display: block; margin-top: 8px; font: 14px/1.3 var(--caps); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); }

/* ---------- shelf (where to start) ---------- */
.s-shelf { background: radial-gradient(1000px 700px at 70% 55%, #f3ecdc, #e6dcc6); }
.sh2-sun { position: absolute; left: -130px; top: -170px; width: 520px; height: 520px; border-radius: 50%; background: var(--mustard); opacity: .32; }
.sh2-head { position: absolute; left: 90px; top: 92px; width: 470px; }
.sh2-head h2 { margin-top: 12px !important; font: 600 78px/.96 var(--display) !important; letter-spacing: -.01em; }
.sh2-info { position: absolute; left: 90px; top: 340px; width: 460px; height: 500px; }
.sh2-pane { position: absolute; left: 0; top: 0; width: 100%; margin: 0; padding: 0; opacity: 0; translate: 0 18px; transition: opacity .55s var(--ease), translate .7s var(--ease); pointer-events: none; }
.sh2-pane.cur { opacity: 1; translate: 0 0; pointer-events: auto; }
.sh2-index { list-style: none; }
.sh2-index li { display: grid; grid-template-columns: 88px 1fr; column-gap: 8px; padding: 16px 0 15px; border-top: 1px solid var(--rule); }
.sh2-index b { grid-row: span 2; font: 600 30px/1.1 var(--display); color: var(--brick); }
.sh2-index span { font: 600 30px/1.1 var(--display); }
.sh2-index em { font: italic 22px/1.3 var(--display); color: var(--ink-3); }
.sh2-k { font: 15px/1 var(--caps); letter-spacing: .2em; text-transform: uppercase; color: var(--brick); }
.sh2-pane h3 { margin: 14px 0 18px !important; font: 600 50px/1 var(--display) !important; }
.sh2-pane p { font: 26px/1.45 var(--display) !important; color: var(--ink-2); }
.sh2-slot { position: absolute; width: 280px; }
.sh2-yr { position: absolute; z-index: 0; left: -34px; top: -96px; font: 600 160px/1 var(--display); color: transparent; -webkit-text-stroke: 2px rgba(34, 31, 28, .16); transition: -webkit-text-stroke-color .6s; }
.sh2-book { position: relative; z-index: 1; transition: translate .8s var(--ease), scale .8s var(--ease), opacity .6s, filter .6s; }
.sh2-cover { height: 412px; border-radius: 16px; overflow: hidden; box-shadow: 0 34px 50px -26px rgba(34, 31, 28, .55), 0 0 0 1px rgba(34, 31, 28, .06); }
.sh2-cover img { width: 100%; height: 100%; object-fit: cover; }
.s-shelf:not([data-at="0"]) .sh2-book:not(.cur) { opacity: .4; filter: grayscale(.55); scale: .96; }
.sh2-book.cur { translate: 0 -28px; scale: 1.05; }
.sh2-book.cur .sh2-cover { box-shadow: 0 60px 70px -34px rgba(34, 31, 28, .65), 0 0 0 1px rgba(34, 31, 28, .06); }
.sh2-slot:has(.cur) .sh2-yr { -webkit-text-stroke-color: rgba(147, 89, 62, .55); }

/* ---------- list (his collections) ---------- */
.s-list { background: #ebe3d1; }
.ls-sun { position: absolute; left: 1290px; top: -150px; width: 430px; height: 430px; border-radius: 50%; background: var(--mustard); opacity: .3; }
.ls-dot { position: absolute; left: 40px; top: 770px; width: 150px; height: 150px; border-radius: 50%; background: var(--brick); opacity: .22; }
.ls-head { position: absolute; left: 80px; top: 62px; width: 1200px; }
.ls-head h2 { margin-top: 10px !important; font: 600 70px/1 var(--display) !important; }
.ls-head p { margin-top: 10px !important; font: italic 22px/1.3 var(--display); color: var(--ink-3); }
.ls-cols { position: absolute; left: 80px; right: 80px; top: 286px; bottom: 64px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.ls-slot { position: relative; }
.ls-col { height: 100%; box-sizing: border-box; padding: 0 30px 20px; border-radius: 26px; background: var(--card); box-shadow: 0 30px 50px -34px rgba(34, 31, 28, .5), 0 0 0 1px rgba(34, 31, 28, .05); }
.ls-top { display: flex; align-items: flex-end; gap: 22px; min-height: 96px; }
.ls-cover { flex: none; width: 108px; margin-top: -58px; border-radius: 8px; rotate: -4deg; box-shadow: 0 20px 26px -14px rgba(34, 31, 28, .6); }
.ls-name { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ls-year { font: 15px/1 var(--sans); letter-spacing: .04em; color: var(--ink-3); }
.li-book { font: 600 30px/1.08 var(--display); color: var(--ink); text-decoration: underline; text-decoration-color: rgba(75, 95, 174, .45); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.li-book:hover { color: var(--blue); }
.ls-col ul { list-style: none; margin: 18px 0 0; padding: 0; }
.ls-col li { padding: 12px 0 11px; border-top: 1px solid var(--rule); }
.li-essay { text-align: left; font: 26px/1.18 var(--display); color: var(--ink); transition: color .2s; }
.li-essay:hover { color: var(--brick); }
.ls-col li.b .li-essay { font-weight: 700; }
.ls-col li.cur .li-essay { font-style: italic; font-weight: 700; color: var(--brick); }
.ls-meta { display: flex; align-items: center; gap: 8px; margin-top: 5px; font: 13px/1.3 var(--caps); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.ls-meta:empty { display: none; }
.ls-meta i { font: 700 11px/1 var(--sans); font-style: normal; letter-spacing: .08em; padding: 4px 8px; border-radius: 99px; background: var(--brick); color: var(--paper-3); }

/* ---------- triad (what he fuses) ---------- */
.s-triad { background: radial-gradient(900px 700px at 32% 60%, #efe7d6, #e2dac6); }
.tf-sun { position: absolute; left: 1300px; top: 650px; width: 400px; height: 400px; border-radius: 50%; background: var(--mustard); opacity: .28; }
.tf-lead { position: absolute; left: 90px; top: 78px; font: 400 58px/1 var(--display) !important; }
.tf-lead strong { font-weight: 600; }
.tf-c { position: absolute; left: var(--x0); top: var(--y0); width: 270px; height: 270px; margin: -135px 0 0 -135px; transition: left 1.3s var(--ease), top 1.3s var(--ease), opacity .6s, filter .6s, scale .7s var(--ease); }
.tf-in { width: 100%; height: 100%; border-radius: 50%; overflow: hidden; background: #efe6d2; box-shadow: 0 26px 44px -26px rgba(34, 31, 28, .55); transition: box-shadow .7s; }
.tf-in img { width: 100%; height: 100%; object-fit: cover; }
.tf-key { position: absolute; left: 50%; top: calc(100% + 20px); translate: -50% 0; font: 16px/1 var(--caps); letter-spacing: .24em; text-transform: uppercase; color: var(--c); transition: opacity .5s; }
.s-triad:not([data-at="0"]) .tf-c:not(.cur) { opacity: .38; filter: grayscale(.6); }
.tf-c.cur { scale: 1.08; }
.tf-c.cur .tf-in { box-shadow: 0 0 0 7px var(--c), 0 34px 50px -26px rgba(34, 31, 28, .6); }
.s-triad[data-at] .tf-ring.lit .tf-c { left: var(--x1); top: var(--y1); opacity: 1; filter: none; scale: 1.14; mix-blend-mode: multiply; }
.tf-ring.lit .tf-in { box-shadow: none; }
.tf-ring.lit .tf-key { opacity: 0; }
.tf-core { position: absolute; left: 520px; top: 520px; width: 124px; height: 124px; margin: -62px 0 0 -62px; border-radius: 50%; background: var(--card); display: grid; place-items: center; box-shadow: 0 16px 30px -14px rgba(34, 31, 28, .5); opacity: 0; scale: .5; transition: opacity .6s, scale .8s var(--ease); }
.tf-core span { font: 600 38px/1 var(--display); letter-spacing: .04em; }
.tf-ring.lit .tf-core { opacity: 1; scale: 1; transition-delay: .9s; }
.tf-panes { position: absolute; left: 1010px; top: 230px; width: 520px; height: 600px; }
.tf-pane { position: absolute; left: 0; top: 0; width: 100%; opacity: 0; translate: 0 18px; transition: opacity .55s var(--ease), translate .7s var(--ease); pointer-events: none; }
.tf-pane.cur { opacity: 1; translate: 0 0; pointer-events: auto; }
.tf-k { font: 16px/1 var(--caps); letter-spacing: .24em; text-transform: uppercase; color: var(--c); }
.tf-pane h3 { margin: 14px 0 20px !important; font: 600 52px/1 var(--display) !important; white-space: pre-line; }
.tf-pane p { font: 24px/1.45 var(--display) !important; color: var(--ink-2); }
.tf-rows { list-style: none; margin: 0; padding: 0; }
.tf-rows li { padding: 18px 0 17px; border-top: 1px solid var(--rule); }
.tf-rows b { display: block; font: 14px/1 var(--caps); font-weight: 400; letter-spacing: .24em; text-transform: uppercase; color: var(--c); }
.tf-rows span { display: block; margin-top: 8px; font: 34px/1.1 var(--display); }
@media (prefers-reduced-motion: reduce) { .px { translate: none; transition: none; } .tf-c { transition: opacity .2s; } }

/* ---------- pattern map ---------- */
.s-patterns { background: #efe5d6; }
.pg-text { position: absolute; left: 80px; top: 380px; width: 320px; display: flex; flex-direction: column; gap: 14px; }
.pg-text .eyebrow { font-size: 26px; letter-spacing: .16em; line-height: 1.3; }
.pg-text h2 { font: 600 52px/1 var(--display); margin-top: -6px; }
.pg-text p { font: 22px/1.32 var(--display); color: #8a8172; }
.pg-aside { font-style: italic; }
.pg-key { display: flex; align-items: center; gap: 12px; font: 600 18px var(--sans); }
.pg-key span { width: 26px; height: 26px; border-radius: 6px; border: 5px solid; }
.pg-key .k1 { border-color: var(--brick); }
.pg-key .k2 { border-color: #c9a94f; }
.pg-board { position: absolute; left: 445px; top: 45px; width: 1135px; height: 815px; border-radius: 50px; background: linear-gradient(135deg, #f8f5ee, #efeae0); box-shadow: 0 30px 60px -30px rgba(80, 60, 30, .4); display: flex; gap: 22px; padding: 40px 30px 30px 72px; }
.pg-vlabels { position: absolute; left: 26px; top: 40px; bottom: 30px; display: flex; flex-direction: column; justify-content: space-around; }
.pg-vlabels span { writing-mode: vertical-rl; transform: rotate(180deg); font: 20px var(--caps); letter-spacing: .2em; color: var(--ink-3); text-transform: uppercase; }
.pg-vlabels span:nth-child(1) { margin-bottom: 0; }
.pg-arch { flex: 1; border: 2.5px solid var(--ink); border-radius: 170px 170px 14px 14px; padding: 18px 12px 14px; display: flex; flex-direction: column; align-items: center; background: #fbf9f4; }
.pg-dim { width: 260px; height: 260px; border-radius: 50%; border: 2.5px solid var(--ink); display: grid; place-items: center; position: relative; overflow: hidden; background: #fff; }
.pg-dim img { width: 230px; height: 230px; object-fit: contain; }
.pg-dim span { position: absolute; bottom: 30px; font: 600 30px var(--display); background: #fffc; padding: 0 6px; }
.pg-els { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: 100%; margin: 16px 0 14px; }
.pg-el { display: flex; flex-direction: column; align-items: center; text-align: center; font: 600 19px/1.05 var(--display); background: #f4f0e7; border: 1.5px solid #c9c0ad; border-radius: 50px 50px 10px 10px; padding: 6px 2px; }
.pg-elc { width: 76px; height: 76px; border-radius: 50%; overflow: hidden; border: 1.5px solid var(--ink); background: #fff; margin-bottom: 4px; }
.pg-elc img { width: 100%; height: 100%; object-fit: cover; }
.pg-el small { font-size: 15px; font-weight: 400; }
.pg-cells { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: 100%; }
.pg-cell { position: relative; aspect-ratio: 1; background: #fff; border: 1.5px solid #bdb4a2; border-radius: 6px; display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 6px 4px 3px; transition: opacity .6s var(--ease), transform .3s var(--ease); }
.pg-cell img { width: 64%; height: 64%; object-fit: contain; }
.pg-n { font: 600 12.5px/1 var(--serif); align-self: flex-start; }
.pg-c { position: absolute; right: 5px; bottom: 3px; font: 11px var(--serif); color: var(--ink-3); }
.pg-cell::after { content: ""; position: absolute; inset: -7px; border: 6px solid transparent; border-radius: 9px; opacity: 0; transform: scale(1.15); transition: opacity .55s var(--ease), transform .55s var(--ease); pointer-events: none; }
.pg-cell.hl-1::after { border-color: var(--brick); }
.pg-cell.hl-2::after { border-color: #c9a94f; }
.pg-cell:hover { transform: translateY(-3px); z-index: 2; }
.s-patterns:not([data-at="0"]) .pg-cell.hl-1::after, .s-patterns[data-at="2"] .pg-cell.hl-2::after { opacity: 1; transform: none; }
.s-patterns[data-at="1"] .pg-cell:not(.hl-1), .s-patterns[data-at="2"] .pg-cell:not(.hl-1):not(.hl-2) { opacity: .28; }
.s-patterns:not([data-at="0"]) .pg-dim, .s-patterns:not([data-at="0"]) .pg-el { opacity: .55; transition: opacity .6s; }

/* Pattern tour (async): the camera zooms from the map into each focus pattern's cell. */
.tour-cam { position: absolute; left: 0; top: 0; width: 1600px; height: 900px; transform-origin: 0 0; transform: scale(var(--s, 1)); }
.tour-cam > .stage { transform: none; }
/* No will-change on the tour: the map scales up ~20x in a zoom, and a promoted layer that big
   runs out of GPU tiles and flickers. */
.tour-stage { visibility: hidden; opacity: 0; pointer-events: none; }
/* Async pattern map: heading above a board-only frame; the intro opens from the "i". */
.tour-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding: 0 4px 14px; }
.tour-head .eyebrow { font-size: 13px; letter-spacing: .2em; }
.tour-head h2 { font: 600 clamp(30px, 3.2vw, 44px)/1.05 var(--display); margin: 4px 0 0; }
.tour-head h2 .term { border-bottom: 0; padding: 0; }
[data-cue-mode] .tour-head h2 .cue { width: .4em; height: .4em; vertical-align: .12em; margin-left: .22em; }
.tour-head .pg-key { font-size: 14px; gap: 9px; padding-bottom: 6px; opacity: 0; transition: opacity .5s var(--ease); }
.tour-head .pg-key span { width: 18px; height: 18px; border-width: 3.5px; border-radius: 4px; }
.wf-tour:has(.s-patterns:not([data-at="0"])) .tour-head .pg-key { opacity: 1; }
.wf-tour.tour-zoomed:has(.s-patterns) .tour-head .pg-key { opacity: 0; }
.tour-note { position: absolute; left: 2px; right: 2px; top: calc(100% + 12px); max-width: 70ch; font: 16px/1.45 var(--serif); color: var(--ink-2); }
.tour-note:empty { display: none; }
.tour-next { position: absolute; z-index: 30; padding: 10px 18px 12px; border-radius: 14px; background: var(--ink); color: #fff; text-align: center; white-space: nowrap; box-shadow: 0 18px 30px -16px rgba(34, 31, 28, .6); pointer-events: none; opacity: 0; transform: translate(-50%, -100%) translateY(10px); transition: opacity .4s var(--ease), transform .4s var(--ease); }
.tour-next.show { opacity: 1; transform: translate(-50%, -100%); }
.tour-next::after { content: ""; position: absolute; left: 50%; bottom: -9px; width: 18px; height: 18px; margin-left: -9px; background: var(--ink); transform: rotate(45deg); border-radius: 3px; z-index: -1; }
.tour-next small { display: block; font: 13px/1 var(--caps); letter-spacing: .18em; text-transform: uppercase; color: #e7b9a3; margin-bottom: 6px; }
.tour-next b { font: 600 28px/1 var(--display); }
.tour-next span { font: 16px var(--serif); color: #cfc6b8; }
.pg-cell.tour-target { z-index: 3; animation: tour-pulse 1.7s ease-in-out infinite; }
.pg-cell.tour-done { background: #f7e6dd; }
@keyframes tour-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(147, 89, 62, .45); } 50% { box-shadow: 0 0 0 14px rgba(147, 89, 62, 0); } }
.rl-item.rl-sub { padding-left: 22px; }
@media (prefers-reduced-motion: reduce) { .pg-cell.tour-target { animation: none; } }

/* ---------- pattern frames (shared left column) ---------- */
.ph { position: absolute; left: 80px; top: 80px; width: 440px; }
.ph-icon { width: 212px; height: 212px; border-radius: 50%; border: 3px solid var(--ink); background: #fff; overflow: hidden; display: grid; place-items: center; }
.ph-icon img { width: 150px; height: 150px; object-fit: contain; }
.ph-path { font: 26px/1 var(--caps); text-transform: uppercase; letter-spacing: .03em; margin-top: 40px; }
.ph-name { font: 400 66px/1.05 var(--display) !important; }
.ph-name span { font-variant-numeric: oldstyle-nums; }
.ph-side { margin-top: 26px; display: flex; flex-direction: column; gap: 22px; font: 21.5px/1.38 var(--display); color: #7c7366; }

/* experience prompts */
.s-prompts { background: #e2dccb; }
.pr-main { position: absolute; left: 566px; top: 76px; right: 60px; }
.pr-title { font: 600 74px/1.05 var(--display) !important; max-width: 900px; }
.pr-list { display: flex; flex-direction: column; gap: 22px; margin-top: 52px; }
.pr-k { font: italic 700 32px/1 var(--sans); color: #a8782d; letter-spacing: .01em; text-transform: uppercase; }
.pr-q { font: 33px/1.3 var(--sans); margin-top: 6px; }
.you { color: var(--blue); }
.pr-item.now .pr-q { text-decoration: underline; text-decoration-color: var(--mustard); text-decoration-thickness: 3px; text-underline-offset: 8px; }

/* sequence */
.s-sequence .ph-side { font-size: 20px; gap: 18px; }
.s-sequence { background: #ebe4d2; }
.s-sequence .ph, .s-sequence .sq-map { transition: opacity .6s var(--ease), translate .6s var(--ease); }
.s-sequence[data-at="0"] .ph, .s-sequence[data-at="0"] .sq-map { opacity: 0; translate: 0 12px; pointer-events: none; }
/* Step 0: centred on its own — the principle, then the essay's title block framed like the reading's header. */
.sq-intro { position: absolute; left: 0; right: 0; top: 74px; display: flex; flex-direction: column; align-items: center; text-align: center; opacity: 0; translate: 0 14px; transition: opacity .6s var(--ease), translate .6s var(--ease); pointer-events: none; }
.sq-intro.cur { opacity: 1; translate: 0 0; pointer-events: auto; }
.sq-eyebrow { font: 600 19px var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--mustard-ink); }
.sq-title { margin-top: 12px; font: 600 74px/1.02 var(--display) !important; }
.sq-card { width: 700px; margin-top: 36px; padding: 40px 44px 38px; background: #fbf8f1; border: 1px solid rgba(34, 31, 28, .14); border-radius: 18px; box-shadow: 0 22px 50px -22px rgba(34, 31, 28, .4); }
.sq-ct { font: 600 58px/1.02 var(--tf, var(--display)); text-wrap: balance; }
.sq-cb { margin-top: 14px; font: 17px/1 var(--caps); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-2); }
.sq-dl { display: inline-grid; gap: 8px; margin: 28px auto 0; padding: 16px 28px; border-top: 3px solid var(--ink); border-bottom: 3px solid var(--ink); text-align: left; }
.sq-dl div { display: grid; grid-template-columns: 128px auto; gap: 18px; }
.sq-dl dt { font: 700 17px/1.7 var(--sans); letter-spacing: .14em; color: var(--brick); }
.sq-dl dd { margin: 0; font: 600 18px/1.7 var(--sans); letter-spacing: .12em; }
.sq-lead { width: 900px; margin: 34px 0 0; font: 30px/1.42 var(--serif); color: var(--ink); text-wrap: pretty; }
/* Steps 1+: the wedge. */
.sq-diag { position: absolute; left: 600px; width: 580px; height: 760px; transition: opacity .6s var(--ease); }
.s-sequence[data-at="0"] .sq-diag { opacity: 0; pointer-events: none; }
.sq-arrows { position: absolute; left: -20px; top: 0; overflow: visible; color: var(--ink); }
.sq-arrows line { stroke: currentColor; stroke-width: 2; }
.sq-rl { position: absolute; font: 600 30px/1 var(--display); text-align: right; width: 120px; }
.sq-tension { top: -40px; }
.sq-release { left: 0; text-align: center; color: var(--brick); }
.sq-beat { position: absolute; inset: 0; pointer-events: none; }
.sq-beat > * { pointer-events: auto; }
.sq-strip { position: absolute; left: 0; width: 220px; display: block; transition: opacity .6s var(--ease); }
.sq-beat:not(.now) .sq-strip { opacity: .62; }
.sq-beat.rel .sq-strip { object-fit: cover; border: 4px solid var(--ink); box-sizing: border-box; }
.sq-lab { position: absolute; width: 330px; }
.sq-label { font: 600 34px/1.1 var(--display); transition: color .4s; }
.sq-tag { margin-top: 4px; font: 14px var(--caps); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.sq-beat:not(.now) .sq-label { color: var(--ink-3); }
.sq-beat.rel .sq-label { color: var(--brick); font-size: 46px; }
.sq-beat.rel .sq-q { font-size: 19px; line-height: 1.34; }
.sq-beat.rel .sq-beat.now .sq-q, .sq-beat.rel.now .sq-q { max-height: 320px; }
.sq-q { display: block; margin-top: 12px; font: italic 21px/1.38 var(--serif); text-align: left; padding: 4px 0 4px 14px; border-left: 4px solid var(--mustard); max-height: 0; opacity: 0; overflow: hidden; transition: max-height .7s var(--ease), opacity .5s, background .2s; }
.sq-beat.now .sq-q { max-height: 240px; opacity: 1; }
.sq-q:hover { background: rgba(255, 255, 255, .5); }
.sq-map { position: absolute; left: 1210px; top: 58px; width: 340px; }
.sq-maphead { font: 15px/1.2 var(--caps); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 14px; }
.mm { position: relative; }
.mm-bars { display: flex; flex-direction: column; gap: 2px; width: 200px; }
.mm-bar { display: block; width: 100%; border-radius: 1.5px; background: transparent; outline: 1.5px dashed rgba(34, 31, 28, .28); outline-offset: -1.5px; transition: background .6s var(--ease), outline-color .6s, opacity .6s; }
.mm-bar.fn { width: 70%; margin-left: 30%; }
.mm-bar.lit { background: var(--c); outline-color: transparent; opacity: .45; }
.mm-bar.cur { opacity: 1; }
/* A paragraph that hints at the release shows a sliver of its colour. */
.mm-bar.hint.lit { background: linear-gradient(90deg, var(--c) 0 calc(100% - var(--hint) * 100%), var(--brick) 0); }
.mm-lab { position: absolute; left: 214px; font: 14px/1.1 var(--caps); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); width: 126px; }
.mm-mark { position: absolute; left: -66px; font: 13px/1 var(--sans); color: var(--brick); white-space: nowrap; transform: translateY(-50%); }
.mm-mark b { font-size: 18px; }

/* tone */
.s-tone { background: #e6dfcd; }
/* Step 0: the idea, with a dot sliding along a spectrum. */
.to-lead { position: absolute; left: 640px; right: 70px; top: 300px; text-align: center; opacity: 0; translate: 0 14px; transition: opacity .6s var(--ease), translate .6s var(--ease); pointer-events: none; }
.to-lead.cur { opacity: 1; translate: 0 0; }
.to-lead p { font: 500 46px/1.22 var(--display); text-wrap: balance; }
.to-spec { position: relative; width: 520px; height: 4px; margin: 46px auto 0; border-radius: 2px; background: linear-gradient(90deg, var(--blue), var(--mustard), var(--brick)); opacity: .7; }
.to-spec i { position: absolute; top: 50%; left: 0; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 6px rgba(34, 31, 28, .12); animation: to-mod 3.2s cubic-bezier(.65, 0, .35, 1) infinite alternate; }
@keyframes to-mod { 0% { left: 4%; } 38% { left: 72%; } 62% { left: 30%; } 100% { left: 96%; } }
/* Step 1: the two spectra as double-headed arrows; each axis names its ends and itself in one line. */
.to-axes { position: absolute; inset: 0; pointer-events: none; }
.to-axes .term { pointer-events: auto; }
.stage .to-axes[data-step].off { transform: none; filter: none; opacity: 1; }
.to-x { position: absolute; left: 760px; width: 790px; top: 160px; height: 70px; }
.to-y { position: absolute; left: 640px; width: 100px; top: 272px; height: 588px; }
.to-arrow { position: absolute; background: var(--ink); border-radius: 2px; transition: transform .9s var(--ease); }
.to-arrow.h { left: 4px; right: 4px; top: 52px; height: 2.5px; }
.to-arrow.v { top: 4px; bottom: 4px; left: 86px; width: 2.5px; }
.to-ah { position: absolute; width: 0; height: 0; border: 9px solid transparent; transition: opacity .4s .55s; }
.to-ah.h { top: 44px; }
.to-ah.h.a1 { left: -4px; border-right: 15px solid var(--ink); border-left: 0; }
.to-ah.h.a2 { right: -4px; border-left: 15px solid var(--ink); border-right: 0; }
.to-ah.v { left: 78px; }
.to-ah.v.a1 { top: -4px; border-bottom: 15px solid var(--ink); border-top: 0; }
.to-ah.v.a2 { bottom: -4px; border-top: 15px solid var(--ink); border-bottom: 0; }
.to-name { position: absolute; font: italic 600 34px/1 var(--display); color: var(--ink); white-space: nowrap; transition: opacity .5s .2s, translate .5s .2s var(--ease); }
.to-x .to-name { left: 50%; top: 4px; transform: translateX(-50%); }
.to-y .to-name { left: 44px; top: 50%; transform: translate(-50%, -50%) rotate(-90deg); }
.to-end { position: absolute; font: 600 17px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); white-space: nowrap; transition: opacity .5s .45s var(--ease); }
.to-end.l { left: 0; top: 16px; } .to-end.r { right: 0; top: 16px; }
.to-end.t, .to-end.b { left: 44px; transform: translate(-50%, -50%) rotate(-90deg); }
.to-end.t { top: 70px; } .to-end.b { top: calc(100% - 74px); }
.to-axes.off .to-arrow.h { transform: scaleX(0); }
.to-axes.off .to-arrow.v { transform: scaleY(0); }
.to-axes.off .to-ah, .to-axes.off .to-end, .to-axes.off .to-name { opacity: 0; }
/* The quadrants: rounded cards that rise in one at a time. */
.to-grid { position: absolute; left: 760px; width: 790px; top: 272px; height: 588px; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 22px; }
.to-q { background: #fffdf8; border-radius: 22px; padding: 24px 28px; font: 22px/1.4 var(--serif); color: var(--ink); box-shadow: 0 1px 0 rgba(34, 31, 28, .06), 0 18px 40px -24px rgba(34, 31, 28, .45); display: grid; align-items: center; transition: opacity .6s var(--ease), transform .7s cubic-bezier(.2, .9, .25, 1.15), box-shadow .5s var(--ease), background .5s; }
.to-q p { margin: 0; }
.to-q strong { font-weight: 600; background: linear-gradient(transparent 62%, rgba(214, 182, 59, .45) 0); }
.stage .to-q[data-step].off { transform: translateY(26px) scale(.94); filter: none; }
.to-q.now { box-shadow: 0 0 0 3px var(--brick), 0 26px 50px -24px rgba(34, 31, 28, .55); }
.s-tone[data-at] .to-q:not(.now):not(.off) { background: #f6f1e6; color: var(--ink-2); }

/* lesson frames (weave, firsts, imagery): H1 + step panes on the left, a visual on the right */
.lx-head { position: absolute; left: 80px; top: 70px; width: 590px; height: 770px; }
.lx-tag { display: flex; align-items: center; gap: 18px; }
.lx-ic { flex: none; width: 84px; height: 84px; border-radius: 50%; border: 2.5px solid var(--ink); background: #fff; display: grid; place-items: center; overflow: hidden; }
.lx-ic img { width: 60px; height: 60px; object-fit: contain; }
.lx-path { display: block; font: 17px/1 var(--caps); letter-spacing: .06em; text-transform: uppercase; }
.lx-tag b { display: block; margin-top: 6px; font: 600 36px/1.05 var(--display); }
.lx-tag b span { font-weight: 400; color: var(--ink-3); font-variant-numeric: oldstyle-nums; }
.stage .lx-h1 { margin-top: 40px; font: 600 56px/1.03 var(--display); letter-spacing: -.01em; }
.lx-panes { position: relative; margin-top: 34px; }
.lx-pane { position: absolute; left: 0; top: 0; width: 100%; opacity: 0; translate: 0 14px; transition: opacity .55s var(--ease), translate .7s var(--ease); pointer-events: none; }
.lx-pane.cur { opacity: 1; translate: 0 0; pointer-events: auto; }
.lx-k { display: flex; align-items: center; gap: 10px; font: 16px/1 var(--caps); letter-spacing: .2em; text-transform: uppercase; color: var(--c, var(--ink-3)); }
.lx-k::before { content: ""; width: 14px; height: 14px; border-radius: 4px; background: var(--c, var(--ink-3)); }
.stage .lx-pane p { margin-top: 14px; font: 26px/1.42 var(--display); color: var(--ink-2); text-wrap: pretty; }
.lx-pane:first-child p { margin-top: 0; font-size: 28px; color: var(--ink); }
.lx-stack { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.lx-stack li { padding-left: 18px; border-left: 3px solid var(--c); transition: opacity .5s var(--ease), border-color .5s; }
.stage .lx-stack p { margin-top: 8px; font: 22px/1.36 var(--display); color: var(--ink-2); text-wrap: pretty; }
.lx-stack:has(.cur) li:not(.cur) { opacity: .3; }
.lx-stack li.cur p { color: var(--ink); }
.lx-more { position: absolute; left: 0; bottom: 0; padding: 15px 22px; border-radius: 14px; background: var(--card); border: 1px solid rgba(34, 31, 28, .14); box-shadow: 0 18px 36px -22px rgba(34, 31, 28, .5); font: 600 19px/1 var(--sans); color: var(--ink); cursor: pointer; transition: background .2s; }
.lx-more:hover { background: #fff; }

/* Depths: four approaches on the left, the passage on the right, mention marked.
   The title and cards sit in the space between the pattern header and "More on this". */
.s-depths .lx-head { display: flex; flex-direction: column; }
.s-depths .dp-mid { flex: 1; display: flex; flex-direction: column; justify-content: center; min-height: 0; }
.s-depths .lx-h1 { margin-top: 0; font-size: 44px; }
.s-depths .lx-more { position: static; align-self: flex-start; }
.dp-cards { display: flex; flex-direction: column; gap: 10px; margin-top: 22px; }
.dp-card { display: flex; align-items: baseline; gap: 14px; width: 100%; text-align: left; padding: 13px 16px; border: 0; border-left: 4px solid var(--c, var(--brick)); border-radius: 12px; background: var(--card); box-shadow: 0 14px 28px -22px rgba(34, 31, 28, .45); cursor: pointer; transition: opacity .45s var(--ease), box-shadow .4s; }
.dp-cards:has(.cur) .dp-card:not(.cur) { opacity: .38; box-shadow: none; }
.dp-card.cur { box-shadow: 0 0 0 3px var(--c, var(--brick)), 0 18px 36px -22px rgba(34, 31, 28, .5); }
.dp-card b { flex: none; font: 600 15px/1 var(--caps); letter-spacing: .14em; text-transform: uppercase; color: var(--c, var(--brick)); white-space: nowrap; }
.dp-card span { margin: 0; font: 17px/1.2 var(--display); color: var(--ink-2); white-space: nowrap; }
.dp-card.cur span { color: var(--ink); }
.dp-stage { position: absolute; left: 720px; top: 78px; width: 800px; height: 740px; }
.s-depths .dp-text { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; overflow: auto; opacity: 0; pointer-events: none; font: 24px/1.5 var(--serif); color: var(--ink); transition: opacity .45s var(--ease); }
.s-depths .dp-text.now { opacity: 1; pointer-events: auto; }
.dp-text p { margin: 0; }
.dp-text mark { background: color-mix(in srgb, var(--mustard) 55%, transparent); color: var(--ink); font-weight: 600; padding: 0 2px; border-radius: 3px; }
.s-depths .dp-stage.lg .dp-text { font-size: 29px; line-height: 1.45; text-wrap: pretty; }
.s-depths .dp-stage.lg .dp-text.mid { font-size: 34px; }
.s-depths .dp-stage.lg .dp-text.short { font-size: 42px; line-height: 1.4; }
.dp-stage.lg .dp-text p + p { margin-top: .9em; }
.dp-stage.lg .dp-text[style] mark { padding: 0 3px; color: color-mix(in srgb, var(--c) 82%, var(--ink)); background: color-mix(in srgb, var(--c) 17%, transparent); box-shadow: 0 0 0 1px color-mix(in srgb, var(--c) 17%, transparent); }
.dp-text.verse { align-items: flex-start; }
.dp-text.verse p { font: italic 44px/1.35 var(--display); text-wrap: balance; }
.dp-fn { margin-left: .3em; font: 700 22px/1 var(--sans); font-style: normal; color: var(--brick); vertical-align: super; }
.dp-foot { margin-top: 22px; font: italic 20px/1.4 var(--serif); color: var(--ink-3); }

/* Modularity: the essay as a stack beside the paragraph it is quoting. Older blocks fade. */
.dp-stage.md-split { display: flex; gap: 28px; align-items: stretch; }
.md-map { width: 210px; flex: none; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.md-quotes { position: relative; flex: 1; min-width: 0; height: 100%; overflow: hidden; }
.md-qstack { display: flex; flex-direction: column; gap: 14px; }
.s-depths .md-quotes .dp-text { position: static; inset: auto; display: block; flex: none; opacity: 1; overflow: visible; padding: 0; font: 16px/1.4 var(--serif); color: color-mix(in srgb, var(--ink) 40%, #d9d1c2); pointer-events: none; transition: color .45s var(--ease); }
.s-depths .md-quotes .dp-text.off { display: none; }
.s-depths .md-quotes .dp-text.now { color: var(--ink); }
.s-depths .md-quotes .dp-text.now .dp-esch { font-weight: 700; background: color-mix(in srgb, var(--brick) 34%, transparent); padding: 0 2px; border-radius: 3px; }
.s-depths .md-quotes .dp-text.now mark.dp-ref { background: color-mix(in srgb, var(--blue) 28%, transparent); color: var(--ink); font-weight: 600; }
.s-depths .md-quotes .dp-text:not(.now) mark,
.s-depths .md-quotes .dp-text:not(.now) .dp-esch { background: none; color: inherit; font-weight: inherit; padding: 0; }
.dp-esch { font-weight: 700; }
.md-bit, .md-gap { opacity: 0; max-height: 0; min-height: 0; margin: 0; overflow: hidden; border-width: 0; pointer-events: none; transition: opacity .45s var(--ease); }
.md-bit.lit, .md-gap.lit { max-height: 140px; margin-top: 14px; }
.md-bit.lit:not(.cur), .md-gap.lit:not(.cur) { opacity: .28; }
.md-bit.cur, .md-gap.cur { opacity: 1; }
.md-bit { box-sizing: border-box; display: flex; align-items: center; justify-content: center; border-style: solid; border-color: transparent; border-radius: 8px; background: transparent; }
.md-bit.lit { border-width: 2px; border-color: var(--ink); background: #fff; }
.md-bit b { font: 600 16px/1 var(--caps); letter-spacing: .12em; color: var(--ink); }
.md-bit.cur { background: #fffdf6; box-shadow: 0 0 0 4px rgba(201, 169, 79, .7); }
.md-bit.sq { width: 58px; height: 58px; }
.md-bit.lg { width: 196px; height: 96px; }
.md-bit.sm { width: 124px; height: 52px; }
.md-bit.md { width: 156px; height: 56px; }
.md-gap { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.md-gap.lit { max-height: 72px; }
.md-dots { display: flex; flex-direction: column; gap: 6px; }
.md-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink); }
.md-gap em { font: 600 13px/1 var(--caps); letter-spacing: .14em; font-style: normal; color: var(--ink-2); }

/* Argument: a 2×2 of argument over counter, the synthesis spanning both; below, the essay as lanes */
.ag-grid { position: absolute; left: 740px; top: 70px; width: 800px; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto 148px 148px 118px; gap: 12px 16px; }
.ag-col { display: flex; align-items: baseline; gap: 12px; padding: 0 4px 2px; }
.ag-col b { font: 600 28px/1 var(--display); }
.ag-col span { font: 15px/1 var(--caps); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.ag-cell { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 14px 22px 14px 28px; text-align: left; border: 2px dashed var(--rule); border-radius: 16px; background: transparent; color: var(--ink); cursor: pointer; transition: background .5s var(--ease), border-color .5s, box-shadow .45s, opacity .45s; }
.ag-cell::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 8px; background: var(--c); opacity: 0; transition: opacity .5s; }
.ag-row { font: 15px/1 var(--caps); letter-spacing: .18em; text-transform: uppercase; color: var(--t); opacity: .5; transition: opacity .5s; }
.ag-cell b { font: 600 27px/1.12 var(--display); text-wrap: balance; opacity: 0; translate: 0 8px; transition: opacity .55s var(--ease), translate .7s var(--ease); }
.ag-gloss { font: 18px/1.3 var(--serif); color: var(--ink-2); opacity: 0; transition: opacity .55s var(--ease) .1s; }
.ag-cell.span { align-items: center; text-align: center; padding-inline: 40px; }
.ag-cell.span b { font-size: 31px; }
.ag-cell.lit { border: 2px solid color-mix(in srgb, var(--c) 55%, transparent); background: color-mix(in srgb, var(--c) 22%, var(--card)); box-shadow: 0 18px 36px -26px rgba(34, 31, 28, .5); }
.ag-cell.lit::before, .ag-cell.lit .ag-row, .ag-cell.lit b, .ag-cell.lit .ag-gloss { opacity: 1; translate: 0 0; }
.ag-cell.cur { box-shadow: 0 0 0 3px var(--c), 0 22px 44px -24px rgba(34, 31, 28, .55); }
.s-argument:has(.ag-cell.cur) .ag-cell.lit:not(.cur) { opacity: .55; }
.ag-map { position: absolute; left: 740px; top: 618px; width: 800px; height: 210px; }
.ag-mk { font: 15px/1 var(--caps); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); }
.ag-lab { position: absolute; left: 4px; translate: 0 -50%; font: 600 18px/1 var(--display); color: var(--ink-2); }
.ag-lanes { position: absolute; left: 120px; top: 76px; width: 680px; height: 122px; }
.ag-b { position: absolute; height: 30px; border-radius: 3px; background: var(--c); }
.ag-jump { position: absolute; width: 0; border-left: 1.5px solid rgba(34, 31, 28, .3); }
.ag-ph { position: absolute; top: -24px; height: 12px; box-sizing: border-box; border: 1.5px solid var(--ink-3); border-bottom: 0; border-radius: 4px 4px 0 0; opacity: .5; transition: opacity .5s, border-color .5s; }
.ag-ph span { position: absolute; left: -2px; bottom: 16px; font: 13px/1 var(--caps); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; }
.ag-ph.cur { opacity: 1; border-color: var(--ink); }
.ag-ph.cur span { color: var(--ink); }
.ag-shade { position: absolute; top: -6px; background: color-mix(in srgb, var(--paper) 82%, transparent); opacity: 0; pointer-events: none; transition: opacity .55s var(--ease); }
.ag-shade.cur { opacity: 1; }

/* Catalyst: the essay as stacked paragraph bars */
.wv { position: absolute; left: 780px; top: 70px; width: 760px; height: 760px; }
.wv-col { position: absolute; left: 40px; top: 0; width: 150px; height: 100%; }
.wv-p { position: absolute; left: 0; right: 0; display: flex; flex-direction: column; border-radius: 4px; overflow: hidden; }
.wv-n { position: absolute; left: -34px; top: 50%; translate: 0 -50%; width: 24px; text-align: right; font: 12px/1 var(--caps); color: var(--ink-3); }
.wv-lab { position: absolute; left: 164px; top: 50%; translate: 0 -50%; width: 250px; display: flex; flex-direction: column; gap: 1px; font: 500 12.5px/1.15 var(--sans); color: var(--ink-2); pointer-events: none; white-space: nowrap; }
.wv-lab b { font-weight: 700; color: var(--ink); }
.wv:has(.wv-lab) .wv-legend { left: 460px; gap: 14px; }
.wv:has(.wv-lab) .wv-row b { font-size: 22px; }
.wv:has(.wv-lab) .wv-row span { font-size: 14px; }
.wv-p { overflow: visible; }
.wv-seg { display: block; min-height: 0; background: rgba(34, 31, 28, .12); transition: background .6s var(--ease), opacity .5s; }
.wv-seg:first-of-type { border-radius: 4px 4px 0 0; }
.wv-seg:last-child { border-radius: 0 0 4px 4px; }
.wv-seg:only-of-type { border-radius: 4px; }
.wv-seg.lit { background: var(--c); }
/* A reference that sits inside the paragraph instead of running to the bar's edges. */
.wv-p:has(.wv-line) > .wv-seg:not(.wv-line),
.wv-p:has(.wv-inset) > .wv-seg:not(.wv-inset),
.wv-p:has(.wv-foot) > .wv-seg:not(.wv-foot) { border-radius: 4px; }
.wv-seg.wv-line, .wv-seg.wv-inset, .wv-seg.wv-foot { position: absolute; z-index: 1; left: 9px; right: 9px; width: auto; border-radius: 5px; }
.wv-seg.wv-line { top: 46%; height: 16px; margin-top: -8px; left: 16px; right: 16px; }
.wv-seg.wv-line:not(.lit) { background: rgba(34, 31, 28, .12); }
.wv-seg.wv-line::before { content: none; }
.wv-seg.wv-inset { top: 8px; height: 80%; }
.wv-seg.wv-foot { bottom: 0; height: 68%; border-radius: 5px 5px 2px 2px; }
.wv-p.callout { left: 20px; right: 0; }
.wv-p.callout .wv-n { left: -54px; }
.wv-p.callout .wv-lab { left: 144px; }
.s-weave:has(.wv-seg.cur) .wv-seg.lit:not(.cur) { opacity: .55; }
.wv.num .wv-lab { left: 172px; width: 540px; flex-direction: row; align-items: center; gap: 18px; white-space: normal; opacity: .28; transition: opacity .5s var(--ease); }
.wv.num .wv-lab.lit { opacity: 1; }
.wv.num .wv-lab b { flex: none; width: 96px; font: 600 74px/.9 var(--display); color: var(--c); }
.wv-lt { display: flex; flex-direction: column; gap: 5px; }
.wv-lt span:first-child { font: 600 27px/1.1 var(--display); color: var(--ink); }
.wv-lt span + span { font: italic 19px/1.2 var(--serif); color: var(--ink-2); }
.wv-p { transition: opacity .5s var(--ease); }
.wv:has(.wv-bk.now) .wv-p:not(.bk) { opacity: .3; }
.wv-bk { position: absolute; left: -130px; top: 0; width: 130px; height: 100%; pointer-events: none; }
.wv-bk svg { position: absolute; inset: 0; overflow: visible; }
.wv-bk path { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke-dashoffset 1.2s var(--ease); }
.wv-bk.off path { stroke-dashoffset: 1; }
.wv-bk-lab { position: absolute; left: 14px; translate: -50% -50%; rotate: -90deg; font: 600 14px/1 var(--caps); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-2); white-space: nowrap; transition: opacity .6s var(--ease) .6s; }
.wv-bk.off .wv-bk-lab { opacity: 0; transition-delay: 0s; }
.wv-legend { position: absolute; left: 250px; top: 0; display: flex; flex-direction: column; gap: 18px; }
.wv-row { display: grid; grid-template-columns: 26px auto auto; align-items: baseline; gap: 14px; opacity: .3; transition: opacity .5s; }
.wv-row.lit { opacity: 1; }
.wv-row i { width: 22px; height: 22px; border-radius: 6px; background: var(--c); translate: 0 3px; }
.wv-row b { font: 600 38px/1 var(--display); }
.wv-row span { font: 18px/1 var(--caps); letter-spacing: .08em; color: var(--ink-3); }
.wv-turn { position: absolute; left: 190px; right: 0; }
.wv-line { position: absolute; left: 0; top: 0; width: 60px; height: 3px; background: var(--ink); border-radius: 2px; }
.wv-line::before { content: ""; position: absolute; left: -6px; top: -5px; width: 13px; height: 13px; border-radius: 50%; background: var(--ink); }
.wv-tl { position: absolute; left: 76px; top: -14px; width: 480px; }
.wv-tk { font: 16px/1 var(--caps); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); }
.wv-tl.full { width: 500px; padding: 20px 24px 22px; box-sizing: border-box; background: var(--card); border-radius: 16px; box-shadow: 0 24px 46px -28px rgba(34, 31, 28, .5); }
.wv-tl.full .wv-tk { font-size: 13px; }
.stage .wv-para { margin-top: 12px; font: 18.5px/1.42 var(--serif); color: var(--ink-2); }
.wv-para mark { background: color-mix(in srgb, var(--blue) 16%, transparent); color: var(--ink); font-weight: 600; padding: 0 2px; border-radius: 3px; }
.wv-turn .wv-line { width: 76px; }
.stage .wv-q { max-height: none; opacity: 1; margin-top: 10px; font: italic 34px/1.25 var(--display); border-left-color: var(--blue); }

/* Frame: the essay as a page, first sentences bold */
.fr-page { position: absolute; left: 740px; top: 56px; width: 800px; height: 760px; padding: 30px 34px; box-sizing: border-box; background: var(--card); border-radius: 16px; box-shadow: 0 1px 0 rgba(34, 31, 28, .06), 0 30px 60px -34px rgba(34, 31, 28, .55); overflow: hidden; }
.fr-cols { height: 100%; column-count: 3; column-gap: 28px; column-fill: auto; }
.stage .fr-cols p { margin: 0 0 9px; font: 7.4px/1.3 var(--serif); color: rgba(34, 31, 28, .34); }
/* All three groups show in colour; while one group's step is current, the others go grey. */
.fr-first { font: 700 13.5px/1.22 var(--display); color: var(--c); padding: 0 2px; border-radius: 3px; box-decoration-break: clone; -webkit-box-decoration-break: clone; transition: color .5s, background .5s; }
.fr-first.cur { background: color-mix(in srgb, var(--c) 16%, transparent); }
.s-firsts:has(.fr-first.cur) .fr-first:not(.cur) { color: rgba(34, 31, 28, .3); }
.fr-key { position: absolute; left: 740px; top: 832px; display: flex; gap: 26px; }
.fr-key span { display: flex; align-items: center; gap: 9px; font: 16px/1 var(--caps); letter-spacing: .16em; text-transform: uppercase; color: var(--c); transition: opacity .5s; }
.s-firsts:has(.fr-key .cur) .fr-key span:not(.cur) { opacity: .3; }
.fr-key i { width: 14px; height: 14px; border-radius: 4px; background: var(--c); }

/* Imagery: one quote, blown up, strokes lit by kind */
.im { position: absolute; left: 760px; top: 70px; width: 780px; height: 760px; display: flex; flex-direction: column; justify-content: center; }
.stage .im-q { margin: 0; font: 500 41px/1.42 var(--display); color: var(--ink); text-wrap: pretty; }
.im-s { padding: 0 3px; margin: 0 -1px; border-radius: 5px; box-decoration-break: clone; -webkit-box-decoration-break: clone; transition: background .5s, color .5s; }
.im-s.lit { background: color-mix(in srgb, var(--c) 18%, transparent); color: var(--c); }
.im-s.cur { background: color-mix(in srgb, var(--c) 30%, transparent); color: var(--ink); }
.im-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--rule); }
.im-key { display: flex; gap: 28px; }
.im-key span { display: flex; align-items: center; gap: 9px; font: 17px/1 var(--caps); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); opacity: .35; transition: opacity .5s; }
.im-key span.lit { opacity: 1; color: var(--c); }
.im-key i { width: 15px; height: 15px; border-radius: 4px; background: var(--c); }
.im-key em { font-style: normal; color: var(--ink-3); }

/* Argument: the case as a ladder, each rung further from where the essay began */
/* Dialectic: thesis, antithesis, synthesis as three columns, arriving one per step */
.dl { position: absolute; left: 730px; top: 70px; width: 810px; height: 770px; display: grid; grid-template-columns: repeat(3, 1fr); align-content: center; gap: 0 18px; }
.dl-col { grid-row: 1 / -1; display: grid; grid-template-rows: subgrid; align-content: start; padding: 28px 22px 30px; border-radius: 18px; background: var(--card); border-top: 8px solid var(--c); box-shadow: 0 22px 44px -28px rgba(34, 31, 28, .55); transition: opacity .55s var(--ease), translate .7s var(--ease); }
.dl-col.off { opacity: 0; translate: 0 26px; pointer-events: none; }
.dl-k { font: 600 15px/1 var(--caps); letter-spacing: .18em; text-transform: uppercase; color: var(--c); }
.dl-claim { margin-top: 12px; text-align: left; font: 600 31px/1.1 var(--display); color: var(--ink); text-wrap: pretty; }
.dl-ask { margin: 10px 0 0; font: italic 19px/1.32 var(--serif); color: var(--ink-2); }
.dl-ask:empty { margin: 0; }
.dl-lab { display: flex; align-items: center; gap: 10px; min-height: 0; margin: 14px 0 4px; padding-top: 14px; border-top: 1px solid rgba(34, 31, 28, .14); font: 600 13px/1.1 var(--caps); letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; color: var(--ink-3); }
.dl-lab img { flex: none; width: 34px; height: 34px; margin: -4px 0; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px var(--c); }
.dl-pt { display: flex; gap: 10px; align-items: start; margin-top: 12px; }
.dl-n { flex: none; width: 7px; height: 7px; margin-top: .6em; border-radius: 50%; background: var(--c); font: 700 12px/22px var(--sans); color: #fff; text-align: center; }
.dl-col.num .dl-n { width: 22px; height: 22px; margin-top: 2px; }
.dl-t { display: block; text-align: left; font: 400 21px/1.3 var(--serif); color: var(--ink); }
.dl-ex { display: block; margin-top: 7px; padding-left: 10px; border-left: 2px solid color-mix(in srgb, var(--c) 45%, transparent); text-align: left; font: italic 16.5px/1.32 var(--serif); color: var(--ink-2); }
.dl-ex b { font: 600 12px/1 var(--caps); font-style: normal; letter-spacing: .12em; text-transform: uppercase; color: var(--c); }
.dl-claim[data-passage]:hover, .dl-t[data-passage]:hover, .dl-ex[data-passage]:hover { color: var(--c); }
.ld { position: absolute; left: 760px; top: 64px; width: 780px; height: 800px; }
.s-ladder:has(.ld.split) .lx-head { display: flex; flex-direction: column; }
.s-ladder:has(.ld.split) .lx-mid { flex: 1; display: flex; flex-direction: column; justify-content: center; min-height: 0; }
.s-ladder:has(.ld.split) .lx-h1 { margin-top: 0; }
.s-ladder:has(.ld.split) .lx-pane { position: relative; }
.s-ladder:has(.ld.split) .lx-pane:not(.cur) { position: absolute; }
.s-ladder:has(.ld.split) .lx-more { position: static; align-self: flex-start; }
.ld.split { display: flex; flex-direction: column; align-items: flex-start; gap: 32px; padding-top: 36px; box-sizing: border-box; }
.ld.split .ld-block { display: flex; flex-direction: column; gap: 14px; width: 86%; transition: opacity .4s var(--ease); }
.ld.split .ld-block.off { position: absolute; height: 0; overflow: hidden; pointer-events: none; }
.ld.split .ld-block:not(.off):not(.now) { opacity: .4; }
.ld.split .ld-h { margin: 0; font: 600 16px/1 var(--caps); letter-spacing: .16em; text-transform: uppercase; color: var(--brick); }
.ld.split .ld-rung { position: relative; left: auto; top: auto; width: 100%; padding: 22px 28px 24px; }
.ld.split .ld-q { font-size: 34px; line-height: 1.4; }
.ld.split .ld-q strong { font-weight: 700; color: var(--brick); }
.ld-start { position: absolute; left: -22px; top: -12px; bottom: 0; border-left: 2px dashed rgba(34, 31, 28, .28); }
.ld-lab { position: absolute; font: 14px/1 var(--caps); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); }
.ld-lab-s { left: -22px; top: -36px; }
.ld-lab-e { left: 0; font-size: 12px; letter-spacing: .14em; text-align: right; color: var(--brick); transition: opacity .5s; }
.ld-lab-e.off { opacity: 0; }
.ld-rung { position: absolute; display: flex; flex-direction: column; gap: 6px; padding: 11px 20px 13px; box-sizing: border-box; text-align: left; background: var(--card); border: 0; border-left: 4px solid var(--brick); border-radius: 12px; box-shadow: 0 18px 36px -24px rgba(34, 31, 28, .5); cursor: pointer; transition: opacity .55s var(--ease), translate .7s var(--ease), box-shadow .4s; }
.ld-rung.off { opacity: .18; translate: 0 10px; box-shadow: none; }
.ld-rung.now { box-shadow: 0 0 0 3px var(--brick), 0 24px 44px -24px rgba(34, 31, 28, .6); }
.ld-k { display: flex; align-items: center; gap: 10px; font: 13px/1 var(--caps); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.ld-k b { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--brick); color: #fff; font: 600 12px/1 var(--sans); letter-spacing: 0; }
.ld-q { font: 500 21px/1.3 var(--display); color: var(--ink); text-wrap: pretty; }

/* co-reading */
.s-coreading { background: #f0e7d3; }
.co-zoom { position: absolute; left: 60px; top: 175px; width: 743px; height: 400px; border-radius: 26px; overflow: hidden; border: 10px solid #1b1a1c; background: #1b1a1c; }
.co-zoom img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.co-card { position: absolute; background: #0f0e10; color: #f3ead9; border-radius: 22px; padding: 34px 32px; box-shadow: 0 30px 50px -24px rgba(0, 0, 0, .5); z-index: 3; }
.co-card .eyebrow { color: #d8b84a; font: 700 26px/1 var(--sans); letter-spacing: .02em; text-transform: uppercase; }
.co-card h3 { font: 400 52px/1.05 var(--display); margin: 6px 0 14px; }
.co-card p { font: 24px/1.4 var(--display); color: #e7dfcf; }
.co-card1 { left: 248px; top: 500px; width: 388px; }
.co-card2 { left: 1144px; top: 500px; width: 388px; }
.co-head { position: absolute; left: 848px; top: 66px; width: 700px; background: #0f0e10; color: #f3ead9; border-radius: 22px 22px 0 0; padding: 18px 40px 20px 66px; font: 400 42px/1.15 var(--display); text-decoration: none; text-align: left; z-index: 2; }
.co-head span { color: #7c8ee0; }
.co-head { text-decoration: none; }
.co-head:hover span { text-decoration: underline; }
.co-doc { position: absolute; left: 848px; top: 172px; width: 700px; height: 360px; overflow: hidden; border-radius: 0 0 22px 22px; background: #f9f4ea; box-shadow: 0 24px 40px -24px rgba(0, 0, 0, .35); }
.co-doc img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

/* timeline */
.s-timeline { background: #ebe4d2; }
.tl-head { position: absolute; left: 80px; top: 54px; }
.tl-head h2 { font: 600 64px/1 var(--display); margin-top: 6px; }
.tl-phases { position: absolute; right: 80px; top: 80px; display: flex; gap: 10px; }
.tl-phases button { cursor: pointer; font: 600 18px var(--sans); padding: 8px 14px; border-radius: 99px; border: 2px solid var(--rule); color: var(--ink-3); transition: all .5s var(--ease); }
.tl-phases button:hover { border-color: var(--ink-3); }
.tl-phases button.lit { border-color: var(--ink-3); color: var(--ink-2); }
.tl-phases button.cur { background: var(--ink); border-color: var(--ink); color: var(--paper-3); }
.tl-axis { position: absolute; left: 80px; right: 80px; top: 520px; height: 2px; background: var(--ink-3); }
/* Phase bars: past phases thick grey, the current phase black, later phases not drawn yet. */
.tl-pb { position: absolute; top: 515px; height: 12px; border-radius: 6px; background: #b3aa98; border: 0 solid #ebe4d2; border-width: 0 2px; transform-origin: left; transform: scaleX(0); transition: transform .9s var(--ease), background .5s var(--ease); }
.tl-pb.lit { transform: scaleX(1); }
.tl-pb.cur { background: var(--ink); }
/* Events outside the current phase step back. */
.tl-ev .tl-lab, .tl-ev .tl-dot, .tl-ev .tl-stem { transition: opacity .5s var(--ease), color .5s var(--ease); }
.stage[data-at] .tl-ev:not(.now) .tl-lab { color: var(--ink-3); opacity: .55; }
.stage[data-at] .tl-ev:not(.now) .tl-dot, .stage[data-at] .tl-ev:not(.now) .tl-stem { opacity: .4; }
.tl-ev.now .tl-lab { box-shadow: 0 0 0 1px rgba(34,31,28,.18), 0 4px 12px rgba(34,31,28,.08); background: var(--card); }
.tl-tick { position: absolute; top: 540px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; font: 600 18px var(--sans); color: var(--ink-3); }
.tl-tick small { font: italic 16px var(--serif); font-weight: 400; }
.tl-ev { position: absolute; top: 521px; width: 0; height: 0; }
.tl-dot { position: absolute; left: -9px; top: -9px; width: 18px; height: 18px; border-radius: 50%; background: var(--paper); border: 4px solid var(--ink); z-index: 2; }
.tl-stem { position: absolute; left: -1px; width: 2px; background: var(--ink-3); opacity: .6; }
.tl-ev[style*="--lane:1"] .tl-stem, .tl-ev[style*="--lane:2"] .tl-stem, .tl-ev[style*="--lane:3"] .tl-stem, .tl-ev[style*="--lane:4"] .tl-stem { bottom: 0; height: calc(var(--lane) * 76px - 16px); }
.tl-ev[style*="--lane:-"] .tl-stem { top: 0; height: calc(var(--lane) * -76px + 4px); }
.tl-lab { position: absolute; z-index: 3; left: -10px; width: max-content; max-width: 250px; font: 21px/1.15 var(--serif); text-align: left; padding: 4px 8px; border-radius: 8px; background: #ebe4d2; box-shadow: 0 0 0 1px rgba(34,31,28,.08); transition: background .2s; }
.tl-ev.right .tl-lab { left: auto; right: -10px; text-align: right; }
.tl-lab b { display: block; font: 700 18px var(--sans); color: var(--ink-3); }
.tl-lab:hover { background: var(--card); }
.tl-ev[style*="--lane:1"] .tl-lab, .tl-ev[style*="--lane:2"] .tl-lab, .tl-ev[style*="--lane:3"] .tl-lab, .tl-ev[style*="--lane:4"] .tl-lab { bottom: calc(var(--lane) * 76px - 14px); }
.tl-ev[style*="--lane:-"] .tl-lab { top: calc(var(--lane) * -76px + 4px); }
.k-book .tl-dot { border-color: var(--mustard-ink); }
.k-essay .tl-dot { border-color: var(--slate); }
.k-honor .tl-dot { border-color: var(--blue); }
.k-this .tl-dot { background: var(--brick); border-color: var(--brick); width: 28px; height: 28px; left: -14px; top: -14px; box-shadow: 0 0 0 8px rgba(147, 89, 62, .2); }
.k-this .tl-lab { color: var(--brick); font-weight: 700; }
.tl-legend { position: absolute; left: 80px; bottom: 44px; display: flex; gap: 26px; font: 18px var(--sans); color: var(--ink-2); }
.tl-legend span::before { content: ""; display: inline-block; width: 12px; height: 12px; border-radius: 50%; border: 3px solid var(--ink); margin-right: 8px; vertical-align: -1px; }
.tl-legend .k-book::before { border-color: var(--mustard-ink); }
.tl-legend .k-essay::before { border-color: var(--slate); }
.tl-legend .k-this::before { background: var(--brick); border-color: var(--brick); }

/* Illustrated timeline, live: the picture, and a bar naming the phase. */
.tlx { position: absolute; inset: 0; background: #1c1916; }
.tlx-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s var(--ease); }
.tlx-img.cur { opacity: 1; }
.tlx-shot { position: absolute; inset: 0; overflow: hidden; opacity: 0; pointer-events: none; transition: opacity .6s var(--ease); }
.tlx-shot.cur { opacity: 1; }
.tlx-blur { position: absolute; left: -8%; top: -8%; width: 116%; height: 116%; object-fit: cover; filter: blur(26px); transform: scale(1.12); }
.tlx-fit { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.tlx-scrim { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; height: 320px; background: linear-gradient(transparent, rgba(20, 16, 12, .72)); pointer-events: none; }
.tlx-bar { position: absolute; z-index: 2; left: 56px; right: 56px; bottom: 44px; display: flex; gap: 12px; }
.tlx-ph { flex: 1; text-align: left; padding: 14px 16px 16px; border-radius: 12px; background: rgba(251, 248, 241, .92); color: var(--ink); }
.tlx-ph b { display: block; font: 600 22px/1.15 var(--display); }
.tlx-ph span { display: block; margin-top: 5px; font: italic 16px/1.2 var(--serif); color: var(--ink-2); }
.tlx-ph.cur { background: var(--ink); color: var(--paper-3); }
.tlx-ph.cur span { color: rgba(251, 248, 241, .7); }

/* Illustrated timeline, async: the picture, then the events of that phase. */
.tli-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; }
.tli-phases { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.tli-phases button { font: 600 13px/1 var(--sans); padding: 8px 12px; border-radius: 99px; border: 1px solid var(--rule); color: var(--ink-3); }
.tli-phases button.lit { color: var(--ink); border-color: var(--ink-3); }
.tli-phases button.cur { background: var(--ink); border-color: var(--ink); color: var(--paper-3); }
.tli-photo { position: relative; height: min(46vh, 480px); margin: 0; border-radius: 16px; overflow: hidden; background: #e7dcc6; }
.tli-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; opacity: 0; transition: opacity .5s var(--ease); }
.tli-photo img.cur { opacity: 1; }
.tli-caps { position: absolute; z-index: 1; left: 16px; bottom: 16px; }
.tli-caps div { display: none; padding: 8px 14px 10px; border-radius: 10px; background: rgba(251, 248, 241, .92); }
.tli-caps div.cur { display: block; }
.tli-caps b { display: block; font: 600 26px/1.05 var(--display); }
.tli-caps span { display: block; margin-top: 3px; font: italic 16px/1.2 var(--serif); color: var(--ink-2); }
.tli-body { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(220px, .72fr); gap: clamp(18px, 3vw, 36px); align-items: stretch; margin-top: 22px; }
.tli-lists { position: relative; min-height: 100%; }
.tli-list { display: none; margin: 0; padding: 4px 0 4px 18px; list-style: none; border-left: 2px solid var(--ink-3); }
.tli-list.cur { display: flex; flex-direction: column; justify-content: center; gap: 0; height: 100%; }
.tli-list li { position: relative; }
.tli-list li::before { content: ""; position: absolute; left: -25px; top: 14px; width: 10px; height: 10px; border-radius: 50%; border: 3px solid var(--ink); background: var(--paper); transition: transform .2s var(--ease), background .2s; }
.tli-list li.k-book::before { border-color: var(--mustard-ink); }
.tli-list li.k-essay::before { border-color: var(--slate); }
.tli-list li.k-this::before { background: var(--brick); border-color: var(--brick); }
.tli-list li:hover::before, .tli-list li.on::before { transform: scale(1.35); background: var(--ink); }
.tli-list li.k-book:hover::before, .tli-list li.k-book.on::before { background: var(--mustard-ink); }
.tli-list li.k-essay:hover::before, .tli-list li.k-essay.on::before { background: var(--slate); }
.tli-list li.k-this:hover::before, .tli-list li.k-this.on::before { background: var(--brick); }
.tli-lab { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 8px; align-items: baseline; width: 100%; padding: 7px 8px; border-radius: 8px; text-align: left; transition: background .2s; }
.tli-lab:hover, .tli-list li.on .tli-lab { background: rgba(251, 248, 241, .9); }
.tli-lab b { font: 700 13px/1 var(--sans); color: var(--ink-3); }
.tli-lab span { font: 17px/1.25 var(--serif); }
.tli-list li.k-this .tli-lab span { color: var(--brick); }
@media (max-width: 760px) {
  .tli-top { flex-direction: column; align-items: flex-start; }
  .tli-phases { justify-content: flex-start; }
  .tli-body { grid-template-columns: minmax(0, 1fr); }
  .tli-photo { height: 220px; }
}

/* ---------- present ---------- */
.presenting { overflow: hidden; }
.present { position: fixed; inset: 0; z-index: 100; background: var(--night); color: #ece6d7; display: grid; grid-template-rows: minmax(0, 1fr) 64px; animation: fadein .35s var(--ease); }
@keyframes fadein { from { opacity: 0; } }
.p-view { position: relative; overflow: hidden; }
.p-layer { position: absolute; left: 50%; top: 50%; width: calc(1600px * var(--s)); height: calc(900px * var(--s)); transform: translate(-50%, -50%); overflow: hidden; }
.p-layer.leave { animation: leave .5s var(--ease) forwards; pointer-events: none; }
@keyframes leave { to { opacity: 0; transform: translate(-50%, -50%) scale(.965); filter: blur(10px); } }
.p-bar { display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; padding: 0 16px 10px; transition: opacity .4s; }
.present.idle .p-bar { opacity: .25; }
.present.idle { cursor: none; }
.p-segs { display: flex; gap: 4px; }
.p-seg { flex: 1; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .18); overflow: hidden; }
.p-seg.opt { background: rgba(214, 182, 59, .3); }
.p-seg i { display: block; height: 100%; background: #f3ecdc; transform-origin: left; transition: transform .5s var(--ease); }
.p-seg:hover { background: rgba(255, 255, 255, .35); }
.p-ctrls { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.p-btn { color: #ece6d7; min-width: 30px; height: 30px; border-radius: 8px; display: inline-grid; place-items: center; font-size: 20px; }
.p-btn:hover { background: rgba(255, 255, 255, .1); }
.p-txt { font-size: 13px; padding: 0 10px; display: inline-flex; gap: 6px; align-items: center; }
.p-count { font-variant-numeric: tabular-nums; }
.p-title { color: #9a9285; }
.p-extras { display: inline-flex; gap: 6px; align-items: center; color: #c9c1b2; cursor: pointer; }
@media (max-width: 760px) { .p-title, .p-txt kbd, .p-extras { display: none; } }
.p-overview { position: absolute; inset: 0 0 64px; background: rgba(18, 17, 21, .96); overflow-y: auto; padding: 32px; z-index: 5; }
.ov-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; max-width: 1400px; margin: 0 auto; }
.ov-item { display: flex; flex-direction: column; gap: 8px; color: #ece6d7; animation: rise .5s var(--ease) both; }
.ov-thumb { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 8px; --s: .15; outline: 2px solid transparent; transition: outline-color .2s, transform .3s var(--ease); }
.ov-item.cur .ov-thumb, .ov-item:hover .ov-thumb { outline-color: var(--mustard); }
.ov-item:hover .ov-thumb { transform: translateY(-3px); }
.ov-cap { font-size: 13px; color: #b5ad9e; }
.ov-cap b { color: #ece6d7; margin-right: 4px; }

/* ---------- popover + drawer ---------- */
.pop { position: fixed; z-index: 300; width: min(380px, calc(100vw - 24px)); background: var(--ink); color: #f3ecdc; border-radius: 14px; padding: 16px 18px; box-shadow: 0 24px 50px -16px rgba(0, 0, 0, .5); opacity: 0; transform: translateY(6px) scale(.98); transition: opacity .22s var(--ease), transform .3s var(--ease); }
.pop.show { opacity: 1; transform: none; }
.pop[data-side="left"] { transform-origin: right center; transform: translateX(10px) scale(.98); }
.pop[data-side="left"].show { transform: none; }
.pop::before { content: ""; position: absolute; left: var(--ax, 50%); width: 12px; height: 12px; background: var(--ink); transform: translateX(-50%) rotate(45deg); }
.pop[data-side="below"]::before { top: -6px; }
.pop[data-side="above"]::before { bottom: -6px; }
.pop[data-side="left"]::before { top: var(--ay, 28px); left: auto; right: -6px; transform: translateY(-50%) rotate(45deg); }
.pop-t { font: 600 21px/1.2 var(--display); margin-bottom: 6px; color: #fff; }
.pop-b { font: 17px/1.5 var(--serif); color: #e6dfd0; }
.pop-b p { margin: 8px 0 0; }
.pop-b code { font-size: 14px; background: rgba(255, 255, 255, .1); padding: 1px 5px; border-radius: 4px; }
.pop-k { font: 11px/1.2 var(--caps); letter-spacing: .12em; text-transform: uppercase; filter: brightness(1.6); }
.pop-pat { display: flex; gap: 12px; align-items: center; margin-bottom: 8px; }
.pop-pat img { width: 48px; height: 48px; background: #fff; border-radius: 8px; padding: 3px; }
.pop-pat .pop-t { margin: 2px 0 0; }
.pop-go { margin-top: 12px; font: 600 13px/1 var(--sans); padding: 8px 12px; border-radius: 99px; background: var(--mustard); color: var(--ink); }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 250; width: min(480px, 100vw); background: var(--card); color: var(--ink); box-shadow: -30px 0 60px -20px rgba(0, 0, 0, .35); padding: 22px max(16px, env(safe-area-inset-right, 0px)) 28px 28px; overflow-y: auto; transform: translateX(105%); transition: transform .45s var(--ease); display: flex; flex-direction: column; gap: 12px; }
.drawer.open { transform: none; }
.dr-top { display: flex; justify-content: space-between; align-items: center; }
.dr-x { font: 600 13px var(--sans); color: var(--ink-3); display: inline-flex; gap: 6px; align-items: center; }
.drawer h3 { font: 600 34px/1.05 var(--display); margin: 4px 0 0; }
.dr-meta { color: var(--ink-3); font-size: 14px; }
.dr-strip { display: flex; gap: 2px; height: 34px; align-items: stretch; margin: 6px 0 8px; }
.dr-strip i { background: var(--c); opacity: .25; border-radius: 2px; min-width: 2px; }
.dr-strip i.fn { margin-top: 12px; }
.dr-strip i.on { opacity: 1; box-shadow: 0 0 0 2px var(--ink); }
.dr-text { margin: 0; font: 20px/1.6 var(--serif); padding: 4px 0 4px 18px; border-left: 3px solid var(--rule); }
.dr-text mark { background: linear-gradient(transparent 55%, rgba(214, 182, 59, .55) 55%); color: inherit; padding: 0 2px; }
.dr-foot { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.dr-foot p { width: 100%; font-size: 13px; margin: 6px 0 0; }

@media (prefers-reduced-motion: reduce) {
  .enter .a, .lc, .ov-item, .present, .mb-menu { animation: none !important; }
  .stage [data-step] { transition: opacity .2s; }
  .stage [data-step].off { transform: none; filter: none; }
  .p-layer.leave { animation-duration: .01s; }
}

/* ---------- mode switch + clickable cue ---------- */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mode-sw { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: 999px; background: var(--paper); border: 1px solid var(--rule); }
.mode-sw button { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: 999px; font: 600 13px/1 var(--sans); color: var(--ink-2); transition: background .2s, color .2s; }
.mode-sw button:hover { color: var(--ink); }
.mode-sw button[aria-pressed="true"] { background: var(--ink); color: var(--paper-3); cursor: default; }
.mode-sw button[aria-pressed="true"] kbd { border-color: var(--paper-3); }
.mode-sw.dark { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .14); }
.mode-sw.dark button { color: #c9c1b2; }
.mode-sw.dark button[aria-pressed="true"] { background: #ece6d7; color: var(--ink); }
.mode-sw.dark button[aria-pressed="true"] kbd { border-color: var(--ink); }
@media (max-width: 760px) { .mode-sw kbd { display: none; } }

/* The cue itself. Inline cues trail the text; .cue-b sits in a tile's corner.
   html[data-cue-mode="info"] turns them on (set once by the engine). */
.cue { display: none; flex: none; width: .7em; height: .7em; margin-left: .22em; vertical-align: .5em; pointer-events: none; background: center / contain no-repeat; transition: transform .25s var(--ease); }
[data-cue-mode="info"] .cue { display: inline-block; }
:hover > .cue { transform: scale(1.25); }
@keyframes cue-pulse { 0% { box-shadow: 0 0 0 0 rgba(147, 89, 62, .55); } 70%, 100% { box-shadow: 0 0 0 .55em rgba(147, 89, 62, 0); } }
/* corner cues on tiles and covers (stage px) */
[data-cue-mode] .cue-b { position: absolute; z-index: 6; top: 14px; right: 14px; width: 38px; height: 38px; margin: 0; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .25)); }
@keyframes cue-pulse-b { 0% { box-shadow: 0 0 0 0 rgba(147, 89, 62, .55); } 70%, 100% { box-shadow: 0 0 0 12px rgba(147, 89, 62, 0); } }
[data-cue-mode] .pg-cell > .cue-b { top: 3px; right: 3px; width: 16px; height: 16px; filter: none; }
/* The first view of the map is just the map; the cues arrive with the focus step. */
[data-cue-mode] .pg-cell > .cue-b { transition: opacity .5s var(--ease); }
[data-cue-mode] .s-patterns[data-at="0"] .pg-cell > .cue-b { opacity: 0; }
/* footnote numbers take the cue colour so every clickable reads as one family */


[data-cue-mode] .tl-lab > .cue-b { top: -8px; right: -8px; width: 18px; height: 18px; filter: none; }
[data-cue-mode] .tl-ev.right .tl-lab > .cue-b { right: auto; left: -8px; }
.co-head .cue { width: .5em; height: .5em; }
@media (prefers-reduced-motion: reduce) { .cue { animation: none !important; } }

/* ---------- full-width title + navigation hint ---------- */
.w-hero .wf { margin: 0 0 56px; }
.w-hero .sbox { border-radius: 0; box-shadow: none; }
.w-hero .t-hero { left: 0; width: 1600px; } /* bleed the title image to both edges */
.w-hero .t-box { left: 462px; padding-left: 119px; } /* still covers the box baked into the image once it is scaled up */
.w-hero .tmeta { max-width: 1360px; margin: 0 auto; padding: 24px max(16px, env(safe-area-inset-right, 0px)) 0 max(16px, env(safe-area-inset-left, 0px)); }
@media (min-width: 700px) { .w-hero .tmeta { padding-left: 40px; padding-right: 40px; } }
.w-hero + .w-body { padding-top: 0; }
/* The rail stays out of the way until the reader is past the title. */
.w-rail { transition: opacity .5s var(--ease), transform .6s var(--ease); }
.walk:not(.past-hero) .w-rail { opacity: 0; transform: translateY(18px); pointer-events: none; }

.w-hint { position: absolute; z-index: 5; left: 50%; bottom: 28px; translate: -50% 0; display: flex; align-items: center; gap: 12px; white-space: nowrap; padding: 10px 18px 10px 14px; border-radius: 999px; background: rgba(18, 17, 21, .58); border: 1px solid rgba(255, 255, 255, .2); -webkit-backdrop-filter: blur(12px) saturate(1.2); backdrop-filter: blur(12px) saturate(1.2); box-shadow: 0 16px 40px -18px rgba(0, 0, 0, .6); font: 600 13px/1 var(--sans); color: #f3ecdc; transition: opacity .45s var(--ease), transform .45s var(--ease), background .2s; animation: hint-in .9s .9s var(--ease) both, hint-float 3.6s 1.8s ease-in-out infinite; }
.w-hint:hover { background: rgba(18, 17, 21, .75); }
.walk.moved .w-hint { opacity: 0; transform: translateY(10px); pointer-events: none; animation: none; }
@keyframes hint-in { from { opacity: 0; transform: translateY(12px); } }
@keyframes hint-float { 50% { transform: translateY(-4px); } }
.wh-mouse { position: relative; flex: none; width: 17px; height: 25px; border: 2px solid currentColor; border-radius: 10px; opacity: .8; }
.wh-mouse i { position: absolute; left: 50%; top: 4px; width: 3px; height: 6px; margin-left: -1.5px; border-radius: 2px; background: var(--mustard); animation: wheel 1.7s ease-in-out infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(-2px); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(9px); } }
.wh-keys { display: inline-flex; gap: 4px; }
.wh-keys kbd { opacity: 1; min-width: 24px; height: 24px; display: inline-grid; place-items: center; padding: 0 6px; font: 600 12px/1 var(--sans); color: #f3ecdc; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .28); border-bottom-width: 2px; border-radius: 6px; animation: key-tap 3.5s ease-in-out infinite; }
.wh-keys kbd.wide { padding: 0 10px; }
.wh-keys kbd:nth-child(2) { animation-delay: .45s; }
@keyframes key-tap { 0%, 14%, 100% { background: rgba(255, 255, 255, .1); color: #f3ecdc; transform: none; border-bottom-width: 2px; } 6% { background: var(--brick); color: var(--paper-3); border-color: var(--brick); transform: translateY(1px); border-bottom-width: 1px; } }
.wh-touch { display: none; }
@media (max-width: 700px), (hover: none) { .wh-text, .wh-keys { display: none; } .wh-touch { display: inline; } }
@media (prefers-reduced-motion: reduce) { .w-hint, .wh-mouse i, .wh-keys kbd { animation: none !important; } }

/* ---------- cover title (async, modules with essay.cover) ---------- */
.wf-cover .wf-pin { position: relative; }
.cv { position: relative; overflow: hidden; height: 72vh; min-height: 380px; background: #f7e9d7; container-type: inline-size; }
.cv-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; will-change: transform; animation: cv-settle 2.6s var(--ease) both; }
@keyframes cv-settle { from { opacity: 0; scale: 1.06; } 30% { opacity: 1; } }
.cv-text { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; text-align: center; padding: clamp(28px, 6vh, 64px) 24px 0; will-change: transform, opacity; }
.cv-text::before { content: ""; position: absolute; z-index: -1; left: 50%; top: 0; width: min(1100px, 92%); height: 115%; translate: -50% 0; background: radial-gradient(closest-side, rgba(247, 233, 215, .9), rgba(247, 233, 215, 0)); pointer-events: none; }
.cv-text > * { animation: cv-rise 1.1s var(--ease) both; animation-delay: calc(var(--i) * 130ms + 250ms); }
@keyframes cv-rise { from { opacity: 0; translate: 0 18px; filter: blur(6px); } }
.cv-eyebrow { font: 12px/1.3 var(--caps); letter-spacing: .3em; text-transform: uppercase; color: var(--brick); }
.cv-title { margin: clamp(10px, 2vh, 20px) 0 0; font: 600 clamp(38px, min(6.4cqw, 8.4vh), 96px)/1 var(--display); letter-spacing: -.012em; color: var(--ink); text-wrap: balance; }
.cv-by { display: flex; align-items: center; gap: 14px; margin-top: clamp(10px, 1.8vh, 18px); font: 400 clamp(19px, min(2cqw, 2.8vh), 28px)/1.2 var(--serif); color: var(--ink); }
.cv-name { font-variant: small-caps; letter-spacing: .07em; }
.cv-year { font-style: italic; color: var(--ink-2); }
.cv-year::before { content: "·"; margin-right: 12px; font-style: normal; color: var(--ink-3); }
.cv-rule { width: clamp(24px, 4cqw, 64px); height: 1px; background: currentColor; opacity: .45; }
.cv-meta { display: flex; flex-wrap: wrap; justify-content: center; margin-top: clamp(8px, 1.6vh, 16px); font: 13px/1.5 var(--sans); letter-spacing: .02em; color: var(--ink-2); }
.cv-meta span + span::before { content: "·"; margin: 0 10px; color: var(--ink-3); }
.cv-meta em { font-family: var(--serif); font-size: 15px; }
.wf-cover .tmeta { padding-top: 16px; }
.wf-cover .tmeta-l:empty { display: none; }
.wf-cover .tmeta-r { flex-direction: row; align-items: center; justify-content: space-between; width: 100%; }
@media (max-width: 700px) {
  .cv { height: auto; min-height: 0; display: flex; flex-direction: column; container-type: normal; }
  .cv-text { padding: 28px 16px 18px; }
  .cv-title { font-size: clamp(32px, 9vw, 44px); }
  .cv-by { font-size: 18px; }
  .cv-rule { width: 20px; }
  .cv-text { order: -1; }
  .cv-img { position: relative; inset: auto; height: auto; aspect-ratio: 16 / 11; object-position: 50% 85% !important; }
  .cv-meta { flex-direction: column; gap: 2px; }
  .cv-meta span + span::before { content: none; }
  .wf-cover .tmeta-r { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) { .cv-img, .cv-text > * { animation: none !important; } }
/* Live opening slide: the async cover at stage scale (async sizes × ~1.34, as on a 1190px-wide page column) */
.stage .cv-live { position: absolute; inset: 0; height: 900px; min-height: 0; }
.stage .cv-live .cv-text { padding: 72px 32px 0; }
.stage .cv-live .cv-eyebrow { font-size: 16px; }
.stage .cv-live .cv-title { margin: 24px 0 0; font-size: calc(100px * var(--tz, 1)); }
.stage .cv-live .cv-by { margin-top: 22px; gap: 19px; font-size: 32px; }
.stage .cv-live .cv-year::before { margin-right: 16px; }
.stage .cv-live .cv-rule { width: 64px; }

/* ---------- writer profile (async, modules with writer.photo) ---------- */
.pf { position: relative; padding: 18px 0 0; }
.pf-frame { position: relative; isolation: isolate; }
.pf-photo { position: relative; z-index: 1; aspect-ratio: 1400 / 849; border-radius: 18px; overflow: hidden; background: #e9dcc4; box-shadow: 0 40px 70px -40px rgba(34, 31, 28, .6), 0 0 0 1px rgba(34, 31, 28, .06); clip-path: inset(10% 14% 10% 14% round 18px); opacity: 0; transition: clip-path 1.4s var(--ease), opacity .8s var(--ease); }
.pf-photo img { position: absolute; left: 0; top: -8%; width: 100%; height: 116%; object-fit: cover; will-change: translate; }
.wf-profile.seen .pf-photo { clip-path: inset(0 round 18px); opacity: 1; }
.pf-shape { position: absolute; pointer-events: none; will-change: translate; opacity: 0; transition: opacity 1s .5s var(--ease); }
.wf-profile.seen .pf-shape { opacity: 1; }
.pf-sun { z-index: 0; right: -30px; bottom: -44px; width: clamp(80px, 11vw, 150px); aspect-ratio: 1; border-radius: 50%; background: var(--mustard); }
.pf-bars { z-index: 2; top: 16%; left: -22px; width: 54px; height: 32%; background: repeating-linear-gradient(90deg, var(--ink) 0 3px, transparent 3px 11px); opacity: 0; }
.wf-profile.seen .pf-bars { opacity: .85; }
.pf-block { z-index: 0; left: -26px; bottom: -34px; width: 42%; height: 46%; border-radius: 14px; background: var(--brick); }
.pf-card { position: relative; z-index: 3; width: min(540px, 92%); margin: -120px 5% 0 auto; padding: 26px 32px 28px; border-radius: 18px; background: var(--card); box-shadow: 0 30px 60px -30px rgba(34, 31, 28, .55), 0 0 0 1px rgba(34, 31, 28, .06); opacity: 0; transform: translateY(40px); transition: opacity .9s .35s var(--ease), transform 1.1s .35s var(--ease); }
.wf-profile.seen .pf-card { opacity: 1; transform: none; }
.pf-eyebrow { font: 12px/1 var(--caps); letter-spacing: .28em; text-transform: uppercase; color: var(--brick); }
.pf-name { margin: 10px 0 0; font: 600 clamp(36px, 4.4vw, 58px)/1 var(--display); letter-spacing: -.01em; }
.pf-life { margin-top: 10px; font: 400 24px/1.2 var(--serif); font-variant-numeric: oldstyle-nums; color: var(--ink-2); }
.pf-life .term { border-bottom-color: var(--mustard-ink); }
.pf-roles { display: flex; flex-wrap: nowrap; gap: 6px; margin-top: 16px; }
.pf-roles span, .pf-roles .term { font: 600 11px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; padding: 7px 10px; border-radius: 99px; background: var(--paper-2); color: var(--ink-2); border: 0; }
.pf-roles .term { cursor: pointer; }
.pf-roles .term:hover { background: rgba(214, 182, 59, .3); }

.pf-body { display: grid; grid-template-columns: minmax(200px, 260px) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); margin-top: 64px; scroll-margin-top: 96px; }
.pf-facts { position: sticky; top: 32px; align-self: start; }
.pf-facts dl { margin: 0; }
.pf-facts dl > div { padding: 17px 0 18px; border-top: 1px solid var(--rule); opacity: 0; transform: translateY(10px); transition: opacity .6s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i) * 70ms + 200ms); }
.wf-profile.seen .pf-facts dl > div { opacity: 1; transform: none; }
.pf-facts dt { font: 700 12px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--brick); margin-bottom: 10px; }
.pf-facts dd { margin: 0; font: 16px/1.4 var(--serif); color: var(--ink); }
.pf-facts dd span { display: block; text-wrap: balance; }
.pf-facts dd span + span { color: var(--ink-2); font-size: 15px; }
.pf-bio { max-width: 66ch; }
.pf-bio h3 { position: relative; padding-top: 18px; font: 600 34px/1.1 var(--display); }
.pf-bio h3::before { content: ""; position: absolute; left: 0; top: 0; width: 44px; height: 2px; background: var(--brick); }
.pf-bio h3:not(:first-child) { margin-top: 48px; }
.pf-bio h3 + p::first-letter { float: left; margin: .07em .09em 0 0; font: 600 4.1em/.78 var(--display); color: var(--brick); }
.pf-bio p { font-size: 20px; }
@media (max-width: 900px) {
  .pf-body { grid-template-columns: minmax(0, 1fr); margin-top: 44px; }
  .pf-facts { position: static; }
  .pf-facts dl { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); column-gap: 20px; }
  .pf-card { margin: -18px auto 0 12px; width: calc(100% - 24px); padding: 20px 22px 22px; }
  .pf-roles { flex-wrap: wrap; }
  .pf-sun { right: -10px; bottom: -22px; width: 64px; }
  .pf-bars, .pf-block { left: -10px; }
  .pf-bio p { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) { .pf-photo, .pf-card, .pf-shape, .pf-facts dl > div { transition: none; } }

/* ---------- info cue: the plus-sized circle with a letter i, pulsing ---------- */
[data-cue-mode="info"] .cue { display: inline-block; }
[data-cue-mode="info"] .cue { border-radius: 50%; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><circle cx='12' cy='12' r='12' fill='%2393593e'/><circle cx='12' cy='7.1' r='1.65' fill='%23fbf8f1'/><path d='M12 10.6v7.2' stroke='%23fbf8f1' stroke-width='2.5' stroke-linecap='round'/></svg>"); }
[data-cue-mode="info"] .cue { width: .74em; height: .74em; animation: cue-pulse 2.6s ease-out infinite; }
[data-cue-mode="info"] .cue-b { animation-name: cue-pulse-b; }
[data-cue-mode="info"] .cue.cue-x { width: .6em; height: .6em; margin-left: .3em; vertical-align: .3em; border-radius: 0; animation: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2393593e' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><path d='M10 4H5a1 1 0 0 0-1 1v14a1 1 0 0 0 1 1h14a1 1 0 0 0 1-1v-5'/><path d='M14 4h6v6M20 4l-9 9'/></svg>"); }
/* numbered footnotes pulse too, so they read as clickable */
[data-cue-mode="info"] .fn { background: var(--brick); }
[data-cue-mode="info"] .fn:hover { background: var(--ink); }
html:not([data-cue-mode="off"]) .fn { animation: fn-pulse 2.6s ease-out infinite; }
@keyframes fn-pulse { 0% { box-shadow: 0 0 0 0 rgba(147, 89, 62, .55); } 70%, 100% { box-shadow: 0 0 0 .5em rgba(147, 89, 62, 0); } }
@media (prefers-reduced-motion: reduce) { .fn { animation: none !important; } }

/* async layouts: footnote-sized cues for tiles outside the scaled slides */
[data-cue-mode] .wf-open .cue-b { width: 28px; height: 28px; }

/* ---------- async: frameless layouts (A.feature / shelf / list / triad) ---------- */
.wf-open .op { padding: 12px 0 8px; }
.wf-open .rv { opacity: 0; translate: 0 26px; transition: opacity .9s var(--ease), translate 1.1s var(--ease); transition-delay: calc(var(--i, 0) * 90ms + 80ms); }
.wf-open.seen .rv { opacity: 1; translate: 0 0; }
.wf-open h2 { margin: 6px 0 0; font: 600 clamp(36px, 4.2vw, 56px)/1.02 var(--display); letter-spacing: -.01em; }
.wf-open [data-drift] { will-change: translate; }

/* Infinite Jest: the book floats beside the text */
.of { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.of-art { position: relative; isolation: isolate; padding: 30px 0; }
.of-sun { position: absolute; z-index: -1; left: -6%; top: -4%; width: 62%; aspect-ratio: 1; border-radius: 50%; background: var(--mustard); opacity: .9; }
.of-book { width: 100%; border-radius: 14px; rotate: -2.5deg; box-shadow: 0 50px 70px -40px rgba(34, 31, 28, .7); }
.of-bleed { position: relative; }
.of-bleed img { display: block; width: 100%; height: min(72vh, 760px); object-fit: cover; object-position: center center; }
.of-cap { position: absolute; top: 0; right: 0; max-width: 380px; background: #121112; color: #fbf6ea; padding: 20px 24px 18px 26px; border-bottom-left-radius: 18px; }
.of-cap .eyebrow { color: #d23b2e; letter-spacing: .14em; font-size: 13px; text-transform: uppercase; }
.wf-open .of-cap h2 { margin: 6px 0 0; color: #fff; font: 600 36px/1.05 var(--display); }
.of-book.scene { rotate: 0deg; }
.of-title span { margin-left: .3em; font-weight: 400; font-style: italic; font-size: .6em; color: var(--ink-3); }
.of-text p { font: 19px/1.62 var(--serif); margin: 16px 0 0; }
.of-stats { display: flex; gap: clamp(18px, 3vw, 40px); margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--rule); }
.of-stats b { display: block; font: 600 clamp(30px, 3.4vw, 46px)/1 var(--display); color: var(--brick); }
.of-stats span { display: block; margin-top: 6px; font: 13px/1.35 var(--sans); color: var(--ink-2); max-width: 16ch; }

/* Recommended books: three covers, centered */
.os-head, .ol-head { text-align: center; }
.os-row { display: flex; justify-content: center; gap: clamp(20px, 4vw, 64px); margin-top: 40px; }
.os-book { display: flex; flex-direction: column; align-items: center; text-align: center; width: clamp(130px, 17vw, 220px); }
.os-cover { position: relative; display: block; width: 100%; aspect-ratio: 310 / 456; border-radius: 12px; overflow: hidden; box-shadow: 0 34px 50px -30px rgba(34, 31, 28, .65); transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.os-cover img { width: 100%; height: 100%; object-fit: cover; }
.os-book:hover .os-cover { transform: translateY(-10px) rotate(-1.5deg); box-shadow: 0 46px 60px -30px rgba(34, 31, 28, .7); }
.os-year { margin-top: 20px; font: 700 18px/1 var(--sans); color: var(--ink-3); letter-spacing: .04em; }
.os-name { margin-top: 6px; font: 600 clamp(19px, 1.8vw, 24px)/1.15 var(--display); }
.os-kind { margin-top: 4px; font: italic 16px/1.2 var(--serif); color: var(--ink-2); }

/* Recommended essays: three collections as columns */
.ol-head p { margin: 10px auto 0; max-width: 52ch; font: 15px/1.5 var(--sans); color: var(--ink-3); }
.ol-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 44px); margin-top: 40px; }
.ol-col { display: flex; flex-direction: column; align-items: flex-start; }
.ol-top { display: flex; gap: 14px; align-items: center; width: 100%; padding-bottom: 14px; border-bottom: 2px solid var(--ink); }
.ol-cover { flex: none; width: 52px; border-radius: 5px; box-shadow: 0 14px 20px -12px rgba(34, 31, 28, .7); }
.ol-top > div { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.ol-col .li-book { font-size: 19px; line-height: 1.15; }
.ol-year { font: 12px/1.2 var(--sans); letter-spacing: .04em; color: var(--ink-3); }
.ol-col ul { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; width: 100%; }
.ol-col li { padding-top: 12px; border-top: 1px solid var(--rule); }
.ol-col .li-essay { font: 20px/1.2 var(--display); }
.ol-col li.b .li-essay { font-weight: 700; }
.ol-col li.cur .li-essay { font-style: italic; font-weight: 700; color: var(--brick); }
.ol-meta { display: flex; gap: 8px; align-items: center; margin-top: 4px; font: 12px/1.3 var(--sans); color: var(--ink-3); }
.ol-meta i { font-style: normal; font-weight: 700; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--paper-3); background: var(--brick); padding: 3px 6px; border-radius: 99px; }

/* Ethos, logos, pathos: three ovals joined by plus signs */
.ot { text-align: center; }
.ot-lead { font-weight: 400 !important; }
.ot-row { display: flex; justify-content: center; align-items: flex-start; gap: clamp(8px, 1.6vw, 24px); margin-top: 36px; }
.ot-item { position: relative; display: flex; flex-direction: column; align-items: center; width: clamp(150px, 20vw, 250px); }
.ot-img { display: block; width: 100%; aspect-ratio: 460 / 520; border-radius: 50%; overflow: hidden; box-shadow: 0 30px 44px -28px rgba(34, 31, 28, .6); transition: transform .5s var(--ease); }
.ot-img img { width: 100%; height: 100%; object-fit: cover; }
.ot-item:hover .ot-img { transform: scale(1.03); }
.ot-key { margin-top: 18px; font: 15px/1 var(--caps); letter-spacing: .24em; text-transform: uppercase; color: var(--c); }
.ot-a { margin-top: 8px; font: 22px/1.2 var(--display); }
.ot-plus { align-self: center; margin-top: -60px; font: 300 clamp(30px, 3.4vw, 48px)/1 var(--display); color: var(--ink-3); }
.ot-coda { margin: 32px 0 0; font: italic 22px/1.3 var(--serif); color: var(--ink-2); }

@media (max-width: 760px) {
  .of { grid-template-columns: minmax(0, 1fr); }
  .os-row { gap: 14px; }
  .os-name { font-size: 16px; }
  .ol-cols { grid-template-columns: minmax(0, 1fr); }
  .ot-row { flex-wrap: wrap; row-gap: 30px; }
  .wf-open [data-drift] { translate: none !important; }
  .ot-plus { display: none; }
  .ot-item { width: 42%; }
}
@media (prefers-reduced-motion: reduce) { .wf-open .rv { transition: none; opacity: 1; translate: none; } }

/* ---------- questions: essay + patterns ---------- */
.tk-k { font: 12px/1 var(--caps); letter-spacing: .24em; text-transform: uppercase; color: var(--brick); margin: 0 0 14px; }
.tk-k:not(:first-child) { margin-top: 30px; }
.tk-pat { display: grid; gap: 14px; margin-bottom: 28px; padding: 20px 22px; border-radius: 14px; background: var(--paper-2); }
.tk-pat p { margin: 0; font: 20px/1.5 var(--serif); }
.tk-icons { display: flex; gap: 10px; flex-wrap: wrap; }
.tk-icon { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 99px; background: var(--card); border: 1px solid var(--rule); font: 600 13px/1 var(--sans); }
.tk-icon img { width: 26px; height: 26px; }
.tk-icon:hover { border-color: var(--ink-3); }

/* ---------- rail: open the reading ---------- */
.rl-read { display: inline-flex; align-items: center; justify-content: center; gap: 8px; margin-top: 18px; padding: 11px 16px; border-radius: 12px; background: var(--ink); color: var(--paper-3); font: 600 14px/1 var(--sans); text-decoration: none; transition: background .2s; }
.rl-read:hover { background: #000; }

/* Reading switches (Patterns, Word lenses, Member comments) under "Jump to reading", shown while
   the reading is on screen; the admin's "Open lesson" sits below them. */
.rl-opt { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-top: 6px; }
.rl-opt[hidden] { display: none; }
.rl-read + .rl-opt { margin-top: 12px; }
.rl-lens { display: flex; align-items: center; gap: 10px; padding: 6px 4px; text-align: left; font: 600 14px/1 var(--sans); color: var(--ink-2); cursor: pointer; }
.rl-lens:disabled { cursor: progress; opacity: .6; }
.rl-sw { position: relative; flex: none; width: 34px; height: 20px; border-radius: 10px; background: rgba(34, 31, 28, .2); transition: background .2s; }
.rl-sw i { position: absolute; left: 2px; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .25); transition: translate .2s var(--ease); }
.rl-lens[aria-checked="true"] .rl-sw { background: var(--brick); }
.rl-lens[aria-checked="true"] .rl-sw i { translate: 14px 0; }
.rl-eye { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; color: var(--ink-3); cursor: help; transition: background .2s, color .2s; }
.rl-eye:hover, .rl-eye:focus-visible { background: rgba(34, 31, 28, .07); color: var(--ink); }
.rl-eye svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.rl-admin { margin-top: 16px; padding-top: 12px; border-top: 1px dashed var(--rule); }
.rl-tag { padding: 3px 7px; border-radius: 99px; background: var(--paper-3); font: 700 9.5px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.rl-admin .rl-lens[aria-checked="true"] .rl-sw { background: #5f7d5a; }
.rl-hint { display: none; flex-basis: 100%; margin: 2px 0 0 4px; font: 12px/1.4 var(--sans); color: var(--ink-3); }
.rl-admin:has([aria-checked="true"]) .rl-hint { display: block; }
/* The word lenses' key, in a popup behind the eye */
.pop-key { display: grid; gap: 10px; margin: 6px 0 0; padding: 0; list-style: none; font: 15px/1.35 var(--sans); }
.pop-key li { display: grid; grid-template-columns: 22px 1fr; align-items: center; gap: 10px; }
.pop-key i { height: 3px; border-radius: 2px; background: color-mix(in srgb, var(--c) 100%, #fff 25%); }
.pop-key b { display: block; color: #fff; font-weight: 600; }
.pop-note { margin: 12px 0 0 !important; font: 13px/1.4 var(--sans); color: #b9b1a2; }
.wlx-word { --c: var(--mustard-ink); }
.wlx-name { --c: var(--blue); }
.wlx-phrase { --c: var(--brick); }
/* Underlines, not fills: highlight layers (annotations) share the same text. */
.wlx { cursor: help; text-decoration: underline 3px color-mix(in srgb, var(--c) 70%, transparent); text-underline-offset: 4px; text-decoration-skip-ink: none; transition: text-decoration-color .2s; }
.wlx:hover { text-decoration-color: var(--c); }

/* ---------- title typeface switch ---------- */
.tf-sw { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 6px 0 12px; border-radius: 999px; background: var(--paper); border: 1px solid var(--rule); }
.tf-sw span { font: 600 10px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.tf-sw select { appearance: none; -webkit-appearance: none; border: 0; border-radius: 999px; padding: 6px 26px 6px 10px; font: 600 12px/1 var(--sans); color: var(--ink); cursor: pointer; background: var(--card) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'><path d='M1 1l4 4 4-4' fill='none' stroke='%237d7366' stroke-width='1.5'/></svg>") right 9px center / 9px no-repeat; box-shadow: 0 1px 3px rgba(34, 31, 28, .18); }
:root { --tf: var(--display); --tw: 600; --tls: -.012em; --tz: 1; --tstyle: normal; }
[data-title-font="fraunces"] { --tf: 'Fraunces', Georgia, serif; --tw: 600; --tls: -.025em; --tz: .9; }
[data-title-font="playfair"] { --tf: 'Playfair Display', Georgia, serif; --tw: 600; --tls: -.015em; --tz: .88; }
[data-title-font="instrument"] { --tf: 'Instrument Serif', Georgia, serif; --tw: 400; --tls: -.01em; --tz: 1.12; }
[data-title-font="bodoni"] { --tf: 'Bodoni Moda', Georgia, serif; --tw: 500; --tls: -.02em; --tz: .92; }
.cv-title { font-family: var(--tf); font-weight: var(--tw); letter-spacing: var(--tls); font-size: calc(clamp(38px, min(6.4cqw, 8.4vh), 96px) * var(--tz)); }
@media (max-width: 700px) { .cv-title { font-size: calc(clamp(32px, 9vw, 44px) * var(--tz)); } }

/* ---------- headless background frames ---------- */
.wf-open, .wf-profile, .wf-bare { position: relative; }

/* the slide build without its slide: no paper, frame, shadow or grain */
.sbox.bare { background: transparent; box-shadow: none; border-radius: 0; }
.sbox.bare .stage { background: transparent; }
.sbox.bare .stage::after, .sbox.bare .px.tf-sun { display: none; }

/* ---------- boxed, stepped layouts (books, essays) ---------- */
.obox { position: relative; isolation: isolate; overflow: hidden; border-radius: 28px; padding: clamp(26px, 3.6vw, 52px) clamp(20px, 3.6vw, 52px); background: var(--paper-3); border: 1px solid var(--rule); box-shadow: 0 40px 80px -60px rgba(34, 31, 28, .5); }
.obox-art { position: absolute; z-index: -1; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.op [data-step].off { opacity: 0; translate: 0 16px; pointer-events: none; }
.op [data-step] { transition: opacity .6s var(--ease), translate .7s var(--ease); }
.op .steps { display: none; }
.os-row { margin-top: 30px; }
.os-book { cursor: pointer; opacity: .38; filter: grayscale(.6); scale: .93; transition: opacity .75s var(--ease), filter .75s var(--ease), scale .75s var(--ease), translate .75s var(--ease); }
.os-book .os-cover { transition: transform .5s var(--ease), box-shadow .75s var(--ease); }
.os-book.cur { opacity: 1; filter: none; scale: 1; translate: 0 -12px; }
.os-book.cur .os-cover { box-shadow: 0 50px 60px -30px rgba(34, 31, 28, .7); }
.os-book:not(.cur):hover { opacity: .7; }
.os-info { display: grid; margin: 26px auto 0; max-width: 620px; min-height: 104px; text-align: center; }
.os-pane { grid-area: 1 / 1; margin: 0; opacity: 0; translate: 0 10px; transition: opacity .75s var(--ease), translate .75s var(--ease); pointer-events: none; }
.os-pane.cur { opacity: 1; translate: 0 0; pointer-events: auto; }
.os-k { font: 11px/1 var(--caps); letter-spacing: .22em; text-transform: uppercase; color: var(--brick); }
.os-pane p { margin: 10px 0 0; font: 19px/1.5 var(--serif); color: var(--ink); }
.os-link { display: inline-block; margin-top: 10px; font: 13px/1 var(--sans); color: var(--brick); text-decoration: none; }
.os-link:hover { text-decoration: underline; }
.os-hint { align-self: center; font: italic 17px/1.4 var(--serif) !important; color: var(--ink-3) !important; }
.ol-cols { margin-top: 30px; }
@media (max-width: 760px) { .obox { border-radius: 20px; } .os-pane p { font-size: 17px; } }

/* ---------- live: questions to bring ---------- */
.s-talk .tq-head { position: absolute; left: 110px; top: 90px; }
.s-talk .tq-head .eyebrow { font-size: 22px; }
.s-talk .tq-head h2 { margin: 10px 0 0; font: 600 76px/1 var(--display); }
.tq-list { position: absolute; left: 110px; right: 110px; top: 270px; margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 26px; }
.tq-list li { display: grid; grid-template-columns: 56px 1fr; gap: 20px; align-items: baseline; }
.tq-n { font: 600 44px/1 var(--display); color: var(--brick); }
.tq-list p { margin: 0; font: 31px/1.35 var(--serif); }
.tq-pat { position: absolute; left: 110px; right: 110px; bottom: 60px; display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; padding: 24px 30px; border-radius: 22px; background: var(--paper-2); box-shadow: 0 0 0 1px rgba(34, 31, 28, .08); }
.tq-pat .tk-icons { flex-direction: column; gap: 8px; }
.tq-pat .tk-icon { font-size: 18px; padding: 6px 16px 6px 6px; }
.tq-pat .tk-icon img { width: 34px; height: 34px; }
.tq-pat p { margin: 0; font: italic 28px/1.38 var(--serif); }
@media (max-width: 700px) { .tf-sw { display: none; } }

/* Recommended books on the desk art: the box takes the art's 16:9 shape so the collage keeps
   to the left ~42%, and the shelf is laid out in the open cream space on the right. */
.os.has-art { aspect-ratio: 16 / 9; padding: 0; background: #f3e7cf; container-type: inline-size; }
.os.has-art .obox-art { object-position: left center; }
.os.has-art .os-main { position: absolute; left: 43%; right: 3%; top: 0; bottom: 0; display: flex; flex-direction: column; justify-content: center; }
.os.has-art .eyebrow { font-size: 11px; }
.os.has-art h2 { font-size: clamp(28px, 4.6cqw, 54px); }
.os.has-art .os-row { margin-top: 2.6cqw; gap: 2.4cqw; }
.os.has-art .os-book { width: 13.2cqw; }
.os.has-art .os-year { margin-top: 1.4cqw; font-size: clamp(12px, 1.5cqw, 17px); }
.os.has-art .os-name { font-size: clamp(14px, 1.9cqw, 22px); }
.os.has-art .os-kind { font-size: clamp(12px, 1.5cqw, 16px); }
.os.has-art .os-info { margin-top: 1.8cqw; min-height: 9cqw; max-width: none; }
.os.has-art .os-pane p { font-size: clamp(14px, 1.75cqw, 19px); }
@media (max-width: 760px) {
  .os.has-art { aspect-ratio: auto; padding: 24px 16px; }
  .os.has-art .obox-art { opacity: .28; }
  .os.has-art .os-main { position: static; }
  .os.has-art .os-book { width: 28vw; }
}

/* Ethos, logos, pathos: the lead lines up with the panes on the right */
.tf-lead { top: 232px; }

/* ---------- reading lenses (async page + live slide) ---------- */
.ln-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(22px, 4vw, 48px); margin-bottom: 26px; }
.ln-k { font: 12px/1 var(--caps); letter-spacing: .24em; text-transform: uppercase; color: var(--brick); }
.ln-col h3 { margin: 8px 0 14px; padding-bottom: 12px; border-bottom: 2px solid var(--ink); font: 600 28px/1.1 var(--display); }
.ln-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.ln-list p { margin: 0; font: 18px/1.5 var(--serif); }
.ln-pat { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 6px; font: 600 14px/1 var(--sans); color: var(--ink); }
.ln-pat img { width: 28px; height: 28px; }
.ln-pat em { font-style: normal; font-weight: 400; color: var(--ink-3); }
.ln-pat:hover span { color: var(--brick); }
.ln-content li { display: grid; grid-template-columns: 26px 1fr; gap: 8px; }
.ln-n { font: 600 22px/1.1 var(--display); color: var(--brick); }
@media (max-width: 760px) { .ln-cols { grid-template-columns: minmax(0, 1fr); } }
.s-talk .ln-head { position: absolute; left: 100px; top: 70px; }
.s-talk .ln-head .eyebrow { font-size: 20px; }
.s-talk .ln-head h2 { margin: 8px 0 0; font: 600 72px/1 var(--display); }
.s-talk .ln-cols { position: absolute; left: 100px; right: 100px; top: 230px; gap: 70px; margin: 0; }
.s-talk .ln-k { font-size: 18px; }
.s-talk .ln-col h3 { font-size: 40px; margin: 10px 0 22px; }
.s-talk .ln-list { gap: 24px; }
.s-talk .ln-list p { font-size: 25px; line-height: 1.38; }
.s-talk .ln-pat { font-size: 20px; gap: 10px; margin-bottom: 6px; }
.s-talk .ln-pat img { width: 38px; height: 38px; }
.s-talk .ln-content li { grid-template-columns: 38px 1fr; }
.s-talk .ln-n { font-size: 32px; }

/* ---------- library banner (shelves art) ---------- */
.lib-hero { position: relative; overflow: hidden; height: clamp(220px, 34vh, 360px); margin: 0 0 -70px; }
.lib-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; animation: cv-settle 2.4s var(--ease) both; }
.lib-hero::after { content: ""; position: absolute; inset: auto 0 0; height: 45%; background: linear-gradient(to bottom, rgba(236, 230, 215, 0), var(--paper-2)); }
.lib-hero + .pagewrap { position: relative; }
.lib-hero + .pagewrap .lib-head { position: relative; z-index: 1; width: fit-content; max-width: min(640px, 100%); padding: 26px 30px 24px; border-radius: 20px; background: var(--card); box-shadow: 0 30px 60px -36px rgba(34, 31, 28, .55), 0 0 0 1px rgba(34, 31, 28, .06); }
@media (max-width: 700px) { .lib-hero { height: 180px; margin-bottom: -40px; } .lib-hero + .pagewrap .lib-head { padding: 20px; } }

/* ---------- contents rail: essay + writer as the heading, two parts, centred in the screen ---------- */
.w-body { gap: 64px; }
@media (min-width: 700px) { .w-body { padding-right: 20px; } }
.w-rail { top: 0; height: 100vh; max-height: none; gap: 0; }
.rl-in { margin: auto 0; padding: 20px 0; display: flex; flex-direction: column; gap: 1px; }
.rl-head { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; padding: 0 8px 16px; margin-bottom: 2px; text-align: left; border-bottom: 1px solid var(--rule); }
.rl-essay { font: var(--tw) calc(24px * var(--tz))/1.06 var(--tf); letter-spacing: var(--tls); color: var(--ink); text-wrap: balance; transition: color .2s; }
.rl-writer { font: 15px/1.2 var(--serif); font-variant: small-caps; letter-spacing: .07em; color: var(--ink-2); }
.rl-head:hover .rl-essay { color: var(--brick); }
.rl-chap { display: flex; align-items: baseline; gap: 9px; padding: 18px 8px 6px; }
.rl-chap b { font: 600 14px/1 var(--display); letter-spacing: 0; color: var(--ink-3); }

/* ---------- cue glued to the last word of its label ---------- */
.cue-nw { white-space: nowrap; }

/* ---------- part two opener: the essay's name and what you'll learn ---------- */
.dv { aspect-ratio: auto; min-height: clamp(320px, 36vw, 440px); display: flex; }
.dv-text { position: relative; inset: auto; flex: 1; justify-content: flex-end; background: linear-gradient(rgba(18, 17, 21, .2), rgba(18, 17, 21, .88) 72%); }
.dv-text h2 { font-size: clamp(32px, 4.4vw, 58px); line-height: 1.02; }
.dv-learn > p { margin: 16px 0 10px; font: italic 19px/1.4 var(--serif); max-width: none; color: #e9dfcc; }
.dv-learn ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.dv-learn li { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 14px; align-items: baseline; font: 19px/1.4 var(--serif); }
.dv-pat { font: 11px/1 var(--caps); letter-spacing: .2em; text-transform: uppercase; color: var(--mustard); }
@media (max-width: 600px) { .dv-learn li { grid-template-columns: minmax(0, 1fr); gap: 2px; font-size: 17px; } }

/* ---------- reading lenses: title card, craft text indented under the pattern name ---------- */
.ln-top { margin-bottom: 44px; }
.ln-top h2 { margin: 0; font: 700 clamp(34px, 4vw, 50px)/1.05 var(--display); }
.ln-top p { margin: 12px 0 0; font: italic 19px/1.45 var(--serif); color: var(--ink-2); }
.ln-doc { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; padding: 12px 20px; border-radius: 12px; background: #0f0e10; color: #f3ead9; font: 600 16px/1.2 var(--sans); text-decoration: none; transition: background .2s; }
.ln-doc:hover { background: #2a2622; }
.ln-craft p { padding-left: 36px; }
.s-talk .ln-craft p { padding-left: 48px; }

/* ---------- recommended essays: one-line subtitle and titles ---------- */
.ol-head p { max-width: none; }
@media (min-width: 761px) { .ol-head p { white-space: nowrap; } }
.ol-col .li-book { font-size: 18px; }
.ol-col .li-essay { font-size: var(--ol-fs, 20px); white-space: nowrap; }
/* too narrow for one-line titles: they wrap inside the three columns (phones stack at 760px) */
.ol.ol-wrap .ol-col .li-essay { white-space: normal; text-wrap: balance; }

/* ---------- cover: the heading sits lower, centred in the open sky ---------- */
@media (min-width: 701px) { .cv-text { padding-top: clamp(40px, 10vh, 104px); } }

/* ---------- signature: the circles share the lead's centre line ---------- */
.tf-col { position: absolute; left: 90px; top: 232px; min-width: 540px; display: flex; flex-direction: column; align-items: center; }
.tf-col .tf-lead { position: static; margin: 0; }
.tf-ring { position: relative; flex: none; width: 0; height: 560px; } /* zero-width: only the lead sets the column, the circles centre on it */
.tf-c { width: 240px; height: 240px; margin: -120px 0 0 -120px; }
.tf-core { left: 0; top: 230px; }

/* ---------- phones: the module bar folds into the pinned top bar ---------- */
.tb-mod { display: none; }
@media (max-width: 860px) {
  .walk .mbar { display: none; }
  .topbar { position: relative; z-index: 40; }
  .tb-mod { display: flex; align-items: center; gap: 8px; margin-left: auto; min-width: 0; }
  .tb-mod .mb-cur { gap: 8px; padding: 3px 8px 3px 3px; border-radius: 9px; }
  .tb-mod .mb-cur img { width: 38px; height: 26px; border-radius: 5px; }
  .tb-mod .mb-cur small { font-size: 10px; }
  .tb-mod .mb-cur b { font-size: 13px; }
  .tb-mod .mb-menu { position: fixed; top: 60px; left: max(12px, env(safe-area-inset-left, 0px)); right: max(12px, env(safe-area-inset-right, 0px)); width: auto; max-width: 420px; margin-left: auto; }
  .tb-live { display: inline-flex; align-items: center; gap: 5px; height: 32px; padding: 0 12px; border-radius: 999px; background: var(--ink); color: var(--paper-3); font: 600 13px/1 var(--sans); white-space: nowrap; }
  .tb-live span { font-size: 10px; }
}
@media (max-width: 400px) { .topbar:has(.tb-mod) > b { display: none; } }

/* ---------- recommended books: the shelf centred on the whole box, bigger; the desk fades back ---------- */
@media (min-width: 761px) {
  .os.has-art { display: flex; aspect-ratio: auto; } /* content sets the height; the art covers whatever it is */
  .os.has-art .obox-art { opacity: .26; object-position: left center; }
  .os.has-art .os-main { position: relative; inset: auto; flex: 1; padding: 3.8cqw 5cqw 3.4cqw; }
  .os.has-art .eyebrow { font-size: clamp(11px, 1.05cqw, 14px); }
  .os.has-art h2 { font-size: clamp(30px, 5cqw, 64px); }
  .os.has-art .os-row { margin-top: 2.2cqw; gap: 4cqw; }
  .os.has-art .os-book { width: 18.5cqw; }
  .os.has-art .os-year { font-size: clamp(12px, 1.4cqw, 18px); }
  .os.has-art .os-name { font-size: clamp(16px, 2.2cqw, 28px); }
  .os.has-art .os-kind { font-size: clamp(13px, 1.55cqw, 19px); }
  .os.has-art .os-info { max-width: 60cqw; margin: 1.4cqw auto 0; min-height: 6.5cqw; }
  .os.has-art .os-pane p { font-size: clamp(15px, 1.8cqw, 21px); }
}

/* ---------- recommended essays: each collection its own card, the book as its header ---------- */
.obox.ol { padding-left: clamp(14px, 1.8vw, 24px); padding-right: clamp(14px, 1.8vw, 24px); }
.ol-cols { gap: clamp(12px, 1.2vw, 16px); align-items: start; }
.ol-col { align-items: stretch; background: var(--card); border: 1px solid var(--rule); border-radius: 18px; overflow: hidden; box-shadow: 0 22px 34px -28px rgba(34, 31, 28, .5); }
.ol-top { gap: 12px; padding: 14px; background: var(--paper-2); border-bottom: 1px solid var(--rule); }
.ol-col ul { margin: 0; padding: 2px 14px 10px; gap: 0; }
.ol-cover { width: 44px; }
.ol-col .li-book { font-size: 17px; }
.ol-col li { padding: 12px 0; border-top: 0; }
.ol-col li + li { border-top: 1px solid var(--rule); }

/* ---------- part-two opener: lands with every point faded, then lights one per step ---------- */
.op-divider .dv-learn li { cursor: pointer; opacity: .38; transition: opacity .6s var(--ease), translate .6s var(--ease); }
.op-divider .dv-learn li .dv-pat { color: #b9ad97; transition: color .6s var(--ease); }
.op-divider .dv-learn li.cur { opacity: 1; translate: 8px 0; }
.op-divider .dv-learn li.cur .dv-pat { color: var(--mustard); }
.op-divider .dv-learn li:not(.cur):hover { opacity: .7; }
@media (prefers-reduced-motion: reduce) { .op-divider .dv-learn li { transition: none; translate: none; } }

/* ---------- spider graph: composition score (27 patterns) ---------- */
.spd { position: relative; display: grid; grid-template-columns: minmax(0, 2.1fr) minmax(250px, 1fr); gap: clamp(16px, 3vw, 48px); align-items: center; }
.spd-glow { position: absolute; z-index: 0; border-radius: 50%; filter: blur(50px); pointer-events: none; transform: translate3d(0, calc((var(--sp, var(--prog, 0)) - .5) * var(--gd, -120px)), 0); transition: transform .9s var(--ease); }
.spd-glow.g1 { left: 6%; top: 4%; width: 52%; aspect-ratio: 1; background: radial-gradient(circle, rgba(75, 95, 174, .14), transparent 68%); }
.spd-glow.g2 { right: -4%; bottom: -6%; width: 34%; aspect-ratio: 1; background: radial-gradient(circle, rgba(214, 182, 59, .18), transparent 70%); --gd: 160px; }
.spd-chart, .spd-side { position: relative; z-index: 1; }
/* The chart sets the height; the panel centres on it, so steps never shift the chart. */
@media (min-width: 761px) { .spd-side { height: 0; min-height: 100%; display: flex; flex-direction: column; justify-content: center; } }
.spd-chart svg { display: block; width: 100%; height: auto; max-height: calc(100vh - 130px); overflow: visible; }
.spd-grid circle { fill: none; stroke: var(--rc); stroke-opacity: .55; stroke-width: 1.4; transition: opacity .8s var(--ease), transform 1.1s var(--ease); transition-delay: calc(var(--k) * 45ms); }
.spd-grid circle.hi { --rc: var(--blue); }
.spd-grid circle.mid { --rc: var(--mustard); }
.spd-grid circle.lo { --rc: var(--brick); }
.spd-grid circle.mn { stroke-opacity: .3; stroke-width: 1; stroke-dasharray: 3 6; rotate: calc(var(--sp, var(--prog, 0)) * 50deg); }
.spd-spoke { stroke: rgba(34, 31, 28, .14); stroke-width: 1; }
.spd-tick { font: 600 14px var(--sans); fill: var(--ink-3); text-anchor: middle; dominant-baseline: middle; paint-order: stroke; stroke: var(--paper); stroke-width: 5px; }
.wf-open:not(.seen) .spd-grid circle { opacity: 0; transform: scale(.55); }
/* rim arcs mark the three dimensions, in ink (colour belongs to the scores) */
.spd-band { fill: none; stroke: var(--ink); stroke-width: 5; stroke-linecap: round; opacity: .55; transition: opacity .7s var(--ease); }
/* the shape: one blue hatch, grown out from the centre when the frame comes into view */
.spd-shape { transform: scale(0); opacity: 0; transition: transform 1.4s cubic-bezier(.2, .85, .25, 1) .2s, opacity .6s var(--ease) .2s; }
.wf-open.seen .spd-shape, .s-spider .spd-shape { transform: none; opacity: 1; }
.s-spider .spd-shape { animation: spd-grow 1.4s cubic-bezier(.2, .85, .25, 1) .2s backwards; }
@keyframes spd-grow { from { transform: scale(0); opacity: 0; } }
.spd-hb { fill: var(--blue); fill-opacity: .1; }
.spd-hl { stroke: var(--blue); stroke-width: 2.4; stroke-opacity: .5; }
.spd-fill, .spd-slice { stroke: none; transition: opacity .7s var(--ease); }
.spd-slice { opacity: 0; }
.spd-slice.cur { opacity: 1; }
[data-at]:not([data-at="0"]) .spd-fill { opacity: .22; }
.spd-outline { fill: none; stroke: var(--blue); stroke-width: 2.5; stroke-linejoin: round; transition: stroke-opacity .7s var(--ease); }
.spd-dot { --dc: var(--blue); }
.spd-dot.mid { --dc: var(--mustard); }
.spd-dot.lo { --dc: var(--brick); }
.spd-dot circle { fill: var(--dc); stroke: #fbf8f1; stroke-width: 3; }
.spd-dot circle:last-child { transform: scale(0); transition: transform .5s cubic-bezier(.3, 1.6, .5, 1); transition-delay: calc(.8s + var(--k) * 35ms); }
.wf-open.seen .spd-dot circle:last-child, .s-spider .spd-dot circle:last-child { transform: none; }
.s-spider .spd-dot circle:last-child { animation: spd-dot .5s cubic-bezier(.3, 1.6, .5, 1) backwards; animation-delay: calc(.8s + var(--k) * 35ms); }
@keyframes spd-dot { from { transform: scale(0); } }
.spd-dot .halo { fill: none; stroke: var(--dc); stroke-width: 2; opacity: .5; animation: spd-halo 2.4s ease-out infinite 2s; }
@keyframes spd-halo { 0% { opacity: .7; scale: .7; } 100% { opacity: 0; scale: 1.8; } }
.spd-dots { transition: opacity .7s var(--ease); }
.spd-lab { font: 22px var(--serif); fill: var(--ink-2); dominant-baseline: middle; transition: opacity .7s var(--ease), fill .7s var(--ease); }
.spd-lab tspan { font: 600 16px var(--sans); fill: var(--ink-3); }
.spd-lab.focus { font-weight: 600; fill: var(--ink); }
.spd-core { fill: var(--ink); }
/* a dimension step: its slice, dots, arc and labels stay; the rest steps back */
[data-at]:not([data-at="0"]) .spd-dots:not(.cur) { opacity: .22; }
[data-at]:not([data-at="0"]) .spd-band:not(.cur) { opacity: .15; }
[data-at]:not([data-at="0"]) .spd-band.cur { opacity: .85; }
[data-at]:not([data-at="0"]) .spd-lab:not(.cur) { opacity: .2; }
[data-at]:not([data-at="0"]) .spd-outline { stroke-opacity: .35; }
/* side panel: the score name leads at step 0, then gives way to the dimension name */
.spd-side h2 { font: 600 clamp(32px, 3.4vw, 50px)/1.02 var(--tf, var(--display)); margin: 6px 0 14px; transition: font-size .6s var(--ease), color .6s var(--ease), margin .6s var(--ease); }
[data-at]:not([data-at="0"]) .spd-side h2 { font-size: 20px; color: var(--ink-3); margin: 6px 0 4px; }
.spd-panes { display: grid; }
.spd-pane { grid-area: 1 / 1; opacity: 0; translate: 0 14px; pointer-events: none; transition: opacity .6s var(--ease), translate .7s var(--ease); }
.spd-pane.cur { opacity: 1; translate: 0 0; pointer-events: auto; transition-delay: .25s; }
.spd-dn { font: 600 clamp(48px, 5vw, 72px)/1 var(--display); color: var(--ink); margin: 0 0 12px; }
.spd-about { font: italic 18px/1.5 var(--serif); color: var(--ink-2); margin: 0 0 18px; max-width: 36ch; }
.spd-intro .spd-about { margin-bottom: 24px; }
.spd-big { font: 600 clamp(40px, 3.6vw, 52px)/1 var(--display); color: var(--ink); margin: 0 0 18px; }
.spd-intro .spd-big { font-size: clamp(64px, 6.4vw, 92px); margin-bottom: 14px; }
.spd-big small { font: 18px var(--serif); color: var(--ink-3); margin-left: 8px; }
.spd-pane ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; max-width: 360px; }
.spd-pane li { display: grid; grid-template-columns: 104px minmax(0, 1fr) 34px; align-items: center; gap: 12px; font: 17px var(--serif); }
.spd-pane li i { height: 6px; border-radius: 9px; background: rgba(34, 31, 28, .08); overflow: hidden; }
.spd-pane li i::after { content: ""; display: block; height: 100%; width: 0; border-radius: inherit; background: var(--c); transition: width 1s var(--ease); }
.spd-pane.cur li i::after { width: calc(var(--v) * 100%); transition-delay: .5s; }
.spd-pane li b { font: 700 15px var(--sans); text-align: right; }
/* live: the same build on a 1600 x 900 slide */
.s-spider { background: #f3ece0; }
.s-spider .spd { position: absolute; inset: 30px 80px 30px 40px; grid-template-columns: 1010px 1fr; gap: 30px; }
.s-spider .spd-chart svg { max-height: 840px; }
.s-spider .spd-side .eyebrow { font-size: 20px; }
.s-spider .spd-side h2 { font-size: 64px; }
.s-spider[data-at]:not([data-at="0"]) .spd-side h2 { font-size: 26px; }
.s-spider .spd-dn { font-size: 96px; }
.s-spider .spd-about { font-size: 26px; }
.s-spider .spd-intro .spd-about { margin-bottom: 34px; }
.s-spider .spd-big { font-size: 64px; }
.s-spider .spd-intro .spd-big { font-size: 128px; }
.s-spider .spd-big small { font-size: 26px; }
.s-spider .spd-pane ul { max-width: none; gap: 18px; }
.s-spider .spd-pane li { grid-template-columns: 150px minmax(0, 1fr) 50px; font-size: 26px; }
.s-spider .spd-pane li i { height: 9px; }
.s-spider .spd-pane li b { font-size: 22px; }
@media (max-width: 760px) {
  .spd { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .spd-chart { order: 2; }
  .spd-lab { font-size: 30px; }
  .spd-lab tspan { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) { .spd-shape, .spd-dot circle, .spd-grid circle { transition: none; animation: none; } .spd-dot .halo { animation: none; } }

/* ---------- the reading (async long-form page) ---------- */
.rd { position: relative; max-width: 700px; margin: 0 auto; padding: 24px 0 40px; }
.rd-bar { position: sticky; top: 0; z-index: 5; height: 3px; margin: 0 -20px 40px; background: var(--rule); border-radius: 3px; overflow: hidden; }
.rd-bar i { display: block; height: 100%; width: calc(var(--rp, 0) * 100%); background: var(--ink); }
.rd-head { text-align: center; padding-bottom: 22px; margin-bottom: 44px; border-bottom: 1px solid var(--rule); }
.rd-title { font: 600 clamp(38px, 5vw, 62px)/1.02 var(--tf, var(--display)); margin: 12px 0 10px; text-wrap: balance; }
.rd-by { font: 15px/1 var(--caps); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-2); }
.rd-credit { margin: 4px 0 22px; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.rd-credit p { margin: 0; font: italic 16px/1.45 var(--serif); color: var(--ink-3); }
.rd-credit a { font-style: normal; white-space: nowrap; color: var(--ink); text-decoration-color: var(--rule); text-underline-offset: 3px; }
.rd-credit a:hover { text-decoration-color: currentColor; }
.rd-date { display: inline-grid; gap: 6px; margin: 28px auto 0; padding: 16px 26px; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); text-align: left; }
.rd-date div { display: grid; grid-template-columns: 92px auto; gap: 14px; }
.rd-date dt { font: 700 12px/1.7 var(--sans); letter-spacing: .14em; color: var(--brick); }
.rd-date dd { margin: 0; font: 600 13px/1.7 var(--sans); letter-spacing: .12em; }
.rd-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 6px 18px; margin-top: 24px; font: 13px/1.4 var(--serif); color: var(--ink-2); white-space: nowrap; }
.rd-meta em { color: var(--ink-3); margin-left: 4px; }
.rd-meta .el { color: var(--ink-3); }
.rd-body p { font: 21px/1.72 var(--serif); color: var(--ink); margin: 0 0 1.05em; hanging-punctuation: first; text-wrap: pretty; }
.rd-body p.rd-sec { margin-top: 0; }
.rd-body p.rd-q { font-size: 18px; line-height: 1.6; font-style: italic; color: var(--ink-2); margin-left: 1.6em; padding-left: 1em; border-left: 2px solid var(--rule); }
/* Quotation marks as generated content, so they stay out of the text that anchors comments. */
.rd-body p.rd-q::before { content: "“"; }
.rd-body p.rd-q::after { content: "”"; }
.rd-k { font: 700 15px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--brick); margin-right: .65em; vertical-align: .1em; white-space: nowrap; }
.rd-k i { font-style: normal; font-weight: 600; color: var(--ink-3); margin-left: .15em; letter-spacing: .06em; }
.rd-body h3.rd-num { font: 600 30px/1 var(--serif); letter-spacing: .06em; text-align: center; color: var(--ink); margin: 2.1em 0 1.1em; }
.rd-body h3.rd-num:first-child { margin-top: .4em; }
.rd-body .el { color: var(--ink-3); font-size: .86em; letter-spacing: .02em; }
.rd-body p.rd-cut { margin: -.2em 0 1.05em; }
/* a new section: circle, square, triangle, in a row */
.rd-orn { display: flex; justify-content: center; gap: 16px; margin: 2.4em 0 2.2em; }
.rd-orn i { width: 6px; height: 6px; opacity: .85; }
.rd-orn i:nth-child(1) { background: var(--blue); border-radius: 50%; }
.rd-orn i:nth-child(2) { background: var(--mustard); }
.rd-orn i:nth-child(3) { background: var(--brick); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.rd-end { margin-top: 6px; text-align: right; font: italic 19px/1 var(--serif); color: var(--ink-2); }
@media (max-width: 860px) { .rd-bar { margin-inline: 0; } .rd-body p { font-size: 19px; line-height: 1.66; } }
@media (max-width: 640px) { .rd-meta { flex-direction: column; align-items: center; white-space: normal; text-align: center; } }

/* Jump from a passage excerpt into the reading */
.rd-hit { background: rgba(214, 182, 59, .38); color: inherit; padding: 0 .08em; border-radius: 3px; }
.rd-flash { animation: rd-flash 2.4s var(--ease); }
@keyframes rd-flash { 0%, 30% { background: rgba(214, 182, 59, .16); } 100% { background: transparent; } }
.to-y .to-name .cue { rotate: 90deg; }

/* ---------- margin annotations on the reading ---------- */
/* Excerpts get a marker band that sweeps on as they scroll into view; a pattern dot sits in the
   right margin level with each one. A dot or a highlight opens its card, which unfurls leftward
   from the dot over the text. Pattern highlights are all blue (members' comments are yellow);
   on the dots and cards --ac is the pattern's dimension colour (idea / form / voice). */
.an-hl { --ac: var(--blue); --hlc: color-mix(in srgb, var(--ac) 17%, transparent); color: inherit; background-color: transparent; padding: 0; cursor: pointer;
  background-image: linear-gradient(var(--hlc), var(--hlc)); background-repeat: no-repeat; background-position: 0 100%; background-size: 0% 36%;
  transition: background-size var(--t, .6s) cubic-bezier(.55, .1, .35, 1) var(--d, 0s); }
.an-hl.in { background-size: 100% 36%; }
.an-hl.done { transition: background-size .38s var(--ease), --hlc .3s; }
.an-hl.hov, .an-hl.on { background-size: 100% 100%; }
.an-hl.on { --hlc: color-mix(in srgb, var(--ac) 22%, transparent); animation: an-pulse 3.4s ease-in-out infinite; }
.rd-body, .rd-body p { transition: color .45s var(--ease); }
.rd.an-focus .rd-body,
.rd.an-focus .rd-body p { color: color-mix(in srgb, var(--ink) 50%, var(--paper-2)); }
.rd.an-focus .an-hl.on,
.rd.an-focus .fx-line:not(.fx-hot) { color: var(--ink); }
.rd.an-focus .fx-line.fx-hot.on,
.rd.an-focus .fx-seal.on,
.rd.an-focus .fx-fill.on,
.rd.an-focus .fx-s.fx-fork.on { color: var(--fc); }
.rd.an-focus .fx-s.fx-fork.fx-root.on,
.rd.an-focus .rd-body p.fx-live { color: var(--ink); }
.rd.an-focus .an-hl:not(.on) { --hlc: transparent; }
.rd.an-focus .wlx { text-decoration-color: color-mix(in srgb, var(--c) 22%, transparent); }
.rd.an-focus .an-hl.on .wlx { text-decoration-color: color-mix(in srgb, var(--c) 70%, transparent); }
@property --hlc { syntax: '<color>'; inherits: false; initial-value: transparent; }

/* Annotation animation (experimental): the card's own highlight goes quiet while its steps loop */
.an-hl.fx-quiet { background-size: 100% 0%; animation: none; }
@property --fa { syntax: '<percentage>'; inherits: false; initial-value: 34%; }
.fx-s { --fc: var(--blue); border-radius: 4px; transition: background-color .45s var(--ease), background-size .45s var(--ease), --fa .6s var(--ease), box-shadow .45s var(--ease), color .35s var(--ease), text-decoration-color .45s var(--ease), font-weight .4s var(--ease); }
.fx-s.on { transition-delay: var(--fd, 0s); }
.fx-word, span.fx-chain { display: inline-block; }
.fx-word.on { font-weight: 600; color: color-mix(in srgb, var(--fc) 70%, var(--ink)); background-color: color-mix(in srgb, var(--fc) 18%, transparent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--fc) 18%, transparent); animation: fx-pop .55s var(--ease) var(--fd, 0s) both; }
.fx-ink { display: inline-block; text-decoration: underline 1.5px transparent; text-underline-offset: 4px; }
.fx-ink.on { font-weight: 700; color: var(--fc); background-color: color-mix(in srgb, var(--fc) 14%, transparent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--fc) 14%, transparent); text-decoration-color: color-mix(in srgb, var(--fc) 55%, transparent); transition-duration: .8s; animation: fx-swell 1.1s var(--ease) var(--fd, 0s) both; }
.fx-line { background-image: linear-gradient(var(--fc), var(--fc)); background-repeat: no-repeat; background-position: 0 92%; background-size: 0 2px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.fx-line.on { background-size: 100% 2px; transition-duration: .48s; transition-timing-function: cubic-bezier(.55, .1, .35, 1); }
.fx-line.fx-hot.on { color: var(--fc); font-weight: 700; }
.fx-seal { display: inline-block; border-radius: 3px; box-shadow: 0 0 0 1.5px transparent; }
.fx-seal.on { font-weight: 700; color: var(--fc); background-color: color-mix(in srgb, var(--fc) 16%, transparent); box-shadow: 0 0 0 1.5px var(--ink); }
.fx-tint.on { color: color-mix(in srgb, var(--fc) 85%, var(--ink)); background-color: color-mix(in srgb, var(--fc) 15%, transparent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--fc) 15%, transparent); transition-duration: .9s; }
.fx-fill { border-radius: 3px; }
.fx-fill.on { font-weight: 700; color: var(--fc); background-color: color-mix(in srgb, var(--fc) 20%, transparent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--fc) 20%, transparent); animation: fx-pop .55s var(--ease) var(--fd, 0s) both; }
@keyframes fx-swell { 0% { transform: none; } 45% { transform: translateY(-2px) scale(1.2); } 100% { transform: none; } }
.fx-sweep { background-image: linear-gradient(color-mix(in srgb, var(--fc) var(--fa), transparent), color-mix(in srgb, var(--fc) var(--fa), transparent)); background-repeat: no-repeat; background-position: 0 100%; background-size: 0% 100%; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.fx-sweep.on { background-size: 100% 100%; transition-duration: .5s; transition-timing-function: cubic-bezier(.55, .1, .35, 1); }
.fx-end.on { font-weight: 800; }
span.fx-chain.on { color: var(--fc); }
@keyframes fx-pop { 0% { transform: none; } 45% { transform: translateY(-2px) scale(1.05); } 100% { transform: none; } }
div.fx-chain { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
div.fx-chain.out { opacity: 0; }
.fx-chain svg { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; }
.fx-chain path { fill: none; stroke: var(--fc); stroke-width: 2.25; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; opacity: .9; transition: stroke-dashoffset var(--ft, .5s) cubic-bezier(.45, 0, .25, 1) var(--fd, 0s); }
.fx-chain.on path { stroke-dashoffset: 0; }
div.fx-box { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
div.fx-box.out { opacity: 0; }
.fx-box svg { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; }
.fx-box path { fill: none; stroke: var(--fc); stroke-width: 1.75; stroke-linecap: butt; stroke-linejoin: miter; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset var(--ft, .8s) cubic-bezier(.45, 0, .25, 1) var(--fd, 0s); }
.fx-box.on path { stroke-dashoffset: 0; }
div.fx-gather { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.fx-gather svg { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; }
.fx-gather path { fill: none; stroke: var(--ink); stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset var(--ft, .4s) cubic-bezier(.45, 0, .25, 1) var(--fd, 0s); }
.fx-gather.on path { stroke-dashoffset: 0; }
div.fx-rhythm { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.fx-rhythm svg { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; }
.fx-rh-p { position: absolute; display: flex; flex-direction: column; border-radius: 2px; overflow: hidden; }
.fx-rh-p .blk { display: block; width: 100%; transform: scaleX(0); transform-origin: 0 50%; transition: transform .42s var(--ease) var(--fd, 0s); }
.fx-rhythm.on .blk { transform: scaleX(1); }
.fx-rh-lab { position: absolute; font: 600 11px/1 var(--sans); letter-spacing: .01em; color: var(--ink); white-space: nowrap; opacity: 0; transition: opacity .4s var(--ease) var(--fd, 0s); }
.fx-rh-lab.arg { color: var(--brick); }
.fx-rh-lab.ctr { color: var(--blue); }
.fx-rhythm.on .fx-rh-lab { opacity: 1; }
.fx-rh-key { position: absolute; font: 700 8px/1.05 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); opacity: 0; transition: opacity .4s var(--ease) var(--fd, 0s); }
.fx-rh-key b { display: block; font-weight: 700; }
.fx-rhythm.on .fx-rh-key { opacity: 1; }
.fx-rhythm .key { fill: none; stroke: var(--ink-3); stroke-width: 1; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset var(--ft, .45s) cubic-bezier(.45, 0, .25, 1) var(--fd, 0s); }
.fx-rhythm.on .key { stroke-dashoffset: 0; }
.fx-rhythm .tick { fill: none; stroke: var(--ink); stroke-width: 1.35; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset var(--ft, .4s) cubic-bezier(.45, 0, .25, 1) var(--fd, 0s); }
.fx-rhythm .tick.ours { stroke-width: 2.25; }
.fx-rhythm.on .tick { stroke-dashoffset: 0; }
.fx-rhythm .edge { fill: none; stroke: var(--ink); stroke-width: 1.15; stroke-linecap: round; stroke-linejoin: miter; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset var(--ft, .7s) cubic-bezier(.45, 0, .25, 1) var(--fd, 0s); }
.fx-rhythm.on .edge { stroke-dashoffset: 0; }
.fx-rhythm .call { fill: none; stroke: var(--ink-3); stroke-width: 1.15; stroke-linecap: round; stroke-dasharray: 1.15 3.3; stroke-dashoffset: var(--len, 1); transition: stroke-dashoffset var(--ft, .6s) linear var(--fd, 0s); }
.fx-rhythm.on .call { stroke-dashoffset: 0; }
.fx-rhythm .land { fill: var(--ink-3); opacity: 0; transition: opacity .3s var(--ease) var(--fd, 0s); }
.fx-rhythm.on .land { opacity: 1; }
.fx-s.fx-count.on, .fx-s.fx-ring.on { font-weight: 700; color: var(--ink); }
div.fx-count, div.fx-ring { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.fx-numc { position: absolute; width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1.25px var(--ink); font: 700 9px/20px var(--sans); font-style: normal; text-align: center; color: var(--ink); transform: scale(.4); opacity: 0; transition: transform .32s cubic-bezier(.2, 1.2, .4, 1) var(--fd, 0s), opacity .18s var(--fd, 0s); }
div.fx-count.on .fx-numc { transform: none; opacity: 1; }
.fx-numc.fx-tag { width: 22px; height: 22px; margin: -11px 0 0 -11px; box-shadow: 0 0 0 1.5px var(--fc); color: var(--fc); font: 700 11px/22px var(--sans); }
.fx-side { position: absolute; translate: -100% -50%; width: max-content; max-width: 92px; text-align: right; font: 700 10.5px/1.25 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: color-mix(in srgb, var(--fc) 85%, var(--ink)); opacity: 0; transition: opacity .4s var(--ease) var(--fd, 0s); }
.fx-mg.on .fx-side { opacity: 1; }
.fx-ring svg { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; }
.fx-ring path { fill: none; stroke: var(--ink); stroke-width: 1.25; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset var(--ft, .4s) cubic-bezier(.45, 0, .25, 1) var(--fd, 0s); }
div.fx-ring.on path { stroke-dashoffset: 0; }
.fx-etc { position: absolute; border-radius: 50%; box-shadow: 0 0 0 1.5px var(--ink); transform: translate(-50%, -50%) scale(.5); opacity: 0; transition: transform .34s cubic-bezier(.2, 1.15, .4, 1) var(--fd, 0s), opacity .16s var(--fd, 0s); }
div.fx-ring.on .fx-etc { transform: translate(-50%, -50%); opacity: 1; }
.fx-s.fx-fork.on { font-weight: 700; color: var(--fc); background-color: color-mix(in srgb, var(--fc) 18%, transparent); border-radius: 3px; box-shadow: 0 0 0 3px color-mix(in srgb, var(--fc) 16%, transparent); }
.fx-s.fx-fork.fx-root.on { color: var(--ink); background-color: color-mix(in srgb, var(--mustard) 55%, transparent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--mustard) 40%, transparent); }
div.fx-fork { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.fx-fork svg { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; }
.fx-fork path { fill: none; stroke: var(--fc, var(--ink)); stroke-width: 1.35; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset var(--ft, .45s) cubic-bezier(.45, 0, .25, 1) var(--fd, 0s); }
div.fx-fork.on path { stroke-dashoffset: 0; }
.fx-fork .dot { fill: var(--ink); opacity: 0; transition: opacity .25s var(--ease) var(--fd, 0s); }
div.fx-fork.on .dot { opacity: 1; }
/* the letter keeps its line box so it sits exactly over the original; the disc is drawn behind it */
.fx-bub { position: absolute; isolation: isolate; text-align: center; white-space: nowrap; font-weight: 700; color: var(--fc); transform: scale(0); opacity: 0; transition: transform .4s cubic-bezier(.2, 1.15, .4, 1) var(--fd, 0s), opacity .2s var(--fd, 0s); }
.fx-bub::before { content: ''; position: absolute; z-index: -1; left: 50%; top: 50%; width: calc(var(--fr) * 2); height: calc(var(--fr) * 2); margin: calc(var(--fr) * -1) 0 0 calc(var(--fr) * -1); box-sizing: border-box; border-radius: 50%; background: #fff; border: 2px solid var(--fc); box-shadow: 0 2px 6px -2px rgba(34, 31, 28, .25); }
.fx-chain.on .fx-bub { transform: none; opacity: 1; }
.fx-margin { position: absolute; inset: 0; pointer-events: none; z-index: 1; transition: opacity .55s var(--ease); }
.fx-margin.out { opacity: 0; }
.fx-mg { position: absolute; inset: 0; }
.fx-mg svg { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; }
.fx-mg path { fill: none; stroke: var(--fc); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; opacity: .7; transition: stroke-dashoffset var(--ft, .3s) cubic-bezier(.45, 0, .25, 1) var(--fd, 0s); }
.fx-mg.on path { stroke-dashoffset: 0; }
.fx-num { position: absolute; translate: -50% -50%; font: 600 12px/1 var(--sans); font-variant-numeric: tabular-nums; color: color-mix(in srgb, var(--fc) 80%, var(--ink)); opacity: 0; transition: opacity .35s var(--ease) var(--fd, 0s); }
.fx-mg.on .fx-num { opacity: 1; }
.fx-badge { position: absolute; left: var(--cx); width: 0; height: 0; opacity: 0; transition: top .7s var(--ease), opacity .5s var(--ease); }
.fx-mg.on .fx-badge { opacity: 1; }
.fx-badge i { position: absolute; left: 0; top: 0; translate: -50% -50%; display: grid; place-items: center; width: var(--s); height: var(--s); border-radius: 50%; background: var(--card); box-shadow: 0 0 0 1.5px var(--fc), 0 10px 20px -12px rgba(34, 31, 28, .5); scale: .85; transition: width .7s var(--ease), height .7s var(--ease), opacity .6s var(--ease), scale .6s var(--ease), box-shadow .6s var(--ease); }
.fx-mg.on .fx-badge i { scale: 1; }
.fx-badge:not(.act) i { opacity: .5; box-shadow: 0 0 0 1px var(--fc); }
.fx-badge img { width: 76%; height: 76%; object-fit: contain; }
.fx-badge b { position: absolute; left: 0; top: calc(var(--s) / 2 + 9px); translate: -50% 0; font: 700 var(--lf)/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; color: color-mix(in srgb, var(--fc) 75%, var(--ink)); opacity: 0; transition: opacity .4s var(--ease), top .7s var(--ease); }
.fx-badge.act b { opacity: 1; transition-delay: .25s, 0s; }
.fx-badge.again i { animation: fx-ring 1s var(--ease); }
@keyframes fx-ring { 0% { box-shadow: 0 0 0 1.5px var(--fc), 0 0 0 0 color-mix(in srgb, var(--fc) 45%, transparent); } 100% { box-shadow: 0 0 0 1.5px var(--fc), 0 0 0 14px transparent; } }
/* Highlights of patterns no longer in focus fade back; .dim drops the stagger so they fade together. */
.fx-s.on.dim { transition-delay: 0s; }
.fx-word.on.dim { color: color-mix(in srgb, var(--fc) 40%, var(--ink-2)); background-color: color-mix(in srgb, var(--fc) 7%, transparent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--fc) 7%, transparent); }
.fx-sweep.on.dim { --fa: 13%; }
.fx-end.on.dim { color: var(--ink-2); }
.fx-ink.on.dim { color: color-mix(in srgb, var(--fc) 45%, var(--ink-3)); background-color: color-mix(in srgb, var(--fc) 5%, transparent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--fc) 5%, transparent); text-decoration-color: color-mix(in srgb, var(--fc) 18%, transparent); }
.fx-line.on.dim { background-image: linear-gradient(color-mix(in srgb, var(--fc) 35%, transparent), color-mix(in srgb, var(--fc) 35%, transparent)); }
.fx-mg, div.fx-chain, div.fx-box, div.fx-gather, div.fx-rhythm { transition: opacity .6s var(--ease); }
.fx-mg.dim, div.fx-chain.dim, div.fx-box.dim, div.fx-gather.dim, div.fx-rhythm.dim { opacity: .35; }
.an-fx { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.an-fx span { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 99px; font: 600 11.5px/1 var(--sans); letter-spacing: .04em; color: var(--ink-3); background: color-mix(in srgb, var(--ink) 5%, transparent); transition: color .4s, background .4s; }
.an-fx i { width: 7px; height: 7px; border-radius: 50%; background: var(--fc); opacity: .35; transition: opacity .4s; }
.an-fx span.cur { color: var(--ink); background: color-mix(in srgb, var(--fc) 18%, transparent); }
.an-fx span.cur i { opacity: 1; }
.an-fx span.seen:not(.cur) { color: var(--ink-2); }
.an-fx span.seen:not(.cur) i { opacity: .7; }
@media (prefers-reduced-motion: reduce) { .fx-s, .fx-chain path, .fx-box path, .fx-gather path, .fx-rhythm .tick, .fx-rhythm .edge, .fx-rhythm .call, .fx-rhythm .key, .fx-rhythm .blk, .fx-rhythm .land, .fx-rh-lab, .fx-rh-key, .fx-numc, .fx-side, .fx-etc, .fx-ring path, .fx-fork path, .fx-fork .dot, .fx-bub, .fx-mg, .fx-mg path, .fx-num, .fx-badge, .fx-badge i, .fx-badge b, .rd-body, .an-hl, .an, .an-key { transition-duration: .01s; } .fx-word.on, .fx-ink.on, .fx-fill.on, .fx-badge.again i, .an-replay.go svg { animation: none; } }
/* The open card's excerpt (and the open comment's passage) breathes, so it's clear which one is live. */
@keyframes an-pulse { 50% { --hlc: color-mix(in srgb, var(--ac) 28%, transparent); } }
/* The dateline is a block, so it fills rather than sweeps. */
.rd-date.an-box { background-image: none; transition: background-color .4s var(--ease); }
.rd-date.an-box.in { background-color: color-mix(in srgb, var(--ac) 7%, transparent); }
.rd-date.an-box.hov, .rd-date.an-box.on { background-color: color-mix(in srgb, var(--ac) 15%, transparent); }

.an-rail { position: absolute; top: 0; bottom: 0; right: calc(-1 * var(--an-gut, 84px)); width: 44px; z-index: 6; }
.an-key { position: absolute; top: 0; right: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; padding: 6px 0; }
.an-key span { display: flex; align-items: center; gap: 9px; font: 700 10px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.an-key i { flex: none; width: 9px; height: 9px; margin-right: 17.5px; border-radius: 50%; background: var(--ac); box-shadow: 0 0 0 3px var(--card); }
.an-track { position: absolute; left: 21.5px; top: 10px; bottom: 0; width: 1px; background: linear-gradient(to bottom, transparent, var(--rule) 3%, var(--rule) 97%, transparent); }
.an-track i { display: block; height: 100%; background: var(--ink-3); transform-origin: top; transform: scaleY(var(--rp, 0)); opacity: .55; }
.an { position: absolute; left: 0; width: 44px; height: 44px; opacity: 0; transform: translateY(var(--py, 0px)); transition: opacity .5s var(--ease), transform .9s cubic-bezier(.2, .8, .2, 1); }
.an.in { opacity: 1; }
.an.open { z-index: 2; }
.an.hov { z-index: 3; }
.an-dot { all: unset; box-sizing: border-box; position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; cursor: pointer; background: var(--card);
  box-shadow: 0 0 0 1px rgba(34, 31, 28, .1), 0 8px 16px -10px rgba(34, 31, 28, .55);
  scale: .4; transition: scale .7s cubic-bezier(.2, 1.6, .4, 1), background-color .3s, box-shadow .3s, opacity .3s; }
.an.in .an-dot { scale: 1; }
.an-dot img { width: 34px; height: 34px; object-fit: contain; transition: filter .3s; pointer-events: none; }
.an-dot::after { content: ''; position: absolute; top: 0; right: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--ac); box-shadow: 0 0 0 2px var(--card); }
.an-dot::before { content: ''; position: absolute; inset: -5px; border-radius: 50%; border: 1.5px solid var(--ac); opacity: 0; scale: .8; transition: opacity .3s, scale .45s cubic-bezier(.2, 1.4, .4, 1); }
.an.hov .an-dot, .an-dot:focus-visible { scale: 1.08; box-shadow: 0 0 0 1px rgba(34, 31, 28, .12), 0 12px 22px -10px rgba(34, 31, 28, .6); }
.an.hov .an-dot::before, .an.open .an-dot::before { opacity: 1; scale: 1; }
.an.open .an-dot { background: var(--ink); scale: 1.06; }
.an.open .an-dot img { filter: invert(1); }
.an.open .an-dot::after { box-shadow: 0 0 0 2px var(--ink); }
.rd.an-focus .an:not(.open),
.rd.an-focus .an-key { opacity: 0; pointer-events: none; }
.an-key { transition: opacity .45s var(--ease); }
.an-tag { position: absolute; bottom: calc(100% + 10px); left: 50%; translate: -50% 4px; padding: 5px 9px; border-radius: 999px; background: var(--ink); color: var(--paper-3); font: 700 10.5px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .2s, translate .3s var(--ease); }
.an.hov:not(.open) .an-tag { opacity: 1; translate: -50% 0; }

.an-card { position: absolute; top: -10px; right: calc(100% + 16px); width: var(--an-cw, 350px); box-sizing: border-box; padding: 18px 20px 12px; border-radius: 18px; background: var(--card); text-align: left; cursor: auto;
  border: 1px solid rgba(34, 31, 28, .08); box-shadow: 0 1px 2px rgba(34, 31, 28, .05), 0 16px 30px -16px rgba(34, 31, 28, .32), 0 44px 80px -36px rgba(34, 31, 28, .42);
  pointer-events: none; opacity: 0; visibility: hidden; transform-origin: 100% 32px; transform: translateX(22px) scale(.9);
  clip-path: inset(0 0 0 100% round 18px);
  transition: clip-path .42s cubic-bezier(.6, 0, .4, 1), transform .42s cubic-bezier(.6, 0, .4, 1), opacity .2s .18s, visibility 0s .42s; }
.an.open .an-card { pointer-events: auto; opacity: 1; visibility: visible; transform: none; clip-path: inset(-80px -80px -80px -80px round 18px);
  transition: clip-path .65s cubic-bezier(.16, 1, .3, 1), transform .75s cubic-bezier(.2, 1.25, .35, 1), opacity .15s, visibility 0s; }
.an-card::before { content: ''; position: absolute; left: 18px; right: 18px; top: 0; height: 3px; border-radius: 0 0 3px 3px; background: linear-gradient(90deg, var(--ac), color-mix(in srgb, var(--ac) 0%, transparent)); }
.an-card::after { content: ''; position: absolute; right: -7px; top: 25px; width: 12px; height: 12px; background: var(--card); border-top: 1px solid rgba(34, 31, 28, .08); border-right: 1px solid rgba(34, 31, 28, .08); transform: rotate(45deg); border-radius: 0 3px 0 0; }
.an.up .an-card { top: auto; bottom: -10px; transform-origin: 100% calc(100% - 32px); }
.an.up .an-card::after { top: auto; bottom: 25px; }
.rd.an-rt .an-card { right: auto; left: calc(100% + 16px); width: var(--an-rw, var(--an-cw, 350px)); transform-origin: 0 32px; }
.rd.an-rt .an:not(.open) .an-card { transform: translateX(-22px) scale(.9); clip-path: inset(0 100% 0 0 round 18px); }
.rd.an-rt .an.up .an-card { transform-origin: 0 calc(100% - 32px); }
.rd.an-rt .an-card::after { right: auto; left: -7px; border: 0; border-bottom: 1px solid rgba(34, 31, 28, .08); border-left: 1px solid rgba(34, 31, 28, .08); border-radius: 0 0 0 3px; }
.an-head, .an-body, .an-foot { opacity: 0; transform: translateY(6px); transition: opacity .15s, transform .2s; }
.an.open :is(.an-head, .an-body, .an-foot) { opacity: 1; transform: none; transition: opacity .45s .12s, transform .65s cubic-bezier(.2, 1, .3, 1) .12s; }
.an.open .an-body { transition-delay: .18s; }
.an.open .an-foot { transition-delay: .24s; }
.an-head { display: flex; align-items: center; gap: 12px; }
.an-ic { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--paper-3); box-shadow: inset 0 0 0 1px rgba(34, 31, 28, .07); }
.an-ic img { width: 36px; height: 36px; object-fit: contain; }
.an-eb { display: block; font: 700 10.5px/1.2 var(--sans); letter-spacing: .15em; text-transform: uppercase; color: var(--ac); }
.an-hd h4 { display: flex; align-items: center; gap: 8px; margin: 3px 0 0; font: 600 28px/1 var(--display); letter-spacing: -.005em; color: var(--ink); }
.an-replay { all: unset; box-sizing: border-box; display: grid; place-items: center; width: 26px; height: 26px; margin-top: 3px; border-radius: 50%; border: 1px solid var(--rule); color: var(--ink-2); cursor: pointer; }
.an-replay svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.an-replay:hover, .an-replay:focus-visible { color: var(--ink); border-color: var(--ink-3); }
.an-replay.go svg { animation: an-replay .7s linear; }
@keyframes an-replay { to { rotate: -360deg; } }
.an-body { margin-top: 12px; max-height: min(46vh, 400px); overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; padding-right: 4px; }
.an-body p { margin: 0 0 .65em; font: 17px/1.42 var(--serif); color: var(--ink); text-wrap: pretty; hyphens: auto; }
.an-body p:last-child { margin-bottom: .3em; }
.an-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--rule); }
.an-count { font: 600 11.5px/1 var(--sans); letter-spacing: .12em; color: var(--ink-3); }
.an-count b { color: var(--ink); }
.an-go { all: unset; box-sizing: border-box; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--rule); cursor: pointer; color: var(--ink); transition: background-color .2s, border-color .2s, scale .3s cubic-bezier(.2, 1.5, .4, 1); }
.an-go svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.an-go:hover:not(:disabled) { background: var(--paper-3); border-color: var(--ink-3); scale: 1.06; }
.an-go:disabled { opacity: .3; cursor: default; }
/* No room in the margin: the text column makes a lane for the dots. */
.rd.an-tight .rd-body { padding-right: 56px; }
.rd.an-tight.cm-on:not(.cm-off) .rd-body { padding-right: 68px; }
.rd.an-tight .an-card { right: calc(100% + 12px); }
/* Switched off: Patterns hides the dots and highlights, Member comments the faces and threads;
   the line itself goes once nothing is left on it. Off highlights still take the pointer (the
   handlers ignore them), since word lenses and the other layer's highlights nest inside them. */
.rd.an-off :is(.an:not(.cm), .an-key) { display: none; }
.rd.an-off .an-hl { background: none; cursor: auto; }
.rd.cm-off :is(.an.cm, .an-thread, .an-compose, .an-rc) { display: none; }
.rd.cm-off .cm-hl { background: none; cursor: auto; }
.rd.an-off:not(.cm-on) .an-rail, .rd.an-off.cm-off .an-rail { display: none; }
.rd.an-tight.an-off:not(.cm-on) .rd-body, .rd.an-tight.an-off.cm-off .rd-body { padding-right: 0; }

/* ---------- member comments on the reading ---------- */
/* A selection gets a small bar (comment, copy). A commented passage is tinted, and its first
   commenter's face branches off the margin line on a short stem, set right of the pattern dots
   so members' threads read apart from the official notes; it opens the thread's card. */
.sel-bar { position: fixed; z-index: 320; display: flex; gap: 2px; padding: 4px; border-radius: 12px; background: var(--ink); box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .55); opacity: 0; transform: translateY(4px) scale(.96); transition: opacity .16s, transform .22s var(--ease); }
.sel-bar.show { opacity: 1; transform: none; }
.sel-bar[hidden] { display: none; }
.sel-bar button { display: grid; place-items: center; width: 36px; height: 34px; border-radius: 9px; color: #f3ecdc; cursor: pointer; transition: background .15s; }
.sel-bar button[hidden] { display: none; }
.sel-bar button:hover, .sel-bar button:focus-visible { background: rgba(255, 255, 255, .14); }
.sel-bar svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Members' comments are yellow, pattern highlights blue. */
.cm-hl { color: inherit; background-color: color-mix(in srgb, var(--mustard) 26%, transparent); padding: 0; cursor: pointer; border-radius: 2px; transition: background-color .2s; }
.cm-hl.hov { background-color: color-mix(in srgb, var(--mustard) 42%, transparent); }
.cm-hl.on, .cm-hl.pending { animation: cm-pulse 1.8s ease-in-out infinite; }
@keyframes cm-pulse {
  0%, 100% { background-color: color-mix(in srgb, var(--mustard) 34%, transparent); }
  50% { background-color: color-mix(in srgb, var(--mustard) 62%, transparent); }
}

.an.cm { --ac: var(--mustard-ink); --cm-x: 36px; left: var(--cm-x); height: 34px; }
.rd.an-tight .an.cm { --cm-x: 26px; }
/* The stem runs from the line (21.5px into the rail) to the face's edge (5px into the item), drawn like the line. */
.an.cm::before { content: ''; position: absolute; top: 16.5px; left: calc(21.5px - var(--cm-x)); width: calc(var(--cm-x) - 16.5px); height: 1px; background: var(--ink-3); opacity: .55; }
.rd.an-rt .an.cm .an-card { width: calc(var(--an-rw, var(--an-cw, 350px)) - var(--cm-x)); }
.an.cm.open .cm-face::after { content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--mustard); animation: cm-ring 1.8s ease-out infinite; pointer-events: none; }
@keyframes cm-ring { 0% { opacity: .9; scale: .9; } 100% { opacity: 0; scale: 1.25; } }
.cm-face { all: unset; box-sizing: border-box; position: relative; display: block; width: 34px; height: 34px; margin-left: 5px; border-radius: 50%; cursor: pointer;
  box-shadow: 0 0 0 2px var(--card), 0 0 0 3px rgba(34, 31, 28, .1), 0 8px 16px -10px rgba(34, 31, 28, .55); transition: scale .3s cubic-bezier(.2, 1.5, .4, 1), box-shadow .2s; }
.cm-face .cm-av { width: 34px; height: 34px; font-size: 12px; }
.an.cm.hov .cm-face, .cm-face:focus-visible { scale: 1.08; }
.an.cm.open .cm-face { box-shadow: 0 0 0 2px var(--card), 0 0 0 3.5px var(--ac); }
.cm-n { position: absolute; right: -5px; bottom: -4px; min-width: 17px; height: 17px; padding: 0 4px; box-sizing: border-box; border-radius: 9px; background: var(--ink); color: #fff; box-shadow: 0 0 0 2px var(--card); font: 700 10px/17px var(--sans); text-align: center; }
.cm-av { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; overflow: hidden; background: var(--avc, var(--ink-3)); color: #fff; font: 700 11px/1 var(--sans); letter-spacing: .02em; }
.cm-av img { width: 100%; height: 100%; object-fit: cover; }
.cm-av-none { background: var(--paper-3); box-shadow: inset 0 0 0 1px var(--rule); }

/* The thread's card, sized and placed like an annotation card (its arrow meets the smaller face). */
.cm-card { padding: 14px 16px 12px; transform-origin: 100% 27px; }
.cm-card::after { top: 21px; }
.an.up .cm-card::after { top: auto; bottom: 21px; }
.rd.an-rt .cm-card { transform-origin: 0 27px; }
.cm-head { font: 700 10.5px/1.2 var(--sans); letter-spacing: .15em; text-transform: uppercase; color: var(--ac); }
.cm-head, .cm-list, .cm-card > .cm-form { opacity: 0; transition: opacity .15s; }
.an.open :is(.cm-head, .cm-list, .cm-card > .cm-form) { opacity: 1; transition: opacity .4s .12s; }
.cm-list { max-height: min(44vh, 380px); overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.cm-list:empty { display: none; }
.cm-msg { display: grid; grid-template-columns: 28px 1fr; gap: 10px; padding: 11px 0 9px; }
.cm-msg + .cm-msg { border-top: 1px solid var(--rule); }
.cm-main { min-width: 0; }
.cm-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; font: 12px/1.3 var(--sans); color: var(--ink-3); }
.cm-meta b { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.cm-acts { display: flex; gap: 12px; margin-top: 5px; opacity: .75; transition: opacity .2s; }
.cm-msg:hover .cm-acts, .cm-acts:focus-within { opacity: 1; }
.cm-acts button { font: 600 12px/1 var(--sans); color: var(--ink-3); cursor: pointer; }
.cm-acts button:hover { color: var(--ink); text-decoration: underline; }
.cm-acts button[data-cm-del]:hover { color: var(--brick); }
.cm-text { margin-top: 3px; font: 16.5px/1.42 var(--serif); color: var(--ink); overflow-wrap: anywhere; }
.cm-del { align-items: center; }
.cm-del .cm-text { margin: 0; font: italic 14px/1.3 var(--sans); color: var(--ink-3); }
.cm-msg.editing .cm-acts { display: none; }

.cm-form { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start; margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--rule); }
.cm-head + .cm-list:empty + .cm-form { border-top: 0; padding-top: 4px; }
.cm-field { min-width: 0; }
.cm-form textarea, .cm-edit textarea { display: block; width: 100%; box-sizing: border-box; min-height: 36px; max-height: 180px; padding: 8px 11px; border: 1px solid var(--rule); border-radius: 12px; background: #fff; color: var(--ink); font: 15px/1.4 var(--sans); resize: none; outline: none; transition: border-color .2s, box-shadow .2s; }
.cm-form textarea:focus, .cm-edit textarea:focus { border-color: color-mix(in srgb, var(--ac) 60%, var(--rule)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ac) 14%, transparent); }
.cm-edit { margin-top: 6px; }
.cm-btns { display: none; align-items: center; justify-content: flex-end; gap: 6px; margin-top: 8px; }
.cm-form.on .cm-btns, .cm-edit .cm-btns { display: flex; }
.cm-hint { margin-right: auto; font: 11px/1 var(--sans); color: var(--ink-3); }
.cm-send { padding: 7px 13px; border-radius: 99px; background: var(--ink); color: var(--paper-3); font: 600 13px/1 var(--sans); cursor: pointer; transition: opacity .2s, background .2s; }
.cm-send:hover:not(:disabled) { background: #000; }
.cm-send:disabled { opacity: .35; cursor: default; }
.cm-cancel { padding: 7px 8px; font: 600 13px/1 var(--sans); color: var(--ink-3); cursor: pointer; }
.cm-cancel:hover { color: var(--ink); }
.cm-err { margin: 6px 0 0; font: 12.5px/1.35 var(--sans); color: var(--brick); }
.busy { opacity: .6; pointer-events: none; }

/* Replies on a pattern annotation: a count on the dot, the thread under the note, a reply box. */
.an-rc { position: absolute; right: -6px; bottom: -4px; min-width: 17px; height: 17px; padding: 0 4px; box-sizing: border-box; border-radius: 9px; background: var(--mustard); color: var(--ink); box-shadow: 0 0 0 2px var(--card); font: 700 10px/17px var(--sans); text-align: center; }
.an-rc:empty { display: none; }
.an-thread:not(:empty) { margin-top: 10px; border-top: 1px solid var(--rule); }
.an-thread .cm-text { font-size: 16px; }
.an-compose { opacity: 0; transform: translateY(6px); transition: opacity .15s, transform .2s; }
.an.open .an-compose { opacity: 1; transform: none; transition: opacity .45s .22s, transform .65s cubic-bezier(.2, 1, .3, 1) .22s; }
.an-compose .cm-form { --ac: var(--mustard-ink); }
.an-thread .cm-head { margin: 12px 0 -2px; color: var(--mustard-ink); }

/* Who's been in the lesson, above the rail's title: newest at the left, overlapping. */
.rl-faces { display: flex; align-items: center; margin: 0 0 14px; padding-left: 14px; }
.rl-faces[hidden] { display: none; }
.rf-face { position: relative; margin-left: -6px; border-radius: 50%; box-shadow: 0 0 0 2px var(--paper-2, #ece5d4); }
.rf-face .cm-av { width: 30px; height: 30px; font-size: 11px; }
.rf-face.here::after { content: ''; position: absolute; right: -1px; bottom: -1px; width: 9px; height: 9px; border-radius: 50%; background: #4f9a5a; box-shadow: 0 0 0 2px var(--paper-2, #ece5d4); }
.rf-face.new { animation: rf-in .5s cubic-bezier(.2, 1.4, .4, 1) both; }
@keyframes rf-in { from { opacity: 0; translate: -10px 0; scale: .6; } }
.rf-more { position: relative; z-index: 0; margin-left: -6px; min-width: 30px; height: 30px; padding: 0 7px; box-sizing: border-box; border-radius: 15px; background: var(--ink); color: var(--paper-3); box-shadow: 0 0 0 2px var(--paper-2, #ece5d4); font: 700 11px/30px var(--sans); cursor: pointer; }
.rf-more:hover { background: #000; }
.rf-cap { margin-left: 10px; font: 600 12px/1 var(--sans); color: var(--ink-3); }
.rf-cap:empty { display: none; }
.pop-people { display: grid; gap: 9px; max-height: 50vh; overflow: auto; margin: 8px 0 0; padding: 0; list-style: none; }
.pop-people li { display: flex; align-items: center; gap: 10px; font: 12.5px/1.3 var(--sans); color: #b9b1a2; }
.pop-people b { display: block; font-size: 14px; font-weight: 600; color: #fff; }
@media (prefers-reduced-motion: reduce) {
  .an-hl, .an, .an-dot, .an-card, .an-head, .an-body, .an-foot, .an-compose, .cm-head, .cm-list, .cm-form, .sel-bar { transition-duration: .01s !important; transition-delay: 0s !important; }
  .an-hl.on, .cm-hl.on, .cm-hl.pending, .an.cm.open .cm-face::after, .rf-face.new { animation: none; }
}
