/* ==========================================================================
   Premier Underground — site styles
   Hand-written CSS, no build step. Sections:
   1 tokens · 2 base · 3 layout · 4 type · 5 buttons/tags · 6 header/nav
   7 hero · 8 strata + depth gauge · 9 components · 10 footer · 11 forms
   12 motion · 13 print
   ========================================================================== */

/* 1 ── tokens ───────────────────────────────────────────────────────────── */
:root {
  --blue: #0f499e;            /* brand blue (sampled from the logo) */
  --blue-700: #0b377a;
  --blue-500: #1b5ec6;
  --blue-300: #86b4ff;        /* link/accent colour on dark backgrounds */
  --char: #3a3a3b;            /* brand charcoal (sampled from the logo) */
  --ink: #0d1014;             /* page dark */
  --ink-2: #14181f;
  --ink-3: #1d222b;
  --ink-line: rgba(255, 255, 255, .12);
  --bone: #f3f0e9;            /* page light */
  --bone-2: #e8e4da;
  --paper: #ffffff;
  --line: #d6d1c5;
  --text: #20242b;
  --text-soft: #555c67;
  --on-ink: #eceef2;
  --on-ink-soft: #a6aebb;
  --amber: #5c9dff;           /* accent on dark backgrounds: a lighter tint of the brand blue */
  --amber-600: #3f7fe6;
  /* APWA uniform colour code (used in diagrams only) */
  --apwa-red: #e5262a;        /* electric */
  --apwa-orange: #f5821f;     /* communications */
  --apwa-yellow: #ffd200;     /* gas, oil, steam */
  --apwa-blue: #1f7fe0;       /* potable water */
  --apwa-green: #2e9e4f;      /* sewer, drain */
  --apwa-purple: #8a4fc7;     /* reclaimed water */
  --apwa-pink: #ff5fa8;       /* survey */

  --font: "Archivo", "Arial Narrow", Arial, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --wrap: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --section: clamp(64px, 9vw, 128px);
  --radius: 4px;
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* 2 ── base ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; background: var(--bone); color: var(--text);
  font-family: var(--font); font-size: 1.0625rem; line-height: 1.6;
  font-optical-sizing: auto; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: var(--blue); text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { color: var(--blue-700); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.08; color: inherit; text-wrap: balance; }
p { margin: 0 0 1.1em; text-wrap: pretty; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.2em; }
address { font-style: normal; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }
::selection { background: var(--amber); color: var(--ink); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 200; background: var(--amber); color: var(--ink); padding: 12px 18px; font-weight: 700; border-radius: var(--radius); }
.skip:focus { top: 12px; }
.mute { color: var(--text-soft); }

/* 3 ── layout ───────────────────────────────────────────────────────────── */
.container { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.container--narrow { width: min(100% - 2 * var(--gutter), 820px); margin-inline: auto; }
.section { padding-block: var(--section); position: relative; }
.section--tight { padding-block: calc(var(--section) * .6); }
.section--paper { background: var(--paper); }
.section--bone { background: var(--bone); }
.section--bone-2 { background: var(--bone-2); }
.section--ink { background: var(--ink); color: var(--on-ink); }
.section--ink-2 { background: var(--ink-2); color: var(--on-ink); }
.section--blue { background: var(--blue); color: #fff; }
.section--ink a:not(.btn), .section--ink-2 a:not(.btn), .section--blue a:not(.btn) { color: var(--blue-300); }
.section--blue a:not(.btn) { color: #fff; }
.section--ink .mute, .section--ink-2 .mute { color: var(--on-ink-soft); }
.section--grid-lines { background-image: linear-gradient(var(--ink-line) 1px, transparent 1px), linear-gradient(90deg, var(--ink-line) 1px, transparent 1px); background-size: 64px 64px; background-position: center top; }

.grid { display: grid; gap: clamp(20px, 2.6vw, 36px); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: minmax(0, 1fr); } }
.stack > * + * { margin-top: 1.1em; }
.section-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 64px); align-items: end; margin-bottom: clamp(32px, 5vw, 64px); }
.section-head > :last-child { margin-bottom: .4em; }
.section-head--center { display: block; max-width: 780px; margin-inline: auto; text-align: center; }
@media (max-width: 820px) { .section-head { grid-template-columns: minmax(0, 1fr); } }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.split--wide-text { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.split--top { align-items: start; }
.split--reverse > :first-child { order: 2; }
@media (max-width: 900px) { .split, .split--wide-text { grid-template-columns: minmax(0, 1fr); } .split--reverse > :first-child { order: 0; } }

/* 4 ── type ─────────────────────────────────────────────────────────────── */
.display, h1, .h1 { font-weight: 900; font-stretch: 118%; letter-spacing: -.012em; text-transform: uppercase; line-height: .96; }
h1, .h1 { font-size: clamp(2.3rem, 5.4vw, 4.4rem); }
h2, .h2 { font-size: clamp(1.8rem, 3.6vw, 3rem); font-weight: 850; font-stretch: 112%; letter-spacing: -.012em; text-transform: uppercase; line-height: 1; }
h3, .h3 { font-size: clamp(1.2rem, 1.6vw, 1.45rem); font-weight: 750; font-stretch: 105%; letter-spacing: -.005em; }
h4, .h4 { font-size: 1.05rem; font-weight: 700; }
.lede { font-size: clamp(1.15rem, 1.5vw, 1.35rem); line-height: 1.5; color: var(--text-soft); max-width: 62ch; }
.section--ink .lede, .section--ink-2 .lede, .section--blue .lede, .page-hero .lede, .hero .lede { color: var(--on-ink-soft); }
.section--blue .lede { color: #dbe7fb; }
.eyebrow { display: flex; align-items: center; gap: .8em; font-family: var(--mono); font-size: .78rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); margin: 0 0 1.4em; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; flex: none; }
.section--ink .eyebrow, .section--ink-2 .eyebrow, .page-hero .eyebrow, .hero .eyebrow { color: var(--amber); }
.section--blue .eyebrow { color: #fff; }
.section-head--center .eyebrow { justify-content: center; }
.num { font-family: var(--mono); font-feature-settings: "tnum" 1, "zero" 1; }
.prose { max-width: 70ch; }
.prose h2 { margin-top: 1.6em; font-size: clamp(1.5rem, 2.4vw, 2.1rem); }
.prose h3 { margin-top: 1.5em; }
.prose li { margin-bottom: .4em; }
.accent { color: var(--amber); }
.accent-blue { color: var(--blue); }
.section--ink .accent-blue { color: var(--blue-300); }

/* 5 ── buttons, tags ────────────────────────────────────────────────────── */
.btn { --bg: var(--ink); --fg: #fff; display: inline-flex; align-items: center; gap: .7em; padding: .95em 1.5em; background: var(--bg); color: var(--fg); border: 2px solid var(--bg); border-radius: var(--radius); font: 750 .95rem/1 var(--font); font-stretch: 108%; letter-spacing: .04em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: transform .2s var(--ease), background-color .2s, color .2s, border-color .2s; }
.btn::after { content: ""; width: .55em; height: .55em; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); transition: transform .2s var(--ease); margin-left: .1em; }
.btn:hover { color: var(--fg); transform: translateY(-2px); }
.btn:hover::after { transform: translateX(4px) rotate(45deg); }
.btn--primary { --bg: var(--amber); --fg: var(--ink); }
.btn--primary:hover { --bg: #ffc94d; }
.btn--blue { --bg: var(--blue); --fg: #fff; }
.btn--blue:hover { --bg: var(--blue-700); }
.btn--ghost { background: transparent; color: currentColor; border-color: currentColor; }
.btn--ghost:hover { background: currentColor; }
.btn--ghost:hover { color: currentColor; }
.section--ink .btn--ghost:hover, .hero .btn--ghost:hover, .page-hero .btn--ghost:hover, .cta-band .btn--ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
.section--bone .btn--ghost:hover, .section--paper .btn--ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn--sm { padding: .75em 1.1em; font-size: .82rem; }
.btn--plain::after { display: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 1.8em; }
.link-arrow { display: inline-flex; align-items: center; gap: .5em; font-weight: 700; text-decoration: none; text-transform: uppercase; letter-spacing: .05em; font-size: .88rem; font-stretch: 108%; }
.link-arrow::after { content: "→"; transition: transform .2s var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }
.tag { display: inline-flex; align-items: center; padding: .3em .7em; border: 1px solid currentColor; border-radius: 100px; font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; line-height: 1.3; }
.tag--amber { background: var(--amber); border-color: var(--amber); color: var(--ink); font-weight: 700; }
.tag--blue { background: var(--blue); border-color: var(--blue); color: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 1.2em; list-style: none; }

/* 6 ── header / nav ─────────────────────────────────────────────────────── */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 100; color: #fff; transition: background-color .3s, box-shadow .3s, transform .3s var(--ease); background: linear-gradient(to bottom, rgba(13, 16, 20, .85), rgba(13, 16, 20, 0)); }
.site-header.is-stuck { background: rgba(13, 16, 20, .94); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--ink-line); }
.site-header__bar { width: min(100% - 2 * var(--gutter), 1440px); margin-inline: auto; height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: block; flex: none; align-self: flex-start; background: #fff; padding: 14px 16px 12px; border-radius: 0 0 var(--radius) var(--radius); box-shadow: 0 10px 30px rgba(0, 0, 0, .35); transition: padding .3s var(--ease); }
.brand__logo { height: 58px; width: auto; transition: height .3s var(--ease); }
.site-header.is-stuck .brand { padding: 10px 14px 9px; }
.site-header.is-stuck .brand__logo { height: 46px; }
.nav { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 40px); }
.nav__list { display: flex; align-items: center; gap: clamp(4px, 1.2vw, 20px); list-style: none; margin: 0; padding: 0; }
.nav__item { position: relative; display: flex; align-items: center; }
.nav__link { display: block; padding: 10px 8px; color: #fff; text-decoration: none; font-weight: 650; font-size: .86rem; font-stretch: 108%; letter-spacing: .07em; text-transform: uppercase; position: relative; }
.nav__link::after { content: ""; position: absolute; left: 8px; right: 8px; bottom: 4px; height: 2px; background: var(--amber); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.nav__link:hover { color: #fff; }
.nav__link:hover::after, .nav__link[data-active]::after, .nav__link[aria-current]::after { transform: scaleX(1); }
.nav__caret { appearance: none; background: none; border: 0; color: inherit; width: 22px; height: 30px; margin-left: -6px; cursor: pointer; position: relative; }
.nav__caret::before { content: ""; position: absolute; left: 6px; top: 10px; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .2s; }
.nav__caret[aria-expanded="true"]::before { transform: rotate(-135deg); top: 14px; }
.menu { position: absolute; top: 100%; left: -16px; min-width: 300px; padding: 10px; background: var(--ink-2); border: 1px solid var(--ink-line); border-top: 3px solid var(--amber); border-radius: 0 0 var(--radius) var(--radius); box-shadow: 0 24px 60px rgba(0, 0, 0, .45); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .18s, transform .18s var(--ease), visibility .18s; }
.menu--wide { width: min(760px, 86vw); }
.nav__item--has-menu:hover > .menu, .nav__item--has-menu:focus-within > .menu, .menu.is-open { opacity: 1; visibility: visible; transform: none; }
.menu__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; list-style: none; margin: 0; padding: 0; }
.menu__cols--one { grid-template-columns: minmax(0, 1fr); }
.menu a { display: block; padding: 10px 12px; border-radius: 3px; color: #fff; text-decoration: none; line-height: 1.3; }
.menu a strong { display: block; font-weight: 700; font-size: .95rem; }
.menu a span { display: block; font-size: .82rem; color: var(--on-ink-soft); }
.menu a:hover, .menu a[aria-current] { background: var(--ink-3); color: #fff; }
.menu a[aria-current] strong { color: var(--amber); }
.menu__all strong { color: var(--amber); }
.nav__actions { display: flex; align-items: center; gap: 18px; }
.nav__phone { font-family: var(--mono); font-size: .9rem; color: #fff; text-decoration: none; white-space: nowrap; }
.nav__phone:hover { color: var(--amber); }
.nav-toggle { display: none; appearance: none; background: none; border: 0; color: #fff; width: 48px; height: 48px; cursor: pointer; margin-right: -10px; }
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after { display: block; width: 26px; height: 2px; background: currentColor; margin: 0 auto; transition: transform .25s var(--ease), opacity .2s; }
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -8px; } .nav-toggle__bars::after { top: 8px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 1180px) {
  :root { --header-h: 64px; }
  .brand { padding: 10px 12px 9px; }
  .brand__logo, .site-header.is-stuck .brand__logo { height: 44px; }
  .site-header.is-stuck .brand { padding: 10px 12px 9px; }
  .nav-toggle { display: block; }
  .nav { position: fixed; inset: var(--header-h) 0 0 0; flex-direction: column; align-items: stretch; gap: 0; padding: 12px var(--gutter) 40px; background: var(--ink); overflow-y: auto; opacity: 0; visibility: hidden; transform: translateY(-12px); transition: opacity .25s, transform .25s var(--ease), visibility .25s; }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__item { flex-wrap: wrap; border-bottom: 1px solid var(--ink-line); }
  .nav__link { flex: 1; padding: 18px 0; font-size: 1.15rem; }
  .nav__link::after { display: none; }
  .nav__caret { width: 52px; height: 52px; margin: 0; }
  .nav__caret::before { left: 20px; top: 18px; width: 10px; height: 10px; }
  .nav__caret[aria-expanded="true"]::before { top: 24px; }
  .menu, .menu--wide { position: static; width: 100%; min-width: 0; display: none; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; background: transparent; padding: 0 0 14px; }
  .nav__item--has-menu:hover > .menu, .nav__item--has-menu:focus-within > .menu { display: none; }
  .menu.is-open, .nav__item--has-menu:hover > .menu.is-open, .nav__item--has-menu:focus-within > .menu.is-open { display: block; }
  .menu__cols { grid-template-columns: minmax(0, 1fr); }
  .menu a span { display: none; }
  .nav__actions { flex-direction: column; align-items: stretch; gap: 14px; margin-top: 28px; }
  .nav__actions .btn { justify-content: center; padding: 1.1em; font-size: 1rem; }
  .nav__phone { font-size: 1.2rem; text-align: center; padding: 10px; }
  body.nav-open { overflow: hidden; }
  .site-header:has(.nav.is-open) { background: var(--ink); }
}

/* 7 ── hero ─────────────────────────────────────────────────────────────── */
.hero { position: relative; min-height: min(100svh, 980px); display: grid; align-items: end; color: #fff; background: var(--ink); isolation: isolate; overflow: hidden; }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: var(--focus, 60% 50%); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(13, 16, 20, .94) 0%, rgba(13, 16, 20, .78) 38%, rgba(13, 16, 20, .25) 72%, rgba(13, 16, 20, .35) 100%), linear-gradient(to top, rgba(13, 16, 20, 1) 0%, rgba(13, 16, 20, 0) 34%); }
.hero__inner { width: min(100% - 2 * var(--gutter), 1440px); margin-inline: auto; padding: calc(var(--header-h) + 56px) 0 clamp(48px, 7vw, 96px); }
.hero h1 { font-size: clamp(2.6rem, 7.2vw, 6.6rem); max-width: 13ch; margin-bottom: .35em; font-stretch: 122%; line-height: .9; }
.hero h1 .hero__kicker { display: block; font-family: var(--mono); font-size: clamp(.78rem, 1vw, .92rem); font-weight: 500; font-stretch: 100%; letter-spacing: .16em; line-height: 1.5; color: var(--amber); margin-bottom: 1.6em; max-width: none; }
.hero h1 em { font-style: normal; color: var(--amber); }
.hero .lede { font-size: clamp(1.1rem, 1.6vw, 1.4rem); max-width: 54ch; color: #d5dae2; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 0; margin: clamp(36px, 5vw, 72px) 0 0; padding: 0; list-style: none; border-top: 1px solid rgba(255, 255, 255, .22); }
.hero__facts li { flex: 1 1 180px; padding: 20px 24px 0 0; }
.hero__facts strong { display: block; font-size: clamp(1.5rem, 2.6vw, 2.3rem); font-weight: 900; font-stretch: 118%; line-height: 1; margin-bottom: .3em; }
.hero__facts span { font-family: var(--mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: #c0c7d2; }
@media (max-width: 700px) {
  .hero::before { background: linear-gradient(to top, rgba(13, 16, 20, 1) 8%, rgba(13, 16, 20, .82) 55%, rgba(13, 16, 20, .55) 100%); }
  .hero__facts li { flex-basis: 45%; }
}

.page-hero { position: relative; background: var(--ink); color: #fff; padding: calc(var(--header-h) + clamp(40px, 6vw, 88px)) 0 clamp(48px, 7vw, 96px); isolation: isolate; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(var(--ink-line) 1px, transparent 1px), linear-gradient(90deg, var(--ink-line) 1px, transparent 1px); background-size: 64px 64px; mask-image: linear-gradient(to bottom, #000, transparent 85%); opacity: .7; }
.page-hero__media { position: absolute; inset: 0; z-index: -2; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: var(--focus, 50% 50%); opacity: .34; filter: grayscale(.35) contrast(1.05); }
.page-hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--ink) 0%, rgba(13, 16, 20, .7) 45%, rgba(13, 16, 20, .25) 100%), linear-gradient(to top, var(--ink), transparent 50%); }
.page-hero h1 { max-width: 18ch; }
.page-hero .lede { max-width: 60ch; color: #cfd5de; }
.page-hero__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: end; }
@media (max-width: 900px) { .page-hero__grid { grid-template-columns: minmax(0, 1fr); } }
.crumbs { margin-bottom: clamp(24px, 3vw, 40px); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: .4em .9em; list-style: none; margin: 0; padding: 0; font-family: var(--mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; }
.crumbs li + li::before { content: "/"; margin-right: .9em; color: var(--on-ink-soft); }
.crumbs a { color: var(--on-ink-soft); text-decoration: none; }
.crumbs a:hover { color: #fff; }
.crumbs [aria-current] { color: var(--amber); }

/* 8 ── strata + depth gauge ─────────────────────────────────────────────── */
.strata { height: 46px; background:
  linear-gradient(to bottom, #2b2f37 0 6px, transparent 6px),
  repeating-linear-gradient(90deg, rgba(255, 255, 255, .05) 0 2px, transparent 2px 22px),
  linear-gradient(to bottom, #3b3128 0 16px, #4a3a2b 16px 30px, #5a4632 30px 46px); position: relative; }
.strata::after { content: ""; position: absolute; left: 0; right: 0; top: 6px; height: 3px; background: repeating-linear-gradient(90deg, var(--amber) 0 18px, var(--ink) 18px 36px); opacity: .9; }
.strata--footer { height: 28px; background: linear-gradient(to bottom, #5a4632 0 9px, #4a3a2b 9px 18px, #3b3128 18px 28px); }
.strata--footer::after { display: none; }

.depth { position: fixed; right: 14px; top: 50%; z-index: 50; transform: translateY(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; font-family: var(--mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: #fff; mix-blend-mode: difference; pointer-events: none; opacity: 0; transition: opacity .4s; }
.depth.is-on { opacity: .9; }
.depth__label { writing-mode: vertical-rl; transform: rotate(180deg); }
.depth__track { width: 2px; height: 180px; background: rgba(255, 255, 255, .28); position: relative; }
.depth__track::before { content: ""; position: absolute; left: -4px; right: -4px; top: 0; bottom: 0; background: repeating-linear-gradient(to bottom, rgba(255, 255, 255, .6) 0 1px, transparent 1px 10px); }
.depth__fill { position: absolute; left: -2px; width: 6px; top: 0; height: 0; background: #fff; }
.depth__value { white-space: nowrap; }
@media (max-width: 1320px) { .depth { display: none; } }

/* 9 ── components ───────────────────────────────────────────────────────── */

/* stat band */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--ink .stats, .section--ink-2 .stats { border-color: var(--ink-line); }
.stat { padding: clamp(24px, 3vw, 40px) clamp(16px, 2vw, 32px); border-left: 1px solid var(--line); }
.section--ink .stat, .section--ink-2 .stat { border-color: var(--ink-line); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat__num { display: block; font-size: clamp(2.4rem, 5vw, 4.2rem); font-weight: 900; font-stretch: 120%; line-height: .95; letter-spacing: -.02em; color: var(--blue); }
.section--ink .stat__num, .section--ink-2 .stat__num { color: var(--amber); }
.stat__num small { font-size: .45em; font-weight: 800; letter-spacing: 0; margin-left: .1em; }
.stat__label { display: block; margin-top: .7em; font-family: var(--mono); font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-soft); line-height: 1.5; }
.section--ink .stat__label, .section--ink-2 .stat__label { color: var(--on-ink-soft); }
@media (max-width: 900px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .stat:nth-child(odd) { border-left: 0; padding-left: 0; } .stat:nth-child(n+3) { border-top: 1px solid var(--line); } .section--ink .stat:nth-child(n+3) { border-color: var(--ink-line); } }

/* service cards */
.svc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.section--ink .svc-grid, .section--ink-2 .svc-grid { background: var(--ink-line); border-color: var(--ink-line); }
.svc-card { position: relative; display: flex; flex-direction: column; min-height: 250px; padding: clamp(22px, 2.4vw, 32px); background: var(--paper); color: var(--text); text-decoration: none; transition: background-color .25s, color .25s; overflow: hidden; }
.section--bone .svc-card { background: var(--bone); }
.section--ink .svc-card { background: var(--ink); color: var(--on-ink); }
.section--ink-2 .svc-card { background: var(--ink-2); color: var(--on-ink); }
.svc-card__num { font-family: var(--mono); font-size: .74rem; letter-spacing: .12em; color: var(--text-soft); }
.svc-card__icon { width: 48px; height: 48px; margin: 18px 0 22px; color: var(--blue); transition: color .25s, transform .35s var(--ease); }
.svc-card__icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.svc-card h3 { margin-bottom: .45em; text-transform: uppercase; font-stretch: 112%; font-weight: 800; font-size: 1.18rem; }
.svc-card p { font-size: .96rem; color: var(--text-soft); margin: 0 0 1.2em; transition: color .25s; }
.svc-card__go { margin-top: auto; font-family: var(--mono); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); transition: color .25s; }
.svc-card__go::after { content: " →"; }
.svc-card::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 4px; background: var(--amber); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
a.svc-card:hover, a.svc-card:focus-visible { background: var(--blue); color: #fff; }
a.svc-card:hover p, a.svc-card:hover .svc-card__num, a.svc-card:hover .svc-card__go, a.svc-card:hover .svc-card__icon { color: #fff; }
a.svc-card:hover .svc-card__icon { transform: translateY(-4px); }
a.svc-card:hover::after { transform: scaleX(1); }
.section--ink .svc-card__icon, .section--ink-2 .svc-card__icon, .section--ink .svc-card__go, .section--ink-2 .svc-card__go { color: var(--amber); }
.section--ink .svc-card p, .section--ink-2 .svc-card p, .section--ink .svc-card__num, .section--ink-2 .svc-card__num { color: var(--on-ink-soft); }

/* figure / photo treatment */
.figure { margin: 0; position: relative; }
.figure img { width: 100%; border-radius: var(--radius); background: var(--ink-3); }
.figure figcaption { margin-top: .8em; font-family: var(--mono); font-size: .74rem; letter-spacing: .06em; color: var(--text-soft); }
.section--ink .figure figcaption, .section--ink-2 .figure figcaption { color: var(--on-ink-soft); }
.figure--frame::before { content: ""; position: absolute; inset: 14px -14px -14px 14px; border: 2px solid var(--blue); border-radius: var(--radius); z-index: -1; }
.section--ink .figure--frame::before, .section--ink-2 .figure--frame::before { border-color: var(--amber); }
.figure--frame { isolation: isolate; margin-right: 14px; margin-bottom: 14px; }
.figure--tall img { aspect-ratio: 3 / 4; object-fit: cover; }
.figure--wide img { aspect-ratio: 16 / 9; object-fit: cover; }
.figure--std img { aspect-ratio: 4 / 3; object-fit: cover; }
.figure__badge { position: absolute; left: 16px; top: 16px; }
.photo-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(10px, 1.4vw, 18px); }
.photo-grid > * { grid-column: span 4; margin: 0; }
.photo-grid > .span-8 { grid-column: span 8; } .photo-grid > .span-6 { grid-column: span 6; } .photo-grid > .span-12 { grid-column: span 12; }
.photo-grid img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); aspect-ratio: 4 / 3; }
.photo-grid .span-8 img, .photo-grid .span-12 img { aspect-ratio: 16 / 9; }
@media (max-width: 700px) { .photo-grid > *, .photo-grid > .span-8, .photo-grid > .span-6 { grid-column: span 12; } }

/* spec sheet (definition list) */
.spec { margin: 0; border-top: 2px solid var(--ink); }
.section--ink .spec, .section--ink-2 .spec, .page-hero .spec { border-top-color: var(--amber); }
.spec > div { display: grid; grid-template-columns: minmax(110px, 38%) minmax(0, 1fr); gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.section--ink .spec > div, .section--ink-2 .spec > div, .page-hero .spec > div { border-bottom-color: var(--ink-line); }
.spec dt { font-family: var(--mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-soft); padding-top: .25em; }
.section--ink .spec dt, .section--ink-2 .spec dt, .page-hero .spec dt { color: var(--on-ink-soft); }
.spec dd { margin: 0; font-weight: 600; }
.spec-card { padding: clamp(22px, 2.6vw, 34px); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.page-hero .spec-card { background: rgba(20, 24, 31, .82); border-color: var(--ink-line); backdrop-filter: blur(6px); }
.spec-card h2, .spec-card h3 { font-size: .8rem; font-family: var(--mono); font-weight: 500; font-stretch: 100%; letter-spacing: .14em; text-transform: uppercase; color: var(--amber); margin-bottom: 1.2em; }
.section--paper .spec-card h2, .section--bone .spec-card h2, .section--paper .spec-card h3, .section--bone .spec-card h3 { color: var(--blue); }

/* tick list */
.ticks { list-style: none; padding: 0; margin: 0 0 1.2em; }
.ticks li { position: relative; padding: .5em 0 .5em 2em; border-bottom: 1px solid var(--line); }
.section--ink .ticks li, .section--ink-2 .ticks li { border-bottom-color: var(--ink-line); }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 1em; width: 13px; height: 7px; border-left: 3px solid var(--blue); border-bottom: 3px solid var(--blue); transform: rotate(-45deg); }
.section--ink .ticks li::before, .section--ink-2 .ticks li::before { border-color: var(--amber); }
.ticks--2 { columns: 2; column-gap: 40px; } .ticks--2 li { break-inside: avoid; }
@media (max-width: 680px) { .ticks--2 { columns: 1; } }

/* cards */
.card { padding: clamp(22px, 2.6vw, 34px); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.section--ink .card { background: var(--ink-2); border-color: var(--ink-line); }
.section--ink-2 .card { background: var(--ink-3); border-color: var(--ink-line); }
.card h3 { text-transform: uppercase; font-stretch: 112%; font-weight: 800; }
.card > :last-child { margin-bottom: 0; }
.card--line { border-top: 4px solid var(--blue); }
.section--ink .card--line, .section--ink-2 .card--line { border-top-color: var(--amber); }
.card__num { display: block; font-family: var(--mono); font-size: .76rem; letter-spacing: .12em; color: var(--blue); margin-bottom: 1.2em; }
.section--ink .card__num, .section--ink-2 .card__num { color: var(--amber); }
a.card { display: block; color: inherit; text-decoration: none; transition: transform .25s var(--ease), border-color .25s, box-shadow .25s; }
a.card:hover { transform: translateY(-4px); border-color: var(--blue); box-shadow: 0 18px 40px rgba(13, 16, 20, .12); }

/* project cards */
.proj-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: clamp(18px, 2.2vw, 28px); }
@media (max-width: 420px) { .proj-grid { grid-template-columns: minmax(0, 1fr); } }
.proj { display: flex; flex-direction: column; padding: clamp(22px, 2.4vw, 32px); background: var(--ink-2); color: var(--on-ink); border: 1px solid var(--ink-line); border-radius: var(--radius); position: relative; overflow: hidden; }
.section--bone .proj, .section--paper .proj { background: var(--ink); }
.proj::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--apwa-red); }
.proj[data-utility="comms"]::before { background: var(--apwa-orange); }
.proj[data-utility="mixed"]::before { background: linear-gradient(to bottom, var(--apwa-red) 50%, var(--apwa-orange) 50%); }
.proj__sector { font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--amber); margin-bottom: 1em; }
.proj h3 { font-size: clamp(1.3rem, 1.9vw, 1.65rem); text-transform: uppercase; font-stretch: 114%; font-weight: 850; margin-bottom: .3em; }
.proj__team { font-size: .9rem; color: var(--on-ink-soft); margin-bottom: 1.4em; }
.proj__metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin: 0 0 1.3em; padding: 0; list-style: none; border-top: 1px solid var(--ink-line); }
.proj__metrics li { padding: 14px 12px 14px 0; border-bottom: 1px solid var(--ink-line); }
.proj__metrics li:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--ink-line); }
.proj__metrics strong { display: block; font-size: clamp(1.4rem, 2.2vw, 1.9rem); font-weight: 900; font-stretch: 116%; line-height: 1; color: #fff; }
.proj__metrics span { display: block; margin-top: .45em; font-family: var(--mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--on-ink-soft); line-height: 1.4; }
.proj p { font-size: .96rem; color: #c9cfd9; margin-bottom: 0; }
.proj .chips { margin: 1.2em 0 0; color: var(--on-ink-soft); }

/* market cards */
.market { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 300px; padding: 26px; background: var(--ink-2); color: #fff; border-radius: var(--radius); overflow: hidden; text-decoration: none; isolation: isolate; }
.market img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: .55; transition: transform .6s var(--ease), opacity .3s; }
.market::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(13, 16, 20, .96) 20%, rgba(13, 16, 20, .2)); }
.market--plain { border: 1px solid var(--ink-line); }
.market--plain::before { background: radial-gradient(120% 90% at 100% 0%, rgba(15, 73, 158, .55), transparent 60%); }
.market h3 { text-transform: uppercase; font-stretch: 114%; font-weight: 850; font-size: 1.3rem; margin-bottom: .35em; }
.market p { font-size: .94rem; color: #cfd5de; margin: 0; }
.market__icon { width: 44px; height: 44px; color: var(--amber); margin-bottom: auto; }
.market__icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
a.market:hover { color: #fff; } a.market:hover img { transform: scale(1.05); opacity: .7; }

/* numbered process steps */
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 0; }
.step { counter-increment: step; position: relative; display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: clamp(16px, 3vw, 40px); padding: clamp(22px, 3vw, 36px) 0; border-top: 1px solid var(--line); }
.section--ink .step, .section--ink-2 .step { border-top-color: var(--ink-line); }
.step::before { content: counter(step, decimal-leading-zero); font-size: clamp(2.2rem, 4vw, 3.4rem); font-weight: 900; font-stretch: 120%; line-height: .9; color: var(--blue); }
.section--ink .step::before, .section--ink-2 .step::before { color: var(--amber); }
.step h3 { text-transform: uppercase; font-stretch: 112%; font-weight: 800; margin-bottom: .4em; }
.step p:last-child { margin-bottom: 0; }
.step__tag { display: inline-block; margin-bottom: .8em; font-family: var(--mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-soft); }
.section--ink .step__tag, .section--ink-2 .step__tag { color: var(--on-ink-soft); }
.steps--cols { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(28px, 5vw, 72px); }
@media (max-width: 860px) { .steps--cols { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .step { grid-template-columns: 56px minmax(0, 1fr); } }

/* golden triangle */
.triangle { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.triangle__svg { width: 100%; max-width: 520px; margin-inline: auto; overflow: visible; }
.triangle__edge { fill: none; stroke: var(--amber); stroke-width: 3; stroke-linejoin: round; }
.triangle__fill { fill: rgba(255, 184, 28, .07); }
.triangle__node circle { fill: var(--ink); stroke: var(--amber); stroke-width: 3; transition: fill .25s, r .25s; }
.triangle__node text { fill: #fff; font: 800 15px var(--font); font-stretch: 116%; letter-spacing: .08em; text-transform: uppercase; }
.triangle__node.is-active circle { fill: var(--amber); }
.triangle__center { fill: var(--on-ink-soft); font: 500 10px var(--mono); letter-spacing: .16em; text-transform: uppercase; }
.triangle__list { list-style: none; margin: 0; padding: 0; }
.triangle__list li { padding: 22px 0 22px 26px; border-left: 3px solid var(--ink-line); transition: border-color .25s; }
.triangle__list li.is-active, .triangle__list li:hover { border-left-color: var(--amber); }
.triangle__list h3 { text-transform: uppercase; font-stretch: 114%; font-weight: 850; margin-bottom: .3em; }
.triangle__list p { margin: 0; color: var(--on-ink-soft); }
@media (max-width: 860px) { .triangle { grid-template-columns: minmax(0, 1fr); } }

/* safety ruler: 3-4-5-6 */
.ruler { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--ink-line); border-radius: var(--radius); overflow: hidden; }
.ruler li { position: relative; padding: clamp(22px, 3vw, 40px) clamp(18px, 2vw, 28px) clamp(26px, 3vw, 36px); border-left: 1px solid var(--ink-line); background: linear-gradient(to bottom, rgba(255, 184, 28, .1), transparent var(--fill, 50%)); }
.ruler li:first-child { border-left: 0; }
.ruler li::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 10px; background: repeating-linear-gradient(to bottom, var(--amber) 0 2px, transparent 2px 12px); opacity: .7; }
.ruler__num { display: block; font-size: clamp(3.4rem, 8vw, 6.6rem); font-weight: 900; font-stretch: 122%; line-height: .85; color: var(--amber); }
.ruler__num small { font-size: .26em; font-family: var(--mono); font-weight: 500; letter-spacing: .1em; margin-left: .3em; color: var(--on-ink-soft); }
.ruler h3 { margin: 1em 0 .4em; text-transform: uppercase; font-stretch: 112%; font-weight: 800; font-size: 1.05rem; }
.ruler p { margin: 0; font-size: .92rem; color: var(--on-ink-soft); }
.section--bone .ruler, .section--paper .ruler { border-color: var(--line); } .section--bone .ruler li, .section--paper .ruler li { border-left-color: var(--line); }
.section--bone .ruler__num, .section--paper .ruler__num { color: var(--blue); }
.section--bone .ruler p, .section--paper .ruler p, .section--bone .ruler__num small, .section--paper .ruler__num small { color: var(--text-soft); }
@media (max-width: 860px) { .ruler { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ruler li:nth-child(3) { border-left: 0; } .ruler li:nth-child(n+3) { border-top: 1px solid var(--ink-line); } }

/* values */
.values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); list-style: none; margin: 0; padding: 0; }
.section--ink .values, .section--ink-2 .values { background: var(--ink-line); border-color: var(--ink-line); }
.values li { padding: clamp(22px, 2.6vw, 34px); background: var(--bone); }
.section--paper .values li { background: var(--paper); }
.section--ink .values li { background: var(--ink); } .section--ink-2 .values li { background: var(--ink-2); }
.values h3 { text-transform: uppercase; font-stretch: 116%; font-weight: 900; font-size: 1.35rem; margin-bottom: .3em; }
.values p { margin: 0; color: var(--text-soft); }
.section--ink .values p, .section--ink-2 .values p { color: var(--on-ink-soft); }
.values__k { display: block; font-family: var(--mono); font-size: .72rem; letter-spacing: .14em; color: var(--blue); margin-bottom: 1.4em; }
.section--ink .values__k, .section--ink-2 .values__k { color: var(--amber); }
@media (max-width: 860px) { .values { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .values { grid-template-columns: minmax(0, 1fr); } }

/* people */
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: clamp(16px, 2vw, 26px); list-style: none; margin: 0; padding: 0; }
.person { background: #000; color: #fff; border-radius: var(--radius); overflow: hidden; position: relative; }
.person__photo { aspect-ratio: 4 / 5; background: #000; overflow: hidden; }
.person__photo img { width: 100%; height: 100%; object-fit: cover; object-position: var(--focus, 50% 20%); transition: transform .6s var(--ease); }
.person:hover .person__photo img { transform: scale(1.04); }
.person__photo--blank { display: grid; place-items: center; background: linear-gradient(135deg, var(--blue), var(--blue-700)); font-size: 3.4rem; font-weight: 900; font-stretch: 120%; letter-spacing: .02em; color: rgba(255, 255, 255, .9); }
.person__body { padding: 18px 20px 22px; border-top: 3px solid var(--amber); background: var(--ink-2); }
.person h3 { margin: 0 0 .25em; text-transform: uppercase; font-stretch: 112%; font-weight: 850; font-size: 1.12rem; }
.person p { margin: 0; font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--on-ink-soft); }
.people--lead { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }

/* faq */
.faq { border-top: 2px solid var(--ink); }
.section--ink .faq, .section--ink-2 .faq { border-top-color: var(--amber); }
.faq details { border-bottom: 1px solid var(--line); }
.section--ink .faq details, .section--ink-2 .faq details { border-bottom-color: var(--ink-line); }
.faq summary { list-style: none; display: grid; grid-template-columns: minmax(0, 1fr) 28px; gap: 20px; align-items: center; padding: 22px 0; cursor: pointer; font-weight: 750; font-size: clamp(1.05rem, 1.4vw, 1.22rem); font-stretch: 104%; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 14px; height: 14px; justify-self: center; background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat, linear-gradient(currentColor, currentColor) center / 2px 100% no-repeat; transition: transform .25s var(--ease); color: var(--blue); }
.section--ink .faq summary::after, .section--ink-2 .faq summary::after { color: var(--amber); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--blue); }
.section--ink .faq summary:hover, .section--ink-2 .faq summary:hover { color: var(--amber); }
.faq__a { padding: 0 48px 24px 0; max-width: 74ch; }
.faq__a > :last-child { margin-bottom: 0; }
.faq h3 { margin: 0; font: inherit; text-transform: none; letter-spacing: 0; }

/* pull quote */
.pullquote { margin: 0; padding: 0 0 0 clamp(20px, 3vw, 40px); border-left: 4px solid var(--amber); }
.pullquote p { font-size: clamp(1.3rem, 2.4vw, 2rem); font-weight: 650; font-stretch: 104%; line-height: 1.3; margin-bottom: .8em; text-wrap: balance; }
.pullquote footer, .pullquote cite { font-family: var(--mono); font-size: .76rem; font-style: normal; letter-spacing: .1em; text-transform: uppercase; color: var(--text-soft); }
.section--ink .pullquote footer, .section--ink-2 .pullquote footer, .section--ink .pullquote cite, .section--ink-2 .pullquote cite { color: var(--on-ink-soft); }

/* callout */
.callout { padding: clamp(20px, 2.4vw, 30px); border-left: 4px solid var(--blue); background: var(--paper); border-radius: 0 var(--radius) var(--radius) 0; }
.section--paper .callout { background: var(--bone); }
.section--ink .callout, .section--ink-2 .callout { background: var(--ink-3); border-left-color: var(--amber); }
.callout > :last-child { margin-bottom: 0; }
.callout--amber { border-left-color: var(--amber); }
.callout h3 { text-transform: uppercase; font-stretch: 110%; font-weight: 800; font-size: 1.05rem; }

/* tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.table { width: 100%; border-collapse: collapse; font-size: .96rem; }
.table th, .table td { padding: 14px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.table thead th { font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 500; background: var(--ink); color: #fff; border-bottom: 0; white-space: nowrap; }
.table tbody tr:last-child td, .table tbody tr:last-child th { border-bottom: 0; }
.table tbody th { font-weight: 700; }
.swatch { display: inline-block; width: 14px; height: 14px; border-radius: 3px; margin-right: 10px; vertical-align: -2px; border: 1px solid rgba(0, 0, 0, .2); }

/* cross-section diagram */
.xsec { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.xsec__svg { width: 100%; height: auto; border-radius: var(--radius); background: #0a0c10; border: 1px solid var(--ink-line); }
.xsec__svg text { font-family: var(--mono); }
.xsec [data-layer] { transition: opacity .3s, filter .3s; }
.xsec.has-focus [data-layer]:not(.is-on) { opacity: .28; }
.xsec .xsec__draw { stroke-dasharray: var(--len, 1200); stroke-dashoffset: var(--len, 1200); transition: stroke-dashoffset 1.6s var(--ease); }
.xsec.is-in .xsec__draw { stroke-dashoffset: 0; }
.xsec .xsec__pop { opacity: 0; transform: translateY(8px); transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: var(--d, 0s); }
.xsec.is-in .xsec__pop { opacity: 1; transform: none; }
.xsec__list { list-style: none; counter-reset: x; margin: 0; padding: 0; }
.xsec__list li { counter-increment: x; }
.xsec__list a, .xsec__list button { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; width: 100%; padding: 13px 0; background: none; border: 0; border-bottom: 1px solid var(--ink-line); color: var(--on-ink); text-align: left; text-decoration: none; font: inherit; cursor: pointer; transition: color .2s, padding .25s var(--ease); }
.xsec__list a::before, .xsec__list button::before { content: counter(x, decimal-leading-zero); font-family: var(--mono); font-size: .78rem; letter-spacing: .1em; color: var(--amber); padding-top: .25em; }
.xsec__list strong { display: block; text-transform: uppercase; font-stretch: 112%; font-weight: 800; letter-spacing: .02em; }
.xsec__list span { display: block; font-size: .9rem; color: var(--on-ink-soft); }
.xsec__list a:hover, .xsec__list a:focus-visible, .xsec__list .is-on { color: var(--amber); padding-left: 8px; }
.xsec__note { margin-top: 1.4em; font-family: var(--mono); font-size: .7rem; letter-spacing: .04em; color: var(--on-ink-soft); }
.legend { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; margin: 1.2em 0 0; padding: 0; font-family: var(--mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--on-ink-soft); }
.legend i { display: inline-block; width: 18px; height: 6px; border-radius: 3px; margin-right: 8px; vertical-align: 1px; }
@media (max-width: 960px) { .xsec { grid-template-columns: minmax(0, 1fr); } }

/* cta band */
.cta-band { position: relative; background: var(--blue); color: #fff; padding: clamp(56px, 8vw, 112px) 0; overflow: hidden; isolation: isolate; }
.cta-band::before { content: ""; position: absolute; right: -6%; top: 50%; width: min(52vw, 620px); aspect-ratio: 600 / 872; transform: translateY(-50%); background: url("/assets/brand/logo-mark-reversed.png") center / contain no-repeat; opacity: .1; z-index: -1; }
.cta-band__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 80px); align-items: end; }
.cta-band h2 { font-size: clamp(2.2rem, 5.6vw, 4.6rem); font-stretch: 122%; font-weight: 900; line-height: .92; margin-bottom: .3em; }
.cta-band p { color: #dbe7fb; max-width: 52ch; font-size: 1.12rem; }
.cta-band__contact { font-family: var(--mono); font-size: .9rem; line-height: 2; }
.cta-band__contact a { color: #fff; }
.cta-band .eyebrow { color: #fff; }
@media (max-width: 860px) { .cta-band__grid { grid-template-columns: minmax(0, 1fr); } }

/* marquee of capabilities */
.ticker { overflow: hidden; background: var(--amber); color: var(--ink); padding: 14px 0; border-block: 2px solid var(--ink); }
.ticker__track { display: flex; gap: 48px; width: max-content; animation: ticker 48s linear infinite; font-weight: 850; font-stretch: 116%; letter-spacing: .06em; text-transform: uppercase; font-size: .95rem; white-space: nowrap; }
.ticker__track span::after { content: "◆"; margin-left: 48px; font-size: .6em; vertical-align: 2px; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* anchor nav for long pages */
.subnav { position: sticky; top: var(--header-h); z-index: 40; background: var(--paper); border-bottom: 1px solid var(--line); }
.subnav ul { display: flex; gap: 4px 26px; overflow-x: auto; list-style: none; margin: 0; padding: 0; scrollbar-width: none; }
.subnav a { display: block; padding: 16px 0; font-family: var(--mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-soft); text-decoration: none; white-space: nowrap; border-bottom: 3px solid transparent; }
.subnav a:hover { color: var(--blue); border-bottom-color: var(--blue); }

/* related links */
.related { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); list-style: none; margin: 0; padding: 0; }
.related a { display: block; height: 100%; padding: 22px 24px; background: var(--paper); color: var(--text); text-decoration: none; transition: background-color .2s, color .2s; }
.related a strong { display: block; text-transform: uppercase; font-stretch: 112%; font-weight: 800; }
.related a span { font-size: .9rem; color: var(--text-soft); transition: color .2s; }
.related a:hover { background: var(--blue); color: #fff; } .related a:hover span { color: #dbe7fb; }

/* fact box for answer engines and skimmers */
.answer { padding: clamp(22px, 2.6vw, 34px); background: var(--paper); border: 1px solid var(--line); border-top: 4px solid var(--blue); border-radius: var(--radius); }
.answer__q { font-family: var(--mono); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); margin-bottom: 1em; }
.answer p:last-child { margin-bottom: 0; }
.answer p:first-of-type { font-size: 1.14rem; font-weight: 550; }

/* 10 ── footer ──────────────────────────────────────────────────────────── */
.site-footer { background: var(--ink); color: var(--on-ink-soft); font-size: .95rem; }
.site-footer a { color: var(--on-ink); text-decoration: none; }
.site-footer a:hover { color: var(--amber); }
.site-footer__top { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 64px); padding-block: clamp(48px, 6vw, 88px); }
.site-footer__brand img { width: 220px; margin-bottom: 26px; background: #fff; padding: 16px 18px; border-radius: var(--radius); }
.site-footer__brand p { max-width: 40ch; }
.site-footer__motto { font-family: var(--mono); font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--amber); }
.site-footer h2 { font-family: var(--mono); font-size: .74rem; font-weight: 500; font-stretch: 100%; letter-spacing: .14em; color: var(--amber); margin-bottom: 1.4em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer__col li { margin-bottom: .55em; }
.site-footer__contact .btn { color: var(--ink); }
.site-footer__contact .btn:hover { color: var(--ink); }
.social { display: flex; gap: 10px; margin-top: 1.4em !important; }
.social a { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--ink-line); border-radius: 50%; transition: background-color .2s, border-color .2s; }
.social a:hover { background: var(--amber); border-color: var(--amber); }
.social a:hover svg { fill: var(--ink); }
.social svg { width: 18px; height: 18px; fill: #fff; }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; padding-block: 22px; border-top: 1px solid var(--ink-line); font-size: .84rem; }
.site-footer__bottom p { margin: 0; }
.site-footer__dig .tag { margin-right: 8px; }
@media (max-width: 1000px) { .site-footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); } .site-footer__brand { grid-column: 1 / -1; } }
@media (max-width: 560px) { .site-footer__top { grid-template-columns: minmax(0, 1fr); } }

/* 11 ── forms ───────────────────────────────────────────────────────────── */
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.form .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label, .field legend { font-family: var(--mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-soft); padding: 0; }
.field .req { color: #b3261e; }
.field input, .field select, .field textarea { width: 100%; padding: 14px 15px; font: inherit; color: var(--text); background: var(--paper); border: 1.5px solid #b9b3a5; border-radius: var(--radius); transition: border-color .2s, box-shadow .2s; }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(15, 73, 158, .16); }
.field input:user-invalid, .field select:user-invalid, .field textarea:user-invalid { border-color: #b3261e; }
.field__hint { font-size: .84rem; color: var(--text-soft); }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px 18px; border: 0; margin: 0; padding: 0; }
.checks label { display: flex; align-items: center; gap: 10px; font: inherit; letter-spacing: 0; text-transform: none; color: var(--text); cursor: pointer; }
.checks input { width: 20px; height: 20px; accent-color: var(--blue); flex: none; }
.form__status { grid-column: 1 / -1; padding: 16px 18px; border-radius: var(--radius); font-weight: 600; }
.form__status[hidden] { display: none; }
.form__status--ok { background: #e3f3e6; color: #174a22; border: 1px solid #a8d5b0; }
.form__status--err { background: #fbe7e5; color: #7a1c15; border: 1px solid #f0b4ae; }
.hp { position: absolute !important; left: -9999px !important; height: 1px; width: 1px; overflow: hidden; }
@media (max-width: 680px) { .form { grid-template-columns: minmax(0, 1fr); } }

/* contact rows */
.contact-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.contact-list li { display: grid; grid-template-columns: minmax(120px, 34%) minmax(0, 1fr); gap: 16px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.contact-list span:first-child { font-family: var(--mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-soft); padding-top: .3em; }
.contact-list a { font-weight: 650; word-break: break-word; }

/* 12 ── motion ──────────────────────────────────────────────────────────── */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal="left"] { transform: translateX(-30px); }
.js [data-reveal="right"] { transform: translateX(30px); }
.js [data-reveal-group] > * { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js [data-reveal-group].is-in > * { opacity: 1; transform: none; }
.js [data-reveal-group].is-in > *:nth-child(2) { transition-delay: .06s; } .js [data-reveal-group].is-in > *:nth-child(3) { transition-delay: .12s; }
.js [data-reveal-group].is-in > *:nth-child(4) { transition-delay: .18s; } .js [data-reveal-group].is-in > *:nth-child(5) { transition-delay: .24s; }
.js [data-reveal-group].is-in > *:nth-child(6) { transition-delay: .3s; } .js [data-reveal-group].is-in > *:nth-child(7) { transition-delay: .36s; }
.js [data-reveal-group].is-in > *:nth-child(8) { transition-delay: .42s; } .js [data-reveal-group].is-in > *:nth-child(n+9) { transition-delay: .48s; }
.hero__inner > * { animation: rise .9s var(--ease) both; }
.hero__inner > *:nth-child(2) { animation-delay: .08s; } .hero__inner > *:nth-child(3) { animation-delay: .16s; } .hero__inner > *:nth-child(4) { animation-delay: .24s; } .hero__inner > *:nth-child(5) { animation-delay: .32s; }
.hero__media img { animation: settle 1.8s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } }
@keyframes settle { from { transform: scale(1.08); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js [data-reveal], .js [data-reveal-group] > * { opacity: 1; transform: none; }
  .xsec .xsec__draw { stroke-dashoffset: 0; } .xsec .xsec__pop { opacity: 1; transform: none; }
  .ticker__track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; padding-inline: var(--gutter); }
}

/* 13 ── print ───────────────────────────────────────────────────────────── */
@media print {
  .site-header, .depth, .cta-band, .nav-toggle, .ticker, .subnav { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .hero, .page-hero, .section--ink, .section--ink-2, .section--blue { background: #fff !important; color: #000 !important; }
  .hero { min-height: 0; } .hero__media, .page-hero__media { display: none; }
  .js [data-reveal], .js [data-reveal-group] > * { opacity: 1 !important; transform: none !important; }
  a { color: #000; }
}

/* 14 ── refinements ─────────────────────────────────────────────────────── */
.section--ink .xsec__list a, .section--ink-2 .xsec__list a { color: var(--on-ink); }
.section--ink .xsec__list a:hover, .section--ink .xsec__list a:focus-visible, .section--ink .xsec__list a.is-on { color: var(--amber); }
.xsec { align-items: start; }
.section--ink a.market, .section--ink-2 a.market, .section--ink a.svc-card, .section--ink-2 a.svc-card, .section--ink a.card, .section--ink-2 a.card { color: #fff; }
.section--ink .crumbs a, .page-hero .crumbs a { color: var(--on-ink-soft); }
.page-hero a:not(.btn):not(.crumbs a) { color: var(--blue-300); }
.page-hero .crumbs a:hover { color: #fff; }
.hero a.btn--ghost, .page-hero a.btn--ghost, .section--ink a.btn--ghost, .section--ink-2 a.btn--ghost, .cta-band a.btn--ghost, .section--blue a.btn--ghost { color: #fff; }
.section--ink .btn--primary, .cta-band .btn--primary, .hero .btn--primary, .page-hero .btn--primary { color: var(--ink); }

/* logo plate needs room: push hero content clear of the hanging tab on small screens */
@media (max-width: 1180px) { .hero__inner { padding-top: calc(var(--header-h) + 72px); } }

/* note / placeholder marker used while content awaits confirmation (remove before launch) */
.todo { outline: 2px dashed #d9480f; outline-offset: 4px; }

/* two-column prose with sticky aside */
.with-aside { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 380px); gap: clamp(32px, 5vw, 80px); align-items: start; }
.with-aside > aside { position: sticky; top: calc(var(--header-h) + 24px); }
@media (max-width: 980px) { .with-aside { grid-template-columns: minmax(0, 1fr); } .with-aside > aside { position: static; } }

/* big statement */
.statement { font-size: clamp(1.6rem, 3.4vw, 2.9rem); font-weight: 800; font-stretch: 110%; line-height: 1.12; letter-spacing: -.01em; text-wrap: balance; max-width: 24ch; }
.statement em { font-style: normal; color: var(--blue); }
.section--ink .statement em, .section--ink-2 .statement em { color: var(--amber); }

/* definition term highlight inside prose */
dfn { font-style: normal; font-weight: 700; border-bottom: 2px solid var(--amber); }

/* city list */
.cities { columns: 4 160px; column-gap: 32px; list-style: none; padding: 0; margin: 0; }
.cities li { padding: .35em 0; border-bottom: 1px solid var(--line); break-inside: avoid; font-weight: 600; }
.section--ink .cities li, .section--ink-2 .cities li { border-bottom-color: var(--ink-line); }

/* timeline */
.timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.section--ink .timeline, .section--ink-2 .timeline { border-left-color: var(--ink-line); }
.timeline li { position: relative; padding: 0 0 2.2em 28px; }
.timeline li::before { content: ""; position: absolute; left: -8px; top: .35em; width: 14px; height: 14px; border-radius: 50%; background: var(--amber); border: 3px solid var(--bone); }
.section--paper .timeline li::before { border-color: var(--paper); } .section--ink .timeline li::before { border-color: var(--ink); }
.timeline time, .timeline .when { display: block; font-family: var(--mono); font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); margin-bottom: .3em; }
.section--ink .timeline time, .section--ink .timeline .when { color: var(--amber); }
.timeline h3 { margin-bottom: .2em; }
.timeline p { margin: 0; color: var(--text-soft); }
.section--ink .timeline p { color: var(--on-ink-soft); }

/* small screens: keep the widest word of the hero headline inside the viewport */
html { overflow-x: clip; }
.hero h1 { font-size: clamp(1.95rem, 9.2vw, 6.6rem); overflow-wrap: break-word; }
h1, h2, h3 { overflow-wrap: break-word; }
@media (max-width: 700px) {
  .js [data-reveal="left"], .js [data-reveal="right"] { transform: translateY(26px); }
  .figure--frame { margin-right: 10px; }
  .figure--frame::before { inset: 10px -10px -10px 10px; }
}
a[href^="mailto:"], .spec dd, .contact-list a, .cta-band__contact { overflow-wrap: anywhere; }
@media (max-width: 520px) { .spec > div { grid-template-columns: minmax(0, 1fr); gap: 2px; } .contact-list li { grid-template-columns: minmax(0, 1fr); gap: 2px; } }
.page-hero h1 { font-size: clamp(2rem, 4.3vw, 3.5rem); overflow-wrap: normal; hyphens: none; }

/* 15 ── brand colour pass: Premier blue and charcoal lead; no construction orange ── */
.btn--primary { --bg: var(--blue); --fg: #fff; }
.btn--primary:hover { --bg: var(--blue-500); }
.hero .btn--primary, .page-hero .btn--primary, .section--ink .btn--primary, .section--ink-2 .btn--primary, .nav .btn--primary, .site-footer .btn--primary { --bg: var(--blue-500); --fg: #fff; color: #fff; }
.hero .btn--primary:hover, .page-hero .btn--primary:hover, .section--ink .btn--primary:hover, .nav .btn--primary:hover, .site-footer .btn--primary:hover { --bg: #2f74dd; color: #fff; }
.cta-band .btn--primary, .section--blue .btn--primary { --bg: #fff; --fg: var(--blue); color: var(--blue); }
.cta-band .btn--primary:hover, .section--blue .btn--primary:hover { --bg: #e6eefb; color: var(--blue-700); }
.ticker { background: var(--blue); color: #fff; border-block: 0; }
.strata::after { background: repeating-linear-gradient(90deg, #fff 0 18px, var(--blue) 18px 36px); }
.tag--amber { background: var(--blue-500); border-color: var(--blue-500); color: #fff; }
.skip { background: var(--blue); color: #fff; }
::selection { background: var(--blue); color: #fff; }
.social a:hover svg { fill: #fff; }
.site-footer a:hover, .nav__phone:hover { color: var(--blue-300); }

/* logo watermark in the call-to-action band: one flat white silhouette, kept clear of the text */
.cta-band::before { background-image: url("/assets/brand/logo-mark.png"); filter: brightness(0) invert(1); opacity: .07; right: -4%; width: min(34vw, 420px); }

/* framed photos: the outline wraps the picture only, never the caption */
.figure--frame { margin-bottom: 0; }
.figure--frame::before { display: none; }
.figure--frame img { box-shadow: 14px 14px 0 -2px var(--bone), 14px 14px 0 0 var(--blue); margin-bottom: 14px; }
.section--paper .figure--frame img { box-shadow: 14px 14px 0 -2px var(--paper), 14px 14px 0 0 var(--blue); }
.section--bone-2 .figure--frame img { box-shadow: 14px 14px 0 -2px var(--bone-2), 14px 14px 0 0 var(--blue); }
.section--ink .figure--frame img { box-shadow: 14px 14px 0 -2px var(--ink), 14px 14px 0 0 var(--amber); }
.section--ink-2 .figure--frame img { box-shadow: 14px 14px 0 -2px var(--ink-2), 14px 14px 0 0 var(--amber); }
@media (max-width: 700px) { .figure--frame img { box-shadow: none; margin-bottom: 0; } }

/* cards and tables placed inside dark sections stay readable */
.section--ink .spec-card, .section--ink-2 .spec-card { background: var(--ink-2); border-color: var(--ink-line); color: var(--on-ink); }
.section--ink-2 .spec-card { background: var(--ink-3); }
.table-wrap { color: var(--text); }
.table-wrap a:not(.btn) { color: var(--blue) !important; }
.section--ink .answer, .section--ink-2 .answer { color: var(--text); }

/* long words inside project metrics shrink instead of overflowing */
.proj__metrics strong { overflow-wrap: anywhere; }

/* email addresses break after the @ rather than mid-word */
a[href^="mailto:"] { overflow-wrap: break-word; }

/* 16 ── header and footer logo sit directly on the dark background (no white tab) */
.brand, .site-header.is-stuck .brand { background: none; padding: 0; box-shadow: none; border-radius: 0; align-self: center; }
.brand__logo { height: 50px; }
.site-header.is-stuck .brand__logo { height: 42px; }
@media (max-width: 1180px) { .brand, .site-header.is-stuck .brand { padding: 0; } .brand__logo, .site-header.is-stuck .brand__logo { height: 40px; } .hero__inner { padding-top: calc(var(--header-h) + 56px); } }
.site-footer__brand img { background: none; padding: 0; border-radius: 0; width: 200px; }
.brand__logo { height: 60px; }
.site-header.is-stuck .brand__logo { height: 48px; }
@media (max-width: 1180px) { .brand__logo, .site-header.is-stuck .brand__logo { height: 46px; } }

/* four-across tiles drop to two columns before titles get squeezed into mid-word breaks */
@media (max-width: 1200px) { .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .grid--4 { grid-template-columns: minmax(0, 1fr); } }
.market h3, .svc-card h3, .proj h3, .person h3 { overflow-wrap: normal; }

/* 17 ── market tiles: motion and depth ─────────────────────────────────── */
.market--plain { --mx: 70%; --my: 0%; background: var(--ink-2); border: 1px solid var(--ink-line); transition: transform .45s var(--ease), border-color .3s, box-shadow .45s var(--ease); }
/* resting state: a soft brand-blue glow plus faint "conduit" lines drifting slowly across the tile */
.market--plain::before {
  background:
    radial-gradient(420px circle at var(--mx) var(--my), rgba(27, 94, 198, .55), transparent 55%),
    repeating-linear-gradient(115deg, rgba(134, 180, 255, .07) 0 1px, transparent 1px 26px);
  background-size: 100% 100%, 200% 200%;
  animation: market-drift 18s linear infinite;
}
@keyframes market-drift { from { background-position: 0 0, 0 0; } to { background-position: 0 0, 200% 100%; } }
/* depth gauge running down the right edge, filling on hover */
.market--plain::after { content: ""; position: absolute; top: 18px; bottom: 18px; right: 18px; width: 2px; z-index: -1; background: repeating-linear-gradient(to bottom, rgba(255, 255, 255, .22) 0 1px, transparent 1px 10px); }
.market__icon { width: 52px; height: 52px; padding: 10px; margin-bottom: auto; border: 1px solid rgba(134, 180, 255, .25); border-radius: 50%; background: rgba(15, 73, 158, .25); transition: transform .5s var(--ease), background-color .3s, border-color .3s, color .3s; }
.market h3 { transition: transform .45s var(--ease); }
.market p { transition: color .3s, transform .45s var(--ease); }
.market__go { display: inline-flex; align-items: center; gap: .5em; margin-top: 1.1em; font-family: var(--mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--blue-300); opacity: .75; transform: translateY(4px); transition: opacity .3s, transform .45s var(--ease), gap .3s var(--ease); }
.market__go::after { content: "→"; }
/* hover / keyboard focus */
a.market--plain:hover, a.market--plain:focus-visible { transform: translateY(-8px); border-color: rgba(134, 180, 255, .55); box-shadow: 0 24px 50px rgba(0, 0, 0, .45), 0 0 0 1px rgba(134, 180, 255, .15); }
a.market--plain:hover .market__icon, a.market--plain:focus-visible .market__icon { transform: translateY(-4px) rotate(-6deg) scale(1.08); background: var(--blue-500); border-color: var(--blue-500); color: #fff; }
a.market--plain:hover h3, a.market--plain:focus-visible h3 { transform: translateY(-4px); }
a.market--plain:hover p, a.market--plain:focus-visible p { color: #fff; transform: translateY(-4px); }
a.market--plain:hover .market__go, a.market--plain:focus-visible .market__go { opacity: 1; transform: none; gap: .9em; color: #fff; }
a.market--plain:hover::after, a.market--plain:focus-visible::after { background: linear-gradient(to bottom, var(--blue-300), var(--blue-500)) top / 100% 100% no-repeat, repeating-linear-gradient(to bottom, rgba(255, 255, 255, .22) 0 1px, transparent 1px 10px); animation: market-gauge .8s var(--ease) both; }
@keyframes market-gauge { from { background-size: 100% 0%, auto; } to { background-size: 100% 100%, auto; } }
/* the tiles enter one after another, rising and un-blurring */
.js [data-reveal-group] > .market { transform: translateY(34px) scale(.97); filter: blur(4px); transition: opacity .8s var(--ease), transform .8s var(--ease), filter .8s var(--ease), border-color .3s, box-shadow .45s var(--ease); }
.js [data-reveal-group].is-in > .market { transform: none; filter: none; }
.js [data-reveal-group].is-in > a.market--plain:hover { transform: translateY(-8px); }
@media (prefers-reduced-motion: reduce) {
  .market--plain::before { animation: none; }
  a.market--plain:hover, a.market--plain:hover .market__icon, a.market--plain:hover h3, a.market--plain:hover p, .js [data-reveal-group].is-in > a.market--plain:hover { transform: none; }
}
