/* ==========================================================================
   Seal Pumps and Valves — site.css
   Single stylesheet. No framework. Palette/font come from config/brands/*.php
   as CSS custom properties (see the inline <style> block in layout.php);
   the values below are the shipped defaults (sampled from the legacy skin).
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
  --c-primary: #01658f;
  --c-primary-dark: #034460;
  --c-primary-light: #e8f2f7;
  --c-accent: #f0672a;
  --c-accent-dark: #c8531f;
  --c-text: #23282d;
  --c-muted: #5b6770;
  --c-line: #dfe5e9;
  --c-bg: #ffffff;
  --c-surface: #f5f7f9;
  --c-surface-2: #eef2f5;
  --c-on-primary: #ffffff;

  --font: 'Hind', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --fs-xs: 0.8125rem;   /* 13 */
  --fs-sm: 0.875rem;    /* 14 */
  --fs-base: 1rem;      /* 16 */
  --fs-md: 1.125rem;    /* 18 */
  --fs-lg: 1.375rem;    /* 22 */
  --fs-xl: 1.75rem;     /* 28 */
  --fs-2xl: 2.25rem;    /* 36 */
  --fs-3xl: 3rem;       /* 48 */
  --lh: 1.6;
  --lh-tight: 1.2;

  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px;
  --sp-5: 24px; --sp-6: 32px; --sp-7: 48px; --sp-8: 64px;

  --radius: 4px;
  --radius-lg: 8px;
  --shadow-sm: 0 1px 2px rgba(16, 32, 40, .06), 0 1px 3px rgba(16, 32, 40, .05);
  --shadow-md: 0 4px 12px rgba(16, 32, 40, .08);
  --container: 1200px;
  --header-h: 76px;
}

/* 2. Reset ----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: var(--lh);
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, h5, h6 { margin: 0 0 var(--sp-3); line-height: var(--lh-tight); font-weight: 600; letter-spacing: -0.01em; }
h1 { font-size: var(--fs-2xl); }
h2 { font-size: var(--fs-xl); }
h3 { font-size: var(--fs-lg); }
h4 { font-size: var(--fs-md); }
h5 { font-size: var(--fs-base); }
p  { margin: 0 0 var(--sp-4); }
ul, ol { margin: 0 0 var(--sp-4); padding-left: var(--sp-5); }
li { margin-bottom: var(--sp-1); }
a { color: var(--c-primary); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--c-accent-dark); }
hr { border: 0; border-top: 1px solid var(--c-line); margin: var(--sp-6) 0; }
strong, b { font-weight: 600; }
small { font-size: var(--fs-sm); }
table { width: 100%; border-collapse: collapse; }

/* 3. Accessibility --------------------------------------------------------- */
:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 2px;
  border-radius: 2px;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--c-primary); color: #fff; padding: var(--sp-3) var(--sp-4);
  font-weight: 600;
}
.skip-link:focus { left: var(--sp-4); top: var(--sp-4); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* 4. Layout ---------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--sp-4);
}
.section { padding-block: var(--sp-7); }
.section--surface { background: var(--c-surface); }
.section--tight { padding-block: var(--sp-6); }
.stack > * + * { margin-top: var(--sp-4); }
.grid { display: grid; gap: var(--sp-4); }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: 1fr; }
@media (min-width: 600px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

.section-head {
  display: flex; flex-wrap: wrap; align-items: baseline;
  justify-content: space-between; gap: var(--sp-3);
  margin-bottom: var(--sp-5);
}
.section-head h2 { margin: 0; }
.section-head p { margin: 0; color: var(--c-muted); max-width: 60ch; }
.eyebrow {
  display: block; font-size: var(--fs-xs); font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--c-accent-dark); margin-bottom: var(--sp-2);
}

/* 5. Buttons and links ----------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-5);
  font: inherit; font-weight: 600; line-height: 1.2;
  border: 1px solid transparent; border-radius: var(--radius);
  background: var(--c-primary); color: var(--c-on-primary);
  text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn:hover { background: var(--c-primary-dark); color: #fff; }
.btn--accent { background: var(--c-accent); }
.btn--accent:hover { background: var(--c-accent-dark); }
.btn--ghost { background: transparent; color: var(--c-primary); border-color: var(--c-line); }
.btn--ghost:hover { background: var(--c-primary-light); color: var(--c-primary-dark); border-color: var(--c-primary); }
.btn--sm { padding: var(--sp-2) var(--sp-3); font-size: var(--fs-sm); }
.btn--block { width: 100%; justify-content: center; }
.btn--on-dark { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .5); }
.btn--on-dark:hover { background: rgba(255, 255, 255, .14); color: #fff; border-color: #fff; }
.link-arrow { font-weight: 600; text-decoration: none; }
.link-arrow::after { content: " ›"; }
.link-arrow:hover { text-decoration: underline; }

/* 6. Top bar and header ---------------------------------------------------- */
.topbar {
  background: var(--c-primary-dark);
  color: rgba(255, 255, 255, .85);
  font-size: var(--fs-xs);
}
.topbar__inner {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: var(--sp-3);
  min-height: 38px;
}
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { text-decoration: underline; }
.topbar__contacts { display: flex; flex-wrap: wrap; gap: var(--sp-4); align-items: center; }
.topbar__item { display: inline-flex; align-items: center; gap: var(--sp-2); }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--c-bg);
  border-bottom: 1px solid var(--c-line);
}
.site-header__inner {
  display: flex; align-items: center; gap: var(--sp-4);
  min-height: var(--header-h);
}
.logo { flex: 0 0 auto; display: inline-flex; align-items: center; text-decoration: none; }
.logo img { width: auto; height: 48px; object-fit: contain; }
.logo__text { font-size: var(--fs-md); font-weight: 600; color: var(--c-primary-dark); }

.nav { margin-left: auto; }
.nav__list {
  display: none; list-style: none; margin: 0; padding: 0;
  gap: var(--sp-1);
}
@media (min-width: 900px) { .nav__list { display: flex; align-items: center; } }
.nav__list li { margin: 0; position: relative; }
.nav__link {
  display: block; padding: var(--sp-3);
  font-weight: 600; font-size: var(--fs-sm); color: var(--c-text);
  text-decoration: none; border-radius: var(--radius);
}
.nav__link:hover,
.nav__link[aria-current="page"] { color: var(--c-primary); background: var(--c-primary-light); }
.nav__sub {
  list-style: none; margin: 0; padding: var(--sp-2);
  background: var(--c-primary); border-radius: var(--radius);
  min-width: 260px;
}
@media (min-width: 900px) {
  .nav__sub {
    position: absolute; left: 0; top: 100%; display: none;
    box-shadow: var(--shadow-md);
  }
  .nav__list li:hover .nav__sub,
  .nav__list li:focus-within .nav__sub { display: block; }
}
.nav__sub a {
  display: block; padding: var(--sp-2) var(--sp-3);
  color: #fff; font-size: var(--fs-sm); text-decoration: none;
  border-radius: 3px;
}
.nav__sub a:hover { background: var(--c-accent); color: #fff; }

/* mobile menu */
.nav-toggle {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  margin-left: auto; padding: var(--sp-2) var(--sp-3);
  background: transparent; border: 1px solid var(--c-line); border-radius: var(--radius);
  font: inherit; font-weight: 600; color: var(--c-text); cursor: pointer;
}
@media (min-width: 900px) { .nav-toggle { display: none; } }
.nav-toggle__bars { display: block; width: 18px; height: 2px; background: currentColor; position: relative; }
.nav-toggle__bars::before, .nav-toggle__bars::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: currentColor;
}
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }

.mobile-nav {
  display: none; border-top: 1px solid var(--c-line); background: var(--c-bg);
}
.mobile-nav.is-open { display: block; }
@media (min-width: 900px) { .mobile-nav { display: none !important; } }
.mobile-nav ul { list-style: none; margin: 0; padding: var(--sp-2) 0; }
.mobile-nav li { margin: 0; }
.mobile-nav a {
  display: block; padding: var(--sp-3) var(--sp-4);
  text-decoration: none; color: var(--c-text); font-weight: 600;
  border-bottom: 1px solid var(--c-line);
}
.mobile-nav a:hover { background: var(--c-primary-light); color: var(--c-primary-dark); }

/* 7. Hero ------------------------------------------------------------------ */
.hero {
  position: relative;
  background: var(--c-primary-dark);
  color: #fff;
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; opacity: .38; }
.hero__inner { position: relative; padding-block: var(--sp-8); max-width: 720px; }
.hero h1 { color: #fff; font-size: var(--fs-2xl); margin-bottom: var(--sp-4); }
@media (min-width: 900px) { .hero h1 { font-size: var(--fs-3xl); } }
.hero p { font-size: var(--fs-md); color: rgba(255, 255, 255, .9); max-width: 52ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-5); }
.hero--compact .hero__inner { padding-block: var(--sp-7); }

/* 8. Chips ----------------------------------------------------------------- */
.chips { display: flex; flex-wrap: wrap; gap: var(--sp-2); list-style: none; margin: 0; padding: 0; }
.chips li { margin: 0; }
.chip {
  display: inline-block; padding: var(--sp-2) var(--sp-3);
  font-size: var(--fs-sm); font-weight: 600; color: var(--c-primary-dark);
  background: var(--c-bg); border: 1px solid var(--c-line); border-radius: 999px;
  text-decoration: none; transition: border-color .15s ease, background-color .15s ease;
}
.chip:hover { border-color: var(--c-primary); background: var(--c-primary-light); color: var(--c-primary-dark); }
.chip__count { color: var(--c-muted); font-weight: 400; }
.tag {
  display: inline-block; padding: 2px var(--sp-2);
  font-size: var(--fs-xs); font-weight: 600; letter-spacing: .02em;
  color: var(--c-primary-dark); background: var(--c-primary-light);
  border-radius: 3px; text-decoration: none;
}
.tag--accent { color: #7a2c06; background: #fdeee6; }
.tag--muted { color: var(--c-muted); background: var(--c-surface-2); }


/* 9. Product card ---------------------------------------------------------- */
.card {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--c-bg);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.card:hover { border-color: var(--c-primary); box-shadow: var(--shadow-md); }
.card__media {
  aspect-ratio: 4 / 3;
  background: var(--c-surface-2);
  display: flex; align-items: center; justify-content: center;
  padding: var(--sp-3);
}
.card__media img { width: 100%; height: 100%; object-fit: contain; }
.card__body { padding: var(--sp-4); display: flex; flex-direction: column; gap: var(--sp-2); flex: 1; }
.card__make {
  font-size: var(--fs-xs); font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--c-accent-dark);
}
.card__title { margin: 0; font-size: var(--fs-md); line-height: 1.35; }
.card__title a { color: var(--c-text); text-decoration: none; }
.card__title a:hover { color: var(--c-primary); }
/* whole card clickable without nesting interactive elements */
.card__title a::after { content: ""; position: absolute; inset: 0; }
.card__meta { font-size: var(--fs-sm); color: var(--c-muted); margin: 0; }
.card__foot {
  margin-top: auto; padding-top: var(--sp-3);
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2);
  border-top: 1px solid var(--c-line);
  font-size: var(--fs-sm);
}
.card__foot .tag { position: relative; z-index: 1; }

/* 10. Feature / info blocks ------------------------------------------------ */
.panel {
  background: var(--c-bg);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  padding: var(--sp-5);
}
.panel--surface { background: var(--c-surface); border-color: transparent; }
.panel h3 { margin-top: 0; }
.panel ul { margin-bottom: 0; }

.feature { display: flex; gap: var(--sp-3); }
.feature__icon {
  flex: 0 0 40px; width: 40px; height: 40px;
  display: grid; place-items: center;
  background: var(--c-primary-light); color: var(--c-primary-dark);
  border-radius: var(--radius);
}
.feature__icon svg { width: 22px; height: 22px; }
.feature h3 { font-size: var(--fs-md); margin-bottom: var(--sp-1); }
.feature p { margin: 0; color: var(--c-muted); font-size: var(--fs-sm); }

.cta-band {
  background: var(--c-primary);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: var(--sp-4);
}
.cta-band h2 { color: #fff; margin: 0 0 var(--sp-1); font-size: var(--fs-lg); }
.cta-band p { margin: 0; color: rgba(255, 255, 255, .85); }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); }

/* 11. Breadcrumbs ---------------------------------------------------------- */
.breadcrumbs {
  font-size: var(--fs-sm); color: var(--c-muted);
  padding-block: var(--sp-3);
  border-bottom: 1px solid var(--c-line);
}
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: var(--sp-2); list-style: none; margin: 0; padding: 0; }
.breadcrumbs li { margin: 0; }
.breadcrumbs li + li::before { content: "/"; margin-right: var(--sp-2); color: var(--c-line); }
.breadcrumbs a { color: var(--c-muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--c-primary); text-decoration: underline; }


/* 12. Product detail ------------------------------------------------------- */
.product-hero { padding-block: var(--sp-6); }
.product-hero__layout { display: grid; gap: var(--sp-6); }
@media (min-width: 900px) {
  .product-hero__layout { grid-template-columns: 7fr 5fr; align-items: start; }
}
.gallery { position: relative; }
.gallery__main {
  background: var(--c-surface-2);
  border-radius: var(--radius-lg);
  padding: var(--sp-4);
  aspect-ratio: 4 / 3;
  display: grid; place-items: center;
}
.gallery__main img { max-height: 100%; width: auto; object-fit: contain; }
.gallery__thumbs {
  display: flex; gap: var(--sp-2); margin-top: var(--sp-3);
  overflow-x: auto; padding: 0 0 var(--sp-1) 0;
  list-style: none;
}
.gallery__thumbs li { margin: 0; flex: 0 0 88px; }
.gallery__thumbs button {
  display: block; width: 100%; padding: 0; cursor: pointer;
  background: var(--c-surface-2); border: 2px solid transparent; border-radius: var(--radius);
  aspect-ratio: 4 / 3; overflow: hidden;
}
.gallery__thumbs button[aria-current="true"] { border-color: var(--c-primary); }
.gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; }

.product-summary h1 { font-size: var(--fs-xl); margin-bottom: var(--sp-3); }
.product-summary__lead { font-size: var(--fs-md); color: var(--c-muted); }
.product-facts { list-style: none; margin: 0 0 var(--sp-5); padding: 0; display: grid; gap: var(--sp-2); }
.product-facts li { display: flex; gap: var(--sp-2); align-items: baseline; margin: 0; }
.product-facts .k { flex: 0 0 110px; font-size: var(--fs-sm); font-weight: 600; color: var(--c-muted); }

/* 13. Tabs / accordion ----------------------------------------------------- */
.tabs { margin-top: var(--sp-6); }
.tabs__list {
  display: flex; flex-wrap: wrap; gap: var(--sp-1);
  border-bottom: 2px solid var(--c-line);
  list-style: none; margin: 0 0 var(--sp-5) 0; padding: 0;
}
.tabs__list li { margin: 0; }
.tabs__btn {
  padding: var(--sp-3) var(--sp-4);
  background: none; border: 0; border-bottom: 3px solid transparent;
  font: inherit; font-weight: 600; color: var(--c-muted);
  cursor: pointer; margin-bottom: -2px;
}
.tabs__btn[aria-selected="true"] { color: var(--c-primary-dark); border-bottom-color: var(--c-accent); }
.tabs__panel { padding-block: var(--sp-2); }
.tabs__panel[hidden] { display: none; }

/* specs: definition list rendered as a two-column grid */
.spec-list { margin: 0; border-top: 1px solid var(--c-line); }
.spec-list > div {
  display: grid; grid-template-columns: 1fr; gap: var(--sp-1);
  padding: var(--sp-3) 0; border-bottom: 1px solid var(--c-line);
}
@media (min-width: 600px) {
  .spec-list > div { grid-template-columns: 240px 1fr; gap: var(--sp-4); }
}
.spec-list dt { font-weight: 600; font-size: var(--fs-sm); color: var(--c-muted); margin: 0; }
.spec-list dd { margin: 0; }

/* 14. Documents ------------------------------------------------------------ */
.doc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-2); }
.doc-list li { margin: 0; }
.doc {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  border: 1px solid var(--c-line); border-radius: var(--radius);
  text-decoration: none; color: var(--c-text); background: var(--c-bg);
}
.doc:hover { border-color: var(--c-primary); background: var(--c-primary-light); }
.doc__icon { flex: 0 0 24px; color: var(--c-accent-dark); }
.doc__name { font-weight: 600; font-size: var(--fs-sm); }
.doc__meta { font-size: var(--fs-xs); color: var(--c-muted); }


/* 15. Footer --------------------------------------------------------------- */
.site-footer {
  margin-top: var(--sp-8);
  background: var(--c-primary-dark);
  color: rgba(255, 255, 255, .78);
  font-size: var(--fs-sm);
}
.site-footer__main {
  display: grid; gap: var(--sp-6);
  padding-block: var(--sp-7);
  grid-template-columns: 1fr;
}
@media (min-width: 600px) { .site-footer__main { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .site-footer__main { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
.site-footer h2, .site-footer h5 {
  color: #fff; font-size: var(--fs-sm);
  text-transform: uppercase; letter-spacing: .1em;
  margin-bottom: var(--sp-3);
}
.site-footer a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: var(--sp-2); }
.site-footer__brand img { height: 40px; width: auto; margin-bottom: var(--sp-4); }
.site-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, .15);
  padding-block: var(--sp-4);
  display: flex; flex-wrap: wrap; gap: var(--sp-3);
  justify-content: space-between;
  font-size: var(--fs-xs);
}

/* 16. Forms ---------------------------------------------------------------- */
.form { display: grid; gap: var(--sp-4); max-width: 640px; }
.field { display: grid; gap: var(--sp-1); }
.field--half { grid-template-columns: 1fr; }
@media (min-width: 600px) { .form__row { display: grid; gap: var(--sp-4); grid-template-columns: 1fr 1fr; } }
label { font-weight: 600; font-size: var(--fs-sm); }
.req { color: var(--c-accent-dark); }
input[type="text"], input[type="email"], input[type="tel"], input[type="search"], select, textarea {
  font: inherit; color: var(--c-text);
  padding: var(--sp-3); width: 100%;
  background: var(--c-bg);
  border: 1px solid var(--c-line); border-radius: var(--radius);
}
input:focus, select:focus, textarea:focus { border-color: var(--c-primary); }
textarea { min-height: 140px; resize: vertical; }
.hint { font-size: var(--fs-xs); color: var(--c-muted); }
.error-text { color: #b3261e; font-size: var(--fs-xs); font-weight: 600; }
.field--error input, .field--error textarea, .field--error select { border-color: #b3261e; }
.form-note { font-size: var(--fs-xs); color: var(--c-muted); }
/* honeypot — visually and programmatically hidden but not display:none */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* 17. Notices -------------------------------------------------------------- */
.notice {
  padding: var(--sp-4);
  border-left: 4px solid var(--c-primary);
  background: var(--c-primary-light);
  border-radius: var(--radius);
  font-size: var(--fs-sm);
}
.notice--warn { border-left-color: var(--c-accent); background: #fdf1ea; }
.notice--error { border-left-color: #b3261e; background: #fdeceb; }
.notice--ok { border-left-color: #1d7a46; background: #eaf6ef; }

/* 18. Pagination ----------------------------------------------------------- */
.pagination { display: flex; flex-wrap: wrap; gap: var(--sp-2); list-style: none; margin: var(--sp-6) 0 0; padding: 0; }
.pagination li { margin: 0; }
.pagination a, .pagination span {
  display: inline-block; min-width: 40px; text-align: center;
  padding: var(--sp-2) var(--sp-3);
  border: 1px solid var(--c-line); border-radius: var(--radius);
  text-decoration: none; font-size: var(--fs-sm);
}
.pagination [aria-current="page"] { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }

/* 19. Utilities ------------------------------------------------------------ */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.h5 { font-size: var(--fs-base); font-weight: 600; }
.filter { display: grid; gap: var(--sp-3); }
.filter__row { display: grid; gap: var(--sp-3); grid-template-columns: 1fr; }
@media (min-width: 900px) { .filter__row { grid-template-columns: 2fr 1fr 1fr; align-items: center; } }
.text-center { text-align: center; }
.muted { color: var(--c-muted); }
.small { font-size: var(--fs-sm); }
.flow-lg > * + * { margin-top: var(--sp-6); }
.two-col { display: grid; gap: var(--sp-5); }
@media (min-width: 900px) { .two-col { grid-template-columns: 2fr 1fr; align-items: start; } }

/* 20. Motion preferences --------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* 21. Print ---------------------------------------------------------------- */
@media print {
  .site-header, .topbar, .mobile-nav, .cta-band, .site-footer__main, .nav-toggle { display: none !important; }
  body { color: #000; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .8em; }
}


/* 22. Phase 3 additions ---------------------------------------------------- */
.card__nophoto { font-size: var(--fs-xs); color: var(--c-muted); letter-spacing: .08em; text-transform: uppercase; }
.filter__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3); }
.term-card {
  display: flex; flex-direction: column; gap: var(--sp-1);
  padding: var(--sp-5); background: var(--c-bg);
  border: 1px solid var(--c-line); border-radius: var(--radius-lg);
  text-decoration: none; color: var(--c-text);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.term-card:hover { border-color: var(--c-primary); box-shadow: var(--shadow-md); color: var(--c-text); }
.term-card__name { font-size: var(--fs-md); font-weight: 600; }
.term-card__count { font-size: var(--fs-sm); color: var(--c-accent-dark); font-weight: 600; }
.term-card__desc { font-size: var(--fs-sm); color: var(--c-muted); }
.office__address { font-style: normal; font-size: var(--fs-sm); color: var(--c-muted); margin-bottom: var(--sp-3); }
.office__contact { font-size: var(--fs-sm); margin-bottom: var(--sp-2); }

/* long-form copy, including legacy HTML rendered from the source */
.prose { max-width: 72ch; }
.prose > * + * { margin-top: var(--sp-4); }
.prose h2 { font-size: var(--fs-lg); margin-top: var(--sp-6); }
.prose h3 { font-size: var(--fs-md); margin-top: var(--sp-5); }
.prose ul, .prose ol { padding-left: var(--sp-5); }
.prose li { margin-bottom: var(--sp-2); }
.prose--legacy p { margin-bottom: var(--sp-4); }
.prose--legacy h2 {
  font-size: var(--fs-lg); margin: var(--sp-5) 0 var(--sp-2);
  padding-bottom: var(--sp-2); border-bottom: 1px solid var(--c-line);
}
.prose--legacy h3 { font-size: var(--fs-md); margin: var(--sp-4) 0 var(--sp-2); }
.prose--legacy a { text-decoration: underline; }
.prose--legacy strong { color: var(--c-text); }


/* 23. Video hero ---------------------------------------------------------- */
.hero--video {
  min-height: clamp(520px, 64vh, 740px);
  display: flex;
  align-items: flex-end;
}
.hero__video,
.hero__still {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 1;
}
.hero--video .hero__media img { opacity: 1; }
.hero__scrim {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(100deg, rgba(3, 20, 32, .93) 0%, rgba(3, 20, 32, .74) 46%, rgba(3, 20, 32, .34) 100%),
    radial-gradient(120% 90% at 0% 100%, rgba(0, 0, 0, .45), transparent 60%);
}
.hero--video .hero__inner {
  position: relative; z-index: 2;
  padding-block: var(--sp-8) var(--sp-7);
}
.hero__note {
  margin: var(--sp-5) 0 0;
  font-size: var(--fs-sm);
  letter-spacing: .02em;
  color: rgba(255, 255, 255, .72);
}

/* 24. Stats band ---------------------------------------------------------- */
.stats { background: var(--c-primary-dark); color: #fff; }
.stats__inner {
  display: grid; gap: var(--sp-5);
  grid-template-columns: repeat(2, 1fr);
  padding-block: var(--sp-6);
}
@media (min-width: 700px) { .stats__inner { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 980px) { .stats__inner { grid-template-columns: repeat(5, 1fr); } }
.stat__value { display: block; font-size: var(--fs-xl); font-weight: 700; line-height: 1; letter-spacing: -0.02em; }
.stat__label {
  display: block; margin-top: var(--sp-2);
  font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .1em;
  color: rgba(255, 255, 255, .68);
}

/* 25. Application tiles --------------------------------------------------- */
.app-grid { gap: var(--sp-3); }
.app-tile {
  display: flex; flex-direction: column; gap: 2px;
  padding: var(--sp-4);
  background: var(--c-bg);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  text-decoration: none; color: var(--c-text);
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.app-tile:hover {
  border-color: var(--c-primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  color: var(--c-text);
}
.app-tile__icon {
  width: 34px; height: 34px; margin-bottom: var(--sp-2);
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--c-primary-light);
  color: var(--c-primary-dark);
}
.app-tile__icon svg { width: 19px; height: 19px; }
.app-tile__name { font-size: var(--fs-sm); font-weight: 600; line-height: 1.35; }
.app-tile__count { font-size: var(--fs-xs); color: var(--c-muted); }

/* 26. Brand marquee ------------------------------------------------------- */
.brandstrip {
  background: var(--c-surface-2);
  border-block: 1px solid var(--c-line);
  padding-block: var(--sp-5);
  overflow: hidden;
}
.brandstrip__head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: var(--sp-3); margin-bottom: var(--sp-3);
}
.brandstrip__viewport {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.brandstrip__track {
  display: flex; gap: var(--sp-7);
  width: max-content;
  animation: brandscroll 42s linear infinite;
}
.brandstrip:hover .brandstrip__track,
.brandstrip:focus-within .brandstrip__track { animation-play-state: paused; }
.brandstrip__item {
  display: inline-flex; align-items: baseline; gap: 6px;
  font-size: var(--fs-md); font-weight: 600;
  color: var(--c-muted); text-decoration: none; white-space: nowrap;
}
.brandstrip__item:hover { color: var(--c-primary); }
.brandstrip__count { font-size: var(--fs-xs); color: var(--c-accent-dark); }
@keyframes brandscroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* 27. Scroll reveal ------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .5s ease, transform .5s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .brandstrip__track { animation: none; }
}

