/* ══════════════════════════════════════════════════════════
   Grem Digital — shared stylesheet (editorial × diagram, Oct 2026)
   One file for every page. Page-specific inline <style> is not needed.
   ══════════════════════════════════════════════════════════ */

/* ── Tokens ── */
:root {
  --paper:       #F6F6F3;
  --paper-2:     #EDEDE8;
  --sand-tint:   #EFE8DC;
  --surface:     #FDFDFB;
  --ink:         #1A1917;
  --ink-2:       #3B3E37;
  --stone:       #6B6E65;
  --rule:        #D9D6CE;
  --forest:      #2D4839;
  --forest-deep: #1F3328;
  --sage:        #A9C3AD;
  --sage-tint:   #E3EEE5;
  --sand:        #C7B79E;
  --sand-ink:    #6B5A3E;
  --on-dark:     #D6DDD6;
  --rule-dark:   rgba(169, 195, 173, .3);

  --serif: 'Playfair Display', Georgia, serif;
  --sans:  'Hanken Grotesk', system-ui, -apple-system, sans-serif;

  --body-lg: 20px;
  --body-sm: 16px;
  --gutter: clamp(20px, 5vw, 64px);
  --max: 1240px;
  --section: clamp(72px, 9vw, 128px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── Base ── */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--body-sm);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--forest); outline-offset: 3px; }
.on-dark :focus-visible { outline-color: var(--sage); }

.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section + .section { border-top: 1px solid var(--rule); }
.bg-sand  { background: var(--sand-tint); }
.bg-dark  { background: var(--forest-deep); color: var(--paper); }
.section.bg-sand, .section.bg-dark, .bg-sand + .section, .bg-dark + .section { border-top: 0; }

/* ── Type ── */
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.02em; line-height: 1.04; }
h1 em, h2 em, h3 em { font-style: italic; font-weight: 500; color: var(--forest); }
.bg-dark h1 em, .bg-dark h2 em { color: var(--sage); }
h1 { font-size: clamp(42px, 5.2vw, 76px); }
h2 { font-size: clamp(36px, 4.6vw, 64px); }
h3 { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.15; }

.kicker {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: 17px; color: var(--forest);
}
.kicker::before { content: ""; width: 32px; height: 1px; background: currentColor; flex: none; }
.bg-dark .kicker { color: var(--sage); }
.kicker + h1, .kicker + h2 { margin-top: 20px; }

.label {
  font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--stone);
}
.bg-dark .label { color: var(--sage); }

.lead { font-size: var(--body-lg); line-height: 1.55; color: var(--ink-2); max-width: 36ch; }
.bg-dark .lead, .bg-dark p { color: var(--on-dark); }

.prose { display: grid; gap: 20px; font-size: var(--body-lg); line-height: 1.6; color: var(--ink-2); max-width: 62ch; }
.prose strong { color: var(--ink); font-weight: 600; }

/* ── Buttons & links ── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 26px; background: var(--forest); color: var(--paper);
  font: 600 var(--body-sm)/1 var(--sans); text-decoration: none; border: 0; cursor: pointer;
  transition: background .3s var(--ease), transform .3s var(--ease);
}
.btn:hover { background: var(--forest-deep); transform: translateY(-1px); }
.btn:disabled { opacity: .6; cursor: progress; transform: none; }
.btn-sm { padding: 12px 20px; }
.bg-dark .btn { background: var(--paper); color: var(--forest-deep); }

.link {
  font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--rule);
  padding-bottom: 2px; transition: border-color .3s var(--ease);
}
.link:hover { border-color: currentColor; }
.bg-dark .link { border-color: rgba(246, 246, 243, .3); }
.bg-dark .link:hover { border-color: var(--paper); }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; margin-top: 40px; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags span { font-size: 13px; font-weight: 600; border: 1px solid var(--rule); color: var(--ink-2); padding: 4px 10px; }
.bg-dark .tags span { border-color: rgba(169, 195, 173, .4); color: var(--sage); }

/* ── Nav ── */
.site-nav { position: sticky; top: 0; z-index: 50; background: rgba(246, 246, 243, .94); backdrop-filter: saturate(1.2) blur(8px); border-bottom: 1px solid var(--rule); }
.site-nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.logo { font: 700 22px var(--serif); letter-spacing: -0.03em; text-decoration: none; color: var(--ink); }
.logo span { color: var(--forest); }
.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-links > li { position: relative; }
.nav-links a, .nav-links button {
  font: 500 var(--body-sm) var(--sans); color: var(--ink-2); text-decoration: none;
  background: none; border: 0; cursor: pointer; padding: 8px 0;
}
.nav-links a:hover, .nav-links button:hover, .nav-links [aria-current="page"] { color: var(--ink); }
.nav-links [aria-current="page"] { box-shadow: inset 0 -1px 0 var(--ink); }
.nav-links .caret { font-size: 11px; margin-left: 4px; }
.dropdown {
  position: absolute; top: 100%; left: -20px; min-width: 260px; padding: 10px 0;
  background: var(--surface); border: 1px solid var(--rule); border-top: 2px solid var(--ink);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
}
.dropdown a { display: block; padding: 9px 20px; }
.dropdown a:hover { background: var(--paper); }
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: none; }

.menu-toggle { display: none; background: none; border: 0; cursor: pointer; width: 40px; height: 40px; position: relative; }
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  position: absolute; left: 9px; width: 22px; height: 1.5px; background: var(--ink); content: "";
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.menu-toggle span { top: 19px; }
.menu-toggle span::before { left: 0; top: -7px; }
.menu-toggle span::after { left: 0; top: 7px; }
.nav-open .menu-toggle span { background: transparent; }
.nav-open .menu-toggle span::before { transform: translateY(7px) rotate(45deg); }
.nav-open .menu-toggle span::after { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu { display: none; }
@media (max-width: 860px) {
  .nav-links, .site-nav .btn { display: none; }
  .menu-toggle { display: block; }
  .mobile-menu {
    display: block; position: fixed; inset: 76px 0 0; background: var(--paper); z-index: 49;
    padding: 24px var(--gutter) 40px; overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
  }
  .nav-open .mobile-menu { opacity: 1; visibility: visible; transform: none; }
  .nav-open { overflow: hidden; }
  .mobile-menu a { display: block; text-decoration: none; padding: 12px 0; border-bottom: 1px solid var(--rule); }
  .mobile-menu .big { font: 600 28px var(--serif); padding: 14px 0; }
  .mobile-menu .sub { padding-left: 16px; color: var(--ink-2); }
  .mobile-menu .btn { display: flex; margin-top: 28px; border: 0; justify-content: center; width: 100%; }
}

/* ── Breadcrumb ── */
.breadcrumb { font-size: 14px; color: var(--stone); padding-top: 24px; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--ink); }

/* ── Heroes ── */
.hero { padding-block: clamp(40px, 6vw, 80px) clamp(64px, 9vw, 120px); }
.hero-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(40px, 4.1vw, 60px); margin-bottom: 28px; }

.page-hero { padding-block: clamp(32px, 5vw, 64px) clamp(64px, 8vw, 104px); }
.page-hero .hero-grid { grid-template-columns: 7fr 5fr; align-items: end; }
.page-hero h1 { margin-bottom: 24px; }
@media (max-width: 960px) {
  .hero-grid, .page-hero .hero-grid { grid-template-columns: 1fr; }
}

/* ── Figure (diagram frame used across pages) ── */
.fig { border-top: 2px solid var(--ink); padding-top: 14px; }
.fig-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.fig-foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--rule); padding-top: 12px; margin-top: 8px; }
.fig figcaption { font-family: var(--serif); font-style: italic; color: var(--ink-2); }
.fig-glyph { display: grid; place-items: center; padding-block: 28px; color: var(--forest); }
.fig-glyph svg { width: min(240px, 60%); height: auto; }
.fig-glyph svg * { vector-effect: non-scaling-stroke; }
.fig-glyph svg { stroke-width: 1.5; }

/* Stack diagram (homepage Fig. 1) */
.seg { display: inline-flex; border: 1px solid var(--rule); background: var(--surface); }
.seg button {
  font: 600 14px var(--sans); padding: 8px 14px; border: 0; background: transparent; color: var(--stone); cursor: pointer;
  transition: background .3s var(--ease), color .3s var(--ease);
}
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

.diagram { position: relative; aspect-ratio: 1 / 0.8; }
.diagram svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.edge { fill: none; stroke: var(--sand); stroke-width: 1.5; stroke-dasharray: 4 6; transition: stroke .6s var(--ease); }
.edge.ok { stroke: var(--stone); stroke-dasharray: none; }
.flow { fill: none; stroke: var(--forest); stroke-width: 2; stroke-dasharray: 2 14; opacity: 0; transition: opacity .6s var(--ease); }
.connected .edge { stroke: var(--sage); stroke-dasharray: none; }
.connected .flow { opacity: 1; animation: flow 1.6s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -32; } }

.node {
  position: absolute; left: calc(var(--x) * 1%); top: calc(var(--y) * 1%);
  transform: translate(-50%, -50%);
  background: var(--surface); border: 1px solid var(--rule);
  padding: 10px 14px 12px; min-width: 140px; z-index: 1;
  opacity: 0; animation: nodeIn .7s var(--ease) forwards; animation-delay: calc(var(--i) * 70ms + 150ms);
  transition: border-color .6s var(--ease), background .6s var(--ease), color .6s var(--ease);
}
@keyframes nodeIn { from { opacity: 0; transform: translate(-50%, -40%); } to { opacity: 1; transform: translate(-50%, -50%); } }
.node b { display: block; font-weight: 600; font-size: 15px; line-height: 1.2; }
.node small { display: block; font-size: 12px; color: var(--stone); margin-top: 2px; }
.chip {
  display: inline-grid; white-space: nowrap; margin-top: 8px; font-size: 12px; font-weight: 600; padding: 3px 8px;
  background: var(--sand-tint); color: var(--sand-ink); transition: background .6s var(--ease), color .6s var(--ease);
}
.chip span { grid-area: 1 / 1; transition: opacity .4s var(--ease); }
.chip .a { opacity: 0; }
.connected .chip { background: var(--sage-tint); color: var(--forest); }
.connected .chip .b { opacity: 0; }
.connected .chip .a { opacity: 1; }
.node.hub { border-color: var(--ink); }
.connected .node.hub { background: var(--forest); border-color: var(--forest); color: var(--paper); }
.connected .node.hub small { color: var(--sage); }
.connected .node.hub .chip { background: var(--forest-deep); color: var(--sage); }
.readout { font-size: 14px; font-weight: 600; color: var(--stone); }
.readout strong { color: var(--ink); }
@media (max-width: 640px) {
  .diagram { aspect-ratio: 3 / 4; }
  .node { left: calc(var(--mx, var(--x)) * 1%); top: calc(var(--my, var(--y)) * 1%); min-width: 0; padding: 8px 10px 10px; max-width: 46%; }
  .node small { display: none; }
  .node b { font-size: 14px; }
}

/* Career line (About figure) */
.timeline { list-style: none; position: relative; padding-block: 12px; }
.timeline::before { content: ""; position: absolute; left: 11px; top: 24px; bottom: 24px; width: 2px; background: var(--forest); }
.timeline li { position: relative; padding: 12px 0 12px 48px; }
.timeline li::before {
  content: ""; position: absolute; left: 0; top: 16px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--forest);
}
.timeline li:last-child::before { background: var(--forest); }
.timeline b { display: block; font: 600 22px/1.2 var(--serif); }
.timeline span { font-size: 14px; color: var(--stone); }

/* ── Section heads ── */
.section-head { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(24px, 5vw, 72px); align-items: end; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head > p { font-size: var(--body-lg); color: var(--ink-2); max-width: 40ch; }
.split { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 5vw, 72px); }
.split h2, .section-head h2 { font-size: clamp(32px, 3.8vw, 56px); }
.split .checks { grid-template-columns: 1fr; }
@media (max-width: 860px) { .section-head, .split { grid-template-columns: 1fr; } }

/* ── Contents list (services) ── */
.contents { list-style: none; border-top: 2px solid var(--ink); }
.contents a {
  display: grid; grid-template-columns: 72px 64px 1fr 1.2fr 32px; gap: 24px; align-items: center;
  padding: 28px 0; border-bottom: 1px solid var(--rule); text-decoration: none;
  transition: background .4s var(--ease), padding .4s var(--ease);
}
.contents a:hover { background: var(--surface); padding-inline: 16px; }
.contents .no { font: italic 500 40px/1 var(--serif); color: var(--sand); }
.contents p { color: var(--ink-2); }
.contents .arrow { font-size: 22px; transition: transform .4s var(--ease); }
.contents a:hover .arrow { transform: translateX(6px); }
.glyph { width: 44px; height: 44px; color: var(--forest); } /* Phosphor Icons, light weight (MIT) */
.glyph .d, .fig-glyph .d { stroke-dasharray: 3 4; color: var(--sand); }
@media (max-width: 860px) {
  .contents a { grid-template-columns: 48px 1fr 24px; row-gap: 8px; }
  .contents .glyph { display: none; }
  .contents p { grid-column: 2 / 3; }
  .contents .arrow { grid-row: 1; grid-column: 3; }
  .contents .no { font-size: 30px; }
}

/* ── Spec list (numbered, ruled, two columns) ── */
.spec { list-style: none; display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(32px, 5vw, 72px); border-top: 2px solid var(--ink); counter-reset: spec; }
.spec li { counter-increment: spec; padding: 28px 0 28px 64px; border-bottom: 1px solid var(--rule); position: relative; }
.spec li::before {
  content: counter(spec, decimal-leading-zero); position: absolute; left: 0; top: 26px;
  font: italic 500 30px/1 var(--serif); color: var(--sand);
}
.spec h3 { margin-bottom: 8px; }
.spec p { color: var(--ink-2); }
@media (max-width: 760px) { .spec { grid-template-columns: 1fr; } }

/* ── Checklist (outcomes) ── */
.checks { list-style: none; display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(32px, 5vw, 72px); border-top: 1px solid var(--rule-dark); }
.checks li { position: relative; padding: 22px 0 22px 40px; border-bottom: 1px solid var(--rule-dark); font-size: var(--body-lg); line-height: 1.45; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 29px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--sage); box-shadow: 0 0 0 4px rgba(169, 195, 173, .2);
}
.bg-dark .checks li { color: var(--paper); }
@media (max-width: 760px) { .checks { grid-template-columns: 1fr; } }

/* ── Process as one line ── */
.line { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: relative; list-style: none; }
.line::before { content: ""; position: absolute; left: 0; right: 0; top: 11px; height: 2px; background: var(--forest); }
.line li { position: relative; padding-top: 48px; padding-right: clamp(16px, 3vw, 48px); }
.line li::before {
  content: ""; position: absolute; top: 0; left: 0; width: 24px; height: 24px; border-radius: 50%;
  background: var(--sand-tint); border: 2px solid var(--forest);
}
.section:not(.bg-sand) .line li::before { background: var(--paper); }
.line li:last-child::before { background: var(--forest); }
.line h3 { margin-bottom: 10px; }
.line h3 em { color: var(--sand-ink); margin-right: 8px; }
.line p { color: var(--ink-2); max-width: 32ch; }
@media (max-width: 760px) {
  .line { grid-auto-flow: row; gap: 36px; }
  .line::before { left: 11px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
  .line li { padding: 0 0 0 48px; }
}

/* ── Pull quote ── */
.pull { font: italic 500 clamp(28px, 3.4vw, 48px)/1.2 var(--serif); letter-spacing: -0.01em; max-width: 30ch; overflow-wrap: break-word; }
.pull::before { content: "“"; display: block; font-size: 2em; line-height: .6; color: var(--sand); }
.pull-note { margin-top: 28px; color: var(--ink-2); max-width: 52ch; }

/* ── Work: feature spreads & numbers ── */
.spread { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.spread + .spread { margin-top: clamp(64px, 8vw, 112px); }
.spread.flip .frame { order: 2; }
.frame { background: var(--surface); padding: 8px; border: 1px solid var(--rule); box-shadow: 0 24px 48px -36px rgba(26, 25, 23, .35); }
.bg-dark .frame { background: var(--paper); border: 0; box-shadow: 0 24px 48px -32px rgba(0, 0, 0, .45); }
.frame img { aspect-ratio: 4 / 3; object-fit: cover; object-position: top; width: 100%; }
.frame-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.frame-pair img { aspect-ratio: 3 / 4; object-position: center; }
.spread h2 { font-size: clamp(48px, 6vw, 88px); margin-block: 14px 20px; }
.spread .lead { max-width: 38ch; }
.spread .tags { margin-block: 24px 32px; }
.mini-numbers { display: flex; gap: 32px; flex-wrap: wrap; margin-top: 24px; }
.mini-numbers b { display: block; font: 600 40px/1 var(--serif); color: var(--forest); }
.bg-dark .mini-numbers b { color: var(--paper); }
.mini-numbers span { font-size: 14px; color: var(--stone); }
.bg-dark .mini-numbers span { color: var(--sage); }
@media (max-width: 860px) {
  .spread { grid-template-columns: 1fr; }
  .spread.flip .frame { order: 0; }
}

.numbers { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: clamp(64px, 8vw, 104px); border-top: 1px solid var(--rule-dark); }
.numbers > div { padding: 32px 32px 0 0; }
.numbers > div + div { border-left: 1px solid var(--rule-dark); padding-left: 32px; }
.numbers .big { font: 600 clamp(64px, 8vw, 112px)/1 var(--serif); color: var(--paper); letter-spacing: -0.03em; }
.numbers p { margin-top: 12px; }
.numbers p b { color: var(--paper); font-weight: 600; }
.numbers .note { grid-column: 1 / -1; font-family: var(--serif); font-style: italic; color: var(--sage); padding-top: 24px; }
@media (max-width: 860px) {
  .numbers { grid-template-columns: 1fr; }
  .numbers > div + div { border-left: 0; padding-left: 0; border-top: 1px solid var(--rule-dark); }
}

/* Text-only case entries */
.entries { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(32px, 5vw, 72px); border-top: 2px solid var(--ink); }
.entry { padding-block: 32px; border-bottom: 1px solid var(--rule); }
.entry h3 { font-size: clamp(32px, 3.4vw, 48px); margin-block: 10px 8px; }
.entry .meta { font-size: 14px; color: var(--stone); margin-bottom: 16px; }
.entry p { color: var(--ink-2); }
.entry .tags { margin-top: 20px; }
@media (max-width: 860px) { .entries { grid-template-columns: 1fr; } }

/* ── Contact ── */
.contact h2 { margin-bottom: 24px; }
.contact .lead { margin-bottom: 24px; }
.direct { color: var(--ink-2); }
.quote-form { border-top: 2px solid var(--ink); padding-top: 28px; display: grid; gap: 20px; }
.quote-form label { display: grid; gap: 8px; }
.quote-form input, .quote-form textarea {
  font: var(--body-sm) var(--sans); color: var(--ink); background: transparent;
  border: 0; border-bottom: 1px solid var(--stone); padding: 10px 0; border-radius: 0;
}
.quote-form input:focus, .quote-form textarea:focus { outline: none; border-bottom: 2px solid var(--forest); }
.quote-form textarea { min-height: 120px; resize: vertical; }
.quote-form .hp { position: absolute; left: -9999px; }
.form-foot { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.form-foot small { color: var(--stone); font-size: 14px; }
.form-error { color: #8A3B2E; font-weight: 600; }
.form-success { border-top: 2px solid var(--forest); padding-top: 28px; }
.form-success h3 { margin-bottom: 8px; }

/* ── Footer ── */
.site-footer { border-top: 1px solid var(--rule); padding-block: 32px; }
.site-footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px 32px; flex-wrap: wrap; font-size: 14px; color: var(--stone); }
.site-footer .logo { font-size: 18px; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--ink); }

/* ── Scroll reveal (added by grem.js; content stays visible without JS) ── */
.js .rv { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
.js .rv.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .js .rv { opacity: 1; transform: none; }
}

/* ── Added for work/ case studies, trades/, industries/ and privacy ── */
.page-hero h1.mega { font-size: clamp(52px, 7.4vw, 108px); line-height: .98; }
.page-hero h1.long { font-size: clamp(32px, 3.4vw, 46px); line-height: 1.1; }

.facts { display: flex; flex-wrap: wrap; gap: 20px 40px; margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--rule); }
.facts dt { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--stone); margin-bottom: 4px; }
.facts dd { font: 600 19px/1.25 var(--serif); max-width: 22ch; }

.spread.story h3 { font-size: clamp(28px, 3.2vw, 44px); line-height: 1.08; margin-block: 14px 24px; }
.spread.story .prose + .swatches, .spread.story .swatches + .prose { margin-top: 28px; }
.frame { margin: 0; }
.frame figcaption { font: italic 500 14px/1.4 var(--serif); color: var(--stone); padding: 10px 4px 2px; }
.page-hero .frame-pair { max-width: 520px; justify-self: end; }
.page-hero .frame { max-width: 100%; }

.numbers.four { grid-template-columns: repeat(4, 1fr); }
.numbers.four .big { font-size: clamp(48px, 5.4vw, 80px); }
.numbers.four > div { padding-right: 20px; }
.numbers.four > div + div { padding-left: 24px; }
@media (max-width: 860px) {
  .numbers.four { grid-template-columns: 1fr; }
  .numbers.four > div + div { padding-left: 0; }
}

.swatches { display: flex; flex-wrap: wrap; gap: 14px; }
.swatches div { display: grid; gap: 8px; font-size: 13px; line-height: 1.35; color: var(--ink-2); }
.swatches i { display: block; width: 72px; height: 72px; border: 1px solid var(--rule); }
.sw-sky { background: #4DC6E5; } .sw-sun { background: #FFD336; } .sw-blush { background: #F890A5; } .sw-ink { background: #231F20; }

.split .spec { grid-template-columns: 1fr; }
.spec h3 a { text-decoration: none; border-bottom: 1px solid var(--rule); transition: border-color .3s var(--ease); }
.spec h3 a:hover { border-color: var(--forest); }
.section-head:not(:has(> p)) { grid-template-columns: 1fr; }

.policy-sec { padding-block: 40px; border-top: 1px solid var(--rule); }
.policy-sec:first-child { border-top: 2px solid var(--ink); }
.policy-sec h2 { font-size: clamp(24px, 2.4vw, 32px); }
.policy-sec .prose { font-size: var(--body-sm); gap: 14px; }
.policy-list { padding-left: 1.2em; display: grid; gap: 6px; }
.policy-sec a { text-decoration: underline; text-underline-offset: 3px; }
.lead.sub { margin-top: 20px; }
.approach .prose + .pull { margin-top: 28px; }
.approach .pull + .pull-note { margin-top: 20px; }
/* ── End added block ── */

/* ── Review pass (Vera, 2026-10-21) ── */
/* Section headings are plain; the roman + italic pairing is reserved for page heroes */
h2 em { font-style: inherit; font-weight: inherit; color: inherit; }

/* Labelled mini diagrams for service figures */
.mini { position: relative; aspect-ratio: 4 / 3; margin-block: 20px; }
.mini svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.mini line { stroke: var(--forest); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.mini line.d { stroke: var(--sand); stroke-dasharray: 4 5; }
.mn {
  position: absolute; left: calc(var(--x) * 1%); top: calc(var(--y) * 1%); transform: translate(-50%, -50%);
  background: var(--surface); border: 1px solid var(--rule); padding: 10px 14px;
  font-size: 15px; font-weight: 600; line-height: 1.2; text-align: center; white-space: nowrap;
}
.mn .chip { display: block; margin-top: 6px; }
.mn.hub { background: var(--forest); border-color: var(--forest); color: var(--paper); }
.mn.off { color: var(--stone); border-style: dashed; background: transparent; }
.chip.ok { background: var(--sage-tint); color: var(--forest); }
@media (max-width: 640px) {
  .mn { font-size: 12px; padding: 6px 8px; }
  .mn .chip { font-size: 11px; padding: 2px 6px; }
}

/* Problem statement on the dark band */
.bg-dark .prose { color: var(--on-dark); }
.bg-dark .prose strong { color: var(--paper); }

/* In-house figures sit apart from the client feature */
.numbers-kicker { margin-top: clamp(64px, 8vw, 104px); }
.numbers-kicker + .numbers { margin-top: 20px; }
.numbers .label { display: block; margin-bottom: 14px; }

/* Plain fact line under a page title (client / in-house / updated date) */
.byline { font-size: var(--body-sm); color: var(--stone); margin-bottom: 20px; }
h1 + .byline { margin-top: -8px; }
.bg-dark .byline { color: var(--sage); }
.numbers-kicker { font-family: var(--sans); font-size: var(--body-sm); font-weight: 600; letter-spacing: 0; color: var(--sage); }

/* Trade pages: "In practice" list on a light background */
.practice-label { margin-top: 32px; font-weight: 600; color: var(--ink); }
.checks.practice { grid-template-columns: 1fr; margin-top: 12px; border-top-color: var(--rule); }
.checks.practice li { border-bottom-color: var(--rule); font-size: var(--body-sm); padding-block: 14px; }
.checks.practice li::before { top: 23px; width: 10px; height: 10px; background: var(--forest); box-shadow: none; }

/* Section heading + list inside a feature spread */
.spread h2.plain { font-size: clamp(32px, 3.8vw, 56px); margin-bottom: 24px; }
.spread .checks { grid-template-columns: 1fr; }

/* Flipped spreads keep the image in the wide column */
.spread.flip { grid-template-columns: 5fr 7fr; }
@media (max-width: 860px) { .spread.flip { grid-template-columns: 1fr; } }
