/* UT Quality — "midstream leader" system (2026-09-23, Marcus msgs 18889 + 18912).
   ONE light system for every page and every division (USA / Canada / Offshore): white header with the real
   logo, full-bleed real-photo heroes, light body, one brand colour (UTQ logo blue), photo-led split sections,
   stat-bar proof strip, strong navy footer. No eyebrow labels, no numbered-row gimmicks, no dark themes.
   The SVG figures on the resource pages are generated by ventures/utquality/tools/figs.py (self-coloured). */

:root {
  --brand: #046CDA;          /* UT Quality logo blue */
  --brand-dk: #0356AE;
  --brand-tint: #EAF2FC;
  --ink: #0F1C2A;            /* headings */
  --body: #34414D;           /* body copy */
  --muted: #5A6775;
  --line: #DCE2E8;
  --bg: #FFFFFF;
  --alt: #F3F5F8;            /* light alternate section */
  --navy: #0B1A2A;           /* footer + hero scrim only */
  --hdr: 72px;
  --wrap: 1240px;
  --font: 'Barlow', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --display: 'Barlow Semi Condensed', 'Barlow', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  /* legacy aliases still referenced by a few inline styles */
  --blue: var(--brand); --heading: var(--ink); --band: var(--alt); --border: var(--line); --text: var(--body);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr) + 12px); }
body { margin: 0; background: var(--bg); color: var(--body); font-family: var(--font); font-size: 18px; line-height: 1.6; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { color: var(--ink); margin: 0 0 .6em; line-height: 1.15; }
h1, h2 { font-family: var(--display); font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: clamp(1.9rem, 1.3rem + 2vw, 2.75rem); }
h3 { font-size: 1.25rem; font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; }
p { margin: 0 0 1em; }
ul { margin: 0; padding-left: 1.1em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
@media (min-width: 900px) { .wrap { padding: 0 40px; } }
.muted { color: var(--muted); }
section { padding: clamp(56px, 7vw, 104px) 0; }
.band, .band-deep, .accent-band { background: var(--alt); }
.section-head { max-width: 820px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head p:last-child { margin-bottom: 0; }
.lead-in, .section-head > p { font-size: 1.15rem; color: var(--body); }
.label { font-weight: 600; color: var(--brand); font-size: 1rem; margin: 0 0 .5rem; }

/* ---------------------------------------------------------------- utility bar + header */
.utility { background: var(--alt); border-bottom: 1px solid var(--line); font-size: .86rem; color: var(--muted); display: none; }
.utility .wrap { display: flex; justify-content: space-between; align-items: center; min-height: 36px; gap: 24px; }
.utility a { color: var(--ink); font-weight: 500; }
.util-r { display: flex; gap: 22px; }
@media (min-width: 900px) { .utility { display: block; } }

.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: var(--hdr); gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand:hover { text-decoration: none; }
.brand-logo { height: 44px; width: auto; }
.flagchip { font-size: .8rem; font-weight: 600; color: var(--brand); border: 1px solid var(--brand); padding: 2px 8px; border-radius: 2px; line-height: 1.4; white-space: nowrap; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--ink); font-weight: 500; font-size: 1rem; padding: 10px 12px; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--brand); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--brand); border-bottom-color: var(--brand); }
.nav a.nav-cta { background: var(--brand); color: #fff; border-radius: 2px; margin-left: 10px; padding: 10px 18px; font-weight: 600; border-bottom: 0; }
.nav a.nav-cta:hover { background: var(--brand-dk); color: #fff; }
.menu-btn { display: none; width: 44px; height: 44px; border: 0; background: transparent; border-radius: 2px; cursor: pointer; padding: 0; position: relative; color: transparent; font-size: 0; }
/* hamburger (Marcus msg 19200): three 1.5px bars, 22px wide, 6px apart, header ink @80%, no box */
.menu-btn { outline-offset: 2px; box-shadow: none; -webkit-appearance: none; appearance: none; }
.menu-btn::before, .menu-btn::after { content: ""; position: absolute; left: 11px; width: 22px; height: 1.5px; background: rgba(15,28,42,.8); border-radius: 0; transition: transform .2s; }
.menu-btn::before { top: 14.25px; box-shadow: 0 7.5px 0 rgba(15,28,42,.8); }
.menu-btn::after { top: 29.25px; }
.menu-btn[aria-expanded="true"]::before { top: 21.75px; box-shadow: none; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"]::after { top: 21.75px; transform: rotate(-45deg); }
@media (max-width: 1080px) {
  :root { --hdr: 64px; }
  .brand-logo { height: 38px; }
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 20px; border-bottom: 1px solid var(--line); box-shadow: 0 16px 30px rgba(11,26,42,.12); max-height: calc(100svh - var(--hdr)); overflow-y: auto; }
  .nav.open { display: flex; }
  .nav a { padding: 15px 4px; border-bottom: 1px solid var(--line); font-size: 1.08rem; }
  .nav a[aria-current="page"] { border-bottom-color: var(--line); box-shadow: inset 3px 0 0 var(--brand); padding-left: 12px; }
  .nav a.nav-cta { margin: 16px 0 0; text-align: center; padding: 15px; }
}

/* ---------------------------------------------------------------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; font-family: var(--font); font-weight: 600; font-size: 1rem; padding: 14px 23px; border-radius: 2px; border: 1px solid transparent; cursor: pointer; line-height: 1.2; text-decoration: none; }
.btn:hover { text-decoration: none; }
.btn-lg { font-size: 1.06rem; padding: 15px 26px; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dk); }
.btn-ghost { border-color: #fff; color: #fff; background: transparent; }
.btn-ghost:hover { background: #fff; color: var(--ink); }
.btn-dark { color: var(--brand); padding: 0; font-weight: 600; background: none; border: 0; }
.arrow-link { color: var(--brand); font-weight: 600; }

/* ---------------------------------------------------------------- HERO: full-bleed real photograph */
.hero { position: relative; padding: 0; min-height: calc(100svh - var(--hdr)); display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: var(--navy); }
.hero-media, .hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-media img, .hero-media video { object-fit: cover; object-position: var(--pos-m, 50% 40%); }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(8,20,33,.9) 0%, rgba(8,20,33,.74) 36%, rgba(8,20,33,.34) 60%, rgba(8,20,33,0) 80%); }
.hero h1, .hero .crumb, .hero .crumbs { text-shadow: 0 2px 16px rgba(0,0,0,.35); }
.hero-inner { position: relative; z-index: 1; padding-top: 48px; padding-bottom: 40px; }
.hero h1 { color: #fff; font-size: clamp(2.5rem, 1.6rem + 3.6vw, 4.6rem); line-height: 1.02; margin: 0 0 18px; max-width: 13ch; }
.hero h1 .h1-kicker { display: block; font-family: var(--font); font-weight: 600; font-size: clamp(1.05rem, .95rem + .4vw, 1.3rem); letter-spacing: 0; margin-bottom: 10px; color: rgba(255,255,255,.92); }
.hero h1 .h1-sub { display: block; font-family: var(--font); font-weight: 500; font-size: clamp(1.15rem, 1rem + .6vw, 1.5rem); line-height: 1.3; margin-top: 12px; color: rgba(255,255,255,.95); max-width: 30ch; }
.hero .tag { display: inline-block; background: #fff; color: var(--brand); font-weight: 600; font-size: .92rem; padding: 5px 12px; border-radius: 2px; margin-bottom: 18px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 520px) {
  .hero-cta .btn { flex: 1 1 100%; }
}
@media (min-width: 900px) {
  .hero { min-height: min(calc(100svh - var(--hdr) - 36px), 860px); align-items: center; }
  .hero-media img, .hero-media video { object-position: var(--pos-d, 50% 50%); }
  .hero::after { background: linear-gradient(90deg, rgba(8,20,33,.78) 0%, rgba(8,20,33,.52) 34%, rgba(8,20,33,.12) 60%, rgba(8,20,33,0) 78%), linear-gradient(to top, rgba(8,20,33,.35), rgba(8,20,33,0) 40%); }
  .hero-inner { padding-top: 96px; padding-bottom: 96px; }
  .hero h1 { max-width: 14ch; }
}

/* video hero (2026-09-23, Marcus-supplied offshore + Canada clips): a muted looping <video> layered over the
   same .hero-media picture used everywhere else, so the picture's <img> (poster frame) is the built-in
   no-video / reduced-motion / load-failure fallback. Source video is only 528px wide (Telegram-delivered) so
   it reads soft blown up on a wide desktop hero -- the gradient below is intentionally a touch stronger than
   the standard photo hero to keep the H1 legible over the softer image, not to hide the source resolution. */
/* Chromium (confirmed in both headless and headed/Xvfb testing, 2026-09-23) mis-paints object-fit:cover on a
   <video> whose box is CROPPED HORIZONTALLY (a tall/narrow box vs a landscape source, i.e. the phone hero) --
   it renders two different crops stacked in one frame instead of one uniform cover crop. object-fit works fine
   for the img fallback and for the video on WIDE boxes (desktop), so this is video+narrow-box specific. Fix:
   the pre-object-fit "min-width/min-height + centering transform" cover technique, which doesn't hit the bug. */
.hero-video {
  z-index: 0;
  top: 50%; left: 50%; right: auto; bottom: auto;
  width: auto; height: auto; min-width: 100%; min-height: 100%;
  max-width: none;
  transform: translate(-50%, -50%);
}
/* PHONE ONLY (2026-09-25) — the rule above NEVER SCALES A VIDEO DOWN. With width/height:auto a replaced
   element takes its INTRINSIC size whenever that already satisfies both minimums, so the <video> painted
   at native size and was centre-cropped by the hero's overflow:hidden. Measured live at 390x844: home and
   offshore (1080x1920 phone encodes) rendered a 1080x1920 box in a 390x780 hero — a 2.77x zoom showing
   ~13% of the frame; usa and canada (608x1080) rendered 1.56x. It only ever looked acceptable on desktop
   because 1920x1080 in a ~1440x790 box over-zooms by a tolerable 1.33x. Below 768px, size the video to the
   hero box and let the object-fit:cover + object-position:var(--pos-m) on .hero-media do the crop.
   The 2026-09-23 Chromium object-fit:cover paint bug (two stacked crops + a hard seam) does NOT apply here:
   that was a LANDSCAPE source in a portrait box; every phone <source> on this site is PORTRAIT (1080x1920 or
   608x1080), and the result was screenshot-verified at 320, 390 and 430 wide on all four video-hero pages.
   >=768px keeps the rule above untouched, so desktop is unchanged. See papercuts 2026-09-25 + Prime's
   .lx-hero-video, which had the identical bug. Revert: backups/REVERT_hero-mobile-utq-rae-20260925.md

   SECOND BUG found while fixing this: `.hero-media img, .hero-media video` (above) NEVER MATCHED THE VIDEO.
   The <video> IS .hero-media (class="hero-media hero-video") — it is not a descendant of one — so the
   descendant selector could not reach it and the video's object-fit stayed at its initial value, `contain`.
   That was invisible while the min-size technique sized the box by hand, but the moment the video is sized
   to the hero box, contain letterboxes it (measured: 390x693 inside 390x780, a 43px band of hero navy top
   and bottom). object-fit/object-position are therefore set EXPLICITLY on .hero-video below. */
@media (max-width: 767px) {
  .hero-video {
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100%; height: 100%; min-width: 0; min-height: 0;
    transform: none;
    object-fit: cover; object-position: var(--pos-m, 50% 50%);
  }
}
.hero.video-hero::after { background: linear-gradient(to top, rgba(8,20,33,.94) 0%, rgba(8,20,33,.8) 36%, rgba(8,20,33,.42) 60%, rgba(8,20,33,.06) 80%); }
@media (min-width: 900px) {
  .hero.video-hero::after { background: linear-gradient(90deg, rgba(8,20,33,.86) 0%, rgba(8,20,33,.6) 34%, rgba(8,20,33,.2) 60%, rgba(8,20,33,.03) 78%), linear-gradient(to top, rgba(8,20,33,.45), rgba(8,20,33,0) 40%); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-video { display: none; }
}

/* inner / resource-page photo hero (shorter) */
.hero.hero-sm { min-height: 460px; }
.hero.hero-sm h1 { font-size: clamp(2.1rem, 1.5rem + 2.6vw, 3.6rem); max-width: 22ch; }
@media (min-width: 900px) { .hero.hero-sm { min-height: 520px; } }
.crumb { font-size: .92rem; color: rgba(255,255,255,.9); margin: 0 0 14px; }
.crumb a { color: #fff; font-weight: 600; }
.crumb span { margin: 0 .5em; opacity: .7; }
.crumb-short { display: none; }

/* Resource-hero phone fixes (2026-09-24, Marcus msg 19189 "this looks whack on mobile"):
   1) real portrait crop wired via <picture><source media="(max-width:767px)"> per page (see HTML) —
      this rule just re-affirms the phone gutter/scrim/breadcrumb treatment, never touches desktop.
   2) breadcrumb shortens to "Insights / <page>" + ellipsizes on one line instead of wrapping mid-phrase,
      one legible size/colour (white ~85%) for both the links and the plain current-page segment.
   3) hero-inner keeps the same 20px gutter as the body copy (.wrap already does this — restated here
      so it can never silently drift from the body gutter on this template again). */
@media (max-width: 767px) {
  .hero-inner { padding-left: 20px; padding-right: 20px; }
  .crumb { font-size: .85rem; color: rgba(255,255,255,.85); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
  .crumb a { color: rgba(255,255,255,.85); font-weight: 500; }
  .crumb-home, .crumb-sep-1 { display: none; }
  .crumb-full { display: none; }
  .crumb-short { display: inline; }
}
/* Resource-hero phone fixes v2 (2026-09-24, Marcus msg 19200 "still not fixed"):
   1) ONE smooth gradient over the whole hero — no solid block, no hard seam.
   2) fixed 4:5 hero box; every phone crop (tools/resource_hero_phone_crops.py) is exactly 4:5, so the
      photo shows whole (booms + hooks + a little sky) with no second browser-side cover-crop.
   3) text block anchored to the bottom with 24px padding; the hero ends right after the H1
      (no extra min-height band, no H1 bottom margin).
   4) breadcrumb: every segment the same white-85% colour, size and weight ("Insights" no longer dimmer —
      the old `.crumb span { opacity:.7 }` rule was also hitting the .crumb-short/.crumb-full spans). */
.crumb a span { margin: 0; opacity: 1; }
@media (max-width: 767px) {
  .hero.hero-sm { min-height: 0; aspect-ratio: 4 / 5; align-items: flex-end; }
  .hero.hero-sm::after { background: linear-gradient(to bottom, rgba(10,22,36,0) 30%, rgba(10,22,36,.55) 60%, rgba(10,22,36,.9) 100%); }
  .hero.hero-sm .hero-media img { object-position: 50% 50%; }
  .hero.hero-sm .hero-inner { padding-top: 24px; padding-bottom: 24px; }
  .hero.hero-sm h1 { margin-bottom: 0; }
  .hero.hero-sm .crumb, .hero.hero-sm .crumb a, .hero.hero-sm .crumb span { color: rgba(255,255,255,.85); opacity: 1; font-size: .85rem; font-weight: 500; }
  .hero.hero-sm .crumb-sep { margin: 0 .5em; }
}

/* ---------------------------------------------------------------- intro (lede moved out of the hero) + proof strip */
.intro { padding: clamp(44px, 6vw, 80px) 0 clamp(40px, 5vw, 64px); }
@media (max-width: 767px) {
  /* resource-hero pages only apply .hero-sm right before .intro; tighten just that seam on phones
     (Marcus: "big empty white band between the hero and the first paragraph") */
  .hero.hero-sm + .intro { padding-top: 28px; }
}
.intro-lede { font-size: clamp(1.2rem, 1.05rem + .6vw, 1.5rem); line-height: 1.5; color: var(--ink); max-width: 900px; margin: 0; font-weight: 400; }
.proof { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; margin-top: clamp(36px, 5vw, 56px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.proof > * { padding: 22px 18px 22px 0; font-family: var(--display); font-weight: 600; font-size: clamp(1.05rem, .95rem + .5vw, 1.35rem); color: var(--ink); line-height: 1.25; position: relative; }
.proof > *::before { content: ""; display: block; width: 32px; height: 3px; background: var(--brand); margin-bottom: 14px; }
.proof > *:nth-child(odd) { padding-right: 18px; }
@media (max-width: 899px) { .proof > *:nth-child(-n+2) { border-bottom: 1px solid var(--line); } .proof > *:nth-child(even) { padding-left: 18px; border-left: 1px solid var(--line); } }
@media (min-width: 900px) { .proof { grid-template-columns: repeat(4, 1fr); } .proof > * { padding: 28px 24px; } .proof > * + * { border-left: 1px solid var(--line); } .proof > *:first-child { padding-left: 0; } }

/* ---------------------------------------------------------------- photo-led split sections */
.split { display: grid; grid-template-columns: 1fr; gap: 0; padding: 0; background: var(--bg); }
.split.alt { background: var(--alt); }
.split-media { position: relative; min-height: 300px; aspect-ratio: 4 / 3; overflow: hidden; width: 100%; max-width: 100%; }
.split-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); }
.split-body { padding: clamp(40px, 6vw, 96px) 20px; max-width: 700px; }
.split-body .section-head { margin-bottom: 28px; }
@media (min-width: 960px) {
  .split { grid-template-columns: 1fr 1fr; min-height: 560px; }
  .split-media { aspect-ratio: auto; min-height: 100%; }
  .split-body { padding: 96px 56px; align-self: center; }
  .split.reverse .split-media { order: 2; }
  .split:not(.reverse) .split-body { justify-self: start; padding-right: max(40px, calc((100vw - var(--wrap)) / 2 + 40px)); max-width: none; }
  .split.reverse .split-body { justify-self: stretch; padding-left: max(40px, calc((100vw - var(--wrap)) / 2 + 40px)); max-width: none; }
}
/* #openshop photo: REAL crop, not object-position (2026-09-23, Marcus msg 19124 "move the guy out
   of frame and the equipment in frame" — the object-position trick still showed the technician at
   the left edge and cut the scanner on the right). off-g1-machine-m.jpg / off-g1-machine.jpg were
   physically cropped from the off-g1.jpg original so the technician is fully out of frame and the
   AUT cabinet + full pipe/scanner/crawler assembly is in frame. aspect-ratio below is set to each
   crop's own pixel ratio so object-fit:cover has nothing left to crop — object-position no longer
   matters. Breakpoint matches this section's own single/2-col switch (960px), not the site's usual
   767px, so the image swap and the aspect-ratio swap land together.
   REPLACED 2026-09-23 (Marcus msg 19130, "replace with this") — off-g1-machine.jpg/-m.jpg swapped
   for off-openshop.jpg/-m.jpg (Marcus-supplied photo of the same shop scene, no person in frame).
   Desktop uses the photo's own native ratio (1280x853, full frame, nothing cropped by object-fit);
   phone uses its own crop (682x853, framed on the scanner band + pipe). Old off-g1-machine* files
   left in place, unreferenced. */
#openshop .split-media { aspect-ratio: 682 / 853; }
@media (min-width: 960px) { #openshop .split-media { aspect-ratio: 1280 / 853; min-height: 0; align-self: center; } }
.union-strip { display: grid; gap: 0; }
.union-item { padding: 18px 0; border-top: 1px solid var(--line); }
.union-item h3 { margin-bottom: .3em; }
.union-item p { margin: 0; }

/* ---------------------------------------------------------------- grids, cards */
.grid { display: grid; gap: 20px; }
@media (min-width: 700px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }
.card { background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--brand); padding: 26px 26px 22px; border-radius: 0; }
.band .card, .accent-band .card, .band-deep .card { background: #fff; }
.card h3 { margin-bottom: .45em; }
.card p:last-child { margin-bottom: 0; }
.card .ic { font-family: var(--display); font-weight: 700; color: var(--brand); font-size: 1rem; margin-bottom: 8px; }
.feature-2 { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .feature-2 { grid-template-columns: 1fr 1fr; gap: 56px; } .feature-2.reverse > :first-child { order: 2; } }
figure { margin: 0; }
.media { overflow: hidden; background: var(--alt); }
.media img { width: 100%; height: 100%; object-fit: cover; }
.ar-wide { aspect-ratio: 16 / 10; }
.feat-media { aspect-ratio: 4 / 3; }
.banner { margin: 0; }
.banner img { width: 100%; aspect-ratio: 1600 / 593; object-fit: cover; object-position: var(--pos, 50% 50%); }
/* On phones the native 2.7:1 letterbox renders as a very thin strip (Marcus, 2026-09-23) — give
   it a 4:3 aspect there instead so the subject actually reads. */
@media (max-width: 767px) { .banner img { aspect-ratio: 4 / 3; } }
.panorama { padding: 0; }
.panorama img { width: 100%; height: clamp(220px, 32vw, 460px); object-fit: cover; object-position: var(--pos, 50% 50%); }
.gallery { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .gallery { grid-template-columns: 1fr 1fr; } }

/* chips + stats */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-block; background: #fff; border: 1px solid var(--line); color: var(--ink); font-size: .92rem; padding: 6px 12px; border-radius: 2px; line-height: 1.3; }
.band .chip, .accent-band .chip, .band-deep .chip { background: #fff; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { padding: 24px 16px 22px 0; }
.stat:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line); }
@media (max-width: 899px) { .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }
.stat .n { font-family: var(--display); font-weight: 700; font-size: clamp(2rem, 1.5rem + 2vw, 3rem); color: var(--brand); line-height: 1; margin-bottom: 8px; }
.stat .l { font-size: .98rem; color: var(--body); line-height: 1.35; }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); } .stat { padding: 30px 24px; } .stat + .stat { border-left: 1px solid var(--line); } .stat:first-child { padding-left: 0; } }

/* ---------------------------------------------------------------- home: divisions */
.lanes { display: grid; gap: 24px; }
@media (min-width: 1000px) { .lanes { grid-template-columns: repeat(3, 1fr); } }
.lane { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); color: var(--body); transition: box-shadow .2s; }
.lane:hover { text-decoration: none; box-shadow: 0 14px 34px rgba(11,26,42,.12); }
.lane-media { order: -1; aspect-ratio: 16 / 10; overflow: hidden; }
.lane-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.lane:hover .lane-media img { transform: scale(1.03); }
.lane-body { padding: 24px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.lane-idx { display: none; }
.lane-tag { align-self: flex-start; font-size: .88rem; font-weight: 600; color: var(--brand); background: var(--brand-tint); padding: 3px 10px; border-radius: 2px; margin-bottom: 12px; }
.lane h3 { font-family: var(--display); font-size: 1.6rem; font-weight: 700; margin-bottom: .35em; }
.lane ul { margin: 6px 0 22px; padding-left: 1.1em; font-size: 1rem; }
.lane li { margin: 4px 0; }
.lane .btn-dark { margin-top: auto; align-self: flex-start; }

/* home: about + methods */
.methodlist { display: grid; gap: 0; }
.method { display: grid; grid-template-columns: 64px 1fr; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); }
.method h3 { margin-bottom: .3em; }
.method p { margin: 0; }
.mk { font-family: var(--display); font-weight: 700; color: var(--brand); font-size: 1.1rem; padding-top: 2px; }

/* home: capability */
.capsplit { display: grid; gap: 32px; }
.numlist { display: grid; gap: 20px; }
@media (min-width: 700px) { .numlist { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .numlist { grid-template-columns: repeat(4, 1fr); } }
.numitem { background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--brand); padding: 24px; }
.numitem .num { display: none; }
.numitem ul { font-size: 1rem; }
.numitem li { margin: 4px 0; }
.photoladder { display: grid; gap: 16px; }
@media (min-width: 700px) { .photoladder { grid-template-columns: 1fr 1fr; } }
.photoladder .media { aspect-ratio: 16 / 10; }

/* insights */
.insight-grid { gap: 20px; }
.insight-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--brand); padding: 26px; color: var(--body); }
.insight-card:hover { text-decoration: none; box-shadow: 0 12px 28px rgba(11,26,42,.10); }
.insight-card .label { margin-bottom: 6px; }
.insight-card h3 { font-size: 1.35rem; }
.insight-card .arrow-link { margin-top: auto; }

/* family strip */
.family-strip { background: #fff; border-top: 1px solid var(--line); padding: 40px 0; }
.family-strip .label { color: var(--muted); font-weight: 500; text-align: center; margin-bottom: 18px; }
.logo-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 22px 48px; }
.logo-item img { height: 40px; width: auto; }
.logo-item:hover { opacity: .8; text-decoration: none; }
.logo-wm { font-family: var(--display); font-weight: 700; font-size: 1.5rem; color: var(--ink); letter-spacing: -.01em; }
.logo-wm .dot { color: var(--brand); }
.logo-wm .tld { color: var(--muted); font-weight: 600; }

/* ---------------------------------------------------------------- contact + forms */
.contact-grid { display: grid; gap: 36px; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 1.25fr 1fr; gap: 64px; } }
.form-card { background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--brand); padding: clamp(20px, 3vw, 36px); }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; color: var(--ink); font-size: .95rem; margin-bottom: 6px; }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--ink); padding: 12px 14px; border: 1px solid #C3CCD5; border-radius: 2px; background: #fff; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--brand); outline-offset: 0; border-color: var(--brand); }
.field textarea { min-height: 130px; resize: vertical; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { display: none; margin-top: 14px; padding: 12px 14px; background: var(--brand-tint); color: var(--ink); border-left: 3px solid var(--brand); font-weight: 500; }
.form-msg.show { display: block; }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { display: grid; grid-template-columns: 90px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.contact-list .k { font-weight: 600; color: var(--ink); }
.divider-note { font-size: .95rem; color: var(--muted); }
.region-switch { font-weight: 600; }

/* ---------------------------------------------------------------- resource pages */
.figc { margin: 8px 0 0; background: #fff; border: 1px solid var(--line); padding: clamp(16px, 3vw, 32px); }
.figc svg { display: block; width: 100%; height: auto; }
.figc .fig-title { font-weight: 700; color: var(--ink); font-size: 1.05rem; margin: 0 0 16px; }
.figc figcaption { font-size: .92rem; color: var(--muted); margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); line-height: 1.5; }
.figc .fig-sm { display: none; }
@media (max-width: 700px) { .figc .fig-lg { display: none; } .figc .fig-sm { display: block; max-width: 420px; margin: 0 auto; } }
.table-wrap { overflow-x: auto; border-top: 2px solid var(--ink); -webkit-overflow-scrolling: touch; }
.datatable { width: 100%; border-collapse: collapse; font-size: 1rem; font-variant-numeric: tabular-nums; }
.datatable th, .datatable td { text-align: left; padding: 14px 16px 14px 0; border-bottom: 1px solid var(--line); }
.datatable thead th { font-weight: 600; color: var(--ink); font-size: .95rem; }
.datatable td:first-child { font-weight: 600; color: var(--ink); }
.datatable .d { color: var(--brand); font-weight: 700; }
.datatable-rt th, .datatable-rt td { white-space: nowrap; padding-right: 22px; }
.datatable-rt { min-width: 640px; }
.callout { border-left: 3px solid var(--brand); background: var(--alt); padding: 20px 24px; font-size: 1.05rem; line-height: 1.6; }
.callout strong { color: var(--ink); }
.band .callout { background: #fff; }
.bignum { font-family: var(--display); font-weight: 700; font-size: clamp(3rem, 2rem + 4vw, 5rem); line-height: 1; color: var(--brand); }
.numrows { display: grid; gap: 0; }
.numrow { display: block; padding: 18px 0; border-top: 1px solid var(--line); }
.numrow .n { display: none; }
.numrow h3 { margin-bottom: .3em; }
.numrow p { margin: 0; }
.related-grid a { display: block; background: #fff; border: 1px solid var(--line); padding: 24px; color: var(--body); }
.related-grid a:hover { text-decoration: none; border-color: var(--brand); }
.related-grid h3 { color: var(--ink); font-size: 1.15rem; }
.related-grid p { margin: 0; }
.res-cta { text-align: left; background: var(--brand); color: #fff; }
.res-cta h2 { color: #fff; }
.res-cta .btn-primary { background: #fff; color: var(--brand); }
.res-cta .btn-primary:hover { background: var(--brand-tint); }
.res-cta .wrap { display: grid; gap: 16px 48px; align-items: center; }
@media (min-width: 900px) { .res-cta .wrap { grid-template-columns: 1fr auto; } .res-cta .wrap > .btn { grid-row: 1 / span 2; grid-column: 2; } }
.res-cta h2 { margin: 0; }
.res-cta p { margin: 0; max-width: 720px; }

/* ---------------------------------------------------------------- footer */
.site-footer { background: var(--navy); color: #B8C4D0; padding: 64px 0 28px; padding-bottom: calc(28px + env(safe-area-inset-bottom)); font-size: .98rem; }
.site-footer a { color: #E6ECF2; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; gap: 36px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr 1.2fr; } }
.footer-grid h4 { color: #fff; font-size: 1.02rem; margin-bottom: 14px; }
.footer-grid > div > a { display: block; padding: 4px 0; }
.footer-logo { height: 46px; width: auto; margin-bottom: 16px; }
.footer-brand p { max-width: 380px; }
.footer-div { display: block; color: #fff; font-weight: 600; margin: -8px 0 12px; }
.site-footer .rae-lockup { display: inline-flex; margin-top: 6px; align-items: center; gap: 8px; color: #B8C4D0 !important; font-size: .95rem; }
.rae-logo-footer { height: 20px; width: auto; }
.fcontact p { margin: 0 0 10px; line-height: 1.5; }
.fcontact strong { color: #fff; font-weight: 600; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.14); font-size: .9rem; }

/* 2026-09-24: phone overflow fixes (split-media min-height x aspect-ratio forced 400px; wide tables scroll in place) */
@media (max-width: 599px) { .datatable { display: block; max-width: 100%; overflow-x: auto; } }
