/* ==========================================================================
   pages/site.css: the group sites' shared components on top of the Swiss
   Editorial primitives (02-components.css). IDENTICAL in every app: brand
   colours and site-only components live in pages/theme.css (loads after this).
   Load order: 01-tokens → 02-components → 03-workspace → pages/editorial →
   pages/home → pages/site → pages/theme.
   Page authors: see tmp/design-system.md for the tokens and modifiers.

   1. Brand & accent        7. Cards & tiles          13. Content-page extras
   2. Header & menus        8. Pillars, link grid     14. Article bodies (WP)
   3. Home hero bits        9. Facts & stats          15. Contact, search
   4. Bands                10. Logo walls, clients    16. Admin & misc pages
   5. CTA band             11. Hubs, link columns
   6. Footer               12. Pager
   ========================================================================== */

/* ---------- 1. Brand & accent --------------------------------------------- */
.brand { gap: 0; }
.brand img { display: block; width: auto; height: 30px; }
.app-sidebar .brand img { height: 28px; }
@media (max-width: 47.99rem) { .brand img { height: 24px; } }

.accent, .accent-text { color: var(--accent-ink); }
.accent-dot { color: var(--accent); }
.kicker-dot, .masthead__kicker, .article-head__kicker { color: var(--accent-ink); font-weight: 500; }
.kicker-dot::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-inline-end: 8px; border-radius: 50%; background: var(--accent); vertical-align: 0.12em; }
.masthead__kicker .muted, .article-head__kicker .muted { color: var(--grey-text); font-weight: 400; }
.link-accent { color: var(--accent-ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.link-accent:hover { color: var(--accent-dark); }
.more { color: var(--accent-ink); }
.more:hover { color: var(--accent-dark); }
.btn--accent { background: var(--accent); color: var(--on-accent); }
.btn--accent:hover { background: var(--accent-dark); }
.btn--accent:focus-visible { outline-color: var(--accent-dark); }
.statement .accent, .row__big .accent { color: var(--accent-ink); }
.story:hover .story__title a, .company:hover .company__name a { color: var(--accent-ink); }
.index__list a:hover, .index__list a:focus-visible { color: var(--accent-ink); }
.footer-statement strong { color: var(--ink); }

/* ---------- 2. Header & menus --------------------------------------------- */
/* 76px bar (64px below 1024px), white with a hairline; ink links at 15px/500,
   the current section underlined in the accent. Burger below 1200px. */
.site-header { border-bottom: 1px solid var(--rule); background: rgb(255 255 255 / 0.96); backdrop-filter: saturate(1.4) blur(10px); }
.site-header__inner { gap: var(--s-5); }
.nav { gap: var(--s-4); }
.nav__list { display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; list-style: none; }
.nav__item { position: relative; }
.nav__link { position: relative; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding-inline: 12px; font-size: 0.9375rem; font-weight: 500; letter-spacing: 0; white-space: nowrap; color: var(--ink); border-radius: var(--radius); transition: color 200ms var(--ease); }
.nav__link::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 5px; height: 2px; border-radius: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform var(--dur) var(--ease); }
.nav__item--menu .nav__link::after { right: 28px; }
.nav__link:hover::after, .nav__item:focus-within > .nav__link::after, .nav__item:hover > .nav__link::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); }
.nav__link[aria-current="page"] { color: var(--ink); }
.nav__chevron { color: var(--grey-text); transition: transform var(--dur) var(--ease); }
.nav__item:hover .nav__chevron, .nav__item:focus-within .nav__chevron { transform: rotate(180deg); }
.nav__cta { margin-inline-start: var(--s-2); }
.nav .nav__cta, .nav .nav__cta:hover { color: var(--on-accent); }
.nav > a.nav__cta[aria-current="page"] { color: var(--on-accent); background: var(--accent-dark); }
.nav__search { margin-inline-start: var(--s-1); }
.nav__phone { font-variant-numeric: tabular-nums; }
@media (max-width: 87.99rem) { .nav__phone { display: none !important; } }

/* Dropdown: a quiet white panel; opens on hover and on keyboard focus (focus-within), no JS */
.nav__menu {
  position: absolute; top: 100%; left: 0; z-index: 50;
  display: flex; gap: var(--s-5); min-width: 17rem; margin-top: 12px; padding: 8px;
  background: #fff; border: 1px solid rgb(17 17 17 / 0.07); border-radius: var(--radius-l);
  box-shadow: 0 1px 2px rgb(17 17 17 / 0.04), 0 18px 44px rgb(17 17 17 / 0.11);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity 180ms var(--ease), transform 180ms var(--ease), visibility 0s 180ms;
}
.nav__menu::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; } /* hover bridge */
.nav__item:hover .nav__menu, .nav__item:focus-within .nav__menu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.nav__menu--cols { min-width: 36rem; }
.nav__menu--cols ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 4px; }
.nav__menu--cols .nav__group { width: 100%; }
.nav__group { min-width: 15rem; }
.nav__group ul { margin: 0; padding: 0; list-style: none; }
.nav__group-title { padding: 8px 12px 6px; font-size: var(--t-xs); font-weight: 500; letter-spacing: var(--track-caps); text-transform: uppercase; color: var(--grey-text); }
.nav__group a { display: grid; gap: 2px; padding: 9px 12px; border-radius: 8px; font-size: 0.9375rem; line-height: 1.3; color: var(--ink); transition: background-color 150ms var(--ease), color 150ms var(--ease); }
.nav__group a small { font-size: 0.8125rem; line-height: 1.35; color: var(--grey-text); }
.nav__group a:hover, .nav__group a:focus-visible { background: var(--field); }
.nav__group .nav__all { display: flex; align-items: center; justify-content: space-between; margin: 6px 0 0; padding: 12px 12px 6px; border-top: 1px solid var(--rule); border-radius: 0; font-size: var(--t-s); font-weight: 500; color: var(--ink-2); }
.nav__group .nav__all:hover { background: none; color: var(--accent-ink); }
.nav__all::after { content: "→"; color: var(--accent); transition: transform var(--dur) var(--ease); }
.nav__all:hover::after { transform: translateX(3px); }
.nav__item--menu:nth-last-child(-n+3) .nav__menu { left: auto; right: 0; }

/* Flyouts: the third level of the menu tree */
.nav__branch { position: relative; }
.nav__branch-link { display: flex !important; align-items: center; justify-content: space-between; gap: var(--s-3); }
.nav__flyout-chevron { flex: none; color: var(--grey-text); }
.nav__flyout {
  position: absolute; left: 100%; top: -9px; z-index: 51;
  min-width: 16rem; max-height: calc(100vh - 140px); overflow-y: auto; overscroll-behavior: contain;
  margin-left: 8px; padding: 8px;
  background: #fff; border: 1px solid rgb(17 17 17 / 0.07); border-radius: var(--radius-l);
  box-shadow: 0 1px 2px rgb(17 17 17 / 0.04), 0 18px 44px rgb(17 17 17 / 0.11);
  opacity: 0; visibility: hidden; transform: translateX(4px);
  transition: opacity 160ms var(--ease), transform 160ms var(--ease), visibility 0s 160ms;
}
.nav__flyout::before { content: ""; position: absolute; top: 0; bottom: 0; left: -12px; width: 12px; } /* hover bridge */
.nav__flyout--wide { min-width: 22rem; }
.nav__branch:hover > .nav__flyout, .nav__branch:focus-within > .nav__flyout { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.nav__flyout-group { padding-block: 6px 2px; margin-block-start: 4px; border-top: 1px solid var(--rule); }
.nav__flyout .nav__group-title { display: block !important; padding: 8px 12px 6px !important; }
.nav__flyout-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.nav__flyout-grid a { padding: 7px 12px !important; font-size: var(--t-s); }
.nav__item--menu:nth-last-child(-n+3) .nav__flyout { left: auto; right: 100%; margin-left: 0; margin-right: 8px; }

@media (max-width: 79.99rem) { .nav__link { padding-inline: 9px; } .nav__link::after { left: 9px; right: 9px; } .nav__item--menu .nav__link::after { right: 25px; } }
@media (max-width: 74.99rem) {
  .site .nav { display: none; }
  .site .menu-btn { display: inline-flex; align-items: center; }
}

/* Mobile menu: hairline list, accordions for groups */
.mobile-nav__group summary { list-style: none; cursor: pointer; }
.mobile-nav__group summary::-webkit-details-marker { display: none; }
.mobile-nav__group summary::after { content: ""; flex: none; width: 12px; height: 12px; background: linear-gradient(currentColor, currentColor) center / 12px 1.5px no-repeat, linear-gradient(currentColor, currentColor) center / 1.5px 12px no-repeat; color: var(--accent); transition: transform var(--dur) var(--ease); }
.mobile-nav__group[open] > summary::after { transform: rotate(45deg); }
.mobile-nav__group ul { margin: 0 0 var(--s-4); padding: 0; list-style: none; font-size: var(--t-body); font-weight: 400; letter-spacing: var(--track-body); }
.mobile-nav__group ul a { display: block; padding-block: 9px; color: var(--ink-2); }
.mobile-nav__group--nested { font-size: var(--t-body); }
.mobile-nav__group--nested > summary { display: flex; justify-content: space-between; align-items: center; padding-block: 9px; font-weight: 500; color: var(--ink); }
.mobile-nav__group--nested > summary::after { width: 10px; height: 10px; background-size: 10px 1.5px, 1.5px 10px; }
.mobile-nav__group ul ul { margin: 0 0 var(--s-2); padding-inline-start: var(--s-4); border-inline-start: 1px solid var(--rule); }
.mobile-nav__all { color: var(--accent-ink) !important; font-weight: 500; }
.mobile-nav__leaves { padding-inline-start: var(--s-4) !important; font-size: var(--t-s) !important; }
.mobile-nav__links a[aria-current="page"] { color: var(--accent-ink); }
.mobile-nav__email { margin-block-start: var(--s-4); text-align: center; color: var(--grey-text); }

/* ---------- 3. Home hero bits (shared by both home pages) ------------------ */
.hero__kicker { grid-column: 1 / -1; margin-block-end: var(--s-5); font-size: var(--t-s); }
.home-hero-actions { grid-column: 1 / -1; margin-block-start: var(--s-6); }
.trust-row { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-6); margin: var(--s-6) 0 0; padding: 0; list-style: none; font-size: var(--t-s); font-weight: 500; color: var(--ink-2); }
.trust-row li { display: inline-flex; align-items: center; gap: 8px; }
.trust-row li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.hero__lead { grid-column: 1 / span 7; max-width: var(--measure-lead); margin-block-start: var(--s-5); font-size: var(--t-lead); line-height: 1.5; font-weight: 400; letter-spacing: 0; color: var(--ink-2); text-wrap: pretty; }
@media (max-width: 63.99rem) { .hero__lead { grid-column: 1 / -1; } }
.home-figure { position: relative; margin: 0; overflow: hidden; border-radius: var(--radius); }
.home-figure img { width: 100%; aspect-ratio: 2.35 / 1; object-fit: cover; }
.home-figure figcaption { position: absolute; left: var(--s-4); bottom: var(--s-4); padding: 6px 14px; border-radius: 999px; background: rgb(255 255 255 / 0.9); font-size: var(--t-s); }
@media (max-width: 47.99rem) { .home-figure img { aspect-ratio: 16 / 10; } }
.ports-line { grid-column: 3 / span 9; font-size: var(--t-l); line-height: 1.35; font-weight: 500; letter-spacing: var(--track-head); color: var(--grey); text-wrap: pretty; }
.ports-line b { font-weight: 500; color: var(--ink); }
@media (max-width: 63.99rem) { .ports-line { grid-column: 1 / -1; } }

/* Home hero slideshow (slideshow_controller.js) */
.slideshow { position: relative; overflow: hidden; aspect-ratio: 16 / 7; border-radius: var(--radius); background: var(--field); }
.slideshow__slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 900ms var(--ease); }
.slideshow__slide.is-active { opacity: 1; }
.slideshow__dots { position: absolute; left: 50%; bottom: 16px; translate: -50% 0; display: flex; gap: 6px; padding: 6px 10px; border-radius: 999px; background: rgb(17 17 17 / 0.35); backdrop-filter: blur(6px); }
.slideshow__dot { position: relative; width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: rgb(255 255 255 / 0.55); transition: width var(--dur) var(--ease), background-color var(--dur) var(--ease); }
.slideshow__dot::after { content: ""; position: absolute; inset: -10px -4px; }
.slideshow__dot.is-active { width: 22px; border-radius: 4px; background: #fff; }
.slideshow__dot:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (max-width: 47.99rem) { .slideshow { aspect-ratio: 4 / 3; } }

/* ---------- 4. Bands: brand (stats) and dark (why us) ---------------------- */
/* A band is a full-bleed colour field; the .row inside drops its hairline and
   uses --band-y. The row after a band drops its hairline too. */
.glance-band { background: var(--accent); color: var(--on-accent); }
.glance-band .row, .glance-band + .row, .cta-band + * { border-top: 0; }
.glance-band .row { padding-block: var(--band-y); }
.glance-band .row__label, .glance-band .row__label .muted { color: #fff; }
.glance-band .row__label::before { background: currentColor; }
.glance-band .stats-line { color: rgb(255 255 255 / 0.78); }
.glance-band .stats-line b, .glance-band .stats-line__end { color: #fff; }
.row + .glance-band, .glance-band + .glance-band { margin-block-start: 0; }

.glance-band--stats > .wrap > .facts { grid-column: auto; padding-block: var(--band-y); }
.glance-band--stats > .wrap > .facts.company-figures { grid-column: 3 / -1; padding-block: 0; }
.glance-band--stats .facts li { border-color: rgb(255 255 255 / 0.32); }
.glance-band--stats .facts b { font-size: var(--t-hero); line-height: 1; letter-spacing: var(--track-hero); color: #fff; }
.glance-band--stats .facts b::after { background: rgb(255 255 255 / 0.7); }
.glance-band--stats .facts span { color: rgb(255 255 255 / 0.9); }
@media (max-width: 63.99rem) { .glance-band--stats > .wrap > .facts.company-figures { grid-column: 1 / -1; } }

.glance-band--dark { background: var(--coal); color: #fff; }
.glance-band--dark .row__label { color: var(--accent-lite); }
.glance-band--dark .row__label::before { background: var(--accent-lite); }
.glance-band--dark .row__head, .glance-band--dark h3 { color: #fff; }
.glance-band--dark .muted, .glance-band--dark .facts span, .glance-band--dark .row__text { color: rgb(255 255 255 / 0.68); }
.glance-band--dark .facts li { border-color: rgb(255 255 255 / 0.16); }
.glance-band--dark .facts__num { color: var(--accent-lite); }

/* ---------- 5. CTA band (shared/_cta) -------------------------------------- */
/* label · headline t-xl ≤ 20ch + lead paragraph + buttons · points (cols 10–12) */
.cta-band { background: var(--accent); color: var(--on-accent); }
.cta-band .row { border-top: 0; padding-block: var(--band-y); }
.cta-band .row__label, .cta-band .row__label .muted { color: #fff; }
.cta-band .row__label::before { background: #fff; }
.cta-band__title, .cta-band .row__big { max-width: 22ch; font-size: var(--t-xl); line-height: var(--lh-xl); font-weight: 500; letter-spacing: var(--track-xl); color: #fff; text-wrap: balance; }
.cta-band__lead, .cta-band .row__big .grey { display: block; max-width: 34rem; margin-block-start: var(--s-4); font-size: var(--t-lead); line-height: 1.5; font-weight: 400; letter-spacing: 0; color: rgb(255 255 255 / 0.92); text-wrap: pretty; }
.cta-band__actions { margin-block-start: var(--s-6); }
.cta-band__hours { margin-block-start: var(--s-3); font-size: var(--t-s); color: rgb(255 255 255 / 0.85); }
.cta-band .btn--accent { background: #fff; color: var(--accent-ink); }
.cta-band .btn--accent:hover { background: var(--ink); color: #fff; }
.cta-band .btn:not(.btn--accent) { background: transparent; color: #fff; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.6); }
.cta-band .btn:not(.btn--accent):hover { background: rgb(255 255 255 / 0.12); box-shadow: inset 0 0 0 1px #fff; }
.cta-band .btn:focus-visible { outline-color: #fff; }
.cta-band .row__side { align-self: start; }
.cta-band .points { border-color: rgb(255 255 255 / 0.3); }
.cta-band .points li { border-color: rgb(255 255 255 / 0.3); color: rgb(255 255 255 / 0.9); }
.cta-band .points li span { color: #fff; font-weight: 500; }

/* ---------- 6. Footer ------------------------------------------------------ */
.cta-band + .site-footer { border-top: 0; }
.footer-contact { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-3) var(--s-6); margin-block-start: var(--s-7); padding-block: var(--s-4); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.footer-contact__note { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; }
.footer-contact__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.footer-contact__links { display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-6); margin: 0; padding: 0; list-style: none; }
.footer-contact__links a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 500; transition: color 200ms var(--ease); }
.footer-contact__links a:hover { color: var(--accent-ink); }
.footer-contact__links .icon { width: 17px; height: 17px; color: var(--accent); }
.footer-contact + .footer-cols { margin-block-start: var(--s-7); }
@media (max-width: 47.99rem) { .footer-contact__links { flex-direction: column; gap: 0; } }
/* Columns: About (wider) + three link columns */
@media (min-width: 64rem) {
  .footer-cols { grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); column-gap: clamp(32px, 4vw, 64px); }
  .footer-col { grid-column: auto; }
}
.footer-about { max-width: 30em; font-size: var(--t-s); line-height: 1.6; color: var(--grey-text); }
.footer-codes { display: flex; flex-wrap: wrap; gap: 6px; margin-block-start: var(--s-4); font-size: var(--t-xs); font-weight: 500; letter-spacing: 0.02em; color: var(--ink-2); }
.footer-codes span { padding: 3px 8px; border-radius: 4px; box-shadow: inset 0 0 0 1px var(--rule-strong); }
.footer-col li a { overflow-wrap: anywhere; }
.social { display: flex; flex-wrap: wrap; gap: var(--s-2); margin: var(--s-3) 0 0; padding: 0; list-style: none; }
.social__link { display: grid; place-items: center; width: 44px; height: 44px; color: #8a8a8a; background: none; transition: color 200ms var(--ease), transform 200ms var(--ease); }
.social__icon { width: 22px; height: 22px; }
.social li:first-child .social__link { margin-inline-start: -11px; } /* icon edge lines up with the heading */
.social__link:hover, .social__link:focus-visible { transform: translateY(-2px); }
.social__link--linkedin:hover, .social__link--linkedin:focus-visible { color: #0a66c2; }
.social__link--facebook:hover, .social__link--facebook:focus-visible { color: #0866ff; }
.social__link--instagram:hover, .social__link--instagram:focus-visible { color: #e1306c; }
.social__link--x:hover, .social__link--x:focus-visible { color: #000; }
@media (max-width: 47.99rem) {
  .footer-col li a { overflow-wrap: normal; word-break: normal; }
  .footer-cols > .footer-col:first-child, .footer-col:has(.social) { grid-column: 1 / -1; }
}

/* Class approval logos above the footer, spread across the page */
.approvals-strip { border-bottom: 1px solid var(--rule); background: #fff; }
.approvals-strip .approvals-strip__logos { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); justify-items: center; align-items: center; gap: var(--s-5) var(--s-6); margin: 0; padding: var(--s-8) 0 var(--s-7); list-style: none; }
.approvals-strip__logos li { display: grid; place-items: center; min-width: 0; }
.approvals-strip__logos img { max-height: 56px; width: auto; max-width: 100%; object-fit: contain; }
.approvals-strip__logos img[alt="Bureau Veritas"], .approvals-strip__logos img[alt="ABS Service Supplier"] { max-height: 76px; }
@media (min-width: 75rem) { .approvals-strip .approvals-strip__logos { grid-template-columns: repeat(9, minmax(0, 1fr)); } }
@media (max-width: 63.99rem) { .approvals-strip .approvals-strip__logos { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: var(--s-6); } }

/* ---------- 7. Cards & tiles ----------------------------------------------- */
/* A card: media · tag + date row · title (t-m, ≤ 3 lines) · text (≤ 3 lines) ·
   "Read article →" pinned to the bottom so a row of cards lines up. */
.tiles { grid-column: 3 / -1; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); gap: var(--stack-gap) var(--col-gap); }
.tiles--wide { grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); }
.tiles--three { grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); }
.tiles--four { grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr)); }
@media (min-width: 64rem) {
  .tiles--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tiles--four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.row__full.tiles, .tiles.row__full { grid-column: 1 / -1; }
.tile { position: relative; display: flex; flex-direction: column; min-width: 0; }
.tile__media { overflow: hidden; margin-block-end: var(--s-4); border-radius: var(--radius); background: var(--field); }
.tile__media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 900ms var(--ease); }
.tile--contain .tile__media img { aspect-ratio: 4 / 3; object-fit: contain; padding: 8%; background: #fff; }
.tile__media--empty { display: grid; place-items: center; aspect-ratio: 4 / 3; color: var(--grey); font-size: var(--t-xl); font-weight: 500; }
.tile:hover .tile__media img { transform: scale(1.03); }
.tile__meta { margin-block-end: 10px; font-size: var(--t-s); line-height: var(--lh-s); color: var(--grey-text); }
.tile__title { font-size: var(--t-m); line-height: var(--lh-m); font-weight: 500; letter-spacing: var(--track-head); text-wrap: balance; }
.tile__title a { transition: color 200ms var(--ease); }
.tile__title a::after { content: ""; position: absolute; inset: 0; }
.tile:hover .tile__title a { color: var(--accent-ink); }
.tile__text { margin-block-start: var(--s-2); font-size: 0.9375rem; line-height: 1.55; color: var(--grey-text); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 63.99rem) { .tiles { grid-column: 1 / -1; } }
@media (max-width: 47.99rem) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-6) var(--s-3); }
  .tiles .tile__title { font-size: var(--t-body); }
  .tiles.tiles--three { grid-template-columns: 1fr; gap: var(--s-7); }
  .tiles.tiles--three .tile__title { font-size: var(--t-m); }
}

.tile.card { border-top: 0; padding-block: 0; } /* not the workspace .card panel */
.card .tile__media { position: relative; }
.card .tile__media img { aspect-ratio: 16 / 10; }
.card--product .tile__media img, .card.tile--contain .tile__media img { aspect-ratio: 1; }
.card__fallback { position: absolute; left: 14px; bottom: 12px; font-size: var(--t-xs); font-weight: 500; letter-spacing: var(--track-caps); text-transform: uppercase; color: #fff; text-shadow: 0 1px 4px rgb(0 0 0 / 0.5); }
.card .tile__title { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card .tile__meta { display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); min-height: 24px; }
.card .tile__meta .muted { font-variant-numeric: tabular-nums; white-space: nowrap; }
.card__tag { display: inline-block; max-width: 70%; overflow: hidden; padding: 4px 9px; border-radius: 4px; background: var(--accent-soft); color: var(--accent-ink); font-size: 0.6875rem; line-height: 1.2; font-weight: 500; letter-spacing: var(--track-caps); text-transform: uppercase; text-overflow: ellipsis; white-space: nowrap; }
.card__more { display: inline-flex; align-items: center; gap: 6px; margin-block-start: auto; padding-block-start: var(--s-4); font-size: var(--t-s); font-weight: 500; color: var(--ink); transition: color 200ms var(--ease); }
.card:hover .card__more { color: var(--accent-ink); }
.card:hover .card__more .arrow { transform: translateX(3px); }
.card__placeholder { display: flex; align-items: flex-end; aspect-ratio: 16 / 10; padding: var(--s-5); background: var(--accent-soft); }
.card__placeholder span { font-size: var(--t-s); font-weight: 500; color: var(--accent-ink); }
.tiles--products .tile__meta { display: none; }
@media (max-width: 47.99rem) { .tiles--products, .tiles.tiles--four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Journal rows and hubs keep 16:9 thumbnails (lead images are posters with titles baked in) */
.story__media img, .hub__media img { aspect-ratio: 16 / 9; }

/* ---------- 8. Pillars (numbered service cards) and the link grid ---------- */
.pillars { grid-column: 3 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--col-gap); margin: 0; padding: 0; list-style: none; }
.pillar { position: relative; display: flex; flex-direction: column; gap: var(--s-3); min-height: 16rem; padding: clamp(24px, 2.2vw, 32px); border-radius: var(--radius); background: var(--field); transition: background-color var(--dur) var(--ease); }
.pillar:hover { background: var(--accent-soft); }
.pillar__num { margin-block-end: var(--s-4); font-size: var(--t-s); font-weight: 500; color: var(--accent-ink); font-variant-numeric: tabular-nums; }
.pillar__title { font-size: var(--t-m); line-height: var(--lh-m); }
.pillar__title a::after { content: ""; position: absolute; inset: 0; }
.pillar:hover .pillar__title a { color: var(--accent-ink); }
.pillar__text { font-size: 0.9375rem; line-height: 1.55; color: var(--ink-2); }
.pillar__more { margin-block-start: auto; padding-block-start: var(--s-3); color: var(--accent); }
.pillar__more .arrow { width: 16px; height: 16px; }
.pillar:hover .pillar__more .arrow { transform: translateX(4px); }
@media (max-width: 63.99rem) { .pillars { grid-column: 1 / -1; grid-template-columns: 1fr; } .pillar { min-height: 0; } }

/* Link grid: hairline rows in three columns */
.link-grid { grid-column: 3 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--col-gap); margin: 0; padding: 0; list-style: none; border-bottom: 1px solid var(--rule); }
.link-grid a { display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); min-height: 56px; padding-block: 14px; border-top: 1px solid var(--rule); font-weight: 500; line-height: 1.3; transition: color 200ms var(--ease); }
.link-grid a:hover { color: var(--accent-ink); }
.link-grid .arrow { flex: none; color: var(--grey); transition: transform var(--dur) var(--ease), color 200ms var(--ease); }
.link-grid a:hover .arrow { color: var(--accent); transform: translateX(3px); }
.pillars--flush, .link-grid--flush { margin-block-start: 0; }
@media (max-width: 63.99rem) { .link-grid { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 47.99rem) { .link-grid { grid-template-columns: 1fr; } }

/* ---------- 9. Facts & stats ----------------------------------------------- */
/* .facts: a hairline grid of code/number + label (accreditations, figures).
   4 across on desktop (2 below 1024px). Modifiers: --three, --four, --text
   (numbered title + text), --two. Inside .glance-band--stats the numbers go t-hero. */
.facts { grid-column: 3 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-7) var(--col-gap); margin: 0; padding: 0; list-style: none; }
.facts--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.facts--four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.facts li { padding-block-start: var(--s-4); border-top: 1px solid var(--rule); }
.facts b { display: block; font-size: var(--t-l); line-height: 1.1; font-weight: 500; letter-spacing: var(--track-head); color: var(--ink); font-variant-numeric: tabular-nums; }
.facts b::after { content: ""; display: block; width: 20px; height: 2px; margin-block: 14px 10px; background: var(--accent); }
.facts span { display: block; color: var(--ink-2); }
.facts small { display: block; margin-block-start: 2px; font-size: var(--t-s); line-height: var(--lh-s); color: var(--grey-text); }
.facts span br { display: none; }
.facts__num { display: block; margin-block-end: var(--s-4); font-size: var(--t-s); font-weight: 500; color: var(--accent-ink); font-variant-numeric: tabular-nums; }
.facts--text h3 { margin-block-end: var(--s-2); }
.facts--text h3 a:hover { color: var(--accent-ink); }
.facts--text span:not(.facts__num) { font-size: 0.9375rem; line-height: 1.55; }
.facts--admin { grid-column: auto; }
.facts--spaced { margin-block-start: var(--head-gap); }
@media (max-width: 63.99rem) { .facts, .facts--three, .facts--four { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-6) var(--col-gap); } }
@media (max-width: 47.99rem) { .facts.facts--text { grid-template-columns: 1fr; } }

/* ---------- 10. Logo walls & client grid ---------------------------------- */
.logo-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 9rem), 1fr)); gap: var(--col-gap); margin: 0; padding: 0; list-style: none; }
.logo-wall li { display: grid; place-items: center; aspect-ratio: 3 / 2; padding: var(--s-4); border-radius: var(--radius); background: #fff; box-shadow: inset 0 0 0 1px var(--rule); transition: box-shadow 200ms var(--ease); }
.logo-wall li:hover { box-shadow: inset 0 0 0 1px var(--rule-strong); }
.logo-wall a { display: grid; place-items: center; width: 100%; height: 100%; }
.logo-wall img { max-height: 56px; width: auto; object-fit: contain; filter: grayscale(1); opacity: 0.8; transition: filter var(--dur) var(--ease), opacity var(--dur) var(--ease); }
.logo-wall li:hover img { filter: none; opacity: 1; }
.logo-wall + .row__more { margin-block-start: var(--s-5); }
@media (min-width: 64rem) { .logo-wall { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (max-width: 47.99rem) { .logo-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.client-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 13rem), 1fr)); gap: var(--col-gap); padding: 0; list-style: none; }
.client { position: relative; display: grid; place-items: center; gap: var(--s-3); min-height: 160px; padding: var(--s-5); border-radius: var(--radius); background: #fff; box-shadow: inset 0 0 0 1px var(--rule); text-align: center; transition: box-shadow 200ms var(--ease); }
.client:hover { box-shadow: inset 0 0 0 1px var(--rule-strong); }
.client img { max-height: 52px; width: auto; object-fit: contain; filter: grayscale(1); opacity: 0.8; transition: filter var(--dur) var(--ease), opacity var(--dur) var(--ease); }
.client:hover img { filter: none; opacity: 1; }
.client__name { font-size: var(--t-m); font-weight: 500; }
.client__label { font-size: var(--t-s); color: var(--grey-text); }
.client__label::after { content: ""; position: absolute; inset: 0; }

/* ---------- 11. Service hubs, link columns, letter groups, gallery --------- */
.hubs { grid-column: 3 / -1; }
.hub { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); column-gap: var(--col-gap); row-gap: var(--s-4); padding-block: var(--s-6); border-top: 1px solid var(--rule); }
.hub:last-child { border-bottom: 1px solid var(--rule); }
.hub__head { grid-column: 1 / span 4; }
.hub__title { font-size: var(--t-l); line-height: var(--lh-head); font-weight: 500; letter-spacing: var(--track-head); }
.hub__title a:hover { color: var(--accent-ink); }
.hub__text { margin-block-start: var(--s-3); max-width: 30em; color: var(--ink-2); }
.hub__children { grid-column: 5 / span 4; columns: 2; column-gap: var(--col-gap); font-size: var(--t-s); }
.hub__children li { break-inside: avoid; padding-block: 3px; }
.hub__children a { color: var(--grey-text); }
.hub__children a:hover { color: var(--ink); }
.hub__media { grid-column: 9 / -1; }
.hub__media img { width: 100%; object-fit: cover; border-radius: var(--radius); }
@media (max-width: 79.99rem) and (min-width: 64rem) {
  .hub__head { grid-column: 1 / span 6; }
  .hub__children { grid-column: 1 / span 6; grid-row: 2; }
  .hub__media { grid-column: 7 / -1; grid-row: 1 / span 2; }
}
@media (max-width: 63.99rem) {
  .hubs { grid-column: 1 / -1; }
  .hub { grid-template-columns: 1fr; }
  .hub__head, .hub__children, .hub__media { grid-column: 1; }
  .hub__media { order: -1; }
  .hub__children { columns: 1; }
}

.link-columns { grid-column: 3 / -1; columns: 4 12rem; column-gap: var(--col-gap); }
.link-columns li { break-inside: avoid; }
.link-columns a { display: flex; align-items: center; min-height: 44px; border-bottom: 1px solid var(--rule); transition: color 200ms var(--ease); }
.link-columns a:hover { color: var(--accent-ink); }
.link-columns__letter { display: block; padding-block: var(--s-4) var(--s-1); font-size: var(--t-s); color: var(--accent-ink); break-after: avoid; }
@media (max-width: 63.99rem) { .link-columns { grid-column: 1 / -1; } }

.letter-groups { grid-column: 3 / -1; columns: 4 12rem; column-gap: var(--col-gap); }
.letter-group { break-inside: avoid; margin-block-end: var(--s-4); }
.letter-group ul { margin: 0; padding: 0; list-style: none; }
.letter-group a { display: block; padding-block: 5px; transition: color 200ms var(--ease); }
.letter-group a:hover { color: var(--accent-ink); }
@media (max-width: 63.99rem) { .letter-groups { grid-column: 1 / -1; columns: 2; } }

.gallery { grid-column: 3 / -1; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); gap: var(--col-gap); }
.gallery a { display: block; overflow: hidden; border-radius: var(--radius); background: var(--field); }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 900ms var(--ease); }
.gallery a:hover img { transform: scale(1.03); }
@media (max-width: 63.99rem) { .gallery { grid-column: 1 / -1; } }

/* ---------- 12. Pager & topic line ----------------------------------------- */
.pager { display: flex; justify-content: space-between; align-items: center; gap: var(--s-4); margin-block-start: var(--s-8); padding-block-start: var(--s-5); border-top: 1px solid var(--rule); }
.topic-line .words { font-size: var(--t-s); }
.topic-line .words a { min-height: 36px; padding: 6px 14px; }
.topic-line a[aria-current="page"] { color: var(--paper); }

/* ---------- 13. Content-page extras (entries/show, company, careers) ------- */
.row__main--spaced + .row__more { margin-block-start: 0; }
.entry-aside__cta { display: grid; gap: var(--s-3); margin-block-start: var(--s-6); padding: var(--s-5); border-radius: var(--radius); background: var(--field); }
.entry-aside__cta p { color: var(--ink-2); font-size: var(--t-s); }
.entry-aside__cta .btn { width: 100%; }
.entry-topics { display: flex; flex-wrap: wrap; gap: 4px var(--s-4); margin-block-start: var(--s-7); padding-block-start: var(--s-4); border-top: 1px solid var(--rule); font-size: var(--t-s); color: var(--grey-text); }
.entry-topics a { color: var(--ink); }
.entry-topics a:hover { color: var(--accent-ink); }
.article-byline a:hover { color: var(--accent-ink); }
.article-head__date { grid-column: 3 / span 9; }
@media (max-width: 63.99rem) { .article-head__date { grid-column: 1 / -1; } }

/* Lead image: natural proportions (graphics with text must not be cropped) */
.entry-hero { margin: 0; }
.entry-hero img { display: block; width: 100%; height: auto; max-height: 520px; object-fit: cover; border-radius: var(--radius); }
.entry-hero--inline { margin-block-end: var(--s-5); }
.entry-hero--inline img { width: auto; max-width: 100%; max-height: 34rem; }
.entry-hero--product { display: grid; place-items: center; padding: var(--s-7); border-radius: var(--radius); background: var(--field); }
.entry-hero--product img { width: auto; max-height: 420px; object-fit: contain; background: none; }

/* Mobile: a sticky "Get a quote" bar on content pages */
.quote-bar { display: none; }
@media (max-width: 63.99rem) {
  .quote-bar { position: sticky; bottom: 0; z-index: 30; display: flex; gap: var(--s-2); padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: rgb(255 255 255 / 0.96); box-shadow: 0 -1px 0 var(--rule), 0 -8px 24px rgb(17 17 17 / 0.06); backdrop-filter: blur(8px); }
  .quote-bar .btn { flex: 1; min-height: 46px; }
}

.company-text p + p { margin-block-start: 1em; }
.company-text strong { font-weight: 500; }
.company-side__label { margin-block-end: var(--s-3); font-size: var(--t-s); font-weight: 500; color: var(--ink); }
.points li b { font-weight: 500; }

/* Careers: job list */
.jobs { display: grid; gap: var(--s-3); margin: 0; padding: 0; list-style: none; }
.job { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: var(--s-3) var(--s-6); padding: var(--s-5); border-radius: var(--radius-l); background: var(--field); transition: background-color 200ms var(--ease); }
.job:hover { background: var(--accent-soft); }
.job__title { font-size: var(--t-m); line-height: var(--lh-m); }
.job__title a::after { content: ""; position: absolute; inset: 0; }
.job__summary { margin-block-start: 4px; color: var(--grey-text); }
.job__meta { font-size: var(--t-s); color: var(--grey-text); white-space: nowrap; }
.job__cta { display: inline-flex; align-items: center; gap: 6px; color: var(--accent-ink); font-weight: 500; white-space: nowrap; }
@media (max-width: 47.99rem) { .job { grid-template-columns: 1fr; } .job__meta { white-space: normal; } }

/* About page */
.about-hero { margin: 0; }
.about-hero img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; border-radius: var(--radius); }
@media (max-width: 47.99rem) { .about-hero img { aspect-ratio: 4 / 3; } }
.about-text { margin-block-start: var(--s-5); max-width: 38em; color: var(--ink-2); }
.about-text p + p { margin-block-start: 1em; }
.about-numbers { grid-column: 3 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-6) var(--col-gap); margin: 0; padding: 0; list-style: none; }
.about-numbers b { display: block; font-size: var(--t-hero); line-height: 1; font-weight: 500; letter-spacing: var(--track-hero); color: #fff; font-variant-numeric: tabular-nums; }
.about-numbers span { display: block; margin-block-start: var(--s-2); color: rgb(255 255 255 / 0.85); }
.about-why { display: grid; gap: var(--s-5); margin: var(--s-6) 0 0; padding: 0; list-style: none; }
.about-why li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s-4); }
.about-why__n { font-size: var(--t-s); font-weight: 500; color: var(--accent-ink); font-variant-numeric: tabular-nums; padding-top: 0.3em; }
.about-why p { margin-block-start: var(--s-2); max-width: 36em; color: var(--ink-2); }
.about-photos { display: grid; gap: var(--col-gap); align-content: start; }
.about-photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.about-ports { columns: 3 14rem; column-gap: var(--col-gap); margin: 0; padding: 0; list-style: none; }
.about-ports li { break-inside: avoid; display: flex; align-items: center; gap: 10px; padding-block: 7px; }
.about-ports li::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
@media (max-width: 63.99rem) {
  .about-numbers { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-photos { grid-template-columns: 1fr 1fr; }
}

/* Product sheet (product pages with little or no text) */
.product-sheet { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); row-gap: var(--s-6); align-items: start; padding-block: clamp(24px, 3vw, 48px) var(--row-y); }
.product-sheet__media { grid-column: 1 / span 6; display: grid; place-items: center; aspect-ratio: 1; padding: 8%; border-radius: var(--radius-l); background: var(--field); }
.product-sheet__media img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; mix-blend-mode: multiply; }
.product-sheet__info { grid-column: 8 / -1; display: grid; gap: var(--s-4); align-content: start; padding-top: var(--s-5); }
.product-sheet__title { font-size: var(--t-xl); line-height: var(--lh-xl); letter-spacing: var(--track-xl); }
.product-sheet__lead { font-size: var(--t-lead); line-height: 1.5; color: var(--ink-2); }
.product-sheet__text { max-width: none; font-size: var(--t-body); }
.product-sheet__text.article-prose { grid-column: auto; max-width: none; }
.product-sheet__facts { display: grid; gap: 0; margin: var(--s-3) 0 0; border-top: 1px solid var(--rule); }
.product-sheet__facts > div { display: grid; grid-template-columns: 8rem minmax(0, 1fr); gap: var(--s-4); padding-block: 10px; border-bottom: 1px solid var(--rule); }
.product-sheet__facts dt { color: var(--grey-text); font-size: var(--t-s); padding-top: 2px; }
.product-sheet__facts a:hover { color: var(--accent-ink); }
.product-sheet__actions { margin-block-start: var(--s-3); }
@media (max-width: 63.99rem) {
  .product-sheet__media, .product-sheet__info { grid-column: 1 / -1; }
  .product-sheet__info { padding-top: 0; }
}

/* ---------- 14. Article bodies: migrated WordPress / page-builder HTML ----- */
.article-prose { overflow-wrap: anywhere; }
.article-prose > :first-child { margin-block-start: 0; }
.article-prose h3 { margin-block-start: 1.6em; font-size: var(--t-m); line-height: var(--lh-m); }
.article-prose h4 { margin-block-start: 1.4em; font-size: var(--t-m); line-height: var(--lh-m); font-weight: 500; }
.article-prose h5, .article-prose h6 { margin-block-start: 1.4em; font-size: var(--t-s); font-weight: 500; letter-spacing: var(--track-body); color: var(--accent-ink); }
.article-prose h3 + *, .article-prose h4 + * { margin-block-start: 0.5em; }
.article-prose h5 + h2, .article-prose h6 + h2 { margin-block-start: 0.3em; }
.article-prose img { width: auto; max-width: 100%; height: auto; max-height: 30rem; object-fit: contain; border-radius: var(--radius); background: var(--field); }
.article-prose a:not([class]) { text-decoration: underline; text-decoration-thickness: 1px; text-decoration-color: var(--accent); text-underline-offset: 4px; }
.article-prose a:not([class]):hover { color: var(--accent-ink); }
.article-prose ul, .article-prose ol { padding-inline-start: 1.2em; }
.article-prose li + li { margin-block-start: 0.35em; }
.article-prose li::marker { color: var(--accent); }
.article-prose blockquote { padding-inline-start: 1em; border-inline-start: 2px solid var(--accent); }
.article-prose .table-scroll { overflow-x: auto; border-radius: var(--radius); }
.article-prose table { width: 100%; font-size: var(--t-s); line-height: var(--lh-s); font-variant-numeric: tabular-nums; }
.article-prose th, .article-prose td { padding: 10px 12px; border-bottom: 1px solid var(--rule); text-align: start; vertical-align: top; }
.article-prose th { font-weight: 500; }
.article-prose thead th { background: var(--field); border-bottom-color: var(--rule-strong); }
.article-prose .embed { position: relative; aspect-ratio: 16 / 9; }
.article-prose .embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: var(--radius); }
.article-prose iframe { max-width: 100%; border: 0; }
.article-prose > p:first-child:has(img) { font-size: inherit; }
.article-prose pre, .article-prose code { white-space: pre-wrap; overflow-wrap: anywhere; }
.article-prose a.btn { text-decoration: none; white-space: normal; text-align: center; }
.article-prose .prose-cta-row { margin-block: 2em; }
/* Lead paragraph style also after an inline lead image */
.article-prose > .entry-hero--inline + p { font-size: var(--t-lead); line-height: 1.5; letter-spacing: 0; }

/* Galleries: runs of images in one paragraph */
.article-prose p:has(> img + img), .article-prose p:has(> a > img + br), .article-prose p:has(> a + a > img) { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 12rem), 1fr)); gap: var(--s-3); }
.article-prose p:has(> img + img) img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
/* Runs of consecutive images grouped by EntriesHelper#group_image_runs */
.article-prose .img-run { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 12rem), 1fr)); gap: var(--s-3); }
.article-prose .img-run img { width: 100%; max-height: none; aspect-ratio: 4 / 3; object-fit: contain; padding: 6%; background: #fff; border-radius: var(--radius); box-shadow: inset 0 0 0 1px var(--rule); }
.article-prose .img-run--logos { grid-template-columns: repeat(auto-fill, minmax(7rem, 1fr)); gap: var(--s-3); }
.article-prose .img-run--logos img { aspect-ratio: 3 / 2; padding: 12%; }
@media (max-width: 40rem) { .article-prose .img-run:not(.img-run--logos) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Image + short label runs (e.g. hose types) grouped by EntriesHelper#group_image_runs */
.article-prose .img-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 11rem), 1fr)); gap: var(--s-5) var(--s-4); margin-block: 1.5em; }
.article-prose .img-cards--products { grid-template-columns: repeat(auto-fill, minmax(min(100%, 13rem), 1fr)); }
.article-prose .img-card { display: grid; align-content: start; gap: var(--s-2); margin: 0; }
.article-prose .img-card img { width: 100%; height: auto; max-height: none; aspect-ratio: 4 / 3; object-fit: contain; padding: 8%; background: #fff; border-radius: var(--radius); box-shadow: inset 0 0 0 1px var(--rule); }
.article-prose .img-card :is(h2, h3, h4, h5, h6) { margin: 0; font-size: var(--t-body); line-height: 1.3; font-weight: 500; letter-spacing: var(--track-body); color: var(--ink); }
.article-prose .img-card .img-card__eyebrow { margin: 0; font-size: var(--t-s); color: var(--accent-ink); }
.article-prose .img-card p { margin: 0; font-size: var(--t-s); }
.article-prose .img-card p.actions a { min-height: 34px; padding: 0 12px; font-size: 13px; }
@media (max-width: 40rem) { .article-prose .img-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* WordPress/Elementor card lists (ul > li > img + heading) become a card grid */
.article-prose ul:has(> li > img) { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 11rem), 1fr)); gap: var(--s-6) var(--col-gap); padding: 0; list-style: none; }
.article-prose ul:has(> li > img) > li { position: relative; margin: 0; }
.article-prose ul:has(> li > img) > li::marker { content: none; }
.article-prose ul:has(> li > img) img { width: 100%; aspect-ratio: 7 / 4; object-fit: cover; }
.article-prose ul:has(> li > img) :is(h2, h3, h4) { margin-block-start: var(--s-3); font-size: var(--t-body); line-height: 1.3; }
.article-prose ul:has(> li > img) a::after { content: ""; position: absolute; inset: 0; }
.article-prose ul:has(> li > img) a { text-decoration: none; }
.article-prose ul:has(> li > img) li:hover a { color: var(--accent-ink); }
@media (max-width: 40rem) { .article-prose ul:has(> li > img) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Image + text service blocks as cards (ProseEnhancer .svc-grid) */
.article-prose .svc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); gap: var(--col-gap); margin-block: 2em; }
.article-prose .svc-card { display: flex; flex-direction: column; gap: var(--s-2); padding-block-end: var(--s-5); overflow: hidden; border-radius: var(--radius); background: #fff; box-shadow: inset 0 0 0 1px var(--rule-strong); font-size: var(--t-s); line-height: 1.55; }
.article-prose .svc-card > figure { display: flex; align-items: center; justify-content: center; height: 180px; flex: 0 0 180px; margin: 0 0 var(--s-2); padding: var(--s-3); background: #fff; border-bottom: 1px solid var(--rule); }
.article-prose .svc-card > figure > a { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.article-prose .svc-card > figure img { width: 100%; height: 100%; max-height: none; object-fit: contain; border-radius: 0; background: none; }
.article-prose .svc-grid--photo .svc-card > figure { padding: 0; }
.article-prose .svc-grid--photo .svc-card > figure img { object-fit: cover; }
.article-prose .svc-card > figure figcaption { display: none; }
.article-prose .svc-card > :not(figure) { margin: 0; padding-inline: var(--s-4); }
.article-prose .svc-card :is(h3, h4, h5) { margin-block-start: var(--s-2); font-size: var(--t-body); line-height: 1.3; }
.article-prose .svc-card ul, .article-prose .svc-card ol { padding-inline-start: calc(var(--s-4) + 1.1em); }
.article-prose .svc-card > p:last-child { margin-block-start: auto; padding-block-start: var(--s-2); }
@media (max-width: 40rem) { .article-prose .svc-card > figure { height: 160px; flex-basis: 160px; } }
/* Lists of pictured items ("Products We Support") as a card grid */
.article-prose ul.product-grid, .article-prose ol.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 12rem), 1fr)); gap: var(--s-4); margin-block: 2em; padding: 0; list-style: none; }
.article-prose .product-grid > li { position: relative; display: flex; flex-direction: column; gap: var(--s-2); margin: 0; padding-block-end: var(--s-4); overflow: hidden; border-radius: var(--radius); background: #fff; box-shadow: inset 0 0 0 1px var(--rule-strong); text-align: center; font-size: var(--t-s); line-height: 1.35; }
.article-prose .product-grid > li::marker { content: none; }
.article-prose .product-grid figure { display: flex; align-items: center; justify-content: center; height: 160px; flex: 0 0 160px; margin: 0; padding: var(--s-3); background: #fff; }
.article-prose .product-grid figure a { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.article-prose .product-grid img { width: 100%; height: 100%; max-height: none; aspect-ratio: auto; object-fit: contain; border-radius: 0; background: none; }
.article-prose .product-grid > li > :not(figure) { margin: 0; padding-inline: var(--s-3); font-size: var(--t-s); font-weight: 500; }
.article-prose .product-grid a { text-decoration: none; }
.article-prose .product-grid li:hover a { color: var(--accent-ink); }
@media (max-width: 40rem) { .article-prose ul.product-grid, .article-prose ol.product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .article-prose .product-grid figure { height: 130px; flex-basis: 130px; } }
/* Page-builder button runs ("Request a quote", "View products") as a real button row */
.article-prose p.actions { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.article-prose p.actions a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: var(--radius); background: var(--field); color: var(--ink); text-decoration: none; font-weight: 500; font-size: var(--t-s); }
.article-prose p.actions a:first-child { background: var(--accent); color: var(--on-accent); }
.article-prose p.actions a:hover { background: var(--accent-dark); color: var(--on-accent); }
/* Lists of links from the old pages ("Our services include …") */
.article-prose ul.link-list { columns: 2 14rem; column-gap: var(--s-6); padding: 0; list-style: none; }
.article-prose ul.link-list li { break-inside: avoid; padding-block: 4px; }
.article-prose ul.link-list li::before { content: "→ "; color: var(--accent); }
/* Stat rows and section eyebrows rebuilt from page-builder blocks */
.article-prose ul.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr)); gap: var(--s-3); padding: 0; list-style: none; }
.article-prose ul.stats li { margin: 0; padding: var(--s-4); border-radius: var(--radius); background: var(--field); color: var(--grey-text); font-size: var(--t-s); line-height: 1.35; }
.article-prose ul.stats li::marker { content: none; }
.article-prose ul.stats b { display: block; margin-block-end: 4px; font-size: var(--t-l); line-height: 1.1; font-weight: 500; color: var(--accent-ink); }
.article-prose p.eyebrow { margin-block: 2.2em 0; font-size: var(--t-s); font-weight: 500; color: var(--accent-ink); }
.article-prose p.eyebrow + h2, .article-prose p.eyebrow + h3 { margin-block-start: 0.25em; }
/* FAQ accordions carried over from WordPress (<details>): soft panels */
.article-prose details { margin-block: var(--s-2); padding: 12px 16px; border-radius: 10px; background: var(--field); }
.article-prose details[open] { background: color-mix(in srgb, var(--field) 80%, var(--ink) 4%); }
.article-prose summary { cursor: pointer; font-weight: 500; }
.article-prose details[open] summary { margin-block-end: var(--s-2); }
/* The entry's own FAQ list (entries/show .faq-list): hairline accordion */
.faq-list { margin-block-start: 2.5em; }
.faq-list > h2 { margin-block-end: var(--s-4); }
.article-prose .faq details { margin: 0; padding: 0; border-radius: 0; background: none; border-bottom: 1px solid var(--rule); }
.article-prose .faq summary { min-height: 60px; padding-block: 14px; margin: 0; font-size: var(--t-body); font-weight: 500; }
.article-prose .faq details[open] summary { margin: 0; }
.article-prose .faq-item summary { font-weight: 500; cursor: pointer; }

/* ---------- 15. Contact, search -------------------------------------------- */
.contact-lines { border-top: 1px solid var(--rule); }
.contact-lines > div { padding-block: var(--s-4); border-bottom: 1px solid var(--rule); }
.contact-lines dt { font-size: var(--t-s); color: var(--grey-text); }
.contact-lines dd { margin-block-start: 4px; font-size: var(--t-m); line-height: var(--lh-m); font-weight: 500; letter-spacing: var(--track-head); }
.contact-lines dd a:hover { color: var(--accent-ink); }
.contact-lines address { font-style: normal; font-size: var(--t-body); line-height: var(--lh-body); font-weight: 400; letter-spacing: var(--track-body); color: var(--ink-2); }
.contact-lines .contact-lines__alt { margin-block-start: 2px; font-size: var(--t-body); font-weight: 400; color: var(--ink-2); }
.contact-actions { margin-block-start: var(--s-5); }
.map-frame { width: 100%; aspect-ratio: 21 / 8; max-height: 460px; border: 0; border-radius: var(--radius); filter: grayscale(0.3) var(--img-filter); }
@media (max-width: 47.99rem) { .map-frame { aspect-ratio: 4 / 3; } }

.search-form { grid-column: 3 / span 8; display: flex; align-items: flex-end; gap: var(--s-4); border-bottom: 1px solid var(--ink); }
.search-form input { flex: 1; min-width: 0; min-height: 56px; padding: 0 0 8px; border: 0; background: none; outline: none; font-size: var(--t-l); font-weight: 500; letter-spacing: var(--track-head); }
.search-form button { min-height: 56px; padding: 0; border: 0; background: none; display: inline-flex; align-items: center; gap: 8px; }
.results { grid-column: 3 / -1; }
@media (max-width: 63.99rem) { .search-form, .results { grid-column: 1 / -1; } }

/* Forms: required marker, invalid fields underlined red */
.field:has(:required) > .field__label::after { content: " *"; color: var(--accent-ink); }
.input[aria-invalid="true"], .textarea[aria-invalid="true"], .select[aria-invalid="true"] { border-bottom-color: var(--danger); }
.field:has([aria-invalid="true"]) > .field__label { color: var(--danger); }
input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; display: none; }

/* ---------- 16. Admin & misc ------------------------------------------------ */
.code-area { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; line-height: 1.5; min-height: 28rem; }
.admin-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--s-4) var(--s-6); }
.admin-filters .field { min-width: 12rem; }
.admin-preview img { max-width: 240px; border-radius: var(--radius); }
.content-field { padding-block: var(--s-4); border-bottom: 1px solid var(--rule); }
.content-rows { display: grid; gap: var(--s-3); }
.content-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s-4); align-items: start; padding: var(--s-4); border-radius: 10px; background: #f7f7f6; }
.content-row__fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: var(--s-3) var(--s-4); }
.content-row__remove { font-size: var(--t-s); color: var(--grey-text); }
.content-row .form-grid { grid-column: 1; }
.content-image { display: grid; gap: var(--s-2); }
.content-image__preview { max-height: 72px; max-width: 200px; object-fit: contain; background: #fff; border-radius: 6px; padding: 4px; }
.content-subtabs .tabs__list { gap: var(--s-5); }
.content-subtabs .tabs__tab { min-height: 40px; font-size: var(--t-s); }
.content-subtabs__label { color: var(--ink); font-weight: 500; }

/* Spacing helpers (legacy names; prefer the row rhythm) */
.row__main--spaced { margin-block-end: var(--head-gap); }
.journal-list--flush { padding: 0; }
.home-spaced { margin-block-start: var(--s-7); }
