/* Jatin Bhatt. Stillness / Signal.
   One breath cycle = 10s (4s in, 6s out). Everything that moves shares it. */

@font-face { font-family: "Fraunces"; src: url(fonts/fraunces-roman.woff2) format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url(fonts/fraunces-italic.woff2) format("woff2"); font-weight: 300 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url(fonts/fraunces-sym.woff2) format("woff2"); font-weight: 300 700; font-style: normal italic; unicode-range: U+2190-2199, U+00D7, U+2248, U+2212; font-display: swap; }
/* Display J: Fraunces' roman J ends in a hooked ball tail that reads like a typo next to I at headline sizes,
   and the font has no alternate. At display sizes only, U+004A comes from a 1 KB Newsreader subset (OFL, opsz 72),
   scaled to Fraunces' cap height. Italic J stays Fraunces. Body-size J is untouched. */
@font-face { font-family: "Display J"; src: url(fonts/newsreader-J.woff2) format("woff2"); font-weight: 200 800; font-style: normal; unicode-range: U+004A; size-adjust: 97.9%; font-display: swap; }
@font-face { font-family: "Display J"; src: url(fonts/fraunces-italic.woff2) format("woff2"); font-weight: 300 700; font-style: italic; unicode-range: U+004A; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url(fonts/plexmono-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url(fonts/plexmono-500.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url(fonts/plexmono-sym.woff2) format("woff2"); font-weight: 400 500; unicode-range: U+2190-2199, U+00D7, U+2248, U+2212; font-display: swap; }

:root {
  --breath: 10s;
  --paper: #F3EDE2;
  --paper-2: #EAE2D3;
  --card: #F8F4EC;
  --ink: #1C1915;
  --ink-2: #3A342D;
  --muted: #6B6358;
  --rule: #D8CDBB;
  --accent: #A93E19;
  --accent-soft: rgba(169, 62, 25, .14);
  --grid: transparent;
  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --mono: "Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --pad: clamp(20px, 5vw, 72px);
  --max: 1240px;
  --ease: cubic-bezier(.45, 0, .55, 1);
  --spring: cubic-bezier(.2, .9, .25, 1.15);
  color-scheme: light;
}
html[data-mode="signal"] {
  --paper: #121110;
  --paper-2: #181614;
  --card: #1A1816;
  --ink: #EFE8DA;
  --ink-2: #D3CBBC;
  --muted: #A39B8D;
  --rule: #34302A;
  --accent: #FF8150;
  --accent-soft: rgba(255, 129, 80, .14);
  --grid: rgba(239, 232, 218, .045);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 28px 28px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(17px, 1.05vw + 10px, 19.5px);
  line-height: 1.58;
  font-variation-settings: "SOFT" 50, "WONK" 0;
  font-feature-settings: "onum" 1, "kern" 1;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  transition: background-color .7s var(--ease), color .7s var(--ease);
  overflow-x: hidden;
}
::selection { background: var(--accent); color: var(--paper); }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; text-wrap: pretty; }
h1, h2, h3 { margin: 0; font-weight: 380; text-wrap: balance; }
.claim, .page-title, h2, .feature-t, .ct-line, .strip-line, .mnav-list a { font-family: "Display J", var(--serif); }
em { font-style: italic; font-variation-settings: "SOFT" 100, "WONK" 1; }
kbd {
  font-family: var(--mono); font-size: .72em; line-height: 1;
  display: inline-block; padding: .28em .45em .24em; border: 1px solid var(--rule);
  border-bottom-width: 2px; border-radius: 4px; color: var(--ink-2); background: var(--card);
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: 6px; font-family: var(--mono); font-size: 14px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }

.mono, .eyebrow, .kicker, .sec-num, .step-n, dt, .tl-when, .e-no, .e-org, .rule-note, .l-when, .l-head, .foot-meta, .breath-cap, .phase-meta, .sig-meta, .sig {
  font-family: var(--mono);
  font-feature-settings: "zero" 0;
}
.dotsep { display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .5; vertical-align: middle; margin: 0 .7em; transform: translateY(-1px); }

/* ---------- signal notes ---------- */
.sig {
  display: grid; grid-template-rows: 0fr; opacity: 0; visibility: hidden;
  font-size: 12.5px; line-height: 1.5; letter-spacing: .01em; color: var(--accent);
  margin: 0;
  transition: grid-template-rows .6s var(--ease), opacity .5s var(--ease), visibility 0s linear .6s, margin .6s var(--ease);
}
.sig > * { overflow: hidden; min-height: 0; }
html[data-mode="signal"] .sig {
  grid-template-rows: 1fr; opacity: 1; visibility: visible; margin-top: .6em;
  transition: grid-template-rows .6s var(--ease), opacity .6s var(--ease) .15s, visibility 0s, margin .6s var(--ease);
}
.sig > span::before { content: "↳ "; opacity: .7; }

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 24px;
  padding: 14px var(--pad);
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .4s, background-color .7s var(--ease);
}
.top.scrolled { border-bottom-color: var(--rule); }
.wordmark { font-size: 21px; text-decoration: none; letter-spacing: -.01em; white-space: nowrap; font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 30; }
.wm-j { font-style: italic; }
.toc { margin-left: auto; }
.toc ol { list-style: none; display: flex; gap: clamp(14px, 2vw, 30px); margin: 0; padding: 0; }
.toc a { font-size: 15px; text-decoration: none; color: var(--ink-2); position: relative; padding: 4px 0; }
.toc .num { font-family: var(--mono); font-size: 11px; color: var(--muted); margin-right: 6px; }
.toc a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.toc a:hover::after, .toc a.active::after { transform: scaleX(1); transform-origin: left; }
.toc a.active { color: var(--ink); }

.mode {
  display: inline-flex; align-items: center; gap: 8px;
  font: 500 12px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted); background: transparent; cursor: pointer;
  border: 1px solid var(--rule); border-radius: 999px; padding: 8px 12px 8px 11px;
  transition: border-color .3s, color .3s;
}
.mode:hover { border-color: var(--ink-2); color: var(--ink); }
.mode kbd { font-size: 10px; padding: 2px 5px; margin-left: 2px; }
.mode-sep { opacity: .4; }
.mode-opt { transition: color .4s; }
html[data-mode="stillness"] .mode-still, html[data-mode="signal"] .mode-sig { color: var(--ink); }
.mode-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: dot var(--breath) var(--ease) infinite; }
html[data-mode="signal"] .mode-dot { animation: blink 1.2s steps(2, jump-none) infinite; }
@keyframes dot { 0%, 100% { transform: scale(.55); opacity: .55; } 40% { transform: scale(1.1); opacity: 1; } }
@keyframes blink { 0% { opacity: 1; } 100% { opacity: .25; } }

/* ---------- layout ---------- */
main > section { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.sec-head { position: relative; max-width: 800px; margin-bottom: clamp(36px, 5vw, 64px); }
.sec-num {
  position: absolute; left: calc(-1 * clamp(0px, 5vw, 72px)); top: .2em;
  font-size: 13px; color: var(--accent); letter-spacing: .1em; margin: 0;
}
.kicker { font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
h2 { font-size: clamp(36px, 4.6vw, 64px); line-height: 1.04; letter-spacing: -.02em; font-variation-settings: "SOFT" 60, "WONK" 0, "opsz" 144; }
.sec-lede { font-size: 1.12em; color: var(--ink-2); margin-top: 22px; max-width: 640px; }

/* ---------- hero ---------- */
.hero {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 64px);
  align-items: center; min-height: calc(100svh - 70px); padding-top: clamp(30px, 6vh, 70px) !important; padding-bottom: clamp(30px, 6vh, 60px) !important;
}
.eyebrow { font-size: 12.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin-bottom: 28px; }
.claim {
  font-size: clamp(50px, 7.4vw, 116px); line-height: .96; letter-spacing: -.035em; font-weight: 340;
  font-variation-settings: "SOFT" 70, "WONK" 0, "opsz" 144; margin-bottom: 34px;
}
.claim em { color: var(--accent); font-weight: 300; letter-spacing: -.02em; padding-right: .04em; }
.lede { font-size: 1.15em; line-height: 1.5; max-width: 33em; color: var(--ink-2); margin-bottom: 44px; }

.vitals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; border-top: 1px solid var(--rule); max-width: 680px; }
.vital { padding: 16px 18px 4px 0; }
.vital + .vital { padding-left: 18px; border-left: 1px solid var(--rule); }
.vital dt { font-size: 11.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.vital dd { margin: 0; }
.fig { font-size: clamp(26px, 2.6vw, 38px); font-feature-settings: "lnum" 1, "tnum" 1; letter-spacing: -.02em; color: var(--muted); font-variation-settings: "opsz" 72; }
.fig-strong { color: var(--ink); }
.arrow { font-size: clamp(18px, 1.6vw, 24px); color: var(--accent); margin: 0 .3em; display: inline-block; transform: translateY(-.15em); }

.breath { margin: 0; justify-self: center; width: min(460px, 100%); }
.breath-hit { display: block; width: 100%; padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; border-radius: 50%; -webkit-tap-highlight-color: transparent; }
.breath-hit:hover .enso path { opacity: 1; }
.cap-touch { display: none; }
@media (hover: none), (pointer: coarse) { .cap-key { display: none; } .cap-touch { display: inline; } }
.touch .cap-key { display: none; } .touch .cap-touch { display: inline; }
.breath-scale { position: relative; aspect-ratio: 1; transform-origin: 50% 50%; animation: breathe var(--breath) infinite; will-change: transform; }
@keyframes breathe {
  0% { transform: scale(.9); animation-timing-function: cubic-bezier(.37, 0, .63, 1); }
  40% { transform: scale(1); animation-timing-function: cubic-bezier(.37, 0, .63, 1); }
  100% { transform: scale(.9); }
}
html[data-mode="signal"] .breath-scale { animation: none; transform: scale(1); transition: transform 1s var(--ease); }
.ring { width: 100%; height: 100%; overflow: visible; }
.enso path { fill: var(--ink); opacity: .92; transition: opacity .8s var(--ease); }
.enso { transform-origin: 200px 200px; animation: drift calc(var(--breath) * 9) linear infinite; }
@keyframes drift { to { transform: rotate(360deg); } }
html[data-mode="signal"] .enso path { opacity: 0; }

.gauge circle { fill: none; transform: rotate(-90deg); transform-origin: 200px 200px; }
.g-track { stroke: var(--rule); stroke-width: 1.5; opacity: 0; transition: opacity .6s; }
.g-before { stroke: var(--ink-2); stroke-width: 6; stroke-dasharray: 0 100; transition: stroke-dasharray 1.3s var(--ease) .2s; }
.g-after { stroke: var(--accent); stroke-width: 16; stroke-dasharray: 0 100; stroke-dashoffset: -69; transition: stroke-dasharray .9s var(--ease) 1.4s; }
.g-ticks line { stroke: var(--muted); stroke-width: 1; opacity: 0; transition: opacity .6s .3s; }
.g-lab { font: 500 14px var(--mono); fill: var(--muted); text-anchor: middle; dominant-baseline: middle; opacity: 0; transition: opacity .5s 1.6s; }
.g-lab-80 { fill: var(--accent); }
html[data-mode="signal"] .g-track, html[data-mode="signal"] .g-ticks line, html[data-mode="signal"] .g-lab { opacity: 1; }
html[data-mode="signal"] .g-before { stroke-dasharray: 69 100; }
html[data-mode="signal"] .g-after { stroke-dasharray: 11 89; }
html[data-mode="stillness"] .g-before, html[data-mode="stillness"] .g-after { transition-delay: 0s; transition-duration: .5s; }

.portrait-slot, .portrait {
  position: absolute; inset: 21%; border-radius: 50%;
  display: grid; place-items: center; text-align: center;
}
.portrait { inset: 18%; width: 64%; height: 64%; object-fit: cover; filter: grayscale(.25) contrast(1.02); }
.still-face, .sig-face { grid-area: 1 / 1; display: grid; justify-items: center; transition: opacity .6s var(--ease), transform .6s var(--ease); }
.phase { grid-area: 1 / 1; font-style: italic; font-size: clamp(30px, 3.4vw, 46px); font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 96; font-weight: 320; color: var(--ink-2); }
.phase-in { animation: phIn var(--breath) infinite; }
.phase-out { animation: phOut var(--breath) infinite; }
@keyframes phIn { 0%, 34% { opacity: 1; } 40%, 96% { opacity: 0; } 100% { opacity: 1; } }
@keyframes phOut { 0%, 34% { opacity: 0; } 42%, 94% { opacity: 1; } 100% { opacity: 0; } }
.phase-meta { grid-area: 2 / 1; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.sig-face { opacity: 0; transform: scale(.94); }
.sig-big { font-size: clamp(56px, 6vw, 84px); line-height: 1; letter-spacing: -.04em; font-feature-settings: "lnum" 1; font-variation-settings: "opsz" 144; }
.sig-big small { font-size: .45em; margin-left: .05em; color: var(--accent); }
.sig-meta { font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-top: 8px; }
html[data-mode="signal"] .still-face { opacity: 0; transform: scale(1.06); }
html[data-mode="signal"] .sig-face { opacity: 1; transform: none; transition-delay: .5s; }

.breath-cap { margin-top: 18px; text-align: center; font-size: 12px; letter-spacing: .02em; color: var(--muted); display: grid; }
.breath-cap > span { grid-area: 1 / 1; transition: opacity .5s; }
.cap-sig { opacity: 0; }
html[data-mode="signal"] .cap-still { opacity: 0; }
html[data-mode="signal"] .cap-sig { opacity: 1; }

/* ---------- waves (section breaths) ---------- */
.wave { max-width: var(--max); margin: clamp(40px, 7vw, 90px) auto; padding: 0 var(--pad); height: 40px; }
.wave svg { width: 100%; height: 100%; overflow: visible; }
.wave path { fill: none; stroke: var(--rule); stroke-width: 1.4; vector-effect: non-scaling-stroke; transform-origin: center; transform-box: fill-box; animation: wave var(--breath) infinite; }
@keyframes wave {
  0% { transform: scaleY(.25); animation-timing-function: cubic-bezier(.37, 0, .63, 1); }
  40% { transform: scaleY(1); animation-timing-function: cubic-bezier(.37, 0, .63, 1); }
  100% { transform: scaleY(.25); }
}
html[data-mode="signal"] .wave path { stroke-dasharray: 2 6; animation: none; transform: scaleY(.15); stroke: var(--muted); }

/* ---------- case ---------- */
.method { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(28px, 5vw, 80px); }
.step { display: grid; grid-template-columns: 56px 1fr; padding: 34px 0 40px; border-top: 1px solid var(--rule); }
.step-wide { grid-column: 1 / -1; }
.step-n { font-size: 13px; color: var(--accent); letter-spacing: .08em; margin: .55em 0 0; }
.step h3 { font-size: clamp(26px, 2.4vw, 34px); letter-spacing: -.015em; line-height: 1.1; margin-bottom: 14px; font-variation-settings: "opsz" 72, "SOFT" 60; }
.step-body > p { color: var(--ink-2); max-width: 36em; }
.findings { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 14px; }
.findings li { padding-left: 0; color: var(--ink-2); }
.finding-k { display: block; font-family: var(--mono); font-size: 12px; letter-spacing: .07em; text-transform: uppercase; color: var(--accent); margin-bottom: 2px; }

.timeline { margin: 34px 0 10px; position: relative; }
.tl-track { position: relative; height: 2px; background: var(--rule); margin: 0 0 26px; }
.tl-stop { position: relative; }
.tl-stop::before { content: ""; position: absolute; top: -32px; left: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--paper); border: 2px solid var(--ink); transition: background-color .4s; }
.tl-stop:hover::before { background: var(--accent); border-color: var(--accent); }
.tl-traveller {
  position: absolute; top: 50%; left: 0; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 6px var(--accent-soft);
  animation: travel calc(var(--breath) * 2) var(--ease) infinite;
}
@keyframes travel { 0% { left: 0; opacity: 0; } 8% { opacity: 1; } 88% { opacity: 1; } 100% { left: 100%; opacity: 0; } }
.tl-mark { position: absolute; top: -26px; bottom: -8px; width: 0; border-left: 1px dashed var(--muted); opacity: .35; transition: opacity .5s, border-color .5s; }
.tl-mark span { position: absolute; top: -4px; left: 6px; white-space: nowrap; font: 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.tl-24 { left: 18%; }
.tl-d3 { left: 47%; }
html[data-mode="signal"] .tl-mark { opacity: 1; border-color: var(--accent); }
html[data-mode="signal"] .tl-mark span { color: var(--accent); }
.tl-stops { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.tl-when { font-size: 12px; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.tl-what { font-size: .96em; line-height: 1.5; color: var(--ink); margin: 0; }
.tl-stop .sig { font-size: 11.5px; }
.tl-what b { font-family: var(--mono); font-weight: 500; font-size: 12px; color: var(--accent); margin-right: 6px; }
.also { margin-top: 30px; font-size: .95em; color: var(--muted) !important; }

.results { margin: 10px 0 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--rule); }
.res { padding: 18px 16px 6px 0; }
.res + .res { padding-left: 16px; border-left: 1px solid var(--rule); }
.res dt { font-size: 11.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.res dd { margin: 0; }
.res-fig { font-size: clamp(28px, 2.7vw, 40px); line-height: 1.05; letter-spacing: -.025em; font-feature-settings: "lnum" 1, "tnum" 1; font-variation-settings: "opsz" 96; white-space: nowrap; }
.res-fig .arrow { margin: 0 .15em; }

.owner { margin: clamp(30px, 5vw, 60px) 0 0 56px; max-width: 820px; padding: 0; }
.owner p { font-size: clamp(24px, 2.5vw, 34px); line-height: 1.3; font-style: italic; font-weight: 320; letter-spacing: -.01em; font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 72; text-indent: -.42em; margin-bottom: 14px; }
.owner p::before { content: "\201C"; color: var(--accent); }
.owner p::after { content: "\201D"; color: var(--accent); }
.owner footer { font: 12px var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }

/* ---------- notebook ---------- */
.notebook { padding-top: 10px !important; }
.entries { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 22px; }
.entry {
  position: relative; padding: 22px 24px 24px 46px;
  background-color: var(--card);
  background-image:
    linear-gradient(90deg, transparent 31px, color-mix(in srgb, var(--accent) 45%, transparent) 31px, color-mix(in srgb, var(--accent) 45%, transparent) 32px, transparent 32px),
    radial-gradient(circle, color-mix(in srgb, var(--ink) 16%, transparent) 1px, transparent 1.4px);
  background-size: auto, 16px 16px;
  background-position: 0 0, 8px 8px;
  border: 1px solid var(--rule); border-radius: 3px;
  box-shadow: 0 1px 0 var(--rule), 0 12px 24px -18px rgba(40, 28, 15, .35);
  transition: transform .5s var(--spring), box-shadow .5s var(--ease), background-color .7s var(--ease);
}
.entry:nth-child(3n+1) { --tilt: -.5deg; }
.entry:nth-child(3n+2) { --tilt: .35deg; }
.entry:nth-child(3n) { --tilt: -.25deg; }
.entry:hover { transform: translateY(-4px) rotate(var(--tilt)); box-shadow: 0 1px 0 var(--rule), 0 22px 34px -20px rgba(40, 28, 15, .45); }
html[data-mode="signal"] .entry {
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 14px 14px; box-shadow: none;
}
.entry header { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.e-no { font-size: 12px; color: var(--accent); letter-spacing: .06em; }
.e-org { font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); text-align: right; }
.entry h3 { font-size: 24px; line-height: 1.18; letter-spacing: -.01em; margin-bottom: 16px; font-variation-settings: "opsz" 48, "SOFT" 60; }
.entry h3 cite { font-style: italic; font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 48; }
.entry dl { margin: 0; display: grid; gap: 12px; }
.entry dt { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.entry dd { margin: 0; font-size: .92em; line-height: 1.5; color: var(--ink-2); }
.e-result dd { color: var(--ink); }
.e-fig { font-size: 1.55em; letter-spacing: -.02em; font-feature-settings: "lnum" 1, "tnum" 1; color: var(--ink); font-variation-settings: "opsz" 72; }
.e-fig-text { font-size: 1.25em; font-style: italic; font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 72; }
.entry .sig { font-size: 12px; }

/* ---------- practice ---------- */
.practice { max-width: none !important; padding: 0 !important; margin-top: clamp(80px, 11vw, 150px); background: var(--paper-2); transition: background-color .7s var(--ease); }
html[data-mode="signal"] .practice { background: transparent; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.practice-inner { max-width: var(--max); margin: 0 auto; padding: clamp(70px, 10vw, 130px) var(--pad); }
.practice-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(30px, 5vw, 80px); align-items: start; }
.pr-big { font-size: clamp(26px, 2.5vw, 36px); line-height: 1.22; letter-spacing: -.015em; font-weight: 340; font-variation-settings: "opsz" 72, "SOFT" 70; margin-bottom: 30px; color: var(--ink); }
.pr-big em { color: var(--accent); }
.practice-copy p:not(.pr-big) { color: var(--ink-2); max-width: 34em; }
.practice-copy strong { font-weight: 560; color: var(--ink); }
.pr-small { font-size: .9em; color: var(--muted) !important; }
.hours { margin: 8px 0 0; }
.hours canvas { width: 100%; height: auto; }
.hours figcaption { margin-top: 18px; display: grid; grid-template-columns: auto 1fr; column-gap: 16px; align-items: baseline; }
.hours-n { font-size: clamp(48px, 5vw, 72px); line-height: 1; letter-spacing: -.04em; font-feature-settings: "lnum" 1; font-variation-settings: "opsz" 144; }
.hours-l { font: 12.5px/1.5 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.hours .sig { grid-column: 1 / -1; }

/* ---------- principles ---------- */
.principles { margin-top: clamp(90px, 12vw, 160px); }
.rules { list-style: none; margin: 0; padding: 0; counter-reset: r; }
.rules li {
  counter-increment: r; position: relative;
  display: grid; grid-template-columns: 56px minmax(0, 1fr) minmax(0, 300px); gap: 0 30px; align-items: baseline;
  padding: 22px 0 20px; border-top: 1px solid var(--rule);
}
.rules li:last-child { border-bottom: 1px solid var(--rule); }
.rules li::before { content: counter(r, decimal-leading-zero); font: 13px var(--mono); color: var(--accent); letter-spacing: .08em; }
.rule { font-size: clamp(24px, 2.6vw, 38px); line-height: 1.15; letter-spacing: -.018em; margin: 0; font-weight: 360; font-variation-settings: "opsz" 96, "SOFT" 60; transition: transform .6s var(--spring), color .4s; }
.rule em { color: var(--accent); }
.rule-note { font-size: 12.5px; line-height: 1.5; color: var(--muted); margin: 0; transition: color .4s; }
.rules li:hover .rule { transform: translateX(8px); }
.rules li:hover .rule-note { color: var(--ink-2); }

/* ---------- record ---------- */
.record { margin-top: clamp(90px, 12vw, 150px); }
.sec-head-small h2 { font-size: clamp(28px, 3vw, 40px); }
.record-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(30px, 5vw, 80px); }
.ledger { list-style: none; margin: 0; padding: 0; }
.ledger li { display: grid; grid-template-columns: 130px 1fr; gap: 4px 20px; padding: 16px 0; border-top: 1px solid var(--rule); }
.ledger li:last-child { border-bottom: 1px solid var(--rule); }
.l-when { font-size: 12.5px; color: var(--muted); letter-spacing: .03em; padding-top: .3em; grid-row: span 2; }
.l-what b { font-weight: 520; }
.l-role { color: var(--ink-2); font-size: .92em; }
.learning ul { list-style: none; padding: 0; margin: 0 0 26px; }
.learning li { padding: 5px 0; font-size: .95em; color: var(--ink-2); }
.l-head { font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.tools { font-size: .95em; color: var(--ink-2); margin-bottom: 0; }

/* ---------- contact ---------- */
.contact { position: relative; margin-top: clamp(110px, 14vw, 190px); padding-bottom: clamp(60px, 8vw, 100px) !important; }
.contact .sec-num { position: static; margin-bottom: 18px; }
.now { font-size: 1.08em; color: var(--ink-2); max-width: 34em; margin-bottom: 26px; }
.now::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); margin-right: 12px; transform: translateY(-2px); animation: dot var(--breath) var(--ease) infinite; }
.ct-line { font-size: clamp(36px, 5.4vw, 80px); line-height: 1.02; letter-spacing: -.03em; font-weight: 330; max-width: 15em; margin-bottom: 44px; font-variation-settings: "opsz" 144, "SOFT" 70; }
.ct-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-bottom: 26px; }
.ct-mail {
  font-size: clamp(24px, 3vw, 42px); letter-spacing: -.02em; text-decoration: none; font-style: italic;
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 96;
  background: linear-gradient(var(--accent), var(--accent)) 0 100% / 100% 2px no-repeat;
  padding-bottom: 4px; transition: background-size .5s var(--ease), color .3s; overflow-wrap: anywhere;
}
.ct-mail:hover { color: var(--accent); background-size: 100% 4px; }
.ct-copy { font: 500 12px var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); background: none; border: 1px solid var(--rule); border-radius: 999px; padding: 8px 14px; cursor: pointer; transition: color .3s, border-color .3s; }
.ct-copy:hover { color: var(--ink); border-color: var(--ink-2); }
.ct-copy.done { color: var(--accent); border-color: var(--accent); }
.ct-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 34px; }
.ct-links a { font-size: 1em; text-decoration: none; border-bottom: 1px solid var(--rule); padding-bottom: 2px; transition: border-color .3s; }
.ct-links a:hover { border-color: var(--accent); }

/* ---------- footer ---------- */
.foot { max-width: var(--max); margin: 0 auto; padding: 50px var(--pad) 40px; border-top: 1px solid var(--rule); }
.foot-quote { font-size: clamp(22px, 2.4vw, 32px); font-style: italic; font-weight: 320; letter-spacing: -.01em; font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 72; margin-bottom: 26px; }
.foot-meta { display: flex; flex-wrap: wrap; gap: 8px 32px; font-size: 12px; color: var(--muted); letter-spacing: .02em; }
.foot-meta p { margin: 0; }
.foot-meta kbd { margin: 0 4px 0 0; }
.keys kbd + kbd { margin-left: 10px; }
#breaths { color: var(--ink); font-feature-settings: "tnum" 1; }

/* ---------- breathe dialog (B) ---------- */
.breathe {
  border: 0; padding: 0; margin: 0; width: 100vw; height: 100svh; max-width: none; max-height: none;
  background: var(--paper); color: var(--ink);
  display: none; place-items: center; place-content: center; text-align: center;
}
.breathe[open] { display: grid; animation: fadeIn .8s var(--ease); }
.breathe::backdrop { background: var(--paper); }
@keyframes fadeIn { from { opacity: 0; } }
.bz-orb { width: min(46vmin, 360px); aspect-ratio: 1; border-radius: 50%; margin: 0 auto 40px; background: radial-gradient(circle at 40% 38%, color-mix(in srgb, var(--accent) 55%, var(--paper)), var(--accent) 70%); transform: scale(.45); transition: transform 4s cubic-bezier(.37, 0, .63, 1); opacity: .9; }
.breathe.in .bz-orb { transform: scale(1); transition-duration: 4s; }
.breathe.out .bz-orb { transform: scale(.45); transition-duration: 6s; }
.bz-word { font-size: clamp(34px, 5vw, 60px); font-style: italic; font-weight: 320; font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144; margin: 0 0 8px; min-height: 1.3em; }
.bz-count { font: 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.bz-done { position: absolute; left: 0; right: 0; bottom: 18vh; padding: 0 24px; font-size: clamp(22px, 2.6vw, 32px); opacity: 0; transition: opacity 1s; }
.breathe.done .bz-done { opacity: 1; }
.breathe.done .bz-word, .breathe.done .bz-count { opacity: 0; transition: opacity .6s; }
.bz-close { position: absolute; top: 20px; right: 20px; font: 500 12px var(--mono); letter-spacing: .08em; color: var(--muted); background: none; border: 1px solid var(--rule); border-radius: 999px; padding: 8px 14px; cursor: pointer; }

/* ---------- the "ads" egg ---------- */
.adbox { position: fixed; left: 20px; bottom: 20px; z-index: 40; width: min(380px, calc(100vw - 40px)); }
.ad-fake {
  display: grid; gap: 8px; padding: 16px; border-radius: 4px; background: #FFE600; color: #D0021B;
  font: 900 18px/1.1 Impact, "Arial Black", sans-serif; letter-spacing: .01em; position: relative;
  box-shadow: 0 0 0 4px #D0021B; animation: shake .25s steps(2) 4;
}
.ad-tag { font: 10px var(--mono); color: #6b5f00; text-transform: uppercase; letter-spacing: .1em; }
.ad-btn { justify-self: start; background: #D0021B; color: #FFE600; padding: 6px 12px; font-size: 14px; }
@keyframes shake { 50% { transform: translateX(3px) rotate(.6deg); } }
.ad-fake::after { content: ""; position: absolute; left: -4%; right: -4%; top: 50%; height: 3px; background: var(--ink); transform: scaleX(0) rotate(-8deg); transform-origin: left; transition: transform .4s var(--ease); }
.adbox.struck .ad-fake::after { transform: scaleX(1) rotate(-8deg); }
.adbox.struck .ad-fake { filter: grayscale(1) contrast(.55) brightness(1.15); transform: scale(.97); transition: filter .5s, transform .5s var(--ease); animation: none; }
.ad-real { margin-top: 12px; padding: 18px 18px 14px; background: var(--card); border: 1px solid var(--rule); border-radius: 4px; opacity: 0; transform: translateY(8px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.adbox.struck .ad-real { opacity: 1; transform: none; }
.ad-real p { font-size: 18px; line-height: 1.35; font-style: italic; font-variation-settings: "SOFT" 100, "WONK" 1; margin-bottom: 10px; }
.ad-x { font: 500 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: none; border: 0; padding: 0; cursor: pointer; }

/* ---------- reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .results { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 8px; }
  .res:nth-child(4) { padding-left: 0; border-left: 0; }
  .rules li { grid-template-columns: 48px minmax(0, 1fr); }
  .rule-note { grid-column: 2; margin-top: 8px; }
}
@media (max-width: 860px) {
  .toc { display: none; }
  .mode { margin-left: auto; }
  .hero { grid-template-columns: 1fr; min-height: 0; text-align: left; }
  .hero-copy { display: contents; }
  .eyebrow { order: 1; } .claim { order: 2; } .lede { order: 3; margin-bottom: 8px; } .breath { order: 4; } .vitals { order: 5; }
  .lede + .lede { margin-top: 10px; }
  .hero { gap: 0; }
  .breath { width: min(230px, 60vw); margin: 18px auto 30px; }
  .breath-cap { font-size: 11.5px; }
  .method { grid-template-columns: 1fr; }
  .practice-grid, .record-grid { grid-template-columns: 1fr; }
  .sec-num { position: static; margin-bottom: 14px; }
  .owner { margin-left: 0; }
  .timeline { padding-left: 26px; margin-top: 26px; }
  .tl-track { position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px; height: auto; margin: 0; }
  .tl-stop::before { top: 5px; left: -25px; }
  .tl-traveller { left: 50% !important; top: 0; margin: -7px 0 0 -7px; animation-name: travelY; }
  @keyframes travelY { 0% { top: 0; opacity: 0; } 8% { opacity: 1; } 88% { opacity: 1; } 100% { top: 100%; opacity: 0; } }
  .tl-mark { display: none; }
  .tl-stops { grid-template-columns: 1fr; gap: 30px; }
}
@media (max-width: 560px) {
  body { font-size: 17px; }
  .top { padding: 12px 18px; gap: 12px; }
  .wordmark { font-size: 19px; }
  .mode { padding: 7px 10px; gap: 6px; font-size: 11px; }
  .mode kbd { display: none; }
  .claim { font-size: clamp(42px, 12.4vw, 58px); margin-bottom: 26px; }
  .eyebrow { margin-bottom: 18px; font-size: 11.5px; }
  .vitals { grid-template-columns: 1fr; }
  .vital, .vital + .vital { display: grid; grid-template-columns: 1fr auto; align-items: baseline; padding: 14px 0; border-left: 0; border-bottom: 1px solid var(--rule); }
  .vital dt { margin: 0; }
  .vital .sig { grid-column: 1 / -1; }
  .results { grid-template-columns: 1fr 1fr; }
  .res, .res + .res { padding: 16px 12px 10px 0; border-left: 0; border-bottom: 1px solid var(--rule); }
  .res:nth-child(even) { padding-left: 14px; border-left: 1px solid var(--rule); }
  .step { grid-template-columns: 1fr; }
  .step-n { margin: 0 0 8px; }
  .entry { padding: 20px 18px 22px 42px; }
  .rules li { grid-template-columns: 38px minmax(0, 1fr); padding: 18px 0; }
  .ledger li { grid-template-columns: 1fr; }
  .l-when { grid-row: auto; padding: 0; }
  .ct-line { font-size: clamp(32px, 9vw, 44px); }
  .foot-meta { gap: 8px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .breath-scale { transform: scale(.96); }
  .phase-in { opacity: 1; }
  .phase-out { display: none; }
  .tl-traveller { display: none; }
  .js .reveal { opacity: 1; transform: none; }
}

@media print {
  .top, .wave, .breath, .foot-meta, .adbox, .breathe { display: none !important; }
  body { background: #fff; color: #000; }
  .sig { display: block; visibility: visible; opacity: 1; color: #555; }
}

/* =====================================================================
   v2: person-first home, Work index, case-study page
   ===================================================================== */

/* hero, person-first */
.claim-person { font-size: clamp(44px, 5.4vw, 86px); line-height: .98; margin-bottom: 28px; }
.hero-person .lede { font-size: 1.08em; margin-bottom: 18px; }
.hero-person { padding-top: clamp(24px, 5vh, 56px) !important; }
.claim-person em { white-space: nowrap; }
.hero-person .lede-2 { font-size: .98em; color: var(--muted); margin-bottom: 30px; }
.halves { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid var(--rule); margin-top: clamp(10px, 2vw, 24px); }
.hero-person { align-items: center; }
.half { padding-bottom: 6px; }
.half p:not(.half-k) { max-width: 34em; }
.half { padding: 18px 22px 0 0; }
.half + .half { padding-left: 24px; border-left: 1px solid var(--rule); }
.half p { margin: 0; font-size: .95em; line-height: 1.5; color: var(--ink-2); }
.half .half-k { font: 500 11.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink); margin-bottom: 10px; display: flex; align-items: center; gap: 9px; }
.half-mark { display: inline-block; width: 10px; height: 10px; border-radius: 50%; flex: none; }
.half-mark-ink { border: 3px solid var(--ink); }
.half-mark-acc { border: 2px solid var(--accent); }

/* life ring (home, signal mode) */
.life circle { fill: none; transform: rotate(-90deg); transform-origin: 200px 200px; }
.l-track { stroke: var(--rule); stroke-width: 1; opacity: 0; transition: opacity .6s; }
.l-out, .l-in { stroke-dasharray: 0 68; stroke-dashoffset: calc(var(--off) * -1); transition: stroke-dasharray .5s var(--ease); }
.l-out { stroke: var(--ink); stroke-width: 11; }
.l-in { stroke: var(--accent); stroke-width: 7; }
.l-tick { stroke: var(--muted); stroke-width: 1; opacity: 0; transition: opacity .5s; }
.l-year { font: 500 12px var(--mono); fill: var(--muted); text-anchor: middle; dominant-baseline: middle; opacity: 0; transition: opacity .5s; }
.l-start { stroke: var(--accent); stroke-width: 1.2; stroke-dasharray: 2 3; opacity: 0; transition: opacity .5s; }
html[data-mode="signal"] .l-track, html[data-mode="signal"] .l-tick, html[data-mode="signal"] .l-year, html[data-mode="signal"] .l-start { opacity: 1; transition-delay: .3s; }
html[data-mode="signal"] .l-out, html[data-mode="signal"] .l-in { stroke-dasharray: var(--len) 68; transition: stroke-dasharray 1.1s var(--ease) calc(.35s + var(--d)); }
.sig-face-life { gap: 4px; }
.sf-row { display: inline-flex; align-items: center; gap: 10px; font-style: italic; font-size: clamp(26px, 2.6vw, 36px); line-height: 1.1; font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 72; font-weight: 320; }
.sf-acc { color: var(--accent); }
.sig-face-life .sig-meta { margin-top: 10px; }

/* crumbs + page heads */
.crumbs { font: 12px var(--mono); letter-spacing: .05em; color: var(--muted); margin-bottom: 26px; }
.crumbs a { text-decoration: none; border-bottom: 1px solid var(--rule); }
.crumbs a:hover { color: var(--ink); border-color: var(--accent); }
.crumbs [aria-current] { color: var(--ink); }
.page-head { padding-top: clamp(50px, 9vh, 110px) !important; padding-bottom: clamp(30px, 5vw, 60px) !important; }
.page-title { font-size: clamp(50px, 7vw, 108px); line-height: .98; letter-spacing: -.035em; font-weight: 340; font-variation-settings: "SOFT" 70, "opsz" 144; max-width: 11em; }
.page-head .sec-lede { margin-top: 26px; }
.page-sig { max-width: 640px; }
.toc a[aria-current="page"] { color: var(--ink); }
.toc a[aria-current="page"]::after { transform: scaleX(1); }

/* feature card (case study) */
.feature {
  display: grid; gap: 14px; text-decoration: none; position: relative;
  padding: clamp(26px, 3.4vw, 46px); border: 1px solid var(--ink); border-radius: 4px;
  background: var(--card);
  transition: transform .5s var(--spring), box-shadow .5s var(--ease), background-color .7s var(--ease);
}
.feature:hover { transform: translateY(-4px); box-shadow: 0 26px 40px -28px rgba(40, 28, 15, .5); }
.feature-k { font: 12px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.feature-t { font-size: clamp(32px, 4vw, 58px); line-height: 1.02; letter-spacing: -.025em; font-weight: 350; font-variation-settings: "SOFT" 60, "opsz" 144; max-width: 14em; }
.feature-d { color: var(--ink-2); max-width: 40em; }
.feature-figs { display: flex; flex-wrap: wrap; gap: 10px 36px; padding-top: 18px; margin-top: 6px; border-top: 1px solid var(--rule); font: 12px var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.feature-figs b { display: block; font: 400 clamp(26px, 2.4vw, 34px) var(--serif); letter-spacing: -.02em; text-transform: none; color: var(--ink); font-feature-settings: "lnum" 1, "tnum" 1; margin-bottom: 4px; font-variation-settings: "opsz" 72; }
.feature-go { font: 500 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-top: 6px; }
.feature-go span { display: inline-block; transition: transform .4s var(--spring); }
.feature:hover .feature-go span { transform: translateX(6px); }
.case-feature { margin-bottom: clamp(70px, 9vw, 120px); }

/* mini list (teasers) */
.mini { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 0; border-top: 1px solid var(--rule); }
.mini li { border-bottom: 1px solid var(--rule); }
.mini a { display: grid; gap: 4px; padding: 18px 20px 18px 0; text-decoration: none; height: 100%; transition: background-color .3s; }
.mini li + li a { padding-left: 20px; }
.mini li + li { border-left: 1px solid var(--rule); }
.mini a:hover .mini-t { color: var(--accent); }
.mini-t { font-size: 1.05em; line-height: 1.25; transition: color .3s; }
.mini-r { font: 12px var(--mono); letter-spacing: .04em; color: var(--muted); }
.all-work { margin-top: 30px; }
.all-work a { text-decoration: none; border-bottom: 1px solid var(--accent); padding-bottom: 2px; }
.all-work a:hover { color: var(--accent); }

/* home spacing */
.principles-home { margin-top: 0; }
.teaser { margin-top: clamp(90px, 12vw, 160px); }

/* notebook additions */
.entry-case { border-color: var(--ink); }
.entry-link { text-decoration: none; }
.entry-link::after { content: ""; position: absolute; inset: 0; }
.entry-link:hover { color: var(--accent); }
.entry-go { font: 500 11.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin: 16px 0 0; }
.entry:target { box-shadow: 0 0 0 2px var(--accent), 0 22px 34px -20px rgba(40, 28, 15, .45); }
.entries { scroll-margin-top: 90px; }
.entry { scroll-margin-top: 100px; }

/* case page */
.hero-case .claim-case { font-size: clamp(46px, 6.2vw, 100px); }
.case { padding-top: 0 !important; }
.also-mom { margin-top: clamp(70px, 9vw, 120px); }

/* contact strip (inner pages) */
.strip { margin-top: clamp(90px, 12vw, 150px); padding-bottom: clamp(60px, 8vw, 100px) !important; }
.strip-line { font-size: clamp(32px, 4.2vw, 60px); line-height: 1.05; letter-spacing: -.025em; font-weight: 330; max-width: 16em; margin-bottom: 36px; font-variation-settings: "opsz" 144, "SOFT" 70; }

.foot-meta a { text-decoration: none; border-bottom: 1px solid var(--rule); }
.foot-meta a:hover { color: var(--ink); }

@media (max-width: 860px) {
  .lede, .lede-2 { order: 3; }
  .crumbs { order: 0; }
  .halves { order: 5; }
  .lede-2 { margin-bottom: 8px; }
  .claim-person em { white-space: normal; }
}
@media (max-width: 560px) {
  .claim-person { font-size: clamp(40px, 11.4vw, 54px); }
  .halves { grid-template-columns: 1fr; }
  .half, .half + .half { padding: 16px 0; border-left: 0; border-bottom: 1px solid var(--rule); }
  .mini li + li { border-left: 0; }
  .mini li + li a { padding-left: 0; }
  .feature-figs { gap: 14px 26px; }
  .page-title { font-size: clamp(44px, 12vw, 60px); }
}

/* =====================================================================
   v3: person-first home (wired, off the clock), separate pages
   ===================================================================== */
.hero-person .claim-person { font-size: clamp(44px, 5.6vw, 90px); }
.hero-person .claim-person em { white-space: normal; }
.hero-sig { max-width: 36em; margin-top: -6px; margin-bottom: 10px; }
html[data-mode="signal"] .hero-sig { margin-top: -8px; margin-bottom: 16px; }

/* how I'm wired */
.wired { margin-bottom: clamp(90px, 12vw, 150px); }
.wired-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(30px, 5vw, 80px); align-items: center; }
.pairs { list-style: none; margin: 0; padding: 0; }
.pairs li { display: grid; grid-template-columns: 1fr 72px 1fr; align-items: center; padding: 20px 0; border-top: 1px solid var(--rule); }
.pairs li:last-child { border-bottom: 1px solid var(--rule); }
.p-l, .p-r { font-size: clamp(22px, 2.3vw, 34px); line-height: 1.1; letter-spacing: -.015em; font-variation-settings: "opsz" 72, "SOFT" 60; }
.p-l { text-align: right; font-family: var(--mono); font-size: clamp(14px, 1.15vw, 17px); letter-spacing: .02em; text-transform: uppercase; color: var(--ink-2); }
.p-r { font-style: italic; font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 72; color: var(--accent); font-weight: 340; }
.p-x { position: relative; height: 1px; margin: 0 14px; background: var(--rule); }
.p-x::after { content: ""; position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; background: var(--accent); animation: dot var(--breath) var(--ease) infinite; }
.pairs li:nth-child(2) .p-x::after { animation-delay: -1.2s; }
.pairs li:nth-child(3) .p-x::after { animation-delay: -2.4s; }
.wired-copy p { color: var(--ink-2); }
.wired-punch { font-size: clamp(22px, 2vw, 28px); line-height: 1.25; font-style: italic; font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 72; font-weight: 330; color: var(--ink) !important; margin-top: 20px; }

/* short principles */
.principles-home { margin-top: 0; }
.principles-home .rules li::before { content: counter(r, decimal-leading-zero); }
.principles-home .rules { counter-reset: none; }
.principles-home .rules li { counter-increment: none; counter-set: r var(--n); }

/* off the clock */
.clock { margin-top: clamp(90px, 12vw, 150px); }
.clock-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--ink); }
.cl { padding: 22px 24px 26px 0; }
.cl + .cl { padding-left: 24px; border-left: 1px solid var(--rule); }
.cl p { margin: 0; }
.cl-k { font: 11.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px !important; }
.cl-title { font-size: clamp(34px, 3.2vw, 48px); line-height: 1; letter-spacing: -.02em; }
.cl-title cite { font-style: italic; font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144; font-weight: 330; color: var(--accent); }
.cl-by { font: 12px var(--mono); letter-spacing: .04em; color: var(--ink-2); margin: 8px 0 16px !important; }
.cl-big { font-size: clamp(20px, 1.7vw, 25px); line-height: 1.22; letter-spacing: -.01em; font-variation-settings: "opsz" 48, "SOFT" 60; margin-bottom: 12px !important; }
.cl-note { font-size: .9em; line-height: 1.5; color: var(--muted); }
.cl-note a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--accent); white-space: nowrap; }
.cl-book { position: relative; }

/* work, lightly + now on home */
.lightly { margin-top: clamp(90px, 12vw, 150px); }
.light-line { max-width: 30em; }
.light-line { font-size: clamp(22px, 2.2vw, 30px); line-height: 1.3; letter-spacing: -.01em; font-variation-settings: "opsz" 72, "SOFT" 60; font-weight: 350; margin-bottom: 0; }
.home-now { margin-top: clamp(80px, 10vw, 130px); padding-bottom: clamp(60px, 8vw, 100px) !important; }
.home-now .now { font-size: clamp(22px, 2.2vw, 30px); line-height: 1.3; max-width: 26em; color: var(--ink); font-variation-settings: "opsz" 72; }

/* problem / approach / what changed */
.pav { display: grid; gap: 12px; margin-top: 6px; max-width: 60em; }
.pav-row { display: grid; grid-template-columns: 130px 1fr; gap: 16px; color: var(--ink-2); }
.pav-k { font: 11.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding-top: .35em; }
.pav-k-res { margin-top: 10px; display: block; }
.problem { display: grid; grid-template-columns: 56px 1fr; gap: 0; padding: 0 0 36px; }
.problem .pav-k { color: var(--accent); margin: 0; }
.problem-t { font-size: clamp(24px, 2.4vw, 34px); line-height: 1.2; letter-spacing: -.015em; font-variation-settings: "opsz" 72, "SOFT" 60; margin: 0; max-width: 24em; }

/* next links */
.next-links { display: grid !important; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: clamp(70px, 9vw, 110px); }
.next { display: grid; gap: 6px; padding: 22px 0; border-top: 1px solid var(--ink); text-decoration: none; }
.next-k { font: 11.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.next-t { font-size: clamp(24px, 2.4vw, 34px); letter-spacing: -.015em; font-variation-settings: "opsz" 72; }
.next-t span { display: inline-block; transition: transform .4s var(--spring); color: var(--accent); }
.next:hover .next-t span { transform: translateX(6px); }

/* practice page */
.practice-page { margin-top: 0 !important; }
.practice-page .practice-inner { padding-top: clamp(50px, 7vw, 90px); }
.pr-k { font: 11.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent) !important; margin: 26px 0 8px !important; }
.pr-k:first-child { margin-top: 0 !important; }
.page-head .sec-lede em { color: var(--accent); }
.principles-page { margin-top: 0; }
.principles-sig { margin-top: 1.2em; }

/* contact page */
.contact-page { min-height: calc(100svh - 280px); display: flex; flex-direction: column; justify-content: center; }
.contact-page .crumbs { margin-bottom: 40px; }
.ct-title { font-size: clamp(40px, 5.6vw, 84px); max-width: 15em; margin-bottom: 44px; }
.contact-note { margin-top: 30px; font: 12px var(--mono); letter-spacing: .04em; color: var(--muted); }

/* footer nav */
.foot-nav { display: flex; flex-wrap: wrap; gap: 8px 26px; margin: 0 0 22px; }
.foot-nav a { text-decoration: none; font-size: 15px; color: var(--ink-2); border-bottom: 1px solid transparent; }
.foot-nav a:hover { border-color: var(--accent); color: var(--ink); }

@media (max-width: 1080px) {
  .clock-grid { grid-template-columns: 1fr 1fr; }
  .cl:nth-child(3) { padding-left: 0; border-left: 0; }
  .cl:nth-child(n+3) { border-top: 1px solid var(--rule); }
}
@media (max-width: 860px) {
  .wired-grid { grid-template-columns: 1fr; }
  .hero-sig { order: 3; }
}
@media (max-width: 560px) {
  .pairs li { grid-template-columns: 1fr 40px 1fr; padding: 16px 0; }
  .p-x { margin: 0 8px; }
  .p-l { font-size: 12px; }
  .p-r { font-size: 21px; }
  .clock-grid { grid-template-columns: 1fr; }
  .cl, .cl + .cl { padding: 20px 0 22px; border-left: 0; }
  .cl + .cl { border-top: 1px solid var(--rule); }
  .pav-row { grid-template-columns: 1fr; gap: 2px; }
  .problem { grid-template-columns: 1fr; }
  .next-links { grid-template-columns: 1fr; gap: 0; }
}

/* =====================================================================
   v4: bookshelf (home mini shelf + shelf.html)
   ===================================================================== */
.clock-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mini-shelf { border-top: 1px solid var(--ink); padding: 22px 0 34px; }
.ms-head { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; }
.ms-link { margin: 0; }
.ms-link a { font: 500 12px var(--mono); letter-spacing: .07em; text-transform: uppercase; text-decoration: none; color: var(--accent); }
.ms-link a:hover { text-decoration: underline; text-underline-offset: 4px; }

.shelf {
  list-style: none; margin: 0; padding: 26px 4px 0; display: flex; align-items: flex-end; gap: 4px;
  position: relative; scrollbar-width: thin;
  border-bottom: 4px solid var(--ink); box-shadow: 0 10px 14px -12px rgba(40, 28, 15, .55);
  -webkit-overflow-scrolling: touch;
}
.shelf::-webkit-scrollbar { height: 4px; }
.shelf::-webkit-scrollbar-thumb { background: var(--rule); }
.book { flex: none; order: 0; display: flex; align-items: flex-end; }
.book.lean { margin-left: 14px; }
html[data-mode="stillness"] .book.lean .spine { transform: rotate(7deg); transform-origin: 100% 100%; }
html[data-mode="stillness"] .book.lean .spine:hover, html[data-mode="stillness"] .book.lean .spine:focus-visible { transform: rotate(4deg) translateY(-6px); }
.spine {
  --bg: var(--ink); --fg: var(--paper);
  position: relative; height: calc(var(--h) * var(--k, 1)); min-width: 36px; padding: 14px 9px; margin: 0;
  writing-mode: vertical-rl; text-orientation: mixed;
  display: flex; align-items: center; justify-content: flex-start;
  background: var(--bg); color: var(--fg); border: 0; border-radius: 2px 2px 0 0;
  font: 400 14px/1.15 var(--serif); letter-spacing: .01em; text-align: left; cursor: pointer;
  font-variation-settings: "opsz" 14, "SOFT" 50;
  box-shadow: inset -3px 0 0 rgba(0, 0, 0, .12), inset 2px 0 0 rgba(255, 255, 255, .08);
  transition: transform .45s var(--spring), background-color .7s var(--ease), color .7s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.spine::before, .spine::after { content: ""; position: absolute; left: 5px; right: 5px; height: 1px; background: currentColor; opacity: .35; }
.spine::before { top: 8px; }
.spine::after { bottom: 8px; }
.sp-t { max-height: calc(var(--h) * var(--k, 1) - 28px); white-space: normal; overflow-wrap: anywhere; }
.spine:hover, .spine:focus-visible, .spine.on { transform: translateY(-10px); }
.spine:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.s-ink { --bg: var(--ink); --fg: var(--paper); }
.s-acc { --bg: var(--accent); --fg: #FBF6EE; }
html[data-mode="signal"] .s-acc { --fg: #1A1512; }
.s-paper { --bg: var(--paper-2); --fg: var(--ink); box-shadow: inset 0 0 0 1px var(--rule), inset -3px 0 0 rgba(0, 0, 0, .05); }
.s-tint { --bg: color-mix(in srgb, var(--accent) 22%, var(--paper)); --fg: var(--ink); }
.s-muted { --bg: var(--muted); --fg: var(--paper); }
.s-card { --bg: var(--card); --fg: var(--ink); box-shadow: inset 0 0 0 1px var(--ink), inset -3px 0 0 rgba(0, 0, 0, .05); }
.s-ink2 { --bg: var(--ink-2); --fg: var(--paper); }
/* the most recent read: a ribbon bookmark */
.spine.recent { overflow: visible; }
.spine.recent .sp-t { position: relative; }
.book:has(.recent) { position: relative; }
.book:has(.recent)::before {
  content: ""; position: absolute; left: 50%; bottom: calc(var(--h) * var(--k, 1) - 6px); width: 9px; height: 22px; margin-left: -4.5px;
  background: var(--accent); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 78%, 0 100%); z-index: 1;
  transition: transform .45s var(--spring);
}
.book:has(.recent:hover)::before, .book:has(.recent:focus-visible)::before, .book:has(.recent.on)::before { transform: translateY(-10px); }

/* bookends: only in signal mode, the shelf sorts into threads */
.bookend { display: none; flex: none; align-self: stretch; align-items: flex-end; }
html[data-mode="signal"] .bookend { display: flex; }
html[data-mode="signal"] .book { order: var(--o); }
html[data-mode="signal"] .bookend { order: var(--o); }
.bookend {
  writing-mode: vertical-rl; transform: rotate(180deg); gap: 8px; justify-content: flex-start;
  padding: 6px 4px 6px 10px; margin: 0 2px 0 10px; border-right: 1px dashed var(--accent);
  font: 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--accent);
  animation: fadeIn .6s var(--ease);
}
.bookend:first-child { margin-left: 0; }
.be-n { font: 400 18px var(--serif); letter-spacing: 0; color: var(--ink); text-transform: none; }

.shelf-cap { margin: 16px 0 0; min-height: 1.6em; font-size: 1.05em; color: var(--ink-2); }
.shelf-cap cite { font-style: italic; font-variation-settings: "SOFT" 100, "WONK" 1; color: var(--ink); }
.cap-dot { color: var(--accent); margin: 0 .35em; }
.cap-a { white-space: nowrap; }
.cap-th { font: 11.5px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--accent); margin-left: .6em; }
html[data-mode="stillness"] .cap-th { display: none; }

/* full shelf page */
.shelf-wrap { padding-top: 10px !important; }
.shelf-full { gap: 6px; padding-top: 44px; }
.shelf-full .spine { font-size: 16px; min-width: 40px; padding: 18px 10px; }
.shelf-full .spine::before { top: 10px; } .shelf-full .spine::after { bottom: 10px; }
.shelf-full .bookend { font-size: 12px; }
.shelf-full .be-n { font-size: 24px; }
.shelf-cap-big { font-size: clamp(20px, 2vw, 28px); margin-top: 22px; }
.shelf-hint { font: 12px var(--mono); letter-spacing: .03em; color: var(--muted); margin-top: 8px; }
.hint-touch { display: none; }
.hint-sig { display: none; }
html[data-mode="signal"] .hint-sig { display: inline; } html[data-mode="signal"] .hint-still { display: none; }
.touch .hint-key { display: none; } .touch .hint-touch { display: inline; }
.shelf-threads { margin-top: 0 !important; }
html[data-mode="signal"] .shelf-threads { margin-top: clamp(50px, 6vw, 80px) !important; }
.threads-chart { list-style: none; margin: 0; padding: 0; color: var(--ink); }
.threads-chart li { display: grid; grid-template-columns: 250px 90px 30px 1fr; gap: 16px; align-items: baseline; padding: 12px 0; border-top: 1px solid var(--rule); font-family: var(--serif); font-size: 16px; }
.threads-chart li:last-child { border-bottom: 1px solid var(--rule); }
.tc-t { font-size: 19px; }
.tc-dots { display: flex; gap: 6px; }
.tc-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.tc-n { font: 500 13px var(--mono); color: var(--accent); }
.tc-list { font-size: 14.5px; color: var(--muted); font-style: italic; }
.shelf-list { margin-top: clamp(70px, 9vw, 120px); }
.ledger-books { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: clamp(30px, 5vw, 70px); }
.ledger-books li { break-inside: avoid; display: grid; grid-template-columns: 34px 1fr; gap: 0 12px; padding: 12px 0; border-top: 1px solid var(--rule); }
.lg-n { font: 12px var(--mono); color: var(--accent); padding-top: .3em; grid-row: span 3; }
.lg-t cite { font-style: italic; font-size: 1.08em; font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 36; }
.lg-recent { font: 500 10.5px var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--paper); background: var(--accent); padding: 2px 6px 1px; border-radius: 2px; margin-left: 8px; vertical-align: 2px; white-space: nowrap; }
.lg-a { font-size: .9em; color: var(--muted); }
.lg-th { font-size: 11px; letter-spacing: .05em; text-transform: uppercase; }

@media (min-width: 861px) and (max-width: 1080px) {
  .clock-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .clock-grid-3 .cl:nth-child(3) { padding-left: 24px; border-left: 1px solid var(--rule); }
  .clock-grid-3 .cl:nth-child(n+3) { border-top: 0; }
}
@media (max-width: 860px) {
  .clock-grid-3 { grid-template-columns: 1fr; }
  .clock-grid-3 .cl, .clock-grid-3 .cl + .cl { padding: 20px 0 22px; border-left: 0; }
  .clock-grid-3 .cl + .cl { border-top: 1px solid var(--rule); }
  .ledger-books { columns: 1; }
  .threads-chart li { grid-template-columns: 1fr auto; gap: 4px 12px; }
  .tc-dots { grid-column: 1; grid-row: 2; } .tc-n { grid-column: 2; grid-row: 1; } .tc-list { grid-column: 1 / -1; }
}
html[data-mode="signal"] .shelf { gap: 3px; }
html[data-mode="signal"] .spine { min-width: 31px; padding-left: 6px; padding-right: 6px; }
html[data-mode="signal"] .shelf-full .spine { min-width: 36px; padding-left: 8px; padding-right: 8px; }
html[data-mode="signal"] .bookend { margin-left: 8px; padding: 6px 3px 6px 6px; gap: 6px; }
html[data-mode="signal"] .bookend:first-child { margin-left: 0; }
@media (min-width: 561px) { .shelf-wrap .shelf-full { width: min(1240px, calc(100vw - 2 * var(--pad))); margin-left: calc((100% - min(1240px, calc(100vw - 2 * var(--pad)))) / 2); } }
@media (max-width: 1180px) {
  .shelf { overflow-x: auto; overflow-y: hidden; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); }
}
@media (max-width: 560px) {
  .shelf { margin: 0 calc(-1 * var(--pad)); padding-left: var(--pad); padding-right: var(--pad); }
  .shelf-full .spine { font-size: 14px; min-width: 34px; }
  .shelf-full { --k: .74; padding-top: 34px; }
}
@media (prefers-reduced-motion: reduce) { .bookend { animation: none; } }

/* v5: hero punch line */
.hero-punch { font-size: clamp(22px, 2vw, 28px); line-height: 1.25; font-style: italic; font-weight: 330; font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 72; color: var(--ink); max-width: 22em; margin: 4px 0 30px; padding-left: 16px; border-left: 2px solid var(--accent); }
@media (max-width: 860px) { .hero-punch { order: 3; margin-bottom: 12px; } }
@media (max-width: 560px) { .shelf-cap .cap-a { display: block; } .shelf-cap .cap-dot { display: none; } }

/* =====================================================================
   v6: home hero, the ring as the centre of the page
   ===================================================================== */
.hero-person {
  grid-template-columns: minmax(0, 1fr) auto; gap: clamp(28px, 3vw, 48px);
  min-height: calc(100svh - 64px); padding-top: clamp(12px, 3vh, 36px) !important; padding-bottom: clamp(20px, 4vh, 44px) !important;
}
.hero-person .eyebrow { margin-bottom: 22px; }
.hero-person .claim-person { font-size: clamp(44px, 4.7vw, 76px); line-height: .98; margin-bottom: 26px; max-width: 9.6em; }
.hero-person .lede { font-size: 1.1em; line-height: 1.5; max-width: 25em; margin-bottom: 26px; }
.hero-person .hero-sig { max-width: 30em; margin-top: -12px; }
html[data-mode="signal"] .hero-person .hero-sig { margin-top: -14px; margin-bottom: 22px; }
.hero-person .hero-punch { margin: 0; max-width: 19em; }
.hero-person .breath {
  width: min(640px, calc(100svh - 220px), 47vw); min-width: 380px;
  margin-right: calc(-1 * var(--pad) + 18px);
}
/* a soft halo so the ring holds the room */
.hero-person .breath-scale::before {
  content: ""; position: absolute; inset: -9%; border-radius: 50%; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 9%, transparent) 0%, color-mix(in srgb, var(--accent) 4%, transparent) 55%, transparent 100%);
  transition: opacity .8s var(--ease);
}
html[data-mode="signal"] .hero-person .breath-scale::before { opacity: .45; }
.hero-person .breath-scale { isolation: isolate; }
.hero-person .phase { font-size: clamp(34px, 3.6vw, 56px); }
.hero-person .phase-meta { font-size: 11.5px; margin-top: 10px; }
.hero-person .sf-row { font-size: clamp(28px, 2.9vw, 42px); }
.hero-person .breath-cap { margin-top: 22px; }

@media (max-width: 860px) {
  .hero-person { grid-template-columns: 1fr; min-height: 0; padding-top: 10px !important; padding-bottom: 10px !important; }
  .hero-person .breath { order: 0; width: min(78vw, 420px); min-width: 0; margin: 0 auto 22px; }
  .hero-person .breath-cap { margin-top: 10px; }
  .hero-person .eyebrow { margin-bottom: 12px; }
  .hero-person .claim-person { margin-bottom: 18px; max-width: none; }
  .hero-person .lede { margin-bottom: 18px; }
  .hero-person .hero-sig { margin-top: -8px; }
  .hero-person .phase { font-size: clamp(28px, 8vw, 40px); }
  .hero-person .sf-row { font-size: clamp(22px, 6.4vw, 32px); }
}
@media (max-width: 560px) {
  .hero-person .claim-person { font-size: clamp(38px, 10.6vw, 50px); }
  .hero-person .breath { width: 76vw; }
  .hero-person .breath-cap { font-size: 11px; }
}
.hero-person .eyebrow { white-space: nowrap; letter-spacing: .06em; }
@media (max-width: 860px) {
  .hero-person .eyebrow { white-space: normal; }
  .hero-person .breath-cap { display: block; max-width: 30em; margin-left: auto; margin-right: auto; }
  .hero-person .breath-cap .cap-sig { display: none; }
  html[data-mode="signal"] .hero-person .breath-cap .cap-still { display: none; }
  html[data-mode="signal"] .hero-person .breath-cap .cap-sig { display: inline; }
}

/* =====================================================================
   v7: mobile navigation (menu button + full-screen numbered menu)
   ===================================================================== */
.menu-btn { display: none; }
.mnav { display: none; }
@media (max-width: 860px) {
  .top { gap: 10px; padding-top: 8px; padding-bottom: 8px; }
  .mode { min-height: 44px; }
  .menu-btn {
    display: inline-grid; place-items: center; width: 44px; height: 44px; flex: none; margin-right: -8px;
    padding: 0; border: 0; background: none; color: var(--ink); cursor: pointer; border-radius: 50%;
    -webkit-tap-highlight-color: transparent;
  }
  .mb-lines { display: grid; gap: 6px; width: 22px; }
  .mb-lines i { display: block; height: 1.5px; background: currentColor; border-radius: 2px; }
  .mb-lines i:last-child { width: 62%; justify-self: end; animation: mbBreath var(--breath) var(--ease) infinite; transform-origin: 100% 50%; }
  @keyframes mbBreath { 0%, 100% { transform: scaleX(.75); } 40% { transform: scaleX(1.25); } }
  .menu-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 0; }

  .mnav[open] { display: flex; }
  .mnav {
    flex-direction: column; position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none;
    margin: 0; padding: 8px var(--pad) calc(22px + env(safe-area-inset-bottom)); border: 0;
    background: var(--paper); color: var(--ink); overflow-y: auto; overscroll-behavior: contain;
  }
  html[data-mode="signal"] .mnav {
    background-color: var(--paper);
    background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
    background-size: 24px 24px;
  }
  .mnav::backdrop { background: var(--paper); }
  .mnav-top { display: flex; align-items: center; justify-content: space-between; min-height: 44px; padding: 0; }
  .mnav-close {
    display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 2px 0 12px; margin-right: -2px;
    border: 0; background: none; color: var(--ink); cursor: pointer;
    font: 500 12px var(--mono); letter-spacing: .07em; text-transform: uppercase;
  }
  .mnav-x { font: 300 26px/1 var(--serif); margin-top: -3px; }
  .mnav-nav { margin-top: clamp(28px, 7vh, 64px); }
  .mnav-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
  .mnav-list li { border-bottom: 1px solid var(--rule); }
  .mnav-list a {
    display: flex; align-items: baseline; gap: 16px; min-height: 44px; padding: 14px 0 12px; text-decoration: none; color: var(--ink);
    font-size: clamp(34px, 10vw, 46px); line-height: 1.05; letter-spacing: -.025em; font-weight: 340; font-variation-settings: "opsz" 144, "SOFT" 70;
  }
  .mnav-list .num { width: 34px; flex: none; font: 500 12px var(--mono); letter-spacing: .04em; color: var(--muted); }
  .mnav-list a[aria-current] .num { color: var(--accent); }
  .mnav-list a[aria-current] .mn-t { font-style: italic; font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144; color: var(--accent); }
  .mnav-list a[aria-current]::after { content: "you are here"; margin-left: auto; align-self: center; font: 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
  .mnav-more { list-style: none; display: flex; flex-wrap: wrap; gap: 0 26px; margin: 18px 0 0 50px; padding: 0; }
  .mnav-more a { display: inline-flex; align-items: center; min-height: 44px; font: 500 12.5px var(--mono); letter-spacing: .07em; text-transform: uppercase; text-decoration: none; color: var(--ink-2); }
  .mnav-more a[aria-current] { color: var(--accent); text-decoration: underline; text-underline-offset: 5px; }
  .mnav-foot { margin-top: auto; padding-top: 34px; display: grid; justify-items: start; gap: 10px; }
  .mode-big { min-height: 44px; font-size: 12px; padding: 8px 16px 8px 14px; }
  .mnav-note { margin: 0; font: 12px var(--mono); color: var(--muted); }
  .mnav-mail { display: inline-flex; align-items: center; min-height: 44px; font-size: 17px; text-decoration: none; border-bottom: 1px solid var(--rule); }
  html.menu-open, html.menu-open body { overflow: hidden; }
  /* entrance: the list breathes in */
  .mnav-list li, .mnav-more, .mnav-foot { opacity: 0; transform: translateY(10px); transition: opacity .5s var(--ease), transform .6s var(--ease); transition-delay: calc(var(--i, 4) * 50ms + 40ms); }
  .mnav.in .mnav-list li, .mnav.in .mnav-more, .mnav.in .mnav-foot { opacity: 1; transform: none; }
}
@media (max-width: 380px) {
  .wordmark { font-size: 19px; }
  .top .mode { padding: 7px 10px; gap: 6px; font-size: 10.5px; letter-spacing: .04em; }
  html[data-mode="stillness"] .top .mode-sig, html[data-mode="signal"] .top .mode-still, .top .mode-sep { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .mnav-list li, .mnav-more, .mnav-foot { transition: none; opacity: 1; transform: none; }
  .mb-lines i:last-child { animation: none; }
}
@media (max-width: 860px) { .wordmark { display: inline-flex; align-items: center; min-height: 44px; } }
/* v8: shorter notebook entries */
.e-line { margin: 0 0 14px; font-size: .95em; line-height: 1.5; color: var(--ink-2); }
.results { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; max-width: 620px; }
.results .res:nth-child(n) { border-top: 0; }
.results .res + .res { padding-left: 16px; border-left: 1px solid var(--rule); }
@media (max-width: 860px) {
  .ct-links a, .foot-nav a, .all-work a, .next-links a.next, .crumbs a, .ms-link a { min-height: 44px; display: inline-flex; align-items: center; }
  .crumbs { margin-bottom: 14px; }
  .foot-nav { gap: 0 20px !important; }
}
@media (max-width: 860px) {
  .wordmark { display: inline-block; min-height: 0; line-height: 44px; }
  .top .mode { min-height: 36px; position: relative; }
  .top .mode::after { content: ""; position: absolute; inset: -5px -3px; }
  .hero-person .breath { margin-bottom: 14px; }
}
.mnav .mode-big { margin-left: 0; }
@media (max-width: 860px) {
  .ct-links a, .foot-nav a, .all-work a, .crumbs a, .ms-link a { gap: .35em; }
}
