/* ==========================================================================
   Wilson Safe — main stylesheet
   Navy + crimson, drawn from the company mark. Built WCAG 2.2 AA first.
   ========================================================================== */

:root {
  --ws-navy: #12193A;
  --ws-navy-deep: #0B1029;
  --ws-navy-mid: #1B2350;
  --ws-navy-soft: #2A3468;
  --ws-crimson: #7C1F3E;
  --ws-crimson-lift: #96284D;
  --ws-brass: #C2A15E;
  --ws-bone: #F6F4F0;
  --ws-bone-warm: #EDE9E2;
  --ws-steel: #8791AE;
  --ws-ink: #161A26;
  --ws-rule: rgba(18, 25, 58, 0.12);
  --ws-rule-dark: rgba(255, 255, 255, 0.14);

  --ws-shell: 1240px;
  --ws-gutter: clamp(1.25rem, 5vw, 3.5rem);

  --ws-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ws-dur: 0.5s;

  --ws-scale: 1;
  --ws-lh: 1.65;
  --ws-ls: 0;
  --ws-wordspace: normal;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ws-bone);
  color: var(--ws-ink);
  font-family: "Jost", "Century Gothic", "Futura", system-ui, -apple-system, sans-serif;
  font-size: calc(1.0625rem * var(--ws-scale));
  line-height: var(--ws-lh);
  letter-spacing: var(--ws-ls);
  word-spacing: var(--ws-wordspace);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, video, canvas { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: "Playfair Display", "Iowan Old Style", Georgia, serif;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--ws-navy);
  margin: 0 0 0.6em;
  text-wrap: balance;
}

p { margin: 0 0 1.15em; max-width: 68ch; }

a { color: var(--ws-crimson); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 0.22em; }

/* Visible, high-contrast focus on every interactive element (WCAG 2.4.11/2.4.13) */
:focus-visible {
  outline: 3px solid var(--ws-brass);
  outline-offset: 3px;
  border-radius: 2px;
}
.ws-on-dark :focus-visible { outline-color: var(--ws-brass); }

.ws-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--ws-navy);
  color: #fff;
  padding: 1rem 1.5rem;
  font-size: 0.9375rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.ws-skip:focus {
  left: 1rem;
  top: 1rem;
}

.ws-shell {
  width: 100%;
  max-width: var(--ws-shell);
  margin-inline: auto;
  padding-inline: var(--ws-gutter);
}

.ws-sr {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   Typographic furniture
   -------------------------------------------------------------------------- */

.ws-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: calc(0.75rem * var(--ws-scale));
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ws-crimson);
  margin: 0 0 1.1rem;
}
.ws-eyebrow::before {
  content: "";
  width: 28px; height: 1px;
  background: currentColor;
  opacity: 0.7;
}
.ws-on-dark .ws-eyebrow { color: var(--ws-brass); }

.ws-lede {
  font-size: calc(1.1875rem * var(--ws-scale));
  line-height: 1.6;
  color: rgba(22, 26, 38, 0.78);
}
.ws-on-dark .ws-lede { color: rgba(255, 255, 255, 0.76); }

.ws-on-dark { color: rgba(255, 255, 255, 0.82); }
.ws-on-dark h1, .ws-on-dark h2, .ws-on-dark h3, .ws-on-dark h4 { color: #fff; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.ws-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: inherit;
  font-size: calc(0.875rem * var(--ws-scale));
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 1.05rem 2.1rem;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  text-decoration: none;
  transition: background-color var(--ws-dur) var(--ws-ease),
              color var(--ws-dur) var(--ws-ease),
              border-color var(--ws-dur) var(--ws-ease),
              transform 0.25s var(--ws-ease);
  min-height: 48px; /* WCAG 2.5.8 target size */
}
.ws-btn:hover { text-decoration: none; transform: translateY(-2px); }

.ws-btn--primary { background: var(--ws-crimson); color: #fff; }
.ws-btn--primary:hover { background: var(--ws-crimson-lift); color: #fff; }

.ws-btn--ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.38);
}
.ws-btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); color: #fff; }

.ws-btn--dark { background: var(--ws-navy); color: #fff; }
.ws-btn--dark:hover { background: var(--ws-navy-mid); color: #fff; }

.ws-btn--line {
  background: transparent;
  color: var(--ws-navy);
  border-color: rgba(18, 25, 58, 0.28);
}
.ws-btn--line:hover { border-color: var(--ws-navy); background: rgba(18, 25, 58, 0.04); }

.ws-btn__icon { width: 18px; height: 18px; flex: none; }

/* --------------------------------------------------------------------------
   Emergency bar + header
   -------------------------------------------------------------------------- */

.ws-emergency {
  background: var(--ws-crimson);
  color: #fff;
  font-size: calc(0.8125rem * var(--ws-scale));
  letter-spacing: 0.05em;
}
.ws-emergency__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  flex-wrap: wrap;
  padding: 0.6rem var(--ws-gutter);
  text-align: center;
}
.ws-emergency a {
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}
.ws-emergency a:hover { border-bottom-color: #fff; text-decoration: none; }
.ws-emergency__pulse {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #fff;
  flex: none;
  animation: ws-pulse 2.4s var(--ws-ease) infinite;
}
@keyframes ws-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.7); }
}

.ws-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #0B1029;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background-color var(--ws-dur) var(--ws-ease), box-shadow var(--ws-dur) var(--ws-ease);
}
.ws-header.is-scrolled { box-shadow: 0 10px 34px rgba(0, 0, 0, 0.4); }

.ws-header__inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 0.45rem var(--ws-gutter);
  max-width: var(--ws-shell);
  min-width: 0;
  margin-inline: auto;
}
.ws-header__logo { flex: none; display: block; }
.ws-header__logo img, .ws-header__logo svg { width: clamp(140px, 12.5vw, 186px); height: auto; }

.ws-nav { margin-left: auto; }
.ws-nav__list {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.2vw, 2.1rem);
  list-style: none;
  margin: 0; padding: 0;
}
.ws-nav__link {
  display: inline-block;
  color: rgba(255, 255, 255, 0.84);
  font-size: calc(0.75rem * var(--ws-scale));
  font-weight: 500;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.5rem 0;
  position: relative;
  white-space: nowrap;
}
.ws-nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0.25rem;
  width: 100%; height: 1px;
  background: var(--ws-brass);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--ws-dur) var(--ws-ease);
}
.ws-nav__link:hover { color: #fff; text-decoration: none; }
.ws-nav__link:hover::after, .ws-nav__link[aria-current="page"]::after { transform: scaleX(1); }

.ws-header__cta { flex: none; }

.ws-burger {
  display: none;
  margin-left: auto;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 2px;
  color: #fff;
  width: 48px; height: 48px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

@media (max-width: 1200px) {
  .ws-burger { display: inline-flex; }
  .ws-nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(88vw, 380px);
    background: var(--ws-navy-deep);
    padding: 6rem 2rem 2rem;
    transform: translateX(100%);
    transition: transform var(--ws-dur) var(--ws-ease);
    overflow-y: auto;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
  }
  .ws-nav.is-open { transform: none; }
  .ws-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .ws-nav__link {
    padding: 1.15rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
    letter-spacing: 0.1em;
    font-size: calc(0.9375rem * var(--ws-scale));
  }
  .ws-nav__link::after { display: none; }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.ws-hero {
  position: relative;
  isolation: isolate;
  background: linear-gradient(160deg, #12193A 0%, #0B1029 55%, #1B2350 100%);
  color: #fff;
  overflow: hidden;
  min-height: clamp(620px, 86vh, 900px);
  display: flex;
  align-items: center;
}
.ws-hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}
.ws-hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(72% 80% at 18% 50%, rgba(11, 16, 41, 0.92) 0%, rgba(11, 16, 41, 0.55) 45%, rgba(11, 16, 41, 0) 76%);
  pointer-events: none;
}
.ws-hero__inner {
  position: relative;
  width: 100%;
  max-width: var(--ws-shell);
  margin-inline: auto;
  padding: clamp(5rem, 12vh, 9rem) var(--ws-gutter);
}
.ws-hero__content { max-width: 40rem; }
.ws-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  border: 1px solid rgba(194, 161, 94, 0.45);
  border-radius: 100px;
  padding: 0.5rem 1.15rem;
  font-size: calc(0.6875rem * var(--ws-scale));
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ws-brass);
  margin-bottom: 1.9rem;
}
.ws-hero h1 {
  font-size: clamp(2.75rem, 6.4vw, 5.25rem);
  line-height: 1.02;
  margin-bottom: 1.1rem;
}
.ws-hero__tagline {
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic;
  font-size: clamp(1.25rem, 2.3vw, 1.75rem);
  color: var(--ws-brass);
  margin-bottom: 1.5rem;
}
.ws-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2.4rem;
}
.ws-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 2.4rem;
  margin-top: 3.4rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.ws-hero__stat strong {
  display: block;
  font-family: "Playfair Display", Georgia, serif;
  font-size: calc(2rem * var(--ws-scale));
  line-height: 1;
  color: #fff;
}
.ws-hero__stat span {
  font-size: calc(0.75rem * var(--ws-scale));
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

.ws-section { padding-block: clamp(2.75rem, 5.5vw, 4.75rem); }
.ws-section--dark { background: var(--ws-navy); color: rgba(255, 255, 255, 0.82); }
.ws-section--deep { background: var(--ws-navy-deep); color: rgba(255, 255, 255, 0.82); }
.ws-section--bone { background: var(--ws-bone-warm); }

.ws-section__head { max-width: 46rem; margin-bottom: clamp(1.75rem, 3.2vw, 2.75rem); }
.ws-section__head--center { margin-inline: auto; text-align: center; }
.ws-section__head--center .ws-eyebrow::before { display: none; }
.ws-section__head--center .ws-lede { margin-inline: auto; }

/* Portal — the residential / commercial split */
.ws-portal {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}
.ws-portal__card {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 440px;
  padding: 2.5rem;
  border: 1px solid var(--ws-rule-dark);
  border-radius: 3px;
  overflow: hidden;
  background: var(--ws-navy-mid);
  color: #fff;
  text-decoration: none;
  transition: transform var(--ws-dur) var(--ws-ease), border-color var(--ws-dur) var(--ws-ease);
}
.ws-portal__card::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(11, 16, 41, 0.10) 0%, rgba(11, 16, 41, 0.42) 45%, rgba(11, 16, 41, 0.90) 78%);
  transition: opacity var(--ws-dur) var(--ws-ease);
}
.ws-portal__card img {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ws-ease);
}
.ws-portal__card:hover { transform: translateY(-4px); border-color: rgba(194, 161, 94, 0.55); text-decoration: none; }
.ws-portal__card:hover img { transform: scale(1.05); }
.ws-portal__card h3 { font-size: calc(2rem * var(--ws-scale)); margin-bottom: 0.5rem; }
.ws-portal__card p { color: rgba(255, 255, 255, 0.74); margin-bottom: 1.5rem; }
.ws-portal__go {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: calc(0.8125rem * var(--ws-scale));
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ws-brass);
}

/* Solutions / service grids */
.ws-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.25rem;
}
.ws-card {
  padding: 2.15rem;
  background: #fff;
  border: 1px solid var(--ws-rule);
  border-radius: 3px;
  transition: transform var(--ws-dur) var(--ws-ease), box-shadow var(--ws-dur) var(--ws-ease);
}
.ws-card:hover { transform: translateY(-3px); box-shadow: 0 18px 44px rgba(18, 25, 58, 0.1); }
.ws-card h3 { font-size: calc(1.3125rem * var(--ws-scale)); margin-bottom: 0.55rem; }
.ws-card p { font-size: calc(0.9375rem * var(--ws-scale)); color: rgba(22, 26, 38, 0.72); margin-bottom: 0; }
.ws-card__icon {
  width: 46px; height: 46px;
  margin-bottom: 1.4rem;
  color: var(--ws-crimson);
}
.ws-section--dark .ws-card, .ws-section--deep .ws-card {
  background: rgba(255, 255, 255, 0.035);
  border-color: var(--ws-rule-dark);
}
.ws-section--dark .ws-card p, .ws-section--deep .ws-card p { color: rgba(255, 255, 255, 0.7); }
.ws-section--dark .ws-card__icon, .ws-section--deep .ws-card__icon { color: var(--ws-brass); }

/* Service checklist */
.ws-checklist {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.5rem 2.5rem;
  list-style: none;
  margin: 0; padding: 0;
}
.ws-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--ws-rule-dark);
  font-size: calc(0.9375rem * var(--ws-scale));
}
.ws-checklist svg { width: 17px; height: 17px; flex: none; margin-top: 0.35rem; color: var(--ws-brass); }

/* Video feature */
.ws-feature {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.ws-feature__media {
  position: relative;
  border-radius: 3px;
  overflow: hidden;
  border: 1px solid var(--ws-rule-dark);
  background: var(--ws-navy-deep);
  aspect-ratio: 16 / 10;
}
.ws-feature__media video, .ws-feature__media img {
  width: 100%; height: 100%;
  object-fit: cover;
}

/* Team */
.ws-team {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}
.ws-team__card {
  padding: 2rem;
  border: 1px solid var(--ws-rule);
  border-radius: 3px;
  background: #fff;
}
.ws-team__card h3 { font-size: calc(1.25rem * var(--ws-scale)); margin-bottom: 0.2rem; }
.ws-team__role {
  font-size: calc(0.75rem * var(--ws-scale));
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ws-crimson);
  margin-bottom: 1rem;
}
.ws-team__contact {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--ws-rule);
  font-size: calc(0.875rem * var(--ws-scale));
}
.ws-team__contact a { display: block; color: var(--ws-navy); }

/* Testimonials */
.ws-quote {
  padding: 2.5rem;
  border: 1px solid var(--ws-rule-dark);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.035);
}
.ws-quote blockquote {
  margin: 0 0 1.5rem;
  font-family: "Playfair Display", Georgia, serif;
  font-size: calc(1.25rem * var(--ws-scale));
  line-height: 1.5;
  color: #fff;
}
.ws-quote figcaption { font-size: calc(0.875rem * var(--ws-scale)); color: rgba(255, 255, 255, 0.6); }
.ws-quote cite { font-style: normal; font-weight: 500; color: var(--ws-brass); display: block; }

/* Newsletter */
.ws-newsletter {
  background: var(--ws-navy-deep);
  color: #fff;
  padding-block: clamp(3.5rem, 7vw, 5.5rem);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.ws-newsletter__form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
  max-width: 34rem;
}
.ws-newsletter__form label { flex: 1 1 16rem; }
.ws-field {
  width: 100%;
  min-height: 48px;
  padding: 0.95rem 1.1rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  color: #fff;
  font-family: inherit;
  font-size: calc(1rem * var(--ws-scale));
}
.ws-field::placeholder { color: rgba(255, 255, 255, 0.42); }
.ws-field:focus { border-color: var(--ws-brass); background: rgba(255, 255, 255, 0.1); }

/* Footer */
.ws-footer {
  background: #070B1C;
  color: rgba(255, 255, 255, 0.62);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
  font-size: calc(0.9375rem * var(--ws-scale));
}
.ws-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(auto-fit, minmax(150px, 1fr));
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.ws-footer h4 {
  font-family: inherit;
  font-size: calc(0.75rem * var(--ws-scale));
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 1.15rem;
}
.ws-footer ul { list-style: none; margin: 0; padding: 0; }
.ws-footer li { margin-bottom: 0.6rem; }
.ws-footer a { color: rgba(255, 255, 255, 0.68); }
.ws-footer a:hover { color: #fff; }
.ws-footer__logo { width: 200px; margin-bottom: 1.4rem; }
.ws-footer__base {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: space-between;
  padding-top: 2rem;
  font-size: calc(0.8125rem * var(--ws-scale));
  color: rgba(255, 255, 255, 0.45);
}

/* --------------------------------------------------------------------------
   Reveal-on-scroll (opt-in, motion-safe)
   -------------------------------------------------------------------------- */

.ws-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.75s var(--ws-ease), transform 0.75s var(--ws-ease);
}
.ws-reveal.is-in { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   Accessibility panel
   -------------------------------------------------------------------------- */

.ws-a11y {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 500;
  font-family: "Jost", system-ui, sans-serif;
}
.ws-a11y__toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 48px;
  padding: 0.75rem 1.15rem;
  background: var(--ws-navy);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 8px 28px rgba(7, 11, 28, 0.35);
  transition: background-color 0.3s var(--ws-ease);
}
.ws-a11y__toggle:hover { background: var(--ws-navy-mid); }
@media (max-width: 640px) {
  .ws-a11y__toggle-text { display: none; }
  .ws-a11y__toggle { padding: 0.85rem; }
}

.ws-a11y__panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 0.75rem);
  width: min(90vw, 320px);
  background: #fff;
  border: 1px solid rgba(18, 25, 58, 0.16);
  border-radius: 4px;
  box-shadow: 0 24px 60px rgba(7, 11, 28, 0.28);
  padding: 1.4rem;
}
.ws-a11y__title {
  font-family: "Jost", system-ui, sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ws-navy);
  margin: 0 0 1rem;
}
.ws-a11y__list { display: grid; gap: 0.35rem; }
.ws-a11y__opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.85rem;
  background: var(--ws-bone);
  border: 1px solid transparent;
  border-radius: 2px;
  font: inherit;
  font-size: 0.9375rem;
  color: var(--ws-ink);
  text-align: left;
  cursor: pointer;
}
.ws-a11y__opt:hover { background: var(--ws-bone-warm); }
.ws-a11y__opt[aria-pressed="true"] {
  background: rgba(158, 27, 72, 0.08);
  border-color: rgba(158, 27, 72, 0.35);
}
.ws-a11y__opt-val {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ws-crimson);
  font-weight: 500;
  flex: none;
}
.ws-a11y__reset {
  width: 100%;
  min-height: 44px;
  margin-top: 0.9rem;
  padding: 0.6rem;
  background: transparent;
  border: 1px solid rgba(18, 25, 58, 0.2);
  border-radius: 2px;
  font: inherit;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ws-navy);
  cursor: pointer;
}
.ws-a11y__reset:hover { background: var(--ws-bone); }
.ws-a11y__note {
  margin: 0.9rem 0 0;
  font-size: 0.75rem;
  line-height: 1.5;
  color: rgba(22, 26, 38, 0.55);
}

/* --------------------------------------------------------------------------
   Accessibility preference implementations
   -------------------------------------------------------------------------- */

html[data-ws-text="large"]  { --ws-scale: 1.14; }
html[data-ws-text="larger"] { --ws-scale: 1.3; }

html[data-ws-spacing="loose"] {
  --ws-lh: 1.9;
  --ws-ls: 0.045em;
  --ws-wordspace: 0.14em;
}

html[data-ws-links="underline"] a:not(.ws-btn):not(.ws-portal__card) {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

html[data-ws-font="readable"] body,
html[data-ws-font="readable"] h1,
html[data-ws-font="readable"] h2,
html[data-ws-font="readable"] h3,
html[data-ws-font="readable"] h4,
html[data-ws-font="readable"] .ws-hero__tagline,
html[data-ws-font="readable"] .ws-quote blockquote {
  font-family: "Atkinson Hyperlegible", Verdana, "Trebuchet MS", system-ui, sans-serif;
  font-style: normal;
  letter-spacing: 0.01em;
}

html[data-ws-contrast="high"] {
  --ws-bone: #ffffff;
  --ws-bone-warm: #ffffff;
  --ws-ink: #000000;
  --ws-navy: #000B2E;
  --ws-crimson: #8A0F38;
  --ws-steel: #3B4055;
}
html[data-ws-contrast="high"] body { background: #fff; color: #000; }
html[data-ws-contrast="high"] .ws-lede,
html[data-ws-contrast="high"] .ws-card p { color: #1a1a1a; }
html[data-ws-contrast="high"] .ws-on-dark,
html[data-ws-contrast="high"] .ws-section--dark,
html[data-ws-contrast="high"] .ws-section--deep,
html[data-ws-contrast="high"] .ws-hero,
html[data-ws-contrast="high"] .ws-footer,
html[data-ws-contrast="high"] .ws-newsletter { background: #000B2E; color: #fff; }
html[data-ws-contrast="high"] .ws-on-dark .ws-lede,
html[data-ws-contrast="high"] .ws-footer a,
html[data-ws-contrast="high"] .ws-quote figcaption { color: #fff; }
html[data-ws-contrast="high"] .ws-card { border-color: #000; border-width: 2px; }
html[data-ws-contrast="high"] .ws-btn { border-width: 2px; }
html[data-ws-contrast="high"] .ws-btn--primary { background: #8A0F38; border-color: #fff; }
html[data-ws-contrast="high"] :focus-visible { outline-width: 4px; outline-color: #FFD400; }

html[data-ws-motion="reduce"] *,
html[data-ws-motion="reduce"] *::before,
html[data-ws-motion="reduce"] *::after {
  animation-duration: 0.001ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.001ms !important;
  scroll-behavior: auto !important;
}
html[data-ws-motion="reduce"] .ws-reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .ws-reveal { opacity: 1; transform: none; }
}

@media print {
  .ws-a11y, .ws-header, .ws-emergency, .ws-hero__canvas { display: none !important; }
}


/* ==========================================================================
   Inner pages — hero, filters, product grid, forms
   ========================================================================== */

.ws-page-hero {
  position: relative;
  background: linear-gradient(150deg, #12193A 0%, #0B1029 60%, #1B2350 100%);
  color: #fff;
  padding-block: clamp(3rem, 7vw, 5.25rem);
  overflow: hidden;
}
.ws-page-hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: 0.85; }
/* Guarantees text contrast over the animation regardless of frame */
.ws-page-hero::after {
  content: "";
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(78% 90% at 8% 50%, rgba(11,16,41,0.95) 0%, rgba(11,16,41,0.7) 42%, rgba(11,16,41,0) 78%);
}
.ws-page-hero > .ws-shell { position: relative; z-index: 1; }
.ws-page-hero h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); margin-bottom: 1rem; }
.ws-page-hero .ws-lede { max-width: 44rem; }
.ws-page-hero__actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 2.25rem; }

.ws-crumbs { font-size: calc(0.8125rem * var(--ws-scale)); margin-bottom: 1.25rem; color: rgba(255,255,255,0.55); }
.ws-crumbs a { color: rgba(255,255,255,0.75); }

/* Selection guide filters */
.ws-guide { display: grid; grid-template-columns: 260px 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
@media (max-width: 900px) { .ws-guide { grid-template-columns: 1fr; } }

.ws-filters {
  position: sticky;
  top: 96px;
  max-height: calc(100vh - 7rem);
  max-height: calc(100svh - 7rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 0.5rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(18,25,58,0.32) transparent;
  background:
    linear-gradient(#F6F4F0 34%, rgba(246,244,240,0)) local top / 100% 30px no-repeat,
    linear-gradient(rgba(246,244,240,0), #F6F4F0 66%) local bottom / 100% 30px no-repeat,
    radial-gradient(farthest-side at 50% 0, rgba(18,25,58,0.20), rgba(18,25,58,0)) scroll top / 100% 12px no-repeat,
    radial-gradient(farthest-side at 50% 100%, rgba(18,25,58,0.20), rgba(18,25,58,0)) scroll bottom / 100% 12px no-repeat;
}
.ws-filters::-webkit-scrollbar { width: 8px; }
.ws-filters::-webkit-scrollbar-track { background: transparent; }
.ws-filters::-webkit-scrollbar-thumb { background: rgba(18,25,58,0.26); border-radius: 4px; }
.ws-filters::-webkit-scrollbar-thumb:hover { background: rgba(18,25,58,0.42); }
@media (max-width: 900px) { .ws-filters { position: static; } }
.ws-filters__group { margin: 0 0 1.1rem; padding: 0 0 0.95rem; border: 0; border-bottom: 1px solid var(--ws-rule); min-inline-size: 0; }
.ws-filters__group:last-of-type { border-bottom: 0; }
.ws-filters__legend {
  font-size: calc(0.6875rem * var(--ws-scale));
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ws-navy); font-weight: 600; margin-bottom: 0.6rem; padding: 0; display: block;
}
.ws-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.ws-chip {
  display: inline-flex; align-items: center; gap: 0.4rem;
  min-height: 40px; padding: 0.45rem 0.85rem;
  font: inherit; font-size: calc(0.8125rem * var(--ws-scale));
  background: #fff; color: var(--ws-ink);
  border: 1px solid rgba(18,25,58,0.18); border-radius: 100px;
  cursor: pointer; transition: all 0.25s var(--ws-ease);
}
.ws-chip:hover { border-color: var(--ws-navy); }
.ws-chip[aria-pressed="true"] { background: var(--ws-navy); color: #fff; border-color: var(--ws-navy); }
.ws-filters__reset {
  width: 100%; min-height: 44px; margin-top: 0.5rem;
  background: transparent; border: 1px solid rgba(18,25,58,0.2); border-radius: 2px;
  font: inherit; font-size: calc(0.8125rem * var(--ws-scale));
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--ws-navy); cursor: pointer;
}
.ws-filters__reset:hover { background: var(--ws-bone-warm); }

.ws-guide__bar {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  flex-wrap: wrap; margin-bottom: 1.5rem; padding-bottom: 1rem;
  border-bottom: 1px solid var(--ws-rule);
}
.ws-guide__count { font-size: calc(0.875rem * var(--ws-scale)); color: rgba(22,26,38,0.65); }

.ws-products { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.25rem; }
.ws-product {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--ws-rule); border-radius: 3px;
  overflow: hidden; transition: transform 0.4s var(--ws-ease), box-shadow 0.4s var(--ws-ease);
}
.ws-product:hover { transform: translateY(-3px); box-shadow: 0 18px 44px rgba(18,25,58,0.12); }
.ws-product__media {
  aspect-ratio: 4 / 3; background: var(--ws-bone-warm);
  display: grid; place-items: center; padding: 1.25rem; overflow: hidden;
}
.ws-product__media img { max-height: 100%; width: auto; object-fit: contain; mix-blend-mode: multiply; }
.ws-product__body { padding: 1.35rem; display: flex; flex-direction: column; flex: 1; }
.ws-product h3 { font-size: calc(1.0625rem * var(--ws-scale)); margin-bottom: 0.5rem; }
.ws-product__meta {
  display: flex; flex-wrap: wrap; gap: 0.35rem; margin-bottom: 1rem;
}
.ws-product__tag {
  font-size: calc(0.6875rem * var(--ws-scale)); letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.25rem 0.55rem; border-radius: 2px;
  background: rgba(158,27,72,0.08); color: var(--ws-crimson);
}
.ws-product .ws-btn { margin-top: auto; width: 100%; padding: 0.8rem 1rem; font-size: calc(0.75rem * var(--ws-scale)); }
.ws-empty { padding: 3rem 1rem; text-align: center; color: rgba(22,26,38,0.6); grid-column: 1 / -1; }

/* Split feature rows */
.ws-split { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: clamp(2rem,5vw,4.5rem); align-items: center; }
.ws-split--reverse > div:first-child { order: 2; }
@media (max-width: 760px) { .ws-split--reverse > div:first-child { order: 0; } }

/* Numbered steps */
.ws-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; counter-reset: s; }
.ws-steps li { display: grid; grid-template-columns: 46px 1fr; gap: 1.25rem; align-items: start; counter-increment: s; }
.ws-steps li::before {
  content: counter(s, decimal-leading-zero);
  font-family: "Playfair Display", Georgia, serif; font-size: calc(1.25rem * var(--ws-scale));
  color: var(--ws-brass); border: 1px solid rgba(194,161,94,0.4); border-radius: 50%;
  width: 46px; height: 46px; display: grid; place-items: center;
}
.ws-steps h3 { font-size: calc(1.125rem * var(--ws-scale)); margin-bottom: 0.3rem; }
.ws-steps p { margin: 0; font-size: calc(0.9375rem * var(--ws-scale)); }

/* Forms */
.ws-form { display: grid; gap: 1.1rem; max-width: 42rem; }
.ws-form__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.1rem; }
.ws-form label { display: block; }
.ws-form__label {
  display: block; font-size: calc(0.75rem * var(--ws-scale));
  letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 0.5rem; font-weight: 500;
}
.ws-form textarea.ws-field { min-height: 130px; resize: vertical; }
.ws-form__checks { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 0.5rem; }
.ws-check { display: flex; align-items: center; gap: 0.6rem; min-height: 44px; font-size: calc(0.9375rem * var(--ws-scale)); cursor: pointer; }
.ws-check input { width: 20px; height: 20px; accent-color: var(--ws-crimson); flex: none; margin: 0 0.55rem 0 0; }
.ws-note { font-size: calc(0.8125rem * var(--ws-scale)); opacity: 0.6; }

/* Emergency call-out band */
.ws-callout {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: clamp(1.75rem, 4vw, 2.75rem);
  background: var(--ws-crimson); color: #fff; border-radius: 3px;
}
.ws-callout h3 { color: #fff; margin: 0 0 0.35rem; font-size: calc(1.5rem * var(--ws-scale)); }
.ws-callout p { margin: 0; color: rgba(255,255,255,0.85); }
.ws-callout .ws-btn { background: #fff; color: var(--ws-crimson); border-color: #fff; }
.ws-callout .ws-btn:hover { background: var(--ws-navy); color: #fff; border-color: var(--ws-navy); }

html[data-ws-contrast="high"] .ws-chip[aria-pressed="true"] { background:#000; border-color:#000; }
html[data-ws-contrast="high"] .ws-product { border-color:#000; border-width:2px; }

.ws-steps li.ws-year::before { display: none; }
.ws-steps li.ws-year { grid-template-columns: 1fr; padding-left: 1.5rem; border-left: 1px solid rgba(194,161,94,0.35); }
.ws-steps li.ws-year h3 { font-size: calc(1.375rem * var(--ws-scale)); margin-bottom: 0.35rem; }

@media (min-width: 1100px) { .ws-team { grid-template-columns: repeat(4, 1fr); } }

/* Blog listing */
.ws-postquery .ws-posts { gap: 1.5rem !important; }
.ws-post {
  display: flex; flex-direction: column;
  padding: 1.9rem; height: 100%;
  background: #fff; border: 1px solid var(--ws-rule); border-radius: 3px;
  transition: transform 0.4s var(--ws-ease), box-shadow 0.4s var(--ws-ease);
}
.ws-post:hover { transform: translateY(-3px); box-shadow: 0 18px 44px rgba(18,25,58,0.1); }
.ws-post__cat {
  font-size: calc(0.6875rem * var(--ws-scale)); letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--ws-crimson); margin-bottom: 0.9rem;
}
.ws-post__cat a { color: inherit; }
.ws-post__title { margin: 0 0 0.75rem; }
.ws-post__title a { color: var(--ws-navy); }
.ws-post__title a:hover { color: var(--ws-crimson); text-decoration: none; }
.ws-post .ws-post__title { font-size: calc(1.3125rem * var(--ws-scale)); line-height: 1.25; }
.ws-post__ex { font-size: calc(0.9375rem * var(--ws-scale)); color: rgba(22,26,38,0.72); margin-bottom: 1.25rem; }
.ws-post__ex a { display: none; }
.ws-post__date {
  margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--ws-rule);
  font-size: calc(0.75rem * var(--ws-scale)); letter-spacing: 0.12em;
  text-transform: uppercase; color: rgba(22,26,38,0.5);
}
.ws-pagination { margin-top: 3rem; gap: 0.75rem; }
.ws-pagination a, .ws-pagination span { padding: 0.5rem 0.85rem; color: var(--ws-navy); }
.ws-pagination .current { background: var(--ws-navy); color: #fff; border-radius: 2px; }

/* Single post readability */
.ws-single__body p, .ws-single__body ul { max-width: 68ch; }

.ws-page-hero .wp-block-post-title { color:#fff; font-size: clamp(2.1rem, 4.6vw, 3.4rem); margin-bottom: 1rem; }
.ws-page-hero .wp-block-post-terms a { color: var(--ws-brass); }
.ws-single__body { padding-top: 1rem; }
.ws-single__body h2 { margin-top: 2.5rem; }
.ws-single__body ul { padding-left: 1.15rem; }
.ws-single__body li { margin-bottom: 0.6rem; }

.ws-post > * { text-align: left !important; }
.ws-post .ws-post__ex { flex: 1; }

/* header density */
.ws-header__cta { padding: 0.72rem 1.35rem; font-size: calc(0.72rem * var(--ws-scale)); min-height: 40px; }
.ws-emergency__inner { padding: 0.45rem var(--ws-gutter); }
.ws-emergency { font-size: calc(0.75rem * var(--ws-scale)); }
.ws-burger { width: 42px; height: 42px; }

/* Section headings: same voice as the hero, a step down in scale */
.ws-section__head h2,
.ws-split h2,
.ws-feature h2,
.ws-section h2 {
  font-family: "Playfair Display", "Iowan Old Style", Georgia, serif;
  font-weight: 700;
  font-size: clamp(2rem, 3.5vw, 3rem);
  line-height: 1.07;
  letter-spacing: -0.02em;
}
.ws-section h3, .ws-card h3, .ws-portal__card h3 { font-weight: 700; }
.ws-portal__card h3 { font-size: clamp(1.75rem, 2.6vw, 2.35rem); }
.ws-card h3 { font-size: calc(1.375rem * var(--ws-scale)); }
.ws-post .ws-post__title { font-weight: 700; }

/* hero headline balance */
.ws-hero h1 { max-width: 15ch; text-wrap: balance; }
.ws-hero__content { max-width: 44rem; }

/* full-bleed animated band */
.ws-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #0B1029;
  color: #fff;
  padding-block: clamp(3rem, 6vw, 5rem);
}
.ws-band__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.ws-band::before {
  content: "";
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, rgba(11,16,41,0.94) 0%, rgba(11,16,41,0.82) 45%, rgba(11,16,41,0.66) 100%);
}
.ws-band h2, .ws-band h3 { color: #fff; }
.ws-band .ws-lede { color: rgba(255,255,255,0.8); }

/* section with a video behind it */
.ws-section--video { position: relative; isolation: isolate; overflow: hidden; color: #fff; background: #0B1029; }
.ws-section--video > video {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
}
.ws-section--video::before {
  content: "";
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, rgba(11,16,41,0.95) 0%, rgba(11,16,41,0.90) 62%, rgba(11,16,41,0.66) 100%);
}
.ws-section--video h2, .ws-section--video h3 { color: #fff; }
.ws-section--video .ws-lede { color: rgba(255,255,255,0.82); }
.ws-section--video .ws-shell > * { max-width: 46rem; }

/* service checklist: body-size text, tighter rhythm */
.ws-checklist--tight li {
  font-size: calc(1.125rem * var(--ws-scale));
  line-height: 1.35;
  padding: 0.3rem 0;
  border-bottom: 0;
  align-items: center;
}
.ws-checklist--tight svg { margin-top: 0; width: 18px; height: 18px; }
.ws-checklist--tight { gap: 0 2.5rem; }

/* sales / catalogue promo row */
.ws-promo {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 1.75rem;
}
.ws-promo__item {
  display: flex; flex-direction: column;
  padding: 1.6rem;
  border: 1px solid var(--ws-rule);
  border-radius: 3px;
  background: #fff;
  text-decoration: none;
  transition: transform 0.4s var(--ws-ease), border-color 0.4s var(--ws-ease);
}
.ws-promo__item:hover { transform: translateY(-3px); border-color: var(--ws-navy); text-decoration: none; }
.ws-promo__item h3 { font-size: calc(1.125rem * var(--ws-scale)); margin-bottom: 0.35rem; }
.ws-promo__item p { font-size: calc(0.9375rem * var(--ws-scale)); color: rgba(22,26,38,0.7); margin: 0 0 1rem; }
.ws-promo__item span {
  margin-top: auto; font-size: calc(0.75rem * var(--ws-scale));
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--ws-crimson);
}

/* form fields: light surface by default, dark variant only where the
   surrounding section is dark. Previously every field used the dark
   treatment, which rendered white text on a bone background. */
.ws-field {
  background: #fff;
  border: 1px solid rgba(18, 25, 58, 0.24);
  color: var(--ws-ink);
}
.ws-field::placeholder { color: rgba(22, 26, 38, 0.42); }
.ws-field:focus {
  border-color: var(--ws-crimson);
  background: #fff;
  outline: 3px solid var(--ws-brass);
  outline-offset: 2px;
}
select.ws-field { appearance: none; -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, rgba(18,25,58,0.5) 50%),
                    linear-gradient(135deg, rgba(18,25,58,0.5) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 2.75rem;
}
.ws-form input[type="file"].ws-field { padding: 0.7rem 1.1rem; }

/* dark-surface variant */
.ws-on-dark .ws-field,
.ws-newsletter .ws-field,
.ws-section--dark .ws-field,
.ws-section--deep .ws-field {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.24);
  color: #fff;
}
.ws-on-dark .ws-field::placeholder,
.ws-newsletter .ws-field::placeholder { color: rgba(255, 255, 255, 0.45); }
.ws-on-dark .ws-field:focus,
.ws-newsletter .ws-field:focus { background: rgba(255, 255, 255, 0.1); border-color: var(--ws-brass); }
.ws-on-dark select.ws-field {
  background-image: linear-gradient(45deg, transparent 50%, rgba(255,255,255,0.6) 50%),
                    linear-gradient(135deg, rgba(255,255,255,0.6) 50%, transparent 50%);
}

/* radios match the checkbox treatment */
.ws-check input[type="radio"] { width: 20px; height: 20px; accent-color: var(--ws-crimson); flex: none; margin: 0 0.55rem 0 0; }

/* header + hero fit */
.ws-header__inner { gap: clamp(0.75rem, 2vw, 1.75rem); }
.ws-nav { min-width: 0; }
.ws-nav__list { flex-wrap: nowrap; }
.ws-nav__link { font-size: calc(0.6875rem * var(--ws-scale)); letter-spacing: 0.09em; }
@media (min-width: 1201px) {
  .ws-nav__list { gap: clamp(0.7rem, 1.5vw, 1.5rem); }
}

/* Hero: fit comfortably above the fold at any viewport height.
   svh accounts for mobile browser chrome that dvh/vh get wrong. */
.ws-hero {
  min-height: calc(100svh - 96px);
  padding-block: 0;
}
.ws-hero__inner { padding-block: clamp(1.5rem, 4vh, 3.5rem); }
.ws-hero h1 { font-size: clamp(2.1rem, 4.6vw, 4rem); line-height: 1.04; margin-bottom: 0.7rem; }
.ws-hero__badge { margin-bottom: clamp(0.9rem, 2vh, 1.5rem); font-size: calc(0.65rem * var(--ws-scale)); padding: 0.4rem 0.95rem; }
.ws-hero__tagline { font-size: clamp(1.05rem, 1.9vw, 1.45rem); margin-bottom: clamp(0.7rem, 1.5vh, 1.2rem); }
.ws-hero .ws-lede { font-size: clamp(0.98rem, 1.25vw, 1.15rem); }
.ws-hero__actions { margin-top: clamp(1.2rem, 3vh, 2.1rem); }
.ws-hero__meta { margin-top: clamp(1.4rem, 3.5vh, 2.6rem); padding-top: clamp(1rem, 2vh, 1.75rem); gap: clamp(1.25rem, 3vw, 2.4rem); }
.ws-hero__stat strong { font-size: clamp(1.35rem, 2.2vw, 1.9rem); }
.ws-hero__stat span { font-size: calc(0.68rem * var(--ws-scale)); }
@media (max-width: 640px) {
  .ws-hero { min-height: calc(100svh - 86px); }
  .ws-hero__actions .ws-btn { width: 100%; }
}

/* Newsletter heading should match every other section heading */
.ws-newsletter h2 {
  font-family: "Playfair Display", "Iowan Old Style", Georgia, serif;
  font-weight: 700;
  font-size: clamp(2rem, 3.5vw, 3rem);
  line-height: 1.07;
  letter-spacing: -0.02em;
  color: #fff;
}

.ws-portal__canvas {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; display: block;
}

/* small-screen hardening */
body, .ws-field, .ws-product h3, .ws-card h3 { overflow-wrap: break-word; }

@media (max-width: 700px) {
  :root { --ws-gutter: 1.15rem; }
  .ws-footer__grid { grid-template-columns: 1fr; gap: 1.75rem; padding-bottom: 2rem; }
  .ws-portal, .ws-promo, .ws-team { grid-template-columns: 1fr; }
  .ws-grid { grid-template-columns: 1fr; }
  .ws-products { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0.85rem; }
  .ws-portal__card { min-height: 320px; padding: 1.75rem; }
  .ws-callout { flex-direction: column; align-items: flex-start; }
  .ws-callout .ws-btn,
  .ws-page-hero__actions .ws-btn,
  .ws-newsletter__form .ws-btn { width: 100%; }
  .ws-newsletter__form label { flex: 1 1 100%; }
  .ws-hero__meta { gap: 1rem 1.6rem; }
  .ws-steps li { grid-template-columns: 38px 1fr; gap: 0.9rem; }
  .ws-steps li::before { width: 38px; height: 38px; }
  .ws-guide__bar { gap: 0.5rem; }
  .ws-filters__group { margin-bottom: 1.25rem; padding-bottom: 1rem; }
  .ws-a11y { right: 0.6rem; bottom: 0.6rem; }
}

@media (max-width: 420px) {
  .ws-products { grid-template-columns: 1fr; }
  .ws-btn { padding-inline: 1.25rem; font-size: calc(0.8rem * var(--ws-scale)); }
  .ws-emergency__inner { gap: 0.4rem; line-height: 1.35; }
}

/* blog card covers
   Generated brand motifs built from the mark's chevron and dial geometry.
   Pure CSS: no extra requests, no nine canvases. These are placeholders —
   set a featured image on a post and swap .ws-post::before off for it. */
.ws-post { position: relative; overflow: hidden; }
.ws-post::before {
  content: "";
  display: block;
  aspect-ratio: 16 / 9;
  margin: -1.9rem -1.9rem 1.35rem;
  background-color: #12193A;
  background-blend-mode: screen, screen, normal;
  background-image:
    repeating-linear-gradient(var(--ws-cv-a, 52deg),
      rgba(194,161,94,0.16) 0 2px, rgba(194,161,94,0) 2px 16px),
    repeating-radial-gradient(circle at var(--ws-cv-x, 78%) var(--ws-cv-y, 26%),
      rgba(158,27,72,0.30) 0 1px, rgba(158,27,72,0) 1px 22px),
    linear-gradient(150deg, #1B2350 0%, #0B1029 70%, #16205A 100%);
}
.ws-post:nth-child(3n+1)::before { --ws-cv-a: 52deg;  --ws-cv-x: 78%; --ws-cv-y: 26%; }
.ws-post:nth-child(3n+2)::before { --ws-cv-a: -38deg; --ws-cv-x: 22%; --ws-cv-y: 70%; }
.ws-post:nth-child(3n+3)::before { --ws-cv-a: 90deg;  --ws-cv-x: 50%; --ws-cv-y: 112%; }
.ws-post:nth-child(4n)::before   { --ws-cv-a: 14deg; }
/* a real featured image wins */
.ws-post:has(img)::before { display: none; }
@media (max-width: 700px) { .ws-post::before { margin: -1.9rem -1.9rem 1.1rem; } }

/* drawer close affordances */
.ws-burger { position: relative; z-index: 120; }
.ws-burger__close { display: none; }
.ws-burger[aria-expanded="true"] .ws-burger__open { display: none; }
.ws-burger[aria-expanded="true"] .ws-burger__close { display: block; }

.ws-nav-backdrop {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(7, 11, 28, 0.6);
  backdrop-filter: blur(2px);
  opacity: 0; transition: opacity 0.35s var(--ws-ease);
}
.ws-nav-backdrop.is-on { opacity: 1; }

.ws-nav__close {
  display: none;
  position: absolute; top: 1rem; right: 1rem;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  background: transparent; color: #fff;
  border: 1px solid rgba(255,255,255,0.28); border-radius: 50%;
  cursor: pointer;
}
.ws-nav__close:hover { background: rgba(255,255,255,0.1); }
.ws-nav__cta { display: none; }

/* keep the header CTA compact so it survives narrow widths */
@media (max-width: 1200px) {
  .ws-nav { z-index: 100; }
  .ws-nav__close { display: inline-flex; }
  .ws-nav__cta { display: inline-flex; width: 100%; margin-top: 1.5rem; }
  .ws-header__cta { display: inline-flex; }
}
@media (max-width: 560px) {
  .ws-header__logo img, .ws-header__logo svg { width: 124px; }
  .ws-header__cta { padding: 0.6rem 0.85rem; font-size: calc(0.62rem * var(--ws-scale)); letter-spacing: 0.06em; }
  .ws-header__inner { gap: 0.55rem; }
  .ws-burger { width: 38px; height: 38px; }
}

/* newsletter: tighten the gap down to the field */
.ws-newsletter h2 { margin-bottom: 0.3rem; }
.ws-newsletter .ws-lede { margin-bottom: 0; }
.ws-newsletter__form { margin-top: 0.85rem; }
.ws-newsletter .ws-lede { line-height: 1.45; max-width: 44ch; color: rgba(255, 255, 255, 0.74); }

/* drawer: one close affordance, not two.
   The drawer owns the X; the burger hides while open. Backdrop click and
   Escape also close, so there are three ways out and only one control. */
.ws-burger[aria-expanded="true"] { display: none !important; }

/* the accessibility toggle must not sit on top of the open drawer */
body.ws-nav-open .ws-a11y { display: none; }

/* homepage blog section */
.ws-blogrow { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(1.5rem, 3.5vw, 3rem); align-items: start; }
@media (max-width: 900px) { .ws-blogrow { grid-template-columns: 1fr; } }

.ws-feat {
  display: block; text-decoration: none;
  border: 1px solid var(--ws-rule-dark); border-radius: 3px; overflow: hidden;
  background: rgba(255,255,255,0.035);
  transition: transform 0.4s var(--ws-ease), border-color 0.4s var(--ws-ease);
}
.ws-feat:hover { transform: translateY(-3px); border-color: rgba(194,161,94,0.5); text-decoration: none; }
.ws-feat__cover {
  aspect-ratio: 16 / 9; position: relative;
  background-color: #12193A;
  background-image:
    repeating-linear-gradient(52deg, rgba(194,161,94,0.16) 0 2px, rgba(194,161,94,0) 2px 16px),
    repeating-radial-gradient(circle at 76% 30%, rgba(158,27,72,0.30) 0 1px, rgba(158,27,72,0) 1px 24px),
    linear-gradient(150deg, #1B2350 0%, #0B1029 70%, #16205A 100%);
}
.ws-feat__tag {
  position: absolute; left: 1rem; top: 1rem;
  background: var(--ws-crimson); color: #fff;
  font-size: calc(0.625rem * var(--ws-scale)); letter-spacing: 0.16em; text-transform: uppercase;
  padding: 0.35rem 0.7rem; border-radius: 2px;
}
.ws-feat__body { padding: clamp(1.4rem, 2.5vw, 2rem); }
.ws-feat h3 { font-size: clamp(1.35rem, 2.1vw, 1.9rem); color: #fff; margin-bottom: 0.6rem; }
.ws-feat p { color: rgba(255,255,255,0.74); font-size: calc(1rem * var(--ws-scale)); margin-bottom: 1rem; }
.ws-feat__go { font-size: calc(0.75rem * var(--ws-scale)); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ws-brass); }

.ws-bloglist { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.25rem; }
.ws-bloglist a {
  display: block; padding: 1.1rem 0; text-decoration: none;
  border-bottom: 1px solid var(--ws-rule-dark);
}
.ws-bloglist li:last-child a { border-bottom: 0; }
.ws-bloglist h4 {
  font-family: "Playfair Display", Georgia, serif; font-weight: 700;
  font-size: calc(1.125rem * var(--ws-scale)); line-height: 1.3;
  color: #fff; margin: 0 0 0.3rem;
  transition: color 0.3s var(--ws-ease);
}
.ws-bloglist a:hover h4 { color: var(--ws-brass); }
.ws-bloglist p { margin: 0; font-size: calc(0.9rem * var(--ws-scale)); color: rgba(255,255,255,0.62); }

/* --- filter column: undo the scroll cage once it stacks --- */
@media (max-width: 900px) {
  .ws-filters { max-height: none; overflow: visible; padding-right: 0; background: none; }
}

/* --- homepage blog: featured post only on phones --- */
@media (max-width: 700px) {
  .ws-bloglist { display: none; }
}

/* --- header at phone widths: nothing may sit outside the viewport --- */
@media (max-width: 767px) {
  .ws-header__logo { max-width: 220px; }
  .ws-burger { flex: 0 0 auto; min-width: 44px; min-height: 44px; padding: 10px; }
  .ws-header__cta { white-space: nowrap; padding: 0.6rem 0.85rem; }
}
@media (max-width: 560px) {
  /* the emergency bar that used to carry the phone number is gone, so the
     header CTA has to stay visible here - shrink the logo to make room */
  .ws-header__logo { max-width: 176px; }
  .ws-header__cta {
    display: inline-flex;
    white-space: nowrap;
    padding: 0.62rem 0.7rem;
    font-size: calc(0.6rem * var(--ws-scale));
    letter-spacing: 0.08em;
  }
}

/* --- portal card motion: looping clip over the still, still wins if motion is off --- */
.ws-portal__video {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 62% center;
  pointer-events: none;
  transition: transform 0.9s var(--ws-ease);
}
.ws-portal__card img { z-index: -3; }
.ws-portal__card:hover .ws-portal__video { transform: scale(1.04); }
@media (prefers-reduced-motion: reduce) { .ws-portal__video { display: none; } }
html[data-ws-motion="reduce"] .ws-portal__video { display: none; }

/* --- real featured image replaces the generated card art --- */
.has-post-thumbnail .ws-post::before { display: none; }
.ws-post__media {
  margin: -1.9rem -1.9rem 1.35rem;
  overflow: hidden;
  background: var(--ws-navy-deep);
}
.ws-post__media img {
  display: block; width: 100%; height: 100%;
  object-fit: cover; aspect-ratio: 16 / 9;
  transition: transform 0.9s var(--ws-ease);
}
.ws-post:hover .ws-post__media img { transform: scale(1.04); }

/* --- blog index: full-bleed card art and site-width grid --- */
.ws-post > figure.ws-post__media {
  /* core's constrained-layout rule sets these with !important, so we must too */
  margin-left: -1.9rem !important;
  margin-right: -1.9rem !important;
  margin-top: -1.9rem;
  margin-bottom: 1.35rem;
  max-width: none;
  width: auto;
}
.wp-block-query.ws-postquery { max-width: 1240px; }

/* --- homepage featured card: real image behind the tag --- */
.ws-feat__cover img {
  position: absolute; inset: 0;
  display: block; width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ws-ease);
}
.ws-feat__tag { position: relative; z-index: 1; }
.ws-feat:hover .ws-feat__cover img { transform: scale(1.04); }

/* --- article lead image: same 16:9 band as the cards --- */
.wp-block-post-featured-image:not(.ws-post__media) {
  border-radius: 3px;
  overflow: hidden;
  border: 1px solid var(--ws-rule);
  background: var(--ws-navy-deep);
}
.wp-block-post-featured-image:not(.ws-post__media) img {
  display: block; width: 100%; height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* --- catalog preview rail --- */
.ws-product { scroll-margin-top: 120px; }
.ws-rail__head { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; margin-bottom: 1.4rem; }
.ws-rail__head h2 { margin: 0; }
.ws-rail__head p.ws-lede { margin: 0.75rem 0 0; }
.ws-rail__nav { display: flex; gap: 0.6rem; flex: 0 0 auto; }
.ws-rail__btn {
  width: 46px; height: 46px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--ws-rule-dark); color: inherit; cursor: pointer;
  transition: background 0.3s var(--ws-ease), border-color 0.3s var(--ws-ease), opacity 0.3s var(--ws-ease);
}
.ws-rail__btn:hover:not(:disabled) { background: rgba(194,161,94,0.16); border-color: var(--ws-brass); }
.ws-rail__btn:disabled { opacity: 0.28; cursor: default; }
.ws-rail__btn svg { width: 18px; height: 18px; }
.ws-rail__track {
  display: flex; gap: 0.85rem; list-style: none; margin: 0;
  padding-block: 0.35rem 1.6rem;
  padding-inline: max(var(--ws-gutter), (100% - var(--ws-shell)) / 2 + var(--ws-gutter));
  /* snap targets must respect the leading gutter, else the rail rests scrolled-in */
  scroll-padding-inline: max(var(--ws-gutter), (100% - var(--ws-shell)) / 2 + var(--ws-gutter));
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x proximity; scroll-behavior: smooth;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.ws-rail__track::-webkit-scrollbar { display: none; }
.ws-rail__track > li { flex: 0 0 clamp(144px, 15vw, 164px); scroll-snap-align: start; display: flex; }
.ws-rail__track > li.ws-rail__end { flex: 0 0 auto; align-items: center; padding-inline-end: var(--ws-gutter); }
.ws-railcard {
  display: flex; flex-direction: column; width: 100%;
  text-decoration: none; color: inherit;
  border: 1px solid var(--ws-rule); border-radius: 3px; background: #fff; overflow: hidden;
  transition: transform 0.4s var(--ws-ease), border-color 0.4s var(--ws-ease);
}
.ws-on-dark .ws-railcard { background: rgba(255,255,255,0.045); border-color: var(--ws-rule-dark); }
.ws-railcard:hover { transform: translateY(-4px); border-color: var(--ws-brass); text-decoration: none; }
.ws-railcard__media {
  position: relative;
  aspect-ratio: 5 / 4;
  overflow: hidden;
  background: var(--ws-bone-warm);
}
.ws-on-dark .ws-railcard__media { background: rgba(255,255,255,0.06); }
/* Every photo gets an identical footprint. Absolute inset rather than
   width/height 100%: percentage heights do not resolve inside an
   aspect-ratio box, which let tall products overflow their card. */
.ws-railcard__media img {
  position: absolute;
  top: 9%; left: 8%; width: 84%; height: 82%;
  object-fit: contain; object-position: center;
}
.ws-railcard__body { padding: 0.7rem 0.8rem 0.85rem; display: flex; flex-direction: column; gap: 0.3rem; }
.ws-railcard__name { font-family: "Playfair Display", Georgia, serif; font-weight: 700; font-size: calc(0.85rem * var(--ws-scale)); line-height: 1.22; }
.ws-railcard__tag { font-size: calc(0.5625rem * var(--ws-scale)); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ws-crimson); }
.ws-on-dark .ws-railcard__tag { color: var(--ws-brass); }
@media (prefers-reduced-motion: reduce) { .ws-rail__track { scroll-behavior: auto; } }
[data-ws-motion="reduce"] .ws-rail__track { scroll-behavior: auto; }
@media (max-width: 700px) {
  .ws-rail__head { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .ws-rail__nav { display: none; }
  .ws-rail__track { scroll-snap-type: x mandatory; }
}

/* --- hero slideshow + residential video hero + photo band --- */
.ws-btn.is-soon { opacity: 0.55; cursor: default; pointer-events: none; }

.ws-page-hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.ws-page-hero--video::after {
  background: radial-gradient(82% 96% at 10% 50%, rgba(11,16,41,0.86) 0%, rgba(11,16,41,0.54) 46%, rgba(11,16,41,0.12) 84%);
}

.ws-photoband { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: clamp(1rem, 2.5vw, 1.75rem); }
.ws-photoband__item { margin: 0; border-radius: 3px; overflow: hidden; border: 1px solid var(--ws-rule); }
.ws-photoband__item img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }

/* hero slideshow */
.ws-slides { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.ws-slides__item { position: absolute; inset: 0; opacity: 0; z-index: 0; transition: opacity 0.5s ease-in-out; }
.ws-slides__item.is-active { opacity: 1; z-index: 2; }
/* the outgoing frame holds at full opacity underneath the incoming one,
   so the crossfade never dips to the background colour */
.ws-slides__item.is-prev { opacity: 1; z-index: 1; transition: none; }
.ws-slides__item img { display: block; width: 100%; height: 100%; object-fit: cover; transform: scale(1.03); transition: transform 1.6s linear; }
.ws-slides__item.is-active img { transform: scale(1.075); }
.ws-slidenav { display: flex; align-items: center; gap: 0.55rem; margin-top: 2rem; }
.ws-slidedot {
  width: 34px; height: 28px; padding: 0; border: 0; background: transparent;
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
}
.ws-slidedot::after { content: ""; display: block; width: 30px; height: 3px; border-radius: 2px; background: rgba(255,255,255,0.30); transition: background 0.3s var(--ws-ease); }
.ws-slidedot[aria-current="true"]::after { background: var(--ws-brass); }
.ws-slidedot:hover::after { background: rgba(255,255,255,0.6); }
.ws-slidedot:focus-visible { outline: 2px solid var(--ws-brass); outline-offset: 2px; }
.ws-slideplay {
  width: 30px; height: 28px; margin-left: 0.35rem; padding: 0; border: 0; background: transparent;
  color: rgba(255,255,255,0.62); cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
}
.ws-slideplay:hover { color: #fff; }
.ws-slideplay:focus-visible { outline: 2px solid var(--ws-brass); outline-offset: 2px; }
.ws-slideplay svg { width: 13px; height: 13px; }
@media (prefers-reduced-motion: reduce) {
  .ws-slides__item, .ws-slides__item img { transition: none; }
  .ws-slides__item.is-active img { transform: scale(1.03); }
}
[data-ws-motion="reduce"] .ws-slides__item,
[data-ws-motion="reduce"] .ws-slides__item img { transition: none; }
[data-ws-motion="reduce"] .ws-slides__item.is-active img { transform: scale(1.03); }

/* --- hero slideshow scrim: protects the headline on every slide --- */
.ws-slides::after {
  /* must sit above both the active (z2) and outgoing (z1) frames */
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(11,16,41,0.80) 0%, rgba(11,16,41,0.78) 34%, rgba(11,16,41,0.58) 52%, rgba(11,16,41,0.24) 78%, rgba(11,16,41,0.14) 100%),
    linear-gradient(180deg, rgba(11,16,41,0.22) 0%, rgba(11,16,41,0.06) 45%, rgba(11,16,41,0.26) 100%);
}
@media (max-width: 820px) {
  .ws-slides::after {
    background: linear-gradient(180deg, rgba(11,16,41,0.52) 0%, rgba(11,16,41,0.66) 55%, rgba(11,16,41,0.78) 100%);
  }
}

/* --- footer social links --- */
.ws-social { display: flex; gap: 0.6rem; list-style: none; margin: 1.35rem 0 0; padding: 0; }
.ws-social__link {
  width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--ws-rule-dark); border-radius: 50%;
  color: rgba(255,255,255,0.75); text-decoration: none;
  transition: color 0.3s var(--ws-ease), border-color 0.3s var(--ws-ease), background 0.3s var(--ws-ease);
}
.ws-social__link:hover { color: #fff; border-color: var(--ws-brass); background: rgba(194,161,94,0.14); text-decoration: none; }
.ws-social__link:focus-visible { outline: 2px solid var(--ws-brass); outline-offset: 3px; }
.ws-social__link svg { width: 17px; height: 17px; }

/* --- small phones: keep the header on one line --- */
@media (max-width: 400px) {
  .ws-header__inner { padding-inline: 0.85rem; gap: 0.4rem; }
  .ws-header__logo { max-width: 146px; }
  .ws-header__cta { padding: 0.6rem 0.6rem; font-size: calc(0.56rem * var(--ws-scale)); letter-spacing: 0.05em; }
}
