:root {
  --ink: #092126;
  --ink-soft: #365359;
  --muted: #65787c;
  --paper: #f6fbfb;
  --white: #ffffff;
  --blue: #026b86;
  --blue-dark: #064f65;
  --aqua: #50c0bd;
  --green: #6aa84f;
  --line: rgba(9, 33, 38, 0.12);
  --shadow: 0 24px 70px rgba(6, 79, 101, 0.16);
  --card-shadow: 0 12px 38px rgba(6, 79, 101, 0.07);
  --radius: 10px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Instrument Sans", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}
img { display: block; max-width: 100%; }
a { color: inherit; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  z-index: 40;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: min(calc(100% - 32px), var(--max));
  min-height: 70px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(0, 35, 46, 0.12);
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 52px; width: auto; }
.brand-fallback {
  display: flex; flex-direction: column; line-height: 1.15;
}
.brand-fallback strong { font-size: 1rem; color: var(--ink); }
.brand-fallback small { font-size: 0.72rem; color: var(--muted); }

.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav > a,
.nav-group > a,
.nav-toggle {
  border: 0;
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--ink-soft);
  background: transparent;
  text-decoration: none;
  font: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  white-space: nowrap;
}
.site-nav a[aria-current="page"] { color: var(--blue-dark); background: rgba(2,107,134,0.09); }
.nav-group { position: relative; }
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 50;
  display: none;
  min-width: 270px;
  margin-top: 10px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
/* Invisible hover bridge so the mouse can cross the gap without closing the menu */
.nav-group::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 16px;
  display: none;
}
.nav-group:hover::after { display: block; }
.dropdown a { display: block; white-space: nowrap; padding: 10px 12px; border-radius: 8px; text-decoration: none; color: var(--ink-soft); font-weight: 700; font-size: 0.9rem; }
.dropdown a:hover { background: rgba(2,107,134,0.09); color: var(--blue-dark); }
.nav-group:hover .dropdown,
.nav-group:focus-within .dropdown { display: block; }
.site-nav > a:hover, .nav-group > a:hover, .nav-toggle:hover { background: rgba(2,107,134,0.09); color: var(--blue-dark); }
.nav-toggle { display: none; }

/* ---------- Buttons ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; border-radius: 8px; padding: 13px 22px;
  text-decoration: none; font-weight: 800; font-size: 0.95rem;
}
.button.primary { color: var(--white); background: linear-gradient(135deg, var(--blue-dark), var(--blue)); }
.button.secondary { color: var(--white); border: 1px solid rgba(255, 255, 255, 0.5); }
.button.ghost { color: var(--blue-dark); background: rgba(80,192,189,0.14); }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; min-height: 88vh; overflow: hidden;
  display: grid; align-items: end; isolation: isolate;
}
.hero img.hero-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: -2;
}
.hero-overlay {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(5,29,35,0.9), rgba(5,45,58,0.55) 46%, rgba(5,45,58,0.12)),
    linear-gradient(0deg, rgba(9,33,38,0.72), transparent 44%);
}
.hero-content { width: min(100% - 36px, var(--max)); margin: 0 auto; padding: 150px 0 78px; color: var(--white); }
.eyebrow { margin: 0 0 12px; color: var(--aqua); font-weight: 800; text-transform: uppercase; font-size: 0.78rem; letter-spacing: 0.04em; }
.hero h1, h2 { margin: 0; font-family: "Source Serif 4", Georgia, serif; line-height: 1.04; }
.hero h1 { max-width: 940px; font-size: 3.9rem; }
.hero-tagline { max-width: 680px; margin: 16px 0 0 !important; font-family: "Source Serif 4", Georgia, serif; font-size: 1.5rem !important; font-weight: 700; color: var(--aqua) !important; }
.hero p:not(.eyebrow):not(.hero-tagline) { max-width: 680px; margin: 18px 0 0; font-size: 1.2rem; color: rgba(255,255,255,0.88); }
.hero-actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Interior page hero ---------- */
.page-hero {
  position: relative; overflow: hidden; isolation: isolate;
  padding: 150px 0 60px; color: var(--white);
}
.page-hero img.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.page-hero .hero-overlay { background: linear-gradient(120deg, rgba(6,45,58,0.94), rgba(6,45,58,0.7)); }
.page-hero-inner { width: min(100% - 36px, var(--max)); margin: 0 auto; }
.page-hero h1 { margin: 0; font-family: "Source Serif 4", Georgia, serif; font-size: 3.2rem; line-height: 1.05; max-width: 820px; }
.page-hero p { max-width: 720px; margin: 18px 0 0; font-size: 1.12rem; color: rgba(255,255,255,0.9); }
.breadcrumb { margin: 0 0 14px; font-size: 0.85rem; font-weight: 700; color: rgba(255,255,255,0.75); }
.breadcrumb a { color: var(--aqua); text-decoration: none; }

/* ---------- Layout containers ---------- */
.section-grid, .content-section, .image-feature, .split-band, .contact-section {
  width: min(100% - 36px, var(--max)); margin: 0 auto;
}
.content-section { padding: 72px 0; }
.content-section + .content-section { padding-top: 0; }
.section-heading { max-width: 860px; margin-bottom: 30px; }
h2 { font-size: 3rem; }
h3 { margin: 0 0 12px; font-size: 1.22rem; line-height: 1.25; }

.section-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 64px; padding: 84px 0 60px; align-items: start; }
.lead-copy { color: var(--ink-soft); font-size: 1.06rem; }
.lead-copy p:first-child { margin-top: 0; }

/* ---------- Stats ---------- */
.stats-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
.stats-band div { padding: 30px; background: #e9f5f5; }
.stats-band strong { display: block; font-size: 2.8rem; line-height: 1; color: var(--blue-dark); }
.stats-band span { display: block; margin-top: 10px; color: var(--ink-soft); font-weight: 700; font-size: 0.95rem; }

/* ---------- Products ---------- */
.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 8px; }
.product-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--card-shadow); padding: 30px; }
.product-card .tag { display: inline-block; padding: 5px 12px; border-radius: 999px; background: rgba(80,192,189,0.16); color: var(--blue-dark); font-weight: 800; font-size: 0.8rem; margin-bottom: 14px; }
.product-card ul { margin: 14px 0 0; padding-left: 18px; color: var(--ink-soft); }
.product-card li { margin: 7px 0; }

/* ---------- Feature ---------- */
.image-feature { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 52px; align-items: center; padding: 90px 0 60px; }
.image-feature.reverse { grid-template-columns: 0.95fr 1.05fr; }
.image-feature.reverse .feature-media { order: 2; }
.feature-media img, .split-band img { width: 100%; aspect-ratio: 1.2 / 1; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.feature-copy p:not(.eyebrow) { color: var(--ink-soft); font-size: 1.04rem; }
.check-list { padding: 0; margin: 22px 0 0; list-style: none; }
.check-list li { position: relative; margin: 12px 0; padding-left: 28px; color: var(--ink-soft); }
.check-list li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 10px; height: 10px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px rgba(106,168,79,0.16); }

/* ---------- Cards grid ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.service-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--card-shadow); padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.service-card .card-image { width: 100%; height: 168px; object-fit: cover; border-bottom: 1px solid var(--line); }
.service-card .card-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.service-card .icon { display: inline-grid; place-items: center; width: 40px; height: 40px; margin-bottom: 16px; border-radius: 50%; color: var(--blue-dark); background: rgba(80,192,189,0.16); font-weight: 800; }
.service-card p { color: var(--ink-soft); flex: 1; }
.card-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; color: var(--blue-dark); font-weight: 800; text-decoration: none; }
.card-link::after { content: "↗"; font-size: 0.9em; }
.card-link.internal::after { content: "→"; }

/* ---------- Split / mini grid ---------- */
.split-band { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 52px; align-items: center; padding: 70px 0; }
.mini-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 26px; }
.mini-grid article { border-top: 2px solid rgba(80,192,189,0.4); padding-top: 16px; }
.mini-grid h3 { font-size: 1.02rem; }
.mini-grid p { color: var(--ink-soft); font-size: 0.96rem; margin: 0; }

/* ---------- Detail / application grids ---------- */
.detail-grid, .application-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.detail-card, .application-grid article { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--card-shadow); overflow: hidden; }
.detail-card img, .application-grid img { width: 100%; height: 180px; object-fit: cover; }
.detail-card .pad, .application-grid article .pad { padding: 24px; }
.detail-card ul { padding-left: 18px; color: var(--ink-soft); margin: 0; }
.detail-card p, .application-grid article p { color: var(--ink-soft); }
.two-up { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.two-up article { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--card-shadow); padding: 28px; }
.two-up p { color: var(--ink-soft); }

.media-detail { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 32px; align-items: center; padding: 28px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--card-shadow); }
.media-detail img { width: 100%; aspect-ratio: 1.3 / 1; object-fit: cover; border-radius: var(--radius); }
.media-detail p { color: var(--ink-soft); }

/* ---------- Program list ---------- */
.program-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.program-list article { border-top: 2px solid rgba(80,192,189,0.4); padding-top: 18px; }
.program-list p { color: var(--ink-soft); font-size: 0.96rem; }
.text-link { display: inline-flex; margin-top: 16px; color: var(--blue-dark); font-weight: 800; text-decoration: none; }
.text-link::after { content: " →"; }

/* ---------- Document / resource links ---------- */
.doc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.doc-link {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--card-shadow); text-decoration: none; color: var(--ink);
  font-weight: 700; transition: transform .12s ease, box-shadow .12s ease;
}
.doc-link:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(6,79,101,0.13); }
.doc-badge { flex: none; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 8px; background: rgba(2,107,134,0.1); color: var(--blue-dark); font-size: 0.72rem; font-weight: 800; }
.doc-link span.doc-title { flex: 1; font-size: 0.96rem; }
.doc-link .doc-go { color: var(--muted); font-weight: 800; }

/* ---------- Research hub cards ---------- */
.hub-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.hub-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--card-shadow); overflow: hidden; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; }
.hub-card img { width: 100%; height: 190px; object-fit: cover; }
.hub-card .pad { padding: 26px; }
.hub-card p { color: var(--ink-soft); margin: 6px 0 0; }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 12px; }
.faq-list details { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--card-shadow); padding: 20px 24px; }
.faq-list summary { cursor: pointer; font-weight: 800; font-size: 1.05rem; }
.faq-list p { color: var(--ink-soft); margin: 12px 0 0; }

/* ---------- Blog ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.blog-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--card-shadow); overflow: hidden; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; }
.blog-card img { width: 100%; height: 170px; object-fit: cover; }
.blog-card .pad { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.blog-card time { color: var(--blue); font-size: 0.82rem; font-weight: 800; }
.blog-card h3 { margin: 8px 0 10px; font-size: 1.08rem; }
.blog-card p { color: var(--ink-soft); font-size: 0.95rem; flex: 1; }

/* ---------- Contact ---------- */
.contact-section { display: grid; grid-template-columns: 1fr 0.9fr; gap: 40px; align-items: start; padding: 90px 0; }
.contact-section p { color: var(--ink-soft); }
.contact-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--card-shadow); padding: 32px; }
.contact-card dl { display: grid; gap: 20px; margin: 0; }
.contact-card dt { color: var(--muted); font-weight: 800; text-transform: uppercase; font-size: 0.74rem; letter-spacing: 0.03em; }
.contact-card dd { margin: 5px 0 0; color: var(--ink-soft); font-weight: 600; }
.contact-card a { color: var(--blue-dark); }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(135deg, var(--blue-dark), #08677f); color: var(--white); }
.cta-inner { width: min(100% - 36px, var(--max)); margin: 0 auto; padding: 70px 0; display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center; }
.cta-inner h2 { color: var(--white); }
.cta-inner p { margin: 10px 0 0; color: rgba(255,255,255,0.85); max-width: 620px; }

/* ---------- Footer ---------- */
.site-footer { background: #071c21; color: rgba(255,255,255,0.82); }
.footer-inner { width: min(100% - 36px, var(--max)); margin: 0 auto; padding: 56px 0 30px; display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.1fr; gap: 34px; }
.site-footer img { height: 46px; width: auto; margin-bottom: 16px; }
.site-footer p { margin: 6px 0 0; font-size: 0.95rem; }
/* FIX 1: extended to h2/h5/h6 — accessibility.html and privacy-policy.html use <h2>
   in .footer-col, which previously fell through to the global serif `h2` display rule. */
.footer-col h2, .footer-col h3, .footer-col h4, .footer-col h5, .footer-col h6 { margin: 0 0 14px; color: var(--white); font-family: "Instrument Sans", system-ui, sans-serif; font-weight: 700; line-height: 1.3; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.04em; }
.footer-col a { display: block; color: rgba(255,255,255,0.8); text-decoration: none; padding: 5px 0; font-size: 0.95rem; }
.footer-col a:hover { color: var(--aqua); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); }
.footer-bottom-inner { width: min(100% - 36px, var(--max)); margin: 0 auto; padding: 20px 0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; color: rgba(255,255,255,0.55); font-size: 0.85rem; }

.note-band { background: rgba(80,192,189,0.1); border: 1px dashed rgba(2,107,134,0.4); border-radius: var(--radius); padding: 16px 20px; color: var(--blue-dark); font-size: 0.92rem; font-weight: 600; }

/* Image fallback placeholder */
.img-ph { width: 100%; display: grid; place-items: center; border-radius: var(--radius); overflow: hidden; }
.img-ph span { color: rgba(255,255,255,0.95); font-weight: 800; font-size: 0.9rem; text-align: center; padding: 12px 16px; letter-spacing: 0.02em; text-shadow: 0 1px 3px rgba(0,0,0,0.25); }
.service-card .img-ph, .detail-card .img-ph, .application-grid .img-ph, .hub-card .img-ph, .blog-card .img-ph { border-radius: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .site-header { align-items: flex-start; }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute; top: calc(100% + 8px); right: 0; left: 0;
    display: none; padding: 12px; flex-direction: column; align-items: stretch;
    background: rgba(255,255,255,0.98); border: 1px solid var(--line);
    border-radius: var(--radius); box-shadow: var(--shadow);
    max-height: calc(100vh - 96px); overflow-y: auto; -webkit-overflow-scrolling: touch;
  }
  .site-header.nav-open .site-nav { display: flex; }
  .nav-group { width: 100%; }
  /* Accordion: dropdowns start collapsed on mobile, expand when their group is opened */
  .dropdown { position: static; display: none; min-width: 0; margin: 0 0 8px 12px; padding: 6px; box-shadow: none; background: rgba(2,107,134,0.05); }
  .nav-group.open > .dropdown { display: grid; }
  .nav-group:hover .dropdown, .nav-group:focus-within .dropdown { display: none; }
  .nav-group.open:hover .dropdown, .nav-group.open:focus-within .dropdown { display: grid; }
  .nav-group > a { position: relative; }
  .nav-group > a::after { content: "▾"; float: right; transition: transform .2s ease; opacity: .6; }
  .nav-group.open > a::after { transform: rotate(180deg); }
  .section-grid, .image-feature, .image-feature.reverse, .split-band, .contact-section, .media-detail, .cta-inner { grid-template-columns: 1fr; }
  .image-feature.reverse .feature-media { order: 0; }
  .stats-band, .program-list, .blog-grid, .detail-grid, .application-grid, .card-grid, .product-grid, .hub-grid, .doc-grid, .footer-inner { grid-template-columns: repeat(2, 1fr); }
  .two-up { grid-template-columns: 1fr; }
  .hero h1 { font-size: 3.4rem; }
  h2 { font-size: 2.5rem; }
  .page-hero h1 { font-size: 2.5rem; }
}
@media (max-width: 620px) {
  .site-header { top: 10px; width: calc(100% - 20px); }
  .hero { min-height: 720px; }
  .hero h1 { font-size: 2.6rem; }
  .hero p:not(.eyebrow) { font-size: 1.05rem; }
  h2 { font-size: 2rem; }
  .page-hero h1 { font-size: 2rem; }
  .content-section, .section-grid, .image-feature, .split-band, .contact-section { padding-block: 52px; }
  .stats-band, .program-list, .blog-grid, .detail-grid, .application-grid, .card-grid, .product-grid, .hub-grid, .doc-grid, .mini-grid, .footer-inner { grid-template-columns: 1fr; }
}

/* ==================== V2 ADDITIONS ==================== */
/* Trust strip */
.trust-strip{background:#fff;border-bottom:1px solid var(--line)}
.trust-inner{width:min(100% - 36px,var(--max));margin:0 auto;display:flex;flex-wrap:wrap;gap:14px 34px;align-items:center;justify-content:center;padding:18px 0}
.trust-inner span{display:inline-flex;align-items:center;gap:9px;color:var(--ink-soft);font-weight:700;font-size:.92rem}
.trust-inner .dot{width:8px;height:8px;border-radius:50%;background:var(--green);box-shadow:0 0 0 4px rgba(106,168,79,.15)}

/* Language switcher */
.lang-switch{position:relative}
.lang-btn{display:inline-flex;align-items:center;gap:7px;border:1px solid var(--line);border-radius:8px;padding:9px 12px;background:rgba(255,255,255,.7);color:var(--ink-soft);font:inherit;font-weight:700;font-size:.88rem;cursor:pointer}
.lang-btn:hover{background:rgba(2,107,134,.09);color:var(--blue-dark)}
.lang-btn svg{width:16px;height:16px}
.lang-menu{position:absolute;top:calc(100% + 8px);right:0;z-index:60;display:none;min-width:190px;max-height:340px;overflow:auto;padding:6px;background:#fff;border:1px solid var(--line);border-radius:10px;box-shadow:var(--shadow)}
.lang-switch.open .lang-menu{display:block}
.lang-menu button{display:block;width:100%;text-align:left;border:0;background:transparent;padding:9px 12px;border-radius:7px;font:inherit;font-weight:600;font-size:.9rem;color:var(--ink-soft);cursor:pointer}
.lang-menu button:hover{background:rgba(2,107,134,.09);color:var(--blue-dark)}
#google_translate_element{display:none!important}
.goog-te-banner-frame,.skiptranslate{display:none!important}
body{top:0!important}

/* Flagship product feature */
.badges{display:flex;flex-wrap:wrap;gap:8px;margin:18px 0 4px}
.badge{display:inline-flex;align-items:center;gap:7px;padding:7px 13px;border-radius:999px;background:rgba(80,192,189,.14);color:var(--blue-dark);font-weight:800;font-size:.8rem}
.flag-media{position:relative}
.image-feature .feature-media.flag-media img{width:100%!important;height:auto!important;aspect-ratio:auto!important;object-fit:contain!important;background:#fff;border-radius:var(--radius);box-shadow:var(--shadow)}
.image-feature:hover .flag-media img{transform:none!important}
.flag-media .flag-tag{position:absolute;top:16px;left:16px;background:linear-gradient(135deg,var(--blue-dark),var(--blue));color:#fff;font-weight:800;padding:8px 16px;border-radius:999px;font-size:.95rem;letter-spacing:.02em;box-shadow:0 8px 24px rgba(6,79,101,.25)}

/* Service card SVG icons */
.icon svg{width:22px;height:22px;stroke:var(--blue-dark);fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}

/* Before/after + steps (struvite) */
.beforeafter{position:relative;border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow)}
.beforeafter img{width:100%;display:block;aspect-ratio:16/9;object-fit:cover}
.beforeafter .ba-label{position:absolute;bottom:14px;padding:6px 14px;border-radius:999px;font-weight:800;font-size:.85rem;color:#fff}
.beforeafter .ba-before{left:14px;background:rgba(160,60,40,.85)}
.beforeafter .ba-after{right:14px;background:rgba(106,168,79,.9)}
.steps{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;counter-reset:step}
.steps article{position:relative;background:#fff;border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--card-shadow);padding:28px 24px 24px}
.steps article::before{counter-increment:step;content:counter(step);position:absolute;top:-16px;left:24px;width:36px;height:36px;display:grid;place-items:center;border-radius:50%;background:linear-gradient(135deg,var(--blue-dark),var(--aqua));color:#fff;font-weight:800}
.steps h3{margin-top:6px}
.steps p{color:var(--ink-soft);margin:0}

/* Scroll reveal */
@media (prefers-reduced-motion:no-preference){
  .reveal{opacity:0;transform:translateY(18px);transition:opacity .6s ease,transform .6s ease}
  .reveal.in{opacity:1;transform:none}
}

@media (max-width:980px){ .steps{grid-template-columns:1fr} .lang-btn span.lang-full{display:none} }

/* ==================== V3 POLISH ==================== */
.service-card,.hub-card,.blog-card,.detail-card,.application-grid article,.product-card,.stat-card{transition:transform .18s ease, box-shadow .18s ease}
.service-card:hover,.hub-card:hover,.blog-card:hover,.detail-card:hover,.application-grid article:hover,.product-card:hover{transform:translateY(-4px);box-shadow:0 20px 48px rgba(6,79,101,.14)}
.button{transition:transform .15s ease, box-shadow .15s ease, filter .15s ease}
.button:hover{transform:translateY(-2px)}
.button.primary:hover{box-shadow:0 14px 34px rgba(6,79,101,.32)}
.card-link,.text-link{transition:gap .15s ease, color .15s ease}
.card-link:hover,.text-link:hover{color:var(--blue)}
a{transition:color .15s ease}

/* Results / stat cards (metal removal etc.) */
.result-band{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.stat-card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--card-shadow);padding:30px 26px;text-align:left}
.stat-card strong{display:block;font-size:3rem;line-height:1;color:var(--blue-dark);font-family:"Source Serif 4",Georgia,serif}
.stat-card span{display:block;margin-top:10px;color:var(--ink-soft);font-weight:700}

/* Contact quick-action links */
.quick-links{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-top:8px}
.quick-link{display:flex;gap:14px;align-items:flex-start;padding:22px;background:#fff;border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--card-shadow);text-decoration:none;color:var(--ink);transition:transform .18s ease,box-shadow .18s ease}
.quick-link:hover{transform:translateY(-4px);box-shadow:0 20px 48px rgba(6,79,101,.14)}
.quick-link .ql-ic{flex:none;width:44px;height:44px;border-radius:12px;display:grid;place-items:center;background:rgba(80,192,189,.16);color:var(--blue-dark)}
.quick-link .ql-ic svg{width:22px;height:22px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.quick-link h3{margin:2px 0 4px;font-size:1rem}
.quick-link p{margin:0;color:var(--ink-soft);font-size:.9rem}

/* Map / location */
.map-frame{width:100%;border:0;border-radius:var(--radius);box-shadow:var(--shadow);min-height:340px;background:#e9f5f5}
.contact-split{display:grid;grid-template-columns:1.05fr .95fr;gap:40px;align-items:stretch}

/* ORP chart */
.orp-chart{background:#fff;border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--card-shadow);padding:30px}
.orp-row{display:grid;grid-template-columns:210px 1fr 92px;align-items:center;gap:18px;padding:14px 0;border-top:1px solid var(--line)}
.orp-row:first-of-type{border-top:0}
.orp-row .orp-name{font-weight:800;color:var(--ink)}
.orp-row .orp-name small{display:block;font-weight:600;color:var(--muted);font-size:.8rem}
.orp-track{position:relative;height:16px;border-radius:999px;background:linear-gradient(90deg,#e6f2f2,#dbeeee)}
.orp-fill{position:absolute;top:0;bottom:0;border-radius:999px;background:linear-gradient(90deg,var(--aqua),var(--blue-dark))}
.orp-val{text-align:right;font-weight:800;color:var(--blue-dark)}
.orp-scale{display:flex;justify-content:space-between;margin:6px 0 0;color:var(--muted);font-size:.78rem;font-weight:700;padding-left:228px}
@media (max-width:720px){.result-band,.quick-links{grid-template-columns:1fr}.contact-split{grid-template-columns:1fr}.orp-row{grid-template-columns:1fr;gap:6px}.orp-scale{display:none}}

/* ==================== V3.1 PHOTO ANIMATIONS ==================== */
@media (prefers-reduced-motion: no-preference){
  /* Blur-up reveal as each photo enters view */
  .img-anim{opacity:0;transform:translateY(16px);filter:blur(12px);transition:opacity .7s ease, transform .8s cubic-bezier(.2,.7,.2,1), filter .8s ease;will-change:opacity,transform,filter}
  .img-anim.in{opacity:1;transform:none;filter:blur(0)}
  /* Gentle zoom on card imagery when hovered */
  .service-card .card-image,.hub-card img,.blog-card img,.detail-card>img,.application-grid article>img,.feature-media img,.beforeafter img{transition:transform .6s cubic-bezier(.2,.7,.2,1)}
  .service-card:hover .card-image,.hub-card:hover img,.blog-card:hover img,.detail-card:hover>img,.application-grid article:hover>img,.image-feature:hover .feature-media img{transform:scale(1.05)}
  /* Subtle cinematic drift on the homepage hero */
  .hero img.hero-bg{animation:heroDrift 26s ease-in-out infinite alternate}
  @keyframes heroDrift{from{transform:scale(1.04)}to{transform:scale(1.1)}}
}

/* ==================== BLOG ARTICLES ==================== */
.post-hero{position:relative;overflow:hidden;isolation:isolate;padding:150px 0 56px;color:#fff}
.post-hero img.hero-bg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-2}
.post-hero .hero-overlay{background:linear-gradient(120deg,rgba(6,45,58,.93),rgba(6,45,58,.62))}
.post-hero-inner{width:min(100% - 36px,var(--max));margin:0 auto}
.post-cat{display:inline-block;padding:6px 13px;border-radius:999px;background:rgba(80,192,189,.24);color:#fff;font-weight:800;font-size:.75rem;text-transform:uppercase;letter-spacing:.04em;margin-bottom:14px}
.post-hero h1{margin:0;font-family:"Source Serif 4",Georgia,serif;font-size:2.9rem;line-height:1.08;max-width:920px}
.post-meta{margin-top:16px;color:rgba(255,255,255,.85);font-weight:600;font-size:.95rem}
.post-wrap{width:min(100% - 36px,760px);margin:0 auto;padding:60px 0}
.post-body{color:var(--ink-soft);font-size:1.09rem;line-height:1.75}
.post-body>p:first-of-type{font-size:1.2rem;color:var(--ink);line-height:1.6}
.post-body h2{font-family:"Source Serif 4",Georgia,serif;color:var(--ink);font-size:1.7rem;line-height:1.2;margin:2.1em 0 .55em}
.post-body h3{color:var(--ink);font-size:1.18rem;margin:1.5em 0 .5em}
.post-body p{margin:0 0 1.1em}
.post-body ul,.post-body ol{margin:0 0 1.3em;padding-left:1.2em}
.post-body li{margin:.4em 0}
.post-body blockquote.pull{margin:1.6em 0;padding:20px 26px;border-left:4px solid var(--aqua);background:rgba(80,192,189,.08);border-radius:0 10px 10px 0;font-family:"Source Serif 4",Georgia,serif;font-size:1.28rem;color:var(--blue-dark);font-weight:600}
.post-body strong{color:var(--ink)}
.post-body a{color:var(--blue-dark);font-weight:700}
.post-cta{margin-top:44px;padding:28px 30px;border-radius:var(--radius);background:linear-gradient(135deg,var(--blue-dark),#08677f);color:#fff}
.post-cta h3{color:#fff;margin:0 0 6px;font-size:1.3rem}
.post-cta p{margin:0 0 16px;color:rgba(255,255,255,.86)}
.post-nav{display:flex;justify-content:space-between;gap:16px;margin-top:34px;padding-top:22px;border-top:1px solid var(--line)}
.post-nav a{font-weight:800;color:var(--blue-dark);text-decoration:none}
/* Related band: .content-section IS the centred 1180px container, so a plain
   background only paints inside it and leaves white strips at the screen edges.
   The box-shadow spread paints the tint edge to edge; clip-path stops that
   spread from creating a horizontal scrollbar. Matches the .page-nav band. */
.content-section.related{position:relative;background:#eef7f7;
  box-shadow:0 0 0 100vmax #eef7f7;clip-path:inset(0 -100vmax);
  padding-block:72px}
.blog-filters{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:28px}
.blog-filters button{border:1px solid var(--line);background:#fff;border-radius:999px;padding:8px 15px;font:inherit;font-weight:700;font-size:.85rem;color:var(--ink-soft);cursor:pointer;transition:all .15s ease}
.blog-filters button.active,.blog-filters button:hover{background:var(--blue-dark);color:#fff;border-color:var(--blue-dark)}
.blog-card.hide{display:none}
@media(max-width:620px){.post-hero h1{font-size:2rem}.post-body{font-size:1.04rem}}

/* ==================== BLOG IN-ARTICLE FIGURES ==================== */
.post-fig{margin:2.2em 0}
.post-fig img{width:100%;height:auto;border-radius:12px;border:1px solid var(--line);box-shadow:0 10px 30px rgba(6,79,101,.10);background:#fff;display:block}
.post-fig figcaption{margin-top:11px;font-size:.9rem;color:var(--ink-soft);font-style:italic;text-align:center;line-height:1.5}

/* ==================== V4: PAGE NAV + DATA COMPONENTS ==================== */
/* Universal "where to next" navigation block (goes at the end of <main> on every page) */
.page-nav{background:#eef7f7;border-top:1px solid var(--line)}
.page-nav .pn-inner{width:min(100% - 36px,var(--max));margin:0 auto;padding:56px 0}
.page-nav .section-heading{margin-bottom:22px}
.pn-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
.pn-card{display:flex;flex-direction:column;gap:6px;background:#fff;border:1px solid var(--line);border-radius:12px;padding:18px 20px;text-decoration:none;color:var(--ink);box-shadow:var(--card-shadow);transition:transform .18s ease,box-shadow .18s ease}
.pn-card:hover{transform:translateY(-4px);box-shadow:0 18px 40px rgba(6,79,101,.14)}
.pn-card .pn-k{font-size:.72rem;font-weight:800;text-transform:uppercase;letter-spacing:.05em;color:var(--aqua)}
.pn-card h3,.pn-card h4{margin:0;font-size:1.05rem;color:var(--blue-dark)}
.pn-card p{margin:0;font-size:.9rem;color:var(--ink-soft)}
.pn-card .pn-go{margin-top:auto;font-weight:800;color:var(--blue-dark);font-size:.9rem}
.pn-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:22px;align-items:center}
.pn-actions .lead{font-weight:700;color:var(--ink);margin-right:6px}
@media(max-width:760px){.pn-grid{grid-template-columns:1fr}}

/* Data / spec tables */
.data-table{width:100%;border-collapse:collapse;margin:8px 0 4px;font-size:.95rem;background:#fff;border:1px solid var(--line);border-radius:12px;overflow:hidden}
.data-table caption{caption-side:bottom;text-align:left;font-size:.82rem;color:var(--ink-soft);padding:10px 4px 0;font-style:italic}
.data-table th,.data-table td{padding:11px 14px;text-align:left;border-bottom:1px solid var(--line)}
.data-table thead th{background:var(--blue-dark);color:#fff;font-size:.8rem;text-transform:uppercase;letter-spacing:.03em}
.data-table tbody tr:last-child td{border-bottom:0}
.data-table tbody tr:nth-child(even){background:#f6fbfb}
.data-table td.hi{font-weight:800;color:var(--blue-dark)}
.table-wrap{overflow-x:auto}

/* Callout box */
.callout{display:flex;gap:16px;align-items:flex-start;background:linear-gradient(135deg,rgba(80,192,189,.10),rgba(6,79,101,.06));border:1px solid var(--line);border-left:4px solid var(--aqua);border-radius:12px;padding:20px 22px;margin:22px 0}
.callout .ci{flex:0 0 auto;width:40px;height:40px;border-radius:10px;background:var(--blue-dark);color:#fff;display:flex;align-items:center;justify-content:center;font-weight:800;font-size:1.1rem}
.callout h3,.callout h4{margin:0 0 4px;color:var(--blue-dark);font-size:1.05rem}
.callout p{margin:0;color:var(--ink-soft)}

/* Prose block for expanded copy */
.prose{max-width:820px}
.prose p{margin:0 0 1.05em;color:var(--ink-soft);line-height:1.75}
.prose h2,.prose h3{color:var(--ink);margin:1.5em 0 .5em;font-size:1.2rem}
.prose ul{margin:0 0 1.2em;padding-left:1.15em;color:var(--ink-soft)}
.prose li{margin:.35em 0}
.prose strong{color:var(--ink)}

/* ==================== V4.1: NAVIGATION UPGRADES ==================== */
/* Inline contextual cross-links (auto-linked key terms) */
.ilink{color:var(--blue);font-weight:600;text-decoration:underline;text-decoration-color:rgba(2,107,134,.38);text-underline-offset:2px;text-decoration-thickness:1px}
.ilink:hover{text-decoration-color:var(--blue)}
/* Persistent header Contact CTA */
.site-nav a.nav-cta{color:#fff;background:linear-gradient(135deg,var(--blue-dark),var(--blue));padding:10px 16px}
.site-nav a.nav-cta:hover{color:#fff;background:linear-gradient(135deg,var(--blue-dark),var(--blue));filter:brightness(1.08)}
/* Back-to-top floating button */
#to-top{position:fixed;right:20px;bottom:20px;z-index:60;width:46px;height:46px;border:0;border-radius:50%;background:var(--blue-dark);color:#fff;font-size:1.25rem;font-weight:800;cursor:pointer;box-shadow:0 10px 30px rgba(6,79,101,.32);opacity:0;transform:translateY(12px);pointer-events:none;transition:opacity .22s ease,transform .22s ease}
#to-top.show{opacity:1;transform:translateY(0);pointer-events:auto}
#to-top:hover{background:var(--blue)}
/* Skip-to-content (accessibility) */
.skip-link{position:absolute;left:-9999px;top:0;z-index:100;background:var(--blue-dark);color:#fff;padding:10px 16px;border-radius:0 0 8px 0;font-weight:700}
.skip-link:focus{left:0}
/* scroll offset so anchor jumps clear the fixed header */
:target{scroll-margin-top:110px}
/* clickable content cards get a pointer + arrow affordance */
a.application-card{text-decoration:none;color:inherit}

/* ==================== V5: INDUSTRIES / PRODUCTS / CASE STUDIES / COMPARE / CALC ==================== */
/* Credibility strip — certifications + validators */
.cred-strip{background:var(--blue-dark);color:#fff}
.cred-strip .cred-inner{width:min(100% - 36px,var(--max));margin:0 auto;padding:34px 0;display:grid;gap:22px}
.cred-strip .cred-lead{font-size:.78rem;font-weight:800;text-transform:uppercase;letter-spacing:.08em;color:var(--aqua);text-align:center}
.cred-badges{display:flex;flex-wrap:wrap;gap:12px;justify-content:center}
.cred-badge{display:inline-flex;align-items:center;gap:8px;background:rgba(255,255,255,.10);border:1px solid rgba(255,255,255,.22);border-radius:10px;padding:12px 18px;font-weight:800;font-size:.9rem}
.cred-badge b{color:var(--aqua)}
.validated-by{display:flex;flex-wrap:wrap;gap:10px 26px;justify-content:center;color:rgba(255,255,255,.82);font-weight:600;font-size:.92rem}
.validated-by span{white-space:nowrap}
.validated-by span::before{content:"◆";color:var(--aqua);margin-right:8px;font-size:.7em;vertical-align:middle}
/* light variant for inside content sections */
.cred-strip.light{background:#eaf4f4;color:var(--ink)}
.cred-strip.light .cred-badge{background:#fff;border-color:var(--line);color:var(--blue-dark)}
.cred-strip.light .validated-by{color:var(--ink-soft)}
.cred-strip.light .cred-lead{color:var(--blue)}

/* Compare table: highlight the Jenfitch column/winner */
.data-table td.win{background:rgba(80,192,189,.14);font-weight:800;color:var(--blue-dark)}
.data-table thead th.win{background:var(--blue)}

/* Case-study result band (big numbers at top) */
.cs-results{display:grid;grid-template-columns:repeat(3,1fr);gap:1px;background:var(--line);border-block:1px solid var(--line);margin:6px 0}
.cs-results div{background:#e9f5f5;padding:26px 24px}
.cs-results strong{display:block;font-size:2.4rem;line-height:1;color:var(--blue-dark)}
.cs-results span{display:block;margin-top:8px;color:var(--ink-soft);font-weight:700;font-size:.9rem}
.cs-meta{display:flex;flex-wrap:wrap;gap:8px 22px;color:var(--ink-soft);font-weight:600;font-size:.9rem;margin:6px 0 0}
.cs-meta span::before{content:"•";color:var(--aqua);margin-right:8px}
@media(max-width:640px){.cs-results{grid-template-columns:1fr}}

/* Interactive calculator */
.calc{display:grid;grid-template-columns:0.9fr 1.1fr;gap:26px;background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:var(--card-shadow);padding:26px;margin:8px 0}
.calc .calc-in label{display:block;font-weight:700;color:var(--ink);margin:14px 0 6px;font-size:.92rem}
.calc .calc-in label:first-child{margin-top:0}
.calc .calc-in input,.calc .calc-in select{width:100%;padding:11px 13px;border:1px solid var(--line);border-radius:8px;font:inherit;background:#f6fbfb}
.calc .calc-in input[type=range]{padding:0}
.calc .calc-out{background:linear-gradient(135deg,var(--blue-dark),#08677f);color:#fff;border-radius:12px;padding:24px;display:flex;flex-direction:column;justify-content:center;gap:14px}
.calc .calc-out .co-row{display:flex;justify-content:space-between;align-items:baseline;gap:12px;border-bottom:1px solid rgba(255,255,255,.18);padding-bottom:12px}
.calc .calc-out .co-row:last-child{border-bottom:0;padding-bottom:0}
.calc .calc-out .co-k{color:rgba(255,255,255,.82);font-weight:600;font-size:.92rem}
.calc .calc-out .co-v{font-size:1.9rem;font-weight:800;color:#fff}
.calc .calc-out .co-v small{font-size:.9rem;color:var(--aqua);font-weight:700}
.calc-note{font-size:.82rem;color:var(--ink-soft);font-style:italic;margin-top:8px}
@media(max-width:720px){.calc{grid-template-columns:1fr}}

/* Clickable content cards (wrap application-grid / two-up article cards) */
a.card-link{display:block;text-decoration:none;color:inherit;height:100%}
a.card-link .application-grid article,a.card-link article{height:100%}
/* Block-level card wrappers use the inner .card-go cue — suppress the stray inline ↗ arrow */
a.card-link::after{content:none}

/* Hub-card click affordance (obvious "browse" cue) */
.hub-card{position:relative}
.hub-card .pad{display:flex;flex-direction:column}
.hub-go{display:inline-flex;align-items:center;gap:7px;margin-top:14px;color:var(--blue-dark);font-weight:800;font-size:.92rem}
.hub-go::after{content:"\2192";transition:transform .18s ease}
.hub-card:hover .hub-go{color:var(--blue)}
.hub-card:hover .hub-go::after{transform:translateX(5px)}
.hub-card::after{content:"";position:absolute;inset:0;border:2px solid transparent;border-radius:var(--radius);transition:border-color .18s ease;pointer-events:none}
.hub-card:hover::after{border-color:var(--aqua)}

/* Clickable-card discoverability cue */
.card-link .pad{display:flex;flex-direction:column}
.card-link .card-go{display:inline-flex;align-items:center;gap:6px;margin-top:12px;color:var(--blue-dark);font-weight:800;font-size:.86rem}
.card-link .card-go::after{content:"\2192";transition:transform .18s ease}
.card-link:hover .card-go{color:var(--blue)}
.card-link:hover .card-go::after{transform:translateX(4px)}

/* Real certification logo chips */
.cred-badge.logo{background:#fff;color:var(--blue-dark);gap:11px;padding:8px 16px 8px 10px}
.cred-badge.logo img{width:auto;height:46px;display:block}
.cred-badge.logo > span{font-weight:800;font-size:.85rem;line-height:1.15;text-align:left}
.cred-strip .cred-badge.logo{border-color:rgba(255,255,255,.4)}

/* ---------- Accessibility: visible keyboard focus ---------- */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, [tabindex]:focus-visible, .card-link:focus-visible, summary:focus-visible {
  outline: 3px solid var(--aqua);
  outline-offset: 2px;
  border-radius: 4px;
}
.button:focus-visible { outline-offset: 3px; }

/* ---------- Inquiry form ---------- */
.inquiry-form { display: grid; gap: 18px; max-width: 820px; }
.inquiry-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.inquiry-form label { display: grid; gap: 7px; font-weight: 700; font-size: 0.9rem; color: var(--ink-soft); }
.inquiry-form input, .inquiry-form select, .inquiry-form textarea {
  font: inherit; font-weight: 500; color: var(--ink);
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--white); width: 100%;
}
.inquiry-form input:focus, .inquiry-form select:focus, .inquiry-form textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(2,107,134,0.14);
}
.inquiry-form textarea { resize: vertical; }
.inquiry-form .form-actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 4px; }
.inquiry-form .form-note { margin: 0; font-weight: 500; font-size: 0.9rem; color: var(--muted); }
@media (max-width: 720px) { .inquiry-form .form-row { grid-template-columns: 1fr; } }

/* ---------- Inquiry form status + field errors ---------- */
.form-status { padding: 14px 16px; border-radius: 8px; font-weight: 700; font-size: 0.95rem; margin-bottom: 4px; }
.form-status[data-fs-success] { background: rgba(106,168,79,0.14); color: #3f6b28; border: 1px solid rgba(106,168,79,0.4); }
.form-status-error { background: rgba(200,60,60,0.10); color: #a12b2b; border: 1px solid rgba(200,60,60,0.35); }
.field-error { display: block; margin-top: 5px; color: #a12b2b; font-weight: 700; font-size: 0.82rem; }
.inquiry-form [aria-invalid="true"] { border-color: #c83c3c; box-shadow: 0 0 0 3px rgba(200,60,60,0.14); }

/* ---------- Single leadership card (full width) ---------- */
.two-up.one-up { grid-template-columns: 1fr; max-width: 720px; }

/* ---------- Footer legal links ---------- */
.footer-legal a { color: rgba(255,255,255,0.8); text-decoration: none; }
.footer-legal a:hover { color: #fff; text-decoration: underline; }

/* ---------- Site search ---------- */
.search-toggle {
  border: 0; background: transparent; cursor: pointer; color: var(--ink-soft);
  padding: 8px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center;
}
.search-toggle:hover { background: rgba(2,107,134,0.09); color: var(--blue-dark); }
.search-modal[hidden] { display: none !important; }
.search-modal {
  position: fixed; inset: 0; z-index: 200; background: rgba(6,28,33,0.55);
  backdrop-filter: blur(4px); display: flex; align-items: flex-start; justify-content: center;
  padding: 90px 16px 16px;
}
.search-box {
  width: min(100%, 640px); background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; max-height: 80vh; display: flex; flex-direction: column;
}
.search-inp-wrap { display: flex; align-items: center; gap: 10px; padding: 16px 18px; border-bottom: 1px solid var(--line); color: var(--muted); }
.search-inp-wrap input { flex: 1; border: 0; outline: none; font: inherit; font-size: 1.05rem; color: var(--ink); background: transparent; }
.search-close { border: 0; background: transparent; font-size: 1.6rem; line-height: 1; color: var(--muted); cursor: pointer; padding: 0 4px; }
.search-close:hover { color: var(--ink); }
.search-results { list-style: none; margin: 0; padding: 8px; overflow-y: auto; }
.search-results li { margin: 0; }
.search-results a { display: block; padding: 11px 14px; border-radius: 8px; text-decoration: none; color: var(--ink); }
.search-results a:hover { background: rgba(2,107,134,0.07); }
.sr-t { display: block; font-weight: 700; color: var(--blue-dark); }
.sr-d { display: block; font-size: 0.85rem; color: var(--muted); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sr-badge { float: right; font-size: 0.68rem; font-weight: 800; background: rgba(80,192,189,0.18); color: var(--blue-dark); padding: 2px 7px; border-radius: 999px; margin-left: 8px; }
.search-empty { padding: 20px 16px; color: var(--muted); text-align: center; }
.search-empty a { color: var(--blue); }
@media (max-width: 980px) { .search-modal { padding-top: 74px; } }

/* ==================== V22: whole-card click target for service cards ==================== */
.service-card{position:relative}
.service-card .card-link::after{content:"";position:absolute;inset:0;z-index:1}
.service-card .card-body p a,.service-card .card-body h3 a{position:relative;z-index:2}
.service-card:focus-within{box-shadow:0 0 0 3px rgba(80,192,189,.55),0 20px 48px rgba(6,79,101,.14)}

/* ==================== V22: 2-up market grid + mobile hero contrast ==================== */
.application-grid.cols-2,.detail-grid.cols-2{grid-template-columns:repeat(2,1fr)}
.application-grid.tall img{height:260px}
.grid-links{margin:20px 0 0;color:var(--ink-soft);font-size:.95rem}
.grid-links a{color:var(--blue-dark);font-weight:700}
@media(max-width:980px){.application-grid.cols-2,.detail-grid.cols-2{grid-template-columns:repeat(2,1fr)}}
@media(max-width:620px){
  .application-grid.cols-2,.detail-grid.cols-2{grid-template-columns:1fr}
  .application-grid.tall img{height:200px}
  /* Hero: vertical scrim so the headline never sits on the bright sphere */
  .hero .hero-overlay{background:
    linear-gradient(0deg, rgba(5,29,35,.94) 0%, rgba(5,33,42,.86) 34%, rgba(5,45,58,.55) 62%, rgba(5,45,58,.34) 100%),
    linear-gradient(90deg, rgba(5,29,35,.5), rgba(5,45,58,.2))}
  .hero h1{text-shadow:0 2px 18px rgba(3,20,26,.5)}
}
.hub-grid.cols-3{grid-template-columns:repeat(3,1fr)}
@media(max-width:980px){.hub-grid.cols-3{grid-template-columns:repeat(2,1fr)}}
@media(max-width:620px){.hub-grid.cols-3{grid-template-columns:1fr}}

/* ==================== V22: Documents page — featured covers + live filter ==================== */
.featured-docs{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.featured-doc{display:flex;flex-direction:column;background:var(--white);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--card-shadow);overflow:hidden;text-decoration:none;color:var(--ink);transition:transform .14s ease,box-shadow .14s ease}
.featured-doc:hover{transform:translateY(-3px);box-shadow:0 20px 48px rgba(6,79,101,.16)}
.featured-doc img{width:100%;height:230px;object-fit:cover;object-position:top center;display:block;border-bottom:1px solid var(--line);background:#fff}
.featured-doc .fd-body{padding:18px 20px 20px;display:flex;flex-direction:column;gap:8px;flex:1}
.fd-kicker{font-size:.7rem;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:var(--blue)}
.featured-doc h3{margin:0;font-size:1.14rem;color:var(--blue-dark)}
.featured-doc p{margin:0;color:var(--ink-soft);font-size:.94rem;line-height:1.55;flex:1}
.fd-go{font-weight:800;color:var(--blue-dark);font-size:.92rem}
.fd-go em{display:block;font-style:normal;font-weight:600;font-size:.78rem;color:var(--muted);margin-top:3px;letter-spacing:.02em}

.doc-meta{display:block;font-style:normal;font-weight:600;font-size:.78rem;color:var(--muted);margin-top:3px;letter-spacing:.02em}

.doc-filter-wrap{max-width:640px}
.doc-filter{display:flex;align-items:center;gap:10px;background:var(--white);border:1px solid var(--line);border-radius:999px;padding:10px 16px;box-shadow:var(--card-shadow)}
.doc-filter:focus-within{border-color:var(--aqua);box-shadow:0 0 0 3px rgba(80,192,189,.35)}
.doc-filter svg{flex:none;width:19px;height:19px;fill:none;stroke:var(--blue);stroke-width:2.1;stroke-linecap:round}
.doc-filter input{flex:1;border:0;outline:0;background:transparent;font:inherit;font-size:.98rem;color:var(--ink);min-width:0}
.doc-filter input::-webkit-search-cancel-button{display:none}
#doc-filter-clear{flex:none;border:0;background:transparent;cursor:pointer;font-size:1.4rem;line-height:1;color:var(--muted);padding:0 2px}
#doc-filter-clear:hover{color:var(--blue-dark)}
.doc-filter-count{margin:10px 2px 0;color:var(--ink-soft);font-size:.88rem}
.doc-empty{margin:18px 0 0;color:var(--ink-soft);font-size:1rem}
.doc-link[hidden],.doc-section[hidden]{display:none!important}

@media(max-width:980px){.featured-docs{grid-template-columns:repeat(3,1fr);gap:14px}.featured-doc img{height:190px}}
@media(max-width:760px){.featured-docs{grid-template-columns:1fr}.featured-doc img{height:260px}}
.doc-link .doc-thumb{flex:none;width:62px;height:80px;object-fit:cover;object-position:top center;border:1px solid var(--line);border-radius:6px;background:#fff;box-shadow:0 2px 8px rgba(6,79,101,.09)}
.doc-link{align-items:center}
@media(max-width:620px){.doc-link .doc-thumb{width:52px;height:68px}}

/* ==================== V22: Industries symptom table ==================== */
.data-table td a{color:var(--blue-dark);font-weight:700;text-decoration:none;border-bottom:1.5px solid rgba(80,192,189,.6)}
.data-table td a:hover{color:var(--blue);border-bottom-color:var(--blue)}
.data-table td.hi{width:24%}

/* ---------- V22: 404 search ---------- */
.err-search-h{margin:38px 0 12px;font-size:1.15rem;color:var(--blue-dark)}
.search-toggle.err-search{display:flex;width:100%;max-width:520px;margin:0 auto;gap:10px;align-items:center;justify-content:flex-start;
  background:var(--white);border:1px solid var(--line);border-radius:999px;padding:12px 18px;box-shadow:var(--card-shadow);
  color:var(--ink-soft);font:inherit;font-size:1rem;text-align:left}
.search-toggle.err-search:hover{background:var(--white);border-color:var(--aqua);box-shadow:0 0 0 3px rgba(80,192,189,.28);color:var(--blue-dark)}
.search-toggle.err-search svg{flex:none;width:19px;height:19px;fill:none;stroke:var(--blue);stroke-width:2.1;stroke-linecap:round}
.search-toggle.err-search span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.search-toggle.err-search kbd{flex:none;font:inherit;font-size:.78rem;font-weight:700;color:var(--muted);
  border:1px solid var(--line);border-bottom-width:2px;border-radius:5px;padding:1px 7px;background:var(--paper)}
@media(max-width:620px){.search-toggle.err-search kbd{display:none}}

.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* ---- author byline / author box ---- */
.author-box{display:flex;gap:18px;align-items:center;margin-top:40px;padding:22px 24px;background:var(--white);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--card-shadow)}
.author-box .author-photo{flex:none;width:76px;height:76px;border-radius:50%;overflow:hidden;background:rgba(80,192,189,.16);display:grid;place-items:center;color:var(--blue-dark)}
.author-box .author-photo img{width:100%;height:100%;object-fit:cover;display:block}
.author-box .author-photo svg{width:34px;height:34px;stroke:currentColor;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.author-box .author-name{margin:0;font-size:1.05rem;font-weight:700;color:var(--ink)}
.author-box .author-role{margin:2px 0 0;font-size:.9rem;color:var(--blue-dark);font-weight:600}
.author-box .author-bio{margin:8px 0 0;font-size:.92rem;color:var(--ink-soft)}
@media (max-width:600px){.author-box{flex-direction:column;align-items:flex-start;text-align:left}}


/* ==================================================================================
   V24 REMEDIATION BLOCK — accessibility + mobile-legibility fixes
   (Fix 1 is applied in place on the .footer-col heading rule, ~line 287.)
   All colours use existing brand tokens. No HTML/JS changes.
   ================================================================================== */

/* ---------- FIX 2: links inside dark teal bands were dark-teal-on-teal (~1.5:1) ----------
   .cta-band is linear-gradient(135deg, var(--blue-dark), #08677f). White text on the
   lightest stop (#08677f) measures ~6.4:1; --aqua would only reach ~2.9:1 there, so the
   link text stays white and --aqua is used for the underline/hover accent instead. */
.cta-band a:not(.button),
.split-band.dark a:not(.button),
.cred-strip.dark a:not(.button) {
  color: var(--white);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.55);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.cta-band a:not(.button):hover,
.split-band.dark a:not(.button):hover,
.cred-strip.dark a:not(.button):hover {
  color: var(--white);
  text-decoration-color: var(--aqua);
  text-decoration-thickness: 2px;
}
.cta-band a:not(.button):focus-visible,
.split-band.dark a:not(.button):focus-visible,
.cred-strip.dark a:not(.button):focus-visible {
  outline: 2px solid var(--aqua);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- FIX 6: inline links in dark photo heroes ----------
   .page-hero / .post-hero overlay is rgba(6,45,58,.62–.94) over photography, so the
   mid-teal --blue used by .ilink is both low-contrast and dimmer than the body copy.
   Near-white keeps it >=4.5:1 even over the lightest corner of the overlay.
   .breadcrumb is excluded (already --aqua on the darkest stop, ~6.6:1) and so are buttons. */
.page-hero p:not(.breadcrumb) a:not(.button),
.post-hero p:not(.breadcrumb) a:not(.button),
.page-hero li a:not(.button),
.post-hero li a:not(.button) {
  color: var(--white);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.55);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.page-hero p:not(.breadcrumb) a:not(.button):hover,
.post-hero p:not(.breadcrumb) a:not(.button):hover,
.page-hero li a:not(.button):hover,
.post-hero li a:not(.button):hover {
  color: var(--white);
  text-decoration-color: var(--aqua);
  text-decoration-thickness: 2px;
}
.page-hero a:not(.button):focus-visible,
.post-hero a:not(.button):focus-visible {
  outline: 2px solid var(--aqua);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- FIX 3: scrollable data tables need an affordance, and an unclipped caption ----------
   .table-wrap is the scroll container. container-type:inline-size lets the <caption>
   size itself to the *visible* width (100cqi) instead of the full table width, so it is
   no longer clipped; position:sticky keeps it aligned to the left of the scrollport. */
.table-wrap {
  position: relative;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  container-type: inline-size;
}
.table-wrap > .data-table > caption {
  position: sticky;
  left: 0;
  width: 100cqi;
  max-width: 100cqi;
  box-sizing: border-box;
}
/* Right-edge fade. Base state is invisible; the scroll-driven animation below only has a
   timeline when the wrapper actually has horizontal overflow, so a table that fits shows
   nothing at all. It also fades out as the reader reaches the end of the scroll. */
.table-wrap::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 46px;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(to left, rgba(9, 33, 38, 0.30), rgba(9, 33, 38, 0) 46px);
}
@supports (animation-timeline: scroll()) {
  .table-wrap::after {
    /* Longhands on purpose: the `animation` shorthand resets animation-duration to 0s,
       which collapses a scroll-driven animation onto its final keyframe. */
    animation-name: tablewrap-scroll-hint;
    animation-duration: auto;
    animation-timing-function: linear;
    animation-fill-mode: both;
    animation-timeline: scroll(nearest inline);
  }
  @keyframes tablewrap-scroll-hint {
    0%   { opacity: 1; }
    80%  { opacity: 1; }
    100% { opacity: 0; }
  }
}
/* Fallback for engines without scroll-driven animations: show the hint at the narrow
   widths where these tables always overflow. */
@supports not (animation-timeline: scroll()) {
  @media (max-width: 760px) {
    .table-wrap::after { opacity: 1; }
  }
}

/* ---------- FIX 4: the industries.html symptom -> driver -> program -> proof matrix ----------
   Chosen approach: collapse to stacked cards below 600px with CSS-generated column labels.
   The <td>s carry no data-label attributes (HTML is off-limits), so the labels are keyed to
   td:nth-of-type() for this one table only. Scoped via :has() on the unique
   #find-your-problem heading so no other .data-table on the site is affected.
   Rationale: at 390px this table is 4 columns x 12 rows, ~2,500px tall, 2-3 words per line,
   with the whole "Proof" column off-screen. Horizontal scrolling alone would still hide a
   quarter of the content behind a gesture; stacking makes every cell readable at full width. */
@media (max-width: 600px) {
  .content-section:has(#find-your-problem) .table-wrap {
    overflow-x: visible;
    container-type: normal;
  }
  .content-section:has(#find-your-problem) .table-wrap::after { display: none; }

  /* The table box itself stays display:table so <caption> keeps caption-side:bottom;
     only the internal row/cell boxes are switched to block. */
  .content-section:has(#find-your-problem) .data-table {
    width: 100%;
    border: 0;
    border-radius: 0;
    background: transparent;
    overflow: visible;
    font-size: 0.95rem;
    margin: 4px 0 0;
  }
  /* Header row is redundant once every cell is labelled — hide it accessibly. */
  .content-section:has(#find-your-problem) .data-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    white-space: nowrap;
    clip-path: inset(50%);
    border: 0;
  }
  .content-section:has(#find-your-problem) .data-table tbody { display: block; }
  .content-section:has(#find-your-problem) .data-table tbody tr,
  .content-section:has(#find-your-problem) .data-table tbody tr:nth-child(even) {
    display: block;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--card-shadow);
    margin: 0 0 14px;
    padding: 6px 0 10px;
    overflow: hidden;
  }
  .content-section:has(#find-your-problem) .data-table tbody td,
  .content-section:has(#find-your-problem) .data-table tbody td.hi {
    display: block;
    width: auto;
    border-bottom: 0;
    padding: 9px 18px 0;
    line-height: 1.45;
  }
  .content-section:has(#find-your-problem) .data-table tbody td::before {
    display: block;
    margin-bottom: 3px;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
  }
  .content-section:has(#find-your-problem) .data-table tbody td:nth-of-type(1)::before { content: "What you're seeing"; }
  .content-section:has(#find-your-problem) .data-table tbody td:nth-of-type(2)::before { content: "What's driving it"; }
  .content-section:has(#find-your-problem) .data-table tbody td:nth-of-type(3)::before { content: "Program"; }
  .content-section:has(#find-your-problem) .data-table tbody td:nth-of-type(4)::before { content: "Proof"; }
  /* First cell is the symptom — keep it as the card title. */
  .content-section:has(#find-your-problem) .data-table tbody td.hi {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--blue-dark);
    padding-bottom: 4px;
  }
  .content-section:has(#find-your-problem) .data-table tbody td:nth-of-type(2) { color: var(--ink-soft); }
  /* Keep it a real caption so caption-side:bottom still applies; just undo the
     sticky/100cqi sizing, which is only needed while the table scrolls horizontally. */
  .content-section:has(#find-your-problem) .data-table > caption {
    display: table-caption;
    caption-side: bottom;
    position: static;
    width: auto;
    max-width: none;
    padding: 12px 2px 0;
  }
}

/* ---------- FIX 5: contact.html "Prefer to browse first?" button pair ----------
   .pn-actions is a wrapping flex row; at <=480px the two buttons form a left-aligned
   staircase. Stack them full width so their edges align. */
@media (max-width: 480px) {
  .pn-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .pn-actions .lead {
    margin-right: 0;
    margin-bottom: 2px;
  }
  .pn-actions .button {
    width: 100%;
    text-align: center;
  }
}

/* ---------- FIX 7: comparisons.html "Three comparisons" left an orphaned half-row ----------
   Three cards in a 2-column .hub-grid. Scoped by :has() on the unique #three-comparisons
   heading, so every other .hub-grid (index, research, how-we-help, industries, case-studies)
   keeps its existing 2-column layout. Inherits the global 2-col (<=980px) and 1-col
   (<=620px) fallbacks. */
@media (min-width: 981px) {
  .content-section:has(#three-comparisons) .hub-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---- V28: answer-first band (AEO) ---- */
.answer-band{background:var(--white);border-bottom:1px solid var(--line)}
.answer-inner{width:min(100% - 36px,var(--max));margin:0 auto;padding:30px 0 28px;display:flex;gap:20px;align-items:stretch}
.answer-inner::before{content:"";flex:0 0 4px;border-radius:3px;background:linear-gradient(180deg,var(--aqua),var(--blue))}
.answer-lead{margin:0;font-size:1.1rem;line-height:1.65;color:var(--ink);font-weight:500;max-width:900px}
.answer-updated{margin:10px 0 0 auto;flex:0 0 auto;align-self:flex-start;white-space:nowrap;font-size:.82rem;color:var(--muted)}
@media(max-width:860px){.answer-inner{display:block}.answer-inner::before{display:none}.answer-lead{border-left:4px solid var(--aqua);border-radius:3px;padding-left:16px;max-width:none}.answer-updated{margin:12px 0 0;padding-left:20px;white-space:normal}}
@media(max-width:620px){.answer-inner{padding:24px 0 22px;gap:14px}.answer-lead{font-size:1rem}}

/* ---- V28: HowTo step list ---- */
.howto-steps{counter-reset:ht;list-style:none;margin:22px 0 0;padding:0;display:grid;gap:14px}
.howto-steps li{position:relative;counter-increment:ht;background:var(--white);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--card-shadow);padding:20px 22px 20px 68px;color:var(--ink-soft);line-height:1.7}
.howto-steps li::before{content:counter(ht);position:absolute;left:20px;top:19px;width:32px;height:32px;display:grid;place-items:center;border-radius:50%;background:rgba(80,192,189,.18);color:var(--blue-dark);font-weight:800;font-size:.95rem}
.howto-steps li strong{color:var(--ink)}
@media(max-width:620px){.howto-steps li{padding:18px 18px 18px 58px}.howto-steps li::before{left:14px;top:17px;width:28px;height:28px}}
