/* Glass + rounded design layer.
   Loaded after the Tailwind CDN, which injects its own <style> later in <head>, so every rule
   here is prefixed with `html body` to outrank single utility classes, while staying below
   hover/focus variants (two classes) so interactive states keep working. */

:root {
  --g-ease: cubic-bezier(.22, 1, .36, 1);
  --g-canvas: #FFFFFF;
  --g-surface: rgba(255, 255, 255, .92);
  --g-surface-strong: #FFFFFF;
  --g-sheen: linear-gradient(180deg, rgba(255, 255, 255, .5), rgba(255, 255, 255, 0) 42%);
  --g-border: rgba(26, 39, 83, .085);
  --g-highlight: inset 0 1px 0 rgba(255, 255, 255, .95), inset 0 -1px 0 rgba(26, 39, 83, .02);
  --g-shadow: 0 1px 1px rgba(26, 39, 83, .03), 0 2px 6px -2px rgba(26, 39, 83, .05), 0 16px 36px -20px rgba(26, 39, 83, .18);
  --g-shadow-hover: 0 1px 2px rgba(26, 39, 83, .04), 0 10px 22px -12px rgba(26, 39, 83, .12), 0 30px 56px -26px rgba(26, 39, 83, .26);
  --g-radius-sm: .875rem;
  --g-card-radius: 1.25rem;
  --g-panel-radius: 1.5rem;
  /* Matches the header's side padding at every size so banner, panels and footer line up with the capsule */
  --g-panel-gap: .625rem;
}

@media (min-width: 640px) {
  :root { --g-panel-gap: 1rem; }
}

@media (min-width: 768px) {
  :root { --g-card-radius: 1.5rem; --g-panel-radius: 2rem; }
}

@media (min-width: 1024px) {
  :root { --g-panel-gap: 1.5rem; }
}

@media (min-width: 1536px) {
  :root { --g-panel-radius: 2.25rem; }
}

/* ---------- Canvas ---------- */
html body.bg-white {
  background-color: var(--g-canvas);
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

html body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: var(--g-canvas);
}

::selection { background: rgba(6, 114, 123, .18); color: inherit; }

/* Light bands become translucent so the soft canvas reads through */
html body main section.bg-white { background-color: transparent; }
html body main section.bg-mist { background-color: #FFFFFF; }
html body main section.bg-mist\/60 { background-color: #FFFFFF; }
html body main section.bg-tint { background-color: #FFFFFF; }
html body main section.border-line { border-color: rgba(26, 39, 83, .06); }

/* ---------- Typography (Inter, loaded at 400–800) ---------- */
html body {
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-feature-settings: "cv11", "ss01";
  font-weight: 400;
  letter-spacing: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Heavier and lighter utilities fold into the loaded range so nothing is faux-bolded or too thin to read */
html body .font-extrabold,
html body .font-black { font-weight: 700; }
html body .font-light,
html body .font-thin,
html body .font-extralight { font-weight: 400; }

/* Header company name is the one place that uses Inter 800 */
html body .brand-name { font-weight: 800; letter-spacing: .05em; }

/* Major headings 700, subheadings 600 */
html body :is(h1, h2) { font-weight: 700; letter-spacing: -.025em; text-wrap: balance; }
html body :is(h3, h4, h5, h6) { font-weight: 600; letter-spacing: -.014em; text-wrap: balance; }
html body main p { text-wrap: pretty; }

/* Small uppercase labels: a touch crisper */
html body main p.uppercase:where([class*="tracking-"]) { font-feature-settings: "cv11", "ss01", "case"; }
html body :is(h1, h2):is(.font-semibold, .font-medium, .font-normal) { font-weight: 700; }
html body :is(h3, h4, h5, h6):is(.font-medium, .font-normal, .font-bold, .font-extrabold, .font-black) { font-weight: 600; }

/* Navigation at 500, buttons at 600; the active nav state keeps its own bold */
html body nav a { font-weight: 500; }
html body button { font-weight: 600; }
html body :is(a, button):where(.rounded-lg, .rounded-xl, .rounded-full):where([class*="px-"]):is(.font-bold, .font-extrabold) { font-weight: 600; }

/* ---------- Header: floating capsule ----------
   Each page's opening banner card starts below the header's height:
   top gap + capsule on phones, plus the 40px contact line on desktop. */
:root { --nav-offset: 4.125rem; }

@media (min-width: 1024px) {
  :root { --nav-offset: 7.25rem; }
}

html body #site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
}

html body #site-header .nav-capsule {
  isolation: isolate;
  border: 1px solid rgba(26, 39, 83, .07);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .95),
    0 1px 2px rgba(10, 18, 40, .05),
    0 8px 20px -12px rgba(10, 18, 40, .14),
    0 22px 44px -24px rgba(10, 18, 40, .26);
  transition: box-shadow .4s var(--g-ease), border-color .3s ease;
}

/* Blur lives on a pseudo-element so the dropdown inside can blur the page on its own.
   The surface stays near-white so the logo always sits on a light background. */
html body #site-header .nav-capsule::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background-color: rgba(255, 255, 255, .86);
  background-image: var(--g-sheen);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  backdrop-filter: saturate(180%) blur(24px);
  transition: background-color .3s ease;
}

html body #site-header header[data-scrolled="true"] .nav-capsule {
  border-color: rgba(26, 39, 83, .09);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .95),
    0 1px 3px rgba(10, 18, 40, .06),
    0 10px 24px -14px rgba(10, 18, 40, .16),
    0 26px 50px -26px rgba(10, 18, 40, .3);
}

html body #site-header header[data-scrolled="true"] .nav-capsule::before { background-color: rgba(255, 255, 255, .9); }

/* Get a Quote stands on its own, without the white capsule behind it */
html body #site-header .nav-capsule.nav-cta,
html body #site-header header[data-scrolled="true"] .nav-capsule.nav-cta {
  border-color: transparent;
  box-shadow: none;
  padding-left: 0;
  padding-right: 0;
}

html body #site-header .nav-capsule.nav-cta::before { display: none; }

/* Logo and tabs sit straight on the page, without the white rounded backing or border */
html body #site-header .nav-capsule,
html body #site-header header[data-scrolled="true"] .nav-capsule {
  border-color: transparent;
  box-shadow: none;
}

html body #site-header .nav-capsule::before { display: none; }

/* Desktop row: brand on the left, tabs centred, Get a Quote on the right.
   Side columns never shrink below their content, so nothing overlaps on small laptops. */
@media (min-width: 1024px) {
  html body #site-header .nav-row,
  html body #site-header .nav-topline-row { max-width: 100rem; }

  html body #site-header .nav-topline-row { padding-left: 0; padding-right: 0; }

  html body #site-header .nav-row {
    display: grid;
    grid-template-columns: minmax(max-content, 1fr) auto minmax(max-content, 1fr);
    align-items: center;
    column-gap: 1rem;
  }

  html body #site-header .nav-row > .nav-brand { justify-self: start; padding-left: 0; padding-right: 0; }
  html body #site-header .nav-row > .nav-tabs { justify-self: center; flex: none; padding-left: 0; padding-right: 0; }
  html body #site-header .nav-row > .nav-cta { justify-self: end; }
}

@media (min-width: 1280px) {
  html body #site-header .nav-row { column-gap: 1.5rem; }
}

/* Once scrolled, an Apple-style liquid glass strip slides in behind the menu:
   see-through, strongly blurred, with a light top sheen and a hairline edge */
html body #site-header header[data-header]::before {
  content: "";
  position: absolute;
  inset: 0 0 -.625rem;
  z-index: -1;
  border-radius: 0 0 1.75rem 1.75rem;
  background-color: rgba(255, 255, 255, .58);
  background-image: linear-gradient(180deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, .1) 55%, rgba(255, 255, 255, 0));
  border: 1px solid rgba(255, 255, 255, .6);
  border-top: 0;
  box-shadow:
    inset 0 -1px 0 rgba(255, 255, 255, .7),
    0 1px 0 rgba(26, 39, 83, .05),
    0 14px 34px -20px rgba(10, 18, 40, .3);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  backdrop-filter: saturate(180%) blur(24px);
  opacity: 0;
  transform: translateY(-.5rem);
  transition: opacity .35s ease, transform .45s cubic-bezier(.22, 1, .36, 1);
}

html body #site-header header[data-scrolled="true"]::before { opacity: 1; transform: none; }

/* Capabilities "on this page" bar tucks in just below the floating capsule */
html body main nav[data-scrollspy] { top: 4.625rem; }

@media (min-width: 1024px) {
  html body main nav[data-scrollspy] { top: 5.5rem; }
}

/* ---------- Phone and tablet menu ---------- */
@media (max-width: 1023.98px) {
  /* No strip at the top of the page; a frosted, rounded strip fades in only once scrolled */
  html body #site-header header[data-header]::before {
    inset: 0;
    border-radius: 0 0 1.25rem 1.25rem;
    background-color: rgba(255, 255, 255, .64);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
  }

  html body #site-header header[data-scrolled="true"]::before {
    box-shadow:
      inset 0 -1px 0 rgba(255, 255, 255, .7),
      0 1px 0 rgba(26, 39, 83, .06),
      0 10px 26px -16px rgba(10, 18, 40, .3);
  }
}

html body #site-header .nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  flex-shrink: 0;
  border-radius: 9999px;
  color: #1A2753;
  background-color: rgba(6, 114, 123, .08);
  box-shadow: inset 0 0 0 1px rgba(6, 114, 123, .14);
  transition: background-color .2s ease, color .2s ease, box-shadow .2s ease, transform .15s ease;
}

html body #site-header .nav-toggle:hover { background-color: rgba(6, 114, 123, .14); }
html body #site-header .nav-toggle:active { transform: scale(.95); }
html body #site-header .nav-toggle:focus-visible { outline: none; box-shadow: 0 0 0 2px #1063BC; }

html body #site-header .nav-toggle[aria-expanded="true"] {
  color: #fff;
  background-color: #1A2753;
  box-shadow: 0 6px 16px -8px rgba(26, 39, 83, .6);
}

html body #site-header #mobile-nav .m-link {
  display: flex;
  align-items: center;
  gap: .75rem;
  width: 100%;
  border-radius: 1rem;
  padding: .4375rem .625rem .4375rem .4375rem;
  font-size: .9375rem;
  font-weight: 600;
  line-height: 1.25rem;
  color: #1A2753;
  text-align: left;
  transition: background-color .2s ease, color .2s ease;
}

html body #site-header #mobile-nav .m-link:hover { background-color: rgba(26, 39, 83, .04); }
html body #site-header #mobile-nav .m-link:focus-visible { outline: none; box-shadow: 0 0 0 2px #1063BC; }

html body #site-header #mobile-nav .m-link::after {
  content: "";
  display: none;
  width: .4375rem;
  height: .4375rem;
  flex-shrink: 0;
  border-radius: 9999px;
  background-color: #06727B;
}

html body #site-header #mobile-nav .m-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  flex-shrink: 0;
  border-radius: .75rem;
  color: #06727B;
  background-color: rgba(6, 114, 123, .08);
  transition: background-color .2s ease;
}

html body #site-header #mobile-nav .m-ico svg { width: 1.125rem; height: 1.125rem; }

html body #site-header #mobile-nav .m-link[aria-current] .m-ico {
  background-color: #fff;
  box-shadow: 0 1px 2px rgba(6, 114, 123, .18);
}

html body #site-header #mobile-nav .m-sub {
  margin: .125rem 0 .375rem 1.5625rem;
  padding-left: 1.3125rem;
  border-left: 2px solid rgba(6, 114, 123, .18);
}

html body #site-header #mobile-nav .m-sublink {
  display: flex;
  align-items: center;
  border-radius: .75rem;
  padding: .5rem .75rem;
  font-size: .875rem;
  font-weight: 500;
  color: rgba(26, 39, 83, .75);
  transition: background-color .2s ease, color .2s ease;
}

html body #site-header #mobile-nav .m-sublink:hover { background-color: rgba(26, 39, 83, .04); color: #1A2753; }
html body #site-header #mobile-nav .m-sublink:focus-visible { outline: none; box-shadow: 0 0 0 2px #1063BC; }

html body #site-header #mobile-nav .m-quote {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 9999px;
  padding: .5rem .5rem .5rem 1.25rem;
  font-size: .9375rem;
  font-weight: 600;
  color: #fff;
  background-color: #06727B;
  background-image: linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, 0) 55%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 10px 22px -12px rgba(6, 114, 123, .65);
  transition: background-color .2s ease;
}

html body #site-header #mobile-nav .m-quote:hover { background-color: #1A2753; }
html body #site-header #mobile-nav .m-quote:focus-visible { outline: none; box-shadow: 0 0 0 2px #fff, 0 0 0 4px #1063BC; }

html body #site-header #mobile-nav .m-chip {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  gap: .4375rem;
  border-radius: .875rem;
  padding: .625rem .5rem;
  font-size: .8125rem;
  font-weight: 600;
  color: #1A2753;
  background-color: rgba(26, 39, 83, .035);
  box-shadow: inset 0 0 0 1px rgba(26, 39, 83, .07);
  transition: background-color .2s ease, color .2s ease;
}

html body #site-header #mobile-nav .m-chip:hover { background-color: rgba(6, 114, 123, .08); color: #06727B; }
html body #site-header #mobile-nav .m-chip:focus-visible { outline: none; box-shadow: 0 0 0 2px #1063BC; }

html body #site-header nav a.rounded-lg { border-radius: 9999px; }

html body #site-header nav ul.bg-white {
  background-color: rgba(255, 255, 255, .86);
  background-image: var(--g-sheen);
  -webkit-backdrop-filter: saturate(180%) blur(28px);
  backdrop-filter: saturate(180%) blur(28px);
  border-color: rgba(26, 39, 83, .07);
  border-radius: 1.5rem;
  box-shadow: var(--g-highlight), 0 2px 6px rgba(26, 39, 83, .05), 0 28px 60px -24px rgba(26, 39, 83, .3);
}

html body #site-header nav ul ul a.rounded-lg { border-radius: 1rem; }
html body #site-header nav ul ul span.rounded-lg { border-radius: .75rem; }

html body #site-header #mobile-nav.bg-white {
  background-color: rgba(255, 255, 255, .9);
  background-image: var(--g-sheen);
  -webkit-backdrop-filter: saturate(180%) blur(28px);
  backdrop-filter: saturate(180%) blur(28px);
  border-color: rgba(26, 39, 83, .07);
  border-radius: 1.75rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .95), 0 2px 6px rgba(10, 18, 40, .05), 0 32px 64px -28px rgba(10, 18, 40, .36);
}

/* Brand capsule: hairline between the logo mark and the name */
html body #site-header .nav-brand-divider {
  background: linear-gradient(180deg, rgba(26, 39, 83, 0), rgba(26, 39, 83, .16), rgba(26, 39, 83, 0));
}

/* Desktop tabs: a recessed well, with the open page sitting on a raised pill */
html body #site-header .nav-track {
  display: flex;
  align-items: center;
  gap: 1px;
  padding: 4px;
  border-radius: 9999px;
  background-color: rgba(26, 39, 83, .055);
  background-image: linear-gradient(180deg, rgba(26, 39, 83, .07), rgba(26, 39, 83, .02));
  box-shadow:
    inset 0 2px 4px rgba(26, 39, 83, .12),
    inset 0 -1px 0 rgba(255, 255, 255, .7),
    inset 0 0 0 1px rgba(26, 39, 83, .06);
}

html body #site-header .nav-link {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  white-space: nowrap;
  border-radius: 9999px;
  padding: .5rem .55rem;
  font-size: .84rem;
  font-weight: 500;
  line-height: 1.25rem;
  color: rgba(26, 39, 83, .72);
  transform: translateY(0);
  transition: background-color .2s ease, color .22s ease, box-shadow .28s ease, transform .28s cubic-bezier(.22, 1, .36, 1);
}

@media (min-width: 1280px) {
  html body #site-header .nav-track { gap: 3px; padding: 4px; }
  html body #site-header .nav-link { padding: .55rem .9rem; font-size: .9375rem; }
}

@media (min-width: 1536px) {
  html body #site-header .nav-link { padding: .55rem 1.1rem; }
}

html body #site-header .nav-link:hover { color: #1A2753; background-color: rgba(255, 255, 255, .7); transform: translateY(-1px); }
html body #site-header .nav-link:active { transform: translateY(1px) scale(.98); }
html body #site-header .nav-link:focus-visible { outline: none; box-shadow: 0 0 0 2px #1063BC; }

html body #site-header .nav-track > li > a.nav-link[aria-current],
html body #site-header .nav-track > li > a.nav-link[aria-current]:hover {
  background-color: #fff !important;
  color: #06727B !important;
  font-weight: 700 !important;
  box-shadow: 0 1px 2px rgba(10, 18, 40, .08), 0 6px 14px -6px rgba(6, 114, 123, .35), inset 0 0 0 1px rgba(6, 114, 123, .2) !important;
}

html body #site-header .nav-track > li > a.nav-link[aria-current]::after {
  content: "" !important;
  display: block !important;
  position: absolute;
  left: 50%;
  bottom: 3px;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  border-radius: 9999px;
  background-color: #06727B;
}

/* With the router running, the raised tab is one shared pill that slides to the selected tab */
html body #site-header .nav-track.has-glider { position: relative; }

html body #site-header .nav-glider {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  list-style: none;
  pointer-events: none;
  border-radius: 9999px;
  background-color: #fff;
  background-image: linear-gradient(180deg, #fff 0%, #f4f8f8 100%);
  box-shadow:
    inset 0 1px 0 #fff,
    inset 0 -2px 0 rgba(6, 114, 123, .14),
    0 1px 1px rgba(10, 18, 40, .06),
    0 8px 16px -8px rgba(6, 114, 123, .45),
    0 2px 0 rgba(6, 114, 123, .06);
  opacity: 0;
  transform-origin: 50% 60%;
  transition:
    transform .55s cubic-bezier(.22, 1, .28, 1),
    width .55s cubic-bezier(.22, 1, .28, 1),
    height .45s cubic-bezier(.22, 1, .28, 1),
    opacity .2s ease;
  will-change: transform, width;
}

html body #site-header .nav-glider::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 1px;
  height: 46%;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, .95), rgba(255, 255, 255, 0));
  pointer-events: none;
}

html body #site-header .nav-glider::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 5px;
  height: 5px;
  margin-left: -2.5px;
  border-radius: 9999px;
  background-color: #06727B;
  box-shadow: 0 0 0 3px rgba(6, 114, 123, .12);
}

html body #site-header .nav-glider.no-anim { transition: none; }
html body #site-header .nav-glider.is-moving { animation: nav-glide .55s cubic-bezier(.22, 1, .28, 1); }

@keyframes nav-glide {
  0% { scale: 1 1; }
  30% { scale: 1.07 .86; }
  64% { scale: .98 1.05; }
  100% { scale: 1 1; }
}

html body #site-header .nav-track.has-glider > li > a.nav-link[aria-current],
html body #site-header .nav-track.has-glider > li > a.nav-link[aria-current]:hover {
  background-color: transparent !important;
  box-shadow: none !important;
}

html body #site-header .nav-track.has-glider > li > a.nav-link[aria-current]:focus-visible { box-shadow: 0 0 0 2px #1063BC !important; }
html body #site-header .nav-track.has-glider > li > a.nav-link[aria-current]::after { content: none !important; display: none !important; }

html body #site-header .nav-track.has-glider > li > a.nav-link:hover {
  background-color: transparent;
  color: #06727B;
}

/* Company menu drops in with a slight tilt, then settles flat */
html body #site-header li.group\/company > div > ul {
  transform-origin: 18% 0;
  transform: perspective(720px) rotateX(-14deg) translateY(10px) scale(.97);
  transition: transform .42s cubic-bezier(.22, 1.15, .36, 1);
}

html body #site-header li.group\/company:hover > div > ul,
html body #site-header li.group\/company:focus-within > div > ul {
  transform: perspective(720px) rotateX(0deg) translateY(0) scale(1);
}

/* Page switches: the outgoing and incoming content slide sideways together under the fixed header */
.pi-route-ghost {
  position: fixed !important;
  z-index: 40;
  margin: 0 !important;
  overflow: hidden;
  pointer-events: none;
  will-change: transform;
}

html.pi-sliding #main { will-change: transform; }
html.pi-sliding,
html.pi-sliding body { overflow-x: clip; }

@media (prefers-reduced-motion: reduce) {
  html body #site-header .nav-glider { transition: none; }
  html body #site-header .nav-glider.is-moving { animation: none; }
  html body #site-header .nav-link,
  html body #site-header .nav-link:hover,
  html body #site-header .nav-link:active { transform: none; }
  html body #site-header li.group\/company > div > ul,
  html body #site-header li.group\/company:hover > div > ul,
  html body #site-header li.group\/company:focus-within > div > ul { transform: none; transition: none; }
}

/* Get a Quote: teal pill with a soft sheen; the arrow nudges forward on hover */
html body #site-header .nav-quote {
  background-image: linear-gradient(180deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, 0) 52%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), inset 0 -2px 0 rgba(0, 0, 0, .12), 0 1px 2px rgba(6, 114, 123, .25), 0 10px 22px -10px rgba(6, 114, 123, .6);
  transition: transform .28s cubic-bezier(.22, 1, .36, 1), background-color .2s ease, box-shadow .28s ease;
}

html body #site-header .nav-quote:hover {
  background-color: #1A2753;
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), inset 0 -2px 0 rgba(0, 0, 0, .18), 0 2px 4px rgba(26, 39, 83, .2), 0 14px 24px -12px rgba(26, 39, 83, .5);
}

html body #site-header .nav-quote:active { transform: translateY(0) scale(.98); }

html body #site-header .nav-quote-arrow { transition: transform .25s ease; }
html body #site-header .nav-quote:hover .nav-quote-arrow { transform: translateX(2px); }

@media (prefers-reduced-motion: reduce) {
  html body #site-header .nav-quote:hover,
  html body #site-header .nav-quote:active,
  html body #site-header .nav-quote:hover .nav-quote-arrow { transform: none; }
}

/* ---------- Language and light/dark switches in the header ---------- */
html body #site-header .nav-lang,
html body #site-header .nav-theme { display: none; }

html body #site-header .nav-lang {
  align-items: center;
  gap: .4375rem;
  height: 2.75rem;
  padding: 0 .875rem 0 .75rem;
  border-radius: 9999px;
  font-size: .875rem;
  font-weight: 700;
  color: #06727B;
  white-space: nowrap;
  background-color: rgba(6, 114, 123, .09);
  box-shadow: inset 0 0 0 1.5px rgba(6, 114, 123, .35);
  transition: background-color .2s ease, color .2s ease, box-shadow .2s ease, transform .15s ease;
}

html body #site-header .nav-lang:hover {
  color: #fff;
  background-color: #06727B;
  box-shadow: inset 0 0 0 1.5px #06727B, 0 8px 18px -10px rgba(6, 114, 123, .7);
}

html body #site-header .nav-lang:active { transform: scale(.96); }
html body #site-header .nav-lang:focus-visible,
html body #site-header .nav-theme:focus-visible,
html body #site-header .nav-lang-m:focus-visible { outline: none; box-shadow: 0 0 0 2px #1063BC; }

html body #site-header .nav-lang-name { display: none; max-width: 7rem; overflow: hidden; text-overflow: ellipsis; }
html body #site-header .nav-lang-code { letter-spacing: .04em; }

html body #site-header .nav-theme {
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  flex-shrink: 0;
  border-radius: 9999px;
  color: #1A2753;
  background-color: rgba(26, 39, 83, .05);
  box-shadow: inset 0 0 0 1px rgba(26, 39, 83, .12);
  transition: background-color .2s ease, color .2s ease, box-shadow .2s ease, transform .15s ease;
}

html body #site-header .nav-theme:hover { background-color: rgba(26, 39, 83, .1); }
html body #site-header .nav-theme:active { transform: scale(.94); }

@media (min-width: 1024px) {
  html body #site-header .nav-lang,
  html body #site-header .nav-theme { display: inline-flex; }
}

/* Small laptops: language becomes a round button with a code badge so the row never crowds */
@media (min-width: 1024px) and (max-width: 1279.98px) {
  html body #site-header .nav-row { column-gap: .75rem; }
  html body #site-header .nav-link { padding: .5rem .4rem; }
  html body #site-header .nav-cta { gap: .375rem; }
  html body #site-header .nav-lang { position: relative; justify-content: center; width: 2.75rem; padding: 0; }
  html body #site-header .nav-lang svg { width: 1.25rem; height: 1.25rem; }
  html body #site-header .nav-lang-code {
    position: absolute;
    right: -3px;
    bottom: -3px;
    min-width: 1.25rem;
    padding: 0 .25rem;
    border-radius: 9999px;
    font-size: .625rem;
    font-weight: 800;
    line-height: 1rem;
    text-align: center;
    color: #fff;
    background-color: #06727B;
    box-shadow: 0 0 0 2px #fff;
  }
}

@media (min-width: 1280px) and (max-width: 1439.98px) {
  html body #site-header .nav-row { column-gap: 1rem; }
  html body #site-header .nav-link { padding: .55rem .7rem; font-size: .9rem; }
}

@media (min-width: 1440px) {
  html body #site-header .nav-lang-name { display: inline; }
  html body #site-header .nav-lang-code { display: none; }
}

/* Phone and tablet: language sits right next to the menu button, with the current language shown */
html body #site-header .nav-lang-m {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  flex-shrink: 0;
  border-radius: 9999px;
  color: #06727B;
  background-color: rgba(6, 114, 123, .1);
  box-shadow: inset 0 0 0 1.5px rgba(6, 114, 123, .3);
  transition: background-color .2s ease, transform .15s ease;
}

html body #site-header .nav-lang-m:active { transform: scale(.95); }

html body #site-header .nav-lang-badge {
  position: absolute;
  right: -3px;
  bottom: -3px;
  min-width: 1.25rem;
  padding: 0 .25rem;
  border-radius: 9999px;
  font-size: .625rem;
  font-weight: 800;
  line-height: 1rem;
  letter-spacing: .03em;
  color: #fff;
  background-color: #06727B;
  box-shadow: 0 0 0 2px #fff;
}

/* Gentle pulse until the visitor opens the language list once */
html body #site-header :is(.nav-lang, .nav-lang-m).is-new { animation: lang-pulse 2.4s ease-out 1s 3; }

@keyframes lang-pulse {
  0% { box-shadow: inset 0 0 0 1.5px rgba(6, 114, 123, .35), 0 0 0 0 rgba(6, 114, 123, .45); }
  70% { box-shadow: inset 0 0 0 1.5px rgba(6, 114, 123, .35), 0 0 0 10px rgba(6, 114, 123, 0); }
  100% { box-shadow: inset 0 0 0 1.5px rgba(6, 114, 123, .35), 0 0 0 0 rgba(6, 114, 123, 0); }
}

@media (prefers-reduced-motion: reduce) {
  html body #site-header :is(.nav-lang, .nav-lang-m).is-new { animation: none; }
}

/* Moon shows in light mode, sun in dark mode */
html .theme-ico-sun { display: none; }
html[data-theme="dark"] .theme-ico-sun { display: inline-block; }
html[data-theme="dark"] .theme-ico-moon { display: none; }

/* ---------- Buttons ---------- */
html body :is(a, button).rounded-lg:where([class*="px-4"], [class*="px-5"], [class*="px-6"], [class*="px-7"], [class*="px-8"]) {
  border-radius: 9999px;
}

/* Filled buttons: a faint top sheen and a soft coloured shadow, not a glow */
html body :is(a, button).bg-cobalt:where(.rounded-lg) {
  background-image: linear-gradient(180deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, 0) 55%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 1px 2px rgba(16, 99, 188, .2), 0 8px 20px -10px rgba(16, 99, 188, .5);
}

html body :is(a, button).bg-teal:where(.rounded-lg) {
  background-image: linear-gradient(180deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, 0) 55%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 1px 2px rgba(6, 114, 123, .2), 0 8px 22px -10px rgba(6, 114, 123, .5);
}

html body :is(a, button).border-white\/25 {
  background-color: rgba(255, 255, 255, .08);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-color: rgba(255, 255, 255, .3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14);
}

html body :is(a, button).border-line:where(.rounded-lg) {
  background-color: rgba(255, 255, 255, .72);
  border-color: rgba(26, 39, 83, .12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 1px 2px rgba(26, 39, 83, .04);
}

html body :is(a, button).rounded-lg:where([class*="px-4"], [class*="px-5"], [class*="px-6"], [class*="px-7"], [class*="px-8"]):where(.font-semibold, .font-bold) {
  letter-spacing: -.006em;
}

html body :is(a, button).rounded-lg:where([class*="px-4"], [class*="px-5"], [class*="px-6"], [class*="px-7"], [class*="px-8"]),
html body button.rounded-full[data-back-to-top] {
  transition-property: color, background-color, border-color, box-shadow, translate;
  transition-duration: .3s;
  transition-timing-function: var(--g-ease);
}

/* Small tags and chips read as pills */
html body :is(span, li, p).rounded-md:where([class*="px-2"], [class*="px-3"]) { border-radius: 9999px; }

/* Icon tiles follow one softer radius that nests neatly inside the larger cards */
html body main :is(span, div).rounded-lg:where(.h-9, .h-10, .h-11, .h-12, .h-14):where(.items-center) { border-radius: var(--g-radius-sm); }

/* ---------- Light glass cards ---------- */
html body main :is(div, article, li, figure, aside, form, blockquote, a:where(.flex-col)).border-line:where(.rounded-lg, .rounded-xl, .rounded-2xl) {
  background-color: var(--g-surface);
  background-image: var(--g-sheen);
  border-color: var(--g-border);
  border-radius: var(--g-card-radius);
  box-shadow: var(--g-highlight), var(--g-shadow);
  transition-property: color, background-color, border-color, box-shadow, translate;
  transition-duration: .45s;
  transition-timing-function: var(--g-ease);
}

html body main :is(div, article, li, figure, aside, blockquote).bg-tint:where(.rounded-lg, .rounded-xl, .rounded-2xl) {
  background-color: rgba(238, 246, 246, .72);
  border-color: rgba(6, 114, 123, .12);
  border-radius: var(--g-card-radius);
  box-shadow: var(--g-highlight), var(--g-shadow);
}

html body main :is(div, article, li, aside).bg-mist:where(.rounded-lg, .rounded-xl):not(.border) {
  background-color: rgba(241, 245, 249, .7);
  box-shadow: var(--g-highlight);
}

html body main div.bg-navy:where(.rounded-lg, .rounded-xl) {
  border-radius: var(--g-card-radius);
  background-image: radial-gradient(28rem 18rem at 100% 0%, rgba(95, 196, 200, .14), transparent 60%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06), inset 0 1px 0 rgba(255, 255, 255, .1), 0 24px 48px -26px rgba(26, 39, 83, .45);
}

/* Capabilities "on this page" bar */
html body main nav[data-scrollspy] {
  background-color: rgba(255, 255, 255, .82);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  backdrop-filter: saturate(180%) blur(24px);
  border-bottom-color: rgba(26, 39, 83, .06);
}

/* Photo frames get the same generous radius as cards */
html body main :is(div, figure).overflow-hidden:where(.rounded-lg, .rounded-xl) { border-radius: var(--g-card-radius); }
html body main img.rounded-lg { border-radius: var(--g-card-radius); }

/* ---------- Dark glass cards ---------- */
html body :is(div, article, li, figure, aside, blockquote).bg-white\/5 {
  background-color: rgba(255, 255, 255, .06);
  background-image: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, 0) 45%);
  border-color: rgba(255, 255, 255, .11);
  border-radius: var(--g-card-radius);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 20px 40px -28px rgba(0, 0, 0, .45);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  transition-property: color, background-color, border-color, box-shadow, translate;
  transition-duration: .45s;
  transition-timing-function: var(--g-ease);
}

/* Blur on light cards only where screens are large enough to afford it */
@media (min-width: 1024px) {
  html body main :is(div, article, li, figure, aside, form, blockquote, a:where(.flex-col)).border-line:where(.rounded-lg, .rounded-xl, .rounded-2xl) {
    -webkit-backdrop-filter: blur(20px) saturate(170%);
    backdrop-filter: blur(20px) saturate(170%);
  }
}

/* ---------- Dark panels: inset, rounded, softly lit ---------- */
html body main section.bg-navy:not([data-hero]) {
  width: auto;
  margin: var(--g-panel-gap);
  border-radius: var(--g-panel-radius);
  overflow: hidden;
  isolation: isolate;
  background-image:
    radial-gradient(48rem 28rem at 100% 0%, rgba(95, 196, 200, .12), transparent 60%),
    radial-gradient(40rem 26rem at 0% 100%, rgba(16, 99, 188, .14), transparent 62%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .06),
    inset 0 1px 0 rgba(255, 255, 255, .08),
    0 2px 6px rgba(26, 39, 83, .05),
    0 36px 72px -44px rgba(26, 39, 83, .5);
}

html body main section[data-hero] {
  overflow: hidden;
  isolation: isolate;
}

/* Every page's opening banner is a floating card that starts just below the header capsule */
html body main > section[data-hero]:first-child {
  width: auto;
  margin: calc(var(--nav-offset) + .5rem) var(--g-panel-gap) 0;
  padding-top: 0;
  border-radius: var(--g-panel-radius);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .08),
    inset 0 1px 0 rgba(255, 255, 255, .1),
    0 2px 6px rgba(26, 39, 83, .05),
    0 36px 72px -40px rgba(26, 39, 83, .48);
}

@media (min-width: 1024px) {
  html body main > section[data-hero]:first-child { margin-top: calc(var(--nav-offset) + .75rem); }
}

/* With the banner card below the header, the contact line sits on the light canvas */
html body #site-header .nav-topline { color: rgba(26, 39, 83, .72); }
html body #site-header .nav-topline a { text-shadow: none; }
html body #site-header .nav-topline a:hover { color: #06727B; }
html body #site-header .nav-topline .text-aqua { color: #06727B; }

/* ---------- Footer ---------- */
/* Footer is a floating card, matching the banner cards */
html body footer.bg-navy {
  width: auto;
  margin: var(--g-panel-gap);
  border-radius: var(--g-panel-radius);
  background-image: radial-gradient(50rem 30rem at 0% 0%, rgba(95, 196, 200, .1), transparent 60%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .07),
    inset 0 1px 0 rgba(255, 255, 255, .09),
    0 2px 6px rgba(26, 39, 83, .05),
    0 36px 72px -40px rgba(26, 39, 83, .48);
}

html body footer.bg-navy + .footer-legal { padding-top: .25rem; }

html body footer div.rounded-xl.bg-white { border-radius: var(--g-card-radius); }

/* ---------- Forms ---------- */
html body :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea).rounded-lg {
  border-radius: var(--g-radius-sm);
  background-color: rgba(255, 255, 255, .8);
  border-color: rgba(26, 39, 83, .11);
  box-shadow: inset 0 1px 2px rgba(26, 39, 83, .035);
  transition: border-color .25s ease, box-shadow .25s ease, background-color .25s ease;
}

html body :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea).rounded-lg:hover { border-color: rgba(26, 39, 83, .18); }

html body :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea).rounded-lg:focus {
  outline: none;
  background-color: #fff;
  border-color: rgba(6, 114, 123, .5);
  box-shadow: 0 0 0 4px rgba(6, 114, 123, .12);
}

/* ---------- FAQ: each question becomes its own glass card ---------- */
html body main div.divide-y.border-y { border-width: 0; }

html body main div.divide-y.divide-line > details.group:not([hidden]) {
  margin-bottom: .75rem;
  padding: .25rem 1.25rem;
  border: 1px solid var(--g-border);
  border-radius: var(--g-card-radius);
  background-color: var(--g-surface);
  background-image: var(--g-sheen);
  box-shadow: var(--g-highlight), var(--g-shadow);
  transition: box-shadow .4s var(--g-ease), background-color .3s ease;
}

html body main div.divide-y.divide-line > details.group[open] { background-color: var(--g-surface-strong); }

@media (min-width: 640px) {
  html body main div.divide-y.divide-line > details.group:not([hidden]) { padding: .25rem 1.75rem; }
}

/* ---------- Product cards ---------- */
html body main article.pcard { border-color: rgba(26, 39, 83, .08); }

html body main .pcard-media::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 40%;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to top, rgba(26, 39, 83, .16), rgba(26, 39, 83, 0));
}

html body main .pcard-no {
  position: absolute;
  top: .875rem;
  left: .875rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: .4375rem;
  height: 1.75rem;
  padding: 0 .75rem 0 .625rem;
  border-radius: 9999px;
  background-color: rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: blur(10px) saturate(160%);
  backdrop-filter: blur(10px) saturate(160%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .8), 0 6px 14px -8px rgba(26, 39, 83, .45);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  font-variant-numeric: tabular-nums;
  color: #1A2753;
}

html body main .pcard-no::before {
  content: "";
  width: .375rem;
  height: .375rem;
  border-radius: 9999px;
  background-color: #B98A2E;
}

html body main .pcard-kicker {
  font-size: .6875rem;
  font-weight: 700;
  line-height: 1rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #06727B;
}

html body main .pcard-tags { display: flex; flex-wrap: wrap; gap: .375rem; }

html body main .pcard-tags > li {
  display: inline-flex;
  align-items: center;
  gap: .4375rem;
  padding: .3125rem .6875rem;
  border-radius: 9999px;
  font-size: .8125rem;
  font-weight: 500;
  line-height: 1.25;
  color: #1A2753;
  background-color: #F6F8FA;
  box-shadow: inset 0 0 0 1px rgba(26, 39, 83, .07);
}

html body main .pcard-tags > li::before {
  content: "";
  width: .3125rem;
  height: .3125rem;
  flex-shrink: 0;
  border-radius: 9999px;
  background-color: #06727B;
  opacity: .75;
}

html body main .pcard-foot { margin-top: auto; padding-top: 1.5rem; }

html body main .pcard-actions {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding-top: 1.125rem;
  border-top: 1px solid rgba(26, 39, 83, .07);
}

html body main .pcard-view {
  display: inline-flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  height: 2.75rem;
  padding: 0 .375rem 0 1.125rem;
  border-radius: 9999px;
  font-size: .9375rem;
  font-weight: 600;
  color: #fff;
  background-color: #1A2753;
  background-image: linear-gradient(180deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, 0) 55%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 8px 18px -10px rgba(26, 39, 83, .55);
  transition: background-color .25s ease, box-shadow .25s ease;
}

html body main .pcard-view svg {
  width: 2rem;
  height: 2rem;
  padding: .5rem;
  border-radius: 9999px;
  background-color: rgba(255, 255, 255, .14);
  transition: transform .3s var(--g-ease), background-color .25s ease;
}

html body main .pcard-view:hover { background-color: #06727B; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 10px 22px -10px rgba(6, 114, 123, .6); }
html body main .pcard-view:hover svg { transform: translateX(2px); background-color: rgba(255, 255, 255, .22); }

html body main .pcard-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  flex-shrink: 0;
  border-radius: 9999px;
  color: #1A2753;
  background-color: #fff;
  box-shadow: inset 0 0 0 1px rgba(26, 39, 83, .12), 0 1px 2px rgba(26, 39, 83, .05);
  transition: color .2s ease, background-color .2s ease, box-shadow .25s ease;
}

html body main .pcard-icon svg { width: 1.0625rem; height: 1.0625rem; }
html body main .pcard-icon:hover { color: #06727B; box-shadow: inset 0 0 0 1px rgba(6, 114, 123, .4), 0 8px 16px -10px rgba(6, 114, 123, .5); }
html body main .pcard-wa { color: #1DA851; }
html body main .pcard-wa svg { width: 1.1875rem; height: 1.1875rem; }
html body main .pcard-wa:hover { color: #fff; background-color: #25D366; box-shadow: 0 8px 16px -8px rgba(37, 211, 102, .6); }

@media (prefers-reduced-motion: reduce) {
  html body main .pcard-view:hover svg { transform: none; }
}

/* Range count beside the product grid heading */
html body main .pcount { display: flex; align-items: center; gap: .875rem; flex-shrink: 0; }

html body main .pcount-num {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.04em;
  color: #1A2753;
  font-variant-numeric: tabular-nums;
}

html body main .pcount-text {
  padding-left: .875rem;
  border-left: 2px solid #B98A2E;
  font-size: .8125rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #64748B;
}

/* Product family jump links: one swipeable row on phones, wrapping on desktops */
html body main .pfam-label {
  display: none;
  flex-shrink: 0;
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #64748B;
}

html body main .pfam-list {
  display: flex;
  min-width: 0;
  gap: .5rem;
  margin: -.25rem;
  padding: .25rem;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent);
  mask-image: linear-gradient(90deg, #000 85%, transparent);
}

html body main .pfam-list::-webkit-scrollbar { display: none; }

html body main .pfam-chip {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  padding: .5rem 1rem;
  border-radius: 9999px;
  font-size: .875rem;
  font-weight: 500;
  color: #1A2753;
  background-color: #fff;
  box-shadow: inset 0 0 0 1px rgba(26, 39, 83, .11), 0 1px 2px rgba(26, 39, 83, .04);
  transition: color .2s ease, background-color .2s ease, box-shadow .25s ease;
}

html body main .pfam-chip:hover { color: #06727B; background-color: rgba(6, 114, 123, .06); box-shadow: inset 0 0 0 1px rgba(6, 114, 123, .35); }

@media (min-width: 1024px) {
  html body main .pfam-label { display: block; }
  html body main .pfam-list { flex-wrap: wrap; overflow: visible; -webkit-mask-image: none; mask-image: none; }
}

@media (max-width: 639px) {
  html body main .pcount-num { font-size: 2.25rem; }
  html body main .pcard-tags > li { font-size: .78rem; padding: .25rem .625rem; }
}

/* Raw material forms on the products page */
html body main .rm-wrap { margin-top: -1.5rem; padding-bottom: 5rem; }

html body main .rm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16.5rem, 1fr));
  gap: 1.25rem;
  margin-top: 2.5rem;
}

html body main .rm-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: .5rem;
  background-color: #fff;
  box-shadow: inset 0 0 0 1px rgba(26, 39, 83, .09), 0 1px 2px rgba(26, 39, 83, .04);
  transition: box-shadow .3s ease, transform .3s var(--g-ease);
}

html body main .rm-card:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px rgba(6, 114, 123, .25), 0 16px 32px -18px rgba(26, 39, 83, .35); }

html body main .rm-media { aspect-ratio: 2 / 1; overflow: hidden; background-color: #1A2753; }
html body main .rm-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--g-ease); }
html body main .rm-card:hover .rm-media img { transform: scale(1.04); }

html body main .rm-body { display: flex; flex: 1 1 auto; flex-direction: column; padding: 1.25rem 1.25rem 1.375rem; }
html body main .rm-title { font-size: 1.125rem; font-weight: 700; letter-spacing: -.01em; color: #1A2753; }
html body main .rm-text { margin-top: .5rem; font-size: .9375rem; line-height: 1.55; color: #64748B; }

html body main .rm-specs { margin-top: auto; padding-top: 1rem; }
html body main .rm-specs > div {
  display: flex;
  justify-content: space-between;
  gap: .75rem;
  padding: .5rem 0;
  border-top: 1px solid rgba(26, 39, 83, .07);
  font-size: .875rem;
  line-height: 1.35;
}
html body main .rm-specs dt { flex-shrink: 0; font-weight: 600; color: #06727B; }
html body main .rm-specs dd { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; color: #1A2753; }

html body main .rm-uses { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; margin-top: 2rem; }
html body main .rm-uses-label {
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #64748B;
}

@media (min-width: 1024px) {
  html body main .rm-wrap { padding-bottom: 5.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  html body main .rm-card:hover,
  html body main .rm-card:hover .rm-media img { transform: none; }
}

/* ---------- Floating controls ---------- */
html body button.rounded-full[data-back-to-top] {
  background-color: rgba(255, 255, 255, .8);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-color: rgba(26, 39, 83, .09);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 1px 2px rgba(26, 39, 83, .05), 0 10px 24px -12px rgba(26, 39, 83, .25);
}

/* ---------- Hover lifts (translate, so they never fight scroll-reveal transforms) ---------- */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  html body :is(a, button).rounded-lg:where([class*="px-5"], [class*="px-6"], [class*="px-7"], [class*="px-8"]):where(.bg-cobalt, .bg-teal, .border):hover {
    translate: 0 -1px;
  }

  html body main :is(div, article, li, a).group:where(.border-line, .bg-white\/5):where(.rounded-lg, .rounded-xl):where(:not([class*="hover:-translate-y"])):hover {
    translate: 0 -3px;
  }
  html body main :is(div, article, li, a).group.border-line:where(.rounded-lg, .rounded-xl):hover {
    box-shadow: var(--g-highlight), var(--g-shadow-hover);
  }

  html body main div.divide-y.divide-line > details.group:hover {
    box-shadow: var(--g-highlight), var(--g-shadow-hover);
  }
}

/* Gentle press feedback on buttons */
@media (prefers-reduced-motion: no-preference) {
  html body :is(a, button).rounded-lg:where([class*="px-4"], [class*="px-5"], [class*="px-6"], [class*="px-7"], [class*="px-8"]):where(.bg-cobalt, .bg-teal, .border):active {
    translate: 0 0;
    scale: .985;
  }
}

/* ---------- Compact sizing ----------
   Each block is limited to one breakpoint range so it never competes with that range's
   own sm:/lg: utilities. The home hero slider keeps its hand-tuned sizes. */

/* Phones */
@media (max-width: 639px) {
  html body main section > div.py-20 { padding-top: 3rem; padding-bottom: 3rem; }
  html body main section > div.py-16 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
  html body main section[data-hero] > div.py-20 { padding-top: 3.25rem; padding-bottom: 3.5rem; }

  html body main :is(.gap-12, .gap-10) { gap: 2rem; }
  html body main .gap-y-10 { row-gap: 1.75rem; }
  html body main :is(.mt-14, .mt-12) { margin-top: 2rem; }
  html body main .mt-10 { margin-top: 1.75rem; }
  html body main .mt-8 { margin-top: 1.5rem; }

  html body main h1.text-4xl { font-size: 1.875rem; line-height: 1.15; }
  html body main h2.text-3xl { font-size: 1.625rem; line-height: 1.2; }
  html body main :is(h1, h2).mt-5 { margin-top: .75rem; }
  html body main section:not([data-hero-slider]) p.text-lg { font-size: 1rem; }
  html body main section:not([data-hero-slider]) p.text-lg.mt-6 { margin-top: 1rem; }
  html body main h3.text-xl { font-size: 1.125rem; }
  html body main p.text-2xl { font-size: 1.25rem; }
  html body main :is(p, blockquote p).text-xl { font-size: 1.0625rem; }

  html body main p.text-4xl { font-size: 2rem; }
  html body main span.text-5xl { font-size: 2.25rem; line-height: 1; }

  html body main :is(div, li, article).p-8 { padding: 1.5rem; }
  html body main :is(div, li, article).p-7 { padding: 1.375rem; }
  html body main :is(div, li, article, blockquote).p-6 { padding: 1.25rem; }
  html body main span.h-12.w-12 { height: 2.75rem; width: 2.75rem; }
  html body main h3.mt-5 { margin-top: 1rem; }

  /* Cards sitting two per row get tighter still */
  html body main .grid-cols-2 > :is(div, li, article).p-6 { padding: 1rem; }
  html body main .grid-cols-2 > :is(div, li, article) span.h-12.w-12,
  html body main .grid-cols-2 > :is(div, li, article) span.h-11.w-11 { height: 2.5rem; width: 2.5rem; }
  html body main .grid-cols-2 > :is(div, li, article) h3 { font-size: .9375rem; line-height: 1.3; }
  html body main .grid-cols-2 > :is(div, li, article) h3.mt-5 { margin-top: .75rem; }
  html body main .grid-cols-2 > :is(div, li, article) p.text-sm { font-size: .8125rem; }
  html body main .grid-cols-2 > :is(div, li, article) p.mt-2 { margin-top: .375rem; }

  /* Form fields at 16px so phones don't zoom in when a field is tapped */
  html body :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea).rounded-lg { font-size: 1rem; }

  html body main div.divide-y.divide-line > details.group:not([hidden]) { margin-bottom: .625rem; }
}

/* Tablets */
@media (min-width: 640px) and (max-width: 1023px) {
  html body main section > div.py-20 { padding-top: 4rem; padding-bottom: 4rem; }
  html body main :is(.gap-12) { gap: 2.5rem; }
  html body main :is(.mt-14, .mt-12) { margin-top: 2.5rem; }
  html body main section:not([data-hero-slider]) p.text-lg { font-size: 1.0625rem; }
}

/* Desktops */
@media (min-width: 1024px) {
  html body main section > div.lg\:py-28 { padding-top: 6rem; padding-bottom: 6rem; }
  html body main section > div.lg\:py-24 { padding-top: 5.25rem; padding-bottom: 5.25rem; }
  html body main h1.lg\:text-6xl { font-size: 3.5rem; line-height: 1.08; }
  html body main section:not([data-hero-slider]) h2.lg\:text-5xl { font-size: 2.75rem; line-height: 1.12; }
  html body main .mt-14 { margin-top: 3rem; }
}

/* ---------- Fallback when the browser can't blur ---------- */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  html body #site-header .nav-capsule::before { background-color: rgba(255, 255, 255, .97); }
  html body #site-header nav ul.bg-white,
  html body #site-header #mobile-nav.bg-white { background-color: rgba(255, 255, 255, .98); }
  html body main :is(div, article, li, figure, aside, form, blockquote, a:where(.flex-col)).border-line:where(.rounded-lg, .rounded-xl, .rounded-2xl) { background-color: rgba(255, 255, 255, .92); }
  html body main nav[data-scrollspy] { background-color: rgba(255, 255, 255, .97); }
}
