/* Hallmark · shape: Marquee Hero · genre: atmospheric · theme: Darkroom (deal 1/3, seed personal-portfolio-founder-software-bbcb·278f2bfa·2026-12-05·r0) · job: hire · draw: d900cd
 * hero: Ledge (swapped from Banner: the grain field is the user's own ask and needs the whole first screen) · nav: masthead (wordmark centred over a hairline, links split either side) · footer: statement (the address set large, links beneath) · imagery: screenshots 10 (capture.mjs), App Store shot 1, book cover 1, no library photographs · signature: the name develops out of loose silver grain and spatters under the cursor · darkroom: amber, lights on = fibre paper with the amber hue held
 * axes: dark/display-condensed/chromatic-amber · posture: restrained · modes: light+dark · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S5 R3 V4 · weakest: R, three moving signatures (grain, spiral, cord) because the user asked for all three; every other section is still as a print, no reveals */
/* Hallmark · waive 39b · button.cord is 44px wide and 136px long · the light-switch cord is pulled along its whole length, so the cord is the hit area; the bead alone is 24px */
/* Hallmark · waive 72 · the plates rail at 375px cuts the next caption at the screen edge · on a phone the spiral becomes a rail of screenshots, the next one cut at the edge on purpose so there is clearly more to swipe */
/* Hallmark · waive 44c · project pages open with a short banner, the next section starts above 760px · each /work page leads with the name, one line and the facts, then the product screenshot right under it */
/* Hallmark · waive 59 · project pages put the lead screenshot 104px under the banner · the banner and the product screenshot read as one opening on every work page */
/* Hallmark · dismissed 58 · the homepage carries a description, stack and two links for each of twelve plates because the owner asked for more on every product */
/* Hallmark · dismissed 46a · 30% faster and 15% lower operating costs on the Waitlist Me page are the owner’s own résumé figures */
/* Hallmark · dismissed 25 · the Paper Walls pull quote is two short sentences set at display size; 28ch keeps the quote to two lines */
@import url("./tokens.css");
@import url("./base.css");

/* ---------- shared ---------- */
.skip { position: absolute; left: var(--space-md); top: calc(-1 * var(--space-3xl)); z-index: var(--z-toast); padding: var(--space-xs) var(--space-md); background: var(--color-ink); color: var(--color-paper); }
.skip:focus-visible { top: var(--space-md); }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 var(--space-lg); border: var(--rule-hair) solid var(--color-ink); border-radius: 0; background: transparent; color: var(--color-ink); font: 400 var(--text-lg)/1 var(--font-display); text-transform: uppercase; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out); }
.btn:hover { background: var(--color-paper-3); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn--primary { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-accent-ink); }
.btn--primary:hover { background: var(--color-ink); border-color: var(--color-ink); color: var(--color-paper); }

a:not(.btn) { text-decoration-color: var(--color-rule); transition: text-decoration-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out); }
a:not(.btn):hover { text-decoration-color: var(--color-accent); }
a:not(.btn):active { color: var(--color-accent); }

h2 { text-transform: uppercase; line-height: 1; }
h3 { text-transform: uppercase; font-weight: 400; line-height: 1; }

.well { background: var(--color-paper-2); }
.grained { position: relative; isolation: isolate; }
.grained::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: var(--grain); background: var(--grain-img) 0 0 / 200px 200px; }

/* ---------- nav: masthead ---------- */
.masthead { position: sticky; top: 0; z-index: var(--z-sticky-nav); background: var(--color-paper); border-bottom: var(--rule-hair) solid var(--color-rule); }
.masthead__row { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; min-height: var(--nav-h); }
.masthead__links { display: flex; gap: var(--space-lg); font-size: var(--text-sm); }
.masthead__links a, .masthead__action { color: var(--color-ink-2); text-decoration: none; white-space: nowrap; }
.masthead__links a:hover, .masthead__action:hover { color: var(--color-ink); }
.masthead__links a:focus-visible, .masthead__action:focus-visible, .wordmark:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 4px; }
.wordmark { font: 400 var(--text-xl)/1 var(--font-display); text-transform: uppercase; letter-spacing: 0.06em; color: var(--color-ink); text-decoration: none; white-space: nowrap; }
.masthead__end { justify-self: end; font-size: var(--text-sm); }

/* ---------- the cord ---------- */
.cord { position: fixed; top: 0; right: var(--space-md); z-index: var(--z-modal); width: 44px; height: 136px; padding: 0; border: 0; background: transparent; cursor: grab; touch-action: none; -webkit-tap-highlight-color: transparent; }
.cord:active { cursor: grabbing; }
.cord:focus-visible { outline: 2px solid var(--color-focus); outline-offset: -2px; }
.cord__swing { position: absolute; inset: 0; transform-origin: 50% 0; transform: rotate(var(--sway, 0deg)); }
.cord__line { position: absolute; top: 0; left: calc(50% - 0.5px); width: 1px; height: 100px; background: var(--color-ink-2); transform-origin: 50% 0; transform: scaleY(var(--stretch, 1)); }
.cord__bead { position: absolute; top: 98px; left: calc(50% - 6px); width: 12px; height: 24px; border-radius: 6px; background: var(--color-ink); box-shadow: inset 0 0 0 1px var(--color-rule); transform: translateY(var(--pull, 0px)); transition: background-color var(--dur-short) var(--ease-out); }
.cord:hover .cord__bead { background: var(--color-accent); }
.cord:focus-visible .cord__bead { outline: 2px solid var(--color-focus); outline-offset: 3px; }
.cord:disabled { opacity: 0.55; cursor: not-allowed; }
.cord__label { position: absolute; top: 102px; right: 100%; margin-right: var(--space-2xs); font-size: var(--text-xs); color: var(--color-muted); white-space: nowrap; pointer-events: none; }
html:not(.js) .cord { display: none; }

::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }

/* ---------- hero: Ledge, the name in grain ---------- */
.hero { position: relative; isolation: isolate; display: grid; align-items: end; min-height: calc(100svh - var(--nav-h)); padding-block: var(--space-2xl) var(--space-xl); cursor: crosshair; }
.hero__grain { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; pointer-events: none; }
.hero__inner { position: relative; z-index: 1; }
.hero__name { max-width: none; font-size: clamp(5.5rem, 33.5vw, 30.5rem); font-weight: 200; line-height: 1; text-transform: uppercase; letter-spacing: var(--tracking-display); white-space: nowrap; }
.hero.is-grain .hero__name { color: transparent; }
.hero__foot { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap-columns); align-items: center; margin-top: var(--space-lg); padding-top: var(--space-lg); border-top: var(--rule-hair) solid var(--color-rule); cursor: auto; }
.hero__lead { grid-column: 1 / span 6; font-weight: 300; color: var(--color-ink-2); }
.hero__actions { grid-column: 8 / -1; justify-self: end; display: flex; gap: var(--space-sm); }

/* ---------- work: rail by default, a spiral when enhanced ---------- */
.work { padding-block: var(--section-gap) var(--section-gap-s); }
.work__hint { display: none; margin-top: var(--space-md); font-size: var(--text-sm); color: var(--color-muted); }
.work.is-helix .work__hint { display: block; }
.plates { list-style: none; margin: var(--space-2xl) calc(-1 * var(--gutter)) 0; padding: 0 var(--gutter) var(--space-md); display: grid; grid-auto-flow: column; grid-auto-columns: minmax(17rem, 36%); gap: var(--gap-columns); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); overscroll-behavior-x: contain; }
.plates:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 4px; }
.plate { scroll-snap-align: start; display: grid; align-content: start; gap: var(--space-md); }
.plate__frame { margin: 0; aspect-ratio: 16 / 10; border-radius: 0; outline: 1px solid color-mix(in oklab, var(--color-ink) 8%, transparent); outline-offset: -1px; }
.plate__frame > img { object-position: 50% 0; }
.plate__frame--phone > img, .plate__frame--book > img { object-fit: contain; padding: var(--space-md); }
.plate__cap { display: grid; gap: var(--space-2xs); }
.plate__role { font-size: var(--text-sm); color: var(--color-muted); }
.plate__line { max-width: 44ch; color: var(--color-ink-2); }
.plate__stack { font-size: var(--text-sm); color: var(--color-muted); }
.plate__links { display: flex; flex-wrap: wrap; gap: var(--space-xs) var(--space-lg); margin-top: var(--space-xs); font-size: var(--text-sm); }
.plate__link { color: var(--color-ink); }
.plate__link:focus-visible, .plate__ext:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }

/* no script or reduced motion on a wide screen: an index, one print per row */
@media (min-width: 60rem) {
  .work:not(.is-helix) .plates { grid-auto-flow: row; grid-auto-columns: auto; gap: 0; margin: var(--space-2xl) 0 0; padding: 0; overflow: visible; border-bottom: var(--rule-hair) solid var(--color-rule); }
  .work:not(.is-helix) .plate { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-2xl); align-items: center; padding-block: var(--space-xl); border-top: var(--rule-hair) solid var(--color-rule); }
  .work:not(.is-helix) .plate h3 { font-size: var(--text-section); font-weight: 200; }
}

/* enhanced: pinned stage, captions stacked in the panel, plates on a helix */
.work.is-helix { padding-block: 0; }
.work.is-helix .work__track { height: calc(100svh + var(--steps, 11) * 340px); }
.work.is-helix .work__stage { position: sticky; top: var(--nav-h); height: calc(100svh - var(--nav-h)); overflow: hidden; display: grid; align-items: center; }
.work.is-helix .work__panel { position: relative; z-index: var(--z-raised); }
.work.is-helix .work__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--gap-columns); align-items: center; height: 100%; }
.work.is-helix .plates { position: relative; display: grid; grid-auto-flow: row; margin: var(--space-2xl) 0 0; padding: 0; overflow: visible; }
/* inactive captions stay in the accessibility tree and the tab order; focusing one turns the spiral to it */
.work.is-helix .plate { grid-area: 1 / 1; }
.work.is-helix .plate:not(.is-active) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.work.is-helix .plate.is-active { animation: cap-in var(--dur-short) var(--ease-out); }
@keyframes cap-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.work.is-helix .plate__frame { display: none; }
.work.is-helix .plate__cap { gap: var(--space-xs); }
.work.is-helix .plate__cap h3 { font-size: var(--text-display-s); font-weight: 200; }
.work.is-helix .plate__line { font-size: var(--text-lead); font-weight: 300; line-height: 1.4; }
.work.is-helix .plate__links { margin-top: var(--space-md); font-size: var(--text-md); }

.helix-wrap { display: none; }
.work.is-helix .helix-wrap { display: grid; place-items: center; height: 100%; perspective: 1900px; perspective-origin: 50% 46%; -webkit-mask-image: linear-gradient(to right, transparent 0, black 14%); mask-image: linear-gradient(to right, transparent 0, black 14%); }
.helix { position: relative; width: min(100%, 640px); aspect-ratio: 16 / 10; transform-style: preserve-3d; }
.helix__plate { position: absolute; inset: 0; margin: 0; overflow: hidden; background: var(--color-paper-3); outline: 1px solid color-mix(in oklab, var(--color-ink) 10%, transparent); outline-offset: -1px; backface-visibility: hidden; cursor: pointer; }
.helix__plate img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; filter: grayscale(1) contrast(1.12) brightness(0.9); transition: filter var(--dur-long) var(--ease-out); }
.helix__plate--fit img { object-fit: contain; padding: var(--space-md); }
.helix__plate.is-active img { filter: none; }

.picker { list-style: none; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); margin: var(--space-xl) 0 0; padding: 0; max-width: 22rem; border-top: var(--rule-hair) solid var(--color-rule); border-left: var(--rule-hair) solid var(--color-rule); }
.picker button { display: grid; place-items: center; width: 100%; min-height: 44px; padding: 0; border: 0; border-right: var(--rule-hair) solid var(--color-rule); border-bottom: var(--rule-hair) solid var(--color-rule); background: transparent; color: var(--color-muted); font: 400 var(--text-lg)/1 var(--font-display); font-variant-numeric: tabular-nums; cursor: pointer; transition: color var(--dur-micro) var(--ease-out), background-color var(--dur-micro) var(--ease-out); }
.picker button:hover { color: var(--color-ink); background: var(--color-paper-2); }
.picker button:active { background: var(--color-paper-3); }
.picker button:focus-visible { outline: 2px solid var(--color-focus); outline-offset: -2px; }
.picker button[aria-current="true"] { color: var(--color-accent); }
.picker button:disabled { opacity: 0.55; cursor: not-allowed; }

/* ---------- figures as an edition (project pages) ---------- */
.edition { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; }
.edition > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: var(--space-sm); padding-inline: var(--space-xl); border-left: var(--rule-hair) solid var(--color-rule); }
.edition > div:first-child { padding-left: 0; border-left: 0; }
.edition > div:last-child { padding-right: 0; }
.edition dd { margin: 0; font: 200 clamp(3.5rem, 7vw, 7.5rem)/1 var(--font-display); text-transform: uppercase; font-variant-numeric: tabular-nums; letter-spacing: var(--tracking-display); }
.edition dt { max-width: 26ch; font-size: var(--text-sm); color: var(--color-muted); }

/* ---------- book: an offer ---------- */
.book { padding-block: var(--section-gap-l) var(--section-gap); }
.book__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-3xl); align-items: center; }
.book__cover { margin: 0; aspect-ratio: 1000 / 1499; max-height: 720px; justify-self: start; width: 100%; max-width: 480px; outline: 1px solid color-mix(in oklab, var(--color-ink) 8%, transparent); outline-offset: -1px; }
.book__cover > img { filter: none; }
.book__text { display: grid; gap: var(--space-lg); justify-items: start; }
.book__text .lead { color: var(--color-ink-2); }
.book__quote { margin: var(--space-md) 0 0; padding: 0; }
.book__quote p { max-width: 28ch; font: 200 var(--text-display-s)/1.05 var(--font-display); text-transform: uppercase; text-indent: -0.4em; }
.sheet { width: 100%; margin: var(--space-md) 0 0; border-top: var(--rule-hair) solid var(--color-rule); }
.sheet > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: var(--gap-columns); align-items: baseline; padding-block: var(--space-sm); border-bottom: var(--rule-hair) solid var(--color-rule); }
.sheet dt { font-size: var(--text-sm); color: var(--color-muted); }
.sheet dd { margin: 0; font: 400 var(--text-title)/1.1 var(--font-display); text-transform: uppercase; }

/* ---------- about: the contact sheet ---------- */
.about { padding-block: var(--section-gap) var(--section-gap-l); }
.about__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap-columns); align-items: start; }
.about__grid h2 { grid-column: 1 / span 4; }
.about .sheet { grid-column: 5 / -1; margin: 0; }
.about .sheet > div { grid-template-columns: minmax(0, 1fr) minmax(0, 4fr); padding-block: var(--space-md); }
.about .sheet dd { font-size: var(--text-xl); }

/* ---------- off the clock: a statement ---------- */
.clock { padding-block: var(--section-gap-s); }
.statement { max-width: 34ch; font: 200 var(--text-display)/1 var(--font-display); text-transform: uppercase; letter-spacing: var(--tracking-display); text-wrap: balance; }
.clock__note { margin-top: var(--space-xl); max-width: 52ch; color: var(--color-muted); }

/* ---------- footer: statement ---------- */
.footer { padding-block: var(--section-gap-s) var(--space-xl); border-top: var(--rule-hair) solid var(--color-rule); }
.footer__statement { font: 200 clamp(1.75rem, 7.2vw, 7.5rem)/1 var(--font-display); text-transform: uppercase; letter-spacing: var(--tracking-display); white-space: nowrap; min-width: 0; }
.footer__statement a { text-decoration: none; }
.footer__statement a:hover { color: var(--color-accent); }
.footer__statement a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 4px; }
.footer__row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: var(--space-lg); margin-top: var(--space-2xl); padding-top: var(--space-lg); border-top: var(--rule-hair) solid var(--color-rule); }
.footer__links { list-style: none; display: flex; flex-wrap: wrap; gap: var(--space-lg); margin: 0; padding: 0; }
.footer__links a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }
.footer__legal { font-size: var(--text-sm); color: var(--color-muted); }

/* ---------- what I build with ---------- */
.toolbox { padding-block: var(--section-gap-s); }
.toolbox__langs { margin-top: var(--space-2xl); font: 200 clamp(3rem, 8.4vw, 8rem)/1 var(--font-display); text-transform: uppercase; letter-spacing: var(--tracking-display); word-spacing: 0.12em; text-wrap: balance; overflow-wrap: break-word; min-width: 0; }
.toolbox__rows { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: var(--space-2xl) 0 0; border-top: var(--rule-hair) solid var(--color-rule); }
.toolbox__rows > div { display: grid; align-content: start; gap: var(--space-xs); padding: var(--space-lg) var(--space-lg) 0; border-left: var(--rule-hair) solid var(--color-rule); }
.toolbox__rows > div:first-child { padding-left: 0; border-left: 0; }
.toolbox__rows dt { font-size: var(--text-sm); color: var(--color-muted); }
.toolbox__rows dd { margin: 0; color: var(--color-ink-2); }

/* ---------- project pages ---------- */
.p-hero { padding-block: var(--space-3xl) var(--space-2xl); }
.p-hero__grid { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: var(--space-2xl); align-items: end; }
.p-hero h1 { max-width: none; font-size: clamp(3.75rem, 11vw, 10.5rem); font-weight: 200; line-height: 1; text-transform: uppercase; }
.p-hero .lead { margin-top: var(--space-lg); max-width: 46ch; font-weight: 300; color: var(--color-ink-2); }
.p-hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-top: var(--space-xl); }
.p-facts { margin: 0; border-top: var(--rule-hair) solid var(--color-rule); }
.p-facts > div { display: grid; gap: var(--space-3xs); padding-block: var(--space-sm); border-bottom: var(--rule-hair) solid var(--color-rule); }
.p-facts dt { font-size: var(--text-sm); color: var(--color-muted); }
.p-facts dd { margin: 0; font: 400 var(--text-title)/1.1 var(--font-display); text-transform: uppercase; }
.p-hero--book .p-hero__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-areas: "text cover" "meta cover"; align-items: end; }
.p-hero--book .p-hero__text { grid-area: text; }
.p-hero--book .p-facts { grid-area: meta; }
.p-hero__cover { grid-area: cover; justify-self: end; width: 100%; max-width: 440px; }

.p-shot { margin: 0; background: var(--color-paper-2); outline: 1px solid color-mix(in oklab, var(--color-ink) 8%, transparent); outline-offset: -1px; }
.p-shot > img { position: static; width: 100%; height: auto; filter: none; }
.p-shot--phone { background: transparent; }
.p-visual { padding-block: var(--space-xl) 0; }
.p-phones { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: var(--gap-columns); }

.p-problem { padding-block: var(--section-gap) var(--section-gap-l); }
.p-split { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap-columns); align-items: start; }
.p-split { align-items: start; }
.p-split h2 { grid-column: 1 / span 7; max-width: 16ch; font-size: var(--text-display); }
.p-split .lead { grid-column: 8 / -1; font-weight: 300; color: var(--color-ink-2); }

.p-product { padding-block: 0 var(--section-gap); }
.p-rows { margin: var(--space-2xl) 0 0; border-top: var(--rule-hair) solid var(--color-rule); }
.p-rows > div { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gap-columns); align-items: baseline; padding-block: var(--space-xl); border-bottom: var(--rule-hair) solid var(--color-rule); }
.p-rows dt { font: 400 var(--text-title)/1.1 var(--font-display); text-transform: uppercase; }
.p-rows dd { margin: 0; max-width: 52ch; font-size: var(--text-lead); font-weight: 300; line-height: 1.45; color: var(--color-ink-2); }
.p-code { margin: var(--space-2xl) 0 0; }
.p-code pre { margin: 0; padding: var(--space-lg) var(--space-xl); overflow-x: auto; background: var(--color-paper-2); color: var(--color-ink); font: var(--text-md)/1.6 var(--font-mono); }
.p-code figcaption { margin-top: var(--space-sm); font-size: var(--text-sm); color: var(--color-muted); }
.p-code pre:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }

.p-gallery { padding-block: 0 var(--section-gap); }
.p-pair { display: grid; grid-template-columns: minmax(0, 3.46fr) minmax(0, 1fr); gap: var(--gap-columns); align-items: start; }

.p-stack { padding-block: var(--section-gap-s); }
.p-side { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap-columns); align-items: start; }
.p-side > h2 { grid-column: 1 / span 3; }
.p-side__body { grid-column: 4 / -1; display: grid; gap: var(--space-xl); justify-items: start; }
.p-side > .p-contents { grid-column: 4 / -1; }
.p-side .sheet { margin: 0; }
.p-side--wide > h2, .p-side--wide > .p-contents, .p-side--wide > .p-side__body { grid-column: 1 / -1; }
.p-side--wide > .p-contents { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(4, auto); grid-auto-flow: column; column-gap: var(--gap-columns); }
.p-side--wide .sheet > div { grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); }
.p-note { max-width: 62ch; color: var(--color-ink-2); }
.p-note strong { font-weight: 400; color: var(--color-ink); }

.p-part { padding-block: var(--section-gap) var(--section-gap-l); }
.p-list { width: 100%; margin: 0; padding: 0; list-style: none; border-top: var(--rule-hair) solid var(--color-rule); }
.p-list li { max-width: 62ch; padding-block: var(--space-xl); border-bottom: var(--rule-hair) solid var(--color-rule); font-size: var(--text-lead); font-weight: 300; line-height: 1.45; }
.p-links { display: flex; flex-wrap: wrap; gap: var(--space-lg); }
.p-links a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }

.p-figures { padding-block: 0 var(--section-gap); }

.p-contents-sec { padding-block: 0 var(--section-gap); }
.p-contents { width: 100%; margin: 0; padding: 0; list-style: none; counter-reset: chapter; border-top: var(--rule-hair) solid var(--color-rule); }
.p-contents li { counter-increment: chapter; display: grid; grid-template-columns: var(--space-3xl) minmax(0, 1fr); gap: var(--space-md); padding-block: var(--space-md); border-bottom: var(--rule-hair) solid var(--color-rule); font: 400 var(--text-title)/1.15 var(--font-display); text-transform: uppercase; }
.p-contents li::before { content: counter(chapter, decimal-leading-zero); color: var(--color-muted); font-variant-numeric: tabular-nums; }
.p-quotes { padding-block: 0 var(--section-gap); }
.p-quote { margin: 0; padding-block: var(--space-xl); border-top: var(--rule-hair) solid var(--color-rule); }
.p-quote p { max-width: 30ch; font: 200 var(--text-display)/1.02 var(--font-display); text-transform: uppercase; text-indent: -0.4em; }

.p-next { border-top: var(--rule-hair) solid var(--color-rule); }
.p-next__link { display: grid; gap: var(--space-xs); padding-block: var(--space-3xl); text-decoration: none; }
.p-next__label { font-size: var(--text-sm); color: var(--color-muted); }
.p-next__name { font: 200 clamp(3.5rem, 10vw, 9rem)/1 var(--font-display); text-transform: uppercase; overflow-wrap: break-word; min-width: 0; transition: color var(--dur-short) var(--ease-out); }
.p-next__link:hover .p-next__name { color: var(--color-accent); }
.p-next__link:active .p-next__name { color: var(--color-accent-deep); }
.p-next__link:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 4px; }

/* ---------- responsive ---------- */
@media (max-width: 60rem) {
  .masthead__end { padding-right: var(--space-xl); }
  .hero__lead, .hero__actions { grid-column: 1 / -1; justify-self: start; }
  .hero__name { white-space: normal; }
  .edition { grid-template-columns: minmax(0, 1fr); }
  .edition > div, .edition > div:first-child { padding: var(--space-lg) 0; border-left: 0; border-top: var(--rule-hair) solid var(--color-rule); }
  .book__grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-2xl); }
  .book__cover { max-width: 320px; }
  .about__grid h2, .about .sheet { grid-column: 1 / -1; }
  .plates { grid-auto-columns: minmax(15rem, 78%); }
  .toolbox__rows { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--space-lg); }
  .toolbox__rows > div:nth-child(odd) { padding-left: 0; border-left: 0; }
  .p-hero__grid, .p-hero--book .p-hero__grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "text" "cover" "meta"; }
  .p-hero__cover { justify-self: start; max-width: 320px; }
  .p-split h2, .p-split .lead, .p-side > h2, .p-side__body, .p-side > .p-contents { grid-column: 1 / -1; }
  .p-split, .p-side { row-gap: var(--space-lg); }
  .p-rows > div { grid-template-columns: minmax(0, 1fr); gap: var(--space-xs); }
  .p-pair { grid-template-columns: minmax(0, 1fr); }
  .p-pair .p-shot--phone { max-width: 320px; }
  .p-phones { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .p-side--wide > .p-contents { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-auto-flow: row; }
}
@media (max-width: 40rem) {
  .masthead__row { grid-template-columns: auto minmax(0, 1fr); }
  .masthead__links { display: none; }
  .hero__name { font-size: 33vw; white-space: nowrap; }
  .toolbox__rows { grid-template-columns: minmax(0, 1fr); }
  .toolbox__rows > div { padding-left: 0; border-left: 0; }
  .p-quote p, .book__quote p { text-indent: 0; }
  .hero__actions { flex-wrap: wrap; }
  .about .sheet > div, .sheet > div { grid-template-columns: minmax(0, 1fr); gap: var(--space-2xs); }
}

@media (prefers-reduced-motion: reduce) {
  .btn, a:not(.btn), .cord__bead, .picker button, .helix__plate img { transition: none; }
  .work.is-helix .plate.is-active { animation: none; }
}
.lost { display: grid; gap: var(--space-lg); align-content: center; justify-items: start; min-height: 100svh; }
