/* =====================================================================
   TRADEWORKS — "Drafting Table" design system · Opus 5.5 prototype
   One stylesheet, ordered: tokens → base → shell → heroes → blocks →
   components → forms → long-form → footer → motion → responsive.
   ===================================================================== */

/* ---------- 1. Tokens ---------- */
@font-face { font-family: "Manrope"; src: url("/assets/fonts/manrope-variable-latin.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
/* Latin subsets of the approved variable fonts (pyftsubset; glyph coverage verified against all site copy). */
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter-variable-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --ink: #171C1B;          /* Charcoal (brand) */
  --ink-2: #1D2322;
  --ink-3: #252C2A;
  --ink-4: #323A37;
  --lime: #D9F56B;         /* Signal lime (brand) */
  --lime-deep: #3F5216;    /* lime-family text on paper, 8.6:1 */
  --paper: #F3F2EC;        /* Warm porcelain (brand) */
  --paper-2: #E8E7DF;
  --paper-3: #DCDBD1;
  --stone: #AEB8B0;        /* muted on ink, 8.9:1 */
  --slate: #4A524F;        /* muted on paper, 7.3:1 */
  --line: rgba(23, 28, 27, .16);
  --line-d: rgba(243, 242, 236, .14);
  --danger: #8B2E26;
  --display: "Manrope", "Inter", system-ui, sans-serif;
  --text: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1320px;
  --gutter: clamp(20px, 4.2vw, 56px);
  --hdr: 72px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --space: clamp(72px, 9vw, 144px);
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--hdr) + 24px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 1.0625rem/1.65 var(--text); font-feature-settings: "ss01", "cv11";
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img, svg { max-width: 100%; }
img { height: auto; display: block; }
a { color: inherit; text-underline-offset: .22em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
p { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.2em; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 800; letter-spacing: -.035em; line-height: 1.04; margin: 0 0 .55em; text-wrap: balance; }
h2 { font-size: clamp(2rem, 1.25rem + 2.6vw, 3.6rem); }
h3 { font-size: clamp(1.2rem, 1.05rem + .5vw, 1.5rem); letter-spacing: -.02em; line-height: 1.18; }
h4 { font-size: 1.15rem; letter-spacing: -.015em; }
strong { font-weight: 650; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; border-radius: 2px; }
.blk--light :focus-visible, .plate__frame--paper :focus-visible { outline-color: var(--ink); box-shadow: 0 0 0 6px var(--lime); }
::selection { background: var(--lime); color: var(--ink); }
.visually-hidden, .assembly-sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.legacy-anchor { position: relative; top: calc(-1 * var(--hdr)); display: block; height: 0; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 100; background: var(--lime); color: var(--ink); padding: 12px 18px; font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 12px; }
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.ui-icon { width: 1em; height: 1em; vertical-align: -.12em; flex: none; }

.eyebrow, .rail__no, .plate__cap, .mega__label, .ft-h, .ft-toggle, .insight-date, .brand-descriptor, .hero__cap, .doc-toc__h {
  font: 650 .75rem/1.4 var(--text); letter-spacing: .16em; text-transform: uppercase;
}
.eyebrow { color: var(--slate); margin: 0 0 1.4rem; display: flex; align-items: center; gap: .7em; }
.blk--dark .eyebrow, .phero .eyebrow, .hero .eyebrow { color: var(--stone); }
.eyebrow::before { content: ""; width: 18px; height: 2px; background: var(--lime); flex: none; }
.blk--light .eyebrow::before { background: var(--ink); }
.signal { display: none; }

.accent, .ln--accent, h2 > span:last-child:not(:only-child), em { font-style: normal; }
.blk--light h2 span:not(.ln):last-child:not(:only-child), .blk--light .accent { color: var(--lime-deep); }
.blk--dark h2 span:not(.ln):last-child:not(:only-child), .blk--dark .accent, .blk--dark em { color: var(--lime); }
.blk--light em { color: var(--lime-deep); }

/* Buttons & text links */
.button, .nav-cta, button.wizard-next, button.wizard-back, .cookie-actions button, .review-comparison-toggle button, #enquiry-form [type=submit] {
  --b: var(--lime); --f: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: .65em;
  min-height: 52px; padding: .85em 1.35em; border: 1.5px solid var(--b); border-radius: 0;
  background: var(--b); color: var(--f); font: 700 1rem/1.2 var(--display); letter-spacing: -.01em;
  text-decoration: none; cursor: pointer; position: relative; isolation: isolate; overflow: hidden;
  transition: color .3s var(--ease), border-color .3s var(--ease);
}
.button::after, .nav-cta::after, #enquiry-form [type=submit]::after, button.wizard-next::after {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--f); transform: translateY(101%); transition: transform .35s var(--ease);
}
.button:hover, .nav-cta:hover, #enquiry-form [type=submit]:hover, button.wizard-next:hover { color: var(--b); text-decoration: none; }
.button:hover::after, .nav-cta:hover::after, #enquiry-form [type=submit]:hover::after, button.wizard-next:hover::after { transform: none; }
.button.dark, #enquiry-form [type=submit] { --b: var(--ink); --f: var(--lime); }
.blk--dark #enquiry-form [type=submit], .b-contact #enquiry-form [type=submit] { --b: var(--ink); --f: var(--lime); }
button.wizard-back, .cookie-actions button + button, .review-comparison-toggle button { background: transparent; color: currentColor; border-color: currentColor; }
.button .ui-icon, .nav-cta .ui-icon { transition: transform .35s var(--ease); }
.button:hover .ui-icon, .nav-cta:hover .ui-icon { transform: translate(2px, -2px); }
.text-link {
  display: inline-flex; align-items: center; gap: .5em; font-weight: 650; text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1.5px no-repeat; padding-bottom: 3px;
  transition: background-size .35s var(--ease);
}
.text-link:hover { background-size: 0 1.5px; background-position: 100% 100%; }
button.text-link { border: 0; color: inherit; font: inherit; font-weight: 650; cursor: pointer; background-color: transparent; }
.external-note { font-size: .82rem; color: var(--stone); margin-top: .8rem; }

/* ---------- 3. Shell: header & navigation ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--ink); color: var(--paper); border-bottom: 1px solid transparent; transition: border-color .3s, background-color .3s; }
[data-scrolled] .site-header { border-bottom-color: var(--line-d); background: rgba(23, 28, 27, .94); backdrop-filter: saturate(140%) blur(10px); }
.hdr { display: flex; align-items: center; gap: 28px; height: var(--hdr); }
.brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; color: var(--stone); flex: none; }
.brand img { width: 170px; height: auto; }
.brand-descriptor { font-size: .62rem; letter-spacing: .22em; padding-left: 14px; border-left: 1px solid var(--line-d); line-height: 1.1; }
#navigation { margin-left: auto; display: flex; align-items: center; gap: 28px; }
.nav__list { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav__item { position: relative; display: flex; align-items: center; }
.nav__item > a { font: 600 .95rem/1 var(--display); text-decoration: none; padding: 12px 12px; color: var(--paper); position: relative; }
.nav__item > a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; background: var(--lime); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav__item > a:hover::after, .nav__item[data-open] > a::after, .nav__item > a[aria-current]::after { transform: none; }
.nav__more { display: grid; place-items: center; width: 28px; height: 36px; margin-left: -8px; border: 0; background: none; color: var(--stone); cursor: pointer; }
.nav__chev { width: 8px; height: 8px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .3s var(--ease); }
.nav__more[aria-expanded="true"] .nav__chev { transform: translateY(2px) rotate(-135deg); color: var(--lime); }
.nav-cta { min-height: 44px; padding: .6em 1.05em; font-size: .92rem; }
.menu-toggle { display: none; }
.read-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; pointer-events: none; display: none; }
.has-progress .read-progress { display: block; }
.read-progress span { display: block; height: 100%; background: var(--lime); transform-origin: left; transform: scaleX(0); }

.mega { position: fixed; left: 0; right: 0; top: var(--hdr); background: var(--ink-2); border-top: 1px solid var(--line-d); border-bottom: 1px solid var(--line-d); box-shadow: 0 40px 80px -40px rgba(0,0,0,.6); }
.mega__inner { max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 36px var(--gutter) 40px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px; }
.mega__group ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.mega__label { color: var(--stone); margin: 0 0 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line-d); }
.mega a { display: flex; align-items: center; gap: 12px; padding: 9px 8px 9px 0; text-decoration: none; font: 600 .95rem/1.25 var(--display); color: var(--paper); transition: color .2s, transform .3s var(--ease); }
.mega li a:hover { color: var(--lime); transform: translateX(4px); }
.mega__icon { width: 26px; height: 26px; color: var(--stone); flex: none; }
.mega__all { grid-column: 1 / -1; justify-content: flex-end; color: var(--lime) !important; border-top: 1px solid var(--line-d); padding-top: 18px !important; }
@media (prefers-reduced-motion: no-preference) { .mega:not([hidden]) { animation: drop .35s var(--ease); } }
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } }

/* ---------- 4. Heroes ---------- */
.hero, .phero { background: var(--ink); color: var(--paper); position: relative; overflow: hidden; }
.hero::before, .phero::before, .b-cta::before, .b-approach::before, .b-contact::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--line-d) 1px, transparent 1px), linear-gradient(90deg, var(--line-d) 1px, transparent 1px);
  background-size: 48px 48px; opacity: .35;
  mask-image: radial-gradient(ellipse 80% 70% at 70% 40%, #000 20%, transparent 75%);
}
.hero__grid { position: relative; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 64px); align-items: center; min-height: min(calc(100svh - var(--hdr) - 76px), 880px); padding-block: clamp(48px, 7vw, 96px) 32px; }
.display { font-size: clamp(2.5rem, 1.4rem + 4.2vw, 5.6rem); line-height: .98; letter-spacing: -.05em; margin-bottom: .45em; }
.display--xl { font-size: clamp(3rem, 1.2rem + 6.6vw, 8.25rem); line-height: .92; letter-spacing: -.06em; }
.ln { display: block; }
.ln--accent { color: var(--lime); }
.hero-intro, .page-intro { font-size: clamp(1.05rem, .98rem + .35vw, 1.3rem); line-height: 1.55; color: #D7DAD3; max-width: 58ch; }
.hero__actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 14px; }
.hero__art { position: relative; }
.hero__matrix { aspect-ratio: 664 / 456; }
.hero__matrix svg { width: 100%; height: auto; overflow: visible; }
.hero__cap, .plate__cap { display: flex; justify-content: space-between; gap: 16px; color: var(--stone); margin: 18px 0 0; padding-top: 14px; border-top: 1px solid var(--line-d); font-size: .66rem; }
.hero__bottom { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-block: 22px; border-top: 1px solid var(--line-d); font: 600 .8rem/1.3 var(--text); letter-spacing: .12em; text-transform: uppercase; color: var(--stone); }
.hero__bottom a { text-decoration: none; color: var(--paper); display: inline-flex; gap: .6em; align-items: center; }
.hero__bottom a:hover { color: var(--lime); }

/* TW module matrix */
.matrix .m { fill: transparent; stroke: rgba(243, 242, 236, .1); stroke-width: 1; transform-box: fill-box; transform-origin: center; transition: transform .45s var(--ease), fill .45s, stroke .45s; transform: scale(calc(1 - var(--k, 0) * .25)); }
.matrix .m--t { fill: var(--paper); stroke: none; }
.matrix .m--w { fill: var(--lime); stroke: none; }
.matrix .m--g { fill: rgba(243, 242, 236, calc(var(--k, 0) * .22)); stroke: rgba(217, 245, 107, calc(.08 + var(--k, 0) * .6)); }
.matrix .m--t, .matrix .m--w { transform: scale(calc(1 - var(--k, 0) * .18)) rotate(calc(var(--k, 0) * 45deg)); }
@media (prefers-reduced-motion: no-preference) {
  .matrix--hero .m--t, .matrix--hero .m--w { animation: settle .9s var(--ease) both; animation-delay: calc(var(--d) + 150ms); }
  .matrix--hero .m--g { animation: fade .8s ease both; animation-delay: calc(var(--d) * .6); }
}
@keyframes settle { from { opacity: 0; transform: translateY(-24px) scale(.4); } }
@keyframes fade { from { opacity: 0; } }

/* Inner page heroes */
.phero__grid { position: relative; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(32px, 5vw, 80px); align-items: end; padding-block: clamp(36px, 5vw, 64px) clamp(56px, 7vw, 104px); }
.phero__copy > :last-child { margin-bottom: 0; }
.phero .button { margin-top: 1.4rem; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: clamp(40px, 6vw, 88px); font-size: .82rem; color: var(--stone); }
.breadcrumb a { color: var(--paper); text-decoration: none; }
.breadcrumb a:hover { color: var(--lime); }
.breadcrumb [aria-current] { color: var(--stone); max-width: 42ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.project-back { color: var(--lime); margin-bottom: 1.8rem; font-size: .9rem; }
.cf-eligibility { color: var(--lime); font-weight: 600; font-size: .95rem; max-width: 52ch; }
.insight-byline { color: var(--stone); font-size: .9rem; }
.phero .insight-date { color: var(--stone); margin-bottom: 1.2rem; }

.plate { position: relative; }
.plate__frame { position: relative; aspect-ratio: 1; border: 1px solid var(--line-d); display: grid; place-items: center; overflow: hidden; background: radial-gradient(circle at 50% 50%, rgba(217, 245, 107, .08), transparent 65%), var(--ink-2); }
.plate__frame::before { content: ""; position: absolute; inset: 12%; border: 1px dashed rgba(174, 184, 176, .25); }
.plate__icon { width: 56%; height: 56%; color: var(--paper); position: relative; }
.plate__mk { position: absolute; width: 22px; height: 22px; }
.plate__mk::before, .plate__mk::after { content: ""; position: absolute; background: var(--lime); }
.plate__mk::before { left: 10px; top: 0; width: 2px; height: 22px; }
.plate__mk::after { top: 10px; left: 0; height: 2px; width: 22px; }
.plate__mk--tl { left: 14px; top: 14px; } .plate__mk--br { right: 14px; bottom: 14px; }
.plate__dim { position: absolute; background: rgba(174, 184, 176, .35); }
.plate__dim--x { left: 22%; right: 22%; bottom: 7%; height: 1px; }
.plate__dim--y { top: 22%; bottom: 22%; right: 7%; width: 1px; }
.plate__scan { position: absolute; left: 0; right: 0; height: 30%; top: -30%; background: linear-gradient(transparent, rgba(217, 245, 107, .12), transparent); }
@media (prefers-reduced-motion: no-preference) { .plate__scan { animation: scan 3.2s var(--ease) .4s 1 both; } }
@keyframes scan { to { top: 100%; } }
.plate__frame--paper { background: var(--paper); aspect-ratio: 4 / 3; }
.plate__frame--paper::before { border-color: rgba(23, 28, 27, .14); }
.plate__frame--paper img { width: 66%; max-height: 62%; object-fit: contain; position: relative; }
.plate__project-name { position: relative; font: 800 clamp(1.6rem, 1rem + 2vw, 2.6rem)/1 var(--display); color: var(--ink); letter-spacing: -.04em; text-align: center; padding: 0 12%; }
.plate__project-name:empty { display: none; }
.plate--article .plate__frame { aspect-ratio: 16 / 10; }
.plate--article img { width: 88%; position: relative; }
.plate--matrix svg { width: 100%; height: auto; }
.matrix--small .m--g { stroke: rgba(243, 242, 236, .08); }
.pt-article .phero__grid { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); }

/* ---------- 5. Blocks & the margin rail ---------- */
.blk { position: relative; padding-block: var(--space); }
.blk--light { background: var(--paper); color: var(--ink); }
.blk--light + .blk--light { border-top: 1px solid var(--line); }
.blk--dark { background: var(--ink); color: var(--paper); }
.blk--dark + .blk--dark { border-top: 1px solid var(--line-d); }
.rail-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: clamp(24px, 4vw, 72px); }
.rail { align-self: start; position: sticky; top: calc(var(--hdr) + 32px); }
.rail__no { display: block; font: 800 clamp(2.4rem, 1.6rem + 2vw, 3.6rem)/1 var(--display); letter-spacing: -.05em; color: transparent; -webkit-text-stroke: 1.2px currentColor; opacity: .35; margin-bottom: 18px; }
.rail .eyebrow { margin-bottom: 0; }
.rail h2 { font-size: clamp(1.9rem, 1.3rem + 1.8vw, 2.9rem); margin-top: 1.2rem; }
.rail-main > :first-child { margin-top: 0; }
.rail-main > h2 { max-width: 20ch; }
.rail-main > p, .rail-main > div > p { max-width: 68ch; }

/* Lede: big statements */
.b-lede .rail-main h2 { font-size: clamp(2.1rem, 1.2rem + 3vw, 4.2rem); max-width: 18ch; margin-bottom: .7em; }
.b-lede .rail-main p { font-size: 1.12rem; color: var(--slate); }
.b-lede .rail-main h2 + p { font-size: clamp(1.15rem, 1.02rem + .5vw, 1.45rem); color: var(--ink); line-height: 1.5; }
.blk--dark.b-lede .rail-main p { color: #D7DAD3; }
.experience-intro { margin-top: 2.6rem; padding: clamp(24px, 3vw, 40px); background: var(--ink); color: var(--paper); border-left: 4px solid var(--lime); }
.experience-intro p { color: #D7DAD3 !important; font-size: 1.02rem !important; }
.experience-intro .text-link { color: var(--lime); }
.intro-body { columns: 2 320px; column-gap: 48px; }
.intro-body p { break-inside: avoid; }
.section-label { display: flex; align-items: center; gap: 12px; font: 650 .75rem/1.4 var(--text); letter-spacing: .16em; text-transform: uppercase; color: var(--slate); }
.intro-rule { flex: 1; height: 1px; background: var(--line); }

/* Process (service-detail) */
.process { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: clamp(32px, 4vw, 56px); border-top: 1px solid var(--line); }
.process > article { padding: clamp(24px, 3vw, 40px) clamp(0px, 2vw, 32px) clamp(28px, 3vw, 44px) 0; border-bottom: 1px solid var(--line); position: relative; }
.process > article:nth-child(odd) { padding-right: clamp(20px, 3vw, 48px); border-right: 1px solid var(--line); }
.process > article:nth-child(even) { padding-left: clamp(20px, 3vw, 48px); }
.display-number { display: inline-block; font: 800 .8rem/1 var(--text); letter-spacing: .14em; padding: 6px 9px; background: var(--ink); color: var(--lime); margin-bottom: 22px; }
.blk--dark .display-number { background: var(--lime); color: var(--ink); }
.process p { color: var(--slate); margin: 0; }
.blk--dark .process p { color: #D7DAD3; }
.process a { font-weight: 600; }

/* Spec (scope) panel */
.b-spec .wrap { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 112px); position: relative; }
.b-spec h2 { font-size: clamp(2.1rem, 1.3rem + 2.8vw, 4rem); }
.b-spec .spec__col > p { color: #D7DAD3; max-width: 56ch; }
.b-spec .spec__col:last-child { background: var(--ink-2); border: 1px solid var(--line-d); padding: clamp(24px, 3vw, 44px); align-self: start; }
.b-spec h3 { font-size: .78rem; font-family: var(--text); letter-spacing: .16em; text-transform: uppercase; color: var(--stone); margin-bottom: 1.4rem; }
.b-spec ul { list-style: none; padding: 0; margin: 0 0 1.4rem; }
.b-spec li { position: relative; padding: .85rem 0 .85rem 34px; border-bottom: 1px solid var(--line-d); font-weight: 550; }
.b-spec li::before { content: ""; position: absolute; left: 0; top: 1.15rem; width: 16px; height: 9px; border-left: 2px solid var(--lime); border-bottom: 2px solid var(--lime); transform: rotate(-45deg); }
.scope-note { font-size: .88rem; color: var(--stone) !important; margin: 0; }
.b-spec .text-link { color: var(--lime); }

/* FAQ */
.question-list { border-top: 1px solid var(--line); }
.blk--dark .question-list { border-color: var(--line-d); }
.question-list details, .review-section details { border-bottom: 1px solid var(--line); }
.blk--dark .question-list details { border-color: var(--line-d); }
summary { cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
.question-list summary, .b-chapter details summary { position: relative; display: block; padding: 1.5rem 3.5rem 1.5rem 0; font: 700 clamp(1.08rem, 1rem + .4vw, 1.35rem)/1.3 var(--display); letter-spacing: -.02em; transition: color .2s; }
.question-list summary::after, .b-chapter details summary::after { content: ""; position: absolute; right: 4px; top: 50%; width: 32px; height: 32px; margin-top: -16px; border: 1.5px solid currentColor; border-radius: 50%;
  background: linear-gradient(currentColor, currentColor) center / 12px 1.5px no-repeat, linear-gradient(currentColor, currentColor) center / 1.5px 12px no-repeat; transition: transform .35s var(--ease), background-color .2s; }
details[open] > summary::after { transform: rotate(135deg); background-color: var(--lime); color: var(--ink); border-color: var(--lime); }
.question-list summary:hover { color: var(--lime-deep); }
.blk--dark .question-list summary:hover { color: var(--lime); }
.question-list details > :not(summary), .b-chapter details > :not(summary) { max-width: 68ch; color: var(--slate); padding-bottom: 1.4rem; margin: 0; }
.blk--dark .question-list details > :not(summary) { color: #D7DAD3; }

/* Related / link grid */
.b-related .wrap > h2 { max-width: 22ch; }
.linkgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); margin-top: 2rem; }
.linkgrid a { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 1.3rem 1.2rem 1.3rem 0; border-bottom: 1px solid var(--line); text-decoration: none; font: 700 1.05rem/1.3 var(--display); letter-spacing: -.015em; transition: background-color .25s, padding .3s var(--ease); }
.linkgrid a:hover { background: var(--ink); color: var(--lime); padding-left: 1.2rem; }
.linkgrid a > span { flex: none; display: inline-grid; place-items: center; width: 34px; height: 34px; border: 1px solid currentColor; }

/* CTA band */
.b-cta { overflow: hidden; }
.b-cta .wrap { position: relative; }
.b-cta h2 { font-size: clamp(2.6rem, 1.4rem + 4.6vw, 6.4rem); line-height: .95; letter-spacing: -.055em; max-width: 13ch; position: relative; z-index: 1; }
.b-cta p:not(.eyebrow) { color: #D7DAD3; max-width: 56ch; position: relative; z-index: 1; }
.b-cta .button, .b-cta .text-link { position: relative; z-index: 1; margin-top: 1rem; margin-right: 1rem; }
.b-cta .text-link { color: var(--lime); }
.cta__matrix { position: absolute; right: var(--gutter); bottom: -10%; width: min(44%, 560px); opacity: .9; pointer-events: none; }
.cta__matrix svg { width: 100%; height: auto; }
.matrix--cta .m--t { fill: rgba(243, 242, 236, .1); } .matrix--cta .m--w { fill: var(--lime); opacity: .85; } .matrix--cta .m--g { stroke: rgba(243, 242, 236, .06); }

/* Note (related insight) */
.b-note .wrap { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 0 clamp(24px, 4vw, 72px); }
.b-note .eyebrow { grid-row: span 3; }
.b-note h2 { font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.5rem); max-width: 24ch; }
.b-note .text-link { justify-self: start; margin: .4rem 2rem .4rem 0; display: inline-flex; }
.b-note .wrap > .text-link + .text-link { grid-column: 2; }

/* Journal (insight cards) */
.b-journal .wrap > h2 { max-width: 20ch; }
.insight-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 36px); margin-top: clamp(32px, 4vw, 56px); }
.insight-card { display: flex; flex-direction: column; background: var(--paper-2); position: relative; transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.insight-card:hover { transform: translateY(-6px); box-shadow: 0 30px 50px -30px rgba(23, 28, 27, .45); }
.insight-art-link { display: block; background: var(--ink); overflow: hidden; }
.cover { display: grid; place-items: center; aspect-ratio: 16 / 10; position: relative; background-image: linear-gradient(var(--line-d) 1px, transparent 1px), linear-gradient(90deg, var(--line-d) 1px, transparent 1px); background-size: 32px 32px; }
.cover img { width: 92%; transition: transform .8s var(--ease); }
.insight-card:hover .cover img { transform: scale(1.05); }
.insight-card-copy { padding: clamp(20px, 2vw, 28px); display: flex; flex-direction: column; flex: 1; }
.insight-card-copy .eyebrow { margin-bottom: .6rem; }
.insight-date { color: var(--slate); font-size: .68rem; letter-spacing: .1em; }
.insight-card h2, .insight-card h3 { font-size: clamp(1.2rem, 1.05rem + .5vw, 1.5rem); margin: .6rem 0 .8rem; letter-spacing: -.025em; line-height: 1.15; }
.insight-card h2 a, .insight-card h3 a { text-decoration: none; }
.insight-card h2 a::after, .insight-card h3 a::after { content: ""; position: absolute; inset: 0; } /* whole-card target */
.insight-card-copy > p:not(.eyebrow):not(.insight-date) { color: var(--slate); font-size: .98rem; }
.insight-card .text-link { margin-top: auto; align-self: flex-start; position: relative; z-index: 1; }
.insight-featured { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); background: var(--ink); color: var(--paper); }
.insight-featured .cover { aspect-ratio: auto; height: 100%; min-height: 320px; }
.insight-featured .insight-card-copy { padding: clamp(28px, 4vw, 56px); justify-content: center; }
.insight-featured h2, .insight-featured h3 { font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.8rem); }
.insight-featured .eyebrow, .insight-featured .insight-date, .insight-featured .insight-card-copy > p:not(.eyebrow):not(.insight-date) { color: var(--stone); }
.insight-featured .eyebrow::before { background: var(--lime); }
.insight-featured .text-link { color: var(--lime); }
.insight-service-bridge { margin-top: 2.4rem; padding-top: 1.6rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 12px 32px; align-items: center; }

/* Facts ledger (project) */
.b-facts { padding-block: 0 !important; background: var(--paper); }
.b-facts .wrap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.b-facts .wrap > div { padding: 28px 24px 30px 0; border-right: 1px solid var(--line); }
.b-facts .wrap > div + div { padding-left: 24px; }
.b-facts .wrap > div:last-child { border-right: 0; }
.b-facts .eyebrow { font-size: .66rem; margin-bottom: .7rem; }
.b-facts p { font: 700 1.08rem/1.3 var(--display); letter-spacing: -.015em; margin: 0; }

/* Structure diagram (project) */
.structure-group { display: inline-block; background: var(--ink); color: var(--paper); padding: 24px 28px; margin: 1rem 0 0; position: relative; min-width: min(100%, 340px); }
.structure-group .eyebrow { color: var(--lime); }
.structure-group .eyebrow::before { background: var(--lime); }
.structure-group h3 { margin: .2rem 0 .3rem; font-size: 1.6rem; }
.structure-group p { margin: 0; color: var(--stone); }
.structure-homes { list-style: none; padding: 34px 0 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; position: relative; }
.structure-homes::before { content: ""; position: absolute; top: 0; left: 28px; width: 2px; height: 34px; background: var(--lime-deep); }
.structure-homes li { position: relative; padding: 18px; border: 1.5px solid var(--ink); font: 700 1.05rem/1.2 var(--display); background: var(--paper); }
.structure-homes li::before { content: ""; position: absolute; top: -17px; left: 20px; width: 2px; height: 16px; background: var(--lime-deep); }
.structure-homes::after { content: ""; position: absolute; top: 16px; left: 28px; right: calc(12.5% - 6px); height: 2px; background: var(--lime-deep); }

/* Credits */
.b-credits dl { margin: 1.6rem 0 0; border-top: 1px solid var(--line); }
.b-credits dl > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.b-credits dt { color: var(--slate); }
.b-credits dd { margin: 0; font: 700 1.05rem/1.4 var(--display); }

/* Project pager */
.b-pager { padding-block: 0 !important; }
.pager .wrap { display: grid; grid-template-columns: 1fr auto 1fr; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pager a { padding: 32px 0; text-decoration: none; font: 800 clamp(1.1rem, .9rem + .8vw, 1.6rem)/1.2 var(--display); letter-spacing: -.03em; display: flex; flex-direction: column; gap: 8px; transition: color .2s; }
.pager a span { font: 650 .7rem/1 var(--text); letter-spacing: .16em; text-transform: uppercase; color: var(--slate); }
.pager a:nth-child(2) { align-self: center; padding: 14px 22px; border: 1.5px solid var(--ink); font-size: .9rem; letter-spacing: 0; }
.pager a:nth-child(2):hover { background: var(--ink); color: var(--lime); }
.pager a:last-child { text-align: right; align-items: flex-end; }
.pager a:first-child:hover, .pager a:last-child:hover { color: var(--lime-deep); }

/* Case studies (projects hub) */
.b-cases .wrap { display: grid; gap: clamp(20px, 2.6vw, 40px); }
.b-cases .wrap > h2, .b-cases .wrap > p, .b-cases .wrap > .eyebrow { margin: 0; }
.case { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); background: var(--paper-2); position: relative; transition: box-shadow .45s var(--ease); }
.case:nth-of-type(even) { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.case:nth-of-type(even) .project-identity { order: 2; }
.case:hover { box-shadow: 0 34px 60px -40px rgba(23, 28, 27, .55); }
.project-identity { background: var(--ink); color: var(--paper); padding: clamp(28px, 3.4vw, 52px); display: flex; flex-direction: column; justify-content: flex-end; min-height: 320px; position: relative; overflow: hidden; }
.project-identity::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--line-d) 1px, transparent 1px), linear-gradient(90deg, var(--line-d) 1px, transparent 1px); background-size: 40px 40px; opacity: .5; }
.project-identity > * { position: relative; }
.case__logo { position: absolute !important; top: clamp(20px, 3vw, 40px); left: clamp(20px, 3vw, 40px); width: 140px; height: 76px; object-fit: contain; object-position: left center; background: var(--paper); padding: 10px 14px; }
.project-identity h2 { font-size: clamp(1.9rem, 1.2rem + 2.2vw, 3.2rem); margin: .8rem 0 .5rem; }
.project-identity p { color: var(--stone); margin: 0 0 .3rem; }
.project-domain { font: 600 .82rem/1 var(--text); letter-spacing: .06em; color: var(--lime); }
.project-identity .eyebrow { color: var(--stone); margin: 0; }
.project-card-copy { padding: clamp(28px, 3.4vw, 52px); display: flex; flex-direction: column; justify-content: center; }
.project-card-copy h3 { font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem); }
.project-card-copy p:not(.eyebrow) { color: var(--slate); }
.project-card-copy .text-link { align-self: flex-start; margin-top: .6rem; }
.project-card-copy .text-link::after { content: ""; position: absolute; inset: 0; }

/* Service families (services hub) */
.service-directory { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.service-directory article { position: relative; padding: 28px 28px 30px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 4px 20px; align-content: start; transition: background-color .3s; }
.service-directory article:nth-child(odd) { border-right: 1px solid var(--line); }
.service-directory article:nth-child(even) { padding-left: 28px; }
.service-directory article > svg { width: 52px; height: 52px; grid-row: span 2; color: var(--ink); }
.service-directory h3 { margin: 0 0 .3rem; }
.service-directory h3 a { text-decoration: none; display: inline-flex; gap: .5em; align-items: center; }
.service-directory h3 a::after { content: ""; position: absolute; inset: 0; }
.service-directory h3 a > span { opacity: 0; transform: translate(-6px, 6px); transition: .35s var(--ease); color: var(--lime-deep); }
.service-directory article:hover h3 a > span { opacity: 1; transform: none; }
.service-directory article:hover { background: var(--paper-2); }
.service-directory p { color: var(--slate); margin: 0; font-size: .98rem; }
.service-directory:has(> article:only-child) { grid-template-columns: 1fr; }
.service-directory article:only-child { border-right: 0; }

/* Expertise (home services index) */
.section-heading h2 { font-size: clamp(2rem, 1.3rem + 2vw, 3.2rem); }
.section-heading > p { color: var(--slate); }
.svc-index { border-top: 2px solid var(--ink); counter-reset: svc; }
.svc { counter-increment: svc; position: relative; display: grid; grid-template-columns: 64px minmax(0, 1fr) 48px; gap: 0 24px; padding: 28px 0; border-bottom: 1px solid var(--line); align-items: start; transition: background-color .35s var(--ease), padding .35s var(--ease); }
.svc::before { content: counter(svc, decimal-leading-zero); position: absolute; right: 0; top: 30px; font: 650 .72rem/1 var(--text); letter-spacing: .14em; color: var(--slate); transition: opacity .3s; }
.svc__mark { width: 56px; height: 56px; display: grid; place-items: center; border: 1px solid var(--line); background: var(--paper); transition: background-color .35s, color .35s; }
.svc__mark svg { width: 40px; height: 40px; }
.svc h3 { font-size: clamp(1.35rem, 1.1rem + 1vw, 2.1rem); letter-spacing: -.035em; margin: 6px 0 .5rem; }
.svc p { color: var(--slate); max-width: 62ch; margin-bottom: .9rem; }
.tags { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { font: 600 .74rem/1 var(--text); letter-spacing: .04em; padding: 7px 10px; border: 1px solid var(--line); }
.svc__arrow { position: absolute; right: 0; bottom: 30px; width: 44px; height: 44px; display: grid; place-items: center; border: 1.5px solid var(--ink); font-size: 1.1rem; transition: background-color .3s, color .3s, transform .35s var(--ease); }
.svc .text-link::after { content: ""; position: absolute; inset: 0; }
.svc:hover { background: linear-gradient(90deg, var(--paper-2), transparent 85%); }
.svc:hover .svc__mark { background: var(--ink); color: var(--lime); border-color: var(--ink); }
.svc:hover .svc__arrow { background: var(--lime); border-color: var(--lime); transform: rotate(45deg); }
.bridge { margin-top: clamp(48px, 6vw, 88px); background: var(--ink); color: var(--paper); padding: clamp(28px, 4vw, 56px); display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 4vw, 56px); }
.bridge header .eyebrow { color: var(--stone); } .bridge .eyebrow::before { background: var(--lime); }
.bridge h3 { font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.8rem); letter-spacing: -.04em; line-height: 1.02; }
.bridge header p { color: #D7DAD3; }
.diagnostic-routes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line-d); border: 1px solid var(--line-d); }
.diagnostic-route { background: var(--ink-2); padding: 24px; display: flex; flex-direction: column; position: relative; transition: background-color .3s; }
.diagnostic-route:hover { background: var(--ink-3); }
.diagnostic-route .eyebrow { font-size: .64rem; margin-bottom: 1rem; }
.diagnostic-route h4 { font-size: 1.3rem; }
.diagnostic-route p:not(.eyebrow) { color: var(--stone); font-size: .94rem; }
.diagnostic-route .text-link { margin-top: auto; color: var(--lime); font-size: .92rem; align-self: flex-start; }
.diagnostic-route .text-link > span:first-child, .diagnostic-route .text-link svg:first-child { display: none; }
.diagnostic-route .text-link::after { content: ""; position: absolute; inset: 0; }

/* Approach timeline (home) */
.b-approach .wrap { position: relative; }
.approach-top { display: flex; justify-content: space-between; align-items: center; }
.approach-heading { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 5vw, 96px); align-items: end; margin-bottom: clamp(48px, 6vw, 96px); }
.approach-heading h2 { font-size: clamp(2.4rem, 1.4rem + 3.6vw, 5.4rem); line-height: .95; letter-spacing: -.055em; margin: 0; }
.approach-heading h2 span { color: var(--lime); }
.approach-heading p { color: #D7DAD3; font-size: 1.1rem; margin: 0; }
.timeline { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 1px; background: var(--line-d); }
.timeline > li { position: relative; padding: 44px 28px 0 0; }
.timeline > li::before { content: ""; position: absolute; top: 0; left: 0; width: 15px; height: 15px; background: var(--ink); border: 2px solid var(--lime); transform: rotate(45deg); }
.timeline > li::after { content: ""; position: absolute; left: 0; top: 7px; height: 1px; width: 100%; background: var(--lime); transform-origin: left; transform: scaleX(0); transition: transform 1.1s var(--ease) calc(var(--rv, 0ms) + 200ms); }
.timeline > li.in::after, .timeline > li:not([data-reveal])::after { transform: none; }
.timeline > li:last-child::after { display: none; }
.timeline > li > span { font: 650 .72rem/1 var(--text); letter-spacing: .16em; color: var(--lime); }
.timeline h3 { margin: 1rem 0 .7rem; font-size: clamp(1.25rem, 1.05rem + .7vw, 1.65rem); }
.timeline p { color: var(--stone); font-size: .98rem; }

/* Principles */
.principle-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: clamp(32px, 4vw, 56px); }
.principle-grid article { background: var(--paper); padding: clamp(24px, 3vw, 40px); }
.principle-grid article > span { display: grid; place-items: center; width: 56px; height: 56px; background: var(--ink); color: var(--lime); font: 700 1.5rem/1 var(--display); margin-bottom: 1.6rem; }
.principle-grid article > span svg { width: 28px; height: 28px; }
.principle-grid p { color: var(--slate); margin: 0; }
.b-principles .rail-main > div > h2 { font-size: clamp(2.2rem, 1.3rem + 3vw, 4.2rem); }

/* Client logos */
.client-logo-heading h2 { font-size: clamp(1.9rem, 1.3rem + 1.8vw, 2.9rem); }
.client-logo-heading p { color: var(--slate); }
.client-logo-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.client-logo-grid li { background: var(--paper); display: grid; place-items: center; aspect-ratio: 3 / 2; padding: 14% 12%; transition: background-color .35s; }
.client-logo-grid img { width: 100%; height: 100%; object-fit: contain; filter: grayscale(1) contrast(1.05); opacity: .78; transition: filter .45s var(--ease), opacity .45s, transform .45s var(--ease); }
.client-logo-grid li:hover { background: #fff; }
.client-logo-grid li:hover img { filter: none; opacity: 1; transform: scale(1.04); }
.client-logo-grid li:empty { display: none; }

/* Team profiles */
.b-profile .rail h2 { font-size: clamp(3rem, 2rem + 4vw, 6.2rem); letter-spacing: -.06em; margin: 1rem 0 .4rem; }
.artist-name { font: 650 .82rem/1.4 var(--text); letter-spacing: .08em; text-transform: uppercase; color: var(--lime-deep); }
.b-profile .rail-main h3 { font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.6rem); letter-spacing: -.04em; line-height: 1.05; margin-bottom: 1.4rem; }
.b-profile .rail-main p { color: var(--slate); }
.b-profile .rail-main h3 + p { color: var(--ink); font-size: 1.15rem; }

/* Audit chapters & choosing */
.b-chapters .audit-chapter { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 4vw, 72px); padding-block: clamp(32px, 4vw, 56px); border-top: 1px solid var(--line); }
.b-chapters .audit-chapter:first-of-type { border-top: 2px solid var(--ink); }
.audit-chapter > :first-child { grid-column: 1; }
.audit-chapter > :not(:first-child) { grid-column: 2; }
.audit-chapter h2 { font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.6rem); }
.audit-chapter ul { padding-left: 0; list-style: none; }
.audit-chapter li { padding: .55rem 0 .55rem 26px; position: relative; border-bottom: 1px solid var(--line); }
.audit-chapter li::before { content: ""; position: absolute; left: 0; top: 1.05rem; width: 10px; height: 10px; background: var(--lime-deep); }
.b-choosing .rail-main > div, .b-choosing .rail-main ul { display: grid; gap: 1px; }
.b-choosing article, .b-choosing .rail-main > div > div { background: var(--paper-2); padding: clamp(22px, 2.6vw, 36px); }

/* Generic chapter (comparison page & other sections) */
.b-chapter .rail-main > h2 { font-size: clamp(2rem, 1.3rem + 2.4vw, 3.6rem); }
.b-chapter .rail-main > p { color: var(--slate); font-size: 1.08rem; }
.b-chapter .rail-main ul:not(.review-process) li, .b-directory ul li { margin-bottom: .5rem; }
.review-process { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); counter-reset: rp; }
.review-process li { background: var(--paper); padding: clamp(22px, 2.6vw, 36px); counter-increment: rp; }
.review-process li::before { content: counter(rp, decimal-leading-zero); display: inline-block; font: 800 .8rem/1 var(--text); letter-spacing: .14em; padding: 6px 9px; background: var(--ink); color: var(--lime); margin-bottom: 16px; }
.review-process p { color: var(--slate); margin: 0; }
.review-table { overflow-x: auto; margin-top: 24px; border: 1px solid var(--ink); background: var(--paper); }
.review-table table { width: 100%; border-collapse: collapse; min-width: 620px; font-size: .98rem; }
.review-table caption { text-align: left; padding: 20px 22px; font: 700 1.05rem/1.3 var(--display); background: var(--ink); color: var(--paper); }
.review-table :is(th, td) { text-align: left; vertical-align: top; padding: 18px 22px; border-bottom: 1px solid var(--line); line-height: 1.6; }
.review-table thead { background: var(--ink-3); color: var(--lime); }
.review-table thead th { font: 650 .74rem/1.3 var(--text); letter-spacing: .14em; text-transform: uppercase; }
.review-table tbody th { width: 22%; font-family: var(--display); color: var(--ink); }
.review-table td { width: 39%; color: var(--slate); }
.review-table tbody tr:hover { background: var(--paper-2); }
.review-comparison-toggle { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.review-comparison-toggle button { min-height: 44px; font-size: .9rem; padding: .5em 1em; color: var(--ink); border-color: var(--ink); }
.review-comparison-toggle button[aria-pressed="true"] { background: var(--ink); color: var(--lime); }

/* HTML sitemap */
.b-directory .rail-main ul { columns: 2 260px; column-gap: 40px; padding-left: 0; list-style: none; }
.b-directory .rail-main li { break-inside: avoid; padding: .5rem 0; border-bottom: 1px solid var(--line); }
.b-directory .rail-main li a { text-decoration: none; font-weight: 600; }
.b-directory .rail-main li a:hover { color: var(--lime-deep); text-decoration: underline; }

/* Policy documents */
.doc-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 8fr); gap: clamp(24px, 5vw, 96px); }
.doc-toc { position: sticky; top: calc(var(--hdr) + 32px); align-self: start; }
.doc-toc__h { color: var(--slate); margin: 0 0 14px; }
.doc-toc ol { list-style: none; padding: 0; margin: 0; border-left: 1px solid var(--line); }
.doc-toc a { display: block; padding: 7px 0 7px 16px; margin-left: -1px; border-left: 2px solid transparent; text-decoration: none; font-size: .9rem; color: var(--slate); line-height: 1.35; }
.doc-toc a:hover, .doc-toc a[aria-current] { color: var(--ink); border-left-color: var(--lime-deep); }
.doc-body, .b-doc .wrap { max-width: 100%; }
.doc-body section, .b-doc .wrap > section { padding-block: 0 1.6rem; margin-bottom: 1.6rem; border-bottom: 1px solid var(--line); }
.doc-body h2, .b-doc h2 { font-size: clamp(1.4rem, 1.2rem + .8vw, 2rem); letter-spacing: -.03em; }
.doc-body p, .doc-body li, .b-doc p, .b-doc li { color: #2F3634; max-width: 70ch; }
.policy-updated { font-weight: 650; }
.doc-body a, .b-doc .wrap a { font-weight: 600; }

/* About collaboration etc. reuse spec */
.about-intro .rail-main h2 { max-width: 16ch; }

/* ---------- 6. Contact & enquiry forms ---------- */
.b-contact .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 96px); align-items: start; }
.b-contact .contact-copy { position: sticky; top: calc(var(--hdr) + 40px); }
.b-contact h2 { font-size: clamp(2.6rem, 1.4rem + 4vw, 5.6rem); line-height: .94; letter-spacing: -.055em; }
.b-contact h2 .accent { color: var(--lime); }
.b-contact .contact-copy p:not(.eyebrow) { color: #D7DAD3; font-size: 1.1rem; max-width: 44ch; }
#enquiry-form, .enquiry-success { background: var(--paper); color: var(--ink); padding: clamp(22px, 3.4vw, 52px); position: relative; }
.b-review-form #enquiry-form { margin-top: 2rem; max-width: 920px; }
.b-review-form .wrap > p { color: #D7DAD3; max-width: 64ch; }
#enquiry-form::before, .enquiry-success::before { content: ""; position: absolute; left: 0; top: 0; width: 64px; height: 4px; background: var(--lime); }
fieldset { border: 0; padding: 0; margin: 0 0 8px; min-width: 0; }
legend { font: 800 clamp(1.5rem, 1.2rem + 1vw, 2.1rem)/1.1 var(--display); letter-spacing: -.035em; margin-bottom: .6rem; padding: 0; }
.wizard-hint, .field-hint { color: var(--slate); font-size: .94rem; }
.field-hint { margin: .5rem 0 0; font-size: .85rem; }
.field { margin-bottom: 20px; }
.field label, .review-section .field label { display: block; font: 650 .9rem/1.3 var(--text); margin-bottom: 8px; }
.field label span { color: var(--slate); font-weight: 500; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
#enquiry-form :is(input:not([type=checkbox]), select, textarea) {
  width: 100%; font: 500 1rem/1.4 var(--text); color: var(--ink); background: #FBFBF8; border: 1.5px solid #8D958F; border-radius: 0;
  padding: 14px 15px; min-height: 52px; transition: border-color .2s, box-shadow .2s; scroll-margin-top: 120px;
}
#enquiry-form select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 22px) 52%, calc(100% - 16px) 52%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 44px; }
#enquiry-form textarea { min-height: 150px; resize: vertical; }
#enquiry-form :is(input, select, textarea):focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px var(--lime); }
#enquiry-form [aria-invalid="true"] { border-color: var(--danger) !important; }
.wizard-error, .review-inline-error { color: var(--danger); font-weight: 650; font-size: .9rem; margin: 8px 0 0; }
.honey { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.callback-request { border: 1px solid var(--line); padding: 18px; margin-bottom: 20px; background: #FBFBF8; }
.callback-request > p { font-size: .88rem; color: var(--slate); margin: .6rem 0 0; }
.callback-toggle { display: inline-flex !important; align-items: center; gap: 12px; font-weight: 650; cursor: pointer; }
input[type=checkbox] { width: 22px; height: 22px; accent-color: var(--ink); margin: 0; flex: none; }
#callback-fields { margin-top: 16px; }
.wizard-progress { margin-bottom: 28px; }
.wizard-progress > p { font: 650 .74rem/1.4 var(--text); letter-spacing: .14em; text-transform: uppercase; color: var(--slate); margin-bottom: 14px; }
.wizard-progress ol { list-style: none; padding: 0; margin: 0 0 12px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.wizard-progress li { font: 800 .82rem/1.2 var(--display); color: var(--slate); padding-top: 10px; border-top: 3px solid var(--paper-3); transition: border-color .3s, color .3s; }
.wizard-progress li span { display: block; font: 500 .78rem/1.3 var(--text); }
.wizard-progress li[aria-current], .wizard-progress li.done, .wizard-progress li[data-complete] { border-top-color: var(--ink); color: var(--ink); }
.wizard-progress li[aria-current] { border-top-color: var(--lime-deep); }
.wizard-track { display: none; }
.service-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 18px 0; }
.service-choice { display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 12px; padding: 12px 14px; border: 1.5px solid var(--paper-3); background: #FBFBF8; cursor: pointer; font: 650 .92rem/1.25 var(--display); transition: border-color .2s, background-color .2s; }
.service-choice:hover { border-color: var(--ink); }
.service-choice:has(input:checked) { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.service-choice:has(input:checked) input { accent-color: var(--lime); }
.service-choice-icon { display: grid; place-items: center; width: 34px; height: 34px; }
.service-choice-icon svg { width: 30px; height: 30px; }
.service-choice:has(input:focus-visible) { box-shadow: 0 0 0 4px var(--lime); }
.wizard-enhanced .service-choices + .service-selection-count + .field, .wizard-enhanced .service-choices ~ .field:has(#service) { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.service-selection-count, .message-counter { font-size: .85rem; color: var(--slate); }
.wizard-navigation { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 24px; }
.wizard-navigation .wizard-next, .wizard-navigation [type=submit] { margin-left: auto; }
#form-status { min-height: 1.6em; font-weight: 600; margin: 16px 0 0; }
.form-disclaimer { font-size: .82rem; color: var(--slate); margin: 16px 0 0; }
#wizard-review { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); margin: 1rem 0; border-top: 1px solid var(--line); }
#wizard-review dt, #wizard-review dd { padding: 12px 0; border-bottom: 1px solid var(--line); margin: 0; }
#wizard-review dt { font-weight: 650; color: var(--slate); padding-right: 16px; }
#wizard-review dd { white-space: pre-wrap; }
.enquiry-success { text-align: left; }
.enquiry-success > span { display: grid; place-items: center; width: 56px; height: 56px; background: var(--lime); margin-bottom: 1.4rem; }
.enquiry-success h3 { font-size: 2rem; }
@media (prefers-reduced-motion: no-preference) { .wizard-arrive { animation: rise .45s var(--ease); } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }

/* Cookie consent (created by core.js) */
.cookie-panel { position: fixed; z-index: 80; left: 16px; bottom: 16px; width: min(440px, calc(100% - 32px)); background: var(--ink); color: var(--paper); padding: 24px; border: 1px solid var(--line-d); box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .6); }
.cookie-panel::before { content: ""; position: absolute; left: 0; top: 0; width: 48px; height: 3px; background: var(--lime); }
.cookie-panel h2, .cookie-dialog h2 { font-size: 1.3rem; margin-bottom: .5rem; }
.cookie-panel p { font-size: .9rem; color: #D7DAD3; }
.cookie-panel a { color: var(--lime); }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.cookie-actions button { min-height: 44px; padding: .5em .9em; font-size: .88rem; }
.cookie-dialog { border: 0; padding: 28px; max-width: 520px; width: calc(100% - 32px); background: var(--paper); color: var(--ink); }
.cookie-dialog::backdrop { background: rgba(23, 28, 27, .7); }
.cookie-dialog .cookie-actions button { --b: var(--ink); --f: var(--lime); }
.cookie-dialog .cookie-actions button + button { color: var(--ink); }
.cookie-dialog label { display: flex; gap: 12px; align-items: flex-start; margin: 14px 0; }

/* ---------- 7. Long-form articles ---------- */
.b-article { padding-top: clamp(48px, 6vw, 88px); }
.article-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 5vw, 96px); }
.article-side { position: sticky; top: calc(var(--hdr) + 28px); align-self: start; display: grid; gap: 20px; max-height: calc(100vh - var(--hdr) - 56px); overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.insight-takeaways { background: var(--ink); color: var(--paper); padding: 24px; }
.insight-takeaways h2 { font: 650 .75rem/1.4 var(--text); letter-spacing: .16em; text-transform: uppercase; color: var(--lime); margin-bottom: 1rem; }
.insight-takeaways ul { padding: 0; margin: 0; list-style: none; }
.insight-takeaways li { padding: .7rem 0 .7rem 22px; border-top: 1px solid var(--line-d); position: relative; font-size: .94rem; line-height: 1.5; }
.insight-takeaways li::before { content: ""; position: absolute; left: 0; top: 1.15rem; width: 8px; height: 8px; background: var(--lime); }
.insight-contents { border: 1px solid var(--line); background: var(--paper); }
.insight-contents summary { padding: 16px 18px; font: 650 .75rem/1.4 var(--text); letter-spacing: .16em; text-transform: uppercase; display: flex; justify-content: space-between; }
.insight-contents summary::after { content: "+"; font-size: 1.1rem; line-height: 1; }
.insight-contents[open] summary::after { content: "–"; }
.insight-contents ol { margin: 0; padding: 0 18px 16px; list-style: none; counter-reset: c; }
.insight-contents li { counter-increment: c; }
.insight-contents a { display: grid; grid-template-columns: 26px 1fr; padding: 7px 0; font-size: .88rem; line-height: 1.35; text-decoration: none; color: var(--slate); border-top: 1px solid var(--line); }
.insight-contents a::before { content: counter(c, decimal-leading-zero); font: 650 .7rem/1.9 var(--text); color: var(--slate); }
.insight-contents a:hover, .insight-contents a[aria-current] { color: var(--ink); }
.insight-contents a[aria-current]::before { color: var(--lime-deep); }
.insight-article-art { margin: 0 0 clamp(28px, 4vw, 48px); background: var(--ink); padding: 4%; }
.insight-article-art img { width: 100%; }
.insight-prose { max-width: 70ch; font-size: 1.1rem; line-height: 1.75; }
.insight-prose h2 { font-size: clamp(1.55rem, 1.25rem + 1.1vw, 2.3rem); margin: 2.4em 0 .7em; letter-spacing: -.035em; scroll-margin-top: calc(var(--hdr) + 24px); }
.insight-prose h2:first-child { margin-top: 0; }
.insight-prose h3 { margin: 1.8em 0 .6em; }
.insight-prose p, .insight-prose li { color: #2B3230; }
.insight-prose a { text-decoration-color: var(--lime-deep); text-decoration-thickness: 2px; font-weight: 550; }
.insight-prose a:hover { background: var(--lime); text-decoration: none; }
.insight-prose ul, .insight-prose ol { padding-left: 1.3em; }
.insight-prose li { margin-bottom: .5em; }
.insight-prose li::marker { color: var(--lime-deep); }
.insight-prose table { width: 100%; border-collapse: collapse; margin: 1.6em 0; font-size: .95rem; }
.insight-prose :is(th, td) { text-align: left; padding: 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.insight-prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 24px; border-left: 4px solid var(--lime-deep); font: 600 1.25rem/1.45 var(--display); }

/* ---------- 8. Footer ---------- */
.site-footer { background: var(--ink); color: var(--paper); padding-top: clamp(56px, 7vw, 104px); border-top: 1px solid var(--line-d); }
.ft-top { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 32px; padding-bottom: 40px; border-bottom: 1px solid var(--line-d); }
.ft-tag { margin: 0; font: 700 clamp(1.1rem, .9rem + .6vw, 1.5rem)/1.2 var(--display); letter-spacing: -.02em; color: var(--stone); }
.ft-up { color: var(--lime); text-decoration: none; font-weight: 650; }
.ft-up:hover { text-decoration: underline; }
.ft-dir { display: grid; grid-template-columns: 2fr 1fr 1.4fr; gap: 40px; padding-block: 48px; }
.ft-dir > div:first-child ul { columns: 2 200px; column-gap: 32px; }
.ft-h { margin: 0 0 16px; color: var(--stone); }
.ft-h a { text-decoration: none; }
.ft-h a:hover { color: var(--lime); }
.ft-h--spaced { margin-top: 32px; }
.ft-dir ul { list-style: none; padding: 0; margin: 0; }
.ft-dir li { break-inside: avoid; }
.ft-dir li a { display: inline-block; padding: 6px 0; text-decoration: none; font-size: .94rem; color: #D7DAD3; }
.ft-dir li a:hover { color: var(--lime); }
.ft-bottom { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; padding-block: 24px 32px; border-top: 1px solid var(--line-d); font-size: .85rem; color: var(--stone); }
.footer-legal { margin-left: auto; display: flex; flex-wrap: wrap; gap: 4px 20px; }
.footer-legal a, .footer-legal button { color: var(--stone); text-decoration: none; font: inherit; background: none; border: 0; padding: 6px 0; cursor: pointer; }
.footer-legal a:hover, .footer-legal button:hover { color: var(--lime); }

/* Footer directory accordions. Tablet and mobile only (<=1080px, the site's menu breakpoint), and only once site.js has added
   .js-ft-acc to the footer; without JavaScript the full directory simply stays open. Desktop is unchanged. */
.ft-toggle, .ft-all { display: none; }
@media (max-width: 1080px) {
  .js-ft-acc .ft-dir { display: block; padding-block: 8px 0; }
  .js-ft-acc .ft-col { border-bottom: 1px solid var(--line-d); }
  .js-ft-acc .ft-col:last-child { border-bottom: 0; }  /* .ft-bottom draws the closing rule */
  .js-ft-acc .ft-h--acc { display: none; }
  .js-ft-acc .ft-toggle { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; min-height: 56px; margin: 0; padding: 0; background: none; border: 0; border-radius: 0; color: var(--paper); text-align: left; cursor: pointer; }
  .js-ft-acc .ft-toggle svg { flex: none; }
  .js-ft-acc .ft-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
  .js-ft-acc .ft-col ul { display: none; padding: 0 0 16px; }
  .js-ft-acc .ft-col.is-open ul { display: block; }
  .js-ft-acc .ft-all { display: block; }
  .js-ft-acc .ft-dir li a { padding-block: 10px; }
  .js-ft-acc .ft-h--spaced, .js-ft-acc .ft-h--tight { margin: 0; border-top: 1px solid var(--line-d); }
  .js-ft-acc .ft-h--spaced a, .js-ft-acc .ft-h--tight a { display: flex; align-items: center; justify-content: space-between; min-height: 56px; color: var(--paper); }
  .js-ft-acc .ft-h--spaced a::after, .js-ft-acc .ft-h--tight a::after { content: "\2192"; content: "\2192" / ""; color: var(--stone); }
}
@media (max-width: 1080px) and (hover: hover) {
  .js-ft-acc .ft-toggle:hover { color: var(--lime); }
}
@media (max-width: 1080px) and (prefers-reduced-motion: no-preference) {
  .js-ft-acc .ft-toggle svg { transition: transform .25s var(--ease); }
}

/* ---------- 9. Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease) var(--rv, 0ms), transform .9s var(--ease) var(--rv, 0ms); }
  [data-reveal].in { opacity: 1; transform: none; }
  .hero .ln, .phero .display .ln { animation: lineup .9s var(--ease) both; }
  .hero .ln:nth-child(2), .phero .display .ln:nth-child(2) { animation-delay: .08s; }
  .hero .ln:nth-child(3), .phero .display .ln:nth-child(3) { animation-delay: .16s; }
  .hero-intro, .hero__actions, .phero .page-intro, .phero .button { animation: lineup .9s var(--ease) .24s both; }
}
@keyframes lineup { from { opacity: 0; transform: translateY(.45em); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------- 10. Responsive ---------- */
@media (max-width: 1280px) {
  .mega__inner { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1080px) {
  :root { --hdr: 64px; }
  .menu-toggle { display: inline-flex; align-items: center; gap: 12px; margin-left: auto; min-height: 44px; padding: 0 2px 0 12px; background: none; border: 0; color: var(--paper); font: 650 .9rem/1 var(--display); cursor: pointer; }
  .burger { position: relative; width: 26px; height: 12px; }
  .burger i { position: absolute; left: 0; right: 0; height: 2px; background: currentColor; transition: transform .35s var(--ease), top .35s var(--ease); }
  .burger i:first-child { top: 0; } .burger i:last-child { top: 10px; }
  .menu-toggle[aria-expanded="true"] .burger i:first-child { top: 5px; transform: rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .burger i:last-child { top: 5px; transform: rotate(-45deg); }
  /* backdrop-filter makes the header the containing block for the fixed menu panel,
     collapsing it to ~45px once the page is scrolled. Drop it where the panel exists
     and use a near-solid ink instead. */
  [data-scrolled] .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(23, 28, 27, .98); }
  [data-menu-open] .site-header { background: var(--ink); }
  #navigation { display: none; position: fixed; inset: var(--hdr) 0 0 0; background: var(--ink); flex-direction: column; align-items: stretch; gap: 0; padding: 12px var(--gutter) 32px; overflow-y: auto; overscroll-behavior: contain; border-top: 1px solid var(--line-d); }
  #navigation[data-open] { display: flex; }
  [data-menu-open] body { overflow: hidden; }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__item { flex-wrap: wrap; border-bottom: 1px solid var(--line-d); }
  .nav__item > a { flex: 1; font-size: clamp(1.6rem, 1.2rem + 2vw, 2.2rem); letter-spacing: -.035em; padding: 18px 0; font-weight: 800; }
  .nav__item > a::after { display: none; }
  .nav__more { width: 48px; height: 48px; margin: 0; border: 1px solid var(--line-d); }
  .mega { position: static; flex-basis: 100%; background: none; border: 0; box-shadow: none; animation: none !important; }
  .mega__inner { grid-template-columns: 1fr; gap: 20px; padding: 4px 0 24px; }
  .mega a { font-size: 1rem; }
  .nav-cta { margin-top: 24px; min-height: 56px; font-size: 1.05rem; }
  .hero__grid, .phero__grid { grid-template-columns: 1fr; min-height: 0; }
  .hero__art { max-width: 560px; }
  .phero__visual { max-width: 380px; }
  .plate--matrix { max-width: 320px; }
  .rail-grid { grid-template-columns: 1fr; gap: 28px; }
  .rail { position: static; }
  .rail__no { font-size: 2rem; margin-bottom: 10px; }
  .b-spec .wrap, .b-contact .wrap, .approach-heading, .bridge, .article-grid, .doc-grid, .b-note .wrap { grid-template-columns: 1fr; }
  .b-note .wrap > .text-link + .text-link { grid-column: auto; }
  .b-note .eyebrow { grid-row: auto; }
  .b-contact .contact-copy, .doc-toc { position: static; }
  .article-side { position: static; max-height: none; }
  .timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 48px; }
  .timeline > li:nth-child(2)::after { display: none; }
  .insight-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .linkgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .diagnostic-routes { grid-template-columns: 1fr; }
  .case, .case:nth-of-type(even) { grid-template-columns: 1fr; }
  .case:nth-of-type(even) .project-identity { order: 0; }
  .ft-dir { grid-template-columns: 1fr 1fr; }
  .ft-dir > div:first-child { grid-column: 1 / -1; }
  .b-facts .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .b-facts .wrap > div:nth-child(2) { border-right: 0; }
  .b-facts .wrap > div:nth-child(3) { padding-left: 0; }
  .b-facts .wrap > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .cta__matrix { width: 60%; opacity: .35; }
  .doc-toc { border: 1px solid var(--line); padding: 18px; }
}
@media (max-width: 760px) {
  body { font-size: 1rem; }
  .brand img { width: 140px; }
  .brand-descriptor { display: none; }
  .hero__grid { padding-top: 40px; }
  .hero__bottom { flex-direction: column; align-items: flex-start; gap: 10px; font-size: .7rem; }
  .breadcrumb { margin-bottom: 36px; }
  .process, .service-directory, .linkgrid, .insight-grid, .principle-grid, .review-process, .form-row, .service-choices { grid-template-columns: 1fr; }
  .process > article, .process > article:nth-child(odd), .process > article:nth-child(even) { padding: 24px 0 26px; border-right: 0; }
  .service-directory article, .service-directory article:nth-child(even) { padding: 22px 0; border-right: 0; grid-template-columns: 44px minmax(0, 1fr); }
  .service-directory article > svg { width: 40px; height: 40px; }
  .svc { grid-template-columns: 48px minmax(0, 1fr); gap: 0 16px; padding: 24px 0 72px; }
  .svc__mark { width: 48px; height: 48px; } .svc__mark svg { width: 32px; height: 32px; }
  .svc__arrow { left: 64px; right: auto; bottom: 22px; width: 38px; height: 38px; }
  .svc::before { top: 26px; }
  .svc h3 { padding-right: 36px; }
  .timeline { grid-template-columns: 1fr; }
  .timeline::before { top: 0; bottom: 0; left: 7px; right: auto; width: 1px; height: auto; }
  .timeline > li { padding: 0 0 0 44px; }
  .timeline > li::after { display: none; }
  .insight-featured { grid-template-columns: 1fr; }
  .insight-featured .cover { min-height: 0; aspect-ratio: 16 / 10; }
  .client-logo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .structure-homes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .structure-homes::after { right: calc(50% - 6px); }
  .b-credits dl > div { grid-template-columns: 1fr; gap: 4px; }
  .pager .wrap { grid-template-columns: 1fr 1fr; }
  .pager a:nth-child(2) { grid-column: 1 / -1; grid-row: 2; justify-self: center; margin-bottom: 20px; }
  .ft-top { grid-template-columns: 1fr; gap: 16px; }
  .ft-dir { grid-template-columns: 1fr; gap: 32px; }
  .ft-dir > div:first-child ul { columns: 1; }
  .footer-legal { margin-left: 0; }
  .b-chapters .audit-chapter { grid-template-columns: 1fr; }
  .audit-chapter > :not(:first-child) { grid-column: 1; }
  .wizard-progress li { font-size: .74rem; }
  .wizard-progress li span { display: none; }
  #wizard-review { grid-template-columns: 1fr; }
  #wizard-review dt { border-bottom: 0; padding-bottom: 0; }
  .wizard-navigation > * { flex: 1 1 100%; margin-left: 0 !important; }
  .b-facts .wrap { grid-template-columns: 1fr; }
  .b-facts .wrap > div, .b-facts .wrap > div + div { padding: 20px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .project-identity { min-height: 280px; }
  .case__logo { width: 116px; height: 64px; }
  .plate__cap { display: none; }
}
@media (max-width: 400px) {
  :root { --gutter: 18px; }
  .brand img { width: 124px; }
  .menu-toggle__label { display: none; }
  .display--xl { font-size: clamp(2.6rem, 13vw, 3.4rem); }
  #enquiry-form, .enquiry-success { padding: 20px 16px; }
  .b-contact .wrap { padding-inline: 12px; }
  .b-contact .contact-copy { padding-inline: 6px; }
}
@media (min-width: 1700px) {
  :root { --wrap: 1480px; }
  body { font-size: 1.125rem; }
}
@media print {
  .site-header, .site-footer, .cookie-panel, .cta__matrix, .hero__art, .phero__visual { display: none !important; }
  .blk--dark, .hero, .phero { background: #fff !important; color: #000 !important; }
}

/* ---------- 11. Refinements after first visual pass ---------- */
.rail__no { opacity: .6; -webkit-text-stroke-width: 1.4px; }
.bridge { grid-template-columns: 1fr; }
.bridge header { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 0 clamp(24px, 4vw, 64px); align-items: end; }
.bridge header .eyebrow { grid-column: 1 / -1; }
.bridge header h3 { margin: 0; }
.bridge header p:not(.eyebrow) { margin: 0; max-width: 52ch; }
.bridge .accent { color: var(--lime); }
.bridge .eyebrow, .diagnostic-route .eyebrow { color: var(--stone); }
.bridge .eyebrow::before, .diagnostic-route .eyebrow::before { background: var(--lime); }
.svc:has(.text-link + .text-link) .text-link::after { display: none; }
.svc .text-link + .text-link { margin-left: 1.2rem; }
.svc { padding-block: 24px; }
.b-journal .wrap > .text-link, .b-journal .wrap > p:last-child { margin-top: 2rem; }
@media (max-width: 1080px) { .bridge header { grid-template-columns: 1fr; gap: 12px; } }
.legacy-anchor { position: absolute; }
.b-contact .contact-copy { grid-column: 1; grid-row: 1 / span 2; }
.b-contact #enquiry-form, .b-contact .enquiry-success { grid-column: 2; }
.client-logo-grid li { aspect-ratio: auto; height: clamp(108px, 9.5vw, 148px); padding: 18px 13%; }
.client-logo-grid img { max-height: 100%; }
@media (max-width: 1080px) {
  .b-contact .contact-copy, .b-contact #enquiry-form, .b-contact .enquiry-success { grid-column: 1; grid-row: auto; }
}
.linkgrid { column-gap: clamp(20px, 2.4vw, 40px); }
.rail__no { -webkit-text-stroke: 1.4px var(--ink); opacity: .4; }
.blk--dark .rail__no { -webkit-text-stroke-color: var(--paper); }
.case__logo { position: static !important; margin-bottom: auto; }
.project-identity { gap: 0; }
.project-identity .case__logo + .eyebrow { margin-top: 28px; }
.pt-article .phero__grid { grid-template-columns: minmax(0, 1fr); }
.pt-article .phero .display { font-size: clamp(2.3rem, 1.3rem + 3.6vw, 5rem); max-width: 18ch; }
.pt-article .phero .page-intro, .pt-article .phero__copy > p:not(.eyebrow):not(.insight-date):not(.insight-byline) { max-width: 62ch; font-size: clamp(1.05rem, .98rem + .35vw, 1.3rem); color: #D7DAD3; }
.b-profile .rail h2 { font-size: clamp(2.6rem, 1.4rem + 2.6vw, 4.6rem); overflow-wrap: anywhere; }
.matrix--cta .m--t { fill: none; stroke: rgba(243, 242, 236, .22); stroke-width: 1.2; }
.matrix--cta .m--w { fill: none; stroke: var(--lime); stroke-width: 1.6; opacity: 1; }
.matrix--cta .m--g { stroke: rgba(243, 242, 236, .05); }
@media (max-width: 760px) {
  .svc__arrow { display: none; }
  .svc { padding-bottom: 24px; }
  .phero__visual { max-width: 220px; }
  .plate--project { max-width: 300px; }
}
/* Decorative labels are drawn by CSS so they never become indexable page copy */
.rail__no::before { content: attr(data-no); }
.plate__cap::before { content: attr(data-a); }
.plate__cap::after { content: attr(data-b); }
.plate__project-name::before { content: attr(data-name); }
.plate__project-name[data-name=""] { display: none; }
.honey { left: auto; clip: rect(0 0 0 0); clip-path: inset(50%); }
.nav__more { width: 32px; height: 40px; margin-left: -6px; }
@media (max-width: 400px) { .menu-toggle__label { display: inline; position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } }
@media (min-width: 761px) and (max-width: 1080px) { .hero__art { width: min(100%, 460px); margin-left: auto; } .hero__grid { gap: 8px; } }
.pt-legal .phero__grid, .pt-sitemap .phero__grid { grid-template-columns: minmax(0, 1fr); }
.b-directory { padding-block: clamp(40px, 5vw, 72px); }
.b-directory h2 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem); }
.b-directory ul { columns: 3 220px; column-gap: 40px; padding-left: 0; list-style: none; border-top: 1px solid var(--line); }
.b-directory li { break-inside: avoid; padding: .6rem 0; border-bottom: 1px solid var(--line); margin: 0 !important; }
.b-directory li a { text-decoration: none; font-weight: 600; }
.b-directory li a:hover { color: var(--lime-deep); text-decoration: underline; }
.b-directory .wrap > section { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 16px clamp(24px, 4vw, 72px); padding-block: 32px; border-top: 1px solid var(--line); }
.b-directory .wrap > section:first-child { border-top: 2px solid var(--ink); }
.b-directory .wrap > section ul { margin: 0; border-top: 0; }
@media (max-width: 760px) { .b-directory .wrap > section { grid-template-columns: 1fr; } }
.b-directory .wrap:has(> h2 + ul) { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 16px clamp(24px, 4vw, 72px); }
.b-directory .wrap:has(> h2 + ul) > h2 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem); }
.b-directory .wrap > ul { margin: 0; border-top: 0; }
.blk.b-directory + .blk.b-directory { border-top: 0; padding-top: 0; }
.blk.b-directory + .blk.b-directory .wrap { border-top: 1px solid var(--line); padding-top: 32px; }
@media (max-width: 760px) { .b-directory .wrap:has(> h2 + ul) { grid-template-columns: 1fr; } }
.display--xl { font-size: clamp(2.9rem, 1.1rem + 6.4vw, 6.2rem); }
.hero__grid { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); }
@media (min-width: 1700px) { .display--xl { font-size: 7rem; } }

/* ---------- 11. Service hero below desktop: artwork composed with the H1 (correction 2026-11-21) ----------
   Order on single-column widths: breadcrumb, label, H1, artwork, intro, CTA (+ any following note/link).
   The copy wrapper is flattened with display: contents so the shared markup and the desktop
   two-column composition (> 1080px) stay exactly as they were. The visual is aria-hidden, so the
   visual reorder does not change what assistive technology reads.
   The plate is sized from the artwork's own measured bounds (--fit-*, written by build.py), so the
   visible illustration fills the width rather than a mostly-empty box. 84cqw = artwork, 8cqw margins. */
@media (max-width: 1080px) {
  .phero--service .phero__grid { grid-template-columns: minmax(0, 1fr); row-gap: 0; }
  .phero--service .phero__copy { display: contents; }
  .phero--service .phero__copy > h1 ~ * { order: 2; }
  .phero--service .phero__copy > a { justify-self: start; }
  .phero--service .phero__visual { order: 1; width: 100%; max-width: 440px; margin: .2rem 0 clamp(28px, 7vw, 44px); }
  .phero--service .plate { container-type: inline-size; }
  .phero--service .plate__frame { display: block; aspect-ratio: auto; height: calc(var(--fit-h, 1) * 84cqw + 16cqw); }
  .phero--service .plate__frame::before { inset: 4cqw; }
  .phero--service .plate__icon {
    position: absolute; max-width: none; max-height: none;
    width: calc(var(--fit-size, 1) * 84cqw); height: calc(var(--fit-size, 1) * 84cqw);
    left: calc(8cqw + (1 - var(--fit-w, 1)) * 42cqw - var(--fit-x, 0) * 84cqw);
    top: calc(8cqw - var(--fit-y, 0) * 84cqw);
  }
  .phero--service .plate__mk { width: 16px; height: 16px; }
  .phero--service .plate__mk::before { left: 7px; height: 16px; }
  .phero--service .plate__mk::after { top: 7px; width: 16px; }
  .phero--service .plate__mk--tl { left: 7px; top: 7px; }
  .phero--service .plate__mk--br { right: 7px; bottom: 7px; }
  .phero--service .plate__dim--x { bottom: 3.5cqw; }
  .phero--service .plate__dim--y { right: 3.5cqw; }
  /* Same scan sweep, driven by transform instead of top so the larger plate adds no layout shift (CLS).
     Start and end positions match the desktop keyframes: from just above the frame to just below it. */
  .phero--service .plate__scan { top: 0; transform: translateY(-100%); }
}
@media (max-width: 1080px) and (prefers-reduced-motion: no-preference) {
  .phero--service .plate__scan { animation-name: scan-y; }
}
@keyframes scan-y { to { transform: translateY(333.333%); } }
@media (max-width: 760px) {
  .phero--service .phero__visual { max-width: none; }
}

/* ---------- 12. TW matrix heroes below desktop: artwork composed with the H1 (correction 2026-11-21) ----------
   Inner pages carrying the TW matrix plate (About, Services hub, Projects hub, Insights hub; marked .phero--tw by
   build.py) follow the approved service-page pattern below 1081px: breadcrumb, label, H1, TW artwork, intro.
   The homepage keeps its desktop and tablet composition; only phones (<= 760px) are stacked, because there a
   late .hero__grid two-column rule squeezed the H1 and clipped the matrix caption.
   The matrix SVG is drawn with a one-module drafting margin, so at 100% width the visible TW modules span
   about 90% of the content width. Animation, pointer response and reduced-motion behaviour are unchanged. */
@media (max-width: 1080px) {
  .phero--tw .phero__grid { grid-template-columns: minmax(0, 1fr); row-gap: 0; }
  .phero--tw .phero__copy { display: contents; }
  .phero--tw .phero__copy > h1 ~ * { order: 2; }
  .phero--tw .phero__copy > a { justify-self: start; }
  .phero--tw .phero__visual { order: 1; width: 100%; max-width: 440px; margin: .2rem 0 clamp(28px, 7vw, 44px); }
  .phero--tw .plate--matrix { max-width: none; }
}
@media (max-width: 760px) {
  .phero--tw .phero__visual { max-width: none; }
  .hero__grid { grid-template-columns: minmax(0, 1fr); row-gap: 0; }
  .hero__copy { display: contents; }
  .hero__copy > h1 ~ * { order: 2; }
  .hero__art { order: 1; width: 100%; max-width: none; margin: .2rem 0 clamp(28px, 7vw, 44px); }
}

/* ---------- 13. Insights 05 / 06: editorial artwork + article components ---------- */
/* Inline editorial SVG (640 × 360). Intrinsic ratio is fixed, so nothing shifts while it loads or animates. */
.insight-article-art svg { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; overflow: hidden; }
.ip-editorial .ip-shape { transform-box: fill-box; transform-origin: center; }
@media (prefers-reduced-motion: reduce) {
  .ip-editorial .ip-draw, .ip-editorial .ip-shape { animation: none; stroke-dasharray: none; }
}
/* Components that the new articles introduce (no styles existed for them in the approved templates). */
.insight-prose > section > h2:first-child { margin-top: 2.4em; }
.insight-prose .insight-section-divider { padding-top: 1.1em; border-top: 1px solid var(--line); }
.insight-prose .insight-checklist { margin: 1.6em 0; padding: clamp(18px, 3vw, 28px); background: var(--paper-2); border-left: 4px solid var(--lime-deep); }
.insight-prose .insight-checklist ol { margin: 0; padding-left: 1.4em; }
.insight-prose .insight-checklist li:last-child { margin-bottom: 0; }
.insight-prose .insight-faq-item { margin-top: 1.4em; padding-top: 1.1em; border-top: 1px solid var(--line); }
.insight-prose .insight-faq-item h3 { margin-top: 0; }
.insight-prose .insight-faq-item p:last-child { margin-bottom: 0; }
.insight-prose .insight-factor-group > h3 { padding-left: 14px; border-left: 3px solid var(--lime-deep); }

/* ---------- 14. Article hero: copy left, the article's own editorial artwork right ---------- */
/* Desktop (≥ 1121px): a balanced two-column hero that echoes the Insights landing hero without copying the TW matrix.
   The artwork is the article's approved editorial SVG (640 × 360, fixed ratio, so there is no layout shift). */
@media (min-width: 1121px) {
  .pt-article .phero--article .phero__grid { grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr); column-gap: clamp(36px, 4.6vw, 80px); align-items: center; }
  .pt-article .phero--article .phero .display, .pt-article .phero--article .display { max-width: none; font-size: clamp(2.1rem, 1.05rem + 2.3vw, 3.7rem); line-height: 1.06; text-wrap: balance; }
  .pt-article .phero--article .phero__copy > p:not(.eyebrow):not(.insight-date) { max-width: 54ch; }
  .phero--article .phero__visual { width: 100%; max-width: none; justify-self: stretch; }
}
.phero--article .breadcrumb { margin-bottom: clamp(28px, 4.2vw, 56px); }
.phero__art { position: relative; margin: 0; padding: clamp(6px, 1.3vw, 16px); background: var(--ink); border: 1px solid var(--line-d); }
.phero__art::before { content: ""; position: absolute; top: -1px; left: -1px; width: 28px; height: 28px; border-top: 3px solid var(--lime); border-left: 3px solid var(--lime); pointer-events: none; }
.phero__art svg { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; }
/* Below 1121px: breadcrumb, category + publication, heading, artwork, then intro and author (same pattern as the TW matrix hero).
   The article breakpoint sits at 1121px, not 1081px: right at 1081px a long H1 can re-wrap when the web font swaps in (CLS up to 0.026). */
@media (max-width: 1120px) {
  .pt-article .phero--article .phero__grid { grid-template-columns: minmax(0, 1fr); row-gap: 0; }
  .phero--article .phero__copy { display: contents; }
  .phero--article .phero__copy > h1 ~ * { order: 2; }
  .phero--article .phero__copy > h1 { margin-bottom: 0; }
  .phero--article .phero__visual { order: 1; width: 100%; max-width: 720px; margin: clamp(18px, 3.6vw, 30px) 0 clamp(26px, 6vw, 40px); }
  .pt-article .phero--article .phero .display, .pt-article .phero--article .display { max-width: none; }
}
@media (max-width: 760px) {
  .phero--article .phero__visual { max-width: none; }
}

/* ---------- 15. Related Insights (end of article) ---------- */
.article-main .related-insights { margin-top: clamp(40px, 6vw, 72px); padding-top: clamp(22px, 3vw, 32px); border-top: 1px solid var(--line); }
.related-insights h2 { margin: 0 0 clamp(16px, 2.4vw, 24px); font-size: clamp(1.25rem, 1.05rem + .7vw, 1.6rem); }
.related-insights ul { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(16px, 2.4vw, 24px); }
.related-insights li { padding: 2px 0 2px 16px; border-left: 3px solid var(--lime-deep); }
.related-insights .eyebrow { margin: 0 0 6px; }
.related-insights h3 { margin: 0 0 6px; font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); line-height: 1.25; }
.related-insights li > p:last-child { margin: 0; max-width: 62ch; }

/* ---------- 11. Contact page (/contact) — Drafting Table system, enquiry journey 04 ---------- */
.pt-contact .phero__grid { grid-template-columns: minmax(0, 1fr); padding-block: clamp(32px, 4.5vw, 56px) clamp(40px, 5vw, 72px); }
.pt-contact .phero .display { font-size: clamp(2.5rem, 1.3rem + 4.8vw, 5.6rem); line-height: .96; letter-spacing: -.055em; max-width: 14ch; }
.pt-contact .phero .page-intro { max-width: 54ch; font-size: clamp(1.05rem, .98rem + .35vw, 1.3rem); color: #D7DAD3; }
.pt-contact .b-contact { border-top: 1px solid var(--line-d); padding-top: clamp(40px, 5vw, 80px); }
.pt-contact .b-contact h2 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.6rem); line-height: 1; max-width: 12ch; }
.contact-steps { list-style: none; counter-reset: step; margin: clamp(24px, 3vw, 40px) 0 0; padding: 0; border-top: 1px solid var(--line-d); max-width: 46ch; }
.contact-steps li { counter-increment: step; display: grid; grid-template-columns: 3.4rem minmax(0, 1fr); padding: 16px 0 17px; border-bottom: 1px solid var(--line-d); }
.contact-steps li::before { content: counter(step, decimal-leading-zero); grid-row: 1 / span 2; color: var(--lime); font: 650 .75rem/1.9 var(--text); letter-spacing: .16em; }
.contact-steps strong { font: 700 1.05rem/1.25 var(--display); letter-spacing: -.01em; color: var(--paper); }
.contact-steps span { display: block; margin-top: 4px; color: #C3C8C0; font-size: .95rem; line-height: 1.5; max-width: 38ch; }
.b-contact .contact-copy p.contact-note { margin-top: clamp(20px, 2.4vw, 32px); padding-left: 16px; border-left: 2px solid var(--lime); font-size: .95rem; color: #C3C8C0; max-width: 40ch; }
.preview-note { margin: 18px 0 0; padding: 10px 12px; border: 1px dashed var(--slate); background: rgba(23, 28, 27, .04); color: var(--slate); font: 600 .8rem/1.45 var(--text); }
.preview-note::before { content: "PREVIEW"; margin-right: .8em; color: var(--ink); font-weight: 750; letter-spacing: .16em; font-size: .7rem; }
@media (max-height: 780px) and (min-width: 1081px) { .pt-contact .b-contact .contact-copy { position: static; } }
@media (max-width: 1080px) {
  .contact-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: none; gap: 0 16px; border-bottom: 1px solid var(--line-d); }
  .contact-steps li { display: block; border-bottom: 0; padding: 14px 0; }
  .contact-steps li::before { display: block; margin-bottom: 6px; }
  .contact-steps span { display: none; }
}
@media (max-width: 760px) {
  .contact-steps { display: none; }
  .pt-contact .phero .display { max-width: none; }
  .pt-contact .b-contact h2 { max-width: none; }
}

/* Latent defect found in the 04 audit: `display` set on the wizard buttons / grids overrode the [hidden] attribute, so Back,
   Continue and Send were all visible on every step and the callback fields showed while disabled. [hidden] must win. */
#enquiry-form [hidden], .enquiry-success[hidden], .wizard-navigation [hidden] { display: none !important; }

/* ---------- 16. Contact hero: four-stage enquiry workflow diagram (04B) ----------
   Original SVG (build.py contact_art), drawn on a 40-unit drafting grid at a fixed 640 × 480 ratio so nothing shifts while
   it loads or animates. Desktop (≥ 1081px): copy left, diagram right. Below: breadcrumb, label, H1, diagram, intro
   (the approved service / TW mobile hero pattern). Stroke weights: 1.5 outlines, 2 lime connectors; colours are brand tokens only. */
.contact-art svg { aspect-ratio: 4 / 3; }
.contact-art .ca-gridline { fill: none; stroke: var(--paper); stroke-opacity: .07; stroke-width: 1; }
.contact-art .ca-frame { fill: var(--ink); stroke: rgba(243, 242, 236, .62); stroke-width: 1.5; }
.contact-art .ca-rule { fill: none; stroke: rgba(243, 242, 236, .3); stroke-width: 1.5; }
.contact-art .ca-no { fill: var(--lime); font: 700 22px/1 var(--display); letter-spacing: -.01em; }
.contact-art .ca-title { fill: var(--paper); font: 650 14px/1 var(--text); letter-spacing: .09em; }
.contact-art .ca-cap { fill: rgba(243, 242, 236, .6); font: 650 12px/1 var(--text); letter-spacing: .18em; }
.contact-art .ca-box { fill: none; stroke: rgba(243, 242, 236, .55); stroke-width: 1.5; }
.contact-art .ca-dash { stroke-dasharray: 5 4; }
.contact-art .ca-on, .contact-art .ca-lime-fill { fill: var(--lime); stroke: none; }
.contact-art .ca-bar { fill: rgba(243, 242, 236, .5); }
.contact-art .ca-bar.ca-dim2 { fill: rgba(243, 242, 236, .26); }
.contact-art .ca-bar.ca-lime, .contact-art .ca-caret { fill: var(--lime); }
.contact-art .ca-ink-fill { fill: var(--ink); }
.contact-art .ca-tick { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.contact-art .ca-tick--lime { stroke: var(--lime); }
.contact-art .ca-ring { fill: none; stroke: var(--lime); stroke-width: 1.5; }
.contact-art .ca-link { fill: none; stroke: var(--lime); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.contact-art .ca-chev { fill: none; stroke: var(--lime); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.contact-art .ca-node { fill: var(--ink); stroke: var(--lime); stroke-width: 2; }
.contact-art .ca-mark circle, .contact-art .ca-mark path { fill: none; stroke: var(--lime); stroke-width: 1.5; }
.contact-art .ca-dim path { fill: none; stroke: rgba(243, 242, 236, .4); stroke-width: 1.5; }
.contact-art .ca-stage .ip-shape { transform-box: fill-box; }
@media (min-width: 1081px) {
  .pt-contact .phero--contact .phero__grid { grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); column-gap: clamp(36px, 4.6vw, 88px); align-items: center; }
  .pt-contact .phero--contact .phero__visual { width: 100%; max-width: none; justify-self: stretch; }
}
@media (max-width: 1080px) {
  .pt-contact .phero--contact .phero__grid { grid-template-columns: minmax(0, 1fr); row-gap: 0; }
  .phero--contact .phero__copy { display: contents; }
  .phero--contact .phero__copy > h1 ~ * { order: 2; }
  .phero--contact .phero__copy > h1 { margin-bottom: 0; }
  .phero--contact .phero__visual { order: 1; width: 100%; max-width: 640px; margin: clamp(22px, 4vw, 32px) 0 clamp(24px, 5vw, 36px); }
}
@media (max-width: 760px) { .phero--contact .phero__visual { max-width: none; } }
