/* PAUSA365 — site.css
   One measurement: stem 18, interval 6, ratio 3:1. See DESIGN-SYSTEM.md. */

@font-face {
  font-family: "Geist";
  src: url("../fonts/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("../fonts/GeistMono-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

/* ---------- 1. Tokens ---------- */
:root {
  --navy: #061a32;
  --navy-2: #0b2542;
  --navy-3: #123150;
  --grey: #98adb6;
  --ice: #e3f6fd;
  --yellow: #f8ac2c;
  --paper: #f4f5f5;
  --white: #ffffff;
  --ink-2: #4a5d6e;
  --line-d: rgba(244, 245, 245, 0.14);
  --line-l: rgba(6, 26, 50, 0.14);
  --line-strong-d: rgba(244, 245, 245, 0.4);
  --line-strong-l: rgba(6, 26, 50, 0.4);
  --error: #b3261e;

  --s-1: 6px;  --s-2: 12px; --s-3: 18px; --s-4: 24px; --s-6: 36px;
  --s-8: 48px; --s-12: 72px; --s-16: 96px; --s-24: 144px; --s-32: 192px;

  --gutter: 24px;
  --margin: 48px;
  --max: 1632px;
  --header: 72px;
  --section: var(--s-24);

  --sans: "Geist", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, Menlo, monospace;

  --e-stop: cubic-bezier(0.2, 0, 0, 1);
  --e-move: cubic-bezier(0.6, 0, 0.2, 1);
  --t-1: 180ms;
  --t-2: 360ms;
  --t-3: 600ms;
  --t-4: 1200ms;
}
@media (max-width: 1023px) { :root { --gutter: 18px; --margin: 36px; --section: var(--s-16); } }
@media (max-width: 599px)  { :root { --gutter: 12px; --margin: 24px; --section: var(--s-12); } }

/* Surface: every section declares its own. Colour roles resolve from it. */
.dark, [data-surface="dark"] {
  --bg: var(--navy); --fg: var(--paper); --fg-2: var(--grey);
  --line: var(--line-d); --line-strong: var(--line-strong-d); --panel: var(--navy-2); --tile: var(--navy-2); --inverse: var(--navy); --focus: var(--yellow); --solid-hover: var(--ice);
  background: var(--bg); color: var(--fg);
}
.light, [data-surface="light"] {
  --bg: var(--paper); --fg: var(--navy); --fg-2: var(--ink-2);
  --line: var(--line-l); --line-strong: var(--line-strong-l); --panel: var(--white); --tile: var(--white); --inverse: var(--paper); --focus: var(--navy); --solid-hover: var(--navy-3);
  background: var(--bg); color: var(--fg);
}
.white { --bg: var(--white); --panel: var(--paper); --tile: var(--paper); background: var(--white); }

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: var(--header); }
body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 18px;
  line-height: 1.55;
  background: var(--navy);
  color: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01" 0;
}
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: var(--yellow); color: var(--navy); }
:focus-visible { outline: 2px solid var(--focus, var(--yellow)); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: var(--margin); top: -60px; z-index: 100; background: var(--yellow); color: var(--navy); padding: 12px 18px; font: 400 12px/1.5 var(--mono); letter-spacing: .16em; text-transform: uppercase; }
.skip:focus { top: 12px; }

/* ---------- 3. Grid ---------- */
.wrap { width: 100%; max-width: calc(var(--max) + var(--margin) * 2); margin-inline: auto; padding-inline: var(--margin); }
.grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); column-gap: var(--gutter); }
:where(.c1-2) { grid-column: 1 / 3; } :where(.c1-3) { grid-column: 1 / 4; } :where(.c1-4) { grid-column: 1 / 5; }
:where(.c1-5) { grid-column: 1 / 6; } :where(.c1-6) { grid-column: 1 / -1; } :where(.c2-6) { grid-column: 2 / -1; }
:where(.c3-6) { grid-column: 3 / -1; } :where(.c3-5) { grid-column: 3 / 6; } :where(.c4-6) { grid-column: 4 / -1; }
:where(.c5-6) { grid-column: 5 / -1; } :where(.c2-5) { grid-column: 2 / 6; } :where(.c3-4) { grid-column: 3 / 5; }
@media (max-width: 1023px) {
  :where(.c3-5), :where(.c3-6), :where(.c2-5), :where(.c2-6) { grid-column: 2 / -1; }
  :where(.c1-2) { grid-column: 1 / 4; } :where(.c1-3), :where(.c1-4), :where(.c1-5) { grid-column: 1 / -1; }
  :where(.c4-6) { grid-column: 1 / -1; }
  :where(.c1-2), :where(.c3-4), :where(.c5-6) { grid-column: span 3; }
}
@media (max-width: 1023px) {
  /* A section title and the text beside it stack on narrow screens; keep air between them */
  .grid > .h2 + .body-long, .grid > .h2 + .stack { margin-top: var(--s-6); }
}
@media (max-width: 599px) {
  :where([class*="c1-"], [class*="c2-"], [class*="c3-"], [class*="c4-"], [class*="c5-"]) { grid-column: 1 / -1; }
}

.section { padding-block: var(--section); position: relative; }

/* ---------- 4. Type ---------- */
.display { font-weight: 300; font-size: clamp(36px, 5vw, 72px);   line-height: 1.04; letter-spacing: -0.03em; text-wrap: balance; }
.h2 { font-weight: 300; font-size: clamp(30px, 3.34vw, 48px); line-height: 1.08; letter-spacing: -0.02em; text-wrap: balance; }
.h3 { font-weight: 400; font-size: clamp(21px, 2.08vw, 30px); line-height: 1.2; letter-spacing: -0.01em; text-wrap: balance; }
.lead { font-weight: 300; font-size: 21px; line-height: 1.5; letter-spacing: -0.005em; text-wrap: pretty; }
.body-long { font-size: clamp(18px, 1.46vw, 21px); line-height: 1.55; text-wrap: pretty; max-width: 34em; }
.body { font-size: 18px; line-height: 1.55; text-wrap: pretty; }
.metric { font-family: var(--mono); font-weight: 300; font-size: clamp(54px, 6.67vw, 96px); line-height: 1; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.data { font-family: var(--mono); font-weight: 400; font-size: 14px; line-height: 1.5; font-variant-numeric: tabular-nums; }
.label { font-family: var(--mono); font-weight: 400; font-size: 12px; line-height: 1.5; letter-spacing: 0.16em; text-transform: uppercase; }
.num { font-family: var(--mono); font-weight: 400; font-size: 0.86em; letter-spacing: -0.01em; }
.muted { color: var(--fg-2); }
.stack > * + * { margin-top: var(--s-3); }
@media (min-width: 1024px) { br.d { display: inline; } }
@media (max-width: 1023px) { br.d { display: none; } }
@media (max-width: 599px) { .data { font-size: 13px; } }

/* ---------- 5. Running head (hairline everything hangs from) ---------- */
.runner { display: flex; justify-content: space-between; gap: var(--s-4); margin-bottom: var(--s-16); font: 400 12px/1.5 var(--mono); letter-spacing: 0.2em; text-transform: uppercase; color: var(--fg-2); position: relative }
.runner::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0;
  transform-origin: left; transform: scaleX(var(--draw, 1)); transition: transform var(--t-3) var(--e-stop);
}
.runner b { font-weight: 400; color: var(--fg); }
@media (max-width: 599px) { .runner { margin-bottom: var(--s-8); } .runner span:last-child { display: none; } }

/* ---------- 6. Marker ---------- */
.marker { display: block; width: 48px; height: 6px; background: var(--yellow); margin-bottom: var(--s-4); transform-origin: left; }

/* ---------- 7. Buttons and links ---------- */
.btn {
  --b-fg: var(--fg); --b-bg: transparent; --b-hover-fg: var(--inverse); --b-hover-bg: var(--fg);
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; gap: var(--s-2);
  height: 48px; padding: 0 var(--s-4);
  font: 400 12px/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--b-fg); background: var(--b-bg);
  box-shadow: inset 0 0 0 1px var(--b-line, currentColor);
  overflow: hidden; white-space: nowrap;
  transition: color var(--t-2) var(--e-stop);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--b-hover-bg);
  clip-path: inset(0 100% 0 0); transition: clip-path var(--t-2) var(--e-stop);
}
.btn:hover { color: var(--b-hover-fg); }
.btn:hover::before { clip-path: inset(0 0 0 0); }
.btn .arw { width: 12px; height: 12px; flex: none; transition: transform var(--t-2) var(--e-stop); }
.btn--solid { --b-bg: var(--fg); --b-fg: var(--inverse); --b-line: var(--fg); --b-hover-bg: var(--solid-hover); --b-hover-fg: var(--inverse); }
.dark .btn--solid { --b-hover-fg: var(--navy); }
.light .btn--solid { --b-hover-fg: var(--paper); }
.btn--signal { --b-bg: var(--yellow); --b-fg: var(--navy); --b-line: var(--yellow); --b-hover-bg: var(--paper); --b-hover-fg: var(--navy); }
.light .btn--signal { --b-hover-bg: var(--navy); --b-hover-fg: var(--paper); }
.btn--line { --b-line: var(--line-strong); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 1; color: var(--fg-2); --b-line: var(--line); pointer-events: none; }
.btns { display: flex; flex-wrap: wrap; gap: var(--s-2); }
@media (max-width: 599px) { .btns .btn { flex: 1 1 100%; justify-content: space-between; } }

.link { display: inline-flex; align-items: center; gap: var(--s-2); font: 400 12px/1.5 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; padding-bottom: 6px; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat }
.link:hover { animation: redraw var(--t-3) var(--e-stop); }
.link .arw { width: 12px; height: 12px; }
@keyframes redraw { 0% { background-size: 100% 1px; background-position: 100% 100%; } 49% { background-size: 0 1px; background-position: 100% 100%; } 50% { background-size: 0 1px; background-position: 0 100%; } 100% { background-size: 100% 1px; background-position: 0 100%; } }
.prose a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; text-decoration-color: var(--line); transition: text-decoration-color var(--t-1); }
.prose a:hover { text-decoration-color: currentColor; }

/* ---------- 8. Header ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header);
  color: var(--fg); background: var(--bg);
  transition: transform var(--t-3) var(--e-move), background-color var(--t-1), color var(--t-1);
}
.header::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--line); }
.header.is-hidden { transform: translateY(-100%); }
.header .wrap { height: 100%; align-items: center; justify-content: space-between; gap: var(--s-4) }
.brand { display: flex; align-items: center; height: 36px; }
.brand svg { height: 36px; width: auto; }
.brand .wm { fill: currentColor; }
.brand .wm-num { fill: var(--fg-2); }
.brand .rule { fill: currentColor; opacity: .25; }
/* Header on the page grid: brand in column 1, links from the column 4 line, contact and language in column 6 */
.header .wrap { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); column-gap: var(--gutter); }
.brand { grid-column: 1; justify-self: start; }
.nav { grid-column: 4 / -1; display: grid; grid-template-columns: subgrid; align-items: center; }
.nav-l { grid-column: 1 / 3; display: flex; align-items: center; gap: var(--s-6); padding-left: var(--s-2); }
.nav-r { grid-column: 3; display: flex; align-items: center; justify-content: space-between; padding-left: var(--s-2); }
.menu-btn { grid-column: 4 / -1; justify-self: end; }
.nav a.nl { font: 400 15px/1 var(--sans); position: relative; padding-block: 12px; }
.nav a.nl::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--yellow); transform: scaleX(0); transform-origin: right; transition: transform var(--t-2) var(--e-stop); }
.nav a.nl:hover::after, .nav a.nl[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav .btn { height: 36px; padding: 0 var(--s-3); }
.menu-btn { display: none; height: 36px; padding: 0 0 0 var(--s-3); font: 400 12px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; align-items: center; gap: var(--s-2); }
.menu-btn i { display: grid; gap: 6px; width: 18px; }
.menu-btn i::before, .menu-btn i::after { content: ""; height: 2px; background: currentColor; transition: transform var(--t-2) var(--e-stop); }
.menu-btn[aria-expanded="true"] i::before { transform: translateY(4px); }
.menu-btn[aria-expanded="true"] i::after { transform: translateY(-4px); }
@media (max-width: 1023px) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
}
.drawer {
  position: fixed; inset: var(--header) 0 0; z-index: 49; display: flex; flex-direction: column; justify-content: space-between;
  padding: var(--s-6) var(--margin) var(--s-6);
  clip-path: inset(0 0 100% 0); transition: clip-path var(--t-3) var(--e-move), visibility 0s linear var(--t-3); visibility: hidden;
}
.drawer.is-open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path var(--t-3) var(--e-move), visibility 0s; }
.drawer ol { counter-reset: d; }

/* ---------- 9. Constructed icons ---------- */
.ico { width: 30px; height: 30px; fill: currentColor; shape-rendering: crispEdges; }
.ico-s { width: 12px; height: 12px; fill: currentColor; shape-rendering: crispEdges; }
.arw { shape-rendering: crispEdges; }

/* ---------- 10. Image slots (until PAUSA's own material is supplied) ---------- */
.slot { position: relative; background: var(--navy-2); overflow: hidden; }
.slot::before { content: ""; display: block; padding-top: calc(100% / var(--r, 1.5)); }
.slot > img, .slot > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slot--field::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(90deg, transparent 36px, var(--navy-2) 36px),
    linear-gradient(transparent 36px, var(--navy-2) 36px);
  background-color: var(--navy-3);
  background-size: 48px 48px; background-position: 12px 12px;
  opacity: .22;
}
.slot .slot-note { position: absolute; z-index: 1; left: var(--s-3); bottom: var(--s-3); right: var(--s-3); display: flex; justify-content: space-between; gap: var(--s-2); color: var(--grey); }
.slot .slot-note .label { font-size: 12px; }
.r-32 { --r: 1.5; } .r-169 { --r: 1.7778; } .r-31 { --r: 3; } .r-11 { --r: 1; } .r-45 { --r: 0.8; } .r-21 { --r: 2; } 
figcaption { margin-top: var(--s-2); color: var(--fg-2); }

/* Extent frame: four ticks, never closed */
.frame { position: absolute; inset: var(--fi, 0); pointer-events: none; z-index: 2; color: var(--frame, var(--yellow)); transition: inset var(--t-2) var(--e-stop); }
.frame i { position: absolute; width: 18px; height: 18px; }
.frame i::before, .frame i::after { content: ""; position: absolute; background: currentColor; }
.frame i::before { width: 18px; height: 6px; } .frame i::after { width: 6px; height: 18px; }
.frame i:nth-child(1) { left: 0; top: 0; }
.frame i:nth-child(2) { right: 0; top: 0; } .frame i:nth-child(2)::before, .frame i:nth-child(2)::after { right: 0; }
.frame i:nth-child(3) { left: 0; bottom: 0; } .frame i:nth-child(3)::before, .frame i:nth-child(3)::after { bottom: 0; }
.frame i:nth-child(4) { right: 0; bottom: 0; } .frame i:nth-child(4)::before, .frame i:nth-child(4)::after { right: 0; bottom: 0; }

/* ---------- 11. Phase rule ---------- */
.phase { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; }
.phase > * { height: 6px; box-shadow: inset 0 0 0 1px var(--fg-2); transition: background-color var(--t-2) var(--e-stop), box-shadow var(--t-2); }
.phase > .done { background: var(--fg); box-shadow: none; }
.phase > .now { background: var(--yellow); box-shadow: none; }
.phase-labels { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; margin-top: var(--s-2); }
.phase-labels li { font: 400 12px/1.5 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--fg-2); padding-right: var(--s-1); }
@media (max-width: 599px) {
  .flow { display: grid; gap: 0; }
  .flow .phase, .flow .phase-labels { grid-auto-flow: row; grid-auto-columns: auto; }
}

/* Vertical flow for long processes (case studies) */
.steps { counter-reset: st; }
.steps > li { display: grid; grid-template-columns: 6px 1fr; column-gap: var(--s-4); position: relative; padding-bottom: var(--s-6); }
.steps > li::before { content: ""; grid-row: 1 / span 2; background: transparent; box-shadow: inset 0 0 0 1px var(--fg-2); margin-bottom: -30px; }
.steps > li.done::before { background: var(--fg); box-shadow: none; }
.steps > li.now::before { background: var(--yellow); box-shadow: none; }
.steps > li:last-child::before { margin-bottom: 0; }
.steps h3 { font: 400 12px/1.5 var(--mono); letter-spacing: .16em; text-transform: uppercase; padding-top: 0; }
.steps h3::before { counter-increment: st; content: counter(st, decimal-leading-zero) "  "; color: var(--fg-2); white-space: pre; }
.steps p { margin-top: var(--s-1); color: var(--fg-2); max-width: 48ch; }

/* ---------- 12. Components ---------- */

/* Metrics */
.metrics { display: grid }
.metrics > div { padding-top: var(--s-3) }
.metrics .label { display: block }
.metrics .is-key { border-top-color: var(--yellow); }
@media (max-width: 1023px) { .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Definition table */
.dtable > div { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); column-gap: var(--gutter); border-top: 1px solid var(--line); padding-block: var(--s-3); }
.dtable > div:last-child { border-bottom: 1px solid var(--line); }
.dtable dt { grid-column: 1 / 3; font: 400 12px/1.75 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--fg-2); }
.dtable dd { grid-column: 3 / -1; }
@media (max-width: 599px) { .dtable dt, .dtable dd { grid-column: 1 / -1; } .dtable dd { margin-top: var(--s-1); } }

/* Meta strip (Arup-style) */
.meta { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); column-gap: var(--gutter); row-gap: var(--s-4); }
.meta > div { border-top: 1px solid var(--line); padding-top: var(--s-2); }
.meta dt { color: var(--fg-2); margin-bottom: var(--s-1); }
.meta dd { font-size: 15px; line-height: 1.45; font-weight: 400; }
@media (max-width: 1023px) { .meta { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Pull statement */
.pull { font-weight: 300; font-size: clamp(24px, 2.5vw, 36px); line-height: 1.2; letter-spacing: -0.02em; text-wrap: balance; }

/* Project tile */
.tile { display: block; position: relative; }
.tile .slot { margin-bottom: var(--s-3); }
/* Tile hover: one yellow marker at the top edge (the four corners stay for extent frames in content) */
.tile .frame { inset: 0 auto auto 0; width: 48px; height: 6px; background: var(--yellow); transform: scaleX(0); transform-origin: left; transition: transform var(--t-3) var(--e-stop); }
.tile .frame i { display: none; }
.tile:hover .frame, .tile:focus-visible .frame { transform: none; }
.tile .t-role { color: var(--fg-2); display: block; margin-bottom: var(--s-1); }
.tile .t-name { margin-bottom: var(--s-2); }
.tile .t-line { color: var(--fg-2); max-width: 46ch; }
.tile .t-foot { display: flex; justify-content: space-between; gap: var(--s-3); border-top: 1px solid var(--line); margin-top: var(--s-3); padding-top: var(--s-2) }

/* ---------- 13. Map ---------- */
.map { position: relative; }
.map svg { width: 100%; height: auto; overflow: visible; }
.map .land { fill: var(--navy-2); }
.map .coast { fill: none; stroke: var(--grey); stroke-width: 1; vector-effect: non-scaling-stroke; opacity: .55; }
.map .barrio { fill: var(--navy-2); stroke: rgba(152,173,182,.18); stroke-width: 1; vector-effect: non-scaling-stroke; transition: fill var(--t-1); }
.map .barrio.is-on { fill: var(--navy-3); }
.map .pt { fill: var(--grey); transition: fill var(--t-1); }
.map .pt.is-dim { fill: var(--navy-3); }
.map .pt.is-cur { fill: var(--yellow); }
.js .map[data-ready]:not(.is-drawn) .pt { visibility: hidden; }
.map .hit { fill: transparent; cursor: crosshair; }
.map .mun-label { font: 400 12px/1 var(--mono); letter-spacing: .2em; fill: var(--grey); text-transform: uppercase; }
.map .grat { stroke: var(--line-d); stroke-width: 1; vector-effect: non-scaling-stroke; }
.map .grat-t { font: 400 9px/1 var(--mono); letter-spacing: .08em; fill: var(--grey); opacity: .7; }
.readout { display: flex; gap: var(--s-4); flex-wrap: wrap; color: var(--fg-2); }
.readout b { font-weight: 400; color: var(--fg); }

/* Point record card (coastal case study / flagship) */
.record { background: var(--panel); padding: var(--s-4); position: relative; }
.record .label { color: var(--fg-2); }
.record h3 { margin: var(--s-1) 0 var(--s-3); }
.record dl > div { display: grid; grid-template-columns: 96px 1fr; gap: var(--s-2); border-top: 1px solid var(--line); padding-block: var(--s-1); font-size: 15px; line-height: 1.45; }
.record dt { font: 400 12px/2 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--fg-2); }

.muns { display: grid; }
.muns button { display: grid; grid-template-columns: 1fr auto 72px; align-items: center; gap: var(--s-3); text-align: left; padding: var(--s-2) 0; border-top: 1px solid var(--line); font-size: 15px; font-weight: 400; transition: color var(--t-1); }
.muns button:last-child { border-bottom: 1px solid var(--line); }
.muns button .bar { height: 6px; background: var(--fg-2); transform-origin: left; transform: scaleX(var(--v, 1)); transition: background-color var(--t-1); }
.muns button[aria-pressed="true"] .bar { background: var(--fg); }
.muns button[aria-pressed="false"].has-sel { color: var(--fg-2); }

/* ---------- 14. Forms ---------- */
.field { display: grid; gap: var(--s-1); }
.field label, .field .flabel { font: 400 12px/1.5 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--fg-2); }
.field .req { color: var(--fg); }
.field .hint { font-size: 15px; line-height: 1.6; color: var(--fg-2); max-width: 40em; }
.input {
  width: 100%; height: 54px; padding: 0; border: 0; border-radius: 0; background: transparent;
  border-bottom: 1px solid var(--line-strong); font: 300 21px/1.3 var(--sans); color: var(--fg);
  transition: border-color var(--t-1), box-shadow var(--t-1);
}
textarea.input { height: auto; min-height: 144px; padding-top: var(--s-2); resize: vertical; line-height: 1.45; }
select.input { appearance: none; -webkit-appearance: none; padding-right: 36px; cursor: pointer;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='%23061A32' shape-rendering='crispEdges'%3E%3Crect x='1' y='3' width='2' height='2'/%3E%3Crect x='3' y='5' width='2' height='2'/%3E%3Crect x='5' y='7' width='2' height='2'/%3E%3Crect x='7' y='5' width='2' height='2'/%3E%3Crect x='9' y='3' width='2' height='2'/%3E%3C/svg%3E") right 0 top 50% / 12px 12px no-repeat; }
.input:focus { outline: none; border-bottom-color: var(--focus); box-shadow: 0 1px 0 var(--focus); }
.input::placeholder { color: var(--fg-2); opacity: .7; }
.field.is-error .input { border-bottom-color: var(--error); }
.field .err { font-size: 15px; color: var(--error); display: none; }
.field.is-error .err { display: block; }
.file { display: flex; align-items: center; gap: var(--s-3); min-height: 54px; border-bottom: 1px dashed var(--line-strong); cursor: pointer; }
.field input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.field input[type=file]:focus-visible + .hint, .field:focus-within .file .btn { outline: 2px solid var(--yellow); outline-offset: 2px; }

/* ---------- 15. Footer ----------
   One field photograph. The page fades into its mist, the surveyor stands in the open third column,
   brand at left, four small link columns at right, the copyright on the centre line. */
.footer { position: relative; overflow: hidden; display: flex; min-height: clamp(560px, 46vw, 720px); background: var(--navy); --fade: var(--navy); }
body:has(main > :last-child[data-surface="light"]) .footer { --fade: var(--paper); }
body:has(main > :last-child.white) .footer { --fade: var(--white); }
.f-photo { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: calc(100% + 48px); transform: translateY(var(--fy, 0px)); }
/* the fade from the page colour eases out, so there is no knee where the photo starts */
.footer::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(color-mix(in srgb, var(--fade) 100%, transparent) 0%, color-mix(in srgb, var(--fade) 94%, transparent) 7%, color-mix(in srgb, var(--fade) 82%, transparent) 14%, color-mix(in srgb, var(--fade) 64%, transparent) 22%, color-mix(in srgb, var(--fade) 45%, transparent) 30%, color-mix(in srgb, var(--fade) 28%, transparent) 38%, color-mix(in srgb, var(--fade) 15%, transparent) 46%, color-mix(in srgb, var(--fade) 6%, transparent) 54%, color-mix(in srgb, var(--fade) 0%, transparent) 62%), linear-gradient(rgba(6, 26, 50, 0) 40%, rgba(6, 26, 50, .6) 72%, rgba(6, 26, 50, .86)); }
.f-in { position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: flex-end; width: 100%; padding-block: var(--s-16) var(--s-4); }
.f-main { align-items: end; row-gap: var(--s-8); }
.f-brand { grid-column: 1 / 3; }
.f-logo { display: inline-block; color: var(--paper); }
.f-logo svg { height: 30px; width: auto; display: block; }
.f-logo .wm { fill: currentColor; } .f-logo .wm-num { fill: var(--grey); } .f-logo .rule { fill: currentColor; opacity: .25; }
.f-brand p { margin-top: var(--s-3); max-width: 28ch; font-size: 15px; color: var(--ice); }
.f-cols { grid-column: 4 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--gutter); align-items: start; }
.footer h2 { color: var(--grey); margin-bottom: var(--s-1); }
.footer ul li a, .footer ul li button { display: inline-block; padding-block: 4px; font-size: 14px; line-height: 1.6; font-weight: 400; text-align: left; color: var(--paper); }
.footer ul a:hover, .footer ul button:hover { color: var(--yellow); }
.f-base { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-1) var(--s-4); margin-top: var(--s-8); color: var(--grey); }
.f-social { display: flex; gap: var(--s-3); }
.footer .f-social li a { padding-block: 0; font: inherit; color: var(--grey); transition: color var(--t-1); }
.footer .f-social a::before { content: none; }
@media (hover: hover) { .footer .f-social li a:hover { color: var(--paper); } }
@media (max-width: 1023px) { .f-brand, .f-cols { grid-column: 1 / -1; } }
@media (max-width: 639px) {
  .footer { min-height: 0; }
  .footer::before { background: linear-gradient(color-mix(in srgb, var(--fade) 100%, transparent) 0%, color-mix(in srgb, var(--fade) 94%, transparent) 4%, color-mix(in srgb, var(--fade) 82%, transparent) 8%, color-mix(in srgb, var(--fade) 64%, transparent) 12%, color-mix(in srgb, var(--fade) 45%, transparent) 17%, color-mix(in srgb, var(--fade) 28%, transparent) 21%, color-mix(in srgb, var(--fade) 15%, transparent) 25%, color-mix(in srgb, var(--fade) 6%, transparent) 30%, color-mix(in srgb, var(--fade) 0%, transparent) 34%), linear-gradient(rgba(6, 26, 50, .25) 24%, rgba(6, 26, 50, .88) 56%); }
  .f-in { padding-top: 28svh; }
  .f-cols { grid-template-columns: 1fr 1fr; row-gap: var(--s-4); }
}

/* ---------- 16. Cookie banner ---------- */
.consent-h { margin: 0; }
.consent { position: fixed; z-index: 60; left: var(--margin); bottom: var(--s-4); width: min(432px, calc(100vw - var(--margin) * 2)); padding: var(--s-4); background: var(--white); color: var(--navy); box-shadow: inset 0 0 0 1px var(--line-l);
  --fg: var(--navy); --fg-2: var(--ink-2); --line: var(--line-l); --inverse: var(--paper);
  transform: translateY(calc(100% + 48px)); transition: transform var(--t-3) var(--e-stop); }
.consent.is-open { transform: none; }
.consent p { font-size: 15px; line-height: 1.5; margin: var(--s-2) 0 var(--s-3); color: var(--ink-2); }
.consent .btns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.consent .btn { padding: 0; justify-content: center; font-size: 12px; letter-spacing: .1em; --b-line: rgba(6,26,50,.4); }
.consent .prefs { display: none; margin-bottom: var(--s-3); }
.consent.is-custom .prefs { display: block; }
.consent .prefs label { display: grid; grid-template-columns: 1fr auto; gap: var(--s-2); align-items: center; border-top: 1px solid var(--line-l); padding-block: var(--s-2); font-size: 15px; font-weight: 400; }
.consent .prefs small { display: block; font-size: 13px; color: var(--ink-2); font-weight: 300; }
.toggle { appearance: none; -webkit-appearance: none; width: 36px; height: 18px; margin: 0; box-shadow: inset 0 0 0 1px var(--navy); position: relative; cursor: pointer; }
.toggle::after { content: ""; position: absolute; top: 3px; left: 3px; width: 12px; height: 12px; background: var(--navy); transition: transform var(--t-2) var(--e-stop); }
.toggle:checked { background: var(--navy); }
.toggle:checked::after { background: var(--paper); transform: translateX(18px); }
.toggle:disabled { opacity: .5; cursor: not-allowed; }

/* ---------- 17. Reveal motion (slide along own axis, no fades) ---------- */
.js [data-rv="lines"]:not(.is-split):not(.is-in) { visibility: hidden; }
.js .rv-line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.js .rv-line > span { display: block; transform: translateY(105%); transition: transform var(--t-3) var(--e-stop); transition-delay: calc(var(--i, 0) * 60ms); }
.js .is-in .rv-line > span, .js .rv-line.is-in > span { transform: none; }
.js [data-rv="rule"] { --draw: 0; }
.js [data-rv="rule"].is-in { --draw: 1; }
.js [data-rv="marker"] { transform: scaleX(0); transition: transform var(--t-3) var(--e-stop) 240ms; }
.js [data-rv="marker"].is-in { transform: none; }
.js [data-rv="clip"] { clip-path: inset(0 0 100% 0); transition: clip-path var(--t-3) var(--e-stop); }
.js [data-rv="clip"].is-in { clip-path: inset(0 0 0 0); }
.js [data-rv="bars"] .bar { transform: scaleX(0); transition: transform var(--t-3) var(--e-stop); transition-delay: calc(var(--i, 0) * 60ms + 200ms); }
.js [data-rv="bars"].is-in .bar { transform: scaleX(var(--v, 1)); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; transition-delay: 0ms !important; }
  .js .rv-line > span, .js [data-rv="marker"], .js [data-rv="clip"] { transform: none !important; clip-path: none !important; }
  .js [data-rv="rule"] { --draw: 1; }
}

/* ---------- 18. Logo build ---------- */
.mark-build rect { transform-box: fill-box; transition: transform var(--t-3) var(--e-stop); }
.js .mark-build:not(.is-built) .m-stem { transform: translateY(-110%); }
.js .mark-build:not(.is-built) .m-up { transform: translateX(110%); }
.js .mark-build:not(.is-built) .m-low { transform: translateX(-110%); }
.js .mark-build:not(.is-built) .m-y { transform: translateY(110%); }
.mark-build .m-up { transition-delay: 200ms; } .mark-build .m-low { transition-delay: 400ms; } .mark-build .m-y { transition-delay: 600ms; }

/* =========================================================
   Pages
   ========================================================= */
.map .seg { fill: var(--paper); }

/* ---------- Home: HUD hero ----------
   Reef from above with the six-column grid drawn over it. Everything inside sits 12px
   right of its column line, so text never rides on a line. */
.hud { position: relative; overflow: hidden; color: var(--paper); background: var(--navy); }
.hud-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; transform: scale(1.34); transform-origin: 0 36%; }
.hud::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(6, 26, 50, .72), rgba(6, 26, 50, .5) 44%, rgba(6, 26, 50, .24) 76%, rgba(6, 26, 50, .36)); }
.hud-lines { position: absolute; z-index: 1; inset: var(--header) 0 0; left: 50%; transform: translateX(-50%); display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); column-gap: var(--gutter); pointer-events: none; }
.hud-lines i { border-left: 1px solid rgba(244, 245, 245, .16); transform-origin: top; transition: transform var(--t-4) var(--e-stop), border-color var(--t-2); transition-delay: calc(120ms + var(--n, 0) * 70ms), 0ms; }
.hud-lines i:nth-child(7) { position: absolute; top: 0; bottom: 0; right: var(--margin); }
.hud-lines i.is-near { border-color: rgba(244, 245, 245, .46); }
.hud-in { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-template-rows: auto 1fr auto auto; column-gap: var(--gutter); min-height: max(100svh, 720px); padding-top: calc(var(--header) + var(--s-4)); }
.hud-in > * { padding-left: var(--s-2); }
.hud-in > .hud-map { grid-column: 6; grid-row: 1; margin: 0; padding-left: 0; }
.hud-map figcaption { color: var(--grey); margin-bottom: var(--s-1); padding-left: var(--s-2); }
.hud-map .map { padding: var(--s-2); background: rgba(6, 26, 50, .72); }
.hud-map .pj-legend { display: none; }
.hud-map .map--projects text { font-size: 42px; }
.hud-in > .hud-mid { grid-column: 1 / -1; grid-row: 2; align-self: center; display: grid; grid-template-columns: subgrid; padding: var(--s-8) 0; }
.hud-mid > * { grid-column: 1 / 6; padding-left: var(--s-2); }
/* The motto, one phrase per column, each 12px off its line */
.hud-mid > .hud-k { grid-column: 1 / 4; display: grid; grid-template-columns: subgrid; padding-left: 0; color: var(--grey); margin-bottom: var(--s-4); }
.hud-k span { padding-left: var(--s-2); white-space: nowrap; }
.hud-h { font-weight: 300; font-size: clamp(40px, 5vw, 72px); line-height: 1.04; letter-spacing: -0.035em; }
.hud-mid > .hud-h { padding-left: 0; margin-left: calc(var(--s-2) - .055em); } /* optical: Geist S carries a side bearing */
.hud-l { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.hud-l > span { display: block; }
.hud-l + .hud-l > span { color: var(--grey); }
.hud-ctas { margin-top: var(--s-6); }
.hud-ruler { grid-column: 1 / -1; grid-row: 3; position: relative; display: grid; grid-template-columns: repeat(5, calc((100% - 5 * var(--gutter)) / 6 + var(--gutter))) 1fr; height: var(--s-2); border-top: 1px solid rgba(244, 245, 245, .28); transform-origin: left; transition: transform var(--t-4) var(--e-stop) 600ms; }
.hud-in > .hud-ruler { padding-left: 0; }
/* One segment per column: a 12px major tick on the column line, minor 6px ticks at eighths */
.hud-ruler i { background: linear-gradient(rgba(244, 245, 245, .5), rgba(244, 245, 245, .5)) left top / 1px 12px no-repeat, repeating-linear-gradient(90deg, rgba(244, 245, 245, .26) 0 1px, transparent 1px 12.5%) left top / 100% 6px no-repeat; }
.hud-ruler::after { content: ""; position: absolute; right: 0; top: 0; width: 1px; height: 12px; background: rgba(244, 245, 245, .5); }
.hud-ruler b { position: absolute; top: -1px; left: 0; width: 6px; height: 18px; background: var(--yellow); transform: translateX(var(--px, 0px)) scaleY(0); transform-origin: top; transition: transform var(--t-1) linear; }
.hud.is-pointing .hud-ruler b { transform: translateX(var(--px, 0px)) scaleY(1); }
.hud-data { grid-column: 1 / -1; grid-row: 4; display: grid; grid-template-columns: subgrid; padding: 0; }
.hud-data > div { padding: var(--s-2) 0 var(--s-6) var(--s-2); }
.hud-data > div:nth-child(1) { grid-column: 1; } .hud-data > div:nth-child(2) { grid-column: 2; }
.hud-data > div:nth-child(3) { grid-column: 3; } .hud-data > div:nth-child(4) { grid-column: 4; }
.hud-data .hud-ll { grid-column: 6; }
.hud-data dt { color: var(--grey); }
.hud-data dd { margin-top: var(--s-1); font-size: 30px; font-weight: 300; line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.hud-data .hud-ll dd { font-size: 15px; line-height: 30px; letter-spacing: .04em; }

/* Load: photo slides open from the top, lines drop, the headline rises, the ruler draws, numbers count */
.js .hud:not(.is-on) .hud-photo { clip-path: inset(0 0 100% 0); }
.hud-photo { transition: clip-path 1400ms var(--e-stop); }
.js .hud:not(.is-on) .hud-lines i { transform: scaleY(0); }
.js .hud:not(.is-on) .hud-l > span { transform: translateY(105%); }
.hud-l > span { transition: transform var(--t-4) var(--e-stop); }
.hud-l:nth-child(1) > span { transition-delay: 450ms; } .hud-l:nth-child(2) > span { transition-delay: 570ms; }
.js .hud:not(.is-on) :is(.hud-k, .hud-ctas, .hud-map, .hud-data dt) { clip-path: inset(0 0 100% 0); }
:is(.hud-k, .hud-ctas, .hud-map, .hud-data dt) { transition: clip-path var(--t-3) var(--e-stop); }
.hud-k { transition-delay: 360ms; } .hud-ctas { transition-delay: 720ms; } .hud-map { transition-delay: 840ms; } .hud-data dt { transition-delay: 780ms; }
.js .hud:not(.is-on) .hud-ruler { transform: scaleX(0); }

@media (max-width: 1023px) {
  .hud-map { grid-column: 5 / -1; }
  .hud-data .hud-ll { display: none; }
}
@media (max-width: 599px) {
  .hud-map { display: none; }
  .hud-lines { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hud-lines i:nth-child(2), .hud-lines i:nth-child(3), .hud-lines i:nth-child(5), .hud-lines i:nth-child(6) { display: none; }
  .hud-ruler { grid-template-columns: calc((100% - var(--gutter)) / 2 + var(--gutter)) 1fr; }
  .hud-ruler i:nth-child(n+3) { display: none; }
  .hud-in { min-height: 100svh; }
  .hud-data { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gutter); }
  .hud-data > div:nth-child(n) { grid-column: auto; }
  .hud-data > div { padding-bottom: var(--s-3); }
}

/* ---------- Home: problem ---------- */
.problem-body { margin-top: var(--s-8); }
.problem-list { margin-top: var(--s-16); display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); column-gap: var(--gutter); }
.problem-list li { grid-column: span 2; display: flex; flex-direction: column; padding: var(--s-4) var(--s-2) var(--s-8); }
.problem-list .label { color: var(--fg-2); }
.problem-list .h3 { margin-top: var(--s-12); }
.problem-list p { margin-top: var(--s-2); max-width: 32ch; }
@media (max-width: 639px) { .problem-list .h3 { margin-top: var(--s-6); } }

/* ---------- Home: capabilities on six columns ---------- */

/* ---------- Home: where we work, four areas as cards ---------- */
.where-intro { margin-top: var(--s-8); row-gap: var(--s-6); }
.where-q { display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-4); color: var(--fg-2); }
.where-q li::before { content: ""; display: inline-block; width: 6px; height: 6px; background: var(--fg-2); margin-right: var(--s-2); vertical-align: middle; transform: translateY(-1px); }
.zones-nav { display: flex; justify-content: flex-end; gap: 6px; margin-top: var(--s-12); }
.zones-b { all: unset; cursor: pointer; width: 48px; height: 48px; display: grid; place-items: center; background: var(--navy-2); color: var(--paper); font-size: 18px; transition: background-color var(--t-1), color var(--t-1); }
.zones-b:hover, .zones-b:focus-visible { background: var(--paper); color: var(--navy); }
.zones { display: flex; gap: 6px; margin-top: 6px; height: clamp(384px, 60svh, 612px); container-type: inline-size; }
/* Width animates; text never does. Each caption is laid out at its final width up front,
   so nothing re-wraps while a card opens: the card edge simply clips it. */
.zone { position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; contain: paint; color: var(--paper); background: var(--navy-2); transition: flex-grow var(--t-3) var(--e-stop); }
.zone.is-on { flex-grow: 4; }
.zone img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.zone::after { content: ""; position: absolute; inset: 36% 0 0; background: linear-gradient(rgba(6, 26, 50, 0), rgba(6, 26, 50, .82)); }
.zone::before { content: ""; position: absolute; z-index: 2; left: var(--s-3); top: 0; width: 48px; height: 6px; background: var(--yellow); transform: scaleX(0); transform-origin: left; transition: transform var(--t-3) var(--e-stop); }
.zone.is-on::before { transform: none; transition-delay: 240ms; }
.zone-short, .zone-cap { position: absolute; z-index: 2; left: var(--s-3); bottom: var(--s-3); display: grid; gap: var(--s-1); }
.zone-short { width: calc((100cqw - 18px) / 7 - 48px); transition: clip-path var(--t-2) var(--e-stop) 200ms; clip-path: inset(0); }
.zone-cap { width: calc((100cqw - 18px) * 4 / 7 - 48px); clip-path: inset(100% 0 0 0); transition: clip-path var(--t-2) var(--e-stop); }
.zone.is-on .zone-short { clip-path: inset(100% 0 0 0); transition-delay: 0ms; }
.zone.is-on .zone-cap { clip-path: inset(0); transition: clip-path var(--t-3) var(--e-stop) 260ms; }
.zone-short .label, .zone-cap .label { color: var(--grey); }
.zone-st { font-size: 18px; font-weight: 400; line-height: 1.25; }
.zone-t { font-size: 21px; font-weight: 400; line-height: 1.25; }
.zone-s { color: var(--ice); }
.zone-d { max-width: 48ch; font-size: 15px; line-height: 1.5; color: var(--grey); }
.zone:focus-visible { outline: 2px solid var(--yellow); outline-offset: -2px; }
@media (max-width: 1023px) {
  .zones-nav { display: none; }
  .zones { flex-direction: column; height: auto; margin-top: var(--s-8); }
  .zone, .zone.is-on { flex: none; height: 216px; }
  .zone.is-on { height: 360px; }
  .zone-short, .zone-cap { width: auto; right: var(--s-3); }
}
@media (max-width: 599px) { .zone-d { display: none; } .zone.is-on { height: 288px; } }

/* ---------- Home: built in Puerto Rico, photograph with a panel ---------- */
.story { position: relative; overflow: hidden; background: var(--navy); }
.story-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.story::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(rgba(6, 26, 50, .78), rgba(6, 26, 50, .2) 30%, rgba(6, 26, 50, .08) 50%, rgba(6, 26, 50, .84)); }
.story-in { position: relative; z-index: 2; display: flex; flex-direction: column; min-height: max(100svh, 768px); padding-block: var(--section) var(--s-8); }
.story-body { margin-top: auto; align-items: end; row-gap: var(--s-6); }
.story-h { grid-column: 1 / 4; max-width: 14ch; }
.story-panel { grid-column: 5 / -1; padding: var(--s-4); background: rgba(6, 26, 50, .84); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.story-panel p + p { margin-top: var(--s-2); }
.story-panel .link { display: inline-block; margin-top: var(--s-4); }
@media (max-width: 1023px) { .story-h, .story-panel { grid-column: 1 / -1; } .story-panel { max-width: 576px; } }
@media (max-width: 599px) {
  .story::before { background: linear-gradient(rgba(6, 26, 50, .78), rgba(6, 26, 50, .3) 24%, rgba(6, 26, 50, .62) 46%, rgba(6, 26, 50, .92)); }
  .story-photo { object-position: 50% 50%; }
  .story-in { min-height: 0; padding-top: var(--s-12); }
  .story-body { margin-top: 36svh; }
  .story-panel { padding: var(--s-3); }
}

/* ---------- Measure lines: on hover the page's own column lines run through the photograph,
   as on an orthomosaic grid. --cols is the number of grid columns the tile spans (set by site.js). */
.tile .slot::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  --pitch: calc((100% + var(--gutter)) / var(--cols, 4));
  background: repeating-linear-gradient(90deg, transparent 0 calc(var(--pitch) - 1px), rgba(244, 245, 245, .38) calc(var(--pitch) - 1px) var(--pitch));
  clip-path: inset(0 0 100% 0); transition: clip-path var(--t-3) var(--e-stop);
}
.tile:hover .slot::after, .tile:focus-visible .slot::after { clip-path: inset(0); }

/* ---------- Home: featured work ---------- */
.feat-intro { margin-top: var(--s-8); }
.feat-principle { color: var(--fg); font-weight: 400; }
.feat { margin-top: var(--s-16); align-items: start; row-gap: var(--s-12); }
.feat-metric { align-self: start; display: grid; gap: var(--s-2); padding: var(--s-6) var(--s-2) var(--s-4); }
.feat-metric .phase { margin: var(--s-3) 0 0; }
.feat-row { margin-top: var(--s-12); }
.feat-row .t-name { font-size: 21px; }
.feat-row .t-foot .data { display: none; }
@media (min-width: 1024px) {  /* two featured projects share the row when a third is held back */
  .feat-row > .tile:first-child:nth-last-child(2) { grid-column: 1 / 4; }
  .feat-row > .tile:nth-child(2):last-child { grid-column: 4 / -1; }
}
.feat-all { margin-top: var(--s-12); display: flex; justify-content: flex-end; }
@media (max-width: 1023px) {
  .feat .tile, .feat-metric { grid-column: 1 / -1; }
}

/* ---------- Home: how we work ---------- */
.how .grid { align-items: start; }
.how-sticky { position: sticky; top: calc(var(--header) + var(--s-6)); }
.how-phase { margin-top: var(--s-8); }
.how-steps li { min-height: 36vh; padding-top: var(--s-2); border-top: 1px solid var(--line); display: grid; align-content: start; gap: var(--s-3); }
.how-steps li:last-child { min-height: 0; padding-bottom: var(--s-6); }
.how-steps li .h2 { color: var(--fg-2); transition: color var(--t-2); }
.how-steps li.is-now .h2 { color: var(--fg); }
.how-end { margin-top: var(--s-12); padding-top: var(--s-2); border-top: 1px solid var(--line); color: var(--fg); }
@media (max-width: 1023px) {
  /* The heading scrolls away; the phase line stays under the header while the four steps pass, then leaves with the section */
  .how-sticky { display: contents; }
  .how-sticky > .display { grid-column: 1 / -1; }
  .how-track { grid-column: 1 / -1; position: sticky; top: var(--header); z-index: 2; background: var(--bg); margin: var(--s-6) 0; padding: var(--s-3) 0; transition: top var(--t-2) var(--e-stop); }
  body:has(.header.is-hidden) .how-track { top: 0; }  /* follows the header up when it slides away */
  .how-track .how-phase { margin-top: 0; }
  .how-steps li { min-height: 0; padding-bottom: var(--s-8); }
  .how-steps li .h2 { color: var(--fg); }
}

/* ---------- Home: pairs ---------- */
.pairs { margin-top: var(--s-16); }
.pairs.ruled { padding-top: var(--s-2); }
.pairs.ruled > div:first-child { border-top: 0; }
.pairs > div { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); column-gap: var(--gutter); border-top: 1px solid var(--line); padding: var(--s-4) 0 var(--s-6); }
.pairs > div:last-child { border-bottom: 1px solid var(--line); }
.pairs dt { grid-column: 1 / 3; display: flex; align-items: center; gap: var(--s-2); flex-wrap: wrap; padding-top: 6px; }
.pairs dt i { display: inline-flex; }
.pairs dt .ico-s { color: var(--fg-2); }
.pairs dd { grid-column: 3 / 6; }
.topics dd { grid-column: 3 / -1; }
@media (max-width: 1023px) { .pairs dd { grid-column: 3 / -1; } }
@media (max-width: 599px) { .pairs dt, .pairs dd { grid-column: 1 / -1; } .pairs dd { margin-top: var(--s-2); } }

/* ---------- Home: Puerto Rico ---------- */
.pr { align-items: end; row-gap: var(--s-8); }
.pr-body { margin: var(--s-8) 0 var(--s-8); }

/* ---------- Home: flagship ---------- */
.flag-body { margin-top: var(--s-16); align-items: start; row-gap: var(--s-8); }
.flag-side { display: grid; gap: var(--s-8); }
.flag-map { position: relative; }
.flag-map .map { max-width: 420px; margin-inline: auto; }
.map-help { margin-top: var(--s-2); text-align: center; }
.flag-rec { position: sticky; top: calc(var(--header) + var(--s-4)); display: grid; gap: var(--s-2); }
.rec-note { margin-bottom: var(--s-6); }
.flag-ctas { display: grid; gap: var(--s-3); justify-items: start; border-top: 1px solid var(--line); padding-top: var(--s-4); }
.flag-ctas .pull { margin-bottom: var(--s-2); }
.map:focus-visible { outline: 2px solid var(--yellow); outline-offset: 6px; }
@media (max-width: 1023px) {
  .flag-side { grid-column: 1 / -1; }
  .flag-map { grid-column: 1 / 4; } .flag-rec { grid-column: 4 / -1; }
}
@media (max-width: 599px) { .flag-map, .flag-rec { grid-column: 1 / -1; } .flag-rec { position: static; } }

/* ---------- CTA ---------- */
.cta-body { align-self: end; }
.cta-body .btns { margin-top: var(--s-6); }
@media (max-width: 1023px) { .cta-body { margin-top: var(--s-6); } }

/* ---------- Inner page hero ---------- */
.phero { padding-top: calc(var(--header) + var(--s-16)); padding-bottom: var(--s-12); }
@media (max-width: 599px) { .phero { padding-top: calc(var(--header) + var(--s-8)); padding-bottom: var(--s-8); } }

/* ---------- Page head: the grid's six lines, an index row on the ruler, text 12px off its line ---------- */
.ph { position: relative; }
.phero.ph, .cs-hero.ph { padding-top: calc(var(--header) + var(--s-4)); }
.cs-head.ph { --ph-top: 0px; padding-top: var(--s-4); }
.ph > .wrap { position: relative; z-index: 1; }
.ph > .ph-lines { position: absolute; z-index: 0; inset: var(--ph-top, var(--header)) 0 0; pointer-events: none; }
.ph-lines .grid { height: 100%; }
.ph-lines i { border-left: 1px solid var(--line); transform-origin: top; transition: transform var(--t-4) var(--e-stop), border-color var(--t-2); transition-delay: calc(60ms + var(--n, 0) * 60ms), 0ms; }
.ph-lines i:last-child { border-right: 1px solid var(--line); }
.ph-lines i:nth-child(2) { --n: 1; } .ph-lines i:nth-child(3) { --n: 2; } .ph-lines i:nth-child(4) { --n: 3; }
.ph-lines i:nth-child(5) { --n: 4; } .ph-lines i:nth-child(6) { --n: 5; }
.ph-k { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); column-gap: var(--gutter); color: var(--fg-2); margin-bottom: var(--s-16); }
.ph-k > span { grid-column: 1 / 4; padding-left: var(--s-2); transition: clip-path var(--t-3) var(--e-stop) 360ms; }
.ph-k > span + span { grid-column: 5 / -1; }
.ph-k .cs-back { display: inline; margin: 0; color: inherit; }
.ph-k .cs-back:hover { color: var(--fg); }
.ph .wrap > .grid > * { padding-left: var(--s-2); }
.ph h1 { margin-left: -.05em; } /* optical: Geist carries a side bearing at display sizes */
.ph-main { align-items: end; row-gap: var(--s-6); }
.ph-main > .ph-side { grid-column: 5 / -1; }
.ph-side .btns { margin-top: var(--s-2); }
/* Side text beside the page headline */
.ph-side { display: flex; flex-direction: column; gap: var(--s-3); max-width: 40ch; }
.ph-side, .ph-side p { font-size: 18px; font-weight: 300; line-height: 1.5; }
.ph-side p + p { font-size: 15px; color: var(--fg-2); }
.ph-side .contact-mark { margin-bottom: var(--s-3); }
.ph-side .contact-mark .mark-big { height: 96px; }
/* Data row under the page headline */
.ph-row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: var(--s-4); margin-top: var(--s-12); }
.ph-row > * { display: flex; flex-direction: column; gap: var(--s-2); padding: var(--s-2) 0 var(--s-4) var(--s-2); font-size: 15px; line-height: 1.4; }
.ph-row a { display: flex; flex-direction: column; gap: var(--s-2); transition: color var(--t-1); }
.ph-row .label, .ph-row dt { color: var(--fg-2); }
.ph-sum .is-key { grid-column: 6; font-weight: 500; }
.ph-direct > * { grid-column: span 2; }
.ph-direct .ph-v { font-size: 18px; font-weight: 300; letter-spacing: -0.01em; }
.ph-direct .ph-go a { flex-direction: row; align-items: center; gap: var(--s-1); }
.ph-lines i.is-near { border-left-color: var(--line-strong); transition-delay: 0ms; }
.ph-tick { position: absolute; top: -1px; left: 0; width: 6px; height: 18px; background: var(--yellow); transform: translateX(var(--px, 0px)) scaleY(0); transform-origin: top; transition: transform var(--t-1) var(--e-stop); }
.ph.is-pointing .ph-tick { transform: translateX(var(--px, 0px)) scaleY(1); }
.cs-hero.ph .ph-k, .cs-head.ph .ph-k { margin-bottom: var(--s-12); }
.js .ph:not(.is-on) .ph-lines i { transform: scaleY(0); }
.js .ph:not(.is-on) .ph-k > span { clip-path: inset(0 0 100% 0); }
@media (max-width: 1023px) {
  .ph-lines i:nth-child(2), .ph-lines i:nth-child(4), .ph-lines i:nth-child(6) { border-left-color: transparent; }
  .ph-k > span + span { grid-column: 4 / -1; }
  .ph-k { margin-bottom: var(--s-12); }
  .ph-main > .ph-side { grid-column: 1 / -1; }
  .ph-row > * { grid-column: span 2; }
  .ph-sum .is-key { grid-column: span 2; }
}
@media (max-width: 639px) {
  .ph-lines i:nth-child(n) { border-left-color: transparent; }
  .ph-lines i:nth-child(1), .ph-lines i:nth-child(4) { border-left-color: var(--line); }
  .ph-k { margin-bottom: var(--s-8); }
  .ph-row > *, .ph-sum .is-key { grid-column: span 3; }
  .ph-direct > * { grid-column: 1 / -1; }
}

/* ---------- Projects index ---------- */
.pj-lead { display: block; }
.pj-lead-text { margin-top: var(--s-4); align-items: start; row-gap: var(--s-3); }
.pj-lead-text .t-line { margin-top: var(--s-2); }
@media (max-width: 1023px) {
  .pj-lead-media > .slot { grid-column: 1 / -1; }
}

/* ---------- Case study ---------- */
.cs-hero { padding-top: calc(var(--header) + var(--s-16)); padding-bottom: var(--s-12); }
.cs-back { display: inline-block; color: var(--fg-2); margin-bottom: var(--s-12) }
.cs-kicker { margin-bottom: var(--s-4); }
.cs-metrics { margin-top: var(--s-12); }
.cs-foot { margin-top: var(--s-2); }
.cs-meta { margin-top: var(--s-12); }
.cs-wide { padding-bottom: 0; }
.cs-wide .slot { --r: 3; }
@media (max-width: 599px) { .cs-wide .slot { --r: 1.5; } }
.cs-hero--image { padding: var(--header) 0 0; }
.cs-hero--image .cs-hero-media .slot { --r: 2.4; }
@media (max-width: 1023px) { .cs-hero--image .cs-hero-media .slot { --r: 1.5; } }
.cs-hero-panel { padding-block: var(--s-4) 0; }
.cs-head { padding-top: var(--s-12); padding-bottom: var(--s-12); }
.cs .wrap.grid { align-items: start; }
.cs-num { position: sticky; top: calc(var(--header) + var(--s-4)); color: var(--fg-2); padding-top: var(--s-1); border-top: 1px solid var(--line); padding-right: var(--s-4); }
.cs-col > * + * { margin-top: var(--s-6); }
.cs-col > .cs-pull { padding-top: var(--s-3); border-top: 1px solid var(--line); max-width: 30ch; margin-top: var(--s-12); }
.cs-pull { padding-top: var(--s-3); border-top: 1px solid var(--line); max-width: 30ch; margin-top: var(--s-12); }
.cs-col > .cs-steps { margin-top: var(--s-8); }
.cs-col > .cs-flow { margin-top: var(--s-8); }
.cs-list { color: var(--fg) }
.cs-close { font-weight: 400; max-width: 52ch; }
.cs-note { border-top: 1px solid var(--line); padding-top: var(--s-3); }
.cs-note .label { margin-bottom: var(--s-2); }
.cs-paper { background: var(--panel); padding: var(--s-6); display: grid; gap: var(--s-4); }
.cs-big { border-top: 1px solid var(--line); padding-top: var(--s-3); display: grid; gap: var(--s-2); }
.cs-data { margin-top: 0; row-gap: var(--s-8); }
.cs-gallery { margin-top: var(--s-12); row-gap: var(--s-8); align-items: end; }
.cs-also { margin-top: var(--s-8); }
.cs-info .dtable dd { font-size: 18px; }
.cs-next { margin-top: var(--s-16); padding-top: var(--s-3); border-top: 1px solid var(--line); display: grid; gap: var(--s-2); }
.cs-next a { display: inline-flex; align-items: center; gap: var(--s-3); }
.cs-next .arw { width: 24px; height: 24px; transition: transform var(--t-2) var(--e-stop); }
.cs-next a:hover .arw { transform: translateX(6px); }
.metric--s { font-size: clamp(30px, 3.34vw, 48px); letter-spacing: -0.02em; }
.cs-explorer .flag-body { margin-top: var(--s-12); }
.cs-explorer .flag-side { gap: var(--s-6); }
@media (max-width: 599px) { .cs-num { position: static; margin-bottom: var(--s-4); } }

/* Area bar (requested vs delivered) */
.area-bar { display: grid; gap: var(--s-2); margin: var(--s-8) 0 var(--s-12); max-width: 864px; }
.area-bar > div { display: grid; grid-template-columns: 144px 1fr 72px; gap: var(--s-3); align-items: center; }
.area-bar .bar { height: 12px; background: var(--fg-2); transform-origin: left; transform: scaleX(var(--v)); }
.area-bar .bar--key { background: var(--yellow); }
.area-bar .data { text-align: right; }

/* Reef sequence */
.frame.seq-crop { --fi: 0; inset: 17.6% 41.5% 17.6% 36.1%; }
.seq-row { margin-top: var(--s-6); align-items: stretch; row-gap: var(--s-6); }
.seq-row figure { display: flex; flex-direction: column; }
.seq-card { flex: 1; background: var(--panel); padding: var(--s-4); display: grid; align-content: start; gap: var(--s-2); }
.seq-handoff { margin-top: auto; padding-top: var(--s-4); }
.seq-card--img { position: relative; overflow: hidden; aspect-ratio: 1; align-content: end; color: var(--paper); }
.seq-card--img > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.seq-card--img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 45%, rgba(6, 26, 50, .86)); }
.seq-card--img > p { position: relative; z-index: 1; }
.seq-card--img .seq-handoff { margin-top: 0; padding-top: 0; }
.seq-credit { display: block; margin-top: var(--s-1); color: var(--fg-2); text-transform: none; letter-spacing: 0; }
.seq-row figcaption { margin-top: var(--s-2); }

/* Zoom sequence */
.zoom { height: 300vh; position: relative; }
.zoom-stick { position: sticky; top: var(--header); height: calc(100svh - var(--header)); display: grid; grid-template-rows: auto 1fr; overflow: hidden; }
.zoom-head { display: flex; justify-content: space-between; align-items: center; gap: var(--s-4); padding-block: var(--s-3); border-bottom: 1px solid var(--line); }
.zoom-head b { font-weight: 400; }
.zoom-steps { display: flex; gap: var(--s-3); color: var(--fg-2); }
.zoom-steps li { padding-bottom: 6px; box-shadow: inset 0 -2px 0 transparent; transition: box-shadow var(--t-2), color var(--t-1); }
.zoom-steps li.is-on { color: var(--fg); box-shadow: inset 0 -2px 0 var(--fg); }
.zoom-frame { position: relative; overflow: hidden; margin: var(--s-4) var(--margin) var(--s-4); }
.zoom-view { position: absolute; inset: 0; transition: transform var(--t-4) var(--e-move), transform-origin var(--t-4) var(--e-move); }
.zoom-view .slot { position: absolute; inset: 0; }
.zoom-view .slot::before { display: none; }
@media (max-width: 599px) { .zoom-steps { display: none; } }

/* ---------- Services ---------- */
.svc-caps { margin-top: var(--s-16); row-gap: var(--s-12); }
.svc-cap { display: flex; flex-direction: column; gap: var(--s-2); scroll-margin-top: calc(var(--header) + var(--s-4)); }
.svc-cap .slot { margin-bottom: var(--s-2); }
.svc-cap header { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); padding-top: var(--s-2); }
.svc-cap header .ico { width: 30px; height: 30px; }
.svc-cap p { max-width: 46ch; }
.svc-cap .link { margin-top: var(--s-2); align-self: flex-start; }
.svc-cap--wide { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); column-gap: var(--gutter); align-items: end; }
.svc-vision { grid-column: 1 / 5; margin: 0; display: grid; gap: var(--s-3); }
.vis-ph { position: relative; }
.svc-vision-text { grid-column: 5 / -1; display: flex; flex-direction: column; gap: var(--s-2); }
.svc-caps-foot { margin-top: var(--s-12); padding-top: var(--s-3); border-top: 1px solid var(--line); max-width: 40ch; }
@media (max-width: 1023px) { .svc-cap { grid-column: span 3; } .svc-cap--wide { grid-column: 1 / -1; } .svc-vision, .svc-vision-text { grid-column: 1 / -1; } .svc-vision-text { margin-top: var(--s-4); } }
@media (max-width: 599px) { .svc-cap { grid-column: 1 / -1; } }
.engage-em { color: var(--fg); }
.engage-cta { margin-top: var(--s-6); }
.svc-areas-intro { margin-top: var(--s-8); }
.area { margin-top: var(--s-12); border-top: 1px solid var(--line); padding-top: var(--s-4); row-gap: var(--s-6); scroll-margin-top: var(--header); align-items: start; }
.area:first-of-type { margin-top: var(--s-16); }
.area-head { display: grid; gap: var(--s-2); }
.area-body > * + * { margin-top: var(--s-3); }
.area-body .label { color: var(--fg-2) }
.apps { color: var(--fg); }
.area-proj .slot { margin-bottom: var(--s-2); }
.area-proj .t-name { display: block; }
.area-proj .t-line { display: block; font-size: 15px; }
@media (max-width: 1023px) { .area-head, .area-body { grid-column: 1 / -1; } .area-proj { grid-column: 1 / 5; } }
@media (max-width: 599px) { .area-proj { grid-column: 1 / -1; } }
.collab { margin-top: 0; }

/* ---------- About ---------- */
.about-role { margin-top: var(--s-16); }
.about-role .h2 { max-width: 28ch; }
.about-team-wide { padding-top: var(--s-4); }
.about-photos { row-gap: var(--gutter); }
.about-diff { margin-top: var(--s-8); }
.about-pull { margin-top: var(--s-12); padding-top: var(--s-3); border-top: 1px solid var(--line); max-width: 40ch; }
.procure .btns { margin-top: var(--s-4); }
.procure-f { align-self: center; color: var(--grey); }
.people { margin-top: var(--s-16); row-gap: var(--s-12); align-items: start; }
.person header { border-top: 1px solid var(--line); margin-top: var(--s-3); padding-top: var(--s-3); display: grid; gap: var(--s-1); margin-bottom: var(--s-4); }
.person--down { margin-top: var(--s-24); }
.person .body { max-width: 52ch; }
.purpose { margin-top: var(--s-8); }
.purpose-pull { margin-top: var(--s-12); padding-top: var(--s-3); border-top: 1px solid var(--line); }
@media (max-width: 1023px) { .person { grid-column: 1 / -1; } .person--down { margin-top: 0; } .person .slot { max-width: 420px; } }

/* ---------- Insights ---------- */
.ins-feat { row-gap: var(--s-6); align-items: end; }
.ins-feat-t { display: grid; gap: var(--s-3); justify-items: start; }
.ins-list { row-gap: var(--s-8); }
.ins { display: grid; gap: var(--s-2); align-content: start }
.ins .h3 { max-width: 24ch; }
.ins p.muted { max-width: 52ch; }
.ins-soon { color: var(--fg-2); margin-top: var(--s-2); }
.topics { margin-top: var(--s-8); }
@media (max-width: 1023px) { .ins { grid-column: 1 / -1; } }

/* ---------- Contact ---------- */
.inquiry { row-gap: var(--s-6); }
.fs-label { border: 0; padding: 0; margin: 0; border-top: 1px solid var(--line); padding-top: var(--s-2); align-self: start; }
.fs-label legend { padding: 0; float: left; color: var(--fg-2); }
.fs-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--gutter); row-gap: var(--s-6); margin-bottom: var(--s-12); }
.fs-span { grid-column: 1 / -1; }
.submit-row { display: grid; gap: var(--s-3); justify-items: start; border-top: 1px solid var(--line); padding-top: var(--s-4); }
.submit-row .hint { max-width: 60ch; }
.status:empty { display: none; }
.inquiry.is-sent .fs-grid, .inquiry.is-sent .fs-label { opacity: .4; pointer-events: none; }
.file .btn { pointer-events: none; height: 36px; flex: none; }
@media (max-width: 1023px) { .fs-grid, .submit-row { grid-column: 1 / -1; } }
@media (max-width: 599px) { .fs-grid { grid-template-columns: 1fr; } }
.direct { column-gap: 6px; row-gap: 6px; }
.direct > div { display: flex; flex-direction: column; gap: var(--s-1); min-height: 216px; padding: var(--s-4); background: var(--tile); }
.direct > div > .h3, .direct > div > .direct-a { margin-top: var(--s-2); }
.direct > div > .direct-wa { margin-top: auto; padding-top: var(--s-3); }
.direct-a { transition: color var(--t-1); }
.direct-a:hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.direct-wa { font-size: 15px; }

/* ---------- Legal ---------- */
.legal-meta { margin-top: var(--s-12); }
.art-dek { margin-top: var(--s-4); }
.art-hero img { display: block; width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }
.art-body { font-size: 18px; max-width: 70ch; display: grid; gap: var(--s-2); }
.art-body h2 { margin-top: var(--s-8); }
.art-body h2:first-child { margin-top: 0; }
.art-body figure { margin-block: var(--s-4); }
.art-body img { display: block; width: 100%; height: auto; }
.art-body figcaption { margin-top: var(--s-1); color: var(--fg-2); }
.art-map { align-items: center; row-gap: var(--s-6); }
.art-map .map { max-width: 340px; }
.art-map .map svg { display: block; width: 100%; height: auto; overflow: hidden; }
.art-mun { margin-top: var(--s-4); color: var(--fg-2); }
.art-map figcaption { margin-top: var(--s-2); color: var(--fg-2); }
.art-stats { display: grid; gap: var(--s-4); }
.art-cta { display: grid; gap: var(--s-3); justify-items: start; }
.art-more a { text-decoration: underline; text-underline-offset: 6px; }
.cs-book { margin-top: var(--s-8); max-width: 240px; }  /* the printed guide beside The result */
.cs-book img { display: block; width: 100%; height: auto; filter: drop-shadow(0 24px 32px rgba(0, 0, 0, .35)); }
@media (max-width: 1023px) { .cs-book { margin-block: var(--s-4) var(--s-6); max-width: 180px; } }
.art-body h3.art-num { margin-top: var(--s-4); color: var(--fg); }
.art-body .pull { margin-block: var(--s-4) var(--s-2); }
.art-note { color: var(--fg-2); font-size: 15px; }
/* two pictures side by side: context and detail, or the two products of one capture */
.art-pair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); margin-block: var(--s-4); }
.art-pair figure { margin: 0; }
.art-pair img { aspect-ratio: 16 / 9; object-fit: cover; }  /* same frame as the clip, so the captions line up */
.art-video { margin: 0; }
/* the same viewpoint on three dates */
.art-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-2); margin-block: var(--s-4); }
.art-steps figure { margin: 0; }
.art-steps img { aspect-ratio: 4 / 3; object-fit: cover; }
.art-steps figcaption b { display: block; color: var(--fg); }
.art-pano { margin-block: var(--s-6) 0; }
/* decision tables: need on the left, method on the right; on phones each row becomes a labelled pair */
.art-table { width: 100%; border-collapse: collapse; font-size: 16px; margin-top: var(--s-2); }
.art-table th, .art-table td { text-align: left; vertical-align: top; padding: var(--s-2) var(--s-3) var(--s-2) 0; border-top: 1px solid var(--line); }
.art-table thead th { font: 400 12px/1.5 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--fg-2); border-top: 0; padding-bottom: var(--s-1); }
.art-table tbody th { font-weight: 400; width: 50%; }
.art-table td { color: var(--fg-2); }
.art-table tbody tr:last-child > * { border-bottom: 1px solid var(--line); }
@media (max-width: 599px) {
  .art-pair { grid-template-columns: 1fr; }
  .art-steps { grid-template-columns: 1fr; }
  .art-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .art-table, .art-table tbody, .art-table tr, .art-table th, .art-table td { display: block; width: auto; }
  .art-table tr { border-top: 1px solid var(--line); padding-block: var(--s-2); }
  .art-table tbody tr:last-child { border-bottom: 1px solid var(--line); }
  .art-table th, .art-table td { border: 0 !important; padding: 0; }
  .art-table tbody th { width: auto; }
  .art-table td { margin-top: var(--s-1); }
  .art-table td::before { content: "→ "; color: var(--fg-2); }
}
.legal .wrap.grid { align-items: start; }
.legal-toc { position: sticky; top: calc(var(--header) + var(--s-4)); max-height: calc(100vh - var(--header) - var(--s-8)); overflow: auto; border-top: 1px solid var(--line); padding-top: var(--s-2); }
.legal-toc ol { margin-top: var(--s-2); display: grid; gap: var(--s-1); }
.legal-toc a { font-size: 14px; line-height: 1.4; font-weight: 400; color: var(--fg-2); display: flex; gap: var(--s-2); transition: color var(--t-1); }
.legal-toc a:hover { color: var(--fg); }
.legal-body { font-size: 18px; max-width: 70ch; }
.legal-body h2 { display: grid; grid-template-columns: 48px 1fr; align-items: baseline; margin: var(--s-12) 0 var(--s-3); padding-top: var(--s-2); border-top: 1px solid var(--line); scroll-margin-top: calc(var(--header) + var(--s-4)); }
.legal-body h2:first-child { margin-top: 0; }
.legal-body h3 { font: 400 12px/1.5 var(--mono); letter-spacing: .16em; text-transform: uppercase; margin: var(--s-6) 0 var(--s-2); color: var(--fg-2); }
.legal-body p + p, .legal-body ul + p, .legal-body p + ul { margin-top: var(--s-2); }
.legal-body ul li { padding-left: var(--s-4); position: relative; margin-top: var(--s-1); }
.legal-body ul li::before { content: ""; position: absolute; left: 0; top: .7em; width: 6px; height: 6px; background: currentColor; }
.legal-body address { font-style: normal; margin-top: var(--s-3); }
@media (max-width: 1023px) { .legal-toc { display: none; } .legal-body { grid-column: 1 / -1; } }

.hint-touch { display: none; }
@media (hover: none) { .hint-touch { display: inline; } .hint-mouse { display: none; } }

/* ---------- Footer, compact CTA, map labels, tablet-desktop overrides ---------- */
.consent-link { text-decoration: underline; text-underline-offset: 6px; }
.cta--compact { padding-block: var(--s-16); }
.cta--compact .cs-next { margin-top: var(--s-12); }
.map .mun-label { font-size: 13px; }
.map .grat-t { font-size: 12px; }
@media (max-width: 767px) { .map .grat-t { display: none; } }
.submit-row .btn--line { --b-line: var(--line-strong); }
@media (max-width: 1023px) {
  .cs-num { grid-column: 1 / -1; position: static; margin-bottom: var(--s-4); }
  .cs-col { grid-column: 1 / -1; }
  .fs-label { grid-column: 1 / -1; }
  .direct > div { grid-column: 1 / -1; }
}
.fs { border: 0; padding: 0; margin: 0; min-width: 0; grid-column: 1 / -1; }
.fs > .grid { row-gap: var(--s-6); }
@media (prefers-reduced-motion: reduce) { .zoom { height: auto; } .zoom-stick { position: static; height: 70vh; } }
.btn--line.btn--signal { --b-line: var(--yellow); }

/* Photographs in slots: cover the ratio box; the reef detail is a 2.4x crop of the wide frame */
.slot > img { background: var(--navy-2); }
.slot--zoom > img { transform: scale(2.4); transform-origin: var(--zo, 82% 18%); }
.slot[data-photo] .slot-note { display: none; }

/* ---------- Hero survey line: one pass north to south, then it stops ---------- */

/* ---------- Home close: words and the contact record ---------- */
.cta-home { row-gap: var(--s-8); align-items: end; }
.cta-home-text .btns { margin-top: var(--s-4); }
.cta-contact { display: grid; gap: 0; align-self: end; }
.cta-contact > div { display: grid; grid-template-columns: 1fr 2fr; gap: var(--s-2); border-top: 1px solid var(--line); padding-block: var(--s-2); }
.cta-contact > div:last-child { border-bottom: 1px solid var(--line); }
.cta-contact dt { color: var(--fg-2); }
@media (max-width: 599px) { .cta-contact > div { grid-template-columns: 1fr; gap: 0; } }

/* ---------- Field: one tile per record ---------- */
.rec-field { display: grid; gap: var(--s-3); margin: 0; }
.rec-group { display: grid; grid-template-columns: 144px 1fr; gap: var(--s-3); align-items: start; border-top: 1px solid var(--line); padding-top: var(--s-2); }
.rec-group .label { display: flex; justify-content: space-between; gap: var(--s-2); color: var(--fg); padding-top: 0; }
.rec-group .label .num { color: var(--fg-2); font-size: 12px; }
.rec-field figcaption { border-top: 1px solid var(--line); padding-top: var(--s-2); }
@media (max-width: 599px) { .rec-group { grid-template-columns: 1fr; gap: var(--s-1); } .rec-sq i { width: 6px; height: 6px; } .rec-sq { gap: 6px; } }

/* Hero: the field sits behind the map, never behind the mark */

/* ---------- Projects index: where the work is ---------- */
.map--projects svg { overflow: visible; }
.map--projects .seg { fill: var(--paper); }
.map--projects .pp { fill: var(--paper); }
.map--projects text { font-family: var(--mono); font-size: 30px; fill: var(--paper); }
.map--projects .pm:hover text, .map--projects .pm:focus-visible text { fill: var(--yellow); }
.map--projects .pm:focus-visible { outline: none; }
.pj-legend { margin-top: var(--s-3); border-top: 1px solid var(--line); }
.pj-legend a { display: grid; grid-template-columns: 36px 1fr auto; gap: var(--s-2); border-bottom: 1px solid var(--line); font-size: 15px; font-weight: 400; transition: color var(--t-1) }
.pj-legend .num { color: var(--fg-2); }

.cs-data-head { margin-bottom: var(--s-8); row-gap: var(--s-2); }
.cs-data-lead { margin-top: var(--s-4); }
.t-story { margin-bottom: var(--s-2); }
.tile .t-name + .t-story { margin-top: 0; }

/* ---------- Small screens and touch targets ---------- */
@media (max-width: 1023px) {
  .pr .slot { --r: 1.5; }
}
.link { position: relative; }
.link::after { content: ""; position: absolute; inset: -12px 0; }
.cta-contact a { display: inline-block; padding-block: 12px; margin-block: -12px; }
.pj-legend a { padding-block: 12px; }
@media (max-width: 1023px) { .menu-btn { height: 48px; } .brand { height: 48px; } }
.consent { max-height: calc(100svh - 48px); overflow: auto; }
p { text-wrap: pretty; }

/* =========================================================
   Navigation: drawer, nav underline, menu button
   ========================================================= */
/* Menu button: the two bars close into one yellow bar, the label switches to Close */
.menu-btn[aria-expanded="true"] i::before, .menu-btn[aria-expanded="true"] i::after { background: var(--yellow); }

/* Drawer: the panel drops, each row's rule draws left to right, the word rises out of its own mask */
.drawer ol { display: grid; }
.drawer li { position: relative; }
.drawer li::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--line);
  transform: scaleX(0); transform-origin: left; transition: transform var(--t-3) var(--e-stop); transition-delay: calc(120ms + var(--i) * 60ms); }
.drawer li a { position: relative; display: grid; grid-template-columns: 36px 1fr; align-items: baseline; column-gap: var(--s-3); padding: var(--s-3) 0; }
.dl-n { font: 400 12px/1 var(--mono); letter-spacing: .16em; color: var(--fg-2); transition: color var(--t-1); }
.dl-m { display: block; overflow: hidden; padding-bottom: .08em; }
.dl-t { display: inline-block; font-size: clamp(30px, 8vw, 48px); line-height: 1.1; letter-spacing: -0.02em; font-weight: 300;
  transform: translateY(105%); transition: transform var(--t-3) var(--e-stop), color var(--t-1); transition-delay: calc(180ms + var(--i) * 60ms), 0ms; }
.drawer.is-open li::before { transform: scaleX(1); }
.drawer.is-open .dl-t { transform: none; }
.drawer:not(.is-open) li::before, .drawer:not(.is-open) .dl-t { transition-delay: 0ms; transition-duration: var(--t-1); }
/* Hover and current page: the marker slides in under the word */
.drawer li a::after { content: ""; position: absolute; left: calc(36px + var(--s-3)); bottom: var(--s-2); width: 48px; height: 6px; background: var(--yellow);
  transform: scaleX(0); transform-origin: left; transition: transform var(--t-2) var(--e-stop); }
.drawer li a:hover::after, .drawer li a:focus-visible::after, .drawer li a[aria-current="page"]::after { transform: scaleX(1); }
.drawer li a:hover .dl-n, .drawer li a[aria-current="page"] .dl-n { color: var(--yellow); }
.drawer .readout { opacity: 1; transform: translateY(12px); transition: transform var(--t-3) var(--e-stop) 480ms; }
.drawer.is-open .readout { transform: none; }

/* =========================================================
   Signal yellow in small interactions — never more than one at rest per surface
   ========================================================= */
.link { background-image: linear-gradient(currentColor, currentColor), linear-gradient(var(--yellow), var(--yellow));
  background-size: 100% 1px, 0 2px; background-position: 0 100%, 0 100%; background-repeat: no-repeat;
  transition: background-size var(--t-2) var(--e-stop); }
.link:hover, .link:focus-visible { animation: none; background-size: 100% 1px, 100% 2px; }
.footer ul a, .footer ul button { position: relative; }
.footer ul a::before, .footer ul button::before { content: ""; position: absolute; left: -18px; top: 50%; width: 6px; height: 6px; margin-top: -3px; background: var(--yellow);
  transform: scaleX(0); transform-origin: left; transition: transform var(--t-2) var(--e-stop); }
.footer ul a:hover::before, .footer ul button:hover::before { transform: none; }
.cta-contact a:hover { color: inherit; text-decoration-color: var(--yellow); text-decoration-thickness: 2px; }
.cta-contact a { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; text-decoration-color: var(--line); transition: text-decoration-color var(--t-1); }
.cs-back { position: relative; padding-left: 0; transition: color var(--t-1), padding-left var(--t-2) var(--e-stop); }
.cs-back::before { content: ""; position: absolute; left: 0; top: 50%; width: 0; height: 6px; margin-top: -3px; background: var(--yellow); transition: width var(--t-2) var(--e-stop); }
.cs-back:hover { color: var(--fg); padding-left: 30px; }
.cs-back:hover::before { width: 18px; }
.cs-next a { transition: color var(--t-1); }
.cs-next a:hover .arw { color: var(--yellow); }
.muns button:hover .bar { background: var(--yellow); }
.pairs > div dt .ico-s { transition: color var(--t-1); }
.pairs > div:hover dt .ico-s { color: var(--yellow); }
.legal-toc a { position: relative; }
.legal-toc a.is-on { color: var(--fg); }
.legal-toc a.is-on::before { content: ""; position: absolute; left: -18px; top: 50%; width: 6px; height: 6px; margin-top: -3px; background: var(--yellow); }
.svc-cap header .ico { transition: color var(--t-1); }
.svc-cap:hover header .ico { color: var(--yellow); }
.pj-legend a .num { transition: color var(--t-1); }
.pj-legend a:hover { color: var(--fg); }
.pj-legend a:hover .num { color: var(--yellow); }
.map--projects .pm:hover .pp { fill: var(--yellow); }

@media (prefers-reduced-motion: reduce) { .dl-t, .drawer li::before { transform: none !important; } }
.drawer ol { border-bottom: 1px solid var(--line); }

/* ---------- Metrics as ruled data: no fills, column lines, text 12px off the line ---------- */
.metrics { grid-template-columns: repeat(6, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 0; }
.metrics > div { grid-column: span 1; border-top: 0; padding: var(--s-3) var(--s-2) var(--s-6); min-height: 168px; display: flex; flex-direction: column-reverse; justify-content: space-between; gap: var(--s-3); position: relative; min-width: 0; }
.metrics[style*="--n:3"] { --cols: 3; }
.metrics[style*="--n:3"] > div { grid-column: span 2; }
.metrics .label { margin-top: 0; color: var(--fg-2); }
.metrics .metric { font-family: var(--sans); font-weight: 300; font-size: clamp(40px, 4.45vw, 64px); letter-spacing: -0.035em; }
.metrics .metric--s { font-size: clamp(24px, 2.5vw, 36px); }
.metrics > .is-key::before { content: ""; position: absolute; top: -12px; left: 0; width: 48px; height: 6px; background: var(--yellow); }
.metrics > .is-key .label { color: var(--fg); }
@media (max-width: 1023px) { .metrics > div, .metrics[style*="--n:3"] > div { grid-column: span 3; } .metrics.lined { --cols: 2; } .metrics > div { min-height: 144px; } }
@media (max-width: 639px) { .metrics > div, .metrics[style*="--n:3"] > div { grid-column: span 3; padding-bottom: var(--s-4); } }
.mv-bars { display: grid; grid-template-columns: repeat(6, 12px); gap: 6px; align-items: end; height: 36px; }
.mv-bars i { height: calc(var(--v) * 100%); background: currentColor; opacity: .5; }
.mv-bars i:last-child { opacity: 1; }
.metrics .phase { margin: 0; max-width: 216px; }
.mv-split { display: block; height: 6px; box-shadow: inset 0 0 0 1px currentColor; max-width: 216px; }
.mv-split i { display: block; width: 50%; height: 100%; background: currentColor; }
.mv-sq { display: flex; gap: 6px; }
.mv-sq i { width: 12px; height: 12px; background: currentColor; }
@media (max-width: 599px) { .metrics > div { min-height: 132px; padding: var(--s-2); } }
.metrics > .m-wide { grid-column: span 3; }
.m-seq .phase { max-width: none; }
.m-seq .phase-labels li { color: var(--fg); }
@media (max-width: 1023px) { .metrics > .m-wide { grid-column: 1 / -1; } }

/* ---------- Chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { font: 400 12px/18px var(--mono); letter-spacing: .06em; padding: 6px 12px; box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--fg); }
.cs-list { margin-block: var(--s-3); max-width: none; }

/* ---------- Language switch: ES is reserved until the Spanish copy arrives ---------- */
.lang { display: inline-flex; gap: var(--s-1); align-items: center; color: var(--fg); }
.lang > * + *::before { content: "/"; margin-right: var(--s-1); color: var(--fg-2); }
.lang a { color: var(--fg-2); transition: color var(--t-1); }
.lang [aria-current] { color: var(--fg); }
@media (hover: hover) { .lang a:hover { color: var(--fg); } }
.phase-labels li { min-width: 0; overflow-wrap: break-word; }
@media (max-width: 599px) { .phase-labels li { letter-spacing: .04em; font-size: 10px; padding-right: 0; } }
/* Over the home hero the header drops its fill until the page moves */
.header.is-over:not(.is-hidden) { background: transparent; }
.header.is-over::after { background: rgba(244, 245, 245, .16); }

@media (max-width: 1023px) { .brand { grid-column: 1 / 4; } }

/* Hero motto and buttons on the columns.
   Spans are set from measured widths: button 1 needs 254px, button 2 203px, the longest motto phrase 173px,
   each plus the 12px offset from its line. A span grows by whole columns where a column gets too narrow. */
.hud-mid > .hud-ctas { display: grid; grid-template-columns: subgrid; gap: var(--s-2) var(--gutter); padding-left: 0; }
.hud-ctas .btn { margin-left: var(--s-2); justify-content: space-between; min-width: max-content; }
.hud-ctas .btn:nth-child(1) { grid-column: 1 / 3; }
.hud-ctas .btn:nth-child(2) { grid-column: 3 / 5; }
@media (min-width: 1512px) { .hud-ctas .btn:nth-child(2) { grid-column: 3 / 4; } }
@media (max-width: 1327px) {
  .hud-mid > .hud-k { display: block; padding-left: var(--s-2); }
  .hud-k span { display: block; padding-left: 0; }
}
@media (max-width: 1023px) {
  .hud-mid > .hud-ctas { grid-column: 1 / -1; }
  .hud-ctas .btn:nth-child(1) { grid-column: 1 / 4; }
  .hud-ctas .btn:nth-child(2) { grid-column: 4 / -1; }
}
@media (max-width: 639px) { .hud-ctas .btn:nth-child(n) { grid-column: 1 / -1; } }
/* Header between 1024 and 1327: one column is too narrow for Contact plus language, so links start at line 3 */
@media (min-width: 1024px) and (max-width: 1327px) {
  .nav { grid-column: 3 / -1; }
  .nav-l { gap: var(--s-3); }
  .nav-r { grid-column: 3 / 5; }
}

/* ---------- Home: six capabilities, one per grid column ----------
   Light by intent: 30px icons in grey, hairline column lines, a faint ruler, and room above and below. */
.six-head { row-gap: var(--s-3); }
.six-head .muted { align-self: end; max-width: 36ch; }
.six-board { margin-top: var(--s-16); }
.six-ruler { display: grid; grid-template-columns: repeat(5, calc((100% - 5 * var(--gutter)) / 6 + var(--gutter))) 1fr; height: 12px; border-top: 1px solid var(--line); position: relative; }
.six-ruler i { background: linear-gradient(var(--line-strong), var(--line-strong)) left top / 1px 12px no-repeat, repeating-linear-gradient(90deg, rgba(6, 26, 50, .1) 0 1px, transparent 1px 12.5%) left top / 100% 6px no-repeat; }
.six-ruler::after { content: ""; position: absolute; right: 0; top: 0; width: 1px; height: 12px; background: var(--line-strong); }
.six-cols { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); column-gap: var(--gutter); }
.six-cols li { display: flex; position: relative; border-left: 1px solid var(--line); }
.six-cols li:last-child::after { content: ""; position: absolute; top: 0; bottom: 0; right: 0; border-right: 1px solid var(--line); }
.six-c { position: relative; display: flex; flex-direction: column; width: 100%; padding: var(--s-6) var(--s-2) var(--s-8) calc(var(--s-2) - 1px); transition: background-color var(--t-2) var(--e-stop); }
.six-c::before { content: ""; position: absolute; left: -1px; top: -13px; width: 48px; height: 6px; background: var(--yellow); transform: scaleX(0); transform-origin: left; transition: transform var(--t-3) var(--e-stop); }
.six-c .ico { color: var(--fg-2); margin-bottom: var(--s-16); transition: color var(--t-2), transform var(--t-3) var(--e-stop); }
.six-c .label { color: var(--fg-2); }
.six-t { margin-top: var(--s-1); font-size: 18px; font-weight: 400; line-height: 1.3; }
.six-c p { margin-top: var(--s-2); font-size: 15px; line-height: 1.6; color: var(--fg-2); }
/* Hover only where there is a pointer, so a tapped card does not stay lit on touch */
@media (hover: hover) {
  .six-c:hover { background: var(--ice); }
  .six-c:hover::before { transform: none; }
  .six-c:hover .ico { color: var(--navy); transform: translateY(6px); }
  .six-c:hover .label { color: var(--fg); }
}
.six-c:focus-visible { background: var(--ice); }
.six-c:focus-visible::before { transform: none; }
.six-c:focus-visible .ico { color: var(--navy); transform: translateY(6px); }
.six-c:focus-visible .label { color: var(--fg); }
.six-foot { margin-top: var(--s-12); align-items: end; row-gap: var(--s-4); }
.six-foot .lead { max-width: 40ch; }
.six-cta { justify-self: end; }
@media (max-width: 1279px) { .six-c .ico { margin-bottom: var(--s-8); } }
@media (max-width: 1023px) {
  .six-board { margin-top: var(--s-12); }
  .six-ruler { grid-template-columns: repeat(2, calc((100% - 2 * var(--gutter)) / 3 + var(--gutter))) 1fr; }
  .six-ruler i:nth-child(n+4) { display: none; }
  .six-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .six-cols li:nth-child(3)::after { content: ""; position: absolute; top: 0; bottom: 0; right: 0; border-right: 1px solid var(--line); }
  .six-cols li:last-child::after { display: none; }
  .six-cols li:nth-child(6)::after { display: block; }
  .six-cols li:nth-child(n+4) .six-c { border-top: 1px solid var(--line); }
  .six-cta { justify-self: start; }
}
@media (max-width: 639px) {
  .six-ruler { display: none; }
  .six-cols { grid-template-columns: 1fr; }
  .six-cols li { border-left: 0; border-top: 1px solid var(--line); }
  .six-cols li::after { display: none; }
  .six-cols li:nth-child(n) .six-c { border-top: 0; }
  .six-c { display: grid; grid-template-columns: 30px 1fr; column-gap: var(--s-3); padding: var(--s-4) 0; }
  .six-c .ico { grid-row: 1 / span 3; margin: 0; }
  .six-c::before { top: -1px; left: 0; }
  .six-c .label, .six-t, .six-c p { grid-column: 2; }
}
.caps-intro { align-self: end; max-width: 36ch; }

/* =========================================================
   Measured grid: the ruler and the column lines
   One system for every block. --cols is how many grid columns the element spans;
   ticks and lines land on the column starts at any width.
   ========================================================= */
.ruled, .lined { --cols: 6; --pitch: calc(100% / var(--cols) + var(--gutter) / var(--cols)); }
.ruled { position: relative; padding-top: var(--s-2); }
.ruled::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 12px; border-top: 1px solid var(--line);
  background:
    linear-gradient(var(--line-strong), var(--line-strong)) right top / 1px 12px no-repeat,
    repeating-linear-gradient(90deg, var(--line-strong) 0 1px, transparent 1px var(--pitch)) left top / 100% 12px no-repeat,
    repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px calc(var(--pitch) / 8)) left top / 100% 6px no-repeat;
}
.lined {
  background:
    linear-gradient(var(--line), var(--line)) right top / 1px 100% no-repeat,
    repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px var(--pitch)) left top / 100% 100%;
}
@media (max-width: 639px) { .ruled, .lined { --cols: 2; } }

/* Section runner with the ruler */
.runner { padding-top: var(--s-4); }
.runner::before {
  height: 12px; border-top: 1px solid var(--line); background:
    linear-gradient(var(--line-strong), var(--line-strong)) right top / 1px 12px no-repeat,
    repeating-linear-gradient(90deg, var(--line-strong) 0 1px, transparent 1px calc(100% / 6 + var(--gutter) / 6)) left top / 100% 12px no-repeat,
    repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px calc(100% / 48 + var(--gutter) / 48)) left top / 100% 6px no-repeat;
}
@media (max-width: 639px) {
  .runner::before { background:
    linear-gradient(var(--line-strong), var(--line-strong)) right top / 1px 12px no-repeat,
    repeating-linear-gradient(90deg, var(--line-strong) 0 1px, transparent 1px calc(100% / 2 + var(--gutter) / 2)) left top / 100% 12px no-repeat,
    repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px calc(100% / 16 + var(--gutter) / 16)) left top / 100% 6px no-repeat; }
}
/* Blocks that span two columns carry two columns of lines */
.feat-metric.lined { --cols: 2; }
@media (max-width: 1023px) { .feat-metric.lined { --cols: 6; } }
@media (max-width: 639px) { .feat-metric.lined { --cols: 2; } }
.problem-list.lined { --cols: 3; }
@media (max-width: 639px) { .problem-list.lined { --cols: 1; } }

/* Contact details on three columns */
.direct.lined { --cols: 3; column-gap: var(--gutter); }
.direct.lined > div { background: none; min-height: 192px; padding: var(--s-4) var(--s-2) var(--s-6); }
@media (max-width: 1023px) { .direct.lined { --cols: 1; } .direct.lined > div { min-height: 0; } }
@media (max-width: 639px) { .brand { grid-column: 1 / 5; } .menu-btn { grid-column: 5 / -1; } }
@media (max-width: 639px) { .problem-list li { grid-column: 1 / -1; padding-bottom: var(--s-6); } .problem-list li + li { border-top: 1px solid var(--line); } }

/* ---------- The symbol at display size, built part by part ----------
   Stem drops in, the arms slide in from the right, yellow last. Each part moves along one axis and stops. */
.mark-big { display: block; width: auto; height: 144px; fill: var(--fg); }
.mark-big .m-y { fill: var(--yellow); }
.mark-big rect { transform-box: fill-box; transition: transform var(--t-4) var(--e-stop); }
.js .mark-big[data-rv="mark"] .m-up { transition-delay: 160ms; }
.js .mark-big[data-rv="mark"] .m-low { transition-delay: 320ms; }
.js .mark-big[data-rv="mark"] .m-y { transition-delay: 560ms; }
.js .mark-big[data-rv="mark"]:not(.is-in) .m-stem, .js .mark-big[data-steps] .m-stem:not(.is-on) { transform: translateY(-110%); }
.js .mark-big[data-rv="mark"]:not(.is-in) :is(.m-up, .m-low, .m-y), .js .mark-big[data-steps] :is(.m-up, .m-low, .m-y):not(.is-on) { transform: translateX(110%); }
.how-mark { margin-top: var(--s-12); }
.contact-mark { align-self: end; }
.contact-mark .mark-big { height: 216px; }
@media (max-width: 1023px) { .how-mark { display: none; } .contact-mark .mark-big { height: 144px; } }
@media (max-width: 639px) { .contact-mark .mark-big { height: 96px; } }

/* Meta rows (case study and legal headers): on the six columns, each cell opens with its own line */
.meta.ruled { grid-template-columns: repeat(6, minmax(0, 1fr)); row-gap: 0; }
.meta.ruled > div { grid-column: span 2; border-top: 0; border-left: 1px solid var(--line); padding: var(--s-3) var(--s-2) var(--s-4) calc(var(--s-2) - 1px); }
.meta.ruled[style*="--n:4"] > div:nth-child(even) { grid-column: span 1; }
@media (max-width: 1023px) { .meta.ruled > div, .meta.ruled[style*="--n:4"] > div:nth-child(n) { grid-column: span 3; } }
@media (max-width: 639px) { .meta.ruled > div, .meta.ruled[style*="--n:4"] > div:nth-child(n) { grid-column: 1 / -1; } }
.ph-row .arw { width: 12px; height: 12px; flex: none; }
.ph-side .contact-mark { align-self: flex-start; }
@media (max-width: 639px) { .ph-side { padding-right: var(--s-2); } .ph-row { row-gap: 0; } .ph-row > * { padding-bottom: var(--s-3); } }

/* ---------- Page head height: one height for every inner page; the data row sits on the bottom ---------- */
@media (min-width: 1024px) {
  .phero.ph, .cs-hero.ph { display: flex; flex-direction: column; min-height: clamp(560px, 72svh, 720px); }
  .ph > .wrap:last-child { flex: 1; display: flex; flex-direction: column; }
  .ph-main { margin-bottom: var(--s-12); }
  .ph > .wrap:last-child > :is(.ph-row, .cap-board, .cs-metrics) { margin-top: auto; }
}
.ph-side .cs-kicker { color: var(--fg-2); font-size: 12px; }
.cs-lede { padding-top: var(--s-12); }
.cs-lede .cs-meta { margin-top: var(--s-12); }
.ph-pj a { font-size: 15px; }
.ph-direct .contact-mark { grid-column: 6; padding: var(--s-2) 0 var(--s-4) var(--s-2); }
.ph-direct .ph-go { grid-column: 5; }
@media (max-width: 1023px) { .ph-direct .contact-mark, .ph-direct .ph-go { grid-column: span 2; } }
@media (max-width: 639px) { .ph-direct .contact-mark { grid-column: 1 / -1; } }
/* In a page head the metrics row keeps the data-row height: numbers smaller, no tall cells */
.ph .cs-metrics > div { min-height: 0; padding: var(--s-2) var(--s-2) var(--s-4); gap: var(--s-2); }
.ph .cs-metrics .metric { font-size: clamp(36px, 3.4vw, 48px); }
.ph .cs-metrics > :not(.m-wide) .mv { display: none; }
.cs-foot--top { margin: 0 0 var(--s-8); }
.ph-direct .contact-mark .mark-big { height: 48px; }

/* ---------- Projects: image, role, name, one line, one metric, view ---------- */
.pj-lead-media { align-items: stretch; }
.pj-lead-map { position: relative; margin: 0; min-height: 0; }
.pj-lead-map .map { position: absolute; inset: 0 0 var(--s-6) var(--s-2); }
.pj-lead-map .map svg { width: 100%; height: 100%; }
.pj-lead-map .pt { fill: var(--grey); }
.pj-lead-map figcaption { position: absolute; left: var(--s-2); bottom: 0; color: var(--fg-2); }
.pj-lead:hover .pj-lead-map .pt { fill: var(--paper); }
.pj-grid { row-gap: var(--s-16) }
.pj-t .t-story { font-size: 18px; font-weight: 300; line-height: 1.4; max-width: 36ch; }
.pj-m { display: flex; align-items: baseline; gap: var(--s-2); min-width: 0; }
.pj-m b { font-weight: 300; font-size: 36px; line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.pj-m .label { color: var(--fg-2); }
.pj-lead .pj-m b { font-size: 48px; }
.tile .t-foot { align-items: end; }
.tile .t-foot .link { flex: none; }
.pj-ov { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.pj-ov rect { fill: none; stroke: rgba(244, 245, 245, .85); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.pj-ov path { fill: none; stroke: var(--paper); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.pj-ov text { font: 400 17px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; fill: var(--paper); }
@media (max-width: 1023px) {
  .pj-lead-map { grid-column: 1 / -1; height: 420px; margin-top: var(--s-3); }
  .pj-grid .tile { grid-column: 1 / -1; }
  .pj-grid { row-gap: var(--s-12); }
}
@media (max-width: 639px) {
  .pj-lead-map { height: 320px; }
  .pj-m { flex-direction: column; gap: var(--s-1); }
  .pj-ov text { display: none; }
}
.pj-lead-map .map svg { overflow: hidden; }
.pj-ov--q path { stroke: var(--navy); }
.pj-ov--q text { fill: var(--navy); }

/* Projects grid: a row of two at equal height, then the panorama */
.pj-grid { align-items: stretch; }
.pj-t--tall { display: flex; flex-direction: column; }
.pj-t--tall .slot { flex: 1 1 auto; }
.pj-t--tall .slot::before { padding-top: 0; min-height: 320px; }
.pj-t--tall .t-foot { margin-top: auto; }
.pj-t--tall .t-story { margin-bottom: var(--s-3); }
.pj-wide-text { row-gap: var(--s-3); align-items: start; }
.pj-wide-text .t-foot { margin-top: var(--s-3); }
.pj-lead .t-foot { margin-top: var(--s-4); }
@media (max-width: 1023px) { .pj-t--tall .slot::before { padding-top: 80%; min-height: 0; } .pj-t--wide .slot { --r: 2; } }
@media (max-width: 639px) { .pj-t--tall .slot::before { padding-top: 125%; } .pj-t--wide .slot { --r: 1.5; } }

/* ---------- Services: engagement row, roles, areas ---------- */
.ph-eng li:nth-child(3) { grid-column: span 2; }
.ph-eng .ph-cta { grid-column: 6; }
.ph-eng .ph-cta a > span:last-child { display: inline-flex; align-items: center; gap: var(--s-1); }
.engage3 { --cols: 3; row-gap: var(--s-8); }
.engage3 article { display: flex; flex-direction: column; gap: var(--s-3); padding: var(--s-3) var(--s-2) 0; }
.engage3 .label { color: var(--fg-2); }
.engage3 .h3 { max-width: 16ch; }
.engage3 .engage-t { font-size: 15px; line-height: 1.55; max-width: 40ch; }
.engage3 .engage-t > * + * { margin-top: var(--s-2); }
.engage3 .engage-cta { margin-top: var(--s-3); }
.area .apps { font-size: 15px; line-height: 1.6; margin-top: var(--s-1); }
.area-body .label { margin-top: var(--s-4); }
.area-proj.ruled { display: flex; flex-direction: column; gap: var(--s-1); }
.area-proj .t-role { color: var(--fg-2); margin-bottom: var(--s-1); }
.area-proj .t-name { font-size: 21px; line-height: 1.25; transition: color var(--t-1); }
.area-proj .t-line { color: var(--fg-2); }
.area-proj .t-foot { display: flex; justify-content: flex-end; border-top: 1px solid var(--line); margin-top: var(--s-3); padding-top: var(--s-2); }
.area-proj:hover .t-name { color: var(--fg-2); }
@media (max-width: 1023px) { .engage3 { --cols: 6; } .engage3 article { grid-column: 1 / -1; } .ph-eng .ph-cta { grid-column: span 2; } }
@media (max-width: 639px) { .engage3 { --cols: 2; } }
.area-proj.ruled { padding-left: var(--s-2); }
@media (max-width: 1023px) { .engage3.lined { background: none; } .engage3 article { border-top: 1px solid var(--line); } .engage3 article:first-child { border-top: 0; } }
@media (max-width: 639px) { .ph-eng li:nth-child(3), .ph-eng .ph-cta { grid-column: 1 / -1; } }

/* ---------- Capability links: four projects, the capabilities each one used, one 1px line per pairing ---------- */
.lk { --row: 120px; align-items: stretch; }
.lk-l, .lk-r { display: grid; grid-template-rows: repeat(4, var(--row)); }
.lk-l { grid-column: 1 / 3; } .lk-r { grid-column: 5 / -1; }
.lk { position: relative; }
/* from the end of column 2 to the start of column 5, exactly */
.lk-svg { --l: calc((100% - var(--gutter) * 5) / 6 * 2 + var(--gutter)); position: absolute; top: 0; left: var(--l); width: calc(100% - var(--l) * 2); height: calc(var(--row) * 4); overflow: visible; }
.lk-svg path { fill: none; stroke: var(--line-strong); stroke-width: 1; vector-effect: non-scaling-stroke; transition: stroke var(--t-1), opacity var(--t-1); }
.lk-p, .lk-c { position: relative; display: flex; flex-direction: column; justify-content: center; gap: var(--s-1); padding-left: var(--s-2); border-top: 1px solid var(--line); transition: color var(--t-1), opacity var(--t-1); }
.lk-p:last-child, .lk-c:last-child { border-bottom: 1px solid var(--line); }
.lk-p .label, .lk-c .label { color: var(--fg-2); }
.lk-n { font-size: 21px; font-weight: 300; line-height: 1.25; }
.lk-m { display: none; }
/* the line ends: a 6px point, like the access points on the maps */
.lk-p::after, .lk-c::before { content: ""; position: absolute; top: 50%; width: 6px; height: 6px; margin-top: -3px; background: var(--fg); }
.lk-p::after { right: -3px; }
.lk-c::before { left: -3px; }
/* point at one side: its lines and the other side's matches stay, everything else steps back */
.lk.is-tracing .lk-svg path { opacity: .18; }
.lk.is-tracing .lk-svg path.is-on { opacity: 1; stroke: var(--fg); stroke-width: 1.5; }
.lk.is-tracing :is(.lk-p, .lk-c):not(.is-on) { opacity: .4; }
.lk-p.is-src::after, .lk-c.is-src::before { background: var(--yellow); } /* one yellow: the point you are on */
/* the lines draw left to right once (a clip, since dashes break with non-scaling strokes) */
.lk-svg { clip-path: inset(0 0 0 0); transition: clip-path 900ms var(--e-stop); }
.js .lk:not(.is-in) .lk-svg { clip-path: inset(0 100% 0 0); }
@media (max-width: 1023px) {
  .lk { --row: 104px; }
  .lk-n { font-size: 18px; }
}
@media (max-width: 639px) {
  .lk-svg, .lk-r, .lk-p::after { display: none; }
  .lk-l { grid-column: 1 / -1; grid-template-rows: none; }
  .lk-p { padding-block: var(--s-3); }
  .lk-m { display: block; color: var(--fg); margin-top: var(--s-1); }
}

/* ---------- Line length and long button labels ---------- */
.body p, .body-long p, p.body, .prose p, .prose li, .cs-note .body, .area .apps { max-width: 66ch; }
@media (max-width: 639px) { .btn { white-space: normal; max-width: 100%; text-align: left; } }

/* hero numbers on a phone: labels may wrap to two lines, the numbers still share one baseline */
@media (max-width: 639px) {
  .hud-data > div { display: flex; flex-direction: column; }
  .hud-data dd { margin-top: auto; padding-top: var(--s-1); }
  .hud-k span { white-space: normal; }
}
/* phone: page-head text runs the full width, so only the outer two lines stay; a middle line would cut through every paragraph */
@media (max-width: 639px) {
  .ph-lines i:nth-child(4) { border-left-color: transparent; }
  .caps-intro { margin-top: var(--s-3); }
}
@media (max-width: 1023px) { .caps-intro { max-width: none; } }

/* Page-head rows that link somewhere show the arrow on hover */
.ph-go-n { display: inline-flex; align-items: center; gap: var(--s-1); }
.ph-go-n .arw { width: 12px; height: 12px; opacity: 0; transform: translateX(-6px); transition: opacity var(--t-1), transform var(--t-2) var(--e-stop); }
.ph-row a:hover .ph-go-n .arw, .ph-row a:focus-visible .ph-go-n .arw { opacity: 1; transform: none; }
.ph-row a:hover { color: var(--fg); }
@media (hover: none) { .ph-go-n .arw { opacity: 1; transform: none; } }

/* ---------- Insights: topic index; the row you point at shows its field photo ---------- */
.tp { align-items: start; margin-top: var(--s-8); }
.tp .topics { margin-top: 0; }
.tp .pairs > div { grid-template-columns: repeat(4, minmax(0, 1fr)); padding-left: 0; transition: background-color var(--t-1); }
.tp .pairs dt { grid-column: 1 / 3; padding-left: var(--s-2); color: var(--fg-2); transition: color var(--t-1); }
.tp .pairs dt .data { color: var(--fg-2); margin-right: var(--s-1); }
.tp .pairs dd { grid-column: 3 / -1; padding-left: var(--s-2); }
.tp .chips li { color: var(--fg-2); box-shadow: inset 0 0 0 1px var(--line); transition: color var(--t-1), box-shadow var(--t-1); }
.tp-row.is-on dt { color: var(--fg); }
.tp-row.is-on .chips li { color: var(--fg); box-shadow: inset 0 0 0 1px var(--line-strong); }
.tp-pv { position: sticky; top: calc(var(--header) + var(--s-4)); margin: 0; padding-left: var(--s-2); }
.tp-ph { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--navy-2); }
.tp-ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; clip-path: inset(100% 0 0 0); transition: clip-path var(--t-4) var(--e-stop); }
.tp-ph img.is-on { clip-path: inset(0); z-index: 1; }
.tp-pv figcaption { margin-top: var(--s-2); color: var(--fg-2); }
.tp-pv figcaption .tp-t { color: var(--fg); }
@media (max-width: 1023px) {
  .tp-pv { display: none; }
  .tp .topics { grid-column: 1 / -1; }
  .tp .pairs > div { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .tp .pairs dd { grid-column: 3 / -1; }
  .tp .pairs dt, .tp-row .chips li { color: var(--fg); }
}
@media (max-width: 599px) { .tp .pairs dt, .tp .pairs dd { grid-column: 1 / -1; } }

/* Featured: the 214 records under the article, one 6px square per access point, one municipality per column */
.rec { margin: var(--s-12) 0 0; }
.rec-h { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-3); padding: 0 0 var(--s-6) var(--s-2); color: var(--fg-2); }
.rec-total { color: var(--fg); }
.rec-total b { font: 300 30px/1 var(--sans); letter-spacing: -0.02em; margin-right: var(--s-1); font-variant-numeric: tabular-nums; }
.rec-cols { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); column-gap: var(--gutter); align-items: end; }
.rec-c { display: flex; flex-direction: column; gap: var(--s-1); padding-left: var(--s-2); }
.rec-sq { display: flex; flex-wrap: wrap-reverse; gap: 6px; align-content: flex-start; min-height: 72px; margin-bottom: var(--s-2); }
.rec-sq i { width: 6px; height: 6px; background: var(--navy); transform: scale(0); transition: transform 240ms var(--e-stop), background-color var(--t-1); }
.rec.is-in .rec-sq i { transform: none; }
.rec-c .label { color: var(--fg-2); transition: color var(--t-1); }
.rec-n { color: var(--fg); }
@media (hover: hover) {
  .rec-c:hover .rec-sq i { background: var(--yellow); }
  .rec-c:hover .label { color: var(--fg); }
}
@media (max-width: 639px) { .rec-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--s-6); } .rec-h { flex-direction: column; } }

/* Latest: each article opens with its photo */
.ins > .slot { margin-bottom: var(--s-2); }
.ins { border-top: 0; padding-top: 0; }

/* Topics: the name is the row's headline; number in mono before it */
.tp .pairs > div { padding-block: var(--s-4) var(--s-4); }
.tp .pairs dt { display: flex; align-items: baseline; gap: var(--s-3); padding-top: 0; }
.tp-num { color: var(--fg-2); }
.tp-name { font-size: 24px; font-weight: 300; line-height: 1.2; letter-spacing: -0.01em; color: var(--fg-2); transition: color var(--t-1); }
.tp-row.is-on .tp-name { color: var(--fg); }
.tp .pairs dd { align-self: center; }
@media (max-width: 1023px) { .tp-name { color: var(--fg); font-size: 21px; } }

/* ---------- Rise: a card or row slides up 24px out of its own edge and stops; siblings follow 70ms apart.
   An animation, not a transition, so the elements keep their own hover transitions. ---------- */
@keyframes rise { from { translate: 0 24px; clip-path: inset(-24px -24px 100% -24px); } to { translate: 0 0; clip-path: inset(-24px); } }
.js [data-rv="rise"]:not(.is-in) { translate: 0 24px; clip-path: inset(-24px -24px 100% -24px); }
.js [data-rv="rise"].is-in { animation: rise 640ms var(--e-stop) backwards; animation-delay: calc(var(--i, 0) * 70ms); }
@media (prefers-reduced-motion: reduce) { .js [data-rv="rise"] { translate: none !important; clip-path: none !important; animation: none !important; } }

/* ---------- 360° views: a frame cut from the panorama; the viewer itself loads only when asked for ---------- */
.pano { position: relative; }
.pano-go { position: absolute; left: var(--s-3); bottom: var(--s-3); --b-bg: var(--navy); --b-fg: var(--paper); --b-line: var(--navy); --b-hover-bg: var(--paper); --b-hover-fg: var(--navy); }
.pano-go .label { color: var(--grey); transition: color var(--t-2) var(--e-stop); }
.pano-go:hover .label { color: var(--ink-2); }
.pano iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.pano.is-live .pano-go { display: none; }
.pano-grid { margin-top: var(--s-12); row-gap: var(--s-8); }
@media (max-width: 599px) { .pano-go { left: var(--s-2); bottom: var(--s-2); height: 40px; padding: 0 var(--s-2); } }
@media (max-width: 599px) { .pano.is-live .slot { --r: 1; } }  /* on a phone the open viewer gets a square frame to look around in */

/* Cookie inventory: a plain ruled table that scrolls inside itself on narrow screens */
.inv { overflow-x: auto; margin-block: var(--s-3); }
.inv table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 14px; line-height: 1.5; }
.inv th { font: 400 11px/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--fg-2); text-align: left; }
.inv th, .inv td { padding: var(--s-2) var(--s-2) var(--s-2) 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.art-hero-cap { padding-block: var(--s-2); color: var(--fg-2); }
