/* DMC global styles: base, layout, buttons, labels, header, menu, footer, page hero, breadcrumb, pager and the
   call-to-action band. Loaded on every page after tokens.css and motion.css.
   Look: Route B "Prism" (approved, D33) with Route A's deep-blue header and hero (D33), full width (D31),
   sticky header (D34). Component styles live in components/ and load only where the component appears.
   Ported from the approved Stage 4 prototype; Route B rules are merged into the base rules (no route switch on the live site). */

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--c-bg); -webkit-text-size-adjust: 100%; } /* No scroll-padding: Safari then scrolls a focused item below the screen. site.js keeps focus clear of the header (Stage 11). */
body { margin: 0; background: var(--c-bg); color: var(--c-text); font: var(--fw-body) var(--step-0)/var(--lh-body) var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: var(--c-action); text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
:focus-visible { outline: 3px solid var(--c-focus); outline-offset: 3px; border-radius: 2px; }
.stage :focus-visible { outline-color: var(--c-stage-accent); }
/* Players sit in frames that clip their edges, so their ring is drawn inside, in cyan to show against footage (Stage 10, WCAG 2.4.7). */
video:focus-visible, iframe:focus-visible { outline: 4px solid var(--dmc-cyan); outline-offset: -6px; }
h1, h2, h3, h4 { font-family: var(--font); font-weight: var(--fw-heading); letter-spacing: -0.025em; line-height: var(--lh-heading); margin: 0; text-wrap: balance; overflow-wrap: anywhere; } /* anywhere: one long word ("Communications") at display size never widens its column on a narrow screen (Stage 10, WCAG 1.4.10 / 1.4.12). */
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg, video { max-width: 100%; }
img { height: auto; }
figure { margin: 0; }
button, input, select, textarea { font: inherit; }

/* Screen-reader text and the skip link */
.screen-reader-text, .sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 12px; top: 12px; z-index: 100; padding: 12px 18px; background: var(--dmc-white); color: var(--dmc-navy); font-weight: 600; text-decoration: none; transform: translate3d(0, -200%, 0); }
.skip-link:focus { transform: none; }

/* ---------- Layout ---------- */
.wrap { padding-inline: var(--gutter); }
.g { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); }
.g > * { grid-column: 1 / -1; min-width: 0; }
.stack { display: grid; gap: var(--space-4); }
.stack-5 { display: grid; gap: var(--space-5); }
.section { padding-block: var(--section); position: relative; }
.section.flush-top { padding-top: 0; }
/* A "flush-top" section directly under the page header keeps its full top spacing (What We Do, Stage 14). */
.page-hero + .section.flush-top { padding-top: var(--section); }
.stage { background: var(--c-stage); color: var(--c-on-stage); }
.stage a:not(.btn) { color: var(--c-on-stage); }
.label { font: 600 var(--step--2)/1.3 var(--font); letter-spacing: var(--label-tracking); text-transform: uppercase; color: var(--c-label); }
.stage .label { color: var(--c-on-stage-2); }
.tag { display: inline-flex; align-items: center; gap: 0.4em; font: 600 0.66rem/1 var(--font); letter-spacing: 0.12em; text-transform: uppercase; padding: 0.5em 0.65em; border: 1px dashed currentColor; border-radius: 0; color: var(--c-label); vertical-align: middle; white-space: nowrap; }
.stage .tag { color: var(--c-stage-accent); }
.sec-head { display: grid; gap: var(--space-4); margin-block-end: clamp(36px, 5vw, 80px); align-items: end; }
.sec-head h2 { font-size: var(--step-4); }
.sec-head .intro { color: var(--c-text-2); max-width: 70ch; font-size: var(--step-1); line-height: 1.5; }
.stage .sec-head .intro { color: var(--c-on-stage-2); }
/* A heading with an introduction: the introduction sits under the heading, left-aligned (Stage 14, the user's
   choice B; it was beside it, bottom-aligned, which put a long introduction above the heading's top). */
.sec-head.split { row-gap: var(--space-5); align-items: start; }
.prose { max-width: var(--measure); display: grid; gap: 1.1em; }
.prose h2 { font-size: var(--step-3); margin-top: 0.6em; }
.prose h3 { font-size: var(--step-2); margin-top: 0.4em; }
.prose ul { list-style: disc; padding-left: 1.2em; display: grid; gap: 0.4em; }
.prose ol { list-style: decimal; padding-left: 1.4em; display: grid; gap: 0.4em; }
.prose blockquote { margin: 0; padding-left: 1.2em; border-left: 3px solid var(--c-action); font-size: var(--step-1); }

/* ---------- Cut corners (Prism) ----------
   Painted, not clipped: a 225-degree gradient leaves the top-right corner transparent.
   clip-path cost about 4 points of dropped frames while scrolling; this costs nothing extra. */
@property --fill { syntax: "<color>"; inherits: false; initial-value: transparent; }
.cut { background: linear-gradient(225deg, transparent calc(var(--cut) * 0.7071), var(--fill) calc(var(--cut) * 0.7071 + 0.5px)); transition: --fill var(--m-med) var(--m-ease-out), color var(--m-fast); }
/* Media frames hold images, so their corner is covered by a small triangle in the colour behind them. */
.cut-media { position: relative; }
.cut-media::after { content: ""; position: absolute; top: 0; right: 0; z-index: 2; width: var(--cut); height: var(--cut); background: linear-gradient(225deg, var(--behind) 50%, transparent calc(50% + 0.5px)); pointer-events: none; }

/* ---------- Buttons ---------- */
.btn { --btn-bg: var(--c-action); --btn-fg: var(--c-on-action); --btn-bg-h: var(--dmc-navy); --cut: 12px; --fill: var(--btn-bg);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em; min-height: var(--tap); padding: 0 1.7rem 0 1.5rem;
  border-radius: 0; color: var(--btn-fg); font: 600 1rem/1 var(--font); text-decoration: none; border: 0; cursor: pointer;
  background: linear-gradient(225deg, transparent calc(var(--cut) * 0.7071), var(--fill) calc(var(--cut) * 0.7071 + 0.5px));
  transition: --fill var(--m-med) var(--m-ease-out), color var(--m-fast), transform var(--m-med) var(--m-ease-out); }
.btn:hover { --fill: var(--btn-bg-h); }
.btn:active { transform: translateY(1px); }
.btn.on-dark { --btn-bg: var(--dmc-cyan); --btn-fg: var(--dmc-navy); --btn-bg-h: #FFFFFF; }
.stage .btn:not(.on-dark):not(.ghost):hover, .btn.on-dark:hover { --btn-bg-h: #FFFFFF; --btn-fg: var(--dmc-navy); }
.btn.ghost { --btn-fg: var(--c-text); background: transparent; box-shadow: inset 0 0 0 1.5px var(--c-text); transition: background-color var(--m-fast), color var(--m-fast), transform var(--m-med) var(--m-ease-out); }
.btn.ghost:hover { background: var(--c-surface); }
.stage .btn.ghost { --btn-fg: var(--c-on-stage); box-shadow: inset 0 0 0 1.5px var(--c-on-stage-2); }
.stage .btn.ghost:hover { background: var(--c-stage-2); }
.arr { display: inline-block; transition: transform var(--m-med) var(--m-ease-out); }
a:hover .arr, button:hover .arr { transform: translate3d(0.2em, -0.2em, 0); }
.link-arr { display: inline-flex; align-items: center; gap: 0.5em; min-height: var(--tap); font-weight: 600; text-decoration: none; }
.link-arr:hover { text-decoration: underline; }
.stage .link-arr { color: var(--c-on-stage); }

/* ---------- Header (Route A's deep-blue bar, D33; always on screen, D34) ----------
   Solid deep blue, no backdrop blur: the blur was invisible behind the bar but cost about 8 points of dropped frames.
   The sticky state slims the bar with transforms only: the header lifts by --lift and its contents drop back by half,
   so nothing on the page is re-laid out while scrolling. */
.site-header { --lift: 12px; position: fixed; inset: 0 0 auto 0; z-index: 30; padding-top: env(safe-area-inset-top, 0px); background: var(--c-stage); color: var(--c-on-stage);
  transition: box-shadow var(--m-med) var(--m-ease-out), transform var(--m-med) var(--m-ease-out); will-change: transform; }
.admin-bar .site-header { top: var(--wp-admin--admin-bar--height, 32px); }
.site-header .bar { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 40px); min-height: 72px; transition: transform var(--m-med) var(--m-ease-out); }
.site-header.is-stuck { transform: translate3d(0, calc(var(--lift) * -1), 0); box-shadow: 0 1px 0 rgb(238 244 255 / 0.08), 0 10px 30px rgb(0 21 46 / 0.28); }
.site-header.is-stuck .bar { transform: translate3d(0, calc(var(--lift) / 2), 0); }
.site-header :focus-visible { outline-color: var(--dmc-cyan); }
.site-header .bar > .btn, .site-header .search-btn { flex-shrink: 0; white-space: nowrap; } /* Buttons keep their size; the logo gives way (Stage 11). */
/* Under 380 px the Menu button shows its icon only; the word stays for screen readers (Stage 11). */
@media (max-width: 379px) { .menu-btn .menu-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } .menu-btn { padding: 0; justify-content: center; } }
main [id], footer [id] { scroll-margin-top: 76px; }
.logo { display: block; flex-shrink: 1; min-width: 0; line-height: 0; } /* The logo gives way first when the bar is tight (enlarged text spacing at 320 px). */
.logo img { display: block; height: 40px; width: auto; max-width: 100%; object-fit: contain; object-position: 0 50%; transform-origin: 0 50%; transition: transform var(--m-med) var(--m-ease-out); }
.site-header.is-stuck .logo img { transform: scale(0.85); }
.nav { display: none; margin-inline-start: auto; }
.nav ul { display: flex; gap: clamp(14px, 1.7vw, 34px); }
.nav a { display: block; color: var(--c-on-stage-2); text-decoration: none; font-size: 0.9rem; font-weight: 500; white-space: nowrap; padding-block: 0.6rem; transition: color var(--m-fast); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--c-on-stage); }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--dmc-cyan); }
.site-header .btn { min-height: 44px; padding: 0 1.15rem; font-size: 0.9rem; margin-inline-start: auto; white-space: nowrap; flex-shrink: 0; }
.site-header .btn:hover { --btn-bg-h: #FFFFFF; --btn-fg: var(--dmc-navy); }
.menu-btn { flex-shrink: 0; white-space: nowrap; min-height: 44px; min-width: 44px; padding: 0 0.9rem; border-radius: var(--radius-pill); border: 1.5px solid currentColor; background: transparent; color: inherit; font: 600 0.9rem/1 var(--font); cursor: pointer; display: inline-flex; align-items: center; gap: 0.5rem; text-decoration: none; }
.menu-btn i { display: grid; gap: 4px; font-style: normal; } /* normal: an italic <i> would download the italic font on every page */
.menu-btn i::before, .menu-btn i::after { content: ""; width: 16px; height: 1.5px; background: currentColor; display: block; }
@media (min-width: 1280px) {
  .nav { display: block; }
  .site-header .btn { margin-inline-start: 0; }
  .site-header .menu-btn { display: none; }
  .logo img { height: 48px; }
  .site-header .bar { min-height: 84px; }
  .site-header { --lift: 16px; }
  .site-header.is-stuck .logo img { transform: scale(0.84); }
}
@media (max-width: 539px) { /* The header's Let's Talk button needs 540 px: at 430 px (largest iPhones) it pushed the Menu button off screen (Stage 11). */  .site-header .btn { display: none; } .site-header .menu-btn { margin-inline-start: auto; } }

/* ---------- Header search and the What We Do drop-down (Stage 3, section 4; D41) ----------
   Both open on click or Enter, never on hover alone; Escape closes and returns focus. Without JavaScript, What We Do
   is a plain link and the search icon jumps to the field (:target). Fades only; reduced motion shows them at once. */
.glyph { width: 20px; height: 20px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.has-panel { position: relative; }
.nav .nav-toggle { display: inline-flex; align-items: center; gap: 0.3rem; }
.nav-toggle .glyph { width: 16px; height: 16px; transition: transform var(--m-fast) var(--m-ease-out); }
.has-panel.is-open .nav-toggle { color: var(--c-on-stage); }
.has-panel.is-open .nav-toggle .glyph { transform: rotate(180deg); }
.nav-panel { display: none; position: absolute; top: calc(100% + 20px); left: 50%; width: min(600px, 92vw); padding: 14px; transform: translateX(-50%);
  background: var(--c-stage-2); color: var(--c-on-stage); border: 1px solid rgb(238 244 255 / 0.1); border-radius: var(--radius-m); box-shadow: var(--shadow-float); }
.nav-panel::before { content: ""; position: absolute; inset: -22px 0 auto 0; height: 22px; } /* keeps the pointer path between link and panel */
.has-panel.is-open .nav-panel { display: block; animation: dmc-panel-in var(--m-fast) var(--m-ease-out); }
.nav .nav-services { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.nav .nav-services a { display: flex; align-items: center; gap: 0.7rem; padding: 0.7rem 0.75rem; border-radius: var(--radius-s); color: var(--c-on-stage); font-size: 0.92rem; white-space: normal; line-height: 1.25; }
.nav .nav-services a:hover, .nav .nav-services a:focus-visible { background: rgb(238 244 255 / 0.07); }
.nav .nav-services a[aria-current="page"] { box-shadow: inset 2px 0 0 var(--dmc-cyan); }
.nav-services .ico { width: 26px; height: 26px; flex-shrink: 0; fill: none; stroke: var(--c-on-stage-2); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.nav-services .ico .ac { stroke: var(--dmc-cyan); }
.nav-services .ico .fill { fill: var(--dmc-cyan); }
.nav .nav-all { display: flex; justify-content: space-between; margin-top: 8px; padding: 0.8rem 0.75rem 0.4rem; border-top: 1px solid rgb(238 244 255 / 0.1); color: var(--c-on-stage); font-weight: 600; }
.nav .nav-all:hover .arr { transform: translateX(3px); }
.nav-all .arr { transition: transform var(--m-fast) var(--m-ease-out); }
@keyframes dmc-panel-in { from { opacity: 0; translate: 0 -6px; } to { opacity: 1; translate: 0 0; } }

.search-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; flex-shrink: 0; border-radius: var(--radius-pill); color: var(--c-on-stage-2); transition: color var(--m-fast), background-color var(--m-fast); }
.search-btn:hover, .search-btn[aria-expanded="true"] { color: var(--c-on-stage); background: rgb(238 244 255 / 0.08); }
.search-btn { margin-inline-start: auto; }
.search-panel { display: none; border-top: 1px solid rgb(238 244 255 / 0.08); padding-block: 14px 18px; }
.search-panel:target, .search-panel.is-open { display: block; animation: dmc-panel-in var(--m-fast) var(--m-ease-out); }
.search-panel .wrap { display: flex; align-items: center; gap: 12px; }
.search-form.search-dark { position: relative; display: flex; flex-wrap: nowrap; align-items: center; gap: 10px; flex: 1; }
.search-dark > .glyph { position: absolute; left: 14px; color: var(--c-on-stage-2); pointer-events: none; }
.search-form.search-dark input[type="search"] { flex: 1; min-width: 0; min-height: 48px; padding: 0 14px 0 44px; border-radius: var(--radius-s); border: 1px solid rgb(238 244 255 / 0.22); background: rgb(238 244 255 / 0.06); color: var(--c-on-stage); font: 500 1rem/1 var(--font); }
.search-dark input::placeholder { color: var(--c-on-stage-2); opacity: 1; }
.search-form.search-dark input[type="search"]:focus { outline: 2px solid var(--dmc-cyan); outline-offset: 2px; border-color: transparent; box-shadow: none; }
.search-dark input::-webkit-search-cancel-button { filter: invert(1); }
.search-dark .btn { min-height: 48px; }
.search-close { display: inline-grid; place-items: center; width: 44px; height: 44px; flex-shrink: 0; border-radius: var(--radius-pill); color: var(--c-on-stage-2); }
.search-close:hover { color: var(--c-on-stage); background: rgb(238 244 255 / 0.08); }
@media (min-width: 1280px) {
  .search-btn { margin-inline-start: 0; }
  .nav { margin-inline-end: -8px; }
}
@media (max-width: 539px) { .search-btn { margin-inline-start: auto; } .site-header .menu-btn { margin-inline-start: 0; } .search-dark .btn { display: none; } }
@media (max-width: 1279px) { .site-header .bar > .btn { margin-inline-start: 0; } }
/* Between 1280 and 1439 px the six links, search and Let's Talk share the bar: tighter gaps keep them inside the margins. */
@media (min-width: 1280px) and (max-width: 1439px) { .site-header .bar { gap: 16px; } .nav ul { gap: 18px; } }
@media (prefers-reduced-motion: reduce) { .nav-panel, .search-panel { animation: none !important; } }
:root[data-motion="off"] .has-panel.is-open .nav-panel, :root[data-motion="off"] .search-panel.is-open { animation: none; }

/* Mobile menu: a modal dialog */
dialog.menu { inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; border: 0; padding: calc(env(safe-area-inset-top, 0px) + 20px) var(--gutter) calc(env(safe-area-inset-bottom, 0px) + 28px); background: var(--c-stage); color: var(--c-on-stage); overflow-y: auto; }
dialog.menu::backdrop { background: rgb(0 21 46 / 0.6); }
dialog.menu[open] { display: grid; grid-template-rows: auto 1fr auto; gap: 28px; }
dialog.menu :focus-visible { outline-color: var(--dmc-cyan); }
.menu-top { display: flex; align-items: center; justify-content: space-between; min-height: 52px; }
.menu-top img { height: 36px; width: auto; display: block; }
.menu-links { display: grid; align-content: center; gap: 2px; }
.menu-links a { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding-block: 0.55rem; font: 650 clamp(1.7rem, 7vw, 2.6rem)/1.15 var(--font); letter-spacing: -0.025em; color: var(--c-on-stage); text-decoration: none; border-bottom: 1px solid rgb(238 244 255 / 0.1); }
.menu-links a small { font: 500 0.78rem/1.2 var(--font); letter-spacing: 0; color: var(--c-on-stage-2); }
.menu-search .search-form.search-dark input[type="search"] { min-height: 52px; }
.menu-row { display: flex; align-items: stretch; border-bottom: 1px solid rgb(238 244 255 / 0.1); }
.menu-row a { flex: 1; border-bottom: 0; }
.menu-more { display: inline-grid; place-items: center; width: 52px; flex-shrink: 0; border: 0; background: transparent; color: var(--c-on-stage); cursor: pointer; border-radius: var(--radius-s); }
.menu-more .glyph { width: 24px; height: 24px; transition: transform var(--m-fast) var(--m-ease-out); }
.menu-more[aria-expanded="true"] .glyph { transform: rotate(45deg); }
.menu-services { display: grid; gap: 0; padding: 4px 0 10px 2px; border-bottom: 1px solid rgb(238 244 255 / 0.1); }
.menu-services[hidden] { display: none; }
.menu-services a { display: block; padding: 0.55rem 0; color: var(--c-on-stage-2); font: 500 1.05rem/1.3 var(--font); text-decoration: none; }
.menu-services a:hover, .menu-services a[aria-current="page"] { color: var(--c-on-stage); }
.menu-foot { display: grid; gap: 14px; color: var(--c-on-stage-2); font-size: 0.95rem; }
.menu-foot .btn { justify-self: start; }
.menu-foot a:not(.btn) { color: var(--c-on-stage-2); }

/* ---------- Page hero (inner pages: deep blue, as the home hero) ---------- */
.page-hero { position: relative; overflow: clip; padding-block: clamp(108px, 11vw, 168px) clamp(48px, 6vw, 96px); }
.page-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--gradient-brand); }
.page-hero.work-hero::after { display: none; }
.page-hero .g { row-gap: clamp(24px, 3vw, 40px); align-items: end; }
.page-hero h1 { font-size: clamp(2.8rem, 0.8rem + 6.6vw, 8.5rem); line-height: 0.94; letter-spacing: -0.05em; font-weight: 800; }
.page-hero.compact h1 { font-size: clamp(2.4rem, 0.8rem + 4.8vw, 6rem); }
.ph-copy { display: grid; gap: var(--space-5); align-content: end; }
.ph-sub { font: 650 var(--step-3)/1.1 var(--font); letter-spacing: -0.02em; }
.ph-sub .accent { color: var(--dmc-violet-soft); }
.ph-lede { max-width: 40ch; font-size: var(--step-1); line-height: 1.5; color: var(--c-on-stage-2); }
.ph-copy .cta { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: var(--space-2); }
.ph-media { --cut: 40px; --behind: var(--c-stage); position: relative; aspect-ratio: 4 / 3; max-width: 100%; overflow: clip; background: var(--c-stage-2); }
/* Placeholder art: brand light on deep blue, a different arrangement per --v. */
.ph-art, .tile .art, .seq-media .art { position: absolute; inset: 0; background:
  radial-gradient(circle at calc(25% + var(--v, 0) * 17%) calc(30% + var(--v, 0) * 9%), rgb(24 217 232 / 0.7), transparent 34%),
  radial-gradient(circle at calc(80% - var(--v, 0) * 15%) 75%, rgb(118 39 216 / 0.85), transparent 48%),
  linear-gradient(calc(160deg + var(--v, 0) * 25deg), #0A2547, #00152E); }
.ph-media .art, .ph-media img { position: absolute; inset: -8%; width: 116%; max-width: none; height: 116%; object-fit: cover; }
.ph-media .tag { position: absolute; left: 12px; top: 12px; z-index: 3; white-space: normal; line-height: 1.35; max-width: calc(100% - 24px); }
@media (min-width: 900px) {
  .page-hero .crumbs { grid-column: 1 / -1; }
  .page-hero .ph-copy { grid-column: 1 / span 7; }
  .page-hero .ph-media { grid-column: 8 / -1; }
  .page-hero.no-media .ph-copy { grid-column: 1 / span 10; }
}

/* Breadcrumb */
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: var(--step--1); }
.crumbs li { display: inline-flex; gap: 10px; align-items: center; color: var(--c-on-stage); }
.crumbs li + li::before { content: "›"; color: var(--c-on-stage-2); }
.crumbs a { color: var(--c-on-stage-2); text-decoration: none; padding-block: 0.5rem; }
.crumbs a:hover { color: var(--c-on-stage); text-decoration: underline; }

/* ---------- Call-to-action band and Let's Talk chapter (deep-blue stage with the ribbon edge) ---------- */
.talk { background: var(--c-stage); color: var(--c-on-stage); }
.talk::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: var(--gradient-brand); }
.talk .g { row-gap: clamp(24px, 3vw, 40px); }
.talk h2 { font-size: var(--step-6); line-height: 0.92; letter-spacing: -0.05em; max-width: 11ch; }
.talk h2 .accent { color: var(--dmc-cyan); }
.talk .label { color: var(--c-on-stage-2); }
.talk a:not(.btn) { color: var(--c-on-stage); }
.talk .sub { font-size: var(--step-1); color: var(--c-on-stage-2); max-width: 40ch; line-height: 1.5; }
.talk .tag { color: var(--dmc-cyan); }
.talk :focus-visible { outline-color: var(--dmc-cyan); }
.talk .btn:not(.ghost) { --btn-bg: var(--dmc-cyan); --btn-fg: var(--dmc-navy); }
.talk .btn.ghost { --btn-fg: var(--c-on-stage); box-shadow: inset 0 0 0 1.5px var(--c-on-stage-2); }
.talk .btn.ghost:hover { background: var(--c-stage-2); }
.talk-main, .talk .side { display: grid; gap: var(--space-5); }
.cta-band h2 { font-size: var(--step-5); max-width: 14ch; }
@media (min-width: 900px) { .talk .talk-main { grid-column: 1 / span 8; } .talk .side { grid-column: 9 / -1; align-self: end; } }
.contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: 20px var(--col-gap); padding-top: clamp(24px, 3vw, 40px); border-top: 1px solid var(--c-rule); }
.contact div { display: grid; gap: 0.35rem; align-content: start; }
.contact .v { font-weight: 600; font-size: var(--step-1); overflow-wrap: anywhere; }
.contact a.v { text-decoration: none; }
.contact a.v:hover { text-decoration: underline; }
.talk .contact { border-top-color: rgb(238 244 255 / 0.14); }
.talk .contact .label { color: var(--c-on-stage-2); }

/* ---------- Previous / next ---------- */
.pager { border-top: 1px solid var(--c-rule); background: var(--c-surface); }
.pager-grid { display: grid; grid-template-columns: 1fr 1fr; }
.pg { display: grid; gap: 8px; align-content: center; padding-block: clamp(28px, 4vw, 56px); color: var(--c-text); text-decoration: none; }
.pg .t { font: 650 var(--step-2)/1.15 var(--font); letter-spacing: -0.02em; transition: color var(--m-fast); }
.pg:hover .t { color: var(--c-action); }
.pg.next { text-align: right; justify-items: end; }
.pg.all { grid-column: 1 / -1; border-bottom: 1px solid var(--c-rule); }
.pager-grid.one .pg.next { grid-column: 1 / -1; }
@media (min-width: 900px) {
  .pager-grid { grid-template-columns: 1fr auto 1fr; column-gap: var(--col-gap); }
  .pg.all { grid-column: auto; border: 0; justify-items: center; text-align: center; }
  .pager-grid.two { grid-template-columns: 1fr 1fr; }
  .pager-grid.two .pg.all { justify-items: start; text-align: left; }
  .pager-grid.one { grid-template-columns: 1fr; }
  .pg .t { font-size: var(--step-3); }
}
/* Page numbers on archives */
.page-numbers-nav ul { display: flex; flex-wrap: wrap; gap: 8px; }
.page-numbers-nav a, .page-numbers-nav span { display: inline-grid; place-items: center; min-width: var(--tap); min-height: var(--tap); padding: 0 12px; border: 1px solid var(--c-rule); color: var(--c-text); text-decoration: none; font-weight: 600; }
.page-numbers-nav .current { background: var(--c-text); color: var(--c-surface); border-color: var(--c-text); }

/* ---------- Footer ---------- */
.site-footer { padding-block: clamp(64px, 8vw, 120px) calc(clamp(40px, 5vw, 72px) + env(safe-area-inset-bottom, 0px)); }
.site-footer .g { row-gap: 40px; }
.site-footer .foot-logo img { display: block; height: 64px; width: auto; max-width: 100%; }
.site-footer .tagline { margin-top: 18px; color: var(--c-on-stage-2); max-width: 30ch; }
.site-footer h2 { font: 600 var(--step--2)/1.3 var(--font); letter-spacing: var(--label-tracking); text-transform: uppercase; color: var(--c-on-stage-2); margin-bottom: 14px; }
.site-footer ul { display: grid; gap: 6px; }
.site-footer ul a { text-decoration: none; color: var(--c-on-stage); }
.site-footer ul a:hover { text-decoration: underline; }
.site-footer .small { border-top: 1px solid rgb(238 244 255 / 0.12); padding-top: 24px; display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: var(--step--1); color: var(--c-on-stage-2); }
.site-footer .small a, .site-footer .small button { color: var(--c-on-stage-2); }
.site-footer .small button { background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; font: inherit; }
@media (min-width: 900px) {
  .site-footer .brand { grid-column: 1 / span 4; }
  .site-footer .f-nav { grid-column: 5 / span 3; }
  .site-footer .f-services { grid-column: 8 / span 2; }
  .site-footer .f-contact { grid-column: 10 / -1; }
}

/* ---------- Cookie choice (Stage 10) ---------- */
/* A light floating card: it stands apart from the dark hero and the light sections alike. Bottom right on wide
   screens, clear of the hero's words; a bottom sheet on phones. Either choice closes it, and while it is open
   the page keeps scroll room above it (consent.js) so nothing tabbed to lands underneath. */
.cookie-card { --cut: 18px; position: fixed; z-index: 40; right: var(--gutter); bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  width: min(372px, calc(100% - 2 * var(--gutter))); padding: 22px 22px 20px; color: var(--c-text);
  background: linear-gradient(225deg, transparent calc(var(--cut) * 0.7071), #FFFFFF calc(var(--cut) * 0.7071 + 0.5px));
  filter: drop-shadow(0 18px 36px rgb(0 21 46 / 0.32)); animation: consent-in var(--m-med) var(--m-ease-out) both; }
.cookie-card[hidden] { display: none; }
.cookie-card::before { content: ""; position: absolute; top: 0; left: 24px; width: 48px; height: 3px; background: var(--gradient-brand); }
.cookie-card h2 { font: var(--fw-heading) var(--step-0)/1.25 var(--font); margin-bottom: 6px; }
.cookie-card p { font-size: var(--step--1); line-height: 1.55; color: var(--c-text-2); }
.cookie-card p a { color: var(--c-text); }
.cookie-card .consent-actions { display: flex; gap: 12px; margin-top: 18px; }
.cookie-card .btn { flex: 1 1 0; }
@keyframes consent-in { from { opacity: 0; transform: translate3d(0, 14px, 0); } }
@media (max-width: 599px) { .cookie-card { right: 12px; width: calc(100% - 24px); bottom: calc(12px + env(safe-area-inset-bottom, 0px)); } }
@media (prefers-reduced-motion: reduce) { .cookie-card { animation: none; } }

/* ---------- Forms (shared) ---------- */
.field { display: grid; gap: 6px; }
.field label, .field legend { font-weight: 600; font-size: 0.95rem; }
.field .help { font-size: var(--step--1); color: var(--c-text-2); }
.field input, .field select, .field textarea { min-height: var(--tap); padding: 0 14px; font: inherit; color: var(--c-text); background: var(--c-surface); border: 1.5px solid var(--c-field-border); border-radius: 0; width: 100%; transition: border-color var(--m-fast), box-shadow var(--m-fast); }
.field textarea { padding-block: 12px; min-height: 9rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--c-action); } /* Stage 11: the site's solid focus ring (base :focus-visible) instead of a faint glow Safari does not draw on dropdowns and checkboxes (WCAG 2.4.7, 1.4.11). */
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline-offset: 2px; }
.field.is-error input, .field.is-error select, .field.is-error textarea { border-color: var(--c-error); }
.field .err { color: var(--c-error); font-size: var(--step--1); font-weight: 500; display: flex; gap: 6px; }
.search-form { display: flex; gap: 8px; flex-wrap: wrap; }
.search-form input[type="search"] { flex: 1 1 14rem; min-height: var(--tap); padding: 0 14px; border: 1.5px solid var(--c-field-border); border-radius: 0; background: var(--c-surface); color: var(--c-text); }
.search-form input[type="search"]:focus { border-color: var(--c-action); }

/* ---------- Smooth-scroll hooks (Lenis) ---------- */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: clip; }
.contact.stack { grid-template-columns: 1fr; gap: 24px; }
