.nav-links a[aria-current="page"] { color: var(--acc); }
    .nav-links a[aria-current="page"]::after { transform: scaleX(1); }
    .ap-hero { position: relative; padding-top: clamp(56px, 9vw, 120px); padding-bottom: clamp(64px, 8vw, 120px); overflow: clip; }
    .ap-hero .display { font-size: clamp(44px, 8.4vw, 144px); }
    .ap-lede { margin-top: clamp(40px, 6vw, 88px); row-gap: 32px; align-items: end; }
    .ap-lede p.lead { font-size: clamp(19px, 1.7vw, 24px); line-height: 1.5; margin: 0; max-width: 44ch; }
    .creds { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
    .creds li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 14px; }
    .creds li:last-child { border-bottom: 1px solid var(--line); }
    .creds b { font-weight: 800; }
    .creds span { color: var(--mute); text-align: right; }
    @media (min-width: 900px) { .ap-lede .l-a { grid-column: 1 / span 6; } .ap-lede .l-b { grid-column: 9 / span 4; } }

    .book { padding-block: clamp(56px, 7vw, 104px); border-top: 2px solid var(--ink); align-items: start; }
    .toc { display: none; }
    @media (min-width: 1000px) {
      .toc { display: block; grid-column: 1 / span 3; position: sticky; top: 108px; }
      .chapters { grid-column: 5 / span 8; }
    }
    .toc p { margin: 0 0 20px; }
    .toc ol { list-style: none; margin: 0; padding: 0; }
    .toc a { display: grid; grid-template-columns: 34px minmax(0, 1fr); align-items: baseline; padding: 11px 0; border-top: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--mute); transition: color .3s, padding-left .5s var(--ease); position: relative; }
    .toc a span { font-size: 11px; font-weight: 800; color: var(--acc); }
    .toc a::before { content: ""; position: absolute; left: 0; top: 50%; width: 12px; height: 12px; margin-top: -6px; background: var(--acc); clip-path: polygon(0 0, 100% 50%, 0 100%); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
    .toc a:hover, .toc a:focus-visible { color: var(--ink); }
    .toc a[data-on="1"] { color: var(--ink); padding-left: 22px; }
    .toc a[data-on="1"]::before { transform: scaleX(1); }

    .chap { padding-bottom: clamp(72px, 9vw, 136px); scroll-margin-top: 96px; }
    .chap + .chap { padding-top: clamp(48px, 6vw, 80px); border-top: 1px solid var(--line); }
    .chap-no { font-weight: 800; font-size: clamp(72px, 9vw, 144px); line-height: .8; letter-spacing: -0.06em; color: transparent; -webkit-text-stroke: 1.5px var(--ink); margin: 0 0 28px; }
    .chap h2 { font-family: var(--font-body); font-weight: 800; font-size: clamp(34px, 4.2vw, 64px); line-height: .96; letter-spacing: -0.045em; margin: 0 0 20px; }
    .chap h2 em { font-family: var(--font-heading); font-style: italic; font-weight: 400; color: var(--acc); letter-spacing: -0.03em; }
    .chap .thesis { font-family: var(--font-heading); font-size: clamp(21px, 2vw, 28px); line-height: 1.3; letter-spacing: -0.01em; margin: 0 0 28px; max-width: 32ch; }
    .chap .body p { font-size: 17px; line-height: 1.65; color: var(--color-neutral-800); margin: 0 0 18px; max-width: 60ch; }
    .chap .body a { background: linear-gradient(var(--acc), var(--acc)) left bottom / 100% 2px no-repeat; font-weight: 600; color: var(--ink); }
    .chap .body a:hover, .chap .body a:focus-visible { color: var(--acc); }
    .proof { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: 0 28px; margin: 32px 0 0; padding: 0; border-top: 2px solid var(--ink); }
    .proof div { padding: 18px 0 0; }
    .proof b { display: block; font-weight: 800; font-size: clamp(28px, 2.8vw, 42px); letter-spacing: -0.045em; line-height: 1; }
    .proof span { display: block; font-size: 13px; line-height: 1.4; color: var(--mute); margin-top: 8px; max-width: 24ch; }
    .methods { display: flex; flex-wrap: wrap; gap: 8px; margin: 32px 0 0; padding: 0; list-style: none; }
    .methods li { font-size: 12px; font-weight: 700; letter-spacing: .04em; padding: 8px 14px; box-shadow: inset 0 0 0 1.5px var(--ink); clip-path: polygon(0 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%); transition: background .3s, color .3s; }
    .methods li:hover { background: var(--ink); color: var(--paper); }
    .pair { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--col); margin-top: 40px; align-items: start; }
    .pair .shot:first-child { grid-column: 1 / span 7; aspect-ratio: 4 / 3; }
    .pair .shot:last-child { grid-column: 8 / span 5; aspect-ratio: 4 / 5; margin-top: clamp(24px, 5vw, 72px); }
    .pair .shot:hover img { transform: scale(1.045); }

    .loop { background: var(--ink); color: var(--paper); clip-path: polygon(0 0, 100% clamp(32px, 5vw, 80px), 100% 100%, 0 calc(100% - clamp(32px, 5vw, 80px))); padding-block: clamp(112px, 14vw, 208px); }
    .loop .label { color: var(--paper); margin-bottom: 40px; }
    .loop .label i { background: var(--paper); }
    .loop h2 { color: var(--paper); }
    .steps { margin-top: clamp(48px, 6vw, 88px); row-gap: 40px; }
    .step { position: relative; padding-top: 24px; border-top: 2px solid color-mix(in srgb, var(--paper) 30%, transparent); }
    .step::before { content: ""; position: absolute; left: 0; top: -2px; height: 2px; width: 100%; background: var(--acc); transform-origin: left; transition: transform 1.2s var(--ease); }
    html[data-motion="on"] .step:not([data-in])::before { transform: scaleX(0); }
    .step .k { font-weight: 800; font-size: clamp(44px, 4.6vw, 72px); letter-spacing: -0.05em; line-height: .9; color: var(--acc); margin: 0 0 18px; }
    .step h3 { font-family: var(--font-body); font-weight: 800; font-size: 24px; letter-spacing: -0.03em; margin: 0 0 10px; color: var(--paper); }
    .step p { font-size: 15px; line-height: 1.55; margin: 0; color: color-mix(in srgb, var(--paper) 74%, transparent); max-width: 30ch; }
    @media (min-width: 640px) { .steps .step { grid-column: span 6; } }
    @media (min-width: 1100px) { .steps .step { grid-column: span 3; } .steps .step:nth-child(2) { margin-top: 32px; } .steps .step:nth-child(3) { margin-top: 64px; } .steps .step:nth-child(4) { margin-top: 96px; } }
    .contact.flat { clip-path: none; padding-top: clamp(40px, 6vw, 96px); }

    /* Chapter glyph — a six-segment mark in the left margin that morphs as each
       chapter comes into view, ringed by a slowly closing arc of page progress. */
    .glyph { position: fixed; left: var(--gut); bottom: 52px; z-index: 20; width: 54px; height: 54px; display: none; pointer-events: none; opacity: 0; transition: opacity .9s var(--ease); }
    .glyph svg { display: block; width: 100%; height: 100%; }
    .glyph line { stroke: var(--ink); stroke-width: 1.7; stroke-linecap: square; transition: stroke .55s linear; }
    .glyph .ring { fill: none; stroke: var(--acc); stroke-width: 1.7; stroke-dasharray: 144.51; stroke-dashoffset: 144.51; opacity: .85; }
    .glyph[data-dark="1"] line { stroke: var(--paper); }
    @media (min-width: 1000px) { .glyph { display: block; } }
    @media (prefers-reduced-motion: reduce) { .glyph, .glyph line { transition: none; } }
