/* =========================================================================
   B. Edwards Transfer LTD — website redesign concept (EB Media)
   Tokens → base → layout → components → pages → motion
   ========================================================================= */

/* Fonts: self-hosted copies of the Google Fonts (SIL Open Font License), latin and
   latin-ext subsets only. The browser downloads a subset only when a page uses it. */
/* Big Shoulders Display normal 700-900, latin-ext */
@font-face { font-family: 'Big Shoulders Display'; font-style: normal; font-weight: 700 900; font-display: swap; src: url('../fonts/big-shoulders-display-700-900-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
/* Big Shoulders Display normal 700-900, latin */
@font-face { font-family: 'Big Shoulders Display'; font-style: normal; font-weight: 700 900; font-display: swap; src: url('../fonts/big-shoulders-display-700-900-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* IBM Plex Mono normal 400, latin-ext */
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/ibm-plex-mono-400-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
/* IBM Plex Mono normal 500, latin-ext */
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/ibm-plex-mono-500-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
/* IBM Plex Mono normal 400, latin */
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/ibm-plex-mono-400-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* IBM Plex Mono normal 500, latin */
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/ibm-plex-mono-500-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* Public Sans italic 400, latin-ext */
@font-face { font-family: 'Public Sans'; font-style: italic; font-weight: 400; font-display: swap; src: url('../fonts/public-sans-italic-400-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
/* Public Sans normal 400-700, latin-ext */
@font-face { font-family: 'Public Sans'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('../fonts/public-sans-400-700-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
/* Public Sans italic 400, latin */
@font-face { font-family: 'Public Sans'; font-style: italic; font-weight: 400; font-display: swap; src: url('../fonts/public-sans-italic-400-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* Public Sans normal 400-700, latin */
@font-face { font-family: 'Public Sans'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('../fonts/public-sans-400-700-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  /* Palette: logo navy + logo blue, set against asphalt charcoal and concrete white */
  --asphalt: #15181c;
  --asphalt-2: #1d2127;
  --night: #0c0e11;
  --concrete: #efeeea;
  --concrete-2: #e5e3dd;
  --paper: #fbfaf8;
  --navy: #0a2240;
  --flow: #458ecc;          /* logo blue — large elements, buttons, accents */
  --flow-bright: #73acdf;   /* logo blue lifted for small text on dark/navy */
  --flow-ink: #22629e;      /* logo blue deepened for text on light */
  --btn-ink: #07182b;
  --ink: #15181c;
  --ink-muted: #545960;
  --on-dark: #eef0f2;
  --on-dark-muted: #a9b0b8;
  --line-light: rgba(21, 24, 28, 0.14);
  --line-dark: rgba(255, 255, 255, 0.12);
  --error: #a3241c;

  --ff-display: 'Big Shoulders Display', 'Arial Narrow', 'Roboto Condensed', sans-serif;
  --ff-body: 'Public Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ff-mono: 'IBM Plex Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;

  --container: 1320px;
  --gutter: clamp(1rem, 4vw, 3rem);
  --util-h: 38px;
  --util-space: var(--util-h); /* space heroes reserve for the utility bar */
  --bar-h: 80px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --radius: 2px;
  --fb-lift: 0px;           /* raised when the EB Media feedback toolbar is on screen */

  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .075 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

@media (max-width: 1023px) {
  /* The utility bar is hidden below 1024px, so heroes only clear the main bar */
  :root { --bar-h: 68px; --util-space: 0px; }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font-family: var(--ff-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--concrete);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }
/* Pictures inside fixed-ratio frames fill the frame */
figure > picture, .svc-detail-media > picture, .gallery-item picture, .ct-img { height: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd, address { margin: 0; }
address { font-style: normal; }
ul[role='list'], ol[role='list'] { list-style: none; padding: 0; margin: 0; }
:focus-visible { outline: 3px solid var(--flow); outline-offset: 3px; }
main:focus { outline: none; }
[id] { scroll-margin-top: calc(var(--bar-h) + 1.5rem); }
::selection { background: var(--flow); color: var(--btn-ink); }

.icon { width: 1.25em; height: 1.25em; flex: none; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 300;
  background: var(--flow); color: var(--btn-ink); padding: 0.75rem 1.25rem;
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 1rem; }

/* ---------- Layout ---------- */
.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.section { position: relative; padding-block: clamp(4.5rem, 9vw, 8.5rem); }
.section--flush-top { padding-top: 0; }
.section--tight-bottom { padding-bottom: clamp(3rem, 6vw, 5rem); }
.section-lead { margin-top: 1.5rem; max-width: 34rem; color: var(--fg-muted); }
.inline-link { color: var(--accent-ink); font-weight: 700; text-underline-offset: 3px; }

.tone-light {
  --fg: var(--ink); --fg-muted: var(--ink-muted); --line: var(--line-light); --accent-ink: var(--flow-ink);
  background-color: var(--concrete); background-image: var(--grain); color: var(--fg);
}
.tone-dark {
  --fg: var(--on-dark); --fg-muted: var(--on-dark-muted); --line: var(--line-dark); --accent-ink: var(--flow-bright);
  background-color: var(--asphalt); color: var(--fg);
}
.tone-navy {
  --fg: #fff; --fg-muted: #b9c6d6; --line: rgba(255, 255, 255, 0.16); --accent-ink: var(--flow-bright);
  background-color: var(--navy); color: var(--fg);
}
.tone-night {
  --fg: var(--on-dark); --fg-muted: var(--on-dark-muted); --line: var(--line-dark); --accent-ink: var(--flow-bright);
  background-color: var(--night); color: var(--fg);
}
/* Blueprint grid on dark sections */
.texture-grid {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 96px 96px;
  background-position: -1px -1px;
}

/* ---------- Type ---------- */
.display {
  font-family: var(--ff-display);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 0.9;
  letter-spacing: 0.002em;
  text-wrap: balance;
}
.h-xl { font-size: clamp(2.9rem, 8.4vw, 8rem); }
.h-lg { font-size: clamp(2.5rem, 5.2vw, 4.75rem); }
.h-md { font-size: clamp(2rem, 3.4vw, 3rem); line-height: 0.95; }
.h-sm { font-size: clamp(1.5rem, 2.1vw, 1.875rem); line-height: 1; }

.eyebrow {
  display: flex; align-items: center; gap: 0.7rem;
  margin-bottom: 1.25rem;
  font-family: var(--ff-mono); font-size: 0.8125rem; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent-ink);
}
.eyebrow::before { content: ''; width: 0.6rem; height: 0.6rem; background: currentColor; flex: none; }
.eyebrow--light { color: #fff; }
.eyebrow--light::before { background: var(--flow); }

.statement {
  font-size: clamp(1.3rem, 2.05vw, 1.75rem);
  line-height: 1.38; font-weight: 500; letter-spacing: -0.012em;
}

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-weight: 700; font-size: 0.9375rem; letter-spacing: 0.03em; text-transform: uppercase;
  color: var(--accent-ink); text-decoration: none;
  padding-bottom: 0.25rem; border-bottom: 2px solid currentColor;
}
.link-arrow .icon { transition: transform 0.25s var(--ease); }
.link-arrow:hover .icon { transform: translateX(4px); }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: transparent; --btn-fg: var(--fg, var(--ink)); --btn-bd: currentColor;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 3rem; padding: 0.7rem 1.3rem;
  border: 2px solid var(--btn-bd); border-radius: var(--radius);
  background: var(--btn-bg); color: var(--btn-fg);
  font-family: var(--ff-body); font-weight: 700; font-size: 0.9375rem;
  letter-spacing: 0.045em; text-transform: uppercase; text-decoration: none;
  line-height: 1.1; cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.btn .icon { width: 1.1em; height: 1.1em; transition: transform 0.25s var(--ease); }
.btn:hover .icon:last-child { transform: translateX(3px); }
.btn--lg { min-height: 3.5rem; padding: 0.95rem 1.6rem; font-size: 1rem; }
.btn--primary { --btn-bg: var(--flow); --btn-fg: var(--btn-ink); --btn-bd: var(--flow); }
.btn--primary:hover { --btn-bg: #62a2da; --btn-bd: #62a2da; }
.btn--light { --btn-bg: #fff; --btn-fg: var(--ink); --btn-bd: #fff; }
.btn--light:hover { --btn-bg: var(--concrete); --btn-bd: var(--concrete); }
.btn--dark { --btn-bg: var(--ink); --btn-fg: #fff; --btn-bd: var(--ink); }
.btn--dark:hover { --btn-bg: #000; --btn-bd: #000; }
.btn--outline-light { --btn-fg: #fff; --btn-bd: rgba(255, 255, 255, 0.7); }
.btn--outline-light:hover { --btn-bg: #fff; --btn-fg: var(--ink); --btn-bd: #fff; }
.btn--outline { --btn-fg: var(--fg); --btn-bd: var(--fg); }
.btn--outline:hover { --btn-bg: var(--fg); --btn-fg: var(--concrete); }
.btn[disabled] { opacity: 0.6; cursor: progress; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 60;
  color: #fff;
  transition: transform 0.4s var(--ease), background-color 0.3s, color 0.3s, box-shadow 0.3s;
}
.utility {
  height: var(--util-h);
  font-size: 0.8125rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  transition: opacity 0.25s;
}
.utility-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.utility-note { color: rgba(255, 255, 255, 0.78); }
.utility-links { display: flex; gap: 1.5rem; }
.utility-links a { text-decoration: none; font-weight: 600; }
.utility-links a:hover { text-decoration: underline; text-underline-offset: 3px; }
.utility-label { font-family: var(--ff-mono); font-size: 0.6875rem; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.7; margin-right: 0.25rem; }

.header-bar { height: var(--bar-h); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 2rem; }
.brand { display: block; flex: none; }
.brand-logo { height: 44px; width: auto; }
.brand-logo--color { display: none; }

.primary-nav { margin-left: auto; }
.primary-nav ul { display: flex; gap: 0.25rem; }
.nav-link {
  position: relative; display: block; padding: 0.6rem 0.85rem;
  font-weight: 600; font-size: 0.9688rem; text-decoration: none;
}
.nav-link::after {
  content: ''; position: absolute; left: 0.85rem; right: 0.85rem; bottom: 0.3rem; height: 2px;
  background: var(--flow); transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease);
}
.nav-link:hover::after, .nav-link[aria-current='page']::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 1.25rem; }
.header-phone { display: flex; align-items: center; gap: 0.5rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.header-phone .icon { color: var(--flow); }
.header-book { min-height: 2.75rem; padding: 0.55rem 1.1rem; }

.menu-toggle {
  display: none; position: relative; width: 3rem; height: 3rem;
  align-items: center; justify-content: center;
  background: transparent; border: 1.5px solid currentColor; border-radius: var(--radius); cursor: pointer;
}
.menu-toggle .icon { width: 1.4rem; height: 1.4rem; }
.menu-toggle-close { display: none; }

.site-header.is-solid {
  background: rgba(239, 238, 234, 0.97);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line-light), 0 12px 32px rgba(12, 14, 17, 0.08);
  transform: translateY(calc(-1 * var(--util-h)));
}
@supports (backdrop-filter: blur(8px)) {
  .site-header.is-solid { background: rgba(239, 238, 234, 0.9); backdrop-filter: blur(10px); }
}
.site-header.is-solid .utility { opacity: 0; }
.site-header.is-solid .brand-logo--white { display: none; }
.site-header.is-solid .brand-logo--color { display: block; }

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 55;
  display: flex; flex-direction: column; gap: 2rem;
  padding: calc(var(--bar-h) + 1.5rem) var(--gutter) 2rem;
  overflow-y: auto; overscroll-behavior: contain;
}
.mobile-menu[hidden] { display: none; }
.mm-link {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.55rem 0; border-bottom: 1px solid var(--line);
  font-family: var(--ff-display); font-weight: 800; font-size: clamp(2.4rem, 11vw, 3.5rem);
  line-height: 1; text-transform: uppercase; text-decoration: none;
}
.mm-link[aria-current='page'] { color: var(--flow-bright); }
.mm-book { align-self: stretch; }
.mm-contact { display: grid; gap: 0.9rem; }
.mm-contact dt { font-family: var(--ff-mono); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-muted); }
.mm-contact dd { font-size: 1.25rem; font-weight: 600; }
.mm-contact a { text-decoration: none; }

html.menu-open { overflow: hidden; }
html.menu-open .site-header { background: var(--asphalt); color: #fff; box-shadow: none; transform: translateY(calc(-1 * var(--util-h))); }
html.menu-open .site-header .utility { opacity: 0; }
html.menu-open .brand-logo--white { display: block; }
html.menu-open .brand-logo--color { display: none; }
html.menu-open .menu-toggle-open { display: none; }
html.menu-open .menu-toggle-close { display: block; }

@media (max-width: 1180px) {
  .header-phone { display: none; }
}
@media (max-width: 1023px) {
  .utility { display: none; }
  .site-header.is-solid, html.menu-open .site-header { transform: none; }
  .primary-nav { display: none; }
  .header-actions { margin-left: auto; gap: 0.75rem; }
  .menu-toggle { display: inline-flex; }
  .brand-logo { height: 38px; }
}
@media (max-width: 599px) {
  .header-book { display: none; }
  .brand-logo { height: 34px; }
}

/* Mobile action bar */
.action-bar {
  position: fixed; inset: auto 0 var(--fb-lift); z-index: 50;
  display: grid; grid-template-columns: 1fr 1.35fr; gap: 0.5rem;
  padding: 0.6rem var(--gutter) calc(0.6rem + env(safe-area-inset-bottom));
  background: rgba(12, 14, 17, 0.96);
  border-top: 1px solid var(--line-dark);
  transform: translateY(calc(110% + var(--fb-lift))); transition: transform 0.35s var(--ease);
}
.action-bar.is-visible { transform: none; }
.action-bar a {
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 3rem; border-radius: var(--radius);
  font-weight: 700; font-size: 0.9375rem; letter-spacing: 0.04em; text-transform: uppercase; text-decoration: none;
}
.action-bar-call { color: #fff; border: 1.5px solid rgba(255, 255, 255, 0.5); }
.action-bar-book { background: var(--flow); color: var(--btn-ink); }
@media (min-width: 860px) { .action-bar { display: none; } }
@media (max-width: 859px) { .site-footer { padding-bottom: 5rem; } }

/* ---------- Home hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: max(660px, 100svh);
  display: flex; flex-direction: column; justify-content: flex-end;
  color: #fff; background: var(--night);
}
.hero-media, .hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-media { z-index: -2; }
.hero-media img { object-fit: cover; object-position: 66% 45%; }
.hero-shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(12, 14, 17, 0.9) 0%, rgba(12, 14, 17, 0.72) 32%, rgba(12, 14, 17, 0.2) 62%, rgba(12, 14, 17, 0) 100%),
    linear-gradient(180deg, rgba(12, 14, 17, 0.7) 0%, rgba(12, 14, 17, 0) 22%, rgba(12, 14, 17, 0) 55%, rgba(12, 14, 17, 0.85) 100%);
}
.hero-inner { padding-top: calc(var(--util-space) + var(--bar-h) + 3rem); padding-bottom: clamp(2.25rem, 5vw, 3.5rem); }
.hero-title { font-size: clamp(3rem, 8.6vw, 8.4rem); line-height: 0.88; }
.hero-line { display: block; }
.flow-word { position: relative; display: inline-block; }
.flow-wave {
  position: absolute; left: -0.02em; bottom: -0.2em; width: calc(100% + 0.1em); height: 0.26em; overflow: visible;
}
.flow-wave path { fill: none; stroke: var(--flow); stroke-width: 7; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.hero-lead { max-width: 40rem; margin-top: 2.25rem; font-size: clamp(1.0625rem, 1.4vw, 1.25rem); line-height: 1.55; color: rgba(255, 255, 255, 0.88); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 2.25rem; }
.hero-foot {
  display: flex; justify-content: space-between; align-items: center; gap: 1.5rem;
  padding-block: 1.15rem 1.5rem; border-top: 1px solid rgba(255, 255, 255, 0.2);
}
.hero-caption { font-family: var(--ff-mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.7); }
.hero-call { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; font-size: 0.9375rem; }
.hero-call .icon { color: var(--flow); width: 1.4em; height: 1.4em; }
.hero-call strong { font-weight: 700; border-bottom: 2px solid var(--flow); white-space: nowrap; }

@media (max-width: 760px) {
  .hero { min-height: max(620px, 100svh); }
  .hero-media img { object-position: 74% 50%; }
  .hero-shade {
    background: linear-gradient(180deg, rgba(12, 14, 17, 0.55) 0%, rgba(12, 14, 17, 0.25) 30%, rgba(12, 14, 17, 0.82) 62%, rgba(12, 14, 17, 0.94) 100%);
  }
  .flow-wave path { stroke-width: 5; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-foot { flex-direction: column; align-items: flex-start; gap: 0.6rem; }
}

/* ---------- Interior page hero ---------- */
.page-hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: clamp(32rem, 76vh, 46rem);
  display: flex; align-items: flex-end;
  color: #fff; background: var(--night);
}
.page-hero-media, .page-hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.page-hero-media { z-index: -2; }
.page-hero-media img { object-fit: cover; }
.page-hero-shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(12, 14, 17, 0.88) 0%, rgba(12, 14, 17, 0.6) 45%, rgba(12, 14, 17, 0.1) 100%),
    linear-gradient(180deg, rgba(12, 14, 17, 0.65) 0%, rgba(12, 14, 17, 0) 28%, rgba(12, 14, 17, 0) 55%, rgba(12, 14, 17, 0.75) 100%);
}
.page-hero-inner { padding-top: calc(var(--util-space) + var(--bar-h) + 3rem); padding-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.page-title { max-width: 16ch; }
.page-hero-lead { max-width: 44rem; margin-top: 1.75rem; font-size: clamp(1.0625rem, 1.5vw, 1.3rem); line-height: 1.55; color: rgba(255, 255, 255, 0.9); }
.page-hero .hero-actions { margin-top: 2rem; }
.breadcrumbs { margin-bottom: 1.75rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 0.5rem; font-family: var(--ff-mono); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; }
.breadcrumbs li + li::before { content: '/'; margin-right: 0.5rem; opacity: 0.55; }
.breadcrumbs a { color: rgba(255, 255, 255, 0.78); text-decoration: none; }
.breadcrumbs a:hover { color: #fff; text-decoration: underline; }
/* Photo set to the right and faded into the dark side, so people in it aren't under the headline */
@media (min-width: 761px) {
  .page-hero--offset .page-hero-media { left: 24%; width: auto; -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 32%); mask-image: linear-gradient(90deg, transparent 0%, #000 32%); }
  .page-hero--offset .page-hero-shade { background: linear-gradient(180deg, rgba(12, 14, 17, 0.6) 0%, rgba(12, 14, 17, 0) 28%, rgba(12, 14, 17, 0) 60%, rgba(12, 14, 17, 0.7) 100%); }
}
@media (max-width: 760px) {
  .page-hero-shade { background: linear-gradient(180deg, rgba(12, 14, 17, 0.55) 0%, rgba(12, 14, 17, 0.35) 35%, rgba(12, 14, 17, 0.9) 100%); }
}

/* ---------- Section heads ---------- */
.section-head { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head--split { display: grid; grid-template-columns: 1fr; gap: 1.5rem 4rem; align-items: end; }
.section-head-aside { display: grid; gap: 1.25rem; justify-items: start; color: var(--fg-muted); max-width: 32rem; }
@media (min-width: 900px) {
  .section-head--split { grid-template-columns: 1.3fr 1fr; }
}

/* ---------- Data plate (riveted spec plate) ---------- */
.plate {
  --rivet: var(--fg-muted);
  position: relative;
  display: grid; gap: 0;
  padding: 1.1rem 1.6rem;
  border: 1.5px solid var(--fg);
  background:
    radial-gradient(circle, var(--rivet) 2px, transparent 2.6px) top 8px left 8px / 6px 6px no-repeat,
    radial-gradient(circle, var(--rivet) 2px, transparent 2.6px) top 8px right 8px / 6px 6px no-repeat,
    radial-gradient(circle, var(--rivet) 2px, transparent 2.6px) bottom 8px left 8px / 6px 6px no-repeat,
    radial-gradient(circle, var(--rivet) 2px, transparent 2.6px) bottom 8px right 8px / 6px 6px no-repeat;
}
.plate > div { display: grid; grid-template-columns: 9.5rem 1fr; gap: 1rem; padding-block: 0.7rem; border-bottom: 1px solid var(--line); }
.plate > div:last-child { border-bottom: 0; }
.plate dt { font-family: var(--ff-mono); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-muted); padding-top: 0.15rem; }
.plate dd { font-weight: 600; }
.plate a { color: var(--accent-ink); text-underline-offset: 3px; }

/* Corner registration ticks on featured photos */
.ticks { position: relative; }
.ticks::before, .ticks::after {
  content: ''; position: absolute; z-index: 2; width: 22px; height: 22px; pointer-events: none;
  border: 2px solid var(--flow);
}
.ticks::before { top: -9px; left: -9px; border-right: 0; border-bottom: 0; }
.ticks::after { bottom: -9px; right: -9px; border-left: 0; border-top: 0; }

/* ---------- Home: intro ---------- */
.intro-grid { display: grid; gap: clamp(3rem, 6vw, 6rem); }
.intro-copy { display: grid; gap: 1.75rem; justify-items: start; align-content: start; }
.intro-copy .eyebrow { margin-bottom: -0.5rem; }
.intro-text { max-width: 38rem; color: var(--fg-muted); }
.intro-aside { display: grid; gap: 2rem; align-content: start; }
.intro-figure { aspect-ratio: 4 / 3.4; }
.intro-figure img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 1000px) {
  .intro-grid { grid-template-columns: 7fr 5fr; }
  .intro-aside { padding-top: 0.5rem; }
}

/* ---------- Home: service grid ---------- */
.svc-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.svc-card {
  position: relative; overflow: hidden; min-height: 25rem;
  background: var(--night); border-radius: var(--radius);
}
.svc-card::before {
  content: ''; position: absolute; inset: 0 0 auto; z-index: 3; height: 4px;
  background: var(--flow); transform: scaleX(0); transform-origin: left; transition: transform 0.45s var(--ease);
}
.svc-card:hover::before, .svc-card:focus-within::before { transform: scaleX(1); }
.svc-card-link { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; color: #fff; text-decoration: none; }
.svc-card-link:focus-visible { outline-offset: -4px; outline-color: #fff; }
.svc-card-media, .svc-card-media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.svc-card-media img { object-fit: cover; transition: transform 0.9s var(--ease); }
.svc-card:hover .svc-card-media img { transform: scale(1.045); }
.svc-card-link::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(12, 14, 17, 0.05) 20%, rgba(12, 14, 17, 0.55) 55%, rgba(12, 14, 17, 0.94) 100%);
}
.svc-card-body { position: relative; z-index: 1; display: grid; justify-items: start; gap: 0.6rem; padding: clamp(1.35rem, 2.4vw, 2rem); }
.svc-card-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.svc-card-tag {
  font-family: var(--ff-mono); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: #fff; background: rgba(12, 14, 17, 0.55); border: 1px solid rgba(255, 255, 255, 0.28);
  padding: 0.25rem 0.55rem;
}
.svc-card-title { font-family: var(--ff-display); font-weight: 800; text-transform: uppercase; font-size: clamp(2rem, 2.7vw, 2.75rem); line-height: 0.92; }
.svc-card-text { max-width: 40ch; font-size: 0.97rem; line-height: 1.5; color: rgba(255, 255, 255, 0.84); }
.svc-card-more {
  display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 0.4rem;
  font-weight: 700; font-size: 0.8125rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--flow-bright);
}
.svc-card-more .icon { transition: transform 0.3s var(--ease); }
.svc-card:hover .svc-card-more .icon { transform: translateX(5px); }

@media (min-width: 700px) {
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
}
/* Two-column grid: an odd last card spans the full row instead of sitting alone */
@media (min-width: 700px) and (max-width: 1099px) {
  .svc-card:last-child:nth-child(odd) { grid-column: span 2; }
}
@media (min-width: 1100px) {
  .svc-grid { grid-template-columns: repeat(12, 1fr); }
  .svc-card { min-height: 27rem; }
  .svc-card--feature { grid-column: span 7; min-height: 36rem; }
  .svc-card--tall { grid-column: span 5; min-height: 36rem; }
  .svc-card--third { grid-column: span 4; }
  .svc-card--half { grid-column: span 5; }
  .svc-card--wide { grid-column: span 7; }
}

/* ---------- Home: equipment ---------- */
.equip-grid { display: grid; gap: clamp(2.5rem, 5vw, 5rem); align-items: center; }
.equip-figure { position: relative; aspect-ratio: 4 / 3; }
.equip-figure img { width: 100%; height: 100%; object-fit: cover; }
.equip-copy { display: grid; gap: 1.5rem; align-content: start; }
.equip-copy .eyebrow { margin-bottom: -0.25rem; }
.equip-lead { color: var(--fg-muted); max-width: 34rem; }
.pin {
  position: absolute; left: var(--x); top: var(--y); z-index: 2;
  display: grid; place-items: center; width: 2.4rem; height: 2.4rem; transform: translate(-50%, -50%);
  border-radius: 50%; border: 3px solid #fff;
  background: var(--flow); color: var(--btn-ink);
  font-family: var(--ff-mono); font-weight: 500; font-size: 0.95rem;
  box-shadow: 0 0 0 6px rgba(69, 142, 204, 0.35), 0 6px 16px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s var(--ease), background-color 0.2s;
}
.pin.is-hot { transform: translate(-50%, -50%) scale(1.18); background: #fff; }
.legend { display: grid; border-top: 1px solid var(--line); }
.legend-item {
  display: grid; grid-template-columns: 2.4rem 1fr; gap: 1rem; padding-block: 1.15rem;
  border-bottom: 1px solid var(--line); transition: background-color 0.2s;
}
.legend-num {
  display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%;
  border: 1.5px solid var(--ink); font-family: var(--ff-mono); font-size: 0.875rem;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.legend-item.is-hot .legend-num { background: var(--flow); border-color: var(--flow); color: var(--btn-ink); }
.legend-item h3 { font-family: var(--ff-display); font-weight: 800; text-transform: uppercase; font-size: 1.5rem; line-height: 1; margin-bottom: 0.4rem; }
.legend-item p { color: var(--fg-muted); font-size: 0.975rem; }
@media (min-width: 1000px) {
  .equip-grid { grid-template-columns: 7fr 5fr; }
}

.spec {
  display: grid; margin-top: clamp(3.5rem, 7vw, 6rem);
  border-top: 2px solid var(--ink);
}
.spec-col { padding-block: 1.5rem 0.5rem; }
.spec-title { font-family: var(--ff-mono); font-weight: 500; font-size: 0.8125rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-muted); margin-bottom: 0.75rem; }
.spec-col a {
  display: grid; gap: 0.15rem;
  padding-block: 0.85rem; border-bottom: 1px solid var(--line); text-decoration: none;
  font-weight: 700;
}
.spec-col a:hover { color: var(--accent-ink); }
.spec-note { font-weight: 400; font-size: 0.875rem; color: var(--fg-muted); }
@media (min-width: 900px) {
  .spec { grid-template-columns: repeat(2, 1fr); gap: 0 2.5rem; }
}
@media (min-width: 1200px) {
  .spec { grid-template-columns: repeat(4, 1fr); gap: 0 2rem; }
}

/* ---------- Home: why choose ---------- */
.why-grid { display: grid; gap: clamp(3rem, 6vw, 6rem); }
.why-intro { display: grid; gap: 1.5rem; align-content: start; }
.why-intro .eyebrow { margin-bottom: -0.25rem; }
.why-intro > p { color: var(--fg-muted); max-width: 34rem; }
.why-figure { margin-top: 1rem; aspect-ratio: 5 / 4; }
.why-figure img { width: 100%; height: 100%; object-fit: cover; }
.reasons { display: grid; border-top: 1px solid var(--line); align-content: start; }
.reason { padding: 2rem 0; border-bottom: 1px solid var(--line); }
.reason-icon { width: 2.25rem; height: 2.25rem; color: var(--flow); margin-bottom: 1.25rem; }
.reason h3 { font-family: var(--ff-display); font-weight: 800; text-transform: uppercase; font-size: 1.75rem; line-height: 1; margin-bottom: 0.6rem; }
.reason p { color: var(--fg-muted); font-size: 0.98rem; }
.reason a { color: var(--accent-ink); font-weight: 700; }
@media (min-width: 640px) {
  .reasons { grid-template-columns: 1fr 1fr; }
  .reason:nth-child(odd) { padding-right: 2rem; border-right: 1px solid var(--line); }
  .reason:nth-child(even) { padding-left: 2rem; }
}
@media (min-width: 1000px) {
  .why-grid { grid-template-columns: 5fr 7fr; }
  .why-intro { position: sticky; top: calc(var(--bar-h) + 2rem); align-self: start; }
}

/* ---------- Home: service areas ---------- */
.areas-grid { display: grid; gap: clamp(3rem, 5vw, 5rem); align-items: start; }
.areas-copy { display: grid; gap: 1.5rem; }
.areas-copy .eyebrow { margin-bottom: -0.25rem; }
.areas-copy > p { color: var(--fg-muted); max-width: 38rem; }
.area-lists { display: grid; gap: 1.75rem; }
.area-group-title { font-family: var(--ff-mono); font-weight: 500; font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-muted); margin-bottom: 0.75rem; }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.5rem 0.85rem; border: 1.5px solid rgba(21, 24, 28, 0.28); border-radius: var(--radius);
  font-weight: 600; font-size: 0.9375rem; background: rgba(255, 255, 255, 0.45);
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.chip--core { border-color: var(--ink); background: var(--ink); color: #fff; }
.chip--home { border-color: var(--flow); background: var(--flow); color: var(--btn-ink); }
.chip--home .icon { width: 1rem; height: 1rem; }
.chip-note { font-family: var(--ff-mono); font-weight: 400; font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.8; }
.chip.is-hot { border-color: var(--flow-ink); box-shadow: 0 0 0 2px var(--flow); }

.radar { padding: clamp(1rem, 3vw, 2rem); border-radius: var(--radius); }
.radar svg { width: 100%; height: auto; }
.radar figcaption { margin-top: 1rem; font-family: var(--ff-mono); font-size: 0.75rem; letter-spacing: 0.04em; color: var(--fg-muted); }
.radar-disc { fill: rgba(255, 255, 255, 0.02); stroke: rgba(255, 255, 255, 0.25); stroke-width: 1; }
.radar-ring { fill: none; stroke: rgba(115, 172, 223, 0.35); stroke-width: 1; stroke-dasharray: 2 5; }
.radar-ring-label { font-family: var(--ff-mono); font-size: 10px; fill: rgba(169, 176, 184, 0.9); letter-spacing: 0.06em; }
.radar-spoke { stroke: rgba(255, 255, 255, 0.07); stroke-width: 1; }
.radar-compass { font-family: var(--ff-mono); font-size: 12px; font-weight: 500; fill: var(--flow-bright); }
.radar-town { transition: opacity 0.25s; }
.radar-town circle { fill: #dfe3e7; transition: r 0.25s var(--ease), fill 0.2s; }
.radar-town text { font-family: var(--ff-body); font-size: 12.5px; font-weight: 500; fill: #c9cfd5; paint-order: stroke; stroke: var(--asphalt); stroke-width: 4px; stroke-linejoin: round; }
.radar-town--core circle { fill: var(--flow); }
.radar-town--core text { font-weight: 700; font-size: 14px; fill: #fff; }
.radar-town.is-hot circle { fill: #fff; r: 8; }
.radar-town.is-hot text { fill: #fff; }
/* Labels with no free space (see layoutTowns in src/radar.mjs) show on hover */
.radar-town--quiet text { opacity: 0; transition: opacity 0.2s; }
.radar-town--quiet.is-hot text { opacity: 1; }
.radar-home rect { fill: var(--flow); }
.radar-home text { font-family: var(--ff-display); font-weight: 800; font-size: 17px; text-transform: uppercase; fill: #fff; letter-spacing: 0.04em; paint-order: stroke; stroke: var(--asphalt); stroke-width: 4px; }
.radar-home-pulse { fill: none; stroke: var(--flow); stroke-width: 2; transform-origin: center; transform-box: fill-box; }
@media (min-width: 1000px) {
  .areas-grid { grid-template-columns: 1fr 1fr; }
  .radar { position: sticky; top: calc(var(--bar-h) + 2rem); }
}

/* ---------- Testimonials ---------- */
.quotes { display: grid; gap: clamp(3rem, 6vw, 5rem); align-items: start; }
.quote { display: grid; gap: 1.75rem; }
.quote::before {
  content: '\201C'; display: block; height: 3.2rem;
  font-family: var(--ff-display); font-weight: 900; font-size: 8rem; line-height: 0.85; color: var(--flow);
}
.quote blockquote p { font-size: clamp(1.2rem, 1.75vw, 1.5rem); line-height: 1.5; font-weight: 500; letter-spacing: -0.01em; }
.quote--second blockquote p { font-size: clamp(1.1rem, 1.4vw, 1.25rem); }
.quote figcaption { display: grid; gap: 0.2rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.quote-name { font-weight: 700; font-size: 1.0625rem; }
.quote-role { font-size: 0.9375rem; color: var(--fg-muted); }
@media (min-width: 1000px) {
  .quotes { grid-template-columns: 7fr 5fr; }
  .quote--second { padding-top: 6rem; }
}

/* ---------- Careers teaser ---------- */
.careers-teaser-grid { display: grid; gap: clamp(3rem, 6vw, 6rem); align-items: center; }
.careers-teaser-media { position: relative; display: grid; grid-template-columns: repeat(12, 1fr); align-items: start; }
.ct-img img { width: 100%; height: 100%; object-fit: cover; }
.ct-img--a { grid-column: 1 / span 7; grid-row: 1; aspect-ratio: 2 / 3; }
.ct-img--b { grid-column: 6 / span 7; grid-row: 1; margin-top: 45%; aspect-ratio: 4 / 3; box-shadow: -14px -14px 0 var(--concrete); position: relative; }
.careers-teaser-copy { display: grid; gap: 1.5rem; justify-items: start; }
.careers-teaser-copy .eyebrow { margin-bottom: -0.25rem; }
.careers-teaser-copy > p { color: var(--fg-muted); max-width: 34rem; }
.role-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.role-tags li {
  font-family: var(--ff-display); font-weight: 800; font-size: 1.5rem; text-transform: uppercase; line-height: 1;
  padding: 0.55rem 0.85rem 0.45rem; border: 2px solid var(--ink);
}
.careers-note { font-weight: 700; color: var(--accent-ink); }
@media (min-width: 900px) {
  .careers-teaser-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- CTA band ---------- */
.cta-band { position: relative; isolation: isolate; overflow: hidden; color: #fff; padding-block: clamp(5rem, 11vw, 9.5rem); background: var(--navy); }
.cta-band-media, .cta-band-media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.cta-band-media { z-index: -2; }
.cta-band-media img { object-fit: cover; filter: grayscale(0.35); }
.cta-band::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(10, 34, 64, 0.95) 0%, rgba(10, 34, 64, 0.86) 50%, rgba(10, 34, 64, 0.6) 100%);
}
.cta-band-inner { display: grid; gap: 1.75rem; justify-items: start; }
.cta-title { max-width: 14ch; font-size: clamp(2.75rem, 6.4vw, 6rem); }
.cta-text { font-size: clamp(1.125rem, 1.6vw, 1.375rem); line-height: 1.5; color: rgba(255, 255, 255, 0.9); max-width: 38rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; }
.cta-meta { font-size: 0.9375rem; color: rgba(255, 255, 255, 0.8); }
.cta-meta a { color: #fff; font-weight: 600; text-underline-offset: 3px; }
.cta-meta span { margin-inline: 0.5rem; opacity: 0.5; }

/* ---------- Footer ---------- */
.site-footer { padding-top: clamp(4rem, 8vw, 6rem); }
.footer-top { display: grid; gap: 3rem 2rem; padding-bottom: 3rem; border-bottom: 1px solid var(--line); }
.footer-brand { display: grid; gap: 1.5rem; justify-items: start; align-content: start; max-width: 22rem; }
.footer-brand img { height: 46px; width: auto; }
.footer-brand p { color: var(--fg-muted); }
.footer-heading { font-family: var(--ff-mono); font-weight: 500; font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--flow-bright); margin-bottom: 1rem; }
.footer-col ul { display: grid; gap: 0.55rem; }
.footer-col a { text-decoration: none; color: var(--on-dark); }
.footer-col a:hover { color: var(--flow-bright); text-decoration: underline; text-underline-offset: 3px; }
.footer-col address { display: grid; gap: 1rem; color: var(--fg-muted); }
.footer-col address a { color: var(--on-dark); }
.footer-label { display: inline-block; min-width: 3.6rem; font-family: var(--ff-mono); font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; }
.footer-specializing { padding-block: 2rem; border-bottom: 1px solid var(--line); }
.footer-specializing p { color: var(--fg-muted); font-size: 0.9375rem; max-width: 62rem; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem 2rem; padding-block: 1.5rem 2rem; font-size: 0.875rem; color: var(--fg-muted); }
.footer-bottom a { color: var(--fg-muted); text-underline-offset: 3px; }
.footer-bottom a:hover { color: #fff; }

/* "Website by EB Media": the logo straight on the dark footer, slightly dimmed until hover. */
.footer-credit { display: flex; align-items: center; }
.eb-credit {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding-block: 0.25rem; text-decoration: none; color: var(--fg-muted);
}
.eb-credit-by { font-size: 0.875rem; transition: color 0.2s; }
.eb-credit-logo { height: 20px; width: auto; opacity: 0.85; transition: opacity 0.2s; }
.eb-credit-icon { width: 0.9rem; height: 0.9rem; opacity: 0; transform: translate(-4px, 4px); transition: opacity 0.2s, transform 0.25s var(--ease); }
.eb-credit:is(:hover, :focus-visible) .eb-credit-by { color: #fff; }
.eb-credit:is(:hover, :focus-visible) .eb-credit-logo { opacity: 1; }
.eb-credit:is(:hover, :focus-visible) .eb-credit-icon { opacity: 1; transform: none; }
@media (min-width: 700px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1100px) {
  .footer-top { grid-template-columns: 1.4fr 1fr 0.8fr 1.1fr; }
}

/* =========================================================================
   Interior pages
   ========================================================================= */

/* ---------- About ---------- */
.story-grid { display: grid; gap: clamp(3rem, 6vw, 6rem); }
.story-copy { display: grid; gap: 1.75rem; align-content: start; justify-items: start; }
.story-copy .eyebrow { margin-bottom: -0.5rem; }
.story-copy > p:not(.statement):not(.eyebrow) { color: var(--fg-muted); max-width: 40rem; }
.clients { margin-top: clamp(3rem, 6vw, 5rem); }
.clients-title { font-family: var(--ff-mono); font-weight: 500; font-size: 0.8125rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-muted); margin-bottom: 1rem; }
.clients ul { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 2px solid var(--ink); }
.clients li {
  padding: 1.25rem 1rem 1.25rem 0; border-bottom: 1px solid var(--line);
  font-family: var(--ff-display); font-weight: 800; text-transform: uppercase; font-size: clamp(1.5rem, 2.4vw, 2.1rem); line-height: 1;
}
@media (min-width: 760px) { .clients ul { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .story-grid { grid-template-columns: 7fr 5fr; } }

.strip { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.strip figure > picture { height: auto; aspect-ratio: 3 / 4; overflow: hidden; }
.strip img { width: 100%; height: 100%; object-fit: cover; }
.strip figcaption { font-family: var(--ff-mono); font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-muted); margin-top: 0.75rem; }
.strip .strip-item { display: grid; }
@media (min-width: 700px) { .strip { grid-template-columns: repeat(3, 1fr); } .strip .strip-item:nth-child(2) { margin-top: 3rem; } }

.features { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.feature { background: var(--asphalt); padding: clamp(1.75rem, 3vw, 2.5rem); display: grid; gap: 0.75rem; align-content: start; }
.feature .reason-icon { margin-bottom: 0.75rem; }
.feature h3 { font-family: var(--ff-display); font-weight: 800; text-transform: uppercase; font-size: 1.875rem; line-height: 1; }
.feature p { color: var(--fg-muted); }
.feature a { color: var(--accent-ink); font-weight: 700; }
@media (min-width: 760px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .features { grid-template-columns: repeat(4, 1fr); } }

.fleet-grid { display: grid; gap: clamp(2.5rem, 5vw, 5rem); align-items: center; }
.fleet-figure { aspect-ratio: 4 / 3; }
.fleet-figure img { width: 100%; height: 100%; object-fit: cover; }
.fleet-copy { display: grid; gap: 1.5rem; }
.fleet-copy .eyebrow { margin-bottom: -0.25rem; }
.fleet-copy > p { color: var(--fg-muted); }
.fleet-list { border-top: 2px solid var(--ink); }
.fleet-list a { display: flex; justify-content: space-between; gap: 1rem; padding-block: 0.9rem; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 700; }
.fleet-list a:hover { color: var(--accent-ink); }
.fleet-list span:last-child { font-weight: 400; color: var(--fg-muted); font-size: 0.9rem; text-align: right; }
@media (min-width: 1000px) { .fleet-grid { grid-template-columns: 6fr 5fr; } }

/* ---------- Services page ---------- */
.svc-intro { display: grid; gap: 2rem; }
.svc-intro .statement { max-width: 52rem; }
.svc-layout { display: grid; gap: 2.5rem; }
.svc-layout > * { min-width: 0; } /* let the scrollable index shrink instead of widening the page */
.svc-index-wrap { position: relative; }
.svc-index-title { font-family: var(--ff-mono); font-weight: 500; font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-muted); margin-bottom: 0.75rem; }
.svc-index ol { display: flex; gap: 0.5rem; overflow-x: auto; padding-bottom: 0.5rem; scrollbar-width: thin; }
.svc-index a {
  display: flex; align-items: center; gap: 0.6rem; white-space: nowrap;
  padding: 0.55rem 0.85rem; border: 1.5px solid var(--line); border-radius: var(--radius);
  font-weight: 600; font-size: 0.9375rem; text-decoration: none;
}
.svc-index a[aria-current='location'] { border-color: var(--ink); background: var(--ink); color: #fff; }
.svc-detail { padding-block: clamp(3rem, 6vw, 5rem); border-top: 1px solid var(--line); }
.svc-detail:first-child { border-top: 0; padding-top: 0; }
.svc-detail-media { aspect-ratio: 16 / 9; overflow: hidden; position: relative; }
.svc-detail-media img { width: 100%; height: 100%; object-fit: cover; }
.svc-detail-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0.75rem 2rem; margin-top: 2rem; }
.svc-detail-tag { font-family: var(--ff-mono); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-ink); }
.svc-detail-body { display: grid; gap: 2rem; margin-top: 1.5rem; }
.svc-detail-body .statement { font-size: clamp(1.15rem, 1.6vw, 1.4rem); }
.svc-detail-text { display: grid; gap: 1rem; max-width: 46rem; }
.svc-detail-text p:not(.statement) { color: var(--fg-muted); }
.svc-detail-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-content: start; }
@media (min-width: 1000px) {
  .svc-layout { grid-template-columns: 15rem 1fr; gap: clamp(3rem, 5vw, 5rem); }
  .svc-index { position: sticky; top: calc(var(--bar-h) + 2rem); }
  .svc-index ol { display: grid; gap: 0; overflow: visible; border-top: 2px solid var(--ink); }
  .svc-index a { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 0.85rem 0.25rem; white-space: normal; }
  .svc-index a::before { content: ''; width: 0.5rem; height: 0.5rem; background: transparent; border: 1.5px solid currentColor; flex: none; transition: background-color 0.2s; }
  .svc-index a[aria-current='location'] { background: transparent; color: var(--accent-ink); }
  .svc-index a[aria-current='location']::before { background: var(--flow); border-color: var(--flow); }
  .svc-detail-body { grid-template-columns: 1fr auto; }
}

.keywords { display: grid; gap: 2rem; }
.keywords ul { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.keywords li { padding: 0.45rem 0.8rem; border: 1px solid var(--line); font-weight: 600; font-size: 0.9375rem; }
@media (min-width: 1000px) { .keywords { grid-template-columns: 5fr 7fr; align-items: start; } }

.split-band { display: grid; gap: clamp(2.5rem, 5vw, 5rem); }
.split-band .chips .chip { background: transparent; color: var(--fg); border-color: var(--line); }
.split-band .chips .chip--core { background: #fff; color: var(--ink); border-color: #fff; }
.split-band .chips .chip--home { background: var(--flow); color: var(--btn-ink); border-color: var(--flow); }
.split-band .clients-list { display: grid; grid-template-columns: repeat(2, 1fr); margin-top: 1.5rem; border-top: 1px solid var(--line); }
.split-band .area-group-title { color: var(--fg-muted); }
.split-band-link { margin-top: 1.75rem; }
.split-band .clients-list li { padding: 0.9rem 0; border-bottom: 1px solid var(--line); font-weight: 600; }
@media (min-width: 1000px) { .split-band { grid-template-columns: 1fr 1fr; } }

/* ---------- Careers page ---------- */
.hiring-grid { display: grid; gap: clamp(3rem, 6vw, 6rem); }
.hiring-copy { display: grid; gap: 1.5rem; align-content: start; }
.hiring-copy .eyebrow { margin-bottom: -0.25rem; }
.hiring-copy > p { color: var(--fg-muted); max-width: 34rem; }
.roles { border-top: 2px solid var(--ink); }
.role {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding-block: 1.4rem; border-bottom: 1px solid var(--line);
}
.role h3 { font-family: var(--ff-display); font-weight: 800; text-transform: uppercase; font-size: clamp(2rem, 3.6vw, 3.25rem); line-height: 0.95; }
.role .link-arrow { flex: none; }
.asset-note { display: flex; gap: 0.75rem; align-items: center; margin-top: 1.5rem; padding: 1rem 1.25rem; background: var(--ink); color: #fff; font-weight: 600; }
.asset-note .icon { color: var(--flow); width: 1.5rem; height: 1.5rem; }
@media (min-width: 1000px) { .hiring-grid { grid-template-columns: 5fr 7fr; } }

.gallery { display: grid; gap: 0.75rem; grid-template-columns: repeat(2, 1fr); grid-auto-rows: clamp(9rem, 22vw, 14rem); }
.gallery-item { position: relative; grid-row: span 2; overflow: hidden; background: var(--night); }
.gallery-item--wide { grid-column: span 2; }
.gallery-item a { display: block; height: 100%; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease), opacity 0.3s; }
.gallery-item a:hover img { transform: scale(1.04); }
.gallery-item a:focus-visible { outline-offset: -4px; outline-color: #fff; }
.gallery-note {
  grid-row: span 2; display: grid; align-content: end; gap: 0.75rem; padding: 1.5rem;
  background: var(--flow); color: var(--btn-ink);
}
.gallery-note p:first-child { font-family: var(--ff-display); font-weight: 800; font-size: clamp(1.75rem, 2.6vw, 2.5rem); line-height: 0.95; text-transform: uppercase; }
@media (min-width: 900px) {
  .gallery { grid-template-columns: repeat(4, 1fr); }
}

.lightbox {
  width: min(96vw, 1100px); max-height: 94vh; padding: 0; border: 0; background: var(--night); color: #fff;
}
.lightbox::backdrop { background: rgba(8, 10, 12, 0.88); }
.lightbox-figure { display: grid; }
.lightbox-figure img { width: 100%; max-height: 80vh; object-fit: contain; background: #000; }
.lightbox-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.75rem 1rem; }
.lightbox-caption { font-size: 0.9375rem; color: var(--on-dark-muted); }
.lightbox-controls { display: flex; gap: 0.5rem; }
.lightbox-controls button {
  display: grid; place-items: center; width: 2.75rem; height: 2.75rem;
  background: transparent; color: #fff; border: 1.5px solid rgba(255, 255, 255, 0.4); border-radius: var(--radius); cursor: pointer;
}
.lightbox-controls button:hover { background: rgba(255, 255, 255, 0.1); }

/* ---------- Forms ---------- */
.form-card {
  background: var(--paper); color: var(--ink);
  padding: clamp(1.5rem, 4vw, 3rem);
  border: 1px solid var(--line-light);
  box-shadow: 0 30px 60px -30px rgba(12, 14, 17, 0.25);
}
.form-card-title { margin-bottom: 0.5rem; }
.form-intro { color: var(--ink-muted); margin-bottom: 1.75rem; }
.form-required-note { font-size: 0.875rem; color: var(--ink-muted); margin-bottom: 1.5rem; }
.form-grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
.field { display: grid; gap: 0.4rem; align-content: start; }
.field[hidden] { display: none; }
.field label, .field legend { font-weight: 600; font-size: 0.9688rem; }
.field .req { color: var(--error); margin-left: 0.15rem; }
.field .optional { font-weight: 400; color: var(--ink-muted); font-size: 0.875rem; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 3.25rem; padding: 0.75rem 0.9rem;
  border: 1.5px solid #9d998f; border-radius: var(--radius); background: #fff;
  font-size: 1rem; line-height: 1.4;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 9rem; resize: vertical; }
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%2315181c' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.85rem center; background-size: 1.1rem;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--flow-ink); box-shadow: 0 0 0 3px rgba(69, 142, 204, 0.4); }
.field input[type='file'] { padding: 0.65rem; min-height: auto; cursor: pointer; }
.field input[type='file']::file-selector-button {
  margin-right: 0.9rem; padding: 0.55rem 0.9rem; border: 0; border-radius: var(--radius);
  background: var(--ink); color: #fff; font-weight: 700; font-size: 0.875rem; letter-spacing: 0.04em; text-transform: uppercase; cursor: pointer;
}
.field-hint { font-size: 0.875rem; color: var(--ink-muted); }
.field-error { display: flex; gap: 0.4rem; align-items: flex-start; font-size: 0.9rem; font-weight: 600; color: var(--error); }
.field-error[hidden] { display: none; }
.field-error .icon { width: 1.1rem; height: 1.1rem; margin-top: 0.15rem; }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: var(--error); box-shadow: 0 0 0 1px var(--error); }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 0.5rem; }
.form-status { font-weight: 600; color: var(--error); }
.form-status:empty { display: none; }
@media (min-width: 640px) {
  .form-grid { grid-template-columns: 1fr 1fr; }
  .field--full { grid-column: 1 / -1; }
}

.mode-toggle { border: 0; padding: 0; margin: 0 0 1.75rem; }
.mode-toggle legend { font-family: var(--ff-mono); font-weight: 500; font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 0.75rem; padding: 0; }
.mode-options { display: grid; gap: 0.75rem; grid-template-columns: 1fr 1fr; }
.mode-option { position: relative; }
.mode-option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.mode-option label {
  display: grid; gap: 0.25rem; height: 100%; padding: 1rem 1.1rem;
  border: 2px solid #c8c4ba; border-radius: var(--radius); cursor: pointer; background: #fff;
  transition: border-color 0.2s, background-color 0.2s;
}
.mode-option label strong { font-family: var(--ff-display); font-weight: 800; text-transform: uppercase; font-size: 1.5rem; line-height: 1; }
.mode-option label span { font-size: 0.875rem; color: var(--ink-muted); }
.mode-option input:checked + label { border-color: var(--flow-ink); background: rgba(69, 142, 204, 0.1); box-shadow: inset 0 0 0 1px var(--flow-ink); }
.mode-option input:focus-visible + label { outline: 3px solid var(--flow); outline-offset: 2px; }
@media (max-width: 420px) { .mode-options { grid-template-columns: 1fr; } }

.form-success { display: grid; gap: 1rem; justify-items: start; }
.form-success[hidden] { display: none; }
.form-success-icon { display: grid; place-items: center; width: 3.5rem; height: 3.5rem; border-radius: 50%; background: var(--flow); color: var(--btn-ink); }
.form-success-icon .icon { width: 1.75rem; height: 1.75rem; }
.form-success h3 { font-family: var(--ff-display); font-weight: 800; text-transform: uppercase; font-size: 2.5rem; line-height: 0.95; }
.form-success h3:focus { outline: none; }
.form-success p { color: var(--ink-muted); max-width: 34rem; }

/* Spam trap (formExtras() in partials.mjs): off-screen and out of the tab order, so only bots fill it in. */
.form-trap { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; gap: clamp(3rem, 6vw, 5rem); align-items: start; }
.contact-info { display: grid; gap: 2.5rem; align-content: start; }
.contact-info .eyebrow { margin-bottom: -1.25rem; }
.phone-big { display: grid; gap: 0.25rem; text-decoration: none; }
.phone-big-label { font-family: var(--ff-mono); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-muted); }
.phone-big-num { font-family: var(--ff-display); font-weight: 800; font-size: clamp(2.75rem, 5vw, 4.25rem); line-height: 0.95; letter-spacing: 0.01em; }
.phone-big:hover .phone-big-num { color: var(--accent-ink); }
.phones { display: grid; gap: 1.5rem; padding-bottom: 2rem; border-bottom: 1px solid var(--line); }
.contact-block h3 { font-family: var(--ff-mono); font-weight: 500; font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-muted); margin-bottom: 0.75rem; }
.contact-block address { font-size: 1.125rem; font-weight: 600; line-height: 1.5; }
.contact-block .link-arrow { margin-top: 1rem; }
.email-list { display: grid; gap: 0.35rem; }
.email-list a { display: inline-flex; align-items: center; gap: 0.5rem; text-decoration: none; font-weight: 600; }
.email-list a .icon { color: var(--accent-ink); }
.email-list a:hover { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }
.email-list .primary { font-size: 1.125rem; }
@media (min-width: 1000px) { .contact-grid { grid-template-columns: 5fr 7fr; } }

.map-wrap { position: relative; height: clamp(24rem, 46vw, 34rem); background: var(--concrete-2); }
.map-wrap iframe { width: 100%; height: 100%; border: 0; filter: grayscale(0.25) contrast(1.05); }
.map-plate {
  position: absolute; left: var(--gutter); bottom: clamp(1rem, 3vw, 2rem);
  max-width: min(22rem, calc(100% - 2 * var(--gutter)));
  background: var(--asphalt); color: #fff; padding: 1.25rem 1.5rem;
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.5);
}
.map-plate p { font-weight: 600; }
.map-plate .link-arrow { margin-top: 0.75rem; color: var(--flow-bright); }
.map-fallback { display: grid; place-items: center; height: 100%; padding: 2rem; text-align: center; color: var(--ink-muted); }

/* ---------- Generic two-up section ---------- */
.prose-grid { display: grid; gap: clamp(2rem, 5vw, 5rem); }
@media (min-width: 1000px) { .prose-grid { grid-template-columns: 5fr 7fr; } }

/* =========================================================================
   EB Media concept widget (same pattern as the Ancaster BIA concept).
   Not part of the client's design; `--launch` builds leave it out.
   ========================================================================= */
.concept-widget {
  position: fixed; right: 1rem; bottom: calc(1rem + var(--fb-lift)); z-index: 58;
  display: flex; flex-direction: column; align-items: flex-end;
  max-width: calc(100vw - 2rem);
  transition: bottom 0.35s var(--ease);
}
.concept-pill {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.5rem 1rem 0.5rem 0.75rem;
  border: 0; border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 0 1px rgba(12, 14, 17, 0.08), 0 2px 4px rgba(12, 14, 17, 0.08), 0 24px 48px -20px rgba(12, 14, 17, 0.45);
  opacity: 0.92; cursor: pointer; transition: opacity 0.3s;
}
@supports (backdrop-filter: blur(6px)) { .concept-pill { backdrop-filter: blur(6px); } }
.concept-pill:hover, .concept-pill[aria-expanded='true'] { opacity: 1; }
.concept-pill img { height: 24px; width: auto; }
.concept-pill-rule { width: 1px; height: 1rem; background: rgba(21, 24, 28, 0.18); }
.concept-pill-label { font-family: var(--ff-mono); font-size: 0.625rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-muted); }
.concept-pill:hover .concept-pill-label { color: var(--ink); }

.concept-panel {
  width: 22rem; max-width: 100%; margin-bottom: 0.75rem; padding: 1.25rem;
  background: var(--paper); color: var(--ink);
  border: 1px solid var(--line-light);
  box-shadow: 0 2px 4px rgba(12, 14, 17, 0.06), 0 24px 48px -20px rgba(12, 14, 17, 0.45);
}
.concept-panel[hidden] { display: none; }
.concept-panel-logo { height: 28px; width: auto; }
.concept-panel-eyebrow { margin-top: 1.25rem; font-family: var(--ff-mono); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--flow-ink); }
.concept-panel-lead { margin-top: 0.6rem; font-size: 1.125rem; font-weight: 600; line-height: 1.35; letter-spacing: -0.01em; }
.concept-panel-text { margin-top: 0.6rem; font-size: 0.875rem; line-height: 1.55; color: var(--ink-muted); }
.concept-panel-legal { margin-top: 1rem; padding-top: 0.85rem; border-top: 1px solid var(--line-light); font-size: 0.75rem; line-height: 1.5; color: var(--ink-muted); }
.concept-switch { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--line-light); }
.concept-switch-label { display: block; font-size: 0.875rem; font-weight: 600; }
.concept-switch-hint { display: block; font-size: 0.78rem; line-height: 1.4; color: var(--ink-muted); }
.concept-switch button {
  position: relative; flex: none; width: 2.75rem; height: 1.5rem; margin-top: 0.1rem;
  border: 0; border-radius: 999px; background: rgba(21, 24, 28, 0.22); cursor: pointer; transition: background-color 0.2s;
}
.concept-switch button span {
  position: absolute; top: 2px; left: 2px; width: 1.25rem; height: 1.25rem; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); transition: transform 0.2s var(--ease);
}
.concept-switch button[aria-checked='true'] { background: var(--flow-ink); }
.concept-switch button[aria-checked='true'] span { transform: translateX(1.25rem); }
.concept-links { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.concept-links a { padding: 0.35rem 0.75rem; border: 1px solid var(--line-light); font-size: 0.8125rem; font-weight: 600; text-decoration: none; }
.concept-links a:hover { border-color: var(--ink); }
.concept-close {
  margin-top: 1rem; padding: 0; border: 0; background: none; cursor: pointer;
  font-size: 0.8125rem; color: var(--ink-muted); text-decoration: underline; text-underline-offset: 4px;
}
.concept-close:hover { color: var(--ink); }


/* Presentation mode: hides prototype notes; the widget itself always stays */
.presenting .concept-note { display: none !important; }

/* Keep bottom-right page content clear of the widget */
body:has(.concept-widget) .site-footer { padding-bottom: calc(4.5rem + var(--fb-lift)); }
@media (min-width: 1024px) {
  body:has(.concept-widget) .hero-foot { padding-right: 12.5rem; }
}
@media (max-width: 1023px) {
  body:has(.concept-widget) .hero-foot { padding-bottom: 4.25rem; }
}
@media (max-width: 859px) {
  .concept-widget { right: 0.75rem; bottom: calc(0.75rem + var(--fb-lift)); max-width: calc(100vw - 1.5rem); }
  .action-bar-on .concept-widget { bottom: calc(4.6rem + env(safe-area-inset-bottom) + var(--fb-lift)); }
  body:has(.concept-widget) .site-footer { padding-bottom: calc(9rem + var(--fb-lift)); }
  .concept-pill img { height: 20px; }
}

/* EB Media Feedback: when a review link is open, its button/toolbar sits at the
   bottom right (a full-width bar on phones). Lift the site's own bottom buttons above it. */
body:has(eb-feedback) { --fb-lift: 76px; }
@media (max-width: 639px) { body:has(eb-feedback) { --fb-lift: 66px; } }

/* =========================================================================
   Motion (opt-in, respects reduced motion)
   ========================================================================= */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    opacity: 0; transform: translateY(24px);
    transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
    transition-delay: calc(var(--d, 0) * 110ms);
  }
  .js [data-reveal].is-in { opacity: 1; transform: none; }

  .js .hero-media img { animation: hero-settle 2.2s var(--ease) both; }
  .js .hero-eyebrow, .js .hero-line, .js .hero-lead, .js .hero-actions {
    animation: rise 0.9s var(--ease) both;
  }
  .js .hero-line:nth-child(1) { animation-delay: 0.1s; }
  .js .hero-line:nth-child(2) { animation-delay: 0.2s; }
  .js .hero-line:nth-child(3) { animation-delay: 0.3s; }
  .js .hero-lead { animation-delay: 0.45s; }
  .js .hero-actions { animation-delay: 0.55s; }
  .js .flow-wave path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.3s 0.75s var(--ease) forwards; }

  .js .page-hero-media img { animation: hero-settle 2.2s var(--ease) both; }
  .js .page-hero-inner > * { animation: rise 0.9s var(--ease) both; }
  .js .page-hero-inner > *:nth-child(2) { animation-delay: 0.08s; }
  .js .page-hero-inner > *:nth-child(3) { animation-delay: 0.16s; }
  .js .page-hero-inner > *:nth-child(4) { animation-delay: 0.26s; }
  .js .page-hero-inner > *:nth-child(5) { animation-delay: 0.34s; }

  .radar-home-pulse { animation: pulse 2.6s ease-out infinite; }
  .concept-panel:not([hidden]) { animation: rise 0.35s var(--ease) both; }
}
@keyframes hero-settle { from { transform: scale(1.07); } to { transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(0.6em); } to { opacity: 1; transform: none; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pulse { 0% { transform: scale(0.8); opacity: 0.9; } 100% { transform: scale(3.2); opacity: 0; } }

@media print {
  .site-header, .mobile-menu, .action-bar, .cta-band, .map-wrap { display: none !important; }
  .hero, .page-hero { min-height: auto; color: #000; background: none; }
  .hero-media, .page-hero-media, .hero-shade, .page-hero-shade { display: none; }
  .concept-widget { position: static; align-items: flex-start; margin: 1rem; }
  .concept-panel { display: none; }
}
