/* =========================================================================
   AVA Environmental Consultants, Inc. — public website
   An evolution of the firm's first homepage: black field-survey hero → white report body → black bookend.
   Brand: logo yellow #DBD629 + black. Display: Archivo · Text: IBM Plex Sans · Labels: IBM Plex Mono.
   Pictures and figures use the techniques of AVA Editorial, the firm's document design
   (the angled yellow "blade", black label chips on photos, leaning photo seams, map neatlines, the meta grid).
   The stylesheet is assembled by build.py from src/css/*.css, in file-name order.
   ========================================================================= */

@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(../fonts/archivo-500-900-latin.woff2) format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 100 700; font-display: swap;
  src: url(../fonts/plex-sans-latin.woff2) format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap;
  src: url(../fonts/plex-mono-500-latin.woff2) format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 600; font-display: swap;
  src: url(../fonts/plex-mono-600-latin.woff2) format('woff2'); }

:root {
  /* ink and paper */
  --ink: #141414;              /* the black field: hero, bookend, footer; headings on light */
  --ink-2: #1c1c1a;
  --ink-3: #272724;
  --text: #1d1d1f;
  --muted: #595959;            /* 7.0:1 on white */
  --paper: #ffffff;
  --soft: #f7f7f4;
  --soft-2: #efefe9;
  --line: #e4e4de;
  --line-strong: #c9c9c2;
  /* the one accent */
  --yellow: #dbd629;           /* logo yellow — fills, bars, buttons; text on it is always black */
  --yellow-dark: #878419;      /* marks only: dashes, rules, large numerals */
  --yellow-ink: #6e6b14;       /* yellow-family text on white (5.6:1) */
  --yellow-soft: #faf9e0;
  --yellow-border: #e9e5a0;
  --on-yellow: #4a4710;        /* small labels on the yellow band (6.2:1) */
  /* on the black field */
  --on-dark: rgba(255, 255, 255, .92);
  --on-dark-muted: #a6a6a0;    /* 7.6:1 on --ink */
  --rule-dark: rgba(255, 255, 255, .14);
  /* the platform's own hues — used inside pictures and their label strips, never for page chrome */
  --c-green: #2f7d5b; --c-blue: #3b5f8f; --c-rust: #b8642b; --c-purple: #7a5b8f;
  --c-teal: #1e7f92; --c-ochre: #b07a33; --c-brick: #8a3730; --c-gray: #5c5c57;
  --d-green: #245f46; --d-blue: #2e4a70; --d-rust: #8c4a1f; --d-purple: #5c4470;
  --d-teal: #17616f; --d-ochre: #855b25; --d-brick: #6a2a25; --d-gray: #454541;
  /* type */
  --display: 'Archivo', 'IBM Plex Sans', system-ui, sans-serif;
  --sans: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', 'Cascadia Mono', Menlo, Consolas, monospace;
  /* layout */
  --wrap: 1180px;
  --gutter: 28px;
  --radius: 8px;
  --header-h: 84px;
  --shadow: 0 1px 2px rgba(20, 20, 20, .05), 0 10px 28px rgba(20, 20, 20, .08);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, .45);
  --ease: cubic-bezier(.2, .6, .2, 1);
  --blade-h: 8px;              /* the Editorial blade: 18 times as long as it is high, right end cut back */
  --seam-angle: 6.64deg;       /* every leaning photo seam on the site */
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 20px); }
body { margin: 0; background: var(--paper); color: var(--text); font: 400 16.5px/1.62 var(--sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; counter-reset: sec; }
img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--yellow-ink); }
:focus-visible { outline: 2px solid var(--yellow-dark); outline-offset: 2px; border-radius: 2px; }
.on-dark :focus-visible, .hero :focus-visible, .bookend :focus-visible, .site-footer :focus-visible { outline-color: var(--yellow); }
h1, h2, h3, h4, h5 { font-family: var(--display); color: var(--ink); margin: 0 0 .5em; line-height: 1.15; letter-spacing: -.012em; text-wrap: balance; }
h1 { font-weight: 800; letter-spacing: -.02em; }
h2 { font-weight: 700; }
h3 { font-weight: 700; }
h4, h5 { font-weight: 600; letter-spacing: 0; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
strong, b { font-weight: 600; }
::selection { background: var(--yellow); color: var(--ink); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 780px; }
.center { text-align: center; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 3px; z-index: 100; }
.skip:focus { top: 12px; color: #fff; }

/* ---------------------------------------------------------------- labels
   The typewriter labels of the first homepage: small capitals in a mono face. */
.label { font: 600 11px/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--yellow-ink); }
.eyebrow { display: flex; align-items: center; gap: 14px; margin: 0 0 22px; font: 600 11.5px/1.35 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--yellow-ink); }
.eyebrow::before { content: ''; width: 32px; height: 3px; background: var(--yellow); flex-shrink: 0; }
.hero .eyebrow, .on-dark .eyebrow { color: var(--yellow); }
.lead { font-size: clamp(18px, 1.6vw, 20px); line-height: 1.55; color: var(--ink); }
.muted { color: var(--muted); }

/* ---------------------------------------------------------------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 28px;
  font: 600 15px/1.2 var(--sans); text-decoration: none; border: 1px solid transparent; border-radius: 3px; cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease; }
.btn i { font-size: .9em; transition: transform .2s var(--ease); }
.btn:hover .fa-arrow-right { transform: translateX(4px); }
.btn:hover .fa-arrow-down, .btn:hover .fa-download { transform: translateY(2px); }
.btn-yellow { background: var(--yellow); color: var(--ink); border-color: var(--yellow-dark); }
.btn-yellow:hover { background: var(--ink); color: var(--yellow); border-color: var(--ink); }
.btn-ink { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-ink:hover { background: var(--yellow); color: var(--ink); border-color: var(--yellow-dark); }
.btn-line { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-line:hover { background: var(--ink); color: #fff; }
.btn-ghost { background: transparent; color: var(--on-dark); border-color: rgba(255, 255, 255, .35); }
.btn-ghost:hover { border-color: var(--yellow); color: var(--yellow); }
.hero .btn-yellow, .on-dark .btn-yellow { border-color: var(--yellow); }
.hero .btn-yellow:hover, .on-dark .btn-yellow:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn-sm { min-height: 40px; padding: 8px 18px; font-size: 14px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.center .btn-row { justify-content: center; }
.more { display: inline-flex; align-items: center; gap: 8px; font: 600 14.5px/1.3 var(--sans); color: var(--ink); text-decoration: none; border-bottom: 2px solid var(--yellow); padding-bottom: 2px; }
.more i { font-size: .85em; transition: transform .2s var(--ease); }
.more:hover { color: var(--yellow-ink); }
.more:hover i { transform: translateX(4px); }
.on-dark .more { color: var(--on-dark); }
.on-dark .more:hover { color: var(--yellow); }

/* ---------------------------------------------------------------- sections and their numbered heads
   "1.0 About Us" — outlined numerals and a hairline with a short yellow start, as on the first homepage.
   The numbers count themselves down each page. */
.section { padding: 96px 0; }
.section--tight { padding: 72px 0; }
.section--soft { background: var(--soft); }
.section--dark { background: var(--ink); color: var(--on-dark); position: relative; overflow: hidden; }
.section--dark h2, .section--dark h3, .section--dark h4 { color: var(--on-dark); }
.section--dark p { color: var(--on-dark-muted); }
.section-head { position: relative; display: flex; align-items: center; gap: 22px; padding-bottom: 18px; margin-bottom: 44px;
  border-bottom: 1px solid var(--line); counter-increment: sec; }
.section-head::after { content: ''; position: absolute; left: 0; bottom: -1px; width: 72px; height: 3px; background: var(--yellow); }
.section-no { font: 800 64px/1 var(--display); letter-spacing: -.02em; color: var(--yellow-soft); flex-shrink: 0; }
.section-no::before { content: counter(sec) '.0'; }
@supports (-webkit-text-stroke: 1px black) {
  .section-no { color: transparent; -webkit-text-stroke: 1.5px var(--yellow); }
}
.section-head h2 { font-size: clamp(26px, 3vw, 34px); margin: 0; }
.section-head .head-note { margin-left: auto; text-align: right; font: 600 11px/1.5 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.section-head .head-note a { color: var(--ink); text-decoration: none; border-bottom: 2px solid var(--yellow); padding-bottom: 1px; }
.section-head .head-note a:hover { color: var(--yellow-ink); }
.section--dark .section-head, .section-head--dark { border-bottom-color: rgba(255, 255, 255, .12); }
.section--dark .section-head h2, .section-head--dark h2 { color: var(--on-dark); }
.section--dark .section-head .head-note, .section-head--dark .head-note { color: var(--on-dark-muted); }
.section--dark .section-head .head-note a, .section-head--dark .head-note a { color: var(--on-dark); }
.section-intro { max-width: 76ch; margin: -14px 0 40px; color: var(--muted); }
.section--dark .section-intro { color: var(--on-dark-muted); }
/* a plain sub-head inside a section (no number) */
.sub-head { display: flex; align-items: center; gap: 14px; margin: 0 0 22px; }
.sub-head::before { content: ''; width: 32px; height: 3px; background: var(--yellow); flex-shrink: 0; }
.sub-head h2, .sub-head h3 { margin: 0; font-size: clamp(21px, 2.2vw, 26px); }

/* ---------------------------------------------------------------- AVA Editorial pieces
   1. the blade — one angled yellow bar */
.blade { display: block; height: var(--blade-h); width: calc(var(--blade-h) * 18); background: var(--yellow);
  clip-path: polygon(0 0, 100% 0, calc(100% - var(--blade-h) * .92) 100%, 0 100%); }
.blade--s { --blade-h: 5px; }
.blade--xl { --blade-h: 11px; }

/* 2. the label chip on photos, maps and drawings: near-black, a yellow bar at its left, small capitals */
.tag-chip { display: inline-flex; align-items: center; min-height: 30px; max-width: 100%; padding: 6px 12px 6px 11px; border-left: 5px solid var(--yellow);
  font: 600 10.5px/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: #fff; text-decoration: none;
  background: rgba(16, 16, 16, .86); background-clip: padding-box; }
.has-chip { position: relative; }
.has-chip > .tag-chip { position: absolute; left: var(--chip-x, 0); bottom: var(--chip-y, 16px); max-width: calc(100% - 24px); z-index: 2; }
.has-chip > .tag-chip.chip--tl { bottom: auto; top: var(--chip-y, 16px); }

/* 3. the meta grid — columns of label and value under a short yellow tick */
.meta-grid { display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); margin: 0; padding: 0; }
.meta-grid > div { position: relative; padding: 0 22px 4px; border-left: 1px solid var(--line); }
.meta-grid > div:first-child { padding-left: 0; border-left: 0; }
.meta-grid > div::before { content: ''; display: block; width: 30px; height: 4px; background: var(--yellow); margin-bottom: 14px; }
.meta-grid dt { margin: 0 0 6px; font: 600 10.5px/1.35 var(--mono); letter-spacing: .13em; text-transform: uppercase; color: var(--muted); }
.meta-grid dd { margin: 0; font: 600 16px/1.4 var(--sans); color: var(--ink); }
.meta-grid dd small { display: block; margin-top: 4px; font: 400 13.5px/1.45 var(--sans); color: var(--muted); }
.meta-grid--num dd { font: 800 clamp(30px, 3.2vw, 42px)/1.05 var(--display); letter-spacing: -.02em; }
.on-dark .meta-grid > div, .hero .meta-grid > div { border-left-color: var(--rule-dark); }
.on-dark .meta-grid dt, .hero .meta-grid dt { color: var(--on-dark-muted); }
.on-dark .meta-grid dd, .hero .meta-grid dd { color: var(--on-dark); }
.on-dark .meta-grid dd small, .hero .meta-grid dd small { color: var(--on-dark-muted); }

/* 4. dash lists and the hairline table */
.dash { margin: 0 0 1em; padding: 0; list-style: none; }
.dash li { position: relative; padding-left: 22px; margin-bottom: 8px; }
.dash li::before { content: ''; position: absolute; left: 0; top: .78em; width: 11px; height: 2px; background: var(--yellow-dark); }
.on-dark .dash li::before { background: var(--yellow); }
.ed-table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.45; }
.ed-table th { padding: 6px 16px 9px 0; text-align: left; vertical-align: bottom; font: 600 10.5px/1.35 var(--mono); letter-spacing: .13em; text-transform: uppercase; color: var(--muted); border-bottom: 2px solid var(--yellow); }
.ed-table td { padding: 13px 16px 13px 0; vertical-align: top; color: #404040; border-bottom: 1px solid var(--line); }
.ed-table td:first-child { font-weight: 600; color: var(--ink); }
.ed-table tr:last-child td { border-bottom: 0; }
.ed-table .firm { font: 600 10px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--yellow-ink); background: var(--yellow-soft); border: 1px solid var(--yellow-border); border-radius: 3px; padding: 3px 6px; white-space: nowrap; }

/* small rectangular code chips ("ERR · EA · CEST"), as on the first homepage's service cards */
.code { display: inline-block; font: 600 11px/1.3 var(--mono); letter-spacing: .08em; color: var(--yellow-ink); background: var(--yellow-soft);
  border: 1px solid var(--yellow-border); border-radius: 3px; padding: 3px 9px; }
.codes { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.on-dark .code { color: var(--yellow); background: rgba(219, 214, 41, .08); border-color: rgba(219, 214, 41, .3); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.pills a, .pills span { display: inline-block; font: 500 13.5px/1.3 var(--sans); padding: 6px 12px; border-radius: 3px; background: #fff; border: 1px solid var(--line-strong); text-decoration: none; color: var(--ink); }
.pills a:hover { background: var(--yellow); border-color: var(--yellow-dark); color: var(--ink); }

/* ---------------------------------------------------------------- reveal on scroll
   Hidden only when JavaScript is running (html.js), so every page reads without it. */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .65s ease, transform .65s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .section-head.reveal::after { transform: scaleX(0); transform-origin: left; transition: transform .7s .25s var(--ease); }
.js .section-head.reveal.is-in::after { transform: none; }
.stagger > .reveal:nth-child(2) { transition-delay: .07s; }
.stagger > .reveal:nth-child(3) { transition-delay: .14s; }
.stagger > .reveal:nth-child(4) { transition-delay: .21s; }
.stagger > .reveal:nth-child(5) { transition-delay: .28s; }
.stagger > .reveal:nth-child(6) { transition-delay: .35s; }
.stagger > .reveal:nth-child(n+7) { transition-delay: .4s; }

/* ---------------------------------------------------------------- header
   White bar that stays at the top, the logo large at its left; it tightens a little once the page scrolls,
   and a thin yellow line along its foot shows how far down the page the reader is. */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); backdrop-filter: saturate(1.3) blur(8px);
  border-bottom: 1px solid var(--line); transition: box-shadow .2s ease; }
.site-header.is-scrolled { box-shadow: 0 2px 14px rgba(20, 20, 20, .08); }
.site-header--static { position: relative; }
.header-row { display: flex; align-items: center; gap: 26px; height: var(--header-h); transition: height .25s var(--ease); }
.site-header.is-scrolled .header-row { height: 68px; }
.brand { display: flex; align-items: center; flex-shrink: 0; text-decoration: none; }
.brand img { height: 68px; width: auto; transition: height .25s var(--ease); }
.site-header.is-scrolled .brand img { height: 54px; }
.scroll-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--yellow); transform-origin: left; transform: scaleX(var(--progress, 0)); pointer-events: none; }

.mainnav { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.mainnav > ul { display: flex; align-items: center; gap: 24px; list-style: none; margin: 0; padding: 0; }
.mainnav li { position: relative; }
.navlink { display: inline-flex; align-items: center; gap: 6px; padding: 6px 0 4px; font: 500 14.5px/1.2 var(--sans); color: var(--ink);
  text-decoration: none; background: none; border: 0; border-bottom: 2px solid transparent; cursor: pointer; white-space: nowrap;
  transition: color .15s ease, border-color .15s ease; }
.navlink .fa-chevron-down { font-size: 9px; color: var(--muted); transition: transform .2s; }
.navlink:hover, .navlink[aria-expanded="true"] { color: var(--yellow-ink); }
.navlink.is-current { color: var(--yellow-ink); border-bottom-color: var(--yellow); }
.dropdown { position: absolute; top: calc(100% + 14px); left: -18px; min-width: 310px; background: #fff; border: 1px solid var(--line);
  border-top: 3px solid var(--yellow); border-radius: 0 0 var(--radius) var(--radius); box-shadow: var(--shadow); padding: 8px; list-style: none; margin: 0;
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .15s, transform .15s, visibility 0s .15s; }
.dropdown::before { content: ''; position: absolute; left: 0; right: 0; top: -20px; height: 20px; }      /* bridge the gap so the menu stays open */
.has-menu:hover > .dropdown, .has-menu.is-open > .dropdown { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.has-menu:hover > .navlink .fa-chevron-down, .has-menu.is-open > .navlink .fa-chevron-down { transform: rotate(180deg); }
.dropdown a { display: flex; gap: 12px; align-items: center; padding: 9px 12px; border-radius: 4px; text-decoration: none; color: var(--ink); font: 500 14.5px/1.3 var(--sans); }
.dropdown a:hover { background: var(--soft); color: var(--ink); }
.dropdown .dd-icon { width: 30px; height: 30px; flex-shrink: 0; display: grid; place-items: center; background: var(--yellow-soft); border: 1px solid var(--yellow-border); border-radius: 3px; color: var(--yellow-ink); font-size: 13px; }
.dropdown a:hover .dd-icon { background: var(--yellow); border-color: var(--yellow-dark); color: var(--ink); }
.dropdown .dd-all { margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--line); border-radius: 0; font: 600 11px/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--yellow-ink); justify-content: space-between; }
.dropdown--wide { min-width: 600px; display: grid; grid-template-columns: 1fr 1fr; column-gap: 4px; }
.dropdown--wide .dd-all { grid-column: 1 / -1; }
.nav-cta { display: flex; align-items: center; gap: 14px; padding-left: 22px; border-left: 1px solid var(--line); }
.team-access { display: inline-flex; align-items: center; gap: 8px; font: 600 10.5px/1.2 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--yellow-ink); text-decoration: none; white-space: nowrap; }
.team-access i { font-size: 11px; }
.team-access:hover { color: var(--ink); }
.btn-contact { white-space: nowrap; }
.menu-toggle { display: none; margin-left: auto; align-items: center; gap: 10px; font: 600 14.5px var(--sans); color: var(--ink);
  background: #fff; border: 1px solid var(--line-strong); border-radius: 3px; padding: 10px 14px; min-height: 44px; cursor: pointer; }
.menu-toggle .bars { width: 18px; height: 12px; position: relative; }
.menu-toggle .bars::before, .menu-toggle .bars::after, .menu-toggle .bars span { content: ''; position: absolute; left: 0; right: 0; height: 2px; background: var(--ink); }
.menu-toggle .bars::before { top: 0; } .menu-toggle .bars span { top: 5px; } .menu-toggle .bars::after { bottom: 0; }
.menu-close, .scrim, .drawer-brand { display: none; }

@media screen and (max-width: 1180px) {
  .mainnav { gap: 16px; }
  .mainnav > ul { gap: 18px; }
  .nav-cta { padding-left: 16px; gap: 12px; }
  .team-access span { display: none; }
  .team-access i { font-size: 14px; }
}
@media screen and (max-width: 1040px) {
  :root { --header-h: 72px; }
  /* a blurred backdrop would make the header the frame of the slide-in menu (fixed children are placed
     inside an element that has backdrop-filter); on small screens the header is plain white instead */
  .site-header { backdrop-filter: none; background: #fff; }
  .brand img { height: 58px; }
  .site-header.is-scrolled .header-row { height: 64px; }
  .site-header.is-scrolled .brand img { height: 50px; }
  .menu-toggle { display: inline-flex; }
  .mainnav { position: fixed; inset: 0 0 0 auto; width: min(420px, 100%); z-index: 60; margin: 0; background: #fff; flex-direction: column; align-items: stretch; gap: 0;
    padding: 22px 22px 32px; overflow-y: auto; display: none; box-shadow: -20px 0 60px rgba(0, 0, 0, .25); }
  .mainnav.is-open { display: flex; animation: drawer-in .25s var(--ease); }
  @keyframes drawer-in { from { transform: translateX(100%); } to { transform: none; } }
  .drawer-brand { display: block; margin: 0 0 14px; }
  .drawer-brand img { height: 64px; width: auto; }
  .menu-close { display: grid; place-items: center; position: absolute; top: 24px; right: 20px; width: 46px; height: 46px; border-radius: 3px; border: 1px solid var(--line-strong); background: #fff; font-size: 18px; cursor: pointer; color: var(--ink); }
  .mainnav > ul { flex-direction: column; align-items: stretch; gap: 0; border-top: 1px solid var(--line); }
  .mainnav li { border-bottom: 1px solid var(--line); }
  .navlink { width: 100%; justify-content: space-between; padding: 17px 2px; font-size: 17px; border-bottom: 0; }
  .navlink.is-current { box-shadow: inset 4px 0 0 var(--yellow); padding-left: 14px; }
  .dropdown, .dropdown--wide { position: static; min-width: 0; display: none; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 12px; }
  .dropdown::before { content: none; }
  .has-menu.is-open > .dropdown { display: block; }
  .has-menu:hover > .dropdown { display: none; }
  .has-menu.is-open:hover > .dropdown { display: block; }
  .nav-cta { flex-direction: column-reverse; align-items: stretch; gap: 14px; padding: 24px 0 0; border-left: 0; }
  .team-access { justify-content: center; padding: 14px; border: 1px solid var(--line-strong); border-radius: 3px; }
  .team-access span { display: inline; }
  .team-access i { font-size: 11px; }
  .scrim { display: block; position: fixed; inset: 0; background: rgba(0, 0, 0, .45); z-index: 55; opacity: 0; visibility: hidden; transition: opacity .2s; }
  .scrim.is-open { opacity: 1; visibility: visible; }
}

/* ---------------------------------------------------------------- the black field
   Every page opens on the same black field as the first homepage. The yellow contour lines are real:
   one square kilometre of Puerto Rico's northern karst from a 1 m LiDAR terrain model (tools/make_hero_topo.py),
   and they draw themselves in when the page opens. */
.hero { position: relative; background: var(--ink); color: var(--on-dark); overflow: hidden; }
.hero-topo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; opacity: .5; pointer-events: none; user-select: none;
  -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, .3) 0%, rgba(0, 0, 0, .3) 36%, #000 64%);
          mask-image: linear-gradient(90deg, rgba(0, 0, 0, .3) 0%, rgba(0, 0, 0, .3) 36%, #000 64%); }
.hero .wrap { position: relative; }
.hero h1 { color: var(--on-dark); }
.hero h1 em, .hero-title em { font-style: normal; color: var(--yellow); }
.topo-note { position: absolute; right: 22px; bottom: 12px; margin: 0; font: 500 9.5px/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .38); }

/* -------- home */
.hero-home { padding: 84px 0 76px; }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 68px; align-items: center; }
.hero-content { max-width: 720px; }
.hero-content > *, .hero-plate, .page-hero-copy > *, .page-hero .plate {
  opacity: 0; transform: translateY(16px); animation: rise .7s var(--ease) forwards; }
.hero-content > :nth-child(1), .page-hero-copy > :nth-child(1) { animation-delay: .05s; }
.hero-content > :nth-child(2), .page-hero-copy > :nth-child(2) { animation-delay: .18s; }
.hero-content > :nth-child(3), .page-hero-copy > :nth-child(3) { animation-delay: .32s; }
.hero-content > :nth-child(4), .page-hero-copy > :nth-child(4) { animation-delay: .46s; }
.hero-content > :nth-child(5), .page-hero-copy > :nth-child(5) { animation-delay: .6s; }
.hero-plate, .page-hero .plate { animation-delay: .4s; }
@keyframes rise { to { opacity: 1; transform: none; } }
.hero-title { font-size: clamp(2.45rem, 5.2vw, 4.15rem); line-height: 1.04; margin: 0 0 26px; }
.hero-description { font-size: 17.5px; line-height: 1.6; color: var(--on-dark-muted); max-width: 58ch; margin: 0 0 36px; }
.hero-description strong { color: var(--on-dark); font-weight: 500; }
.hero-actions { margin-bottom: 44px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 14px 52px; margin: 0; padding-top: 22px; border-top: 1px solid var(--rule-dark); }
.hero-meta div { display: flex; flex-direction: column; gap: 4px; }
.hero-meta dt { font: 600 10px/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark-muted); }
.hero-meta dd { margin: 0; font: 600 15px/1.35 var(--sans); color: var(--on-dark); }

/* -------- the plate
   The white letterhead plate of the first homepage — the logo large on white, like a report cover — now also
   carries photographs from real projects. A leaning yellow seam (the Editorial cut) separates picture and logo. */
.hero-plate, .plate { position: relative; margin: 0; background: #fff; color: var(--text); border-radius: 10px; border-bottom: 6px solid var(--yellow); box-shadow: var(--shadow-lg); }
.hero-plate { padding: 12px 12px 22px; display: flex; flex-direction: column; align-items: center; }
.plate-media { position: relative; width: 100%; }
.plate-media::before { content: ''; position: absolute; inset: 7px 0 -7px; background: var(--yellow); clip-path: polygon(0 0, 100% 0, 100% 88%, 0 100%); }
.plate-photos { position: relative; aspect-ratio: 4 / 3.15; overflow: hidden; border-radius: 5px 5px 0 0; background: var(--ink-3); clip-path: polygon(0 0, 100% 0, 100% 88%, 0 100%); }
.plate-photos .slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1s ease; }
.plate-photos .slide.is-on { opacity: 1; }
.plate-photos img { width: 100%; height: 100%; object-fit: cover; }
.js .plate-photos .slide.is-on img { animation: drift 7s ease-out forwards; }
@keyframes drift { from { transform: scale(1.07); } to { transform: scale(1); } }
.plate-photos .tag-chip { position: absolute; left: 0; top: 16px; max-width: calc(100% - 20px); z-index: 2; }
.plate-ticks { position: absolute; left: 14px; bottom: 16px; z-index: 2; display: flex; gap: 5px; }
.plate-ticks i { width: 18px; height: 3px; background: rgba(255, 255, 255, .5); transition: background-color .3s; }
.plate-ticks i.is-on { background: var(--yellow); }
.hero-plate .plate-logo { width: 78%; max-width: 300px; height: auto; margin: 14px 0 4px; }
.plate-caption { font: 600 10px/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); text-align: center; }
/* the smaller plate on inner pages: one picture, the logo small at its foot beside the caption */
.plate { padding: 10px 10px 14px; }
.plate .plate-photos { aspect-ratio: 4 / 3; }
.plate .plate-photos img.is-art { object-fit: cover; }
.plate-foot { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 14px; align-items: center; padding: 16px 6px 0; }
.plate-foot img { width: 74px; height: auto; }
.plate-foot figcaption, .plate-foot span { font: 500 10px/1.45 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding-left: 14px; border-left: 1px solid var(--line-strong); }
/* the logo alone on a plate (pages without a picture) */
.plate--logo { padding: 26px 26px 20px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.plate--logo img { width: 100%; max-width: 250px; height: auto; }

/* -------- inner pages */
.page-hero { padding: 68px 0 64px; }
.page-hero-inner { display: grid; grid-template-columns: minmax(0, 1fr); gap: 56px; align-items: center; }
.page-hero-inner.has-plate { grid-template-columns: minmax(0, 1fr) 360px; }
.page-hero-copy { max-width: 760px; }
.page-hero h1 { font-size: clamp(2.1rem, 4.3vw, 3.35rem); line-height: 1.06; margin: 0 0 18px; }
.page-hero .hero-description { margin: 0; font-size: 17px; }
.page-hero .hero-actions { margin: 30px 0 0; }
.page-hero .hero-meta { margin-top: 34px; }
.crumbs { margin: 0 0 22px; font: 500 11px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--on-dark-muted); }
.crumbs a { color: var(--on-dark-muted); text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .25); }
.crumbs a:hover { color: var(--yellow); border-bottom-color: var(--yellow); }
.crumbs .sep { padding: 0 8px; color: var(--yellow-dark); }

/* ---------------------------------------------------------------- ticker (the moving line of services, from the first homepage) */
.ticker { background: #fff; border-bottom: 1px solid var(--line); overflow: hidden; padding: 13px 0; }
.ticker-track { display: flex; width: max-content; animation: ticker-scroll 60s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-group { font: 500 12px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); white-space: nowrap; padding-right: 8px; }
.ticker-group i { font-style: normal; color: var(--yellow-dark); padding: 0 10px; }
@keyframes ticker-scroll { to { transform: translateX(-50%); } }

/* ---------------------------------------------------------------- the yellow band of counted figures */
.stats { background: var(--yellow); padding: 50px 0 46px; }
.stats-grid { display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); margin: 0; }
.stat-item dd, .stat-item dt { margin: 0; }
.stat-item { display: flex; flex-direction: column; gap: 6px; padding: 2px 26px; border-left: 1px solid rgba(20, 20, 20, .18); }
.stat-item:first-child { border-left: 0; padding-left: 0; }
.stat-number { font: 800 clamp(40px, 4.8vw, 58px)/1.05 var(--display); letter-spacing: -.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.stat-label { font: 600 11px/1.45 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--on-yellow); }
.stat-note { font: 400 13.5px/1.45 var(--sans); color: #3a380d; margin: 0; }

@media screen and (max-width: 1040px) {
  .hero-inner { grid-template-columns: 1fr; gap: 52px; }
  .hero-plate { justify-self: start; width: 100%; max-width: 400px; }
  .page-hero-inner.has-plate { grid-template-columns: 1fr; gap: 40px; }
  .page-hero .plate { max-width: 400px; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 34px; }
  .stat-item:nth-child(odd) { border-left: 0; padding-left: 0; }
}
@media screen and (max-width: 720px) {
  .hero-home { padding: 64px 0 60px; }
  .hero-topo { opacity: .26; -webkit-mask-image: none; mask-image: none; }
  .hero-actions { margin-bottom: 40px; }
  .hero-meta { flex-direction: column; gap: 16px; padding-top: 18px; }
  .page-hero { padding: 48px 0 46px; }
  .topo-note { display: none; }
  .stats { padding: 40px 0; }
  .stats-grid { grid-template-columns: 1fr; row-gap: 26px; }
  .stat-item { border-left: 0; padding-left: 0; }
}

/* ---------------------------------------------------------------- service cards (from the first homepage: yellow top edge, a code chip, a lift on hover) */
.services-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.service-card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--yellow);
  border-radius: var(--radius); padding: 28px 28px 24px; text-decoration: none; color: inherit;
  transition: border-color .18s ease, transform .22s var(--ease), box-shadow .22s ease; }
.service-card:hover { transform: translateY(-4px); box-shadow: 0 14px 32px rgba(20, 20, 20, .09); border-top-color: var(--ink); color: inherit; }
.service-card .code { align-self: flex-start; margin-bottom: 18px; }
.service-card h3 { font-size: 19px; line-height: 1.3; margin: 0 0 10px; }
.service-card p { font-size: 14.5px; line-height: 1.55; color: var(--muted); margin: 0 0 20px; }
.service-card .go { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line);
  font: 600 10.5px/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.service-card .go i { color: var(--ink); transition: transform .2s var(--ease); }
.service-card:hover .go { color: var(--yellow-ink); }
.service-card:hover .go i { transform: translateX(4px); }

/* ---------------------------------------------------------------- pictures: covers
   A project photograph, or a picture drawn from the item's own data (tools/make_covers.py), over a label strip.
   The picture's ground is one of the platform colours; .cover--<ground> tells the strip which one. */
.cover { --cv: var(--ink); --cv-strip: var(--ink-2); --cv-fg: #fff; --badge-bg: var(--yellow); --badge-fg: var(--ink);
  position: relative; overflow: hidden; display: flex; flex-direction: column; background: var(--cv); color: var(--cv-fg); container-type: inline-size; }
.cover-art { display: block; flex: 1 1 0; min-height: 0; width: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.cover-art--plain { display: grid; place-items: center; font-size: 46px; color: var(--yellow); }
.cover-strip { position: relative; z-index: 1; flex: none; display: flex; align-items: stretch; justify-content: space-between; gap: 12px; min-height: 40px; background: var(--cv-strip); }
.cover-mark { display: flex; align-items: baseline; gap: 8px; min-width: 0; margin-left: auto; padding: 0 14px 0 0; align-self: center; }
.cover-mark b { font: 800 19px/1 var(--display); letter-spacing: -.01em; white-space: nowrap; }
.cover-mark small { font: 500 12.5px/1.2 var(--sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 0 13px; background: var(--badge-bg, var(--yellow)); color: var(--badge-fg, var(--ink));
  font: 600 10.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }
@container (max-width: 300px) { .cover-mark small { display: none; } }
.cover--yellow { --cv: var(--yellow); --cv-strip: var(--yellow); --cv-fg: var(--ink); --badge-bg: var(--ink); --badge-fg: #fff; }
.cover--paper { --cv: #f3f3ee; --cv-strip: #e7e7df; --cv-fg: var(--ink); }
.cover--mint { --cv: #eaf4ee; --cv-strip: #d9e9df; --cv-fg: var(--ink); }
.cover--green { --cv: var(--c-green); --cv-strip: var(--d-green); }
.cover--blue { --cv: var(--c-blue); --cv-strip: var(--d-blue); }
.cover--rust { --cv: var(--c-rust); --cv-strip: var(--d-rust); }
.cover--purple { --cv: var(--c-purple); --cv-strip: var(--d-purple); }
.cover--teal { --cv: var(--c-teal); --cv-strip: var(--d-teal); }
.cover--ochre { --cv: var(--c-ochre); --cv-strip: var(--d-ochre); }
.cover--brick { --cv: var(--c-brick); --cv-strip: var(--d-brick); }
.cover--gray { --cv: var(--c-gray); --cv-strip: var(--d-gray); }
.cover--yellow .cover-strip { border-top: 2px solid var(--ink); }
.cover--paper .cover-art, .cover--mint .cover-art { outline: 1px solid rgba(20, 20, 20, .08); outline-offset: -1px; }

/* ---------------------------------------------------------------- insight / project cards */
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px 28px; }
.card { display: flex; flex-direction: column; min-width: 0; }
.card .cover-link { display: block; border-radius: 6px; overflow: hidden; text-decoration: none; }
.card .cover { aspect-ratio: 16 / 10.5; }
.card:hover .cover-art { transform: scale(1.04); }
.card .card-meta { margin: 16px 0 0; font: 600 10.5px/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--yellow-ink); }
.card .card-meta span { color: var(--muted); }
.card .card-meta span::before { content: '·'; padding: 0 8px; color: var(--line-strong); }
.card h3 { font-size: 19px; line-height: 1.3; margin: 8px 0 8px; }
.card h3 a { text-decoration: none; color: var(--ink); background: linear-gradient(var(--yellow), var(--yellow)) 0 100% / 0 2px no-repeat; transition: background-size .3s var(--ease); padding-bottom: 2px; }
.card h3 a:hover { color: var(--ink); background-size: 100% 2px; }
.card .excerpt { font-size: 14.5px; line-height: 1.55; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin: 0 0 10px; }
.card .tags { margin-top: auto; }
.card.is-hidden { display: none; }
.tags { display: flex; flex-wrap: wrap; gap: 4px 0; font: 500 10.5px/1.5 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.tags a { color: var(--muted); text-decoration: none; }
.tags a:hover { color: var(--yellow-ink); text-decoration: underline; }
.tags .sep { padding: 0 7px; color: var(--line-strong); }

/* ---------------------------------------------------------------- photographs
   .frame: one photograph with its label chip, the firm's mark stamped in the corner, and a caption. */
.frame { position: relative; margin: 0; }
.frame-img { position: relative; overflow: hidden; border-radius: 6px; background: var(--soft-2); }
.frame-img > img { width: 100%; aspect-ratio: var(--ar, 4 / 3); object-fit: cover; object-position: var(--focus, 50% 50%); transition: transform .8s var(--ease); }
.frame:hover .frame-img > img { transform: scale(1.03); }
.frame .tag-chip { position: absolute; left: 0; top: 16px; max-width: calc(100% - 70px); z-index: 2; }
.frame .tag-chip.chip--bl { top: auto; bottom: 16px; }
.stamp { position: absolute; right: 12px; bottom: 12px; z-index: 2; width: 46px; height: 46px; display: grid; place-items: center; background: #fff; border-radius: 4px;
  border-bottom: 3px solid var(--yellow); box-shadow: 0 6px 16px rgba(0, 0, 0, .28); }
.stamp img { width: 32px; height: 32px; }
.frame figcaption, .caption { margin-top: 10px; font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.frame figcaption b, .caption b { color: var(--ink); }
.frame--cut .frame-img { border-radius: 6px 6px 0 6px; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 9%), 78% 100%, 0 100%); }
.frame--cut .stamp { right: auto; left: 12px; }

/* .strip: two or three photographs side by side with leaning yellow seams (the Editorial mosaic) */
.strip { --seam: 20px; display: flex; gap: var(--seam); overflow: hidden; aspect-ratio: var(--ar, 3.2); background: var(--surface, #fff); margin: 0; border-radius: 6px; }
.strip figure { position: relative; flex: var(--grow, 1) 1 0; min-width: 0; margin: 0; overflow: hidden; transform: skewX(calc(-1 * var(--seam-angle)));
  box-shadow: calc(var(--seam) * .17) 0 0 0 var(--surface, #fff), calc(var(--seam) * .57) 0 0 0 var(--yellow); }
.strip figure:first-child { margin-left: -3.2%; }
.strip figure:last-child { margin-right: -3.2%; box-shadow: none; }
.strip figure > .unskew { position: absolute; inset: 0 -11%; transform: skewX(var(--seam-angle)); }
.strip figure img { width: 100%; height: 100%; object-fit: cover; object-position: var(--focus, 50% 50%); transition: transform .8s var(--ease); }
.strip figure:hover img { transform: scale(1.04); }
.strip .tag-chip { position: absolute; left: calc(11% + 12px); bottom: 14px; max-width: 74%; }
.strip figure:first-child .tag-chip { left: calc(11% + 3.2% + 16px); }
.section--soft .strip { --surface: var(--soft); }
.section--dark .strip { --surface: var(--ink); }

/* photos from a project, each with its caption */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; margin: 18px 0 8px; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; }
.gallery figcaption { margin-top: 8px; font-size: 13.5px; line-height: 1.45; color: var(--muted); }

/* ---------------------------------------------------------------- map plates
   A real map exhibit shown as a survey sheet: a neatline with tick marks all round, a label chip, a caption. */
.map-plate { margin: 0; }
.neat { --pad: 10px; --ticks-x: 12; --ticks-y: 8; position: relative; padding: var(--pad); border: 1px solid var(--line-strong); background: #fff; }
.neat-map { position: relative; overflow: hidden; outline: 1px solid var(--line-strong); background: var(--soft-2); }
.neat-map > img { width: 100%; height: auto; aspect-ratio: var(--ar, 1.6); object-fit: cover; object-position: var(--focus, 50% 50%); transition: transform .8s var(--ease); }
.map-plate:hover .neat-map > img { transform: scale(1.03); }
.neat::before, .neat::after { content: ''; position: absolute; pointer-events: none; }
.neat::before { inset: calc(var(--pad) - 6px) var(--pad);
  background:
    repeating-linear-gradient(90deg, transparent 0 calc(100% / var(--ticks-x) - 1px), var(--line-strong) calc(100% / var(--ticks-x) - 1px) calc(100% / var(--ticks-x))) top / 100% 6px no-repeat,
    repeating-linear-gradient(90deg, transparent 0 calc(100% / var(--ticks-x) - 1px), var(--line-strong) calc(100% / var(--ticks-x) - 1px) calc(100% / var(--ticks-x))) bottom / 100% 6px no-repeat; }
.neat::after { inset: var(--pad) calc(var(--pad) - 6px);
  background:
    repeating-linear-gradient(180deg, transparent 0 calc(100% / var(--ticks-y) - 1px), var(--line-strong) calc(100% / var(--ticks-y) - 1px) calc(100% / var(--ticks-y))) left / 6px 100% no-repeat,
    repeating-linear-gradient(180deg, transparent 0 calc(100% / var(--ticks-y) - 1px), var(--line-strong) calc(100% / var(--ticks-y) - 1px) calc(100% / var(--ticks-y))) right / 6px 100% no-repeat; }
.neat .tag-chip { position: absolute; left: calc(var(--pad) + 10px); top: calc(var(--pad) + 10px); z-index: 2; max-width: calc(100% - 2 * var(--pad) - 20px); }
.map-plate figcaption { display: flex; gap: 12px; align-items: baseline; margin-top: 10px; font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.map-plate figcaption .plate-no { flex: none; font: 600 10.5px/1.5 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--yellow-ink); }
.map-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px 24px; }
.map-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.section--dark .neat { border-color: rgba(255, 255, 255, .22); background: var(--ink-2); }
.section--dark .map-plate figcaption { color: var(--on-dark-muted); }
.section--dark .map-plate figcaption .plate-no { color: var(--yellow); }

/* before / after: two pictures of the same ground, a handle to drag between them */
.compare { --pos: 50%; position: relative; overflow: hidden; background: var(--ink-3); user-select: none; touch-action: pan-y; }
.compare img { display: block; width: 100%; aspect-ratio: var(--ar, 16 / 10); object-fit: cover; pointer-events: none; }
.compare .compare-top { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare .compare-top img { height: 100%; }
.compare-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: var(--yellow); pointer-events: none; }
.compare-handle::after { content: '\f337'; font: 900 13px/1 'Font Awesome 6 Free'; position: absolute; top: 50%; left: 50%; width: 40px; height: 40px; margin: -20px 0 0 -20px;
  display: grid; place-items: center; background: var(--yellow); color: var(--ink); border-radius: 50%; box-shadow: 0 4px 14px rgba(0, 0, 0, .4); }
.compare input[type=range] { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.neat .compare .tag-chip, .compare .tag-chip { position: absolute; top: 14px; z-index: 2; pointer-events: none; max-width: 46%; }
.neat .compare .tag-chip.is-a, .compare .tag-chip.is-a { left: 0; right: auto; }
.neat .compare .tag-chip.is-b, .compare .tag-chip.is-b { left: auto; right: 0; border-left: 0; border-right: 5px solid var(--yellow); }

/* ---------------------------------------------------------------- the record: what the firm has done, as a ledger of figures */
.record { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); margin: 0; padding: 0; list-style: none; }
.record li { position: relative; padding: 28px 28px 28px 0; border-bottom: 1px solid var(--line); }
.record li:not(:nth-child(3n+1)) { padding-left: 28px; border-left: 1px solid var(--line); }
.record .record-num { display: block; font: 800 clamp(34px, 3.6vw, 46px)/1.05 var(--display); letter-spacing: -.02em; color: var(--ink); margin-bottom: 4px; }
.record .record-num small { font-size: .46em; font-weight: 700; letter-spacing: 0; color: var(--muted); margin-left: 6px; }
.record .label { display: block; margin-bottom: 12px; }
.record p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--muted); }
.record p b { color: var(--ink); }
.section--dark .record, .section--dark .record li { border-color: var(--rule-dark); }
.section--dark .record .record-num { color: var(--yellow); }
.section--dark .record .label { color: var(--on-dark); }

/* the timeline: years along a line that draws itself in */
.milestones { position: relative; display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); gap: 44px 0; margin: 0; padding: 0; list-style: none; }
.milestones li { position: relative; padding: 30px 26px 0 0; }
.milestones li::before { content: ''; position: absolute; left: 0; right: 0; top: 6px; height: 1px; background: var(--line-strong); transform-origin: left; }
.milestones li::after { content: ''; position: absolute; left: 0; top: 0; width: 13px; height: 13px; border-radius: 50%; background: var(--yellow); border: 3px solid var(--ink); }
.js .milestones li.reveal::before { transform: scaleX(0); transition: transform .9s .1s var(--ease); }
.js .milestones li.reveal.is-in::before { transform: none; }
.milestones .ms-year { display: block; font: 800 30px/1.1 var(--display); letter-spacing: -.02em; color: var(--ink); margin-bottom: 8px; }
.milestones h3 { font-size: 16px; line-height: 1.35; margin: 0 0 6px; }
.milestones p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--muted); }
.milestones .is-now::after { background: var(--ink); border-color: var(--yellow); }
.section--dark .milestones li::before { background: rgba(255, 255, 255, .25); }
.section--dark .milestones li::after { border-color: var(--yellow); background: var(--ink); }
.section--dark .milestones .ms-year { color: var(--yellow); }
.section--dark .milestones p { color: var(--on-dark-muted); }

/* ---------------------------------------------------------------- lists of real work */
.work-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.work-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 18px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line); }
.work-list .w-title { font: 600 15.5px/1.4 var(--sans); color: var(--ink); }
.work-list .w-title a { text-decoration: none; border-bottom: 2px solid var(--yellow); }
.work-list .w-meta { font: 500 10.5px/1.5 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); text-align: right; white-space: nowrap; }
.work-list .w-text { grid-column: 1 / -1; font-size: 14.5px; line-height: 1.55; color: var(--muted); }
.firm-tag { display: inline-block; margin-left: 6px; font: 600 9.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--yellow-ink); background: var(--yellow-soft); border: 1px solid var(--yellow-border); border-radius: 3px; padding: 3px 5px; vertical-align: 2px; white-space: nowrap; }
.section--dark .work-list, .section--dark .work-list li { border-color: var(--rule-dark); }
.section--dark .work-list .w-title { color: var(--on-dark); }
.section--dark .work-list .w-meta, .section--dark .work-list .w-text { color: var(--on-dark-muted); }

/* a note that says who delivers a service (AVA, AVA Green, or with FERPO) */
.firm-note { display: inline-flex; gap: 10px; align-items: center; margin-top: 6px; font-size: 14px; color: var(--muted); background: var(--soft); border: 1px solid var(--line); border-left: 3px solid var(--yellow); padding: 9px 14px; border-radius: 0 4px 4px 0; }
.firm-note i { color: var(--yellow-ink); }

/* ---------------------------------------------------------------- copy-ready text (for proposal writers) */
.copy-block { position: relative; background: var(--soft); border: 1px solid var(--line); border-left: 3px solid var(--yellow); border-radius: 0 6px 6px 0; padding: 20px 22px 18px; }
.copy-block .label { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.copy-block p { margin: 0; font-size: 15.5px; line-height: 1.6; color: var(--text); }
.copy-btn { display: inline-flex; align-items: center; gap: 7px; font: 600 10.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink); background: #fff; border: 1px solid var(--line-strong); border-radius: 3px; padding: 7px 10px; cursor: pointer; transition: background-color .15s, border-color .15s; }
.copy-btn:hover { background: var(--yellow); border-color: var(--yellow-dark); }
.copy-btn.is-done { background: var(--ink); border-color: var(--ink); color: var(--yellow); }

/* ---------------------------------------------------------------- forms and filters */
.filterbar { display: grid; grid-template-columns: 1.3fr repeat(3, minmax(0, 1fr)) auto; gap: 12px; margin-bottom: 16px; }
.filterbar input, .filterbar select, .form input, .form select, .form textarea { width: 100%; min-height: 48px; padding: 11px 14px; font: 16px var(--sans); color: var(--ink); background: #fff;
  border: 1px solid var(--line-strong); border-radius: 3px; transition: border-color .15s, box-shadow .15s; }
.filterbar input:focus, .filterbar select:focus, .form input:focus, .form select:focus, .form textarea:focus { outline: 0; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(219, 214, 41, .55); }
.filterbar select, .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% - 18px) 21px, calc(100% - 13px) 21px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
.filter-status { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; min-height: 30px; margin-bottom: 28px; font: 500 11px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.filter-status button { font: inherit; letter-spacing: inherit; text-transform: inherit; background: none; border: 0; border-bottom: 2px solid var(--yellow); color: var(--ink); cursor: pointer; padding: 0 0 1px; }
.empty-state { display: none; padding: 40px; text-align: center; border: 1px dashed var(--line-strong); border-radius: var(--radius); color: var(--muted); }
.empty-state.is-shown { display: block; }
.form { display: grid; gap: 16px; background: var(--soft); border: 1px solid var(--line); border-top: 4px solid var(--yellow); border-radius: var(--radius); padding: 30px; }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 7px; font: 600 10.5px/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.form textarea { min-height: 150px; resize: vertical; line-height: 1.5; }
.form .hint { font-size: 13.5px; color: var(--muted); margin: 0; }

@media screen and (max-width: 1040px) {
  .services-grid, .card-grid, .map-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .record { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .record li:not(:nth-child(3n+1)) { padding-left: 0; border-left: 0; }
  .record li:nth-child(even) { padding-left: 28px; border-left: 1px solid var(--line); }
  .milestones { --cols: 2 !important; }
  .filterbar { grid-template-columns: 1fr 1fr; }
  .filterbar input { grid-column: 1 / -1; }
}
@media screen and (max-width: 720px) {
  .services-grid, .card-grid, .map-grid, .map-grid--2 { grid-template-columns: 1fr; }
  .record { grid-template-columns: 1fr; }
  .record li, .record li:nth-child(even) { padding: 22px 0; border-left: 0; }
  .milestones { --cols: 1 !important; gap: 30px 0; }
  .work-list li { grid-template-columns: 1fr; }
  .work-list .w-meta { text-align: left; white-space: normal; }
  .filterbar, .form .row2 { grid-template-columns: 1fr; }
  .form { padding: 22px 18px; }
  /* photo strips become a row to swipe, each photo whole */
  .strip { aspect-ratio: auto; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; border-radius: 0;
    margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }
  .strip figure { flex: 0 0 84%; aspect-ratio: 3 / 2; transform: none; box-shadow: none; margin: 0 !important; scroll-snap-align: start; border-radius: 6px; }
  .strip figure > .unskew { inset: 0; transform: none; }
  .strip .tag-chip, .strip figure:first-child .tag-chip { left: 0; bottom: 12px; max-width: 92%; }
}

/* ---------------------------------------------------------------- home */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: 64px; align-items: start; }
.about-grid .lead { margin-bottom: 18px; }
.about-grid > div > p { color: var(--muted); max-width: 62ch; }
.points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 34px; margin: 34px 0 34px; padding: 0; list-style: none; }
.points li { position: relative; padding-top: 16px; border-top: 1px solid var(--line); }
.points li::before { content: ''; position: absolute; left: 0; top: -1px; width: 30px; height: 3px; background: var(--yellow); }
.points h3 { font-size: 16.5px; margin: 0 0 6px; }
.points p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--muted); }
.about-photos { display: grid; gap: 18px; }
.group-head { display: flex; align-items: baseline; gap: 14px; margin: 44px 0 20px; }
.group-head:first-child { margin-top: 0; }
.group-head h3 { margin: 0; font-size: 17px; }
.group-head span { font: 500 11px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.record-stories { margin-top: 64px; }

/* where we work: the island drawn from the firm's own geodata, one dot per municipality with work on record */
.where { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.where--hero { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
.pr-map { position: relative; margin: 0; }
.pr-map svg { width: 100%; height: auto; overflow: visible; }
.pr-map .muni { fill: #2b2b27; stroke: #4c4c44; stroke-width: .8; transition: fill .25s ease; }
.pr-map .muni.has-work { fill: #3d3c2c; }
.pr-map .muni.is-lit { fill: rgba(219, 214, 41, .34); stroke: var(--yellow); }
.pr-map .dot { fill: var(--yellow); stroke: var(--ink); stroke-width: 1.5; transition: r .25s var(--ease), opacity .25s ease; }
.pr-map .dot.is-dim { opacity: .18; }
.pr-map .ring { fill: none; stroke: var(--yellow); stroke-width: 1.2; opacity: 0; transform-box: fill-box; transform-origin: center; }
.js .pr-map.is-in .ring { animation: ping 2.6s ease-out infinite; }
.pr-map .ring.is-dim { animation: none !important; opacity: 0; }
@keyframes ping { 0% { opacity: .7; transform: scale(.6); } 80%, 100% { opacity: 0; transform: scale(2.6); } }
.pr-map figcaption { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 14px; font: 500 10px/1.5 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--on-dark-muted); }
.map-tip { position: absolute; z-index: 3; left: 0; top: 0; min-width: 190px; max-width: 280px; padding: 10px 12px 11px; background: #fff; color: var(--text); border-left: 4px solid var(--yellow); border-radius: 0 4px 4px 0;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .45); font-size: 13px; line-height: 1.45; pointer-events: none; opacity: 0; transform: translateY(4px); transition: opacity .15s, transform .15s; }
.map-tip.is-on { opacity: 1; transform: none; }
.map-tip b { display: block; font: 700 14.5px/1.3 var(--display); color: var(--ink); margin-bottom: 3px; }
.map-tip ul { margin: 0; padding: 0; list-style: none; }
.map-tip li { padding: 2px 0; }
.sector-switch { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--rule-dark); }
.sector-switch button, .sector-switch a { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 12px; align-items: center; width: 100%; padding: 15px 4px; background: none; border: 0; border-bottom: 1px solid var(--rule-dark);
  font: 600 15.5px/1.3 var(--sans); color: var(--on-dark); text-align: left; text-decoration: none; cursor: pointer; transition: background-color .15s, padding .2s var(--ease); }
.sector-switch i.fa-solid { color: var(--yellow); font-size: 15px; text-align: center; }
.sector-switch i.fa-arrow-right { color: var(--on-dark-muted); font-size: 12px; transition: transform .2s var(--ease), color .15s; }
.sector-switch a:hover i.fa-arrow-right { color: var(--yellow); transform: translateX(4px); }
.sector-switch button:hover, .sector-switch a:hover, .sector-switch .is-on { background: rgba(255, 255, 255, .05); padding-left: 12px; color: var(--yellow); }
.where-note { margin: 18px 0 0; font-size: 13.5px; color: var(--on-dark-muted); }

/* ---------------------------------------------------------------- services */
.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { position: relative; padding: 30px 22px 0 0; counter-increment: step; }
.steps li::before { content: ''; position: absolute; left: 0; right: 0; top: 6px; height: 1px; background: var(--line-strong); }
.steps li::after { content: ''; position: absolute; left: 0; top: 0; width: 13px; height: 13px; border-radius: 50%; background: var(--yellow); border: 3px solid var(--ink); }
.steps .step-no { display: block; font: 600 10.5px/1 var(--mono); letter-spacing: .14em; color: var(--yellow-ink); margin-bottom: 10px; }
.steps .step-no::before { content: '0' counter(step) ' / '; }
.steps h3 { font-size: 18px; margin: 0 0 6px; }
.steps p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--muted); }
.section--dark .steps li::before { background: rgba(255, 255, 255, .25); }
.section--dark .steps li::after { background: var(--ink); border-color: var(--yellow); }
.section--dark .steps .step-no { color: var(--yellow); }
.section--dark .steps p { color: var(--on-dark-muted); }
.overview { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 64px; align-items: start; }
.overview .lead { margin-bottom: 18px; }
.overview > div > p { color: var(--muted); }
.side-facts { margin: 0; padding: 26px 26px 22px; background: var(--soft); border: 1px solid var(--line); border-top: 4px solid var(--yellow); border-radius: var(--radius); }
.side-facts h3 { margin: 0 0 14px; font: 600 11px/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--yellow-ink); }
.side-facts dl { margin: 0; }
.side-facts dl > div { padding: 12px 0; border-top: 1px solid var(--line); }
.side-facts dl > div:first-child { border-top: 0; padding-top: 0; }
.side-facts dt { font: 600 14.5px/1.35 var(--sans); color: var(--ink); }
.side-facts dd { margin: 3px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.fact-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 44px 0 0; border-top: 1px solid var(--line); }
.fact-row div { padding: 22px 24px 4px 0; }
.fact-row div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.fact-row b { display: block; font: 800 24px/1.15 var(--display); letter-spacing: -.01em; color: var(--ink); margin-bottom: 6px; }
.fact-row span { font-size: 14px; line-height: 1.5; color: var(--muted); display: block; }
.areas { display: grid; gap: 0; }
.area { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 56px; align-items: start; padding: 44px 0; border-top: 1px solid var(--line); }
.area:first-child { border-top: 0; padding-top: 0; }
.area:last-child { padding-bottom: 0; }
.area h3 { display: flex; align-items: baseline; gap: 14px; font-size: 22px; line-height: 1.25; margin: 0 0 14px; }
.area h3 .area-no { font: 600 11px/1 var(--mono); letter-spacing: .12em; color: var(--yellow-ink); flex-shrink: 0; }
.area p { color: var(--muted); }
.receive { background: var(--ink); color: var(--on-dark); border-radius: var(--radius); padding: 26px 26px 22px; }
.receive h4 { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font: 600 11px/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--yellow); }
.receive .dash { margin: 0; font-size: 14.5px; line-height: 1.5; }
.receive .dash li:last-child { margin-bottom: 0; }
.receive .dash li::before { background: var(--yellow); }
.receive .map-plate { margin-bottom: 20px; }
.receive .neat { border-color: rgba(255, 255, 255, .22); background: var(--ink-2); }
.receive .map-plate figcaption { color: var(--on-dark-muted); font-size: 12.5px; }
.receive .map-plate figcaption .plate-no { color: var(--yellow); }

/* ---------------------------------------------------------------- sectors */
.sector-nav { position: sticky; top: 68px; z-index: 30; background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--line); }
.sector-nav ul { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; overflow-x: auto; scrollbar-width: none; }
.sector-nav ul::-webkit-scrollbar { display: none; }
.sector-nav a { display: flex; align-items: center; gap: 9px; padding: 15px 14px 13px; font: 600 10.5px/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); text-decoration: none; white-space: nowrap; border-bottom: 3px solid transparent; }
.sector-nav a i { color: var(--yellow-dark); font-size: 12px; }
.sector-nav a:hover { color: var(--ink); }
.sector-nav a.is-active { color: var(--ink); border-bottom-color: var(--yellow); }
.sector { scroll-margin-top: 130px; }
.sector .strip { margin-bottom: 40px; }
.sector-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: start; }
.sector-grid .lead { margin: 0 0 22px; }
.sector-grid h4 { margin: 26px 0 10px; font: 600 10.5px/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--yellow-ink); }
.sector-grid h4:first-child { margin-top: 0; }
.sector-links { display: flex; flex-wrap: wrap; gap: 14px 24px; margin-top: 26px; }

/* ---------------------------------------------------------------- project sheets and articles */
.article-hero { padding: 64px 0 108px; }
.article-hero h1 { font-size: clamp(2rem, 4vw, 3.1rem); line-height: 1.08; max-width: 22ch; margin: 0 0 18px; }
.article-hero .dek { font-size: clamp(17px, 1.6vw, 19.5px); line-height: 1.55; color: var(--on-dark-muted); max-width: 64ch; margin: 0 0 4px; }
.article-hero .meta-row { display: flex; flex-wrap: wrap; gap: 6px 0; align-items: center; margin-top: 22px; font: 500 11px/1.5 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--on-dark-muted); }
.article-hero .meta-row > * + *::before { content: '·'; padding: 0 10px; color: var(--yellow-dark); }
.article-hero .meta-row .when { color: var(--yellow); }
.article-hero .tags, .article-hero .tags a { color: var(--on-dark-muted); letter-spacing: .1em; font-size: 11px; }
.article-hero .tags a:hover { color: var(--yellow); }
.article-hero .meta-grid { margin-top: 38px; }
.cover-wrap { position: relative; z-index: 2; margin-top: -72px; }
.cover-figure { margin: 0; }
.article-cover { aspect-ratio: 21 / 9; border-radius: 8px; box-shadow: var(--shadow-lg); }
.article-cover .cover-strip { min-height: 50px; }
.article-cover .cover-mark { gap: 10px; padding-right: 20px; }
.article-cover .cover-mark b { font-size: 26px; }
.article-cover .cover-mark small { font-size: 15px; }
.article-cover .badge { font-size: 11.5px; padding: 0 18px; }
.cover-figure figcaption { margin-top: 12px; font-size: 13.5px; line-height: 1.5; color: var(--muted); max-width: 860px; }
.cover-figure figcaption i { color: var(--yellow-dark); margin-right: 4px; }
.article-grid, .story-grid { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 64px; padding-block: 52px 80px; }
.prose { font-size: 17.5px; line-height: 1.72; max-width: 740px; }
.prose h2 { font-size: clamp(23px, 2.5vw, 28px); margin: 1.9em 0 .6em; scroll-margin-top: 110px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 19px; margin: 1.5em 0 .5em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--yellow-dark); }
.prose a { text-decoration-color: var(--yellow-dark); text-decoration-thickness: 2px; }
.prose blockquote { margin: 1.6em 0; padding: 22px 26px; background: var(--ink); color: #f2f1e7; border-left: 5px solid var(--yellow); border-radius: 0 6px 6px 0; font: 500 19px/1.55 var(--sans); }
.prose blockquote p:last-child { margin: 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: 15px; line-height: 1.5; }
.prose th { text-align: left; font: 600 10.5px/1.35 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 8px 12px 9px 0; border-bottom: 2px solid var(--yellow); }
.prose td { padding: 11px 12px 11px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose .callout { margin: 1.6em 0; padding: 20px 24px; background: var(--yellow-soft); border-left: 5px solid var(--yellow); border-radius: 0 4px 4px 0; font-size: 16px; }
.prose .callout p:last-child { margin: 0; }
.prose .figures { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 1.6em 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.prose .figures div { padding: 18px 18px 16px 0; }
.prose .figures div + div { padding-left: 18px; border-left: 1px solid var(--line); }
.prose .figures b { display: block; font: 800 30px/1.05 var(--display); letter-spacing: -.02em; color: var(--ink); margin-bottom: 6px; }
.prose .figures span { font-size: 13.5px; line-height: 1.45; color: var(--muted); display: block; }
.prose .steps { display: block; counter-reset: s; list-style: none; padding: 0; }
.prose .steps > li { counter-increment: s; position: relative; padding: 0 0 0 52px; margin-bottom: 18px; }
.prose .steps > li::before { content: counter(s); position: absolute; left: 0; right: auto; top: 0; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: var(--yellow); font: 600 14px var(--mono); }
.prose .steps > li::after { content: none; }
.results { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 0; margin: 0 0 34px; background: var(--ink); border-radius: var(--radius); overflow: hidden; }
.results div { padding: 24px 24px 22px; border-left: 1px solid var(--rule-dark); }
.results div:first-child { border-left: 0; }
.results b { display: block; font: 800 34px/1.05 var(--display); letter-spacing: -.02em; color: var(--yellow); margin-bottom: 8px; }
.results span { font-size: 14px; line-height: 1.45; color: #dedcd0; display: block; }
.aside { position: relative; }
.aside-inner { position: sticky; top: 100px; display: grid; gap: 20px; }
.aside-box { border: 1px solid var(--line); border-top: 4px solid var(--yellow); border-radius: var(--radius); padding: 22px 22px 20px; background: #fff; }
.aside-box h4 { font: 600 10.5px/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--yellow-ink); margin: 0 0 14px; }
.aside-box p { font-size: 14.5px; margin: 0 0 14px; color: var(--muted); }
.aside-box .btn { width: 100%; }
.aside-box .btn + .btn { margin-top: 10px; }
.toc { list-style: none; margin: 0; padding: 0; font-size: 14.5px; }
.toc li { margin: 0 0 8px; }
.toc a { text-decoration: none; color: var(--ink); display: block; padding-left: 12px; border-left: 3px solid var(--line); }
.toc a:hover, .toc a.is-active { border-left-color: var(--yellow); color: var(--ink); }
.sheet-facts { margin: 0; }
.sheet-facts > div { padding: 11px 0; border-top: 1px solid var(--line); }
.sheet-facts > div:first-child { border-top: 0; padding-top: 0; }
.sheet-facts dt { font: 600 10px/1.3 var(--mono); letter-spacing: .13em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.sheet-facts dd { margin: 0; font-size: 14.5px; line-height: 1.45; color: var(--ink); font-weight: 500; }
.authors { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.author { display: flex; gap: 16px; align-items: center; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.avatar { width: 58px; height: 58px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; background: var(--ink); color: var(--yellow); font: 700 19px var(--display); }
.author h5 { font: 600 16px/1.3 var(--sans); color: var(--ink); margin: 0 0 2px; }
.author p { font-size: 13.5px; color: var(--muted); margin: 0; }
.print-head, .print-foot { display: none; }

/* ---------------------------------------------------------------- qualifications and about */
.facts-table { width: 100%; border-collapse: collapse; margin: 0; }
.facts-table th, .facts-table td { padding: 13px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.facts-table th { width: 34%; padding-right: 20px; font: 600 10.5px/1.6 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.facts-table td { font-size: 15.5px; line-height: 1.5; color: var(--ink); }
.facts-table td small { display: block; font-size: 13px; color: var(--muted); }
.facts-table tr:first-child th, .facts-table tr:first-child td { border-top: 2px solid var(--yellow); }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.three-col { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 40px; align-items: start; }
.cap-col h3 { display: flex; align-items: center; gap: 10px; font-size: 17px; margin: 0 0 14px; padding-bottom: 12px; border-bottom: 2px solid var(--yellow); }
.cap-col h3 i { color: var(--yellow-dark); font-size: 15px; }
.cap-col .dash { font-size: 14.5px; line-height: 1.5; color: var(--text); }
.cap-col .firm-tag { margin-left: auto; }
.sister { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 34px; align-items: center; margin-top: 44px; padding: 26px 30px; background: var(--soft); border: 1px solid var(--line); border-left: 4px solid var(--yellow); border-radius: 0 var(--radius) var(--radius) 0; }
.sister img { width: 100%; height: auto; mix-blend-mode: multiply; }
.sister h3 { font-size: 18px; margin: 0 0 6px; }
.sister p { margin: 0; font-size: 14.5px; color: var(--muted); }
.people { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; margin: 0; padding: 0; list-style: none; }
.person { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 18px; padding: 24px 0; border-top: 1px solid var(--line); }
.person h3 { font-size: 17px; line-height: 1.3; margin: 2px 0 3px; }
.person .role { margin: 0 0 8px; font: 600 10.5px/1.45 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--yellow-ink); }
.person p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--muted); }
.roster { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 40px; margin: 40px 0 0; padding: 0; list-style: none; }
.roster li { padding: 12px 0; border-top: 1px solid var(--line); font-size: 14.5px; line-height: 1.4; }
.roster b { display: block; color: var(--ink); }
.roster span { color: var(--muted); font-size: 13.5px; }
.principles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.principles li { padding: 26px 26px 6px 0; }
.principles li + li { padding-left: 26px; border-left: 1px solid var(--line); }
.principles .label { display: block; margin-bottom: 12px; }
.principles h3 { font-size: 17.5px; margin: 0 0 8px; }
.principles p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--muted); }
.downloads { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.downloads a { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 18px 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); transition: border-color .15s, transform .2s var(--ease), box-shadow .2s; }
.downloads a:hover { border-color: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow); color: var(--ink); }
.downloads .dl-icon { width: 46px; height: 46px; display: grid; place-items: center; background: var(--ink); color: var(--yellow); border-radius: 4px; font-size: 18px; }
.downloads b { display: block; font: 600 15.5px/1.3 var(--sans); }
.downloads span { font: 500 10.5px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.asof { margin: 26px 0 0; font: 500 10.5px/1.5 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

/* ---------------------------------------------------------------- contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 64px; align-items: start; }
.contact-grid > * { min-width: 0; }
.contact-list { margin: 26px 0 0; border-top: 1px solid var(--line); }
.contact-list div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-list dt { font: 600 10.5px/1.5 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--yellow-ink); }
.contact-list dd { margin: 0; font-size: 15.5px; font-weight: 500; color: var(--ink); overflow-wrap: anywhere; }
.contact-list a { text-decoration: none; border-bottom: 1px solid var(--line-strong); }
.contact-list a:hover { border-bottom-color: var(--yellow-dark); }
.note-box { margin-top: 28px; padding: 18px 22px; background: var(--soft); border-left: 3px solid var(--yellow); border-radius: 0 4px 4px 0; font-size: 14.5px; color: var(--muted); }
.note-box b { color: var(--ink); }

/* ---------------------------------------------------------------- insights index */
.feature { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 48px; align-items: center; margin-bottom: 64px; }
.feature .cover { aspect-ratio: 16 / 9.5; border-radius: 8px; }
.feature h2 { font-size: clamp(24px, 2.8vw, 32px); line-height: 1.2; margin: 10px 0 12px; }
.feature h2 a { text-decoration: none; }
.feature p { color: var(--muted); }
.topic-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 26px; padding: 0; list-style: none; }
.topic-row button { font: 500 11px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; padding: 7px 11px; border-radius: 3px; background: #fff; border: 1px solid var(--line-strong); color: var(--ink); cursor: pointer; }
.topic-row button:hover { background: var(--yellow); border-color: var(--yellow-dark); }

@media screen and (max-width: 1040px) {
  .about-grid, .where, .where--hero, .overview, .area, .sector-grid, .article-grid, .story-grid, .two-col, .contact-grid, .feature { grid-template-columns: 1fr; }
  .about-grid, .where, .overview, .sector-grid, .two-col, .contact-grid { gap: 40px; }
  .area { gap: 24px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 0; }
  .three-col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .principles li:nth-child(odd) { padding-left: 0; border-left: 0; }
  .principles li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .roster { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .aside-inner { position: static; }
  .sector-nav { top: 64px; }
}
@media screen and (max-width: 720px) {
  :root { --gutter: 18px; }
  body { font-size: 16px; }
  .section { padding: 64px 0; }
  .section--tight { padding: 52px 0; }
  .section-head { gap: 16px; margin-bottom: 32px; flex-wrap: wrap; }
  .section-no { font-size: 44px; }
  .section-head .head-note { margin-left: 0; text-align: left; flex-basis: 100%; }
  .points, .steps, .three-col, .principles, .people, .roster, .fact-row { grid-template-columns: 1fr; }
  .principles li, .principles li + li { padding: 22px 0 4px; border-left: 0; border-top: 1px solid var(--line); }
  .principles li:first-child { border-top: 0; }
  .fact-row div, .fact-row div + div { padding: 18px 0 2px; border-left: 0; }
  .fact-row div + div { border-top: 1px solid var(--line); }
  .meta-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 24px; }
  .meta-grid > div:nth-child(odd) { padding-left: 0; border-left: 0; }
  .article-hero { padding: 44px 0 92px; }
  .cover-wrap { margin-top: -64px; }
  .article-cover { aspect-ratio: 16 / 10; }
  .article-cover .cover-strip { min-height: 42px; }
  .article-cover .cover-mark b { font-size: 20px; }
  .article-cover .cover-mark small { font-size: 13px; }
  .article-grid, .story-grid { padding-block: 36px 60px; gap: 40px; }
  .prose { font-size: 16.5px; }
  .prose .figures { grid-template-columns: 1fr; }
  .prose .figures div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .results div { border-left: 0; border-top: 1px solid var(--rule-dark); }
  .results div:first-child { border-top: 0; }
  .sister { grid-template-columns: 1fr; gap: 16px; padding: 22px; }
  .sister img { max-width: 170px; }
  .contact-list div { grid-template-columns: 1fr; gap: 3px; }
  .facts-table th, .facts-table td { display: block; width: 100%; }
  .facts-table th { border-bottom: 0; padding-bottom: 2px; }
  .facts-table td { padding-top: 0; }
  .facts-table tr:first-child td { border-top: 0; }
  .ed-table thead { display: none; }
  .ed-table, .ed-table tbody, .ed-table tr, .ed-table td { display: block; }
  .ed-table tr { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .ed-table td { padding: 0 0 3px; border: 0; }
  .ed-table td[data-th]::before { content: attr(data-th) ' · '; font: 600 10px/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
  .ed-table td:first-child::before { content: none; }
  .sector-nav a { padding: 13px 10px 11px; }
}

/* ---------------------------------------------------------------- the interactive guide (insights/*.yml)
   Carried over from the first build of this site; the names below map its colours and faces onto the current ones. */
:root { --serif: var(--display); --night: var(--ink); --night-2: var(--ink-2); --night-3: var(--ink-3); --on-night: #f1f0e6; --on-night-muted: var(--on-dark-muted);
  --paper-2: var(--soft); --paper-3: var(--soft-2); }
/* ------------------------------------------------------------------ explainer (interactive insight) */
.xnav { position: sticky; top: 0; z-index: 40; background: var(--night); color: #fff; border-bottom: 1px solid #000; }
.xnav .wrap { display: flex; align-items: center; gap: 22px; min-height: 54px; }
.xnav .xbrand { font: 600 13px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: #dedccf; white-space: nowrap; text-decoration: none; }
.xnav ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; overflow-x: auto; scrollbar-width: none; }
.xnav ul::-webkit-scrollbar { display: none; }
.xnav a.xlink { display: block; padding: 18px 12px 16px; font: 500 14.5px/1 var(--sans); color: #e9e8de; text-decoration: none; white-space: nowrap; border-bottom: 3px solid transparent; }
.xnav a.xlink:hover { color: #fff; }
.xnav a.xlink.is-active { border-bottom-color: var(--yellow); color: #fff; }
.xnav .xpdf { margin-left: auto; white-space: nowrap; }
.xhero { position: relative; overflow: hidden; text-align: center; padding: 130px 0 150px; color: #fff;
  background: var(--ink); }
.xhero::before { content: ''; position: absolute; inset: 0; background: url(../img/art/hero-topo-still.svg) center / cover no-repeat; opacity: .34; pointer-events: none; }
.xhero .year { position: absolute; right: -2vw; bottom: -6vw; font: 700 clamp(160px, 24vw, 340px)/1 var(--serif); color: rgba(255,255,255,.045); letter-spacing: -.02em; user-select: none; }
.xhero h1 { position: relative; color: #fff; font-size: clamp(40px, 6.2vw, 78px); line-height: 1.04; font-weight: 700; margin: 0 auto 20px; max-width: 1000px; }
.xhero h1 em { font-style: normal; color: var(--yellow); text-decoration: underline; text-decoration-thickness: 5px; text-underline-offset: 8px; }
.xhero .xsub { position: relative; font: 600 16px/1.2 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--yellow); margin-bottom: 26px; }
.xhero .xline { position: relative; font: 600 clamp(17px, 1.7vw, 20px)/1.5 var(--sans); max-width: 760px; margin: 0 auto; }
.xhero .xline2 { position: relative; color: #cfcdc0; font-size: 18px; margin: 14px auto 0; max-width: 760px; }
.xhero .xline2::before { content: '—'; display: block; color: var(--yellow); margin-bottom: 10px; }
.xsec { padding: 96px 0 30px; }
.xsec:last-of-type { padding-bottom: 96px; }
.xbody { background: var(--paper-2); }
.xlabel { font: 700 14px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--yellow-ink); margin-bottom: 14px; }
.xsec h2 { font-size: clamp(34px, 4.6vw, 56px); font-weight: 700; margin-bottom: 0; max-width: 900px; }
.xsec h2 em { font-style: normal; color: var(--yellow-ink); }
.xsec h2::after { content: ''; display: block; width: 52px; height: 3px; background: var(--yellow); margin: 22px 0 30px; }
.xsec .xintro { font-size: 18px; line-height: 1.75; text-align: justify; hyphens: auto; max-width: 980px; }
.xstat { display: grid; grid-template-columns: auto 1fr; gap: 34px; align-items: center; margin-top: 30px; padding: 34px 40px; border-radius: 12px; color: #fff;
  background: linear-gradient(120deg, #141414 0%, #23231c 55%, #3a3818 100%); position: relative; overflow: hidden; }
.xstat .num { position: relative; font: 700 clamp(56px, 7vw, 84px)/1 var(--serif); color: var(--yellow); }
.xstat .num-label { position: relative; font: 600 12.5px/1.35 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: #e2e0d2; max-width: 190px; margin-top: 8px; }
.xstat .txt { position: relative; font-size: 18px; line-height: 1.6; border-left: 1px solid rgba(255,255,255,.18); padding-left: 34px; }
.xstat .txt strong { color: #fff; }
.xstat .txt em { color: var(--yellow); }
.xpath { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 22px; align-items: stretch; }
.xpath .arrow { align-self: center; font-size: 30px; color: var(--ink); }
.xstep { border-radius: 12px; padding: 30px 30px 26px; }
.xstep--a { background: #fbfbf6; border: 1px solid var(--line-strong); }
.xstep--b { background: var(--ink); color: #e9e8dd; }
.xstep .step-k { font: 700 12.5px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ink); margin-bottom: 12px; }
.xstep--b .step-k { color: var(--yellow); }
.xstep h3 { font-size: 21px; margin-bottom: 10px; }
.xstep--b h3 { color: #fff; }
.xstep p { font-size: 15.5px; color: var(--muted); }
.xstep--b p { color: #cfcdbf; }
.xstep ul { list-style: none; padding: 0; margin: 0; font-size: 15.5px; }
.xstep li { position: relative; padding-left: 18px; margin-bottom: 8px; }
.xstep li::before { content: ''; position: absolute; left: 0; top: .6em; width: 7px; height: 7px; border-radius: 50%; background: var(--ink); }
.xstep--b li::before { background: var(--yellow); }
.xcases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; align-items: start; }
.xgroup { background: #fff; border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); }
.xgroup > h3 { margin: 0; padding: 14px 20px; background: var(--ink); color: #fff; font: 700 13px/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.xcase { padding: 18px 20px; border-top: 1px solid var(--line); }
.xcase:first-of-type { border-top: 0; }
.xcase h4 { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font: 600 16.5px/1.3 var(--sans); color: var(--ink); margin: 0 0 6px; }
.xcase p { font-size: 15px; line-height: 1.55; color: var(--muted); margin: 0; }
.xcase .tool { display: block; font-size: 13.5px; color: var(--yellow-ink); margin-top: 8px; font-weight: 600; }
.pill { display: inline-block; font: 700 11.5px/1 var(--sans); letter-spacing: .06em; padding: 5px 7px; border-radius: 4px; }
.pill--dx { background: var(--yellow); color: var(--ink); }
.pill--ai { background: var(--ink); color: var(--yellow); }
.xlegend { display: flex; gap: 22px; flex-wrap: wrap; margin: -6px 0 26px; font-size: 15px; color: var(--muted); }
.xlegend span { display: inline-flex; gap: 8px; align-items: center; }
.ximpact { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.ximpact article { display: flex; flex-direction: column; background: #fff; border-radius: 10px; padding: 26px 26px 22px; box-shadow: var(--shadow); border-top: 4px solid var(--yellow); }
.ximpact h3 { font: 700 16.5px/1.3 var(--sans); color: var(--ink); margin-bottom: 12px; }
.ximpact p { font-size: 15.5px; line-height: 1.6; color: var(--muted); flex: 1; }
.ximpact .result { margin: 14px 0 0; padding-top: 14px; border-top: 1px solid var(--line); font: 700 15px/1.45 var(--sans); color: var(--yellow-ink); }
.ximpact .src { font-size: 13px; color: var(--muted); margin-top: 6px; }
.xmaturity { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-radius: 12px; overflow: hidden; }
.xmaturity > div { padding: 28px 24px 30px; }
.xmaturity > div:nth-child(1) { background: #e9e8e0; }
.xmaturity > div:nth-child(2) { background: #e6e4bf; }
.xmaturity > div:nth-child(3) { background: #ddd97a; }
.xmaturity > div:nth-child(4) { background: var(--ink); color: #e3e1d5; }
.xmaturity .lvl { font: 700 12.5px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink); margin-bottom: 10px; }
.xmaturity > div:nth-child(4) .lvl { color: var(--yellow); }
.xmaturity h3 { font-size: 22px; margin-bottom: 8px; }
.xmaturity > div:nth-child(4) h3 { color: #fff; }
.xmaturity p { font-size: 15px; line-height: 1.55; margin: 0; }
.xmaturity .here { display: inline-block; margin-top: 14px; font: 700 12px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; background: var(--yellow); color: var(--ink); padding: 6px 8px; border-radius: 3px; }
.xsteps-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: stretch; }
.xkey { background: #fff; border-radius: 12px; padding: 30px 32px; box-shadow: var(--shadow); }
.xkey > h3, .xguard > h3 { font-size: 19px; padding-bottom: 16px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.xkey ol { list-style: none; padding: 0; margin: 0; counter-reset: k; }
.xkey li { counter-increment: k; position: relative; padding-left: 48px; margin-bottom: 18px; font-size: 15.5px; line-height: 1.55; color: var(--muted); }
.xkey li::before { content: counter(k); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--yellow); font: 700 14px var(--sans); }
.xkey li strong { display: block; color: var(--ink); font-size: 16.5px; margin-bottom: 2px; }
.xguard { background: var(--ink); color: #e2e0d3; border-radius: 12px; padding: 30px 32px; }
.xguard > h3 { color: var(--yellow); border-bottom-color: rgba(255,255,255,.15); }
.xguard ul { list-style: none; padding: 0; margin: 0 0 22px; }
.xguard li { position: relative; padding-left: 22px; margin-bottom: 14px; font-size: 15.5px; line-height: 1.55; }
.xguard li::before { content: ''; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); }
.xguard .xnote { background: rgba(255,255,255,.08); border-radius: 8px; padding: 16px 18px; font: 500 15.5px/1.55 var(--sans); color: #f0efe4; }
.xquote { position: relative; margin: 28px 0 0; padding: 40px 48px; border-radius: 12px; background: linear-gradient(120deg, #141414, #2a2a1e); color: #fff; overflow: hidden; }
.xquote::before { content: '\201C'; position: absolute; left: 20px; top: 6px; font: 700 120px/1 var(--serif); color: rgba(219,214,41,.22); }
.xquote p { position: relative; font: 500 clamp(19px, 2vw, 23px)/1.55 var(--serif); margin: 0; }
.xquote cite { position: relative; display: block; margin-top: 14px; font: normal 600 14px var(--sans); color: var(--yellow); }
.xdownload { position: relative; overflow: hidden; text-align: center; padding: 64px 0; color: #fff; background: linear-gradient(120deg, #191917 0%, #2b2a1c 60%, #46431a 100%); }
.xdownload .kicker { position: relative; color: var(--yellow); }
.xdownload h2 { position: relative; color: #fff; font-size: clamp(30px, 3.6vw, 42px); font-weight: 700; margin-bottom: 12px; }
.xdownload p { position: relative; max-width: 640px; margin: 0 auto 26px; color: #dddbcf; }
.xdownload .btn-row { position: relative; justify-content: center; }
.xcta { background: var(--night-2); color: #e7e6db; text-align: center; padding: 56px 0 60px; }
.xcta p { max-width: 720px; margin: 0 auto 26px; font-size: 19px; line-height: 1.65; }
.xsource { background: #0f0f0e; color: #a9a89d; text-align: center; padding: 26px 0; font-size: 13.5px; }
.xsource strong { display: block; color: #fff; font-size: 15px; margin-bottom: 4px; }

@media screen and (max-width: 1040px) {
  .xcases, .ximpact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .xmaturity { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media screen and (max-width: 720px) {
  .xcases, .ximpact, .xsteps-grid, .xpath, .xmaturity { grid-template-columns: 1fr; }
  .xpath .arrow { transform: rotate(90deg); justify-self: center; }
  .xstat { grid-template-columns: 1fr; padding: 28px 24px; gap: 18px; }
  .xstat .txt { border-left: 0; padding-left: 0; border-top: 1px solid rgba(255,255,255,.18); padding-top: 18px; }
  .xsec .xintro { text-align: left; hyphens: manual; }
  .xhero { padding: 90px 0 110px; }
  .xsec { padding-top: 72px; }
  .xnav .xbrand, .xnav .xpdf { display: none; }
  .xquote { padding: 32px 26px; }
}

/* ---------------------------------------------------------------- the closing block (every page): "Ready to work with us? Let's talk."
   The black bookend of the first homepage, with the logo plate beside the contact table. */
.bookend { position: relative; background: var(--ink); color: var(--on-dark); padding: 96px 0 88px; overflow: hidden; }
.bookend .hero-topo { opacity: .22; object-position: 30% 50%; -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 55%); mask-image: linear-gradient(90deg, transparent 0%, #000 55%); }
.bookend .wrap { position: relative; }
.bookend-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 72px; align-items: center; }
.contact-lede { font: 700 clamp(1.7rem, 3vw, 2.4rem)/1.15 var(--display); letter-spacing: -.015em; color: var(--on-dark); margin: 0 0 10px; }
.contact-lede em { font-style: normal; color: var(--yellow); }
.contact-sub { font-size: 16px; color: var(--on-dark-muted); margin: 0 0 34px; max-width: 56ch; }
.contact-table { max-width: 680px; margin: 0 0 34px; border-top: 1px solid var(--rule-dark); }
.contact-row { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 16px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--rule-dark); }
.contact-row dt { font: 600 11px/1.5 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--yellow); }
.contact-row dd { margin: 0; font-size: 15.5px; font-weight: 500; color: var(--on-dark); overflow-wrap: anywhere; }
.contact-row a { color: var(--on-dark); text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .3); transition: color .15s ease, border-color .15s ease; }
.contact-row a:hover { color: var(--yellow); border-bottom-color: var(--yellow); }
.bookend .plate--logo { justify-self: end; width: 100%; }

/* ---------------------------------------------------------------- footer */
.site-footer { background: var(--ink); color: var(--on-dark); border-top: 1px solid rgba(255, 255, 255, .1); padding: 56px 0 34px; }
.footer-grid { display: grid; grid-template-columns: 1.25fr repeat(4, minmax(0, 1fr)); gap: 36px; }
.footer-brand img { width: 210px; height: auto; margin-bottom: 16px; }
.footer-brand p { font-size: 14px; line-height: 1.55; color: var(--on-dark-muted); max-width: 290px; margin: 0; }
.social { display: flex; gap: 10px; list-style: none; padding: 0; margin: 18px 0 0; }
.social a { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 3px; border: 1px solid rgba(255, 255, 255, .22); color: var(--on-dark); text-decoration: none; transition: background-color .15s, color .15s, border-color .15s; }
.social a:hover { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.site-footer h4 { font: 600 10.5px/1.3 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--yellow); margin: 6px 0 16px; }
.site-footer h4 a { text-decoration: none; color: inherit; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0 0 9px; }
.site-footer li a { font-size: 14px; color: rgba(255, 255, 255, .78); text-decoration: none; }
.site-footer a:hover { color: var(--yellow); }
.footer-sign { margin-top: 52px; padding-top: 30px; border-top: 1px solid rgba(255, 255, 255, .1); text-align: center; }
.footer-sign p { margin: 0; font-size: 13.5px; color: rgba(255, 255, 255, .75); }
.footer-sign .footer-tagline { margin-top: 9px; font: 600 11px/1.4 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--yellow); }
.footer-sign .footer-meta { margin-top: 9px; font-size: 12.5px; color: rgba(255, 255, 255, .5); }
.footer-sign .footer-meta a { color: inherit; }

/* ---------------------------------------------------------------- back to top */
.back-to-top { position: fixed; bottom: 24px; right: 24px; z-index: 40; width: 44px; height: 44px; display: grid; place-items: center; background: var(--ink); color: var(--yellow);
  font-size: 16px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 4px; cursor: pointer; opacity: 0; pointer-events: none; transform: translateY(8px);
  transition: opacity .2s ease, transform .2s var(--ease), background-color .15s ease, color .15s ease; }
.back-to-top.is-shown { opacity: 1; pointer-events: auto; transform: none; }
.back-to-top:hover { background: var(--yellow); color: var(--ink); }

@media screen and (max-width: 1040px) {
  .bookend-grid { grid-template-columns: 1fr; gap: 44px; }
  .bookend .plate--logo { justify-self: start; max-width: 320px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}
@media screen and (max-width: 720px) {
  .bookend { padding: 64px 0 60px; }
  .contact-row { grid-template-columns: 1fr; gap: 4px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .back-to-top { right: 14px; bottom: 14px; }
}

/* ---------------------------------------------------------------- reduced motion: everything is simply there */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .hero-content > *, .hero-plate, .page-hero-copy > *, .page-hero .plate, .js .reveal { opacity: 1 !important; transform: none !important; }
  .js .section-head.reveal::after, .js .milestones li.reveal::before { transform: none !important; }
}

/* ---------------------------------------------------------------- capability statement: two Letter pages, shown on screen as sheets of paper and printed edge to edge */
.cap-body { background: #dcdcd5; }
.cap-bar { position: sticky; top: 0; z-index: 10; background: var(--ink); color: var(--on-dark); }
.cap-bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; flex-wrap: wrap; padding-block: 10px; }
.cap-bar a.back { font: 600 11px/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark); text-decoration: none; }
.cap-bar a.back:hover { color: var(--yellow); }
.cap-sheet { position: relative; width: 8.5in; height: 11in; max-width: 100%; margin: 28px auto; background: #fff; color: var(--text); display: flex; flex-direction: column; overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, .25); font-size: 9.4pt; line-height: 1.45; }
.cap-top { display: flex; justify-content: space-between; align-items: flex-end; gap: .3in; padding: .4in .6in 0; }
.cap-top img { height: 1.02in; width: auto; }
.cap-top .cap-kicker { text-align: right; font: 600 7.4pt/1.6 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.cap-top .cap-kicker b { display: block; color: var(--ink); font-size: 8.6pt; letter-spacing: .16em; }
.cap-title { padding: .22in .6in 0; }
.cap-title h1 { font: 800 23pt/1.06 var(--display); letter-spacing: -.02em; margin: 0 0 .13in; max-width: 6.4in; }
.cap-title p { margin: .16in 0 0; font-size: 10.2pt; line-height: 1.5; color: #333; max-width: 7in; }
.cap-cols { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) 2.5in; gap: .34in; padding: .24in .6in .2in; min-height: 0; }
.cap-sheet h2 { display: flex; align-items: center; gap: 9px; font: 600 7.6pt/1.3 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--yellow-ink); margin: 0 0 .09in; }
.cap-sheet h2::before { content: ''; width: 22px; height: 3px; background: var(--yellow); }
.cap-block + .cap-block { margin-top: .17in; }
.cap-comp { display: grid; grid-template-columns: 1fr 1fr; gap: .09in .3in; margin: 0; padding: 0; list-style: none; }
.cap-comp li { padding-top: .07in; border-top: 1px solid var(--line); }
.cap-comp b { display: block; font: 700 9.6pt/1.25 var(--display); color: var(--ink); }
.cap-comp span { font-size: 8.2pt; line-height: 1.4; color: var(--muted); display: block; }
.cap-sheet .dash { font-size: 9pt; line-height: 1.42; margin: 0; }
.cap-sheet .dash li { margin-bottom: 5px; padding-left: 18px; }
.cap-panel { background: var(--ink); color: var(--on-dark); border-radius: 5px; padding: .22in .22in .18in; align-self: start; }
.cap-panel h2 { color: var(--yellow); }
.cap-panel dl { margin: 0; }
.cap-panel dl div { padding: 5.5px 0; border-top: 1px solid var(--rule-dark); }
.cap-panel dl div:first-child { border-top: 0; padding-top: 0; }
.cap-panel dt { font: 600 6.6pt/1.3 var(--mono); letter-spacing: .13em; text-transform: uppercase; color: var(--on-dark-muted); }
.cap-panel dd { margin: 1px 0 0; font-size: 8.8pt; line-height: 1.35; font-weight: 500; color: #fff; }
.cap-table { width: 100%; border-collapse: collapse; font-size: 8.4pt; line-height: 1.35; }
.cap-table th { text-align: left; font: 600 6.6pt/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 0 8px 5px 0; border-bottom: 2px solid var(--yellow); }
.cap-table td { padding: 6px 8px 6px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.cap-table td:first-child { font-weight: 600; color: var(--ink); }
.cap-people { display: grid; grid-template-columns: 1fr 1fr; gap: .08in .3in; margin: 0; padding: 0; list-style: none; }
.cap-people li { padding-top: .06in; border-top: 1px solid var(--line); font-size: 8.3pt; line-height: 1.38; color: var(--muted); }
.cap-people b { display: block; font: 700 9.2pt/1.25 var(--display); color: var(--ink); }
.cap-people i { font-style: normal; font: 600 6.6pt/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--yellow-ink); display: block; }
.cap-three { display: grid; grid-template-columns: repeat(3, 1fr); gap: .26in; }
.cap-three p { margin: 0; font-size: 8.5pt; line-height: 1.42; color: #3c3c3c; }
.cap-three b { display: block; font: 700 9.6pt/1.25 var(--display); color: var(--ink); margin-bottom: 3px; }
.cap-pics { display: grid; grid-template-columns: 1fr 1fr; gap: .2in; }
.cap-pics figure { margin: 0; position: relative; }
.cap-pics img { width: 100%; height: .86in; object-fit: cover; border-radius: 3px; display: block; }
.cap-pics figcaption { margin-top: 3px; font-size: 7pt; line-height: 1.3; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cap-pad { padding: .42in .6in .1in; flex: 1; min-height: 0; }
.cap-note { margin: .12in 0 0; font-size: 7.8pt; line-height: 1.4; color: var(--muted); }
.cap-foot { margin-top: auto; background: var(--ink); color: #fff; padding: .13in .6in; display: flex; justify-content: space-between; align-items: center; gap: .3in;
  font: 600 6.8pt/1.4 var(--mono); letter-spacing: .13em; text-transform: uppercase; }
.cap-foot span:last-child { color: var(--yellow); }
@media screen and (max-width: 860px) { .cap-sheet { height: auto; min-height: 0; } .cap-cols, .cap-comp, .cap-people, .cap-three, .cap-pics { grid-template-columns: 1fr; } .cap-top, .cap-title, .cap-cols, .cap-pad, .cap-foot { padding-left: 22px; padding-right: 22px; } }
@media print {
  .cap-body { background: #fff; }
  .cap-bar { display: none !important; }
  .cap-sheet { margin: 0; box-shadow: none; width: 8.5in; height: 11in; break-after: page; }
  .cap-sheet:last-of-type { break-after: auto; }
  .cap-panel, .cap-foot, .cap-sheet h2::before, .cap-sheet .blade { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ---------------------------------------------------------------- print and the PDFs made by build.py
   Project sheets, the qualifications page and the capability statement are meant to be printed or attached to a proposal:
   every printed page carries the logo and the firm's name, and nothing that only makes sense on a screen. */
@media print {
  @page { size: Letter; margin: .55in .6in .7in; }
  html { scroll-behavior: auto; }
  body { font-size: 10.5pt; line-height: 1.5; background: #fff; counter-reset: sec; }
  .site-header, .site-footer, .bookend, .ticker, .back-to-top, .xnav, .no-print, .scrim, .menu-toggle, .sector-nav, .hero-topo, .topo-note, .filterbar, .filter-status,
  .aside-box.no-print, .xcta .btn, .xdownload, .copy-btn, .skip, .plate-ticks { display: none !important; }
  .js .reveal, .hero-content > *, .hero-plate, .page-hero-copy > *, .page-hero .plate { opacity: 1 !important; transform: none !important; animation: none !important; }
  .js .section-head.reveal::after { transform: none !important; }
  .wrap { max-width: none; padding: 0; }
  a { text-decoration: none; }
  .print-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-bottom: 10px; margin-bottom: 18px; border-bottom: 2px solid var(--yellow); }
  .print-head img { height: 74px; width: auto; }
  .print-head span { font: 600 8pt/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); text-align: right; }
  .print-foot { display: block; margin-top: 18px; padding-top: 8px; border-top: 1px solid var(--line-strong); font: 500 7.5pt/1.5 var(--mono); letter-spacing: .06em; color: var(--muted); }
  /* the black field becomes white paper with black type */
  .hero, .section--dark { background: #fff !important; color: var(--text) !important; }
  .hero h1, .section--dark h2, .section--dark h3, .article-hero h1 { color: var(--ink) !important; }
  .hero .eyebrow, .on-dark .eyebrow { color: var(--yellow-ink); }
  .hero-description, .article-hero .dek, .section--dark p { color: var(--muted) !important; }
  .page-hero, .article-hero { padding: 0 0 14px; }
  .page-hero h1, .article-hero h1 { font-size: 22pt; max-width: none; margin-bottom: 8px; }
  .crumbs { display: none; }
  .article-hero .meta-row { color: var(--muted); margin-top: 8px; }
  .hero .meta-grid > div, .on-dark .meta-grid > div { border-left-color: var(--line); }
  .hero .meta-grid dt { color: var(--muted); } .hero .meta-grid dd { color: var(--ink); } .hero .meta-grid dd small { color: var(--muted); }
  .article-hero .meta-grid { margin-top: 16px; }
  .page-hero-inner.has-plate { grid-template-columns: minmax(0, 1fr) 2.2in; gap: .3in; }
  .plate, .hero-plate { box-shadow: none; border: 1px solid var(--line-strong); border-bottom: 4px solid var(--yellow); }
  .cover-wrap { margin-top: 0; }
  .article-cover { aspect-ratio: auto; height: 2.5in; box-shadow: none; border-radius: 4px; }
  .cover-figure { break-inside: avoid; }
  .section, .section--tight { padding: 16px 0; }
  .section--soft { background: #fff; }
  .section-head { margin-bottom: 14px; padding-bottom: 8px; gap: 12px; break-after: avoid; }
  .section-no { font-size: 26pt; -webkit-text-stroke: 1px var(--yellow-dark); }
  .section-head h2 { font-size: 15pt; }
  .article-grid, .story-grid { display: block; padding: 14px 0 0; }
  .aside-inner { position: static; display: block; }
  .aside-box { border: 0; border-top: 2px solid var(--yellow); border-radius: 0; padding: 10px 0 0; margin-top: 14px; }
  .sheet-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 18px; }
  .sheet-facts > div, .sheet-facts > div:first-child { border-top: 1px solid var(--line); padding: 7px 0; }
  .prose { max-width: none; font-size: 10.5pt; line-height: 1.5; }
  .prose h2 { font-size: 13pt; margin-top: 1.1em; break-after: avoid; }
  .prose h3 { break-after: avoid; }
  .results { margin-bottom: 14px; break-inside: avoid; }
  .results div { padding: 12px 14px; }
  .results b { font-size: 20pt; }
  .gallery { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .gallery figcaption { font-size: 8pt; }
  .card, .area, .results, .record li, .milestones li, .person, .copy-block, .prose .figures, .prose .callout, .prose li, .frame, .map-plate, .side-facts, tr { break-inside: avoid; }
  .area { grid-template-columns: 1.2fr .8fr; gap: .3in; padding: 14px 0; }
  .overview, .about-grid, .sector-grid { grid-template-columns: 1.2fr .8fr; gap: .3in; }
  .two-col { grid-template-columns: 1fr 1fr; gap: .3in; }
  .three-col { grid-template-columns: repeat(var(--cols, 3), 1fr); gap: .2in; }
  .people { grid-template-columns: 1fr 1fr; gap: 0 .3in; }
  .person { padding: 10px 0; }
  .principles { grid-template-columns: repeat(4, 1fr); }
  .steps { grid-template-columns: repeat(5, 1fr); }
  .card-grid, .services-grid, .map-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .service-card { padding: 14px; }
  .strip { aspect-ratio: 4; }
  .hero, .section--dark, .results, .receive, .cover, .badge, .tag-chip, .blade, .code, .firm-tag, .stats, .meta-grid > div::before, .section-head::after, .points li::before, .avatar,
  .copy-block, .side-facts, .plate, .stamp, .xbody, .xstat, .xstep--b, .xgroup > h3, .pill, .xmaturity > div, .xguard, .xquote, .xsource, .xhero, .prose blockquote, .prose .callout, .downloads .dl-icon {
    -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  /* long reference pages (qualifications) print compactly */
  .facts-table th, .facts-table td { padding: 6px 0; }
  .facts-table td { font-size: 9.5pt; } .facts-table td small { font-size: 8pt; }
  .copy-block { padding: 10px 14px; } .copy-block p { font-size: 9.2pt; line-height: 1.45; }
  .cap-col h3 { font-size: 10.5pt; margin-bottom: 6px; padding-bottom: 6px; } .cap-col .dash { font-size: 8.8pt; } .cap-col .dash li { margin-bottom: 3px; padding-left: 14px; }
  .ed-table { font-size: 8.6pt; } .ed-table th { font-size: 6.6pt; padding: 4px 8px 5px 0; } .ed-table td { padding: 6px 8px 6px 0; }
  .person h3 { font-size: 10.5pt; } .person p { font-size: 9pt; } .person .role { font-size: 7pt; margin-bottom: 3px; }
  .person { grid-template-columns: 40px minmax(0, 1fr); gap: 10px; } .avatar { width: 40px; height: 40px; font-size: 11pt; }
  .sister { margin-top: 14px; padding: 12px 16px; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; }
  .codes .code { font-size: 7pt; padding: 2px 6px; }
  .work-list li { padding: 7px 0; } .work-list .w-title { font-size: 10pt; } .work-list .w-text { font-size: 9pt; }
  .asof { margin-top: 8px; font-size: 7pt; }
  /* the interactive guide keeps its own dark title page */
  .xhero { background: var(--ink) !important; color: #fff !important; padding: 70px 0 80px; }
  .xhero h1 { color: #fff !important; }
  .xsec { padding: 36px 0 8px; }
  .xsec h2 { font-size: 30pt; }
  .ximpact article, .xkey, .xguard, .xmaturity, .xstep, .xstat, .xquote, .xcase { break-inside: avoid; }
  .xgroup { break-inside: auto; box-shadow: none; border: 1px solid #ddd; }
  #use-cases, #impact, #maturity, #next-steps { break-before: page; }
  .xsec h2, .xlabel { break-after: avoid; }
  .ximpact article, .xkey { box-shadow: none; border: 1px solid #ddd; }
  .ximpact article { border-top: 4px solid var(--yellow); }
  .xcases, .ximpact { grid-template-columns: repeat(3, 1fr); }
  .xcta { padding: 26px 0; break-inside: avoid; }
}
