/* ═══════════════════════════════════════════════════════════════════════════════
   JURIANSZ ESTATE SERVICES · DESIGN SYSTEM (preview)
   One stylesheet for every page. It sits on top of base.css (the landing page's tokens, type, navigation,
   footer and buttons), which every page links first.
   Rules and usage: DESIGN.md. Living examples: styleguide.html.
   Every component class starts with "d-". Use tokens, never raw colours.
   ═══════════════════════════════════════════════════════════════════════════════ */

/* ───────── 0 · page frame ───────── */
.d-page { background: var(--paper); }
.d-sec { position: relative; isolation: isolate; background: var(--bg); color: var(--fg); padding: var(--sp) 0; }
.d-sec.tight { padding: clamp(40px, 5vw, 72px) 0; }
.d-sec > .wrap { position: relative; z-index: 1; }
/* a section header: label, heading, optional lead to the right */
.d-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: var(--cg); row-gap: 20px; align-items: end; margin-bottom: clamp(36px, 4.5vw, 64px); }
.d-head > .kick { grid-column: 1 / -1; margin-bottom: 4px; }
.d-head > .s-lead, .d-head > p { margin: 0; max-width: 46ch; padding-bottom: .5em; }
.d-head.solo { display: block; }
@media (max-width: 900px) { .d-head { grid-template-columns: 1fr; align-items: start; } }

/* ───────── 1 · page head (the first screen of a sub page) ───────── */
.d-pagehead { position: relative; isolation: isolate; overflow: hidden; background: var(--paper); padding: clamp(56px, 7vw, 104px) 0 clamp(48px, 6vw, 88px); }
.d-pagehead > .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); column-gap: var(--cg); row-gap: 40px; align-items: center; }
.d-pagehead.solo > .wrap { grid-template-columns: minmax(0, 1fr); }
.d-pagehead .d-h1 { font: 600 clamp(2.5rem, 5vw, 4.5rem)/1.04 var(--fh); letter-spacing: -.015em; color: var(--ink-900); text-wrap: balance; margin: 0; }
.d-pagehead .d-h1 em { font-style: italic; font-weight: 500; color: var(--gold-600); }
.d-pagehead .d-lede { margin-top: 28px; max-width: 54ch; font-size: clamp(1.0625rem, 1.25vw, 1.25rem); line-height: 1.65; color: var(--ink-600); }
.d-pagehead .d-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 36px; }
.d-pagehead.dark { background: var(--ink-850); }
.d-pagehead.dark .d-h1 { color: var(--paper); } .d-pagehead.dark .d-h1 em { color: var(--gold-300); } .d-pagehead.dark .d-lede { color: rgb(var(--paper-rgb) / .86); }
@media (max-width: 1000px) { .d-pagehead > .wrap { grid-template-columns: 1fr; } }
/* breadcrumbs and small meta lines */
.d-crumbs { display: flex; flex-wrap: wrap; gap: 6px 10px; margin: 0 0 24px; padding: 0; list-style: none; font: 500 .875rem/1.4 var(--fb); color: var(--ink-450); }
.d-crumbs li + li::before { content: "/"; margin-right: 10px; color: var(--gold-line); }
.d-crumbs a { color: inherit; text-decoration: underline; text-decoration-color: var(--stone-300); text-underline-offset: 4px; }
.d-crumbs a:hover { color: var(--ink-900); text-decoration-color: var(--gold-line); }
.d-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font: 500 .875rem/1.4 var(--fb); color: var(--ink-450); }
.d-label { font: 600 .75rem/1.3 var(--fb); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-600); }
.dark .d-label { color: var(--gold-300); }

/* ───────── 2 · paper: the sheet, the stack, the bookmark ───────── */
.d-stack { position: relative; padding: 14px 10px 18px; }
.d-stack > .d-under { position: absolute; inset: 14px 10px 18px; background: var(--paper-2); box-shadow: 0 1px 0 rgb(0 0 0 / .08), 0 18px 34px -22px rgb(var(--ink-rgb) / .45); }
.d-stack > .d-under:nth-of-type(1) { rotate: 4deg; translate: 14px 6px; }
.d-stack > .d-under:nth-of-type(2) { rotate: -3deg; translate: -8px 4px; background-color: #f5efe1; background-image: repeating-linear-gradient(0deg, transparent 0 27px, rgb(var(--ink-rgb) / .06) 27px 28px); }
.d-sheet { position: relative; display: block; padding: clamp(32px, 3.4vw, 48px) clamp(26px, 3vw, 44px); background: var(--paper-hi); color: var(--ink-900); box-shadow: 0 1px 0 rgb(0 0 0 / .1), 0 26px 46px -24px rgb(var(--ink-rgb) / .5); }
.d-stack > .d-sheet { rotate: -1deg; }
.d-sheet.flat { rotate: none; }
.d-sheet.mark::before { content: ""; position: absolute; top: -8px; right: clamp(26px, 3vw, 44px); width: 24px; height: 62px; background: var(--gold-400); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 78%, 0 100%); box-shadow: 0 2px 4px rgb(0 0 0 / .18); }
.d-sheet-h { margin: 0 0 18px; padding-bottom: 16px; border-bottom: 2px solid var(--gold-line); font: 600 .8125rem/1.35 var(--fb); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-700); }
.d-sheet.mark .d-sheet-h { margin-right: 60px; }
.d-sheet ol, .d-sheet ul { list-style: none; margin: 0; padding: 0; }
.d-sheet li + li { border-top: 1px solid var(--stone-300); }
.d-sheet li { padding: 13px 0; font: 500 1.0625rem/1.35 var(--fh); color: var(--ink-900); }
/* a portrait taped to a sheet (people the firm really has photographs of) */
.d-taped { position: relative; margin: 0; padding: 10px 10px 14px; background: #fff; box-shadow: 0 14px 30px -14px rgb(var(--ink-rgb) / .5); rotate: 2.5deg; }
.d-taped::before { content: ""; position: absolute; left: 50%; top: -12px; width: 84px; height: 26px; translate: -50% 0; rotate: -2deg; background: rgb(201 165 92 / .55); }
.d-taped img { display: block; width: 100%; height: auto; }
.d-taped figcaption { margin-top: 10px; font: 600 1rem/1.2 var(--fh); color: var(--ink-900); }
.d-taped figcaption span { display: block; margin-top: 4px; font: 600 .6875rem/1.2 var(--fb); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-600); }

/* ───────── 3 · lists and rows ───────── */
/* ruled list: the workhorse. Label left (optional), title and text, round arrow when the row is a link. */
.d-ruled { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.d-ruled > li { border-bottom: 1px solid var(--stone-300); }
.dark .d-ruled { border-top-color: rgb(var(--paper-rgb) / .5); } .dark .d-ruled > li { border-bottom-color: rgb(var(--paper-rgb) / .18); }
.d-row { position: relative; display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr) auto; column-gap: clamp(20px, 3vw, 48px); row-gap: 8px; align-items: start; padding: clamp(20px, 2.2vw, 30px) 0; color: inherit; text-decoration: none; }
.d-row.no-label { grid-template-columns: minmax(0, 1fr) auto; }
.d-row > .d-label { padding-top: .45em; }
.d-row-t { margin: 0; font: 600 clamp(1.1875rem, 1.6vw, 1.5rem)/1.25 var(--fh); color: var(--head); text-wrap: balance; }
.d-row-x { margin: 8px 0 0; max-width: 62ch; font-size: 1rem; line-height: 1.6; color: var(--fg); }
a.d-row { transition: background-color 200ms ease-out; }
a.d-row::before { content: ""; position: absolute; left: 0; top: -1px; bottom: -1px; width: 3px; background: var(--gold-400); scale: 1 0; transform-origin: 50% 0; transition: scale 200ms ease-out; }
@media (hover: hover) { a.d-row:hover { background: var(--paper-hi); } a.d-row:hover::before { scale: 1 1; } a.d-row:hover .d-go { background: var(--gold-400); border-color: var(--gold-400); color: var(--ink-900); } .dark a.d-row:hover { background: rgb(var(--paper-rgb) / .06); } }
a.d-row:focus-visible { outline: 2px solid var(--gold-600); outline-offset: 3px; }
@media (max-width: 760px) { .d-row { grid-template-columns: minmax(0, 1fr) auto; } .d-row > .d-label { grid-column: 1 / -1; padding-top: 0; } }
/* the round arrow */
.d-go { flex: 0 0 auto; display: inline-grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--stone-300); border-radius: 50%; color: var(--ink-900); transition: background-color 200ms ease-out, border-color 200ms ease-out, transform 200ms ease-out; }
.d-go svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.d-go.fill { background: var(--gold-400); border-color: var(--gold-400); }
.dark .d-go { border-color: rgb(var(--paper-rgb) / .3); color: var(--paper); }
/* definition rows: a term and its explanation, for facts and policies */
.d-defs { margin: 0; border-top: 1px solid var(--rule); }
.d-defs > div { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); column-gap: clamp(20px, 3vw, 48px); padding: 20px 0; border-bottom: 1px solid var(--stone-300); }
.d-defs dt { font: 600 1.0625rem/1.35 var(--fh); color: var(--ink-900); } .d-defs dd { margin: 0; line-height: 1.6; }
@media (max-width: 760px) { .d-defs > div { grid-template-columns: 1fr; row-gap: 6px; } }

/* ───────── 4 · cards ───────── */
.d-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: clamp(16px, 1.6vw, 24px); list-style: none; margin: 0; padding: 0; }
.d-card { position: relative; display: flex; flex-direction: column; min-width: 0; padding: clamp(24px, 2.4vw, 36px); background: var(--paper-hi); border-top: 3px solid var(--gold-line); color: var(--ink-600); text-decoration: none; box-shadow: 0 1px 0 rgb(0 0 0 / .06); }
.d-card.navy { background: var(--ink-900); border-top-color: var(--gold-400); color: rgb(var(--paper-rgb) / .84); }
.d-card-t { margin: 14px 0 0; font: 600 clamp(1.25rem, 1.7vw, 1.625rem)/1.2 var(--fh); color: var(--ink-900); text-wrap: balance; }
.d-card.navy .d-card-t { color: var(--paper); } .d-card.navy .d-label { color: var(--gold-300); }
.d-card-x { margin: 14px 0 0; line-height: 1.6; }
.d-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: auto; padding-top: 26px; font: 600 .9375rem/1.2 var(--fb); color: var(--ink-900); }
.d-card.navy .d-card-foot { color: var(--paper); } .d-card.navy .d-go { background: var(--gold-400); border-color: var(--gold-400); color: var(--ink-900); }
a.d-card { transition: background-color 220ms ease-out; }
@media (hover: hover) { a.d-card:hover { background: #fff; } a.d-card.navy:hover { background: var(--ink-850); } a.d-card:hover .d-go { transform: translateX(3px); background: var(--gold-400); border-color: var(--gold-400); } }
a.d-card:focus-visible { outline: 2px solid var(--gold-600); outline-offset: 3px; }

/* ───────── 5 · photographs: always washed, never raw ───────── */
.d-photo { position: relative; display: block; overflow: hidden; margin: 0; background: #9a835c; }
.d-photo img { display: block; width: 100%; height: 100%; object-fit: cover; mix-blend-mode: luminosity; filter: brightness(1.02) contrast(1.06); }
.d-photo.tall { aspect-ratio: 3 / 4; } .d-photo.wide { aspect-ratio: 16 / 10; } .d-photo.square { aspect-ratio: 1; }
.d-photo.framed::after { content: ""; position: absolute; inset: 14px; border: 1px solid rgb(var(--paper-rgb) / .55); pointer-events: none; }
/* portraits of real people stay in natural colour */
.d-portrait { display: block; overflow: hidden; margin: 0; background: var(--paper-2); }
.d-portrait img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ───────── 6 · long reading: articles, policies, guides ───────── */
.d-prose { max-width: 70ch; font-size: 1.125rem; line-height: 1.75; color: var(--ink-600); }
.d-prose > * + * { margin-top: 1.15em; }
.d-prose h2 { margin-top: 2.2em; padding-top: .9em; border-top: 1px solid var(--stone-300); font: 600 clamp(1.625rem, 2.3vw, 2.125rem)/1.2 var(--fh); letter-spacing: -.005em; color: var(--ink-900); text-wrap: balance; }
.d-prose h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.d-prose h3 { margin-top: 1.8em; font: 600 1.3125rem/1.3 var(--fh); color: var(--ink-900); }
.d-prose a { color: var(--ink-900); text-decoration: underline; text-decoration-color: var(--gold-line); text-decoration-thickness: 1px; text-underline-offset: 4px; }
.d-prose a:hover { text-decoration-thickness: 2px; }
.d-prose strong { color: var(--ink-900); font-weight: 600; }
.d-prose ul, .d-prose ol { padding-left: 1.25em; } .d-prose li + li { margin-top: .5em; } .d-prose li::marker { color: var(--gold-600); }
.d-prose blockquote { margin-inline: 0; padding: 4px 0 4px 24px; border-left: 2px solid var(--gold-line); font: 500 1.3125rem/1.5 var(--fh); color: var(--ink-900); }
.d-prose hr { height: 1px; border: 0; background: var(--stone-300); margin-block: 2.2em; }
.d-prose > p:first-of-type.d-intro { font: 500 clamp(1.25rem, 1.6vw, 1.5rem)/1.5 var(--fh); color: var(--ink-900); }
/* a note set apart from the text */
.d-note { margin-block: 1.8em; padding: 22px 26px; background: var(--paper-hi); border-left: 3px solid var(--gold-400); color: var(--ink-600); }
.d-note > :first-child { margin-top: 0; } .d-note .d-label { display: block; margin-bottom: 8px; }
/* tables: ruled, never boxed */
.d-table { width: 100%; border-collapse: collapse; font-size: 1rem; line-height: 1.5; }
.d-table th { padding: 12px 16px 12px 0; text-align: left; border-bottom: 1px solid var(--ink-900); font: 600 .75rem/1.3 var(--fb); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-700); }
.d-table td { padding: 14px 16px 14px 0; border-bottom: 1px solid var(--stone-300); vertical-align: top; }
.d-table td:last-child, .d-table th:last-child { padding-right: 0; }
.d-tablewrap { overflow-x: auto; }
/* reading layout: text with a side rail (contents, facts, a way to get in touch) */
.d-read { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 320px); column-gap: var(--cg); row-gap: 48px; align-items: start; }
.d-rail { position: sticky; top: calc(var(--nav-h) + 28px); display: grid; gap: 28px; }
.d-toc { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink-900); }
.d-toc li { border-bottom: 1px solid var(--stone-300); }
.d-toc a { display: block; padding: 12px 0; font: 500 .9375rem/1.35 var(--fb); color: var(--ink-600); text-decoration: none; }
.d-toc a:hover, .d-toc a[aria-current] { color: var(--ink-900); text-decoration: underline; text-decoration-color: var(--gold-line); text-underline-offset: 4px; }
@media (max-width: 1000px) { .d-read { grid-template-columns: 1fr; } .d-rail { position: static; } }

/* ───────── 7 · questions and answers ───────── */
.d-faq { border-top: 1px solid var(--rule); }
.d-faq details { border-bottom: 1px solid var(--stone-300); }
.d-faq summary { position: relative; display: block; padding: 22px 56px 22px 0; cursor: pointer; list-style: none; font: 600 clamp(1.125rem, 1.4vw, 1.3125rem)/1.3 var(--fh); color: var(--ink-900); }
.d-faq summary::-webkit-details-marker { display: none; }
.d-faq summary::after { content: ""; position: absolute; right: 12px; top: 50%; width: 12px; height: 12px; border-right: 1.6px solid var(--gold-600); border-bottom: 1.6px solid var(--gold-600); translate: 0 -70%; rotate: 45deg; transition: rotate 200ms ease-out, translate 200ms ease-out; }
.d-faq details[open] summary::after { rotate: -135deg; translate: 0 -20%; }
.d-faq summary:focus-visible { outline: 2px solid var(--gold-600); outline-offset: 3px; }
.d-faq .d-answer { padding: 0 56px 24px 0; max-width: 70ch; line-height: 1.7; }

/* ───────── 8 · bands ───────── */
/* statement band: one sentence on navy */
.d-band { position: relative; isolation: isolate; overflow: hidden; background: var(--ink-850); color: var(--paper); padding: clamp(56px, 7vw, 104px) 0; }
.d-band > .wrap { position: relative; z-index: 1; }
.d-band p.d-say { max-width: 24ch; font: 500 clamp(1.75rem, 3vw, 2.75rem)/1.2 var(--fh); text-wrap: balance; }
.d-band p.d-say::before { content: ""; display: block; width: 48px; height: 1px; margin-bottom: 28px; background: var(--gold-400); }
/* closing band: the way to get in touch, at the end of every page */
.d-cta { position: relative; isolation: isolate; overflow: hidden; background: var(--ink-850); color: rgb(var(--paper-rgb) / .86); padding: clamp(56px, 6.5vw, 96px) 0; }
.d-cta > .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); column-gap: var(--cg); row-gap: 32px; align-items: end; }
.d-cta h2 { margin: 0; font: 600 clamp(2rem, 3.4vw, 3rem)/1.1 var(--fh); color: var(--paper); text-wrap: balance; }
.d-cta h2 em { font-style: normal; color: var(--gold-300); }
.d-cta p { margin: 20px 0 0; max-width: 50ch; line-height: 1.65; }
.d-cta-do { display: flex; flex-wrap: wrap; gap: 14px; justify-content: flex-end; }
.d-cta .btn-ghost { display: inline-flex; align-items: center; min-height: 52px; padding: 0 24px; border: 1px solid rgb(var(--paper-rgb) / .4); color: var(--paper); font: 600 .9375rem/1 var(--fb); text-decoration: none; }
.d-cta .btn-ghost:hover { border-color: var(--gold-300); color: var(--gold-300); }
@media (max-width: 900px) { .d-cta > .wrap { grid-template-columns: 1fr; } .d-cta-do { justify-content: flex-start; } }

/* ───────── 9 · forms and tools ───────── */
.d-field { display: grid; gap: 8px; }
.d-field > label, .d-field > .d-label { font: 600 .75rem/1.3 var(--fb); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-700); }
.d-input, .d-select, .d-textarea { width: 100%; min-height: 48px; padding: 10px 0; border: 0; border-bottom: 1px solid var(--ink-700); border-radius: 0; background: none; font: 400 1.0625rem/1.4 var(--fb); color: var(--ink-900); }
.d-textarea { min-height: 140px; padding: 12px 14px; border: 1px solid rgb(var(--ink-rgb) / .28); background: rgb(255 255 255 / .45); line-height: 1.5; }
.d-input:focus-visible, .d-select:focus-visible, .d-textarea:focus-visible { outline: 2px solid var(--ink-900); outline-offset: 3px; }
/* a tool or calculator sits on one sheet */
.d-tool { padding: clamp(24px, 3vw, 44px); background: var(--paper-hi); border-top: 3px solid var(--gold-line); box-shadow: 0 1px 0 rgb(0 0 0 / .08), 0 26px 46px -28px rgb(var(--ink-rgb) / .4); }
.d-result { margin-top: 28px; padding: 24px 26px; background: var(--ink-900); color: var(--paper); border-top: 3px solid var(--gold-400); }
.d-result .d-figure { font: 600 clamp(2rem, 3.6vw, 3rem)/1.05 var(--fh); color: var(--gold-300); font-variant-numeric: tabular-nums; }

/* ───────── 10 · line accents (mounted by ds.js from data-accent) ───────── */
.d-ln { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; color: var(--gold-line); }
.dark > .d-ln, .d-band > .d-ln, .d-cta > .d-ln, .d-pagehead.dark > .d-ln { color: var(--gold-300); }
.d-ln i { position: absolute; display: block; width: 420px; height: 420px; opacity: .5; -webkit-mask-image: radial-gradient(circle closest-side, #000 84%, transparent 100%); mask-image: radial-gradient(circle closest-side, #000 84%, transparent 100%); }
.dark > .d-ln i, .d-band > .d-ln i, .d-cta > .d-ln i { opacity: .36; }
.d-ln i.l { left: -210px; } .d-ln i.r { right: -210px; } .d-ln i.t { top: -210px; } .d-ln i.b { bottom: -210px; }
.d-ln i.corner { width: 520px; height: 520px; right: -150px; bottom: -190px; opacity: .42; -webkit-mask-image: none; mask-image: none; }
.d-ln i.sweep { inset: 0; width: auto; height: auto; opacity: .55; -webkit-mask-image: none; mask-image: none; }
.d-ln svg { display: block; width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1px; }
.d-ln svg * { vector-effect: non-scaling-stroke; }
@media (max-width: 900px) { .d-ln i { width: 240px; height: 240px; } .d-ln i.l { left: -120px; } .d-ln i.r { right: -120px; } .d-ln i.t { top: -120px; } .d-ln i.b { bottom: -120px; } .d-ln i.sweep { display: none; } .d-ln i.corner { width: 300px; height: 300px; right: -110px; bottom: -120px; } }

/* ───────── 11 · small things ───────── */
.d-rule { height: 1px; border: 0; background: var(--stone-300); margin: 0; }
.d-vh { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.d-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--cg); align-items: start; }
.d-three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 48px); align-items: start; }
@media (max-width: 900px) { .d-two, .d-three { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .d-row, .d-row::before, .d-go, .d-card, .d-faq summary::after { transition: none !important; } }

/* ═════════ second edition (14 Nov): larger type at wide screens, more page heads, four parts the first pages had to invent ═════════ */
/* type: the first pass read small at 1920 */
.d-pagehead .d-h1 { font-size: clamp(2.75rem, 5.4vw, 5.25rem); }
.d-pagehead .d-lede { font-size: clamp(1.125rem, 1.35vw, 1.375rem); }
.d-row-x, .d-card-x { font-size: clamp(1rem, 1.05vw, 1.125rem); }
.d-prose { font-size: clamp(1.125rem, 1.15vw, 1.25rem); }
.d-defs dd, .d-faq .d-answer { font-size: clamp(1rem, 1.05vw, 1.125rem); }
/* reading layout fills the page: text on the left edge, rail on the right edge */
.d-read { grid-template-columns: minmax(0, 46rem) minmax(0, 22rem); justify-content: space-between; }

/* PAGE HEADS. One page, one kind; see DESIGN.md 4a.
   .solo   one column of large type           .dark   navy ground
   .center a narrow centred column (articles) .photo  the right half is one washed photograph to the page edge
   .tool   the right half holds the page's tool or form
   and two things to put in a head instead of a sheet: d-headindex (a ruled contents list) and d-facts (a ruled strip of facts) */
.d-pagehead.center > .wrap { grid-template-columns: minmax(0, 58rem); justify-content: center; }
.d-pagehead.center .d-h1 { font-size: clamp(2.5rem, 4.4vw, 4.25rem); }
.d-pagehead.photo { padding: 0; }
.d-pagehead.photo > .wrap { align-items: stretch; min-height: min(72vh, 720px); }
.d-pagehead.photo > .wrap > :first-child { align-self: center; padding: clamp(56px, 7vw, 104px) 0; }
.d-pagehead.photo .d-photo { margin-right: calc(-1 * max(var(--g), (100vw - 1320px) / 2)); min-height: 320px; }
.d-pagehead.tool > .wrap { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: start; }
@media (max-width: 1000px) { .d-pagehead.photo > .wrap > :first-child { padding-bottom: 0; } .d-pagehead.photo .d-photo { margin-right: calc(-1 * var(--g)); margin-left: calc(-1 * var(--g)); aspect-ratio: 16 / 10; } .d-pagehead.tool > .wrap { grid-template-columns: 1fr; } }
.d-headindex { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink-900); }
.d-headindex li { border-bottom: 1px solid var(--stone-300); }
.d-headindex a { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 15px 0; font: 500 clamp(1.0625rem, 1.2vw, 1.25rem)/1.3 var(--fh); color: var(--ink-900); text-decoration: none; transition: padding 200ms ease-out, color 200ms ease-out; }
.d-headindex a::after { content: ""; flex: 0 0 auto; width: 8px; height: 8px; border-right: 1.5px solid var(--gold-600); border-bottom: 1.5px solid var(--gold-600); rotate: -45deg; }
@media (hover: hover) { .d-headindex a:hover { padding-left: 10px; } }
.d-headindex a:focus-visible { outline: 2px solid var(--gold-600); outline-offset: 3px; }
.dark .d-headindex { border-top-color: rgb(var(--paper-rgb) / .5); } .dark .d-headindex li { border-bottom-color: rgb(var(--paper-rgb) / .18); } .dark .d-headindex a { color: var(--paper); } .dark .d-headindex a::after { border-color: var(--gold-300); }
.d-facts { display: flex; flex-wrap: wrap; margin: 40px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--ink-900); border-bottom: 1px solid var(--stone-300); }
.d-facts > * { padding: 16px 40px 16px 0; margin-right: 40px; border-right: 1px solid var(--stone-300); font: 500 1rem/1.4 var(--fb); color: var(--ink-900); }
.d-facts > *:last-child { border-right: 0; margin-right: 0; }
.d-facts .d-label { display: block; margin-bottom: 4px; }
.dark .d-facts { border-top-color: rgb(var(--paper-rgb) / .5); border-bottom-color: rgb(var(--paper-rgb) / .18); } .dark .d-facts > * { color: var(--paper); border-right-color: rgb(var(--paper-rgb) / .18); }
@media (max-width: 700px) { .d-facts > * { flex: 1 1 100%; margin-right: 0; padding-right: 0; border-right: 0; border-bottom: 1px solid var(--stone-300); } .d-facts > *:last-child { border-bottom: 0; } }

/* SPLIT: a heading that stays beside a long block as it scrolls (services, long definitions) */
.d-split { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); column-gap: var(--cg); row-gap: 28px; align-items: start; }
.d-split > :first-child { position: sticky; top: calc(var(--nav-h) + 32px); }
.d-split.wide { grid-template-columns: minmax(0, .6fr) minmax(0, 1.4fr); }
@media (max-width: 1000px) { .d-split, .d-split.wide { grid-template-columns: 1fr; } .d-split > :first-child { position: static; } }
/* BULLETS: a ruled list of short items, in one or two columns */
.d-bullets { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); columns: 1; }
.d-bullets.two { columns: 2; column-gap: var(--cg); }
.d-bullets li { break-inside: avoid; position: relative; padding: 13px 0 13px 26px; border-bottom: 1px solid var(--stone-300); font-size: clamp(1rem, 1.05vw, 1.125rem); line-height: 1.5; }
.d-bullets li::before { content: ""; position: absolute; left: 2px; top: 1.45em; width: 9px; height: 1px; background: var(--gold-600); }
.dark .d-bullets { border-top-color: rgb(var(--paper-rgb) / .5); } .dark .d-bullets li { border-bottom-color: rgb(var(--paper-rgb) / .18); } .dark .d-bullets li::before { background: var(--gold-300); }
@media (max-width: 760px) { .d-bullets.two { columns: 1; } }
/* QUOTE: an existing sentence set large (a person's words, a principle) */
.d-quote { margin: 0; padding-left: clamp(20px, 2.4vw, 36px); border-left: 2px solid var(--gold-line); font: 500 italic clamp(1.5rem, 2.4vw, 2.25rem)/1.3 var(--fh); color: var(--ink-900); text-wrap: balance; }
.dark .d-quote { color: var(--paper); border-left-color: var(--gold-400); }
.d-quote cite, .d-quote footer { display: block; margin-top: 18px; font: 600 .75rem/1.3 var(--fb); font-style: normal; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-600); }
/* ASIDE PANEL: a short note beside a block (who this is for, good to know) */
.d-panel { padding: 22px 26px; background: var(--paper-hi); border-top: 2px solid var(--gold-line); box-shadow: 0 1px 0 rgb(0 0 0 / .06); }
.d-panel .d-label { display: block; margin-bottom: 8px; }
.dark .d-panel { background: var(--ink-700); border-top-color: var(--gold-400); box-shadow: none; }

/* the photograph in a photo head fills its half; it never sets the height */
.d-pagehead.photo .d-photo { position: relative; }
.d-pagehead.photo .d-photo img { position: absolute; inset: 0; }

/* ═════════ third edition (14 Nov): the landing page's own designs as shared parts ═════════
   The owner's direction: sub pages reuse the landing page's distinctive designs, with small changes of alignment and spacing.
   A page that uses them carries the same data-x attributes on <html> as the landing page (see sub/services.html).
   PLATE: the landing page's six-phases panel as a still part: a navy panel of text beside one washed photograph. */
.d-plate { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); background: var(--ink-900); color: rgb(var(--paper-rgb) / .86); box-shadow: 0 1px 0 rgb(0 0 0 / .1), 0 30px 50px -30px rgb(var(--ink-rgb) / .55); }
.d-plate.rev .d-plate-copy { order: 2; }
.d-plate-copy { display: flex; flex-direction: column; padding: clamp(28px, 3.6vw, 56px); border-top: 3px solid var(--gold-400); }
.d-plate-copy .d-label { color: var(--gold-300); }
.d-plate-t { margin: 14px 0 0; font: 600 clamp(1.75rem, 2.7vw, 2.625rem)/1.14 var(--fh); letter-spacing: -.005em; color: var(--paper); text-wrap: balance; }
.d-plate-t em { font-style: normal; font-weight: 400; }
.d-plate-x { margin: 22px 0 0; font-size: clamp(1rem, 1.05vw, 1.125rem); line-height: 1.65; }
.d-plate-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: auto; padding-top: 30px; }
.d-plate-pic { position: relative; min-height: clamp(320px, 34vw, 520px); }
.d-plate-pic .d-photo { position: absolute; inset: 0; }
.d-plate-pic::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgb(6 14 24 / .55), transparent 55%); pointer-events: none; }
@media (max-width: 900px) { .d-plate { grid-template-columns: 1fr; } .d-plate.rev .d-plate-copy { order: 0; } .d-plate-pic { min-height: 240px; } }

/* 15 Nov · phones: smaller section-join ornaments, so they stop crossing the labels beside them */
@media (max-width: 600px) {
  .d-ln i { width: 150px; height: 150px; }
  .d-ln i.l { left: -75px; } .d-ln i.r { right: -75px; } .d-ln i.t { top: -75px; } .d-ln i.b { bottom: -75px; }
}
