/*
 Theme Name:   Bricks Child Theme
 Theme URI:    https://bricksbuilder.io/
 Description:  Use this child theme to extend Bricks.
 Author:       Bricks
 Author URI:   https://bricksbuilder.io/
 Template:     bricks
 Version:      1.1
 Text Domain:  bricks
*/

/* ==========================================================================
   Geist Font — Self-hosted via CDN (@fontsource)
   ========================================================================== */

@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('https://cdn.jsdelivr.net/fontsource/fonts/geist-sans@latest/latin-300-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('https://cdn.jsdelivr.net/fontsource/fonts/geist-sans@latest/latin-400-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('https://cdn.jsdelivr.net/fontsource/fonts/geist-sans@latest/latin-500-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('https://cdn.jsdelivr.net/fontsource/fonts/geist-mono@latest/latin-400-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('https://cdn.jsdelivr.net/fontsource/fonts/geist-mono@latest/latin-500-normal.woff2') format('woff2');
}

/* ==========================================================================
   BPS Inc. Design System — CSS Custom Properties
   ========================================================================== */

:root {
  /* Colors — Primary */
  --bps-green: #0f906c;
  --bps-green-hover: #0d7a5c;

  /* Colors — Text */
  --bps-navy: #1e2945;
  --bps-charcoal: #343434;
  --bps-dark: #2d2d2d;
  --bps-gray: #5a5a5a;
  --bps-gray-muted: #585858;
  --bps-black: #000000;
  --bps-white: #ffffff;

  /* Colors — UI */
  --bps-border: #dbdbdb;
  --bps-placeholder: rgba(30, 41, 69, 0.68);
  --bps-hero-outline: rgba(255, 255, 255, 0.42);
  --bps-section-bg: #f4f4f4;

  /* Background texture — replicates hex.tech: warm near-white + eggplant grain tile
     + a single 32px eggplant grid faded by a radial gradient (faint center, stronger edges) */
  --bps-bg-base: #fffcfc;                        /* warm near-white canvas (Hex: rgb 255,252,252) */
  --bps-grid-unit: 32px;                         /* Hex grid cell = 32px */
  --bps-grid-line: rgba(49, 38, 59, 0.07);       /* Hex eggplant grid line */
  --bps-gutter-line: rgba(125, 125, 125, 0.42);  /* vertical + horizontal section-frame lines */
  --bps-duo-dark: #0c3f2e;                        /* duotone shadows (deep green) */
  --bps-duo-light: #dff3e6;                       /* duotone highlights (pale mint) */

  /* Typography — Font Families */
  --font-heading: 'JetBrains Mono', monospace;
  --font-ui: 'Geist Mono', monospace;
  --font-body: 'Geist', sans-serif;

  /* Typography — Fluid Sizes (400px → 1600px viewport)
     Using px in clamp() — Bricks sets html font-size: 10px */
  --text-hero:    clamp(36px, 26.67px + 2.333vw, 64px);
  --text-h2:      clamp(26px, 21.67px + 1.083vw, 39px);
  --text-h3:      clamp(20px, 18.33px + 0.417vw, 25px);
  --text-body:    clamp(16px, 15.33px + 0.167vw, 18px);
  --text-body-sm: clamp(14px, 13.33px + 0.167vw, 16px);
  --text-label:   clamp(14px, 13px    + 0.25vw,  17px);
  --text-nav:     clamp(13px, 12.67px + 0.083vw, 14px);
  --text-btn:     clamp(14px, 13.33px + 0.167vw, 16px);
  --text-small:   clamp(13px, 12.67px + 0.083vw, 14px);
  --text-xs:      clamp(12px, 11.67px + 0.083vw, 13px);

  /* Typography — Fluid Line Heights */
  --lh-hero:    clamp(40px, 31.33px + 2.167vw, 66px);
  --lh-h2:      clamp(34px, 29px    + 1.25vw,  49px);
  --lh-body:    clamp(24px, 23px    + 0.25vw,  27px);
  --lh-body-sm: clamp(20px, 19.33px + 0.167vw, 22px);

  /* Typography — Letter Spacing (em-based, scales with font) */
  --ls-hero:  -0.01em;
  --ls-h2:    -0.02em;
  --ls-h3:    -0.03em;
  --ls-label:  0.06em;
  --ls-nav:    0.06em;

  /* Spacing — Fluid */
  --section-padding: clamp(60px, 46.67px + 3.333vw, 100px) 0;
  --container-max: 1200px;
  --container-wide: 1360px;

  /* Buttons */
  --btn-padding: 7px 17px;
  --btn-bracket-color: #8aab9a;
  --btn-bracket-size: 12px;
  --btn-bracket-weight: 1px;
  --btn-bracket-offset: 8px;
}

/* ==========================================================================
   Global Resets
   ========================================================================== */

/* Reserve scrollbar space so locking scroll (modals) doesn't shift layout */
html {
  scrollbar-gutter: stable;
}

body {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: var(--text-body);
  line-height: var(--lh-body);
  color: var(--bps-black);
  background-color: var(--bps-bg-base);
  background-image:
    /* 1. eggplant film grain tile (256px @2x, ~6% strength) */
    url("images/bps-grain.webp"),
    /* 2. radial wash — base color opaque in center, transparent at edges:
          washes the grid out of the middle, leaves it stronger at the edges (Hex 0.05→0.2) */
    radial-gradient(120% 115% at 50% 42%, var(--bps-bg-base) 16%, rgba(255, 252, 252, 0) 80%),
    /* 3. 32px square grid (vertical + horizontal eggplant lines) */
    repeating-linear-gradient(90deg, var(--bps-grid-line) 0 1px, transparent 1px var(--bps-grid-unit)),
    repeating-linear-gradient(0deg, var(--bps-grid-line) 0 1px, transparent 1px var(--bps-grid-unit));
  background-size: 256px 256px, 100% 100%, auto, auto;
  background-repeat: repeat, no-repeat, repeat, repeat;
  background-attachment: scroll, fixed, scroll, scroll;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::before,
body::after {
  content: '';
  position: fixed;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--bps-gutter-line);
  z-index: 1001;
  pointer-events: none;
}

body::before {
  left: max(40px, calc(50% - var(--container-wide) / 2));
}

body::after {
  right: max(40px, calc(50% - var(--container-wide) / 2));
}

/* ==========================================================================
   Typography Classes
   ========================================================================== */

@keyframes heading-color-sweep {
  from { background-position: 100% 0; }
  to   { background-position: 0% 0; }
}

.bps-hero-heading {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: var(--text-hero);
  line-height: var(--lh-hero);
  letter-spacing: var(--ls-hero);
  text-transform: uppercase;
  color: var(--bps-white);
}

.bps-hero-heading .bps-heading-line,
.bps-hero__heading .bps-heading-line {
  display: block;
  background: linear-gradient(90deg,
    #fff 0%, #fff 40%,
    var(--bps-green) 55%,
    #999 65%, #999 100%);
  background-size: 300% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: heading-color-sweep 1.4s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
}

.bps-section-heading {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: var(--text-h2);
  line-height: var(--lh-h2);
  letter-spacing: var(--ls-h2);
  text-transform: capitalize;
  color: var(--bps-navy);
}

.bps-section-heading--center {
  text-align: center;
}

.bps-section-heading--dark {
  color: var(--bps-charcoal);
}

.bps-card-title {
  font-family: var(--font-ui);
  font-weight: 400;
  font-size: var(--text-h3);
  line-height: 1.2;
  letter-spacing: var(--ls-h3);
  text-align: center;
  color: var(--bps-dark);
}

.bps-section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-ui);
  font-weight: 400;
  font-size: var(--text-label);
  line-height: 56px;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--bps-dark);
}

.bps-section-label::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  background: var(--bps-green);
  flex-shrink: 0;
}

.bps-nav-link {
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: var(--text-nav);
  letter-spacing: var(--ls-nav);
  text-transform: uppercase;
  color: var(--bps-gray);
  text-decoration: none;
}

.bps-body-text {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: var(--text-body);
  line-height: var(--lh-body);
  color: var(--bps-black);
}

.bps-body-text--center {
  text-align: center;
}

.bps-footer-text {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: var(--text-body-sm);
  line-height: var(--lh-body-sm);
  color: var(--bps-black);
}

.bps-small-text {
  font-family: var(--font-ui);
  font-weight: 400;
  font-size: var(--text-small);
  color: var(--bps-gray-muted);
}

.bps-utility-text {
  font-family: var(--font-ui);
  font-weight: 400;
  font-size: var(--text-xs);
  text-transform: uppercase;
  color: var(--bps-white);
}

/* ==========================================================================
   Button Classes
   ========================================================================== */

.bps-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--btn-padding);
  font-family: var(--font-ui);
  font-weight: 400;
  font-size: var(--text-btn);
  letter-spacing: 0.16px;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.bps-btn--primary {
  background-color: var(--bps-green);
  color: var(--bps-white);
}

.bps-btn--primary:hover {
  background-color: var(--bps-green-hover);
}

.bps-btn--outline {
  background-color: var(--bps-white);
  color: var(--bps-navy);
  border: 1px solid var(--bps-border);
}

.bps-btn--outline:hover {
  border-color: var(--bps-navy);
}

.bps-btn--outline-hero {
  background-color: var(--bps-white);
  color: var(--bps-navy);
  border: 1px solid var(--bps-hero-outline);
}

.bps-btn--outline-hero:hover {
  border-color: var(--bps-white);
}

/* ── Submit "sending" animation (BPSBtn / btn-send.js) ────────────────────
   Works on any submit button given the .is-sending / .is-sent state classes
   plus injected .bps-btn__fill + .bps-btn__label children. */
.bps-btn.is-sending,
.bps-btn.is-sent,
.bps-careers-form__submit.is-sending,
.bps-careers-form__submit.is-sent {
  position: relative;
  overflow: hidden;
  pointer-events: none;
}

.bps-btn__fill {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 0;
  background: var(--bps-green-hover);
  z-index: 0;
  pointer-events: none;
}

/* Loading sweep — fills to ~90% while the request is in flight. */
.is-sending > .bps-btn__fill {
  width: 90%;
  transition: width 1.15s cubic-bezier(0.25, 0.6, 0.3, 1);
}

/* Response received — snap to full, then reveal "Sent". */
.is-sent > .bps-btn__fill {
  width: 100%;
  transition: width 0.35s ease-out;
}

.bps-btn__label {
  position: relative;
  z-index: 1;
  transition: opacity 0.15s ease;
}

.bps-btn--outline-green {
  background-color: transparent;
  color: var(--bps-green);
  border: 1px solid var(--bps-green);
}

/* Corner bracket wrapper — place around any .bps-btn */
.bps-btn-wrap {
  position: relative;
  display: inline-block;
  padding: var(--btn-bracket-offset);
  align-self: flex-start;
}

.bps-btn-wrap .bps-btn {
  position: relative;
  z-index: 1;
}

.bps-btn-wrap::before,
.bps-btn-wrap::after,
.bps-btn-wrap > .bps-btn::before,
.bps-btn-wrap > .bps-btn::after {
  content: '';
  position: absolute;
  width: var(--btn-bracket-size);
  height: var(--btn-bracket-size);
  pointer-events: none;
  transition: top 0.25s ease, bottom 0.25s ease, left 0.25s ease, right 0.25s ease;
}

/* Top-left */
.bps-btn-wrap::before {
  top: 0;
  left: 0;
  border-top: var(--btn-bracket-weight) solid var(--btn-bracket-color);
  border-left: var(--btn-bracket-weight) solid var(--btn-bracket-color);
}

/* Top-right */
.bps-btn-wrap::after {
  top: 0;
  right: 0;
  border-top: var(--btn-bracket-weight) solid var(--btn-bracket-color);
  border-right: var(--btn-bracket-weight) solid var(--btn-bracket-color);
}

/* Bottom-right */
.bps-btn-wrap > .bps-btn::before {
  bottom: calc(-1 * var(--btn-bracket-offset));
  right: calc(-1 * var(--btn-bracket-offset));
  border-bottom: var(--btn-bracket-weight) solid var(--btn-bracket-color);
  border-right: var(--btn-bracket-weight) solid var(--btn-bracket-color);
}

/* Bottom-left */
.bps-btn-wrap > .bps-btn::after {
  bottom: calc(-1 * var(--btn-bracket-offset));
  left: calc(-1 * var(--btn-bracket-offset));
  border-bottom: var(--btn-bracket-weight) solid var(--btn-bracket-color);
  border-left: var(--btn-bracket-weight) solid var(--btn-bracket-color);
}

/* Hover — brackets move inward */
.bps-btn-wrap:hover::before {
  top: calc(var(--btn-bracket-offset) / 2);
  left: calc(var(--btn-bracket-offset) / 2);
}

.bps-btn-wrap:hover::after {
  top: calc(var(--btn-bracket-offset) / 2);
  right: calc(var(--btn-bracket-offset) / 2);
}

.bps-btn-wrap:hover > .bps-btn::before {
  bottom: calc(-1 * var(--btn-bracket-offset) / 2);
  right: calc(-1 * var(--btn-bracket-offset) / 2);
}

.bps-btn-wrap:hover > .bps-btn::after {
  bottom: calc(-1 * var(--btn-bracket-offset) / 2);
  left: calc(-1 * var(--btn-bracket-offset) / 2);
}

/* Light bracket variant for dark backgrounds */
.bps-btn-wrap--light::before,
.bps-btn-wrap--light::after,
.bps-btn-wrap--light > .bps-btn::before,
.bps-btn-wrap--light > .bps-btn::after {
  border-color: rgba(255, 255, 255, 0.35);
}

.bps-btn--outline-green:hover {
  background-color: var(--bps-green);
  color: var(--bps-white);
}

/* ==========================================================================
   Form Classes
   ========================================================================== */

.bps-input {
  width: 100%;
  padding: 14px 16px;
  background: var(--bps-white);
  border: 1px solid var(--bps-border);
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: var(--text-label);
  line-height: 49px;
  letter-spacing: -0.34px;
  color: var(--bps-navy);
  text-transform: capitalize;
}

.bps-input::placeholder {
  color: var(--bps-placeholder);
}

/* ==========================================================================
   Layout Utilities
   ========================================================================== */

.bps-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 40px;
}

.bps-container--wide {
  max-width: var(--container-wide);
}

.bps-section {
  padding: var(--section-padding);
}

.bps-section--gray {
  /* Grey section bands removed site-wide — modifier kept so markup/templates
     don't need changing. Restore var(--bps-section-bg) to bring the grey back. */
  background-color: transparent;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 991px) {
  :root {
    --text-hero: 44px;
    --text-h2: 30px;
    --lh-hero: 48px;
    --lh-h2: 38px;
  }
}

@media (max-width: 767px) {
  :root {
    --text-hero: 32px;
    --text-h2: 26px;
    --text-h3: 22px;
    --lh-hero: 38px;
    --lh-h2: 34px;
    --section-padding: 60px 0;
  }
}

/* ==========================================================================
   Design System Page Styles
   ========================================================================== */

.ds-color-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)) !important;
  gap: 24px !important;
  max-width: none !important;
  width: 100% !important;
}

/* Override Bricks .brxe-html wrapper defaults */
.brxe-html {
  max-width: 100% !important;
  width: 100% !important;
}

.ds-color-swatch {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--bps-border);
}

.ds-color-swatch__preview {
  height: 100px;
}

.ds-color-swatch__info {
  padding: 12px;
  font-family: var(--font-ui);
  font-size: 13px;
}

.ds-color-swatch__name {
  font-weight: 500;
  margin-bottom: 4px;
}

.ds-color-swatch__hex {
  color: var(--bps-gray);
}

.ds-type-sample {
  padding: 24px 0;
  border-bottom: 1px solid var(--bps-border);
}

.ds-type-meta {
  font-family: var(--font-ui);
  font-size: 12px;
  color: var(--bps-gray);
  margin-bottom: 8px;
}

.ds-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.ds-form-preview {
  max-width: 400px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ds-spacing-block {
  background: var(--bps-green);
  opacity: 0.2;
  border-radius: 4px;
}

/* ==========================================================================
   Bracket Card Component
   ========================================================================== */

.bps-bracket-card-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
  gap: 24px !important;
  width: 100% !important;
}

.bps-bracket-card,
.brxe-bracket-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 48px 32px;
  background: var(--bps-white);
  border: 1px solid #e8e8e8;
  text-decoration: none;
  --card-bracket-color: #4a4a4a;
  --card-bracket-size: 16px;
  --card-bracket-weight: 1.5px;
  --card-bracket-offset: -1px;
}

.bps-bracket-card::before,
.bps-bracket-card::after,
.brxe-bracket-card::before,
.brxe-bracket-card::after {
  content: '';
  position: absolute;
  width: var(--card-bracket-size);
  height: var(--card-bracket-size);
  pointer-events: none;
  transition: top 0.3s ease, bottom 0.3s ease, left 0.3s ease, right 0.3s ease;
}

.bps-bracket-card::before,
.brxe-bracket-card::before {
  top: var(--card-bracket-offset);
  left: var(--card-bracket-offset);
  border-top: var(--card-bracket-weight) solid var(--card-bracket-color);
  border-left: var(--card-bracket-weight) solid var(--card-bracket-color);
}

.bps-bracket-card::after,
.brxe-bracket-card::after {
  top: var(--card-bracket-offset);
  right: var(--card-bracket-offset);
  border-top: var(--card-bracket-weight) solid var(--card-bracket-color);
  border-right: var(--card-bracket-weight) solid var(--card-bracket-color);
}

.bps-bracket-card__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  width: 100%;
  position: relative;
}

.bps-bracket-card__inner::before,
.bps-bracket-card__inner::after,
.brxe-bracket-card .bps-bracket-card__inner::before,
.brxe-bracket-card .bps-bracket-card__inner::after {
  content: '';
  position: absolute;
  width: var(--card-bracket-size);
  height: var(--card-bracket-size);
  pointer-events: none;
  transition: bottom 0.3s ease, left 0.3s ease, right 0.3s ease;
}

.bps-bracket-card__inner::before,
.brxe-bracket-card .bps-bracket-card__inner::before {
  bottom: calc(-48px + var(--card-bracket-offset));
  right: calc(-32px + var(--card-bracket-offset));
  border-bottom: var(--card-bracket-weight) solid var(--card-bracket-color);
  border-right: var(--card-bracket-weight) solid var(--card-bracket-color);
}

.bps-bracket-card__inner::after,
.brxe-bracket-card .bps-bracket-card__inner::after {
  bottom: calc(-48px + var(--card-bracket-offset));
  left: calc(-32px + var(--card-bracket-offset));
  border-bottom: var(--card-bracket-weight) solid var(--card-bracket-color);
  border-left: var(--card-bracket-weight) solid var(--card-bracket-color);
}

.bps-bracket-card:hover::before,
.brxe-bracket-card:hover::before {
  top: calc(var(--card-bracket-offset) + 4px);
  left: calc(var(--card-bracket-offset) + 4px);
}

.bps-bracket-card:hover::after,
.brxe-bracket-card:hover::after {
  top: calc(var(--card-bracket-offset) + 4px);
  right: calc(var(--card-bracket-offset) + 4px);
}

.bps-bracket-card:hover .bps-bracket-card__inner::before,
.brxe-bracket-card:hover .bps-bracket-card__inner::before {
  bottom: calc(-48px + var(--card-bracket-offset) + 4px);
  right: calc(-32px + var(--card-bracket-offset) + 4px);
}

.bps-bracket-card:hover .bps-bracket-card__inner::after,
.brxe-bracket-card:hover .bps-bracket-card__inner::after {
  bottom: calc(-48px + var(--card-bracket-offset) + 4px);
  left: calc(-32px + var(--card-bracket-offset) + 4px);
}

.bps-bracket-card__icon {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bps-bracket-card__icon img,
.bps-bracket-card__icon svg {
  max-width: 100%;
  max-height: 100%;
}

/* Photo pulled from the linked capability's hero image — fill the icon square. */
.bps-bracket-card__icon .bps-bracket-card__img {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  /* Feedback: grey/green until hover, like the Team page */
  filter: grayscale(1) contrast(1.02);
  transition: filter 0.45s ease;
}
.bps-bracket-card:hover .bps-bracket-card__img { filter: none; }

/* Customer marquee bar — hidden when the BPS Options toggle is off */
body.bps-marquee-off .bps-hero__marquee-bar { display: none; }

/* ISO 9001 certified badge-pill (text mark) */
.bps-iso-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: var(--bps-green);
  padding: 5px 12px;
  border-radius: 999px;
  line-height: 1;
}
.bps-iso-badge::before { content: "\2713"; font-size: 12px; }
.bps-footer__iso { margin-top: 12px; }

.bps-bracket-card__title {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 22px;
  line-height: 1.3;
  text-align: center;
  color: var(--bps-dark);
}

.bps-bracket-card--dark,
.brxe-bracket-card.bps-bracket-card--dark {
  background: var(--bps-dark);
  --card-bracket-color: rgba(255, 255, 255, 0.35);
}

.bps-bracket-card--dark .bps-bracket-card__title,
.brxe-bracket-card.bps-bracket-card--dark .bps-bracket-card__title {
  color: var(--bps-white);
}

/* ==========================================================================
   Top Utility Bar
   ========================================================================== */

.bps-topbar {
  background: var(--bps-green);
  padding: 6px 0;
}

.bps-topbar__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 40px;
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--bps-white);
}

.bps-topbar a {
  color: var(--bps-white);
  text-decoration: none;
}

/* ==========================================================================
   Header / Navigation
   ========================================================================== */

.bps-header {
  background: var(--bps-section-bg);
  position: relative;
  z-index: 1000;
}

.bps-header::before,
.bps-header::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 1px;
  background: var(--bps-gutter-line);
  pointer-events: none;
}

.bps-header::before { top: 0; }
.bps-header::after  { bottom: 0; }

.bps-header__inner {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between;
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 14px 40px;
}

.bps-header__mega-tray {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bps-section-bg);
  overflow: hidden;
  max-height: 0;
  z-index: 1000;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.3s ease;
  border-bottom: 1px solid var(--bps-border);
  border-bottom-color: transparent;
}

.bps-header__mega-tray.is-open {
  box-shadow: 0 12px 48px rgba(0,0,0,0.08);
}

.bps-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  position: relative;
  z-index: 3;
}

.bps-logo__img {
  height: 28px;
  width: auto;
  display: block;
}

/* ---- Nav ---- */
.bps-nav {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
  width: auto !important;
}

.bps-nav__item {
  position: relative;
  width: auto !important;
  flex: 0 0 auto;
}

.bps-nav__link {
  font-family: var(--font-ui);
  font-size: var(--text-small);
  font-weight: 500;
  letter-spacing: var(--ls-nav);
  text-transform: uppercase;
  color: var(--bps-dark);
  text-decoration: none;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
}

.bps-nav__link:hover {
  color: var(--bps-green);
}

.bps-nav__item.is-active .bps-nav__link {
  color: var(--bps-green);
}

.bps-nav__chevron {
  width: 10px;
  height: 10px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.bps-nav__item.is-active .bps-nav__chevron {
  transform: rotate(180deg);
}

/* ==========================================================================
   Mega Menu (Baseframe-style sliding panel)
   ========================================================================== */

.bps-mega {
  display: none;
  padding: 16px 40px 28px;
  max-width: var(--container-wide);
  margin: 0 auto;
}

.bps-mega.is-active {
  display: block;
}

/* ---- Inner layouts ---- */
.bps-mega__inner--wide {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
}

.bps-mega__inner--narrow {
  max-width: 280px;
  padding: 4px 0;
}

/* ---- Capabilities mega: all links in one grid (no Lines/Specialty split) ---- */
.bps-mega__inner--caps {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 0;
}

.bps-mega__links-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px 20px;
}

.bps-mega__links-grid .bps-mega__link {
  margin: 0;
}

/* ---- About mega: company links + CTA, matching Capabilities/Industries ---- */
.bps-mega__inner--about {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 0;
  padding: 16px 20px;
}

.bps-mega__links-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.bps-mega__col {
  padding: 16px 20px;
}

.bps-mega__heading {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--bps-gray);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--bps-border);
}

.bps-mega__link {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 6px;
  transition: background 0.15s;
  margin: 0 -12px;
}

.bps-mega__link:hover {
  background: var(--bps-section-bg);
}

.bps-mega__link-title {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  color: var(--bps-dark);
  transition: color 0.15s;
}

.bps-mega__link:hover .bps-mega__link-title {
  color: var(--bps-green);
}

.bps-mega__link-desc {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 300;
  color: var(--bps-gray);
  line-height: 1.3;
}

/* ---- CTA card inside mega ---- */
.bps-mega__col--cta {
  display: flex;
  align-items: stretch;
  border-right: none;
}

.bps-mega__cta {
  background: var(--bps-dark);
  border-radius: 8px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  width: 100%;
}

.bps-mega__cta-label {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--bps-green);
}

.bps-mega__cta-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 500;
  color: var(--bps-white);
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.bps-mega__cta-desc {
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.72);
  margin: 2px 0 0;
}

.bps-mega__cta-btn {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 500;
  color: var(--bps-white);
  text-decoration: none;
  margin-top: 8px;
  transition: color 0.15s;
}

.bps-mega__cta-btn:hover {
  color: var(--bps-green);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

/* All Bricks sections stay within the gutter lines */
.brxe-section {
  max-width: var(--container-wide) !important;
  width: calc(100% - 80px) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.brxe-section:has(.bps-hero),
.brxe-section:has(.bps-topbar),
.brxe-section:has(.bps-header),
.brxe-section:has(.bps-footer) {
  padding: 0 !important;
}

.brxe-section:has(.bps-hero) > *,
.brxe-section:has(.bps-topbar) > *,
.brxe-section:has(.bps-header) > *,
.brxe-section:has(.bps-footer) > * {
  max-width: 100% !important;
  width: 100% !important;
}

/* Horizontal dividers between sections — extend full viewport width */
.brxe-section {
  position: relative;
}

.brxe-section + .brxe-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 1px;
  background: var(--bps-gutter-line);
  pointer-events: none;
}

/* No divider line above sections that already have their own bg */
.brxe-section:has(.bps-topbar)::before,
.brxe-section:has(.bps-header)::before,
.brxe-section:has(.bps-hero)::before {
  display: none;
}

.bps-hero {
  position: relative;
  height: calc(100vh - var(--header-h, 132px));
  display: flex;
  flex-direction: column;
  color: var(--bps-white);
  overflow: hidden;
  background: var(--bps-dark);
}

.bps-hero__bg {
  position: absolute !important;
  inset: 0;
  opacity: 0.55;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
}

.bps-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bps-hero__content {
  position: relative;
  z-index: 2;
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 120px 40px 0;
  width: 100%;
  flex: 1;
}

.bps-hero__heading {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: var(--text-hero);
  line-height: var(--lh-hero);
  letter-spacing: var(--ls-hero);
  text-transform: uppercase;
  color: var(--bps-white);
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(40px);
}

.bps-hero__sub {
  font-family: var(--font-body);
  font-size: var(--text-body-sm);
  line-height: var(--lh-body-sm);
  color: rgba(255,255,255,0.8);
  max-width: 480px;
  margin-bottom: 28px;
  opacity: 0;
  transform: translateY(20px);
}

.bps-hero__cta {
  opacity: 0;
  transform: translateY(20px);
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.bps-hero__cta .bps-iso-badge { padding: 6px 13px; font-size: 11px; }

/* ── Hero Stairs ── */
.bps-hero__stairs {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 3;
  display: flex;
  align-items: flex-end;
}

.bps-hero__stair {
  background: var(--bps-section-bg);
  opacity: 0;
  transform: translateY(100%);
}

.bps-hero__stair[data-step="1"] { width: 120px; height: 60px; }
.bps-hero__stair[data-step="2"] { width: 120px; height: 120px; }
.bps-hero__stair[data-step="3"] { width: 120px; height: 180px; }
.bps-hero__stair[data-step="4"] { width: 120px; height: 240px; }

/* Stairs step down from light to deep green (shortest = lightest). */
.bps-hero__stair[data-step="1"] { background: #35b58e; }
.bps-hero__stair[data-step="2"] { background: #17936f; }
.bps-hero__stair[data-step="3"] { background: #0d7052; }
.bps-hero__stair[data-step="4"] { background: #064a37; }

/* ── Hero background slideshow (6-image Ken Burns cross-fade) ── */
.bps-hero__slideshow {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  opacity: 0.55; /* matches the dim of the original .bps-hero__bg */
}

.bps-hero__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transform: scale(1.16);
  transition: opacity 1.6s ease;
  will-change: opacity, transform;
}

/* Active slide fades in and slowly zooms out (Ken Burns). */
.bps-hero__slide--active {
  opacity: 1;
  transform: scale(1);
  transition: opacity 1.6s ease, transform 9s ease-out;
}

@media (prefers-reduced-motion: reduce) {
  .bps-hero__slide { transition: opacity 1.6s ease; transform: none; }
  .bps-hero__slide--active { transform: none; transition: opacity 1.6s ease; }
}

/* ── Hero Logo Marquee ── */
.bps-hero__marquee-bar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 20px 520px 20px 40px;
  border-top: 1px solid rgba(255,255,255,0.15);
  overflow: hidden;
  opacity: 0;
  /* Pin to the container width. Without this the very wide scroll track lets the
     bar grow to its max-content, which expands the hero's flex line and (via
     .bps-hero__content's auto margins) pushes the hero content off-screen. */
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.bps-hero__logos-label {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: rgba(255,255,255,0.5);
  white-space: nowrap;
  flex-shrink: 0;
}

.bps-hero__marquee-track {
  display: flex;
  overflow: hidden;
  flex: 1;
  min-width: 0;
}

.bps-hero__marquee-slide {
  display: flex;
  align-items: center;
  gap: 48px;
  flex-shrink: 0;
  padding-right: 48px;
  animation: marquee-scroll 20s linear infinite;
}

.bps-hero__marquee-logo {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.5);
  white-space: nowrap;
}

@keyframes marquee-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* ==========================================================================
   Bricks .brxe-block overrides for native elements
   ========================================================================== */

.brxe-block.bps-about,
.brxe-block.bps-contact {
  display: grid !important;
}

.brxe-block.bps-industries__header {
  flex-direction: row !important;
  justify-content: space-between !important;
  align-items: flex-end !important;
}

.brxe-block.bps-services {
  align-items: center !important;
}

/* ==========================================================================
   About Section
   ========================================================================== */

.bps-about {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: start;
}

.bps-about__left .bps-section-label {
  margin-bottom: 8px;
}

.bps-about__heading {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: var(--text-h2);
  line-height: var(--lh-h2);
  letter-spacing: var(--ls-h2);
  text-transform: capitalize;
  color: var(--bps-navy);
  margin-bottom: 28px;
}

.bps-about__text {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: var(--text-body);
  line-height: var(--lh-body);
  color: var(--bps-dark);
  padding-top: 40px;
}

/* Full-width credentials / recognition band (Feedbucket #930568).
   Sits between the "Family Owned" section and Capabilities. Static — the
   customer marquee already scrolls, so a second scroller would be busy. */
.bps-credbar {
  background: var(--bps-section-bg);
  border-top: 1px solid var(--bps-border);
  border-bottom: 1px solid var(--bps-border);
  padding-top: 18px;
  padding-bottom: 18px;
}
.bps-credbar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 13px 24px;
}
.bps-credbar__item {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bps-dark);
  white-space: nowrap;
}
.bps-credbar__item::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--bps-green);
  flex: 0 0 auto;
}
.bps-credbar__sep {
  width: 1px;
  height: 13px;
  background: var(--bps-border);
  flex: 0 0 auto;
}
@media (max-width: 767px) {
  .bps-credbar { padding-top: 22px; padding-bottom: 22px; }
  .bps-credbar__inner { flex-direction: column; gap: 14px; }
  .bps-credbar__sep { display: none; }
}

/* ==========================================================================
   Services Section (centered)
   ========================================================================== */

.bps-services {
  text-align: center;
}

.bps-services .bps-section-label {
  justify-content: center;
}

.bps-services__heading {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: var(--text-h2);
  line-height: var(--lh-h2);
  letter-spacing: var(--ls-h2);
  text-transform: capitalize;
  color: var(--bps-navy);
  margin-bottom: 16px;
}

.bps-services__sub {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: var(--text-body);
  line-height: var(--lh-body);
  color: var(--bps-dark);
  max-width: 560px;
  margin: 0 auto 48px;
}

.bps-services__grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 24px !important;
  text-align: center;
  align-items: stretch !important;
}

.bps-services__grid > .bps-bracket-card,
.bps-services__grid > .brxe-bracket-card {
  height: 100%;
}

.bps-services__grid .bps-bracket-card__inner {
  flex: 1;
}

/* ==========================================================================
   Industries Section
   ========================================================================== */

.bps-industries__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 32px;
}

.bps-industries__header .bps-section-label {
  margin-bottom: 0;
}

.bps-industries__heading {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: var(--text-h2);
  line-height: var(--lh-h2);
  letter-spacing: var(--ls-h2);
  text-transform: capitalize;
  color: var(--bps-navy);
}

.bps-industries__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.bps-industries__nav {
  display: flex;
  gap: 8px;
}

.bps-industries__arrow {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid var(--bps-border);
  color: var(--bps-charcoal);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.bps-industries__arrow:hover {
  border-color: var(--bps-green);
  color: var(--bps-green);
}

.bps-industries__arrow:disabled {
  opacity: 0.3;
  cursor: default;
}

.bps-industries__carousel {
  position: relative;
  overflow: hidden;
}

.bps-industries__scroll {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.bps-industries__scroll::-webkit-scrollbar {
  display: none;
}

.bps-industries__fade {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 8px;
  width: 120px;
  background: linear-gradient(to right, transparent, var(--bps-section-bg));
  pointer-events: none;
  z-index: 2;
}

.bps-industry-card {
  flex: 0 0 calc((100% - 72px) / 3.3);
  height: 300px;
  overflow: hidden;
  position: relative;
  scroll-snap-align: start;
  background: var(--bps-dark);
}

.bps-industry-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
  transition: opacity 0.3s, transform 0.4s;
}

.bps-industry-card:hover img {
  opacity: 0.85;
  transform: scale(1.03);
}

.bps-industry-card__overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
  background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, transparent 100%);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.bps-industry-card__info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bps-industry-card__num {
  font-family: var(--font-ui);
  font-size: 12px;
  color: rgba(255,255,255,0.5);
}

.bps-industry-card__name {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 500;
  color: var(--bps-white);
}

.bps-industry-card__arrow {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bps-white);
  opacity: 0.7;
}

/* ==========================================================================
   Contact Section
   ========================================================================== */

.brxe-section:has(.bps-contact) {
  position: relative;
  overflow: hidden;
}

.brxe-section:has(.bps-contact)::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('/wp-content/uploads/2026/05/pattern-1.svg') center / cover no-repeat;
  opacity: 1;
  pointer-events: none;
  z-index: 0;
}

.bps-contact {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.bps-contact__heading {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: var(--text-h2);
  line-height: var(--lh-h2);
  letter-spacing: var(--ls-h2);
  text-transform: capitalize;
  color: var(--bps-navy);
  margin-bottom: 16px;
}

.bps-contact__text {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: var(--text-body);
  line-height: var(--lh-body);
  color: var(--bps-dark);
}

.bps-contact__form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bps-contact__form input {
  width: 100%;
  padding: 12px 16px;
  background: var(--bps-white);
  border: 1px solid var(--bps-border);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 300;
  color: var(--bps-navy);
}

.bps-contact__form input::placeholder {
  color: var(--bps-placeholder);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.bps-footer {
  background: var(--bps-section-bg);
  padding: 60px 0 0;
  color: var(--bps-charcoal);
  border-top: 1px solid var(--bps-border);
}

.bps-footer__inner {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 40px;
}

.bps-footer__top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}

.bps-footer__logo {
  margin-bottom: 4px;
}

.bps-footer__logo .bps-logo__img {
  height: 36px;
  width: auto;
  filter: none;
}

.bps-footer__tagline {
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--bps-gray);
  margin-bottom: 20px;
  /* Track the tagline to exactly the logo mark's width (≈220px) */
  width: 220px;
  max-width: 100%;
  text-align: justify;
  text-align-last: justify;
}

.bps-footer__address {
  font-family: var(--font-body);
  font-size: var(--text-small);
  font-weight: 300;
  color: var(--bps-gray);
  line-height: 1.7;
}

.bps-footer__col-title {
  font-family: var(--font-ui);
  font-size: var(--text-small);
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
  color: var(--bps-charcoal);
}

.bps-footer__links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.bps-footer__links li {
  margin-bottom: 8px;
}

.bps-footer__links a {
  font-family: var(--font-body);
  font-size: var(--text-small);
  font-weight: 300;
  color: var(--bps-gray);
  text-decoration: none;
  transition: color 0.2s;
}

.bps-footer__links a:hover {
  color: var(--bps-charcoal);
}

.bps-footer__bottom {
  border-top: 1px solid var(--bps-border);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  font-family: var(--font-body);
  font-size: var(--text-small);
  font-weight: 300;
  color: var(--bps-gray);
}

.bps-footer__bottom a {
  color: var(--bps-gray);
  text-decoration: none;
}

.bps-footer__bottom a:hover {
  color: var(--bps-charcoal);
}

/* ==========================================================================
   Homepage Responsive
   ========================================================================== */

@media (max-width: 991px) {
  .bps-about,
  .bps-contact {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .bps-services__grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .bps-footer__top {
    grid-template-columns: 1fr 1fr;
  }

  .bps-industries__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}

@media (max-width: 767px) {
  /* Tighter gutters on mobile: pull the outer gutter in (40px → 16px) and reduce
     the container padding inside it (40px → 16px) so content isn't so narrow. */
  body::before { left: 16px; }
  body::after  { right: 16px; }
  .brxe-section { width: calc(100% - 32px) !important; }
  .bps-container { padding-left: 16px; padding-right: 16px; }

  .bps-hero {
    min-height: 480px;
  }

  .bps-hero__content {
    padding: 80px 24px 0;
  }

  /* The 520px desktop fade-spacer is far wider than a phone — trim it so the bar
     stays within the viewport. */
  .bps-hero__marquee-bar {
    padding: 20px 24px;
  }

  .bps-services__grid {
    grid-template-columns: 1fr !important;
  }

  .bps-industry-card {
    flex: 0 0 300px;
    height: 240px;
  }

  .bps-footer__top {
    grid-template-columns: 1fr;
  }

  .bps-nav {
    display: none !important;
  }

  .bps-header .bps-btn-wrap {
    display: none;
  }

  .bps-topbar__inner,
  .bps-footer__inner {
    padding: 0 24px;
  }

  .bps-header__inner {
    padding: 14px 24px;
  }
}

/* ==========================================================================
   Page Transition Overlay
   ========================================================================== */

.bps-transition {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
}

.bps-transition__bg {
  position: absolute;
  inset: 0;
  background: var(--bps-section-bg, #f4f4f4);
  opacity: 0;
  z-index: 1;
}

.bps-transition__frame {
  position: absolute;
  box-shadow: 0 0 0 200vmax var(--bps-section-bg, #f4f4f4);
  z-index: 2;
  pointer-events: none;
}

.bps-transition__bracket {
  position: absolute;
  width: 36px;
  height: 36px;
  will-change: transform;
  z-index: 3;
}

.bps-transition__bracket-h,
.bps-transition__bracket-v {
  position: absolute;
  background: var(--bps-green);
}

.bps-transition__bracket-h {
  height: 2px;
  width: 100%;
}

.bps-transition__bracket-v {
  width: 2px;
  height: 100%;
}

.bps-transition__bracket--tl { top: 0; left: 0; }
.bps-transition__bracket--tl .bps-transition__bracket-h { top: 0; left: 0; }
.bps-transition__bracket--tl .bps-transition__bracket-v { top: 0; left: 0; }

.bps-transition__bracket--tr { top: 0; right: 0; }
.bps-transition__bracket--tr .bps-transition__bracket-h { top: 0; right: 0; }
.bps-transition__bracket--tr .bps-transition__bracket-v { top: 0; right: 0; }

.bps-transition__bracket--bl { bottom: 0; left: 0; }
.bps-transition__bracket--bl .bps-transition__bracket-h { bottom: 0; left: 0; }
.bps-transition__bracket--bl .bps-transition__bracket-v { bottom: 0; left: 0; }

.bps-transition__bracket--br { bottom: 0; right: 0; }
.bps-transition__bracket--br .bps-transition__bracket-h { bottom: 0; right: 0; }
.bps-transition__bracket--br .bps-transition__bracket-v { bottom: 0; right: 0; }

.ds-section-divider {
  border: 0;
  border-top: 2px solid var(--bps-border);
  margin: 60px 0;
}

/* ==========================================================================
   Service Template (extends BPS design system)
   ========================================================================== */

/* ── Hero ──────────────────────────────────────────────────────────────── */

/* ── Capability hero: two-column, framed image + carved-corner spec card ── */
.bps-svc-hero {
  position: relative;
  overflow: hidden;
  background: var(--bps-section-bg);
}

.bps-svc-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('/wp-content/uploads/2026/05/pattern-1.svg') center / cover no-repeat;
  opacity: 0.35;
  pointer-events: none;
}

.bps-svc-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  min-height: clamp(500px, 70vh, 720px);
}

.bps-svc-hero__left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 40px;
  max-width: 560px;
}

.bps-svc-hero__label {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--bps-white);
  border: 1px solid var(--bps-border);
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--bps-gray);
}

/* Tighten the gap between the eyebrow and the heading (the left column's 40px
   gap is otherwise inherited between them). */
.bps-svc-hero__eyebrow {
  margin-bottom: -24px;
}

.bps-svc-hero__headline {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.bps-svc-hero__title {
  font-family: var(--font-heading);
  font-size: var(--text-hero);
  line-height: var(--lh-hero);
  letter-spacing: var(--ls-hero);
  text-transform: uppercase;
  color: var(--bps-charcoal);
}

/* Solid heading — no gradient sweep (clean, like the reference). */
.bps-svc-hero__title .bps-heading-line {
  display: block;
  background: none;
  -webkit-text-fill-color: currentColor;
  color: var(--bps-charcoal);
  animation: none;
}

.bps-svc-hero__desc {
  max-width: 460px;
  color: var(--bps-gray);
}

/* Animated CTA — the label swaps upward on hover. */
.bps-svc-hero__btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  border: none;
  border-radius: 14px;
  background: none;
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 500;
  color: var(--bps-white);
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
}

.bps-svc-hero__btn-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--bps-green);
  border-radius: 14px;
  transition: background 0.3s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.bps-svc-hero__btn:hover .bps-svc-hero__btn-bg {
  background: var(--bps-green-hover);
  transform: scale(0.965);
}

.bps-svc-hero__btn-label {
  position: relative;
  display: inline-flex;
  height: 1.4em;
  overflow: hidden;
}

.bps-svc-hero__btn-text {
  display: inline-block;
  text-shadow: 0 1.4em 0 var(--bps-white);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.bps-svc-hero__btn:hover .bps-svc-hero__btn-text {
  transform: translateY(-1.4em);
}

.bps-svc-hero__btn-arrow {
  display: inline-block;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.bps-svc-hero__btn:hover .bps-svc-hero__btn-arrow {
  transform: translateX(4px);
}

/* Framed image */
.bps-svc-hero__media {
  position: relative;
  width: 100%;
}

.bps-svc-hero__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 16px;
  overflow: hidden;
  background: var(--bps-dark);
}

/* Top-left cutout — a notch of page background carved into the image corner.
   Removed per client request (Feedbucket #907575); the frame keeps its rounded
   corners on all sides. Kept the rules below for reference / easy restore. */
.bps-svc-hero__cut { display: none; }
.bps-svc-hero__cut {
  position: absolute;
  top: 0;
  left: 0;
  width: clamp(84px, 20%, 132px);
  height: clamp(104px, 26%, 168px);
  background: var(--bps-section-bg);
  border-bottom-right-radius: 22px;
  z-index: 2;
}

.bps-svc-hero__cut-notch {
  position: absolute;
  width: 20px;
  height: 20px;
  background: var(--bps-section-bg);
}

/* Concave transition where the cut's top edge meets the image (to its right). */
.bps-svc-hero__cut-notch--h {
  top: 0;
  right: 0;
  transform: translateX(100%);
  -webkit-mask: radial-gradient(20px at 100% 100%, #0000 98%, #000 100%);
  mask: radial-gradient(20px at 100% 100%, #0000 98%, #000 100%);
}

/* Concave transition where the cut's left edge meets the image (below it). */
.bps-svc-hero__cut-notch--v {
  left: 0;
  bottom: 0;
  transform: translateY(100%);
  -webkit-mask: radial-gradient(20px at 100% 100%, #0000 98%, #000 100%);
  mask: radial-gradient(20px at 100% 100%, #0000 98%, #000 100%);
}

.bps-svc-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Carved-corner spec card nested in the image's bottom-right. */
.bps-svc-hero__nest {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 10px 0 0 10px;
  background: var(--bps-section-bg);
  border-top-left-radius: 20px;
}

/* Card nested inside the image's bottom-right cutout — plain white, no shadow. */
.bps-svc-hero__card {
  display: flex;
  flex-direction: column;
  min-width: 172px;
  padding: 16px 18px;
  border-radius: 12px;
  background: var(--bps-white);
}

.bps-svc-hero__card-tag {
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--bps-gray);
  margin-bottom: 6px;
}

.bps-svc-hero__card-value {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.15;
  color: var(--bps-charcoal);
}

.bps-svc-hero__card-label {
  margin-top: 2px;
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.3;
  color: var(--bps-gray);
}

.bps-svc-hero__card-body {
  display: flex;
  flex-direction: column;
}

/* Concave corners that smooth the nest's outer edges into the image. */
.bps-svc-hero__notch {
  position: absolute;
  width: 20px;
  height: 20px;
  background: var(--bps-section-bg);
  z-index: 2;
  pointer-events: none;
}

/* Mirror of the top-left cutout's notches (which read correctly). */
.bps-svc-hero__notch--v {
  top: 0;
  right: 0;
  transform: translateY(-100%);
  -webkit-mask: radial-gradient(20px at 0 0, #0000 98%, #000 100%);
  mask: radial-gradient(20px at 0 0, #0000 98%, #000 100%);
}

.bps-svc-hero__notch--h {
  left: 0;
  bottom: 0;
  transform: translateX(-100%);
  -webkit-mask: radial-gradient(20px at 0 0, #0000 98%, #000 100%);
  mask: radial-gradient(20px at 0 0, #0000 98%, #000 100%);
}

/* ── Icon List ─────────────────────────────────────────────────────────── */

.bps-svc-iconlist__inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: start;
}

.bps-svc-iconlist__text {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.bps-svc-iconlist__card {
  position: relative;
  background: var(--bps-white);
  border: 1px solid #e8e8e8;
  padding: 40px 36px;
  --card-bracket-color: #4a4a4a;
  --card-bracket-size: 16px;
  --card-bracket-weight: 1.5px;
  --card-bracket-offset: -1px;
}

.bps-svc-iconlist__card::before,
.bps-svc-iconlist__card::after {
  content: '';
  position: absolute;
  width: var(--card-bracket-size);
  height: var(--card-bracket-size);
  pointer-events: none;
}

.bps-svc-iconlist__card::before {
  top: var(--card-bracket-offset);
  right: var(--card-bracket-offset);
  border-top: var(--card-bracket-weight) solid var(--card-bracket-color);
  border-right: var(--card-bracket-weight) solid var(--card-bracket-color);
}

.bps-svc-iconlist__card::after {
  bottom: var(--card-bracket-offset);
  right: var(--card-bracket-offset);
  border-bottom: var(--card-bracket-weight) solid var(--card-bracket-color);
  border-right: var(--card-bracket-weight) solid var(--card-bracket-color);
}

.bps-svc-iconlist__card-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.bps-svc-iconlist__card-inner::before,
.bps-svc-iconlist__card-inner::after {
  content: '';
  position: absolute;
  width: var(--card-bracket-size);
  height: var(--card-bracket-size);
  pointer-events: none;
}

.bps-svc-iconlist__card-inner::before {
  top: calc(-40px + var(--card-bracket-offset));
  left: calc(-36px + var(--card-bracket-offset));
  border-top: var(--card-bracket-weight) solid var(--card-bracket-color);
  border-left: var(--card-bracket-weight) solid var(--card-bracket-color);
}

.bps-svc-iconlist__card-inner::after {
  bottom: calc(-40px + var(--card-bracket-offset));
  left: calc(-36px + var(--card-bracket-offset));
  border-bottom: var(--card-bracket-weight) solid var(--card-bracket-color);
  border-left: var(--card-bracket-weight) solid var(--card-bracket-color);
}

.bps-svc-iconlist__item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.bps-svc-iconlist__icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  object-fit: contain;
}

.bps-svc-iconlist__label {
  font-family: var(--font-ui);
  font-size: var(--text-body-sm);
  font-weight: 500;
}

/* ── Specs Table ───────────────────────────────────────────────────────── */

.bps-svc-specs__header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 48px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.bps-svc-specs__stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.bps-svc-specs__box {
  background: var(--bps-white);
  border-radius: 4px;
  padding: 36px 40px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  align-items: start;
}

.bps-svc-specs__cat {
  font-family: var(--font-heading);
  font-size: var(--text-h4);
  font-weight: 400;
  letter-spacing: var(--ls-h4);
  margin: 0;
  color: var(--bps-charcoal);
}

.bps-svc-specs__list {
  list-style: disc;
  padding-left: 20px;
  margin: 0;
  font-family: var(--font-ui);
  font-size: var(--text-body-sm);
  line-height: 1.8;
  color: var(--bps-gray);
}

/* ── Feature Highlight ─────────────────────────────────────────────────── */

.bps-svc-feature {
  background-color: var(--bps-charcoal);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
  position: relative;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.bps-section.bps-svc-feature {
  /* Contained: fill the gutter-line column like every other section instead of
     breaking out to the viewport edge. The old 100vw + calc(-50vw + 50%) breakout
     overshot past the left gutter line under scrollbar-gutter: stable (100vw counts
     the reserved scrollbar width) and could force horizontal scroll. Content stays
     centered via the inner .bps-container. */
  max-width: 100%;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
}

.bps-svc-feature::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  pointer-events: none;
}

.bps-svc-feature__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.bps-svc-feature__text {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 600px;
}

.bps-svc-feature__card {
  position: relative;
  align-self: flex-end;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 36px 40px;
  max-width: 600px;
  --card-bracket-color: rgba(255, 255, 255, 0.5);
  --card-bracket-size: 16px;
  --card-bracket-weight: 1.5px;
  --card-bracket-offset: -1px;
}

.bps-svc-feature__card::before,
.bps-svc-feature__card::after {
  content: '';
  position: absolute;
  width: var(--card-bracket-size);
  height: var(--card-bracket-size);
  pointer-events: none;
}

.bps-svc-feature__card::before {
  top: var(--card-bracket-offset);
  right: var(--card-bracket-offset);
  border-top: var(--card-bracket-weight) solid var(--card-bracket-color);
  border-right: var(--card-bracket-weight) solid var(--card-bracket-color);
}

.bps-svc-feature__card::after {
  bottom: var(--card-bracket-offset);
  right: var(--card-bracket-offset);
  border-bottom: var(--card-bracket-weight) solid var(--card-bracket-color);
  border-right: var(--card-bracket-weight) solid var(--card-bracket-color);
}

.bps-svc-feature__card-inner {
  position: relative;
}

.bps-svc-feature__card-inner::before,
.bps-svc-feature__card-inner::after {
  content: '';
  position: absolute;
  width: var(--card-bracket-size);
  height: var(--card-bracket-size);
  pointer-events: none;
}

.bps-svc-feature__card-inner::before {
  top: calc(-36px + var(--card-bracket-offset));
  left: calc(-40px + var(--card-bracket-offset));
  border-top: var(--card-bracket-weight) solid var(--card-bracket-color);
  border-left: var(--card-bracket-weight) solid var(--card-bracket-color);
}

.bps-svc-feature__card-inner::after {
  bottom: calc(-36px + var(--card-bracket-offset));
  left: calc(-40px + var(--card-bracket-offset));
  border-bottom: var(--card-bracket-weight) solid var(--card-bracket-color);
  border-left: var(--card-bracket-weight) solid var(--card-bracket-color);
}

.bps-svc-feature__bullets {
  list-style: disc;
  padding-left: 20px;
  margin: 0;
  font-family: var(--font-ui);
  font-size: var(--text-body-sm);
  line-height: 2;
  color: rgba(255, 255, 255, 0.9);
}

/* ── Stats Grid ────────────────────────────────────────────────────────── */

.bps-svc-stats__header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 48px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.bps-svc-stats__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: minmax(200px, auto);
  gap: 16px;
}

.bps-svc-stats__card {
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  border-radius: 4px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  position: relative;
  min-height: 200px;
}

.bps-svc-stats__card--default {
  background: #eef7f2;
}

.bps-svc-stats__card--green {
  background: var(--bps-green);
}

.bps-svc-stats__card--green .bps-svc-stats__value,
.bps-svc-stats__card--green .bps-svc-stats__label {
  color: #fff;
}

.bps-svc-stats__card--light {
  background: #f5f5f5;
}

.bps-svc-stats__card--white {
  background: var(--bps-white);
  border: 1px solid var(--bps-border);
}

.bps-svc-stats__card--has-img {
  background-color: var(--bps-charcoal);
}

.bps-svc-stats__card--has-img .bps-svc-stats__value,
.bps-svc-stats__card--has-img .bps-svc-stats__label {
  color: #fff;
  position: relative;
  z-index: 1;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

.bps-svc-stats__card--has-img::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.25);
  z-index: 0;
}

.bps-svc-stats__value {
  font-family: var(--font-heading);
  font-size: var(--text-h3);
  font-weight: 700;
  letter-spacing: var(--ls-h3);
  color: var(--bps-green);
}

.bps-svc-stats__label {
  font-family: var(--font-body);
  font-size: var(--text-small);
  font-weight: 300;
  color: var(--bps-gray);
}

/* ── CTA / Contact ─────────────────────────────────────────────────────── */

.bps-svc-cta {
  background: var(--bps-green);
  color: #fff;
  border-top: none;
}

.bps-svc-cta__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

/* Common case (no embedded form): one centered column */
.bps-svc-cta__inner:not(:has(.bps-svc-cta__form)) {
  grid-template-columns: 1fr;
  max-width: 760px;
  text-align: center;
  justify-items: center;
}

.bps-svc-cta__text {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.bps-svc-cta__inner:not(:has(.bps-svc-cta__form)) .bps-svc-cta__text {
  align-items: center;
}

/* Invert colours for the green background */
.bps-svc-cta .bps-section-label { color: rgba(255, 255, 255, 0.85); }
.bps-svc-cta .bps-section-label::before { background: #fff; }
.bps-svc-cta .bps-section-heading--dark { color: #fff; }
.bps-svc-cta .bps-body-text { color: rgba(255, 255, 255, 0.92); }

/* White button on green (inverts the brand green button) */
.bps-svc-cta .bps-btn-wrap {
  --btn-bracket-color: rgba(255, 255, 255, 0.7);
  align-self: center;
  margin-top: 8px;
}

.bps-svc-cta .bps-btn--primary {
  background-color: #fff;
  color: var(--bps-green);
}

.bps-svc-cta .bps-btn--primary:hover {
  background-color: rgba(255, 255, 255, 0.9);
}

/* If a form shortcode is present, keep it legible as a white card on green */
.bps-svc-cta__form {
  background: #fff;
  border-radius: 8px;
  padding: 28px;
}

/* ── Side Sheet ────────────────────────────────────────────────────────── */

.bps-sheet {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  visibility: hidden;
}

.bps-sheet[aria-hidden="false"] {
  pointer-events: auto;
  visibility: visible;
}

.bps-sheet__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.bps-sheet[aria-hidden="false"] .bps-sheet__backdrop {
  opacity: 1;
}

.bps-sheet__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: 480px;
  max-width: 90vw;
  height: 100%;
  background: var(--bps-white);
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.bps-sheet[aria-hidden="false"] .bps-sheet__panel {
  transform: translateX(0);
}

.bps-sheet__close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  border: none;
  background: none;
  font-size: 24px;
  color: var(--bps-dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s;
}

.bps-sheet__close:hover {
  background: var(--bps-section-bg);
}

.bps-sheet__header {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bps-sheet__title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--bps-navy);
}

.bps-sheet__desc {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.6;
  color: var(--bps-dark);
  opacity: 0.7;
}

.bps-sheet__form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.bps-sheet__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bps-sheet__field label {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bps-dark);
}

.bps-sheet__field input,
.bps-sheet__field textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--bps-section-bg);
  border: 1px solid var(--bps-border);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 300;
  color: var(--bps-navy);
  border-radius: 0;
  transition: border-color 0.2s;
}

.bps-sheet__field input:focus,
.bps-sheet__field textarea:focus {
  outline: none;
  border-color: var(--bps-green);
}

.bps-sheet__field input[readonly] {
  background: var(--bps-section-bg);
  color: var(--bps-green);
  font-weight: 400;
  cursor: default;
}

.bps-sheet__field textarea {
  resize: vertical;
  min-height: 100px;
}

.bps-btn--full {
  width: 100%;
  text-align: center;
}

.bps-sheet .bps-btn-wrap {
  align-self: stretch;
}

body.bps-sheet-open {
  overflow: hidden;
}

/* ── Responsive ────────────────────────────────────────────────────────── */

@media (max-width: 767px) {
  .bps-svc-hero__inner,
  .bps-svc-iconlist__inner,
  .bps-svc-cta__inner {
    grid-template-columns: 1fr;
  }

  .bps-svc-hero__inner {
    min-height: auto;
    gap: 36px;
  }
  .bps-svc-hero__left {
    gap: 28px;
    max-width: none;
  }
  .bps-svc-hero__frame {
    aspect-ratio: 3 / 2;
  }
  .bps-svc-hero__card {
    min-width: 150px;
    padding: 12px 14px;
  }
  .bps-svc-hero__card-value {
    font-size: 20px;
  }

  .bps-svc-specs__box {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 24px;
  }

  .bps-svc-stats__grid {
    grid-template-columns: 1fr 1fr;
  }

  .bps-svc-feature__card {
    align-self: stretch;
    max-width: none;
  }
}

/* ==========================================================================
   Hamburger Toggle
   ========================================================================== */

.bps-hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  z-index: 3;
  -webkit-tap-highlight-color: transparent;
}

.bps-hamburger__bar {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--bps-dark);
  position: relative;
  transition: background 0.2s;
}

.bps-hamburger__bar::before,
.bps-hamburger__bar::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: var(--bps-dark);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.bps-hamburger__bar::before { top: -7px; }
.bps-hamburger__bar::after  { bottom: -7px; }

.bps-hamburger.is-active .bps-hamburger__bar {
  background: transparent;
}

.bps-hamburger.is-active .bps-hamburger__bar::before {
  top: 0;
  transform: rotate(45deg);
}

.bps-hamburger.is-active .bps-hamburger__bar::after {
  bottom: 0;
  transform: rotate(-45deg);
}

@media (max-width: 767px) {
  .bps-hamburger { display: flex; }
}

/* ==========================================================================
   Mobile Menu — Slide-down Panel
   ========================================================================== */

.bps-mobile-menu {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 80px);
  max-width: var(--container-wide);
  z-index: 100001;
  background: var(--bps-section-bg);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.3s ease;
}

.bps-mobile-menu.is-open {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  box-shadow: 0 12px 48px rgba(0,0,0,0.12);
}

.bps-mobile-backdrop {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  min-height: 100vh;
  z-index: 100000;
  background: rgba(0,0,0,0.3);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s, visibility 0.35s;
}

.bps-mobile-backdrop.is-visible {
  opacity: 1;
  visibility: visible;
}

/* ---- Nav items ---- */
.bps-mobile-nav {
  list-style: none;
  margin: 0;
  padding: 16px 24px;
}

.bps-mobile-nav__item {
  border-bottom: 1px solid var(--bps-border);
}

.bps-mobile-nav__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 18px 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: var(--text-h3);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: var(--ls-h3);
  color: var(--bps-dark);
  -webkit-tap-highlight-color: transparent;
}

.bps-mobile-nav__toggle svg {
  width: 16px;
  height: 16px;
  stroke: var(--bps-gray);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}

.bps-mobile-nav__item.is-expanded .bps-mobile-nav__toggle svg {
  transform: rotate(180deg);
}

.bps-mobile-nav__item.is-expanded .bps-mobile-nav__toggle {
  color: var(--bps-green);
}

/* ---- Accordion panel ---- */
.bps-mobile-nav__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.bps-mobile-nav__item.is-expanded .bps-mobile-nav__panel {
  grid-template-rows: 1fr;
}

.bps-mobile-nav__panel-inner {
  overflow: hidden;
}

.bps-mobile-nav__sublist {
  list-style: none;
  margin: 0;
  padding: 0 0 16px 0;
}

.bps-mobile-nav__subheading {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--bps-gray);
  padding: 12px 0 6px;
}

.bps-mobile-nav__sublink {
  display: block;
  padding: 10px 0;
  text-decoration: none;
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: 400;
  color: var(--bps-dark);
  transition: color 0.15s;
}

.bps-mobile-nav__sublink:hover,
.bps-mobile-nav__sublink:active {
  color: var(--bps-green);
}

/* ---- CTA at bottom ---- */
.bps-mobile-menu__cta {
  padding: 24px;
  flex-shrink: 0;
}

.bps-mobile-menu__cta .bps-btn {
  width: 100%;
  text-align: center;
  justify-content: center;
}

/* ==========================================================================
   Team Page
   ========================================================================== */

/* ── Hero ── */
.bps-team-hero__inner {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ── Grid ── */
.bps-team-grid__inner {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.bps-team-card {
  background: var(--bps-white);
  border: 1px solid var(--bps-border);
  overflow: hidden;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.bps-team-card:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

/* Button variant (cards with a bio) — reset native button styles */
button.bps-team-card {
  font-family: inherit;
  color: inherit;
  text-align: left;
  width: 100%;
  display: block;
  padding: 0;
  margin: 0;
  border-radius: 0;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.bps-team-card.is-clickable:hover .bps-team-card__more {
  color: var(--bps-green-hover);
}

.bps-team-card.is-clickable:hover .bps-team-card__more-arrow {
  transform: translateX(4px);
}

.bps-team-card:focus-visible {
  outline: 2px solid var(--bps-green);
  outline-offset: 2px;
}

.bps-team-card__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bps-green);
  transition: color 0.15s ease;
}

.bps-team-card__more-arrow {
  display: inline-block;
  transition: transform 0.2s ease;
}

.bps-team-card__photo {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--bps-section-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.bps-team-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 22%;            /* keep faces/heads in frame */
  filter: grayscale(1) contrast(1.05) brightness(1.02);
  transition: filter 0.45s ease;
}

/* True two-tone duotone (only on cards that have a photo):
   highlights -> pale mint (multiply), shadows -> deep green (screen).
   This preserves natural contrast instead of a flat single-hue tint. */
.bps-team-card__photo:has(img)::before,
.bps-team-card__photo:has(img)::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  transition: opacity 0.45s ease;
}

.bps-team-card__photo:has(img)::before {
  background: var(--bps-duo-light);
  mix-blend-mode: multiply;
}

.bps-team-card__photo:has(img)::after {
  background: var(--bps-duo-dark);
  mix-blend-mode: screen;
}

/* Reveal full color on hover */
.bps-team-card:hover .bps-team-card__photo img {
  filter: grayscale(0) contrast(1) brightness(1);
}

.bps-team-card:hover .bps-team-card__photo:has(img)::before,
.bps-team-card:hover .bps-team-card__photo:has(img)::after {
  opacity: 0;
}

.bps-team-card__initials {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--bps-green);
  opacity: 0.5;
}

.bps-team-card__info {
  padding: 20px 24px 24px;
}

.bps-team-card__name {
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: var(--text-body);
  line-height: 1.3;
  color: var(--bps-dark);
  margin: 0 0 4px;
}

.bps-team-card__title {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: var(--text-body-sm);
  line-height: var(--lh-body-sm);
  color: var(--bps-gray);
  margin: 0 0 10px;
}

.bps-team-card__contact {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  color: var(--bps-green);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.15s;
}

a.bps-team-card__contact:hover {
  color: var(--bps-green-hover);
}

/* ── CTA ── */
.bps-team-cta__inner {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 40px;
}

/* ── Responsive ── */
@media (max-width: 991px) {
  .bps-team-grid__inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (max-width: 767px) {
  .bps-team-hero__inner,
  .bps-team-grid__inner,
  .bps-team-cta__inner {
    padding: 0 24px;
  }

  .bps-team-grid__inner {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .bps-team-card__info {
    padding: 14px 16px 18px;
  }

  .bps-team-card__initials {
    font-size: 28px;
  }
}

@media (max-width: 480px) {
  .bps-team-grid__inner {
    grid-template-columns: 1fr;
  }
}

/* ── Team Bio Modal ── */
.bps-team-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.bps-team-modal.is-open {
  display: flex;
}

.bps-team-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(20, 20, 28, 0.55);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  animation: bps-modal-fade 0.2s ease-out;
}

.bps-team-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(640px, 100%);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  background: var(--bps-white);
  border: 1px solid var(--bps-border);
  padding: clamp(28px, 4vw, 48px);
  animation: bps-modal-rise 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.bps-team-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  line-height: 1;
  color: var(--bps-gray);
  background: transparent;
  border: 1px solid var(--bps-border);
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.bps-team-modal__close:hover {
  color: var(--bps-dark);
  border-color: var(--bps-gray);
}

.bps-team-modal__head {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--bps-border);
}

.bps-team-modal__photo {
  flex: 0 0 88px;
  width: 88px;
  height: 88px;
  overflow: hidden;
  background: var(--bps-section-bg);
}

.bps-team-modal__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 22%;            /* match card framing — keep faces/heads in frame */
}

.bps-team-modal__photo .bps-team-card__initials {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 26px;
}

.bps-team-modal__name {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: clamp(20px, 2.5vw, 26px);
  line-height: 1.2;
  color: var(--bps-dark);
  margin: 0 0 4px;
}

.bps-team-modal__title {
  font-family: var(--font-ui);
  font-size: var(--text-body-sm);
  letter-spacing: 0.02em;
  color: var(--bps-green);
  margin: 0;
}

.bps-team-modal__bio p {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: var(--text-body-sm);
  line-height: 1.7;
  color: var(--bps-gray);
  margin: 0 0 14px;
}

.bps-team-modal__bio p:last-child {
  margin-bottom: 0;
}

@keyframes bps-modal-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes bps-modal-rise {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}

@media (max-width: 480px) {
  .bps-team-modal__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
}

/* ==========================================================================
   About & History Page
   ========================================================================== */

/* ── Editorial Hero ── */
.bps-about-hero-section {
  padding-top: clamp(40px, 3vw, 80px) !important;
  padding-bottom: 0 !important;
  overflow: hidden;
}

.bps-about-hero__inner {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(40px, 5vw, 80px);
  align-items: center;
}

.bps-about-hero__lead {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.bps-about-hero__heading {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: var(--text-hero);
  line-height: var(--lh-hero);
  letter-spacing: var(--ls-hero);
  text-transform: uppercase;
  color: var(--bps-charcoal);
  margin: 0;
}

.bps-about-hero__pullquote {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(18px, 16px + 0.5vw, 22px);
  line-height: 1.6;
  color: var(--bps-gray);
  border-left: 2px solid var(--bps-green);
  padding-left: 24px;
  margin: 0;
}

/* ── Dual-marquee image gallery ── */
.bps-about-hero__gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  height: clamp(440px, 64vh, 640px);
  overflow: hidden;
  position: relative;
  /* Fade top & bottom edges */
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 12%, #000 88%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 12%, #000 88%, transparent 100%);
}

.bps-about-hero__col {
  display: flex;
  flex-direction: column;
  will-change: transform;
}

.bps-about-hero__col--up {
  animation: bps-marquee-up 42s linear infinite;
}

.bps-about-hero__col--down {
  animation: bps-marquee-down 48s linear infinite;
}

.bps-about-hero__gallery:hover .bps-about-hero__col {
  animation-play-state: paused;
}

.bps-about-hero__img {
  display: block;
  width: 100%;
  aspect-ratio: 21 / 26;
  object-fit: cover;
  margin-bottom: 16px;
  background: var(--bps-section-bg);
  filter: grayscale(1) contrast(1.02);
}

/* Static single-image replacement for the scrolling gallery (temporary) */
.bps-about-hero__gallery--static {
  display: block;
  grid-template-columns: none;
  -webkit-mask-image: none;
  mask-image: none;
}
.bps-about-hero__static-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.02);
}

/* Family-owned badge overlapping the hero image corner */
.bps-about-hero__gallery--static { position: relative; }
.bps-about-hero__badge {
  position: absolute;
  left: 24px;
  bottom: 24px;
  width: clamp(104px, 12vw, 146px);
  height: auto;
  /* Transparent circular seal — a shape-following drop-shadow reads cleaner than a
     rectangular box-shadow/border, which framed the old solid-background badge.
     Inset from the corner (not overhanging) so it has breathing room. */
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.22));
  z-index: 2;
}
@media (max-width: 767px) {
  .bps-about-hero__badge { left: 16px; bottom: 16px; width: 92px; }
}

@keyframes bps-marquee-up {
  from { transform: translateY(0); }
  to   { transform: translateY(-50%); }
}

@keyframes bps-marquee-down {
  from { transform: translateY(-50%); }
  to   { transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .bps-about-hero__col--up,
  .bps-about-hero__col--down {
    animation: none;
  }
}

/* ── Story Grid ── */
.bps-about-story__inner {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: start;
}

.bps-about-story__col--text {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.bps-about-story__col--stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--bps-border);
  border: 1px solid var(--bps-border);
}

.bps-about-story__stat {
  background: var(--bps-white);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bps-about-story__stat-number {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: clamp(32px, 28px + 1vw, 48px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--bps-green);
}

.bps-about-story__stat-label {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--bps-gray);
  margin-top: 4px;
}

/* ── Timeline Carousel ── */
.bps-timeline-section__inner {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 40px;
}

.bps-timeline-section__header {
  margin-bottom: 48px;
}

.bps-timeline {
  position: relative;
  outline: none;
}

.bps-timeline__slide {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 48px;
  align-items: start;
  /* Keep the year + content grouped at the top; any reserved (fixed-height)
     space falls below them instead of stretching the rows apart. */
  align-content: start;
  /* Fixed height across all milestones so navigating years never shifts the
     layout (bodies range from one line to a full paragraph). */
  min-height: 410px;
  padding-bottom: 40px;
}

.bps-timeline__year-wrap {
  position: relative;
}

.bps-timeline__year {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: clamp(72px, 60px + 3vw, 120px);
  line-height: 1;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--bps-green);
  display: block;
  user-select: none;
  /* Reserve room for the widest year (a range like "2000–2001" ≈ 9ch) so the
     content column never shifts between single-year and range entries.
     ch scales with the clamped font, so this holds at every viewport. */
  min-width: 9.25ch;
}

.bps-timeline__content {
  padding-top: clamp(12px, 2vw, 28px);
  max-width: 520px;
}

.bps-timeline__title {
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: var(--text-h3);
  line-height: 1.3;
  color: var(--bps-dark);
  margin: 0 0 12px;
}

.bps-timeline__body {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: var(--text-body);
  line-height: var(--lh-body);
  color: var(--bps-gray);
  margin: 0;
}

/* Controls */
.bps-timeline__controls {
  display: flex;
  justify-content: flex-start;
  padding-bottom: 32px;
}

.bps-timeline__nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

.bps-timeline__prev,
.bps-timeline__next {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--bps-border);
  background: var(--bps-white);
  color: var(--bps-dark);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.bps-timeline__prev:hover,
.bps-timeline__next:hover {
  border-color: var(--bps-green);
  color: var(--bps-green);
}

.bps-timeline__counter {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  color: var(--bps-gray);
  min-width: 48px;
  text-align: center;
}

/* Track */
.bps-timeline__track-wrap {
  position: relative;
  padding-top: 8px;
}

.bps-timeline__progress {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--bps-border);
}

.bps-timeline__progress-fill {
  height: 100%;
  width: 0%;
  background: var(--bps-green);
  transition: width 0.5s ease;
}

.bps-timeline__track {
  display: flex;
  justify-content: space-between;
  padding-top: 16px;
}

.bps-timeline__marker {
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.bps-timeline__marker::before {
  content: '';
  width: 10px;
  height: 10px;
  border: 1.5px solid var(--bps-border);
  background: var(--bps-white);
  transition: border-color 0.25s, background 0.25s, transform 0.25s;
}

.bps-timeline__marker:hover::before {
  border-color: var(--bps-green);
  transform: scale(1.2);
}

.bps-timeline__marker.is-active::before {
  border-color: var(--bps-green);
  background: var(--bps-green);
  transform: scale(1.3);
}

.bps-timeline__marker-year {
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--bps-gray);
  white-space: nowrap;
  transition: color 0.25s, opacity 0.2s ease;
  /* Only the active (and hovered) marker shows its year — keeps a dense
     16-point strip from looking busy. */
  opacity: 0;
}

.bps-timeline__marker:hover .bps-timeline__marker-year { opacity: 1; }

.bps-timeline__marker.is-active .bps-timeline__marker-year {
  color: var(--bps-green);
  font-weight: 500;
  opacity: 1;
}

/* ── Values Grid ── */
.bps-about-values__inner {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 40px;
}

.bps-about-values__header {
  margin-bottom: 48px;
}

.bps-about-values__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--bps-border);
  border: 1px solid var(--bps-border);
}

.bps-about-values__card {
  background: var(--bps-white);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bps-about-values__num {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--bps-green);
  opacity: 0.6;
}

.bps-about-values__title {
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: var(--text-body);
  color: var(--bps-dark);
  margin: 0;
}

.bps-about-values__text {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: var(--text-body-sm);
  line-height: var(--lh-body-sm);
  color: var(--bps-gray);
  margin: 0;
}

/* ── CTA ── */
.bps-about-cta__inner {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 40px;
}

/* ── Responsive ── */
@media (max-width: 991px) {
  .bps-about-hero__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .bps-about-hero__gallery {
    height: 380px;
  }

  .bps-about-story__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .bps-about-values__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .bps-timeline__year {
    font-size: 72px;
    min-width: 0; /* stacked below 992px — year is on its own row */
  }

  /* Stack year over content below 992px so the big year never squeezes the
     text column, and give the stacked slide a fixed height (no year-to-year shift). */
  .bps-timeline__slide {
    grid-template-columns: 1fr;
    gap: 24px;
    min-height: 500px;
  }
}

@media (max-width: 767px) {
  .bps-about-hero__inner,
  .bps-about-story__inner,
  .bps-timeline-section__inner,
  .bps-about-values__inner,
  .bps-about-cta__inner {
    padding: 0 24px;
  }

  .bps-about-hero__pullquote {
    font-size: 17px;
  }

  .bps-about-hero__gallery {
    height: 320px;
    gap: 12px;
  }

  .bps-about-hero__img {
    margin-bottom: 12px;
  }

  .bps-timeline__slide {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .bps-timeline__year {
    font-size: 56px;
  }

  .bps-timeline__marker-year {
    display: none;
  }

  .bps-about-values__grid {
    grid-template-columns: 1fr;
  }

  .bps-about-story__col--stats {
    grid-template-columns: 1fr 1fr;
  }
}

/* ==========================================================================
   404 Page
   ========================================================================== */

.bps-404__inner {
  position: relative;
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 40px;
  min-height: calc(100vh - var(--header-h, 132px) - 200px);
  display: flex;
  align-items: center;
}

.bps-404__number {
  position: absolute;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: clamp(200px, 20vw, 380px);
  line-height: 1;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1px var(--bps-border);
  opacity: 0.5;
  user-select: none;
  pointer-events: none;
}

.bps-404__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bps-404__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

@media (max-width: 767px) {
  .bps-404__inner {
    padding: 0 24px;
    min-height: calc(100vh - 200px);
  }

  .bps-404__number {
    position: static;
    transform: none;
    font-size: 120px;
    opacity: 0.3;
    margin-bottom: -20px;
  }

  .bps-404__inner {
    flex-direction: column;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bps-heading-line {
    animation: none !important;
    background: none !important;
    -webkit-text-fill-color: unset !important;
  }
}

/* ==========================================================================
   Contact Page
   ========================================================================== */

.bps-contact-section {
  padding: clamp(80px, 60px + 5vw, 140px) 0 clamp(60px, 46.67px + 3.333vw, 100px);
}

.bps-cpage {
  display: block !important;
}

.bps-cpage__inner {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(40px, 20px + 5vw, 100px);
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 40px;
  align-items: start;
  box-sizing: border-box;
}

/* Left column */
.bps-cpage__left {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 48px;
  min-height: 100%;
}

.bps-cpage__intro {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.bps-cpage__heading {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: var(--text-hero);
  line-height: var(--lh-hero);
  letter-spacing: var(--ls-hero);
  text-transform: uppercase;
  color: var(--bps-charcoal);
  margin: 0;
}

/* Proof / testimonial card */
.bps-cpage__proof {
  background: var(--bps-white);
  border: 1px solid var(--bps-border);
  padding: 28px;
}

.bps-cpage__proof-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--bps-border);
  margin-bottom: 24px;
}

.bps-cpage__proof-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 20px;
  background: var(--bps-white);
}

.bps-cpage__proof-number {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: clamp(28px, 24px + 1vw, 36px);
  letter-spacing: -0.02em;
  color: var(--bps-green);
}

.bps-cpage__proof-label {
  font-family: var(--font-ui);
  font-weight: 400;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: var(--ls-label);
  color: var(--bps-gray);
}

.bps-cpage__proof-quote {
  padding-left: 20px;
  border-left: 2px solid var(--bps-green);
}

.bps-cpage__proof-quote p {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: var(--text-body-sm);
  line-height: var(--lh-body-sm);
  color: var(--bps-charcoal);
  margin: 0 0 8px;
  font-style: italic;
}

.bps-cpage__proof-author {
  font-family: var(--font-ui);
  font-weight: 400;
  font-size: var(--text-xs);
  color: var(--bps-gray);
}

/* Right column — dark form card */
.bps-cpage__form-card {
  background: #1a1a1a;
  padding: clamp(28px, 20px + 2vw, 44px);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.bps-cpage__form-header {
  margin-bottom: 32px;
}

.bps-cpage__form-title {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: var(--text-h3);
  letter-spacing: var(--ls-h3);
  color: var(--bps-white);
  margin: 0 0 8px;
}

.bps-cpage__form-subtitle {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: var(--text-body-sm);
  line-height: var(--lh-body-sm);
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
}

/* Form layout */
.bps-cpage__form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.bps-cpage__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bps-cpage__field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.bps-cpage__label {
  font-family: var(--font-ui);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.75px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.bps-cpage__input {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: var(--text-body-sm);
  line-height: var(--lh-body-sm);
  color: var(--bps-white);
  transition: border-color 0.2s ease, background-color 0.2s ease;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
}

.bps-cpage__input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.bps-cpage__input:focus {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.09);
}

/* Select field */
.bps-cpage__select-wrap {
  position: relative;
}

.bps-cpage__select {
  padding-right: 40px;
  cursor: pointer;
}

.bps-cpage__select.is-placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.bps-cpage__select-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.4);
  pointer-events: none;
  width: 16px;
  height: 16px;
}

/* Textarea */
.bps-cpage__textarea {
  min-height: 160px;
  resize: vertical;
}

/* Custom checkbox */
.bps-cpage__checkbox-wrap {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  padding-top: 4px;
}

.bps-cpage__checkbox-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.bps-cpage__checkbox-box {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
  margin-top: 2px;
  position: relative;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.bps-cpage__checkbox-box.is-checked {
  background: var(--bps-green);
  border-color: var(--bps-green);
}

.bps-cpage__checkbox-box.is-checked::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 2px;
  width: 5px;
  height: 9px;
  border: solid var(--bps-white);
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}

.bps-cpage__checkbox-text {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: var(--text-small);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.6);
}

.bps-cpage__checkbox-text a {
  color: var(--bps-white);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.bps-cpage__checkbox-text a:hover {
  color: var(--bps-green);
}

/* Submit button override in dark context */
.bps-cpage__submit-wrap {
  margin-top: 8px;
  align-self: flex-start;
}

.bps-cpage__submit {
  width: 100%;
  justify-content: center;
  padding: 12px 24px;
  font-size: var(--text-btn);
}

.bps-cpage__submit.is-sent {
  background-color: var(--bps-green-hover);
}

/* ── Scroll reveal (JS-driven via inline styles) ── */
/* Initial hidden state; JS sets inline transition + final values */
[data-reveal] {
  opacity: 0;
}

[data-reveal="fade"] {
  filter: blur(8px);
}

[data-reveal="slide"] {
  transform: translateY(24px);
}

/* ── Contact Info Strip ── */
.bps-contact-info-section {
  padding: clamp(40px, 30px + 2.5vw, 60px) 0;
}

.bps-contact-info__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--bps-border);
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 40px;
}

.bps-contact-info__item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 24px 28px;
  background: var(--bps-section-bg);
}

.bps-contact-info__label {
  font-family: var(--font-ui);
  font-weight: 400;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: var(--ls-label);
  color: var(--bps-gray);
}

.bps-contact-info__value {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--text-body);
  color: var(--bps-charcoal);
}

.bps-contact-info__link {
  text-decoration: none;
  color: var(--bps-charcoal);
  transition: color 0.2s ease;
}

.bps-contact-info__link:hover {
  color: var(--bps-green);
}

/* ── Contact Responsive ── */
@media (max-width: 991px) {
  .bps-cpage__inner {
    grid-template-columns: 1fr;
    gap: 48px;
    padding: 0 40px;
  }

  .bps-cpage__left {
    flex-direction: row;
    align-items: flex-end;
    gap: 40px;
  }

  .bps-cpage__intro {
    flex: 1;
  }

  .bps-cpage__proof {
    flex: 0 0 340px;
  }

  .bps-contact-info__inner {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .bps-contact-section {
    padding: 80px 0 60px;
  }

  .bps-cpage__inner {
    padding: 0 24px;
    gap: 36px;
  }

  .bps-cpage__left {
    flex-direction: column;
    align-items: stretch;
    gap: 32px;
  }

  .bps-cpage__proof {
    flex: none;
  }

  .bps-cpage__heading {
    font-size: clamp(30px, 26px + 1.2vw, 42px);
    line-height: 1.1;
  }

  .bps-cpage__field-row {
    grid-template-columns: 1fr;
  }

  .bps-cpage__form-card {
    padding: 24px;
  }

  .bps-cpage__textarea {
    min-height: 120px;
  }

  .bps-contact-info__inner {
    grid-template-columns: 1fr;
    padding: 0 24px;
  }

  .bps-contact-info__item {
    padding: 16px 20px;
  }
}


/* ==========================================================================
   Contact Page — Team Carousel
   ========================================================================== */

.bps-cpage-team-section {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  overflow: hidden;
}

.bps-cpage-team {
  padding: 80px 0 100px;
}

.bps-cpage-team__header {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 40px 48px;
  text-align: center;
}

.bps-cpage-team__heading {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--bps-dark);
  margin: 12px 0 0;
}

/* ── Carousel track ── */
.bps-cpage-team__carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  cursor: grab;
  -webkit-user-select: none;
  user-select: none;
}

.bps-cpage-team__carousel:active {
  cursor: grabbing;
}

.bps-cpage-team__track {
  display: flex;
  gap: 24px;
  will-change: transform;
}

/* ── Cards inside carousel ── */
.bps-cpage-team__card {
  flex: 0 0 260px;
  min-width: 260px;
  border-radius: 0;
}

.bps-cpage-team__card .bps-team-card__photo {
  aspect-ratio: 1 / 1;
  height: auto;
}

.bps-cpage-team__card .bps-team-card__initials {
  font-size: 32px;
}

.bps-cpage-team__card .bps-team-card__info {
  padding: 16px 20px 20px;
}

.bps-cpage-team__card .bps-team-card__name {
  font-size: 15px;
}

.bps-cpage-team__card .bps-team-card__title {
  font-size: 13px;
  margin-bottom: 8px;
}

/* ── Footer link ── */
.bps-cpage-team__footer {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 40px 40px 0;
  text-align: center;
}

.bps-cpage-team__link {
  font-family: var(--font-ui);
  font-size: var(--text-body-sm);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--bps-green);
  text-decoration: none;
  transition: color 0.15s;
}

.bps-cpage-team__link:hover {
  color: var(--bps-green-hover);
}

/* ── Carousel edge fades ── */
.bps-cpage-team__carousel::before,
.bps-cpage-team__carousel::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}

.bps-cpage-team__carousel::before {
  left: 0;
  background: linear-gradient(to right, var(--bps-white), transparent);
}

.bps-cpage-team__carousel::after {
  right: 0;
  background: linear-gradient(to left, var(--bps-white), transparent);
}

/* ── Responsive ── */
@media (max-width: 991px) {
  .bps-cpage-team {
    padding: 60px 0 80px;
  }

  .bps-cpage-team__header {
    padding-bottom: 36px;
  }

  .bps-cpage-team__card {
    flex: 0 0 220px;
    min-width: 220px;
  }
}

@media (max-width: 767px) {
  .bps-cpage-team {
    padding: 48px 0 64px;
  }

  .bps-cpage-team__header {
    padding: 0 24px 28px;
  }

  .bps-cpage-team__footer {
    padding: 32px 24px 0;
  }

  .bps-cpage-team__card {
    flex: 0 0 200px;
    min-width: 200px;
  }

  .bps-cpage-team__carousel::before,
  .bps-cpage-team__carousel::after {
    width: 40px;
  }
}

/* ==========================================================================
   Industry Page (industry-page element — bps-ind-*)
   ========================================================================== */

/* ── Overview (editorial two-column split with lead paragraph) ── */
.bps-ind-overview__inner {
  display: grid;
  grid-template-columns: 0.82fr 1.3fr;
  gap: clamp(36px, 5.5vw, 88px);
  align-items: start;
}
.bps-ind-overview__title {
  margin: 0;
  position: relative;
  padding-top: 28px;
}
.bps-ind-overview__title::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 48px;
  height: 3px;
  background: var(--bps-green);
}
.bps-ind-overview__body {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(16px, 15px + 0.3vw, 18px);
  line-height: 1.75;
  color: var(--bps-gray);
}
.bps-ind-overview__body > p { margin: 0 0 18px; }
.bps-ind-overview__body > p:last-child { margin-bottom: 0; }
/* First paragraph reads as an enlarged lead */
.bps-ind-overview__body > p:first-child {
  font-size: clamp(19px, 16px + 0.7vw, 25px);
  line-height: 1.55;
  font-weight: 300;
  color: var(--bps-dark);
  margin-bottom: 24px;
}
.bps-ind-overview__body strong { color: var(--bps-dark); font-weight: 500; }

@media (max-width: 860px) {
  .bps-ind-overview__inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .bps-ind-overview__title { padding-top: 22px; }
}

/* ── Challenges (spec-sheet editorial rows) ── */
.bps-ind-challenges__header { max-width: 720px; }
.bps-ind-challenges__header .bps-body-text { margin-top: 12px; }
.bps-ind-challenges__rows {
  margin-top: 28px;
  border-top: 1px solid var(--bps-border);
}
.bps-ind-challenges__row {
  display: grid;
  grid-template-columns: 76px minmax(190px, 0.85fr) 2fr;
  gap: 32px;
  align-items: start;
  padding: 18px 4px;
  border-bottom: 1px solid var(--bps-border);
  transition: background 0.2s ease;
}
/* Tighter vertical rhythm on these two sections (feedback: too much empty space) */
.bps-ind-challenges,
.bps-ind-formats {
  padding-top: clamp(40px, 5vw, 60px) !important;
  padding-bottom: clamp(40px, 5vw, 60px) !important;
}
.bps-ind-challenges__row:hover { background: rgba(15, 144, 108, 0.035); }
.bps-ind-challenges__num {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--bps-green);
}
.bps-ind-challenges__title {
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: var(--text-h3);
  line-height: 1.25;
  color: var(--bps-dark);
  margin: 0;
}
.bps-ind-challenges__text {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: var(--text-body-sm);
  line-height: 1.65;
  color: var(--bps-gray);
  margin: 0;
  max-width: 62ch;
}
@media (max-width: 767px) {
  .bps-ind-challenges__row {
    grid-template-columns: 44px 1fr;
    column-gap: 18px;
    row-gap: 8px;
  }
  .bps-ind-challenges__num  { grid-column: 1; grid-row: 1; }
  .bps-ind-challenges__title { grid-column: 2; grid-row: 1; }
  .bps-ind-challenges__text  { grid-column: 2; grid-row: 2; }
}

/* ── Packaging Formats ── */
.bps-ind-formats__header { max-width: 720px; margin-bottom: 48px; }
.bps-ind-formats__header .bps-body-text { margin-top: 12px; }
.bps-ind-formats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.bps-ind-formats__card {
  background: var(--bps-white);
  border: 1px solid var(--bps-border);
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.bps-ind-formats__card:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}
.bps-ind-formats__icon { width: 40px; height: 40px; object-fit: contain; }
.bps-ind-formats__label {
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: var(--text-body);
  color: var(--bps-dark);
  margin: 0;
}
.bps-ind-formats__desc {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: var(--text-body-sm);
  line-height: var(--lh-body-sm);
  color: var(--bps-gray);
  margin: 0;
}

/* ── Products We Package (editorial running list) ── */
.bps-ind-products__header { max-width: 720px; margin-bottom: 36px; }
.bps-ind-products__header .bps-body-text { margin-top: 12px; }
.bps-ind-products__list {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  row-gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 1120px;
}
.bps-ind-products__item {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(21px, 0.9vw + 16px, 32px);
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--bps-dark);
  transition: color 0.18s ease;
}
.bps-ind-products__item:hover { color: var(--bps-green); }
.bps-ind-products__item:not(:last-child)::after {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  margin: 0 16px;
  border-radius: 50%;
  background: var(--bps-green);
  transform: translateY(-0.28em);
}
@media (max-width: 767px) {
  .bps-ind-products__item { font-size: clamp(18px, 4vw, 22px); }
  .bps-ind-products__item:not(:last-child)::after { margin: 0 12px; }
}

/* ── Related Services ── */
.bps-ind-related__header { max-width: 720px; margin-bottom: 40px; }
.bps-ind-related__header .bps-body-text { margin-top: 12px; }
.bps-ind-related__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.bps-ind-related__card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--bps-white);
  border: 1px solid var(--bps-border);
  padding: 32px 28px;
  text-decoration: none;
  transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}
.bps-ind-related__card:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
  border-color: var(--bps-green);
}
.bps-ind-related__name {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: var(--text-h3);
  line-height: 1.2;
  color: var(--bps-dark);
  margin: 0;
}
.bps-ind-related__desc {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: var(--text-body-sm);
  line-height: var(--lh-body-sm);
  color: var(--bps-gray);
  margin: 0;
  flex: 1;
}
.bps-ind-related__arrow {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--bps-green);
}

/* ── FAQ ── */
.bps-ind-faq__inner { max-width: 860px; }
.bps-ind-faq__header { margin-bottom: 36px; }
.bps-ind-faq__header .bps-body-text { margin-top: 12px; }
.bps-ind-faq__list {
  border-top: 1px solid var(--bps-border);
}
.bps-ind-faq__item {
  border-bottom: 1px solid var(--bps-border);
}
.bps-ind-faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  text-align: left;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 24px 0;
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: clamp(16px, 15px + 0.3vw, 19px);
  color: var(--bps-dark);
  transition: color 0.15s ease;
}
.bps-ind-faq__q:hover { color: var(--bps-green); }
.bps-ind-faq__icon {
  position: relative;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
}
.bps-ind-faq__icon::before,
.bps-ind-faq__icon::after {
  content: '';
  position: absolute;
  background: var(--bps-green);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.bps-ind-faq__icon::before {
  top: 50%; left: 0;
  width: 100%; height: 2px;
  transform: translateY(-50%);
}
.bps-ind-faq__icon::after {
  left: 50%; top: 0;
  width: 2px; height: 100%;
  transform: translateX(-50%);
}
.bps-ind-faq__item.is-open .bps-ind-faq__icon::after {
  transform: translateX(-50%) scaleY(0);
  opacity: 0;
}
.bps-ind-faq__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.bps-ind-faq__a-inner {
  padding: 0 0 24px;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: var(--text-body-sm);
  line-height: 1.7;
  color: var(--bps-gray);
}
.bps-ind-faq__a-inner p { margin: 0 0 12px; }
.bps-ind-faq__a-inner p:last-child { margin-bottom: 0; }

/* ── Responsive ── */
@media (max-width: 991px) {
  .bps-ind-formats__grid,
  .bps-ind-related__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  /* Formats cards stay 2-up down to mobile — they're short label+desc tiles. */
  .bps-ind-formats__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .bps-ind-related__grid {
    grid-template-columns: 1fr;
  }
}

/* Compliance reuses the dark feature look — fallback background when no image set */
.bps-svc-feature.bps-ind-compliance {
  background-color: var(--bps-dark);
  background-size: cover;
  background-position: center;
}

/* ── Industry Hero (full-bleed image + integrated stat bar) — distinct from service hero ── */
.bps-ind-hero {
  position: relative;
  padding: 0 !important;
  width: auto;
  min-height: clamp(620px, 90vh, 880px);
  display: flex;
  overflow: hidden;
  background-color: var(--bps-dark);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  /* Contained: fill the gutter-line column (like every other section) rather than
     breaking out to the viewport edge. Content stays centered via .bps-container. */
  width: 100%;
  margin-left: 0;
  margin-right: 0;
}

/* Guard against horizontal scroll from the 100vw breakout (industry pages only) */
body.single-industry {
  overflow-x: hidden;
}
.bps-ind-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(to bottom, rgba(18,18,22,0.34) 0%, rgba(18,18,22,0.10) 38%, rgba(18,18,22,0.80) 100%);
}
.bps-ind-hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  padding-top: clamp(72px, 11vh, 132px);
  padding-bottom: clamp(40px, 6vh, 64px);
}
.bps-ind-hero__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 20px;
}
.bps-ind-hero__eyebrow {
  color: #fff;
  justify-content: center;
}
.bps-ind-hero__heading {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: clamp(34px, 4.4vw, 60px);
  line-height: 1.05;
  letter-spacing: var(--ls-hero);
  text-transform: uppercase;
  color: #fff;
  margin: 0;
  max-width: 17ch;
}
.bps-ind-hero__desc {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(16px, 15px + 0.4vw, 20px);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.82);
  margin: 0;
  max-width: 640px;
}

/* Stat bar */
.bps-ind-hero__stats {
  margin-top: clamp(40px, 8vh, 80px);
}
.bps-ind-hero__stats-label {
  font-family: var(--font-ui);
  font-size: var(--text-body-sm);
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 22px;
}
.bps-ind-hero__stats-row {
  display: flex;
  flex-wrap: wrap;
}
.bps-ind-hero__stat {
  flex: 1 1 0;
  min-width: 150px;
  padding: 2px 30px;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.bps-ind-hero__stat:first-child {
  padding-left: 0;
  border-left: 0;
}
.bps-ind-hero__stat-value {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: clamp(30px, 3vw, 46px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: #fff;
}
.bps-ind-hero__stat-logo {
  height: 46px;
  width: auto;
  object-fit: contain;
  align-self: flex-start;
  filter: brightness(0) invert(1);
}
.bps-ind-hero__stat-label {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: var(--text-body-sm);
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.76);
}

@media (max-width: 767px) {
  .bps-ind-hero { min-height: 0; }
  .bps-ind-hero__inner { padding-top: 96px; }
  .bps-ind-hero__content { align-items: center; }
  .bps-ind-hero__stats-row { gap: 24px 0; }
  .bps-ind-hero__stat {
    flex: 1 1 45%;
    border-left: 0;
    padding: 0 16px 0 0;
  }
}

/* ── Industry hero entrance animation (pre-hide before paint + line clip reveal) ── */
html.bps-anim .bps-ind-hero__heading,
html.bps-anim .bps-ind-hero__eyebrow,
html.bps-anim .bps-ind-hero__desc,
html.bps-anim .bps-ind-hero__stats {
  opacity: 0;
}
.bps-ind-hero__heading .le-line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}
.bps-ind-hero__heading .le-line__inner {
  display: block;
  will-change: transform;
}
@media (prefers-reduced-motion: reduce) {
  html.bps-anim .bps-ind-hero__heading,
  html.bps-anim .bps-ind-hero__eyebrow,
  html.bps-anim .bps-ind-hero__desc,
  html.bps-anim .bps-ind-hero__stats {
    opacity: 1;
  }
}

/* ==========================================================================
   About / History — Stacking Cards
   ========================================================================== */
.bps-stack-section { background: var(--bps-dark); color: var(--bps-white); }

.bps-stack__header {
  max-width: var(--container-wide);
  margin: 0 auto clamp(40px, 5vw, 64px);
  padding: 0 40px;
  text-align: center;
}
.bps-stack-section .bps-section-label { color: rgba(255, 255, 255, 0.72); justify-content: center; }
.bps-stack__heading {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--bps-white);
  margin: 12px 0 0;
}

.bps-stack__list {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.bps-stack__card {
  position: sticky;
  height: clamp(360px, 58vh, 560px);
  border-radius: 10px;
  overflow: hidden;
  background-color: #1a1a1a;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  padding: 32px;
  transform-origin: 50% 0;
  will-change: transform;
}
.bps-stack__card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 14, 11, 0.6), rgba(10, 14, 11, 0.05) 55%);
  pointer-events: none;
}
/* Receding-deck dim: animated via opacity (flash-free) instead of a CSS filter
   on the background-image layer, which caused a one-frame black repaint flash. */
.bps-stack__shade {
  position: absolute;
  inset: 0;
  background: #0a0e0b;
  opacity: 0;
  z-index: 1;
  pointer-events: none;
}
.bps-stack__card:nth-child(1) { top: 110px; }
.bps-stack__card:nth-child(2) { top: 138px; }
.bps-stack__card:nth-child(3) { top: 166px; }
.bps-stack__card:nth-child(4) { top: 194px; }

.bps-stack__tile {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--bps-white);
  color: var(--bps-dark);
  border-radius: 8px;
  padding: 22px 26px;
}
.bps-stack__num {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: clamp(30px, 3.4vw, 46px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--bps-green);
}
.bps-stack__label {
  font-family: var(--font-ui);
  font-size: var(--text-body-sm);
  letter-spacing: 0.02em;
  color: var(--bps-gray);
}

@media (max-width: 991px) {
  .bps-stack__card { height: clamp(320px, 50vh, 460px); }
  .bps-stack__list, .bps-stack__header { padding-left: 24px; padding-right: 24px; }
}
@media (max-width: 767px) {
  .bps-stack__card:nth-child(1) { top: 90px; }
  .bps-stack__card:nth-child(2) { top: 110px; }
  .bps-stack__card:nth-child(3) { top: 130px; }
  .bps-stack__card:nth-child(4) { top: 150px; }
}

/* ==========================================================================
   Careers Page
   ========================================================================== */
.bps-careers-hero { overflow: hidden; }
.bps-careers-hero__inner {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 40px;
}
.bps-careers-hero__top { max-width: 880px; }
.bps-careers-hero__heading {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: clamp(40px, 6vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--bps-charcoal);
  margin: 16px 0 0;
}
.bps-careers-hero__heading em {
  font-style: normal;
  color: var(--bps-green);
}
.bps-careers-hero__lead {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(17px, 16px + 0.5vw, 21px);
  line-height: 1.6;
  color: var(--bps-gray);
  max-width: 620px;
  margin: 24px 0 0;
}
.bps-careers-hero__perks {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--bps-border);
  border: 1px solid var(--bps-border);
  margin-top: clamp(40px, 5vw, 64px);
}
.bps-careers-hero__perk {
  background: var(--bps-white);
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.bps-careers-hero__perk-val {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: var(--text-h3);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--bps-green);
}
.bps-careers-hero__perk-label {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: var(--text-body-sm);
  line-height: 1.4;
  color: var(--bps-gray);
}

/* ── Apply section ── */
.bps-careers-apply__inner {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(40px, 5vw, 80px);
  align-items: start;
}
.bps-careers-apply__aside-title {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: var(--text-h2);
  line-height: var(--lh-h2);
  letter-spacing: var(--ls-h2);
  text-transform: capitalize;
  color: var(--bps-dark);
  margin: 12px 0 0;
}
.bps-careers-apply__aside-text {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: var(--text-body);
  line-height: 1.7;
  color: var(--bps-gray);
  margin: 18px 0 0;
}
.bps-careers-apply__aside-contact {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--bps-border);
  font-family: var(--font-ui);
  font-size: var(--text-body-sm);
  color: var(--bps-gray);
}
.bps-careers-apply__aside-contact a { color: var(--bps-green); text-decoration: none; }

/* ── Form ── */
.bps-careers-form {
  background: var(--bps-white);
  border: 1px solid var(--bps-border);
  padding: clamp(28px, 4vw, 44px);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.bps-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.bps-careers-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.bps-careers-form__field { display: flex; flex-direction: column; gap: 7px; }
.bps-careers-form__label {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bps-gray);
}
.bps-careers-form__label .req { color: var(--bps-green); }
.bps-careers-form__input,
.bps-careers-form__select,
.bps-careers-form__textarea {
  font-family: var(--font-body);
  font-size: var(--text-body);
  color: var(--bps-dark);
  background: var(--bps-section-bg);
  border: 1px solid var(--bps-border);
  border-radius: 0;
  padding: 13px 15px;
  width: 100%;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.bps-careers-form__textarea { min-height: 140px; resize: vertical; }
.bps-careers-form__input:focus,
.bps-careers-form__select:focus,
.bps-careers-form__textarea:focus {
  outline: none;
  border-color: var(--bps-green);
  background: var(--bps-white);
}
.bps-careers-form__select { appearance: none; -webkit-appearance: none; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none' stroke='%235a5a5a' stroke-width='1.5'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }

/* File input */
.bps-careers-form__file {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.bps-careers-form__file input[type="file"] { position: absolute; left: -9999px; }
.bps-careers-form__file-btn {
  font-family: var(--font-ui);
  font-size: var(--text-body-sm);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--bps-dark);
  background: var(--bps-white);
  border: 1px solid var(--bps-dark);
  padding: 11px 20px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.bps-careers-form__file-btn:hover { background: var(--bps-dark); color: var(--bps-white); }
.bps-careers-form__file-name {
  font-family: var(--font-body);
  font-size: var(--text-body-sm);
  color: var(--bps-gray);
}
.bps-careers-form__hint {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: var(--bps-gray);
}

/* Consent */
.bps-careers-form__consent {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: var(--text-body-sm);
  line-height: 1.5;
  color: var(--bps-gray);
  cursor: pointer;
}
.bps-careers-form__consent input { margin-top: 3px; accent-color: var(--bps-green); width: 16px; height: 16px; flex: 0 0 auto; }
.bps-careers-form__consent a { color: var(--bps-green); }

.bps-careers-form__submit {
  align-self: flex-start;
  font-family: var(--font-ui);
  font-size: var(--text-body-sm);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--bps-white);
  background: var(--bps-green);
  border: 0;
  padding: 15px 36px;
  cursor: pointer;
  transition: background 0.18s ease;
}
.bps-careers-form__submit:hover { background: var(--bps-green-hover); }
.bps-careers-form__submit:disabled { opacity: 0.6; cursor: default; }

.bps-careers-form__status {
  font-family: var(--font-ui);
  font-size: var(--text-body-sm);
  line-height: 1.5;
}
.bps-careers-form__status.is-success { color: var(--bps-green); }
.bps-careers-form__status.is-error { color: #b3261e; }

@media (max-width: 991px) {
  .bps-careers-apply__inner { grid-template-columns: 1fr; gap: 36px; }
  .bps-careers-hero__perks { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
  .bps-careers-hero__inner, .bps-careers-apply__inner { padding-left: 24px; padding-right: 24px; }
  .bps-careers-form__row { grid-template-columns: 1fr; }
}
@media (max-width: 479px) {
  .bps-careers-hero__perks { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Legal / Long-form (Privacy Policy, Terms, etc.)
   ========================================================================== */
.bps-legal__inner { max-width: 760px; margin: 0 auto; padding: 0 40px; }
.bps-legal__title {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--bps-charcoal);
  margin: 12px 0 0;
}
.bps-legal__meta {
  font-family: var(--font-ui);
  font-size: var(--text-body-sm);
  color: var(--bps-gray);
  margin-top: 14px;
}
.bps-legal__body { margin-top: clamp(32px, 4vw, 48px); }
.bps-legal__body > p,
.bps-legal__body > ul {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: var(--text-body);
  line-height: 1.75;
  color: var(--bps-gray);
  margin: 0 0 18px;
}
.bps-legal__body h2 {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--bps-dark);
  margin: 40px 0 14px;
}
.bps-legal__body ul { padding-left: 22px; }
.bps-legal__body li { margin-bottom: 8px; }
.bps-legal__body a { color: var(--bps-green); text-decoration: underline; text-underline-offset: 2px; }
.bps-legal__body a:hover { color: var(--bps-green-hover); }
.bps-legal__body strong { color: var(--bps-dark); font-weight: 500; }
.bps-legal__body em { font-style: italic; color: var(--bps-dark); }
.bps-legal__contact {
  margin-top: 14px;
  font-family: var(--font-ui);
  font-size: var(--text-body-sm);
  line-height: 1.7;
  color: var(--bps-dark);
}
@media (max-width: 767px) {
  .bps-legal__inner { padding-left: 24px; padding-right: 24px; }
}

/* Inquiry form status messages */
.bps-inquiry-status { font-family: var(--font-ui); font-size: var(--text-body-sm); line-height: 1.5; margin: 2px 0; }
.bps-inquiry-status:empty { margin: 0; }
.bps-inquiry-status.is-success { color: var(--bps-green); }
.bps-inquiry-status.is-error { color: #ff8a80; }
.bps-cpage__form .bps-inquiry-status.is-success { color: #6ee7b7; }

/* ── Cookie consent banner ── */
.bps-consent {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 99990;
  max-width: 560px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  padding: 18px 22px;
  background: #1a1a1a;
  color: #fff;
  border-radius: 10px;
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.32);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.bps-consent.is-visible { opacity: 1; transform: translateY(0); }
.bps-consent.is-dismissed { opacity: 0; transform: translateY(12px); }
.bps-consent__text {
  flex: 1 1 260px;
  margin: 0;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: var(--text-body-sm);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
}
.bps-consent__text a { color: var(--bps-green); text-decoration: underline; text-underline-offset: 2px; }
.bps-consent__actions { display: flex; gap: 8px; }
.bps-consent__btn {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 10px 18px;
  border-radius: 6px;
  border: 0;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.bps-consent__btn--decline { background: transparent; color: rgba(255, 255, 255, 0.7); border: 1px solid rgba(255, 255, 255, 0.25); }
.bps-consent__btn--decline:hover { color: #fff; border-color: rgba(255, 255, 255, 0.5); }
.bps-consent__btn--accept { background: var(--bps-green); color: #fff; }
.bps-consent__btn--accept:hover { background: var(--bps-green-hover); }
@media (max-width: 479px) {
  .bps-consent { left: 12px; right: 12px; bottom: 12px; padding: 16px 18px; }
}

/* ==========================================================================
   CPT Archive landing pages (Industries / Services)
   ========================================================================== */
.bps-archive-hero { padding-bottom: 0 !important; }
/* Match the standard content container (1200) so the header aligns with the cards. */
.bps-archive-hero__inner { max-width: var(--container-max); margin: 0 auto; padding: 0 40px; }

/* Archive pages render straight into #brx-content with no Bricks wrapper section,
   so recreate the gutter-line column here — matching the single pages. */
.post-type-archive-service  #brx-content > .bps-section,
.post-type-archive-industry #brx-content > .bps-section {
  max-width: var(--container-wide);
  width: calc(100% - 80px);
  margin-left: auto;
  margin-right: auto;
}
.bps-archive-hero__heading {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: var(--text-hero);
  line-height: var(--lh-hero);
  letter-spacing: var(--ls-hero);
  text-transform: uppercase;
  color: var(--bps-charcoal);
  margin: 12px 0 0;
}
.bps-archive-hero__intro { max-width: 640px; margin-top: 18px; }

.bps-archive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--bps-border);
  border: 1px solid var(--bps-border);
}
/* Capabilities archive has exactly 4 — fit them on one row (Feedbucket #907551).
   Industries archive (9 items) stays on the 3-col base. */
.bps-archive-grid--service { grid-template-columns: repeat(4, 1fr); }
.bps-archive-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--bps-white);
  padding: 32px 30px 26px;
  text-decoration: none;
  transition: background 0.2s ease;
}
.bps-archive-card:hover { background: rgba(15, 144, 108, 0.04); }
.bps-archive-card__num {
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--bps-green);
}
.bps-archive-card__body { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.bps-archive-card__name {
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: var(--text-h3);
  line-height: 1.2;
  color: var(--bps-dark);
  margin: 0;
}
.bps-archive-card__desc {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: var(--text-body-sm);
  line-height: 1.6;
  color: var(--bps-gray);
  margin: 0;
}
.bps-archive-card__arrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--bps-green);
}
.bps-archive-card__arrow-i { display: inline-block; transition: transform 0.2s ease; }
.bps-archive-card:hover .bps-archive-card__arrow-i { transform: translateX(4px); }

@media (max-width: 991px) { .bps-archive-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 767px) {
  .bps-archive-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Quality & Certifications page
   ========================================================================== */
.bps-quality-hero__inner { max-width: var(--container-wide); margin: 0 auto; padding: 0 40px; }
.bps-quality-hero__heading {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: var(--text-hero);
  line-height: var(--lh-hero);
  letter-spacing: var(--ls-hero);
  text-transform: uppercase;
  color: var(--bps-charcoal);
  margin: 12px 0 0;
}
.bps-quality-hero__intro { max-width: 680px; margin-top: 18px; }

.bps-quality-pillars__header { max-width: 720px; margin-bottom: 44px; }
.bps-quality-pillars__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--bps-border);
  border: 1px solid var(--bps-border);
}
.bps-quality-pillar {
  background: var(--bps-white);
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bps-quality-pillar__num {
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--bps-green);
}
.bps-quality-pillar__title {
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: var(--text-body);
  line-height: 1.3;
  color: var(--bps-dark);
  margin: 0;
}
.bps-quality-pillar__text {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: var(--text-body-sm);
  line-height: 1.65;
  color: var(--bps-gray);
  margin: 0;
}
@media (max-width: 991px) { .bps-quality-pillars__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 767px) {
  .bps-quality-hero__inner { padding-left: 24px; padding-right: 24px; }
  .bps-quality-pillars__grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Newsroom (news index + article)
   ========================================================================== */
.bps-news-hero { padding-bottom: 0 !important; }
.bps-news-hero__inner { max-width: var(--container-wide); margin: 0 auto; padding: 0 40px; }
.bps-news-hero__heading {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: var(--text-hero);
  line-height: var(--lh-hero);
  letter-spacing: var(--ls-hero);
  text-transform: uppercase;
  color: var(--bps-charcoal);
  margin: 12px 0 0;
}
.bps-news-hero__intro { max-width: 620px; margin-top: 18px; }

.bps-news-featured-section .bps-container { max-width: var(--container-wide); }

/* Cards */
.bps-news-card { display: flex; flex-direction: column; text-decoration: none; background: var(--bps-white); border: 1px solid var(--bps-border); overflow: hidden; transition: box-shadow 0.25s ease, transform 0.25s ease; }
.bps-news-card:hover { box-shadow: 0 10px 34px rgba(0,0,0,0.08); transform: translateY(-2px); }
.bps-news-card__media { aspect-ratio: 16 / 10; background: var(--bps-dark); background-size: cover; background-position: center; }
.bps-news-card--noimg .bps-news-card__media { background: linear-gradient(135deg, #1a1a1a, #2d2d2d); }
.bps-news-card__body { padding: 24px 26px 26px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.bps-news-card__meta { display: flex; align-items: center; gap: 14px; }
.bps-news-card__cat { font-family: var(--font-ui); font-size: var(--text-xs); font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--bps-green); }
.bps-news-card__date { font-family: var(--font-ui); font-size: var(--text-xs); color: var(--bps-gray); }
.bps-news-card__title { font-family: var(--font-ui); font-weight: 500; font-size: var(--text-h3); line-height: 1.25; color: var(--bps-dark); margin: 0; }
.bps-news-card__excerpt { font-family: var(--font-body); font-weight: 300; font-size: var(--text-body-sm); line-height: 1.65; color: var(--bps-gray); margin: 0; }
.bps-news-card__more { margin-top: auto; display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-ui); font-size: var(--text-xs); font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; color: var(--bps-green); }
.bps-news-card__more-i { display: inline-block; transition: transform 0.2s ease; }
.bps-news-card:hover .bps-news-card__more-i { transform: translateX(4px); }

/* Featured (large, 2-col) */
.bps-news-card--featured { display: grid; grid-template-columns: 1.2fr 1fr; }
.bps-news-card--featured .bps-news-card__media { aspect-ratio: auto; min-height: 380px; }
.bps-news-card--featured .bps-news-card__body { padding: clamp(28px, 4vw, 52px); gap: 16px; justify-content: center; }
.bps-news-card--featured .bps-news-card__title { font-family: var(--font-heading); font-size: clamp(24px, 2.6vw, 36px); line-height: 1.12; letter-spacing: -0.02em; }

/* Grid */
.bps-news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

@media (max-width: 991px) {
  .bps-news-card--featured { grid-template-columns: 1fr; }
  .bps-news-card--featured .bps-news-card__media { min-height: 260px; }
  .bps-news-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
  .bps-news-hero__inner { padding-left: 24px; padding-right: 24px; }
  .bps-news-grid { grid-template-columns: 1fr; }
}

/* Article (single) */
.bps-article__inner { max-width: 760px; margin: 0 auto; padding: 0 40px; }
.bps-article__back { font-family: var(--font-ui); font-size: var(--text-body-sm); color: var(--bps-green); text-decoration: none; }
.bps-article__meta { display: flex; align-items: center; gap: 14px; margin-top: 26px; }
.bps-article__cat { font-family: var(--font-ui); font-size: var(--text-xs); font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--bps-green); }
.bps-article__date { font-family: var(--font-ui); font-size: var(--text-xs); color: var(--bps-gray); }
.bps-article__title { font-family: var(--font-heading); font-weight: 500; font-size: clamp(30px, 4vw, 52px); line-height: 1.08; letter-spacing: -0.02em; color: var(--bps-charcoal); margin: 14px 0 0; }
.bps-article__hero { max-width: 1000px; margin: clamp(32px, 4vw, 48px) auto; aspect-ratio: 16 / 8; background-size: cover; background-position: center; }
.bps-article__body { font-family: var(--font-body); font-weight: 300; font-size: clamp(16px, 15px + 0.3vw, 18px); line-height: 1.75; color: var(--bps-gray); }
.bps-article__body p { margin: 0 0 20px; }
.bps-article__body h2 { font-family: var(--font-heading); font-weight: 500; font-size: clamp(20px, 2vw, 27px); color: var(--bps-dark); margin: 36px 0 14px; }
.bps-article__body a { color: var(--bps-green); text-decoration: underline; text-underline-offset: 2px; }
.bps-article__body strong { color: var(--bps-dark); font-weight: 500; }
.bps-article__body ul { padding-left: 22px; margin: 0 0 20px; }
.bps-article__body li { margin-bottom: 8px; }
.bps-article__footer { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--bps-border); }
@media (max-width: 767px) { .bps-article__inner { padding-left: 24px; padding-right: 24px; } }

/* ── Floating quick-nav (expandable icon tabs) ── */
/* Floating quick-nav toolbar hidden for now — markup/JS left intact in
   inc/floating-nav.php. To bring it back, delete this one rule. */
.bps-fnav { display: none !important; }

.bps-fnav {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 1000;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 6px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 999px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.14);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
}
.bps-fnav__tab {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 13px;
  border-radius: 999px;
  text-decoration: none;
  color: #4a4a4a;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: background 0.3s ease, color 0.3s ease;
}
.bps-fnav__icon { display: inline-flex; }
.bps-fnav__icon svg { width: 21px; height: 21px; display: block; }
.bps-fnav__label {
  display: inline-block;
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  opacity: 0;
  transition: max-width 0.38s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.28s ease, padding 0.38s cubic-bezier(0.4, 0, 0.2, 1);
}
.bps-fnav__tab:hover { color: #1a1a1a; }
.bps-fnav__tab:hover .bps-fnav__label,
.bps-fnav__tab.is-active .bps-fnav__label {
  max-width: 160px;
  opacity: 1;
  padding-left: 8px;
}
.bps-fnav__tab.is-active { background: #0f906c; color: #fff; }
.bps-fnav__sep { width: 1px; height: 22px; background: rgba(0, 0, 0, 0.1); margin: 0 5px; flex: none; }
@media (max-width: 600px) {
  .bps-fnav { bottom: 16px; padding: 5px; }
  .bps-fnav__tab { height: 40px; padding: 0 10px; }
  .bps-fnav__sep { margin: 0 3px; }
}
@media (prefers-reduced-motion: reduce) {
  .bps-fnav__tab, .bps-fnav__label { transition: none; }
}

/* ── Capability §2 Overview + §5 Industries Served ── */
.bps-svc-overview__inner { max-width: 820px; }
.bps-svc-overview__body { margin-top: 18px; }
.bps-svc-overview__body p { margin: 0 0 1em; }
.bps-svc-overview__body p:last-child { margin-bottom: 0; }

.bps-svc-industries { background: #f6f6f2; }
.bps-svc-industries__header { max-width: 720px; margin-bottom: 28px; }
.bps-svc-industries__header p { margin-top: 10px; }
.bps-svc-industries__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}
.bps-svc-industries__card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 22px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  text-decoration: none;
  color: #1a1a1a;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-weight: 500;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}
.bps-svc-industries__card:hover { border-color: #0f906c; transform: translateY(-2px); }
.bps-svc-industries__name { font-size: 15px; }
.bps-svc-industries__arrow { color: #0f906c; font-size: 18px; transition: transform 0.2s ease; }
.bps-svc-industries__card:hover .bps-svc-industries__arrow { transform: translateX(4px); }

/* ── Industry §7 Related Industries + Capability §6 quality link ── */
.bps-ind-relind__inner { }
.bps-ind-relind__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 24px;
}
.bps-ind-relind__card {
  display: block;
  padding: 24px 26px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  text-decoration: none;
  color: #1a1a1a;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.bps-ind-relind__card:hover { border-color: #0f906c; transform: translateY(-2px); }
.bps-ind-relind__name { font-size: 18px; font-weight: 600; margin: 0 0 6px; }
.bps-ind-relind__desc { font-size: 14px; color: #555; margin: 0 0 12px; line-height: 1.5; }
.bps-ind-relind__arrow { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 13px; font-weight: 500; color: #0f906c; }

.bps-svc-feature__link {
  display: inline-block;
  margin-top: 14px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  padding-bottom: 2px;
  transition: border-color 0.2s ease;
}
.bps-svc-feature__link:hover { border-bottom-color: #fff; }

/* ── Fix: CPT single templates (Capability / Industry) ──────────────────────
   The wrapper section keeps the site's gutter-line column (max-width:1360 +
   40px side gutters). Bricks' default `align-items:center` was shrink-centering
   our .bps-section children (and letting the container overflow); force them to
   stretch to the column width so content sits correctly inside the gutter lines. */
.single-service  #brx-content > .brxe-section,
.single-industry #brx-content > .brxe-section {
  align-items: stretch;
}
/* Force each section to fill the gutter-line column (flex children weren't
   shrinking to it, so they overflowed 40px past the right gutter line). */
.single-service  #brx-content > .brxe-section > *,
.single-industry #brx-content > .brxe-section > * {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0;
}

/* ── Homepage industries split (two 50/50 panels, hover-expand) ── */
.bps-ind-split {
  display: flex;
  gap: 4px;
  /* Fill the parent: the wrapping .brxe-block is a flex column with
     align-items:flex-start, so without an explicit width the split shrinks
     to its content (the panels are flex-basis:0) instead of spanning it. */
  width: 100%;
  height: clamp(520px, 64vh, 720px);
  border-radius: 4px;
  overflow: hidden;
}
.bps-ind-split__panel {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  text-decoration: none;
  color: #fff;
  transition: flex-grow 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}
/* Panels stay a fixed 50/50 (no hover-expand) — colour + zoom hover kept below. */
.bps-ind-split__bg {
  position: absolute;
  inset: 0;
  background: var(--bps-split-img) center/cover no-repeat;
  transform: scale(1.03);
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.bps-ind-split__panel:hover .bps-ind-split__bg { transform: scale(1.09); }
.bps-ind-split__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20, 20, 16, 0.88) 0%, rgba(20, 20, 16, 0.35) 48%, rgba(20, 20, 16, 0.08) 100%);
  transition: background 0.5s ease;
}
.bps-ind-split__panel:hover .bps-ind-split__overlay {
  background: linear-gradient(to top, rgba(11, 92, 64, 0.92) 0%, rgba(20, 20, 16, 0.45) 55%, rgba(20, 20, 16, 0.1) 100%);
}
.bps-ind-split__body {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: clamp(24px, 3vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bps-ind-split__num {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.7);
}
.bps-ind-split__name {
  font-family: var(--font-heading, 'JetBrains Mono', monospace);
  font-weight: 500;
  font-size: clamp(28px, 3.2vw, 46px);
  line-height: 1;
  letter-spacing: -0.01em;
}
.bps-ind-split__desc {
  max-width: 400px;
  font-size: 15px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.9);
  opacity: 0;
  max-height: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease, max-height 0.45s ease, transform 0.4s ease;
}
.bps-ind-split__panel:hover .bps-ind-split__desc { opacity: 1; max-height: 90px; transform: none; }
.bps-ind-split__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.bps-ind-split__link svg { width: 18px; height: 18px; transition: transform 0.3s ease; }
.bps-ind-split__panel:hover .bps-ind-split__link svg { transform: translateX(4px); }
@media (max-width: 767px) {
  .bps-ind-split { flex-direction: column; height: auto; gap: 6px; }
  .bps-ind-split__panel { height: 300px; flex: none; }
  .bps-ind-split__panel:hover { flex-grow: 0; }
  .bps-ind-split__bg, .bps-ind-split__panel:hover .bps-ind-split__bg { transform: scale(1.03); }
  .bps-ind-split__desc { opacity: 1; max-height: none; transform: none; }
  .bps-ind-split__overlay { background: linear-gradient(to top, rgba(11, 92, 64, 0.9) 0%, rgba(20, 20, 16, 0.4) 55%, rgba(20, 20, 16, 0.1) 100%); }
}
@media (prefers-reduced-motion: reduce) {
  .bps-ind-split__panel, .bps-ind-split__bg, .bps-ind-split__desc { transition: none; }
}
