/* Agents catalog: the overview at /agents/ and the six desk pages at /agents/<slug>/.
   Calm by design: gold only for the agent, red only for a person's decision, everything else neutral.
   One thing moves at a time. Everything reads without JavaScript; js/catalog.js only adds motion. */

.catalog-page main { min-width: 0; }
/* base.css sets overflow-x: hidden on body (and on .container on phones), which turns them into scroll
   containers and stops anything sticking. clip trims the same overflow without that side effect. */
body.catalog-page { overflow-x: clip; }
@media (max-width: 600px) { .catalog-page .container { overflow-x: clip; } }
.catalog-page h1, .catalog-page h2, .catalog-page h3 { font-family: var(--font-heading); font-weight: 400; letter-spacing: -.02em; text-wrap: balance; }
.catalog-page p { text-wrap: pretty; }
.catalog-page section[id] { scroll-margin-top: 90px; }
/* Flow: anchor links glide to their section. The page sits on a small, faint grid (fixed, like paper under the work)
   with one soft warm light at the top. */
@media (prefers-reduced-motion: no-preference) { html:has(body.catalog-page) { scroll-behavior: smooth; } }
body.catalog-page::before { background-image: linear-gradient(rgba(255, 255, 255, .018) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .018) 1px, transparent 1px); background-size: 48px 48px; background-position: center top; }
body.catalog-page::after { content: ''; position: absolute; z-index: 0; inset: 0 0 auto; height: 1100px; background: radial-gradient(64rem 34rem at 78% -6%, rgba(212, 160, 82, .075), transparent 64%); pointer-events: none; }
/* The menu: clear over the hero, then one full-width frosted bar once the page moves. No hard line under it. */
.catalog-page .container > nav { border-bottom: 0; background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.catalog-page .container > nav::before { content: ''; position: absolute; z-index: -1; top: 0; bottom: 0; left: 50%; width: 100vw; transform: translateX(-50%); background: rgba(18, 18, 20, .74); -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%); box-shadow: 0 1px 0 rgba(255, 255, 255, .045), 0 18px 40px -24px rgba(0, 0, 0, .6); opacity: 0; transition: opacity .4s ease; pointer-events: none; }
.catalog-page .container > nav.is-scrolled { box-shadow: none; }
.catalog-page .container > nav.is-scrolled::before { opacity: 1; }
/* Sections ease in as they reach the screen. js/catalog.js adds .reveal, so without JS or with reduced motion nothing hides. */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.reveal.is-in { opacity: 1; transform: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.cat-skip { position: fixed; top: -100px; left: 1rem; z-index: 100; padding: .7rem 1rem; background: var(--accent); color: var(--accent-ink); }
.cat-skip:focus { top: 1rem; }
.catalog-page .nav-links a[aria-current] { color: var(--text); }
.cat-text-link { color: var(--text); font-size: .93rem; text-decoration: none; border-bottom: 1px solid var(--border-hover); padding-bottom: 2px; transition: color .2s, border-color .2s; }
.cat-text-link:hover { color: var(--accent-bright); border-color: var(--accent-dim); }

/* The agent's mark: a crop of the liquid-gold core from the Chase film. --d sets the size. */
.core {
  --d: 40px;
  display: block; flex: none; width: var(--d); height: var(--d); border-radius: 50%;
  background: url(/assets/video/parts-desk-chase-thumb.jpg) no-repeat;
  background-size: calc(var(--d) * 3.2) auto;
  background-position: calc(var(--d) * -1.096) calc(var(--d) * -.4);
  -webkit-mask-image: radial-gradient(closest-side, #000 84%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 84%, transparent 100%);
}
.core--hero { --d: 88px; }
.core--still { --d: 56px; }
.dot { display: inline-block; flex: none; width: 8px; height: 8px; border-radius: 50%; }
.dot--act { background: var(--danger); box-shadow: 0 0 0 4px rgba(239, 68, 68, .16); }
.tick { color: var(--text); font-style: normal; }
@keyframes caret { 50% { opacity: 0; } }

/* ---------- Overview: hero ---------- */
.cat-hero { padding: clamp(2.5rem, 5vw, 3.75rem) 0 clamp(3.5rem, 7vw, 5rem); }
.cat-hero-copy { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: end; }
.cat-hero h1 { font-size: clamp(2.35rem, 4.3vw, 3.7rem); line-height: 1.05; letter-spacing: -.025em; }
.cat-hero h1 em { color: var(--accent); }
.cat-lede { color: var(--text); font-size: 1.12rem; line-height: 1.55; max-width: 30ch; }
.cat-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.6rem; margin-top: 1.4rem; }
.cat-jump span { display: inline-block; margin-left: .2rem; transition: transform .3s var(--ease-out); }
.cat-jump:hover span, .cat-jump:focus-visible span { transform: translateY(3px); }

/* ---------- Overview: the desks ---------- */
.desks { padding: clamp(3.5rem, 7vw, 5rem) 0 clamp(2rem, 4vw, 2.75rem); }
.desks-head, .how-head { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: end; margin-bottom: clamp(1.75rem, 3.5vw, 2.5rem); }
.desks-head h2, .how-head h2 { font-size: clamp(2rem, 3.7vw, 2.95rem); line-height: 1.1; }
.desks-head p, .how-head p { color: var(--text-muted); font-size: 1rem; line-height: 1.7; max-width: 52ch; }
/* Proof band: breaks the hero from the desk list and puts trust before the detail */
.proofband { display: grid; grid-template-columns: minmax(0, 11rem) minmax(0, 1fr); column-gap: clamp(1.5rem, 4vw, 3rem); row-gap: .6rem; align-items: start; padding: clamp(2rem, 4vw, 3rem) 0; }
.catalog-page .proofband-label { font: 500 .74rem/1.5 var(--font-mono); letter-spacing: 0; color: var(--text-muted); padding-top: .45rem; }
.proofband-list { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.25rem, 3vw, 2.5rem); }
.proofband-list li { display: grid; align-content: start; gap: .35rem; }
.proofband-list li::before { content: ''; width: 22px; height: 2px; margin-bottom: .55rem; border-radius: 2px; background: var(--accent-dim); }
.proofband-list b { font: 400 clamp(1.35rem, 2vw, 1.6rem)/1.15 var(--font-heading); color: var(--text); letter-spacing: -.01em; }
.proofband-list span { font-size: .92rem; line-height: 1.55; color: var(--text-muted); }
.proofband-note { grid-column: 2; font-size: .8rem; color: var(--text-muted); }
@media (max-width: 900px) {
  .proofband { grid-template-columns: 1fr; }
  .proofband-list { grid-template-columns: 1fr; gap: 1rem; }
  .proofband-note { grid-column: 1; }
}
/* The desk list heading sits centred and smaller, so it doesn't repeat the hero's big left-aligned headline */
.desks-head { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: .85rem; }
.desks-head h2 { font-size: clamp(1.65rem, 2.6vw, 2.2rem); max-width: 24ch; }
.desks-head p { margin: 0 auto; }
.dl { list-style: none; display: grid; gap: .35rem; }
.dl-row { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1.3fr) minmax(0, .85fr); column-gap: clamp(1.5rem, 3vw, 2.5rem); align-items: stretch; padding: 1.1rem; margin: 0 -1.1rem; border-radius: 18px; color: inherit; text-decoration: none; transition: background .4s; }
.dl-row:hover, .dl-row:focus-visible { background: rgba(255, 255, 255, .025); }
.dl-row:focus-visible { outline-offset: -2px; }
.dl-thumb { position: relative; display: block; align-self: center; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: var(--bg-deep); box-shadow: 0 16px 36px -14px rgba(0, 0, 0, .7); transition: box-shadow .5s; }
.dl-thumb img, .dl-thumb video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.dl-thumb video { opacity: 0; transition: opacity .5s; }
.dl-row.is-playing .dl-thumb { box-shadow: 0 18px 48px -12px rgba(212, 160, 82, .28); }
.dl-row.is-playing .dl-thumb video { opacity: 1; }
.dl-thumb--custom { display: grid; place-content: center; justify-items: center; gap: .7rem; border: 1px dashed rgba(255, 255, 255, .13); background: radial-gradient(circle at 50% 42%, rgba(212, 160, 82, .1), transparent 55%), var(--bg-deep); }
.dl-thumb--custom .core { --d: 54px; }
.dl-thumb-label { font: 500 .72rem/1 var(--font-mono); color: var(--text-muted); }
.dl-main { display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.dl-when { display: block; font: 500 .72rem/1.4 var(--font-mono); color: var(--text-muted); }
.dl-name { display: block; margin-top: .2rem; font: 400 1.75rem/1.15 var(--font-heading); letter-spacing: -.015em; color: var(--text); }
.dl-tag { font: 500 .66rem/1 var(--font-mono); color: var(--accent); border: 1px solid var(--accent-dim); border-radius: 999px; padding: .24rem .5rem; vertical-align: 6px; margin-left: .25rem; letter-spacing: 0; }
.dl-line { display: block; margin-top: .4rem; font-size: 1.02rem; line-height: 1.45; color: var(--text); }
.dl-points { display: flex; flex-direction: column; gap: .3rem; margin-top: .75rem; }
.dl-points span { position: relative; padding-left: .95rem; font-size: .9rem; line-height: 1.45; color: var(--text-muted); }
.dl-points span::before { content: ''; position: absolute; left: 0; top: .58em; width: 5px; height: 5px; border-radius: 50%; background: var(--accent-dim); }
.dl-side { display: flex; flex-direction: column; justify-content: space-between; gap: 1rem; padding: .3rem 0; min-width: 0; }
.dl-decide { display: block; font-size: .96rem; line-height: 1.45; color: var(--text); }
.dl-decide-label { display: flex; align-items: center; gap: .45rem; margin-bottom: .3rem; font: 500 .7rem/1.4 var(--font-mono); color: #f3a3a3; }
.dl-decide-label::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--danger); }
.dl-go { font-size: .9rem; font-weight: 500; color: var(--text); white-space: nowrap; }
.dl-go span { display: inline-block; margin-left: .3rem; color: var(--text-muted); transition: transform .25s var(--ease-out), color .25s; }
.dl-row:hover .dl-go span, .dl-row:focus-visible .dl-go span { transform: translateX(4px); color: var(--accent-bright); }

/* Book a call blocks (after the desks, page ends, desk pages): open and centred on a soft light, not a box */
.desks-cta, .cat-close, .dp-cta { position: relative; display: grid; justify-items: center; gap: 1.5rem; text-align: center; }
.desks-cta::before, .cat-close::before, .dp-cta::before { content: ''; position: absolute; z-index: -1; inset: 0 8%; background: radial-gradient(closest-side, rgba(212, 160, 82, .075), transparent); pointer-events: none; }
.desks-cta { padding: clamp(2.5rem, 5vw, 3.5rem) 0 clamp(4.5rem, 9vw, 6.5rem); }
.desks-cta h2 { font-size: clamp(1.7rem, 2.8vw, 2.2rem); line-height: 1.15; }
.desks-cta p { margin: .6rem auto 0; font-size: 1rem; line-height: 1.6; color: var(--text-muted); max-width: 52ch; }
.desks-cta-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 1rem 1.5rem; }

/* ---------- How we start (overview and desk pages) ---------- */
.how { position: relative; padding: clamp(4.5rem, 8vw, 6.5rem) 0; }
.how::before { content: ''; position: absolute; z-index: -1; top: 0; bottom: 0; left: 50%; width: 100vw; transform: translateX(-50%); background: linear-gradient(180deg, transparent, rgba(255, 255, 255, .022) 22%, rgba(255, 255, 255, .022) 78%, transparent); pointer-events: none; }
/* One line through the four steps: grey up to the build, gold once it runs, fading into the next desk */
.start-track { position: relative; list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 1.75rem; }
.start-track::before { content: ''; position: absolute; top: 5px; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, var(--border-hover), var(--border-hover) 51%, var(--accent-dim) 52%, var(--accent-dim) 77%, transparent); }
.start-track li::before { content: ''; position: relative; display: block; width: 11px; height: 11px; margin-bottom: 1.2rem; border-radius: 50%; border: 1.5px solid var(--text-dim); background: var(--bg); }
.start-track li:nth-child(3)::before { border-color: var(--accent); background: var(--accent); box-shadow: 0 0 0 5px rgba(212, 160, 82, .14); }
.start-track li:nth-child(4)::before { border-color: var(--accent-dim); }
.start-track h3 { font-family: var(--font-body); font-weight: 600; font-size: 1.02rem; letter-spacing: 0; line-height: 1.35; color: var(--text); }
.start-track p { margin-top: .4rem; font-size: .93rem; line-height: 1.6; color: var(--text-muted); max-width: 34ch; }
.watch-line { display: flex; align-items: center; gap: .75rem; max-width: 72ch; margin-top: 2.5rem; font-size: .98rem; line-height: 1.5; color: var(--text); }
.watch-line .core { --d: 22px; }

/* ---------- Proof (overview) ---------- */
.proof { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 2rem clamp(2rem, 5vw, 4rem); align-items: start; padding: clamp(4rem, 7vw, 5.5rem) 0; border-top: 1px solid var(--border); }
.proof-head { position: sticky; top: 120px; }
.proof-head h2 { font-size: clamp(2rem, 3.6vw, 2.8rem); line-height: 1.1; }
.proof-head .proof-note { margin-top: 1rem; max-width: 40ch; }
.proof-list { list-style: none; }
.proof-list li { padding: .95rem 0; border-top: 1px solid var(--border); }
.proof-list li:last-child { border-bottom: 1px solid var(--border); }
.proof-list a, .proof-list span { font: 500 .72rem/1.4 var(--font-mono); color: var(--text-muted); text-decoration: none; }
.proof-list a:hover { color: var(--text); }
.proof-list p { margin-top: .3rem; font: 400 1.2rem/1.45 var(--font-heading); color: var(--text); }
.proof-note { font-size: .95rem; line-height: 1.6; color: var(--text-muted); }

/* ---------- Close (overview) ---------- */
.cat-close { padding: clamp(4.5rem, 9vw, 6.5rem) 0; }
.cat-close h2 { font-size: clamp(2rem, 3.6vw, 2.8rem); line-height: 1.08; max-width: 20ch; margin: 0 auto; }
.cat-close p { margin: .9rem auto 0; color: var(--text-muted); font-size: 1rem; line-height: 1.6; max-width: 48ch; }
.close-actions { display: grid; justify-items: center; gap: .9rem; }
.cat-close .btn-primary { font-size: 1rem; padding: 1rem 1.5rem; }

.cat-footer { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; padding: 2rem 0 2.75rem; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .07) 20%, rgba(255, 255, 255, .07) 80%, transparent) top / 100% 1px no-repeat; text-align: left; }
.cat-footer p { font-size: .82rem; color: var(--text-muted); }
.cat-footer-links { display: flex; gap: 1.25rem; margin-left: auto; }
.cat-footer-links a { color: var(--text-muted); font-size: .84rem; text-decoration: none; }
.cat-footer-links a:hover { color: var(--text); }

/* ---------- Loops (desk pages) ---------- */
.loop { position: relative; aspect-ratio: 16 / 9; margin: 0; border-radius: 14px; overflow: hidden; background: var(--bg-deep); box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .85); }
.loop-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; background: transparent; }
.loop.is-missing .loop-video { display: none; }
.loop-video::-webkit-media-controls { display: none !important; }
.loop-video::-webkit-media-controls-enclosure { display: none !important; }
.loop-still { position: absolute; inset: 0; display: grid; place-items: center; background: var(--bg-deep); }
.loop .film-video { position: absolute; inset: 0; width: 100%; height: 100%; background: #000; z-index: 2; }
.film-btn { position: absolute; left: 16px; bottom: 16px; z-index: 3; display: inline-flex; align-items: center; gap: .6rem; padding: .55rem .9rem .55rem .6rem; border-radius: 999px; background: rgba(12, 12, 14, .86); border: 1px solid var(--border-hover); color: var(--text); font: 500 .82rem/1 var(--font-body); text-decoration: none; transition: border-color .2s, background .2s; }
.film-btn:hover, .film-btn:focus-visible { border-color: var(--accent-dim); background: rgba(12, 12, 14, .95); }
.film-btn-icon { position: relative; flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); }
.film-btn-icon::after { content: ''; position: absolute; left: 9px; top: 7px; width: 8px; height: 10px; background: var(--accent-ink); clip-path: polygon(0 0, 100% 50%, 0 100%); }
.loop.is-film .film-btn, .loop.is-film .motion-toggle { display: none; }

/* Pause buttons for anything that keeps moving, added by js/catalog.js */
.motion-toggle { display: inline-flex; align-items: center; gap: .4rem; font: 500 .72rem/1 var(--font-mono); color: var(--text-muted); background: rgba(12, 12, 14, .8); border: 1px solid var(--border-hover); border-radius: 5px; padding: .42rem .6rem; cursor: pointer; transition: color .2s, border-color .2s; }
.motion-toggle:hover, .motion-toggle:focus-visible { color: var(--text); border-color: var(--text-dim); }
.motion-toggle::before { content: ''; width: 8px; height: 9px; border-inline: 2.5px solid currentColor; box-sizing: border-box; }
.motion-toggle[aria-pressed="true"]::before { border: 0; background: currentColor; clip-path: polygon(0 0, 100% 50%, 0 100%); }
.loop .motion-toggle { position: absolute; right: 10px; top: 10px; z-index: 3; width: 30px; height: 30px; padding: 0; justify-content: center; border-radius: 50%; font-size: 0; opacity: .75; }
.loop .motion-toggle:hover, .loop .motion-toggle:focus-visible { opacity: 1; }
.loop.no-video .motion-toggle { display: none; }

/* ---------- Desk pages: one shared template ---------- */
.dp-page .catalog-section { scroll-margin-top: 90px; }
/* .dp-bar and .dp-pager are <nav> elements: undo the site-wide nav styles first */
.dp-bar, .dp-pager { position: static; z-index: auto; margin: 0; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; }
.dp-bar { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 1rem; padding: .85rem 0; font-size: .86rem; }
.dp-all, .dp-step a { color: var(--text-muted); text-decoration: none; transition: color .2s; }
.dp-all:hover, .dp-step a:hover { color: var(--text); }
.dp-where { display: flex; align-items: center; gap: .75rem; font: 500 .76rem/1.4 var(--font-mono); color: var(--text-muted); white-space: nowrap; }
.dp-dots { display: inline-flex; gap: 5px; }
.dp-dots i { width: 6px; height: 6px; border-radius: 3px; background: var(--border-hover); }
.dp-dots i.is-on { width: 18px; background: var(--text); }
.dp-step { justify-self: end; display: flex; gap: 1.5rem; }
.dp-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); grid-template-areas: "title intro" "loop loop"; column-gap: clamp(2rem, 5vw, 4rem); row-gap: 1.5rem; align-items: end; padding: 1.6rem 0 clamp(3.5rem, 7vw, 5rem); }
.dp-title { grid-area: title; }
.dp-intro { grid-area: intro; }
.dp-when { font: 500 .78rem/1.4 var(--font-mono); color: var(--text-muted); }
.dp-hero h1 { margin-top: .25rem; font-size: clamp(2.4rem, 4.3vw, 3.6rem); line-height: 1.02; letter-spacing: -.025em; }
.agent-tag { font: 500 .78rem/1 var(--font-mono); color: var(--accent); border: 1px solid var(--accent-dim); border-radius: 999px; padding: .32rem .6rem; vertical-align: 12px; margin-left: .35rem; letter-spacing: 0; }
.dp-line { font-size: 1.15rem; line-height: 1.5; color: var(--text); max-width: 40ch; }
.dp-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 1.1rem; }
.dp-loop { grid-area: loop; justify-self: center; width: min(100%, 980px); }

.dp-section { padding: clamp(4rem, 8vw, 5.75rem) 0; }
.dp-section h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); line-height: 1.12; margin-bottom: 1.6rem; }
.dp-split { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.dp-points { list-style: none; }
.dp-points li { position: relative; padding: .8rem 0 .8rem 2.4rem; font-size: 1.08rem; line-height: 1.5; color: var(--text); }
.dp-points li::before {
  content: ''; position: absolute; left: 0; top: .9rem; width: 22px; height: 22px; border-radius: 50%;
  background: url(/assets/video/parts-desk-chase-thumb.jpg) no-repeat; background-size: 70.4px auto; background-position: -24.1px -8.8px;
  -webkit-mask-image: radial-gradient(closest-side, #000 84%, transparent 100%); mask-image: radial-gradient(closest-side, #000 84%, transparent 100%);
}
.dp-decide { padding: 1.75rem; border-radius: 18px; background: radial-gradient(120% 90% at 0 0, rgba(239, 68, 68, .075), transparent 65%), rgba(255, 255, 255, .02); }
.dp-decide h2 { color: #f3a3a3; font-size: clamp(1.5rem, 2.4vw, 1.9rem); margin-bottom: 1rem; }
.dp-decide-main { display: flex; align-items: baseline; gap: .75rem; font-size: 1.15rem; line-height: 1.45; color: var(--text); }
.dp-decide-main .dot { transform: translateY(-2px); }
.dp-decide p + p { margin-top: 1rem; padding-left: calc(8px + .75rem); font-size: .95rem; line-height: 1.65; color: var(--text-muted); }

.dp-steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 2rem 2.25rem; }
.dp-steps li { counter-increment: step; position: relative; }
.dp-steps li::before { content: counter(step); display: grid; place-items: center; width: 28px; height: 28px; margin-bottom: .9rem; border-radius: 50%; background: rgba(255, 255, 255, .045); font: 500 .76rem/1 var(--font-mono); color: var(--text); }
.dp-steps h3 { font-family: var(--font-body); font-weight: 600; font-size: 1.05rem; letter-spacing: 0; line-height: 1.35; }
.dp-steps p { margin-top: .45rem; font-size: .94rem; line-height: 1.6; color: var(--text-muted); }
.chapter { display: inline-block; margin-top: .8rem; padding: .38rem .6rem; border: 1px solid var(--border-hover); border-radius: 999px; font: 500 .72rem/1 var(--font-mono); color: var(--text); text-decoration: none; transition: border-color .2s; }
.chapter:hover, .chapter:focus-visible { border-color: var(--accent-dim); }

.dp-proof { padding: clamp(3.5rem, 7vw, 5rem) 0; text-align: center; }
.dp-proof blockquote p { margin: 0 auto; max-width: 30ch; font: 400 clamp(1.6rem, 2.8vw, 2.2rem)/1.35 var(--font-heading); letter-spacing: -.015em; color: var(--text); }
.dp-proof-note { max-width: 56ch; margin: 1rem auto 0; font-size: .86rem; color: var(--text-muted); }

.dp-included { list-style: none; }
.dp-included li { position: relative; padding: .55rem 0 .55rem 1.6rem; font-size: .97rem; color: var(--text); }
.dp-included li::before { content: '✓'; position: absolute; left: 0; color: var(--text-muted); }
.dp-fit { padding: 1.75rem; border-radius: 18px; background: rgba(255, 255, 255, .02); }
.dp-fit h3 { font-size: 1.4rem; margin-bottom: .7rem; }
.dp-fit p { font-size: .95rem; line-height: 1.65; color: var(--text-muted); }
.dp-fit p + p { margin-top: .8rem; }


.dp-faq { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.8fr); gap: clamp(2rem, 5vw, 4rem); }
.dp-faq details { border-bottom: 1px solid rgba(255, 255, 255, .06); }
.dp-faq summary { position: relative; padding: 1.1rem 2rem 1.1rem 0; font-size: 1rem; font-weight: 500; cursor: pointer; list-style: none; }
.dp-faq summary::-webkit-details-marker { display: none; }
.dp-faq summary::after { content: '+'; position: absolute; right: .2rem; top: .95rem; font-size: 1.25rem; color: var(--text-muted); }
.dp-faq details[open] summary::after { content: '−'; }
.dp-faq details p { max-width: 68ch; padding: 0 2rem 1.2rem 0; font-size: .95rem; line-height: 1.65; color: var(--text-muted); }

.dp-cta { padding: clamp(4rem, 8vw, 5.5rem) 0 clamp(2rem, 4vw, 3rem); }
.dp-cta h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); line-height: 1.12; max-width: 24ch; margin: 0 auto; }
.dp-cta p { margin: .8rem auto 0; font-size: 1rem; line-height: 1.6; color: var(--text-muted); max-width: 46ch; }
.dp-cta-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 1rem 1.5rem; }

.dp-pager { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 1rem; padding: 2.5rem 0 3rem; }
.dp-prev, .dp-next { display: grid; gap: .25rem; color: var(--text); text-decoration: none; font: 400 1.35rem/1.2 var(--font-heading); }
.dp-next { justify-self: end; text-align: right; }
.dp-prev span, .dp-next span { font: 500 .74rem/1.4 var(--font-mono); color: var(--text-muted); }
a.dp-prev:hover, a.dp-next:hover { color: var(--accent-bright); }
.dp-pager-all { padding: .65rem 1.1rem; border: 1px solid var(--border-hover); border-radius: 999px; color: var(--text); font-size: .9rem; text-decoration: none; transition: border-color .2s; }
.dp-pager-all:hover { border-color: var(--text-dim); }

/* ---------- Responsive ---------- */
@media (max-width: 1060px) {
  .dl-row { grid-template-columns: minmax(0, 280px) minmax(0, 1.2fr) minmax(0, .85fr); }
}

@media (max-width: 900px) {
  .cat-hero-copy { grid-template-columns: 1fr; gap: 1.25rem; }
  .cat-hero h1 { max-width: 20ch; }
  .desks-head, .how-head, .proof { grid-template-columns: 1fr; }
  .dl-row { grid-template-columns: minmax(0, 200px) minmax(0, 1fr); grid-template-areas: "thumb main" "side side"; row-gap: .9rem; }
  .dl-thumb { grid-area: thumb; align-self: start; }
  .dl-main { grid-area: main; justify-content: flex-start; }
  .dl-side { grid-area: side; flex-direction: row; align-items: flex-end; justify-content: space-between; padding: 0; }
  .desks-cta { grid-template-columns: 1fr; }
  .desks-head, .how-head { gap: 1rem; }
  .proof-head { position: static; }
  .cat-close { grid-template-columns: 1fr; }
  /* Desk pages: name, line and the loop share the first screen; the button follows the loop */
  .dp-bar { grid-template-columns: auto minmax(0, 1fr); }
  .dp-where { justify-self: end; }
  .dp-step, .dp-dots { display: none; }
  .dp-hero { grid-template-columns: 1fr; grid-template-areas: "title" "line" "loop" "actions"; row-gap: 1rem; padding-top: 1.25rem; }
  .dp-intro { display: contents; }
  .dp-line { grid-area: line; }
  .dp-actions { grid-area: actions; margin-top: .25rem; }
  .dp-split, .dp-faq, .dp-cta { grid-template-columns: 1fr; }
  .dp-steps { grid-template-columns: 1fr; gap: 1.5rem; }
  .start-track { grid-template-columns: 1fr; }
  .start-track::before { top: 8px; bottom: 0; left: 5px; right: auto; width: 1px; height: auto; background: linear-gradient(180deg, var(--border-hover), var(--border-hover) 50%, var(--accent-dim) 54%, var(--accent-dim) 80%, transparent); }
  .start-track li { display: grid; grid-template-columns: 11px minmax(0, 1fr); column-gap: 1.1rem; padding: 0 0 1.5rem; }
  .start-track li::before { grid-row: 1 / 3; margin: .3rem 0 0; }
  .start-track li:nth-child(4) { padding-bottom: 0; }
}

@media (max-width: 600px) {
  .dl-row { grid-template-columns: 132px minmax(0, 1fr); column-gap: 1rem; }
  .dl-points { display: none; }
  .dl-name { font-size: 1.3rem; }
  .dl-when { font-size: .68rem; }
  .dl-line { font-size: .93rem; }
  .dl-side { flex-direction: column; align-items: flex-start; gap: .7rem; }
  .dl-thumb--custom .core { --d: 34px; }
  .dl-thumb-label { display: none; }
  .desks-cta .btn-primary { width: 100%; justify-content: center; }
  .watch-line { align-items: flex-start; }
  .cat-hero h1 { font-size: clamp(2.1rem, 9.4vw, 2.6rem); }
  .cat-hero { padding-bottom: 2.5rem; }
  .cat-lede { font-size: 1.05rem; }
  .cat-actions .btn-primary, .dp-actions .btn-primary, .dp-cta .btn-primary { width: 100%; justify-content: center; }
  .dp-bar { font-size: .82rem; padding: .7rem 0; }
  .dp-where { font-size: .7rem; flex-direction: column; align-items: flex-end; gap: 0; text-align: right; white-space: normal; }
  .dp-sep { display: none; }
  .dp-hero h1 { font-size: clamp(2rem, 9vw, 2.5rem); }
  .agent-tag { vertical-align: 8px; font-size: .68rem; }
  .dp-line { font-size: 1.05rem; }
  .film-btn { left: 8px; bottom: 8px; font-size: .72rem; padding: .4rem .7rem .4rem .45rem; }
  .film-btn-extra { display: none; }
  .film-btn-icon { width: 20px; height: 20px; }
  .film-btn-icon::after { left: 7.5px; top: 5.5px; }
  .dp-decide { padding: 1.35rem; }
  .dp-pager { grid-template-columns: 1fr 1fr; grid-template-areas: "prev next" "all all"; row-gap: 1.5rem; }
  .dp-prev { grid-area: prev; }
  .dp-next { grid-area: next; }
  .dp-pager-all { grid-area: all; justify-self: center; }
  .dp-prev, .dp-next { font-size: 1.1rem; }
  .cat-close .btn-primary { width: 100%; justify-content: center; }
  .cat-footer { flex-direction: column; align-items: flex-start; text-align: left; }
  .cat-footer-links { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .catalog-page *, .catalog-page *::before, .catalog-page *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
