/* ── REACH Monitor — main stylesheet ─────────────────────────────────────
   Design system "laboratory editorial" (refresh, 2026-10).
   Paper + ink, serif display, sans labels, brand red carried by buttons, labels and key bands.
   Legacy class names from the WordPress migration are kept and restyled so
   inner templates keep working; page-specific CSS lives in their templates. */

/* ── Fonts (self-hosted, no third-party requests) ── */

@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 200 900; font-display: swap;
  src: url("../fonts/source-serif-4-latin-wght-normal.197cc326af6d.woff2") format("woff2-variations");
  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; }
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 200 900; font-display: swap;
  src: url("../fonts/source-serif-4-latin-ext-wght-normal.24102cbae868.woff2") format("woff2-variations");
  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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Source Serif 4"; font-style: italic; font-weight: 200 900; font-display: swap;
  src: url("../fonts/source-serif-4-latin-wght-italic.d40e4e4ee088.woff2") format("woff2-variations"); }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/inter-tight-latin-wght-normal.f5af7a761c2b.woff2") format("woff2-variations");
  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; }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/inter-tight-latin-ext-wght-normal.496654ac82a3.woff2") format("woff2-variations");
  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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Palette */
  --paper:        #f4f2ec;
  --paper-2:      #ebe8df;
  --card:         #fbfaf6;
  --ink:          #121417;
  --ink-2:        #2a2e33;
  --muted:        #5d6269;
  --rule:         rgba(18, 20, 23, 0.12);
  --rule-strong:  rgba(18, 20, 23, 0.28);
  --red:          #c60c0c;
  --red-deep:     #9a0909;
  --night:        #0f1215;
  --night-2:      #181c21;
  --on-night:     #ecebe6;
  --on-night-2:   #9ba1a9;
  --rule-night:   rgba(236, 235, 230, 0.14);

  /* Type */
  --f-display: "Source Serif 4", "Iowan Old Style", Georgia, serif;
  --f-sans:    "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Layout */
  --max-width: 1240px;
  --gutter:    clamp(16px, 4vw, 48px);
  --header-h:  76px;
  --ann-h:     0px;
  --radius:    3px;
  --ease:      cubic-bezier(0.22, 1, 0.36, 1);
  --transition: 0.35s var(--ease);

  /* Legacy aliases (inline styles in inner templates still reference these) */
  --rm-red:        var(--red);
  --rm-red-rgb:    198, 12, 12;
  --rm-red-hover:  var(--red);
  --rm-red-dark:   var(--red-deep);
  --gray1:         var(--ink);
  --text:          var(--ink);
  --text-muted:    var(--muted);
  --surface:       var(--card);
  --surface-hover: #ffffff;
  --border:        var(--rule);
  --font:          var(--f-sans);
  --gap:           var(--gutter);
  --ease-out-expo: var(--ease);
  --shadow-card-hover: 0 18px 40px -24px rgba(18, 20, 23, 0.35);
}

/* ── Base ── */

html { -webkit-text-size-adjust: 100%; }
html:not(.lenis) { scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  font-family: var(--f-sans);
  font-size: 1.0625rem;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

::selection { background: var(--red); color: #fff; }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--red); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

img { max-width: 100%; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--f-display);
  font-weight: 420;
  line-height: 1.12;
  letter-spacing: -0.005em;
  color: var(--ink);
  text-wrap: balance;
}

p { color: var(--ink-2); margin-bottom: 1rem; text-wrap: pretty; }

/* The copy carries a lot of <strong> (inside translated strings, so it stays in
   the markup). In running text it reads as quiet emphasis, not bold; legal
   pages keep real bold because there it marks field labels. */
:is(p, li) strong, :is(p, li) b { font-weight: 460; color: var(--ink); }
.page-content.container :is(p, li) :is(strong, b) { font-weight: 650; }

ul, ol { margin-left: 1.25rem; margin-bottom: 1rem; color: var(--ink-2); }
li::marker { color: var(--red); }

table { border-collapse: collapse; width: 100%; color: var(--ink-2); margin-bottom: 1rem; font-size: .95rem; }
th, td { padding: .7rem .9rem; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
th { font-size: .88rem; font-weight: 600; color: var(--ink); border-bottom-color: var(--rule-strong); }

.container {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Shared typographic primitives */
.eyebrow,
.category-label {
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  font-family: var(--f-sans);
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .01em;
  color: var(--red);
  margin-bottom: 1.4rem;
}
.display-caps {
  font-family: var(--f-display);
  font-weight: 380;
  text-transform: uppercase;
  letter-spacing: .015em;
  line-height: 1.04;
}

/* ── Announcement bar (top row of the header; base.html, core.context_processors.toolbox_announcement) ── */

html.has-ann { --ann-h: 40px; }
.ann { display: none; }
.has-ann .ann {
  position: relative; display: flex; align-items: center; justify-content: center;
  height: var(--ann-h); padding: 0 3.25rem; background: #0d0e10; color: rgba(255, 255, 255, .8);
  font-size: .82rem; line-height: 1.35;
}
.ann__text { margin: 0; color: rgba(255, 255, 255, .82); display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .15rem .6rem; text-align: center; }
.ann__tag { font-weight: 600; color: #fff; white-space: nowrap; }
.ann__tag::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: .5rem; border-radius: 50%; background: var(--red); vertical-align: .08em; }
.ann__link { color: #fff; font-weight: 600; white-space: nowrap; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .35); text-underline-offset: 4px; transition: text-decoration-color .2s ease; }
.ann__link:hover { color: #fff; text-decoration-color: var(--red); }
.ann__close {
  position: absolute; right: .9rem; top: 50%; transform: translateY(-50%); width: 28px; height: 28px;
  display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: none;
  color: rgba(255, 255, 255, .6); cursor: pointer; transition: background .2s ease, color .2s ease;
}
.ann__close:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.ann__close:focus-visible, .ann__link:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (max-width: 700px) {
  html.has-ann { --ann-h: 66px; }
  .has-ann .ann { padding: 0 2.75rem 0 1rem; font-size: .78rem; }
  .ann__tag { display: none; }
}

/* ── Header & Nav ── */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 200;
  background: rgba(244, 242, 236, 0.82);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--rule);
  transition: background .4s ease, border-color .4s ease, transform .5s var(--ease);
}
/* Over the home hero the header starts fully transparent */
.is-home .site-header:not(.scrolled) {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom-color: transparent;
}
.site-header.is-hidden { transform: translateY(-100%); }

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  max-width: var(--max-width);
  min-height: var(--header-h);
  margin-inline: auto;
  padding: .55rem var(--gutter);
}

.nav__logo { flex: none; }
.nav__logo img {
  display: block;
  height: 50px;
  width: auto;
  transition: opacity var(--transition);
}
.nav__logo:hover img { opacity: .82; }

/* Hamburger */
.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 42px; height: 42px;
  background: none;
  border: 1px solid var(--rule-strong);
  border-radius: 50%;
  cursor: pointer;
  margin-left: auto;
  align-items: center;
}
.nav__toggle span {
  display: block;
  width: 16px; height: 1.5px;
  background: var(--ink);
  transition: transform var(--transition), opacity var(--transition);
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.nav__links {
  display: flex;
  align-items: center;
  gap: .1rem;
  list-style: none;
  margin: 0 auto;
}

.nav__links > li > a,
.nav__dropdown-toggle {
  position: relative;
  display: flex;
  align-items: center;
  gap: .35rem;
  padding: .55rem .8rem;
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: .9rem;
  font-weight: 500;
  letter-spacing: .005em;
  background: none;
  border: none;
  cursor: pointer;
  transition: color var(--transition);
}
.nav__links > li > a::after,
.nav__dropdown-toggle::after {
  content: "";
  position: absolute;
  left: .8rem; right: .8rem; bottom: .3rem;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .45s var(--ease);
}
.nav__dropdown-toggle::after { right: 1.6rem; }
.nav__links > li > a:hover::after,
.nav__dropdown:hover .nav__dropdown-toggle::after,
.nav__links > li > a.active::after { transform: scaleX(1); transform-origin: left; }
.nav__links > li > a:hover,
.nav__dropdown-toggle:hover,
.nav__dropdown:hover .nav__dropdown-toggle { color: var(--red); }

.nav__dropdown-toggle::before {
  content: "";
  order: 2;
  width: 6px; height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  opacity: .55;
  transition: transform var(--transition);
}
.nav__dropdown:hover .nav__dropdown-toggle::before,
.nav__dropdown--open .nav__dropdown-toggle::before { transform: translateY(1px) rotate(225deg); }

/* Dropdowns */
.nav__dropdown { position: relative; }

.nav__submenu,
.nav__mega {
  position: absolute;
  top: calc(100% + 10px);
  left: .2rem;
  min-width: 240px;
  list-style: none;
  margin: 0;
  padding: .5rem;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 6px;
  box-shadow: 0 30px 60px -30px rgba(18, 20, 23, .35), 0 2px 6px rgba(18, 20, 23, .04);
  z-index: 300;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .25s ease, transform .35s var(--ease), visibility 0s linear .35s;
}
.nav__submenu::before,
.nav__mega::before {
  content: "";
  position: absolute;
  top: -14px; left: 0; right: 0;
  height: 14px;
}
.nav__dropdown:hover .nav__submenu,
.nav__dropdown:focus-within .nav__submenu,
.nav__dropdown:hover .nav__mega,
.nav__dropdown:focus-within .nav__mega {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity .25s ease, transform .35s var(--ease), visibility 0s;
}

.nav__submenu a,
.nav__mega-col a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .55rem .75rem;
  color: var(--ink);
  font-size: .9rem;
  border-radius: 4px;
  transition: background var(--transition), color var(--transition);
}
.nav__submenu a::after,
.nav__mega-col a::after {
  content: "→";
  font-family: var(--f-sans);
  font-size: .8rem;
  color: var(--red);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity .25s ease, transform .35s var(--ease);
}
.nav__submenu a:hover,
.nav__mega-col a:hover { background: var(--paper-2); color: var(--red); }
.nav__submenu a:hover::after,
.nav__mega-col a:hover::after { opacity: 1; transform: none; }

.nav__mega { display: flex; min-width: 520px; }
.nav__mega-col { flex: 1; }
.nav__mega-heading {
  padding: .5rem .75rem;
  font-size: .8rem;
  font-weight: 600;
  color: var(--red);
}
.nav__mega-col ul { list-style: none; margin: 0; padding: 0; }

/* Language switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: .1rem;
  flex: none;
  font-size: .85rem;
  font-weight: 500;
}
.lang-switcher a {
  padding: .35rem .45rem;
  color: var(--muted);
  border-radius: 3px;
  transition: color var(--transition), background var(--transition);
}
.lang-switcher a + a::before {
  content: "/";
  margin: 0 .5rem 0 -.45rem;
  color: var(--rule-strong);
}
.lang-switcher a:hover { color: var(--ink); }
.lang-switcher a.active { color: var(--red); font-weight: 700; }

/* ── Main ── */

.main { min-height: 60vh; padding-top: calc(var(--header-h) + var(--ann-h)); }
.is-home .main { padding-top: 0; }

/* ── Hero (generic) ── */

.hero { text-align: center; padding: 5rem var(--gutter); position: relative; }
.hero__inner { max-width: 760px; margin-inline: auto; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin-bottom: 1.2rem; }
.hero p { font-size: 1.1rem; color: var(--muted); margin-bottom: 2rem; }

/* ── Buttons ── */

.btn,
.btn-primary,
.btn-outline {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  min-height: 48px;
  padding: .75rem 1.45rem;
  border-radius: 999px;
  font-family: var(--f-sans);
  font-size: .95rem;
  font-weight: 500;
  letter-spacing: .005em;
  line-height: 1.2;
  cursor: pointer;
  border: 1px solid transparent;
  overflow: hidden;
  isolation: isolate;
  transition: color .35s var(--ease), border-color .35s var(--ease), background .35s var(--ease), transform .35s var(--ease);
}
.btn::after,
.btn-primary::after,
.btn-outline::after {
  content: "→";
  font-family: var(--f-sans);
  font-size: .9em;
  transition: transform .35s var(--ease);
}
.btn:hover::after,
.btn-primary:hover::after,
.btn-outline:hover::after { transform: translateX(4px); }
/* Fill sweep */
.btn::before,
.btn-primary::before,
.btn-outline::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  transform: translateY(101%);
  transition: transform .5s var(--ease);
}
.btn:hover::before,
.btn-primary:hover::before,
.btn-outline:hover::before { transform: none; }

.btn--primary,
.btn-primary { background: var(--red); color: #fff !important; border-color: var(--red); }
.btn--primary::before,
.btn-primary::before { background: var(--ink); }
.btn--primary:hover,
.btn-primary:hover { color: #fff !important; border-color: var(--ink); }

.btn--outline,
.btn-outline { background: transparent; color: var(--red) !important; border-color: var(--red); }
.btn--outline::before,
.btn-outline::before { background: var(--red); }
.btn--outline:hover,
.btn-outline:hover { color: #fff !important; border-color: var(--red); }

/* Text link with underline draw */
.text-cta,
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  color: var(--red);
  font-weight: 500;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  padding-bottom: 3px;
  transition: background-size .45s var(--ease), color .3s ease;
}
.text-cta:hover,
.link-arrow:hover { color: var(--red-deep); background-size: 0 1px; background-position: 100% 100%; }
.arrow-icon { font-family: var(--f-sans); font-style: normal; transition: transform .35s var(--ease); }
.text-cta:hover .arrow-icon { transform: translateX(4px); }

/* ── Section headings ── */

.section-heading {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin-bottom: 2rem;
}

/* ── Page content: narrow reading column (legal pages use .page-content.container) ── */

.page-content.container { padding-block: clamp(3rem, 7vw, 6rem); max-width: calc(860px + 2 * var(--gutter)); }
.page-content.container h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--red);
}
.page-content.container h2 {
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
  margin-top: 2.75rem;
  margin-bottom: .9rem;
}
.page-content.container h3, .page-content.container h4 {
  font-family: var(--f-sans);
  font-weight: 600;
  font-size: 1.05rem;
  margin-top: 1.75rem;
  margin-bottom: .5rem;
}

/* ── Service / card grid ── */

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-block: 2rem;
}
.service-grid-item {
  background: var(--card);
  padding: 2rem;
  position: relative;
  transition: background var(--transition);
}
.service-grid-item:hover { background: #fff; }
.featured-service { background: var(--card); }

/* ── Section divider ── */

.section { border-left: 2px solid var(--red); padding-left: 1.25rem; margin: 2.5rem 0; }

/* ── Category label: shares .eyebrow ── */

.highlight { color: var(--red); }

/* ── Forms ── */

.form-group {
  display: flex;
  flex-direction: column;
  gap: .45rem;
  margin-bottom: 1.4rem;
}
.form-group label {
  font-size: .9rem;
  font-weight: 600;
  color: var(--ink);
}
.form-group input,
.form-group textarea,
.form-group select {
  background: var(--card);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  color: var(--ink);
  padding: .8rem .95rem;
  font: inherit;
  width: 100%;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: #9a9ea4; }
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  background: #fff;
  border-color: var(--ink);
  box-shadow: 0 0 0 4px rgba(18, 20, 23, .06);
}

.contact-success { color: #2f6b3c; font-weight: 600; padding: 1rem 0; font-size: 1.05rem; }
.contact-error { color: var(--red); font-weight: 600; padding: 1rem 0; }

.htmx-indicator { display: none; opacity: .7; }
.htmx-request .htmx-indicator { display: inline; }

/* ── Footer ── */

.site-footer {
  --gray1: var(--on-night);
  --text-muted: var(--on-night-2);
  position: relative;
  background: var(--night);
  color: var(--on-night);
  overflow: hidden;
}
.site-footer p { color: var(--on-night-2); }

.footer__grid {
  max-width: var(--max-width);
  margin-inline: auto;
  padding: clamp(4rem, 8vw, 6.5rem) var(--gutter) 3rem;
  display: grid;
  grid-template-columns: 1.3fr 3fr 1fr;
  gap: 3rem;
}

/* The mark is drawn for a white ground: give it its own plate on the dark footer */
.footer__brand img {
  height: 64px;
  width: auto;
  box-sizing: content-box;
  padding: 10px 12px;
  background: #fff;
  border-radius: 3px;
}
.footer__brand p {
  font-family: var(--f-display);
  font-size: 1.35rem;
  line-height: 1.35;
  color: var(--on-night);
  margin-top: 1.5rem;
  max-width: 22ch;
}

.footer__offices h4,
.footer__legal h4 {
  font-family: var(--f-sans);
  font-size: .95rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 1.25rem;
  padding-bottom: .9rem;
  border-bottom: 1px solid var(--rule-night);
}

.footer__legal a {
  display: block;
  color: var(--on-night);
  font-size: .92rem;
  padding: .3rem 0;
  transition: color var(--transition), transform var(--transition);
}
.footer__legal a:hover { color: #fff; transform: translateX(4px); }

.footer__offices-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.footer__offices address {
  font-style: normal;
  font-size: .88rem;
  color: var(--on-night-2);
  line-height: 1.7;
}
.footer__offices address strong {
  display: block;
  color: var(--on-night);
  font-weight: 500;
  margin-bottom: .35rem;
}

.footer__mark {
  max-width: var(--max-width);
  margin-inline: auto;
  padding: 0 var(--gutter);
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(3rem, 11.6vw, 11.2rem);
  line-height: .82;
  letter-spacing: -.035em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(236, 235, 230, .2);
  white-space: nowrap;
  user-select: none;
  transform: translateY(.12em);
}
.footer__mark em { font-style: italic; color: var(--red); -webkit-text-stroke: 0; }

.footer__bottom {
  position: relative;
  border-top: 1px solid var(--rule-night);
  padding: 1.25rem var(--gutter);
  background: var(--night);
}
.footer__bottom p {
  max-width: var(--max-width);
  margin: 0 auto;
  font-size: .82rem;
  color: var(--on-night-2);
}

/* ── Print utilities (kept from original) ── */

.nodesk { display: none; }
@media print { .saltopagina { display: block !important; page-break-before: always !important; } }

/* ── Responsive nav ── */

@media (max-width: 1100px) {
  .nav { flex-wrap: wrap; gap: .75rem; }
  .nav__toggle    { display: flex; order: 3; margin-left: 0; }
  .lang-switcher  { order: 2; margin-left: auto; }
  .nav__links     { order: 4; }

  .nav__links {
    display: none;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    margin: 0 0 .75rem;
    padding: .5rem 0;
    border-top: 1px solid var(--rule);
    max-height: calc(100vh - var(--header-h) - var(--ann-h) - 1rem);
    overflow-y: auto;
  }
  .nav__links--open { display: flex; }
  .is-home .site-header:has(.nav__links--open) { background: var(--paper); border-bottom-color: var(--rule); }

  .nav__links > li > a,
  .nav__dropdown-toggle {
    width: 100%;
    justify-content: space-between;
    padding: .95rem 0;
    font-family: var(--f-display);
    font-size: 1.35rem;
    font-weight: 400;
    border-bottom: 1px solid var(--rule);
  }
  .nav__links > li > a::after,
  .nav__dropdown-toggle::after { display: none; }

  .nav__submenu,
  .nav__mega {
    position: static;
    display: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background: transparent;
    padding: .25rem 0 .75rem;
    min-width: 0;
  }
  .nav__dropdown:hover .nav__submenu,
  .nav__dropdown:focus-within .nav__submenu { display: none; }
  .nav__dropdown--open .nav__submenu,
  .nav__dropdown--open .nav__mega,
  .nav__dropdown--open:hover .nav__submenu { display: block; }
  .nav__submenu a { padding: .6rem 0 .6rem 1rem; }
  .nav__mega { flex-direction: column; }
}

/* ── Shared page components ─────────────────────────────────────── */

/* Shared page hero (inner pages): light, red graph paper, optional framed image.
   Markup:
   <section class="page-hero">
     <div class="page-hero-content">
       <div class="page-hero__text"> h1.page-title, p.page-subtitle, .hero-buttons </div>
       <figure class="page-hero__media"><img data-parallax src="..." alt=""></figure>   (optional)
     </div>
   </section> */
.page-hero {
  position: relative;
  overflow: hidden;
  background: var(--paper);
  padding: clamp(3.5rem, 8vw, 7rem) 0 clamp(3.5rem, 7vw, 6rem);
  border-bottom: 1px solid var(--rule);
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(198, 12, 12, .08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(198, 12, 12, .08) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 25% 40%, #000 15%, transparent 75%);
          mask-image: radial-gradient(ellipse 70% 80% at 25% 40%, #000 15%, transparent 75%);
  pointer-events: none;
}
.page-hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin-inline: auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}
.page-hero-content:has(.page-hero__media) { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.page-hero .page-title {
  display: block;
  max-width: 16ch;
  font-size: clamp(2.6rem, 5.6vw, 5rem);
  font-weight: 360;
  line-height: 1;
  letter-spacing: -.018em;
  color: var(--ink);
  margin-bottom: 1.5rem;
}
.page-subtitle {
  font-size: clamp(1.08rem, 1.4vw, 1.28rem);
  line-height: 1.55;
  max-width: 48ch;
  margin: 0 0 2.25rem;
  color: var(--ink-2);
}
.hero-buttons { display: flex; gap: .75rem; flex-wrap: wrap; }
.page-hero__media {
  position: relative;
  aspect-ratio: 4 / 5;
  max-height: 72vh;
  overflow: hidden;
  border-radius: 3px;
  background: var(--paper-2);
}
.page-hero__media img {
  position: absolute;
  inset: -6% 0;
  width: 100%;
  height: 112%;
  object-fit: cover;
}
@media (max-width: 900px) {
  .page-hero-content:has(.page-hero__media) { grid-template-columns: minmax(0, 1fr); }
  .page-hero__media { aspect-ratio: 16 / 10; }
}

/* Molecule texture: hairline skeletal formulas in heroes and CTA bands ({% molecules %} tag, core/templatetags/molecules.py) */
.mols { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.mols img { position: absolute; width: min(calc(var(--w) * 1.5px), 380px); height: auto; opacity: .12; rotate: var(--r, 0deg); }
.page-hero > .page-hero-content { position: relative; z-index: 1; }
.mols--cta img { filter: invert(1); opacity: .2; max-width: 260px; }
.toolbox-cta .mols--cta img:nth-child(1) { right: auto; left: 5%; } /* centred CTA: keep the middle clear */
.mols--short img:nth-child(1), .mols--short img:nth-child(4), .mols--short img:nth-child(6) { display: none; }
.mols--short img:nth-child(2) { left: 58%; }
@media (max-width: 900px) {
  .mols img { width: min(calc(var(--w) * 1.1px), 240px); opacity: .09; }
  .mols--hero img:nth-child(2), .mols--hero img:nth-child(4), .mols--hero img:nth-child(5), .mols--cta img:nth-child(3) { display: none; }
  .mols--cta img { opacity: .16; }
}

/* Centered section heading variant */
.section-heading-c {
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  margin-bottom: 1.1rem;
  text-align: center;
}
.section-subheading {
  font-size: 1.12rem;
  text-align: center;
  max-width: 62ch;
  margin: 0 auto 3rem;
  color: var(--muted);
}

/* Split intro: heading left, body right (inner pages) */
.split-intro {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}
.split-intro .section-heading { margin-bottom: 1.25rem; }
.split-intro__kicker {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 1.25rem;
  line-height: 1.4;
  color: var(--red);
  max-width: 28ch;
}
.split-intro .intro-text { font-size: 1.12rem; }
.split-intro .intro-text p:first-child { font-family: var(--f-display); font-size: 1.35rem; line-height: 1.5; color: var(--ink); }
@media (max-width: 900px) { .split-intro { grid-template-columns: minmax(0, 1fr); } }

/* Intro text */
.intro-text { font-size: 1.1rem; line-height: 1.75; color: var(--ink-2); margin-bottom: 1.25rem; }
.intro-text p { margin-bottom: 1rem; }
.intro-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 3rem; }
.page-section { padding: clamp(4rem, 9vw, 7.5rem) 0; position: relative; }
.intro-section { padding: clamp(4rem, 9vw, 7.5rem) 0; position: relative; }
.page-section + .page-section { border-top: 1px solid var(--rule); }

.image-mask-soft { border-radius: 4px; }

/* Faded background decorations from the old design: retired */
.faded-bg-container { display: none; }

.img-placeholder {
  flex: 1 1 380px;
  min-height: 280px;
  border-radius: 4px;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--rule-strong);
}

/* Cards: hairline, flat, lift on hover */
.service-cards,
.features-grid,
.examples-grid,
.featured-services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  margin: 3rem 0;
}
.service-card,
.feature-item,
.example-card,
.featured-service {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 2.5vw, 2.25rem);
  background: var(--card);
  text-align: left;
  transition: background .4s var(--ease);
}
.service-card::after,
.feature-item::after,
.example-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0;
  height: 2px; width: 100%;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .6s var(--ease);
}
.service-card:hover,
.feature-item:hover,
.example-card:hover,
.featured-service:hover { background: #fff; }
.service-card:hover::after,
.feature-item:hover::after,
.example-card:hover::before { transform: scaleX(1); }

.service-icon,
.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  border: 1px solid var(--rule-strong);
  border-radius: 50%;
  font-size: 1.05rem;
  color: var(--red);
  margin-bottom: 1.5rem;
}
.service-title,
.feature-title { font-size: 1.3rem; font-weight: 450; margin-bottom: .75rem; color: var(--ink); text-align: left; }
.service-description,
.feature-text { flex: 1; font-size: .98rem; line-height: 1.65; color: var(--ink-2); margin-bottom: 1rem; }
.service-list { margin: 1rem 0; padding-left: 1.1rem; }
.service-list li { margin-bottom: .5rem; color: var(--ink-2); }
.service-cta { text-align: left; margin-top: auto; padding-top: .5rem; }
.service-card-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  margin-top: 2.5rem;
  max-width: 980px;
  margin-inline: auto;
}

/* Hairline grids: the container draws top/left, each cell draws right/bottom,
   so a short last row leaves plain paper instead of an empty grey cell. */
.service-grid, .service-cards, .features-grid, .examples-grid, .featured-services,
.service-card-container, .steps-container {
  gap: 0;
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}
.service-grid-item, .service-card, .feature-item, .example-card, .featured-service, .step-card {
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

/* Tabs */
.tabs-container { margin: 3.5rem 0; }
.tabs-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .4rem;
  margin-bottom: 2.5rem;
}
.tab-button {
  padding: .6rem 1.1rem;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  cursor: pointer;
  font-family: var(--f-sans);
  font-weight: 500;
  font-size: .9rem;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.tab-button:hover { border-color: var(--ink); }
.tab-button.active { background: var(--red); color: #fff; border-color: var(--red); }
.tab-button:hover:not(.active) { color: var(--red); border-color: var(--red); }
.tab-content { display: none; }
.tab-content.active { display: block; animation: tabIn .5s var(--ease); }
@keyframes tabIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Process steps */
.process-container { max-width: 980px; margin: 2.5rem auto 0; position: relative; }
.process-steps { position: relative; counter-reset: step; }
.process-step { display: flex; gap: 2rem; padding: 2rem 0; border-top: 1px solid var(--rule); position: relative; }
.process-step:last-child { border-bottom: 1px solid var(--rule); }
.process-number {
  flex: 0 0 auto;
  font-family: var(--f-display);
  font-size: 2.6rem;
  font-weight: 300;
  line-height: 1;
  color: var(--red);
  min-width: 3.5rem;
}
.process-number::before { counter-increment: step; content: counter(step); }
.process-content { flex: 1; }
.process-title { font-size: 1.5rem; font-weight: 420; margin-bottom: .6rem; color: var(--ink); }
.process-description { font-size: 1rem; line-height: 1.7; color: var(--ink-2); }
.process-line { display: none; }

/* Accordion */
.accordion { max-width: 860px; margin: 3rem auto; border-top: 1px solid var(--rule-strong); }
.accordion-item { border-bottom: 1px solid var(--rule-strong); }
.accordion-header { padding: 1.35rem 0; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.accordion-title { font-family: var(--f-display); font-size: 1.3rem; font-weight: 420; color: var(--ink); }
.accordion-icon { font-size: .9rem; color: var(--ink); width: 34px; height: 34px; border: 1px solid var(--rule-strong); border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex: none; transition: transform .45s var(--ease), background .3s ease, color .3s ease; }
.accordion-header:hover .accordion-icon { background: var(--ink); color: var(--paper); }
.accordion-item.active .accordion-icon { transform: rotate(180deg); }
.accordion-content { max-height: 0; overflow: hidden; transition: max-height .5s var(--ease); }
.accordion-item.active .accordion-content { max-height: 1400px; }
.accordion-body { padding: 0 0 1.75rem; font-size: 1rem; line-height: 1.75; color: var(--ink-2); max-width: 70ch; }

/* CTA banner: solid brand red band, no photograph */
.cta-banner,
.toolbox-cta {
  position: relative;
  padding: clamp(5rem, 10vw, 8rem) 0;
  text-align: left;
  overflow: hidden;
  background: var(--red);
  color: #fff;
}
.cta-banner::before { content: none; }
.cta-banner .cta-content { max-width: var(--max-width); margin: 0 auto; padding: 0 var(--gutter); position: relative; z-index: 1; }
.cta-banner .cta-title { color: #fff; font-size: clamp(2rem, 4.2vw, 3.6rem); font-weight: 360; margin-bottom: 1.25rem; max-width: 20ch; }
.cta-banner .cta-text { font-size: 1.12rem; margin-bottom: 2.25rem; max-width: 54ch; color: rgba(255, 255, 255, .86); }
.cta-banner .cta-buttons { display: flex; gap: .75rem; flex-wrap: wrap; }
.toolbox-cta .container { position: relative; z-index: 1; }
.toolbox-cta .section-heading-c { color: #fff; }
.toolbox-cta .section-subheading { color: rgba(255, 255, 255, .86); }

/* Buttons on red bands */
.cta-banner .btn--primary, .toolbox-cta .btn--primary,
.cta-banner .btn-primary, .toolbox-cta .btn-primary { background: #fff; color: var(--red) !important; border-color: #fff; }
.cta-banner .btn--primary::before, .toolbox-cta .btn--primary::before,
.cta-banner .btn-primary::before, .toolbox-cta .btn-primary::before { background: var(--ink); }
.cta-banner .btn--primary:hover, .toolbox-cta .btn--primary:hover,
.cta-banner .btn-primary:hover, .toolbox-cta .btn-primary:hover { color: #fff !important; border-color: var(--ink); }
.cta-banner .btn--outline, .toolbox-cta .btn--outline,
.cta-banner .btn-outline, .toolbox-cta .btn-outline { color: #fff !important; border-color: rgba(255, 255, 255, .6); }
.cta-banner .btn--outline::before, .toolbox-cta .btn--outline::before,
.cta-banner .btn-outline::before, .toolbox-cta .btn-outline::before { background: #fff; }
.cta-banner .btn--outline:hover, .toolbox-cta .btn--outline:hover,
.cta-banner .btn-outline:hover, .toolbox-cta .btn-outline:hover { color: var(--red) !important; border-color: #fff; }

/* Grid modifiers */
.grid--2col { grid-template-columns: repeat(2, 1fr) !important; }
.grid--3col { grid-template-columns: repeat(3, 1fr) !important; }
@media (max-width: 768px) {
  .grid--2col, .grid--3col { grid-template-columns: 1fr !important; }
}

/* 2-step cards (biocides) */
.steps-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); margin-top: 2.5rem; }
.step-card { position: relative; background: var(--card); padding: clamp(1.75rem, 3vw, 2.75rem); transition: background .4s var(--ease); }
.step-card:hover { background: #fff; }
.step-number {
  display: inline-block;
  font-family: var(--f-display);
  font-size: 2.6rem;
  font-weight: 300;
  line-height: 1;
  color: var(--red);
  margin-bottom: 1rem;
}
.step-title { font-size: 1.5rem; font-weight: 420; margin: 0 0 .8rem; color: var(--ink); }
.step-description { color: var(--ink-2); font-size: 1rem; line-height: 1.65; }

/* Featured services list */
.featured-title { font-size: 1.3rem; font-weight: 450; margin-bottom: 1rem; color: var(--ink); display: flex; align-items: center; gap: .75rem; }
.featured-title i { color: var(--red); font-size: 1rem; }
.featured-list { list-style: none; padding-left: 0; margin-left: 0; }
.featured-list li { margin-bottom: .55rem; position: relative; padding-left: 1.25rem; color: var(--ink-2); }
.featured-list li::before { content: "→"; font-family: var(--f-sans); position: absolute; left: 0; color: var(--red); font-size: .8rem; top: .15rem; }

/* Alternating image+text sections */
.alt-section { padding: clamp(4rem, 9vw, 7.5rem) 0; position: relative; }
.alt-bg { background: var(--paper-2); }
.flex-container { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(2rem, 5vw, 5rem); }
.flex-container .image-column {
  flex: 1 1 400px;
  border-radius: 4px;
  overflow: hidden;
  background: var(--paper-2);
  min-height: 280px;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: 3rem;
}
.flex-container .image-column img { width: 100%; height: 100%; object-fit: cover; display: block; }
.flex-container .content-column { flex: 1 1 460px; }
.reverse-row { flex-direction: row-reverse; }
.content-title { font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 400; margin-bottom: 1.25rem; color: var(--ink); }
.content-text { font-size: 1.05rem; line-height: 1.75; margin-bottom: 1rem; color: var(--ink-2); }
.bulletpoints { list-style: none; margin: 0 0 1.5rem; padding: 0; }
.bulletpoints li { margin-bottom: .6rem; position: relative; padding-left: 1.6rem; color: var(--ink-2); }
.bulletpoints li::before { content: "→"; font-family: var(--f-sans); position: absolute; left: 0; color: var(--red); font-size: .85rem; top: .1rem; }

/* Two-column intro */
.two-column-section { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); margin: 3.5rem 0; align-items: center; }
.two-column-section .content-column { display: flex; flex-direction: column; justify-content: center; }
.two-column-section .content-column h3 { margin-bottom: 1.25rem; color: var(--ink); font-size: clamp(1.7rem, 2.8vw, 2.3rem); font-weight: 400; }
.two-column-section .image-column {
  border-radius: 4px;
  overflow: hidden;
  background: var(--paper-2);
  min-height: 280px;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: 3rem;
}

/* Examples grid */
.example-icon { position: absolute; top: 1.25rem; right: 1.25rem; font-size: 1rem; color: var(--red); opacity: .6; }
.example-title { font-size: 1.05rem; font-weight: 500; font-family: var(--f-sans); color: var(--ink); padding-right: 2rem; }

/* Regulation table */
.regulation-table { width: 100%; border-collapse: collapse; margin: 2.5rem 0; border-top: 1px solid var(--rule-strong); }
.regulation-table th { background: transparent; color: var(--muted); padding: 1rem 1.25rem; }
.regulation-table td { padding: 1.25rem; border-bottom: 1px solid var(--rule); vertical-align: top; color: var(--ink-2); }
.regulation-table tr:hover td { background: var(--card); }
.regulation-category { font-family: var(--f-display); font-size: 1.15rem; margin-bottom: .3rem; color: var(--ink); }
.regulation-number { font-family: var(--f-sans); font-size: .78rem; color: var(--muted); margin-bottom: .5rem; }
.application-list { list-style: none; padding: 0; margin: 0; }
.application-list li { position: relative; padding-left: 1.1rem; margin-bottom: .4rem; color: var(--ink-2); }
.application-list li::before { content: "·"; color: var(--red); position: absolute; left: .2rem; font-weight: 700; }
.mobile-regulation-card { display: none; background: var(--card); border: 1px solid var(--rule); border-radius: 4px; padding: 1.25rem; margin-bottom: 1rem; }
.mobile-category { font-family: var(--f-display); font-size: 1.15rem; color: var(--ink); margin-bottom: .75rem; border-bottom: 1px solid var(--rule); padding-bottom: .75rem; }
.mobile-regulation { margin-bottom: .5rem; font-family: var(--f-sans); font-size: .78rem; color: var(--muted); }

/* Shared fade-in animation (legacy, driven by main.js) */
.fade-in { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.fade-in.active { opacity: 1; transform: none; }

/* Hero decorations from the old design: retired */
.scroll-indicator, .hero-particle { display: none; }

/* ── Motion primitives (home and anything that opts in) ── */

/* Content is visible by default; motion.js hides then reveals only when it runs */
html.motion [data-reveal] { opacity: 0; transform: translateY(28px); }
html.motion [data-reveal].is-in { opacity: 1; transform: none; transition: opacity 1s var(--ease), transform 1.1s var(--ease); }
.split-line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.split-line > span { display: inline-block; will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .fade-in { opacity: 1; transform: none; }
}

/* ── Responsive overrides for page components ── */

@media (max-width: 992px) {
  .two-column-section { grid-template-columns: 1fr; }
  .flex-container { flex-direction: column !important; align-items: stretch; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__offices { grid-column: 1 / -1; order: 3; }
}
@media (max-width: 768px) {
  body { font-size: 1rem; }
  .service-cards, .features-grid, .examples-grid, .service-card-container, .featured-services { grid-template-columns: 1fr; }
  .regulation-table { display: none; }
  .mobile-regulation-card { display: block; }
  .process-step { flex-direction: column; gap: .5rem; }
  .footer__grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer__offices-grid { grid-template-columns: 1fr; gap: 1.25rem; }
}
