/* ==========================================================================
   Enviro Quality & Performance Audit – built from "Web Page 1.pdf" (1500 x 5760 artboard)
   Desktop: every size is in artboard pixels × var(--u), so the page is an exact
   scaled replica of the PDF from 1500px down to 992px.
   ≤ 991px: stacked tablet / mobile layout.
   ========================================================================== */

/* ---------- Fonts (packaged with the design) ---------- */
@font-face { font-family: "Montserrat"; font-weight: 500; font-style: normal; font-display: swap;
  src: url("../fonts/Montserrat-Medium.woff2") format("woff2"), url("../fonts/Montserrat-Medium.ttf") format("truetype"); }
@font-face { font-family: "Montserrat"; font-weight: 600; font-style: normal; font-display: swap;
  src: url("../fonts/Montserrat-SemiBold.woff2") format("woff2"), url("../fonts/Montserrat-SemiBold.ttf") format("truetype"); }
@font-face { font-family: "Montserrat"; font-weight: 700; font-style: normal; font-display: swap;
  src: url("../fonts/Montserrat-Bold.woff2") format("woff2"), url("../fonts/Montserrat-Bold.ttf") format("truetype"); }
@font-face { font-family: "Arial Bold Local"; font-weight: 700; font-style: normal; font-display: swap;
  src: local("Arial Bold"), local("Arial-BoldMT"), url("../fonts/arialbd-abc.woff2") format("woff2"); }

/* ---------- Tokens ---------- */
:root {
  --green: #82aa35;
  --green-2: #8ab83f;
  --green-3: #97bf49;
  --line-green: #89b83e;
  --dark: #404c54;
  --blue: #4263aa;
  --navy: #2457a0;
  --label-blue: #23569f;
  --text: #231f20;
  --grey-bg: #f3f4f1;
  --sage: #e2eada;
  --white: #ffffff;
  --ff-poppins: "Poppins", Arial, Helvetica, sans-serif;
  --ff-mont: "Montserrat", Arial, Helvetica, sans-serif;
}

/* ---------- Base (scoped – safe inside the main Enviro site) ---------- */
.eqa, .eqa *, .eqa *::before, .eqa *::after { box-sizing: border-box; }
.eqa {
  background: var(--white);
  color: var(--text);
  font-family: var(--ff-poppins);
  font-size: 16px;
  line-height: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: clip;
}
/* :where() keeps these at single-class weight so component rules below win,
   while still beating Bootstrap's element defaults (h1 margin, p margin, figure margin...) */
.eqa :where(h1, h2, h3, p, figure, figcaption, ul, li) { margin: 0; padding: 0; }
.eqa :where(ul) { list-style: none; }
.eqa :where(img) { display: block; max-width: 100%; height: auto; border: 0; }
.eqa :where(strong) { font-weight: 600; }
.eqa ::selection { background: var(--green); color: var(--white); }

/* Scaling container. --u = 1 artboard pixel. */
.eqa { container-type: inline-size; width: 100%; }
.eqa-page {
  --u: min(1px, calc(100vw / 1500));            /* fallback */
  width: calc(1500 * var(--u));
  margin: 0 auto;
  position: relative;
}
@supports (width: 1cqw) {
  .eqa-page { --u: min(1px, calc(100cqw / 1500)); }
}
/* shadows are re-resolved on each element so they follow local --u overrides */
.eqa-page * {
  /* layered shadows: tight contact shadow + soft ambient spread */
  --shadow:
    0 calc(1.5 * var(--u)) calc(3 * var(--u)) rgba(30, 45, 20, .08),
    0 calc(8 * var(--u)) calc(22 * var(--u)) rgba(30, 45, 20, .16);
  --shadow-sm:
    0 calc(1 * var(--u)) calc(2 * var(--u)) rgba(0, 0, 0, .08),
    0 calc(6 * var(--u)) calc(16 * var(--u)) rgba(0, 0, 0, .18);
  --shadow-hover:
    0 calc(3 * var(--u)) calc(6 * var(--u)) rgba(30, 45, 20, .10),
    0 calc(18 * var(--u)) calc(38 * var(--u)) rgba(30, 45, 20, .22);
}

.text-green { color: var(--green); }
.text-dark { color: var(--dark); }

/* ---------- Shared headings ---------- */
.eyebrow {
  font: 700 calc(30 * var(--u)) / calc(36 * var(--u)) var(--ff-poppins);
  letter-spacing: .4em;
  color: var(--green-2);
  padding-left: .4em;                           /* balances trailing tracking so it stays centred */
}
.eyebrow--light { color: var(--green-3); padding-left: 0; }

.section-title {
  font: 700 calc(45 * var(--u)) / calc(54 * var(--u)) var(--ff-poppins);
  letter-spacing: .005em;
  color: var(--dark);
}
.section-sub {
  font: 600 calc(21.85 * var(--u)) / calc(28 * var(--u)) var(--ff-mont);
  color: var(--dark);
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero { position: relative; height: calc(848 * var(--u)); }
.hero__content {
  position: relative;
  z-index: 2;
  width: calc(800 * var(--u));
  padding: calc(86 * var(--u)) 0 0 calc(111 * var(--u));
}
.hero__title {
  font: 700 calc(69.7 * var(--u)) / calc(70.8 * var(--u)) var(--ff-poppins);
  letter-spacing: .005em;
}
.hero__bar {
  display: block;
  width: calc(67 * var(--u));
  height: calc(5 * var(--u));
  margin-top: calc(30 * var(--u));
  background: var(--green);
}
.hero__text p {
  font: 400 calc(28 * var(--u)) / calc(34 * var(--u)) var(--ff-poppins);
  color: #000;
  margin-top: calc(34 * var(--u));
}
.hero__text p:first-child { margin-top: calc(49 * var(--u)); }
.hero__text strong { font-weight: 600; }
.hero__media {
  position: absolute;
  z-index: 0;
  top: 0;
  left: calc(740 * var(--u));
  width: calc(760 * var(--u));
}
.hero__media img { width: 100%; }

/* ==========================================================================
   CLIENTS – 36.5 MN SQ. FT.
   ========================================================================== */
.delivered { position: relative; z-index: 1; height: calc(585 * var(--u)); }
.delivered__pill {
  position: absolute;
  left: calc(499 * var(--u));
  top: 0;
  width: calc(502 * var(--u));
  height: calc(197 * var(--u));
  padding-top: calc(23 * var(--u));
  border: calc(8 * var(--u)) solid var(--line-green);
  border-radius: calc(100 * var(--u));
  background: var(--white);
  text-align: center;
  color: var(--navy);
}
.delivered__figure { font: 700 calc(37.4 * var(--u)) / calc(45 * var(--u)) var(--ff-poppins); }
.delivered__caption {
  margin-top: calc(9.75 * var(--u));
  font: 600 calc(26.7 * var(--u)) / calc(37 * var(--u)) var(--ff-poppins);
}
/* The span is the (unclipped) box that the scroll observer watches;
   the visible green line is drawn by its ::before. */
.delivered__line { position: absolute; pointer-events: none; }
.delivered__line::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 0 solid var(--line-green);
}
.delivered__line--left {
  left: calc(288.75 * var(--u));
  top: calc(84.75 * var(--u));
  width: calc(214 * var(--u));
  height: calc(134 * var(--u));
}
.delivered__line--left::before {
  border-top-width: calc(2.5 * var(--u));
  border-left-width: calc(2.5 * var(--u));
  border-top-left-radius: calc(22 * var(--u));
}
.delivered__line--right {
  left: calc(997 * var(--u));
  top: calc(84.75 * var(--u));
  width: calc(214.25 * var(--u));
  height: calc(134 * var(--u));
}
.delivered__line--right::before {
  border-top-width: calc(2.5 * var(--u));
  border-right-width: calc(2.5 * var(--u));
  border-top-right-radius: calc(22 * var(--u));
}
.delivered__line--center {
  left: calc(748.75 * var(--u));
  top: calc(196 * var(--u));
  width: calc(2.5 * var(--u));
  height: calc(56 * var(--u));
}
.delivered__line--center::before { border-left-width: calc(2.5 * var(--u)); }
.delivered__grid {
  position: absolute;
  left: calc(150 * var(--u));
  top: calc(218 * var(--u));
  display: flex;
  align-items: flex-start;
  gap: calc(54 * var(--u));
}
.client { width: calc(364 * var(--u)); }
.client--center { margin-top: calc(33 * var(--u)); }
.client__img {
  width: 100%;
  aspect-ratio: 364 / 255;
  object-fit: cover;
  border-radius: calc(20 * var(--u));
  box-shadow: var(--shadow);
}
.client__label {
  width: calc(274 * var(--u));
  margin: 0 auto;
  background: var(--label-blue);
  color: var(--white);
  text-align: center;
  font: 600 calc(17.6 * var(--u)) / calc(26 * var(--u)) var(--ff-poppins);
  letter-spacing: .01em;
}

/* ==========================================================================
   PROCESS OF AUDIT
   ========================================================================== */
.process {
  background: var(--grey-bg);
  border-radius: calc(93 * var(--u));
  padding: calc(22.5 * var(--u)) 0 calc(36 * var(--u));
  text-align: center;
}
.process .section-title { margin-top: calc(17 * var(--u)); }
.process__cards {
  display: flex;
  justify-content: center;
  gap: calc(33 * var(--u));
  margin-top: calc(22.5 * var(--u));
}
.pcard {
  position: relative;
  flex: none;
  width: calc(386 * var(--u));
  height: calc(329 * var(--u));
  background: var(--sage);
  border-radius: calc(33 * var(--u));
  box-shadow: var(--shadow);
  text-align: left;
}
.pcard__letter {
  position: absolute;
  left: calc(45 * var(--u));
  top: calc(16.8 * var(--u));
  font: 700 calc(114.3 * var(--u)) / 1 "Arial Bold Local", Arial, Helvetica, sans-serif;
  color: var(--blue);
}
.pcard__icon { position: absolute; }
.pcard--a .pcard__icon { left: calc(173 * var(--u)); top: calc(16 * var(--u)); width: calc(98 * var(--u)); }
.pcard--b .pcard__icon { left: calc(176 * var(--u)); top: calc(36 * var(--u)); width: calc(84 * var(--u)); }
.pcard--c .pcard__icon { left: calc(172 * var(--u)); top: calc(27.5 * var(--u)); width: calc(89 * var(--u)); }
.pcard__text {
  position: absolute;
  top: calc(181 * var(--u));
  left: calc(63.4 * var(--u));
  font: 700 calc(22 * var(--u)) / calc(26 * var(--u)) var(--ff-mont);
  color: var(--dark);
}
.pcard--b .pcard__text { left: calc(64.4 * var(--u)); }
.pcard--c .pcard__text { left: calc(48.4 * var(--u)); }

/* ==========================================================================
   EQUIPMENT
   ========================================================================== */
.equipment {
  width: calc(1242 * var(--u));
  margin: calc(32 * var(--u)) auto 0;
  padding: calc(59.5 * var(--u)) calc(60 * var(--u)) calc(60 * var(--u));
  background: var(--sage);
  border-radius: calc(42 * var(--u));
  box-shadow: var(--shadow);
  text-align: center;
}
.equipment .section-title { margin-top: calc(16.9 * var(--u)); }
.equipment .section-sub { margin-top: calc(5.8 * var(--u)); }
.equipment__grid {
  display: grid;
  grid-template-columns: repeat(3, calc(358 * var(--u)));
  justify-content: center;
  column-gap: calc(24 * var(--u));
  row-gap: calc(20.7 * var(--u));
  margin-top: calc(43.8 * var(--u));
}
.eq-card {
  position: relative;
  height: calc(294 * var(--u));
  padding-top: calc(24 * var(--u));
  background: var(--white);
  border-radius: calc(18 * var(--u));
}
.eq-card__title { font: 700 calc(22 * var(--u)) / calc(26 * var(--u)) var(--ff-mont); color: var(--blue); }
.eq-card__sub { font: 700 calc(17 * var(--u)) / calc(22 * var(--u)) var(--ff-mont); color: var(--blue); }
.eq-card__sub--gap { margin-top: calc(4 * var(--u)); }
.eq-card__img {
  position: absolute;
  top: calc(var(--t) * var(--u));
  left: 50%;
  width: calc(var(--w) * var(--u));
  transform: translateX(-50%);
}

/* ==========================================================================
   COST SAVING & BENEFITS
   ========================================================================== */
.benefits {
  position: relative;
  width: calc(1358 * var(--u));
  height: calc(697 * var(--u));
  margin: calc(76 * var(--u)) auto 0;
  padding: calc(92.6 * var(--u)) 0 0 calc(57.7 * var(--u));
  background: #24411f url("../images/benefits-bg.jpg") center / cover no-repeat;
  border-radius: 0 0 calc(100 * var(--u)) calc(100 * var(--u));
  overflow: hidden;
  color: var(--white);
}
.benefits__title {
  margin-top: calc(11.85 * var(--u));
  font: 700 calc(45 * var(--u)) / calc(54 * var(--u)) var(--ff-poppins);
  letter-spacing: .005em;
}
.benefits__text {
  margin-top: calc(24.95 * var(--u));
  font: 400 calc(20 * var(--u)) / calc(35 * var(--u)) var(--ff-poppins);
}
.benefits__cards {
  display: flex;
  gap: calc(20 * var(--u));
  margin-top: calc(22.6 * var(--u));
}
.bcard {
  position: relative;
  flex: none;
  width: calc(295.5 * var(--u));
  height: calc(228 * var(--u));
  background: var(--white);
  border-radius: calc(32.76 * var(--u));
  box-shadow: var(--shadow-sm);
  color: var(--dark);
  text-align: center;
}
.bcard__num {
  position: absolute;
  left: calc(17 * var(--u));
  top: calc(18 * var(--u));
  width: calc(46 * var(--u));
  height: calc(46 * var(--u));
  border-radius: 50%;
  background: #4262aa;
  color: var(--white);
  font: 700 calc(28 * var(--u)) / calc(46 * var(--u)) var(--ff-mont);
}
.bcard__icon {
  --t: 49;
  position: absolute;
  top: calc(var(--t) * var(--u));
  left: 50%;
  width: calc(var(--w) * var(--u));
  transform: translateX(-50%);
}
.bcard__title {
  position: absolute;
  top: calc(140.1 * var(--u));
  left: 0;
  right: 0;
  font: 700 calc(22 * var(--u)) / calc(26 * var(--u)) var(--ff-mont);
}
.bcard__sub {
  position: absolute;
  top: calc(168 * var(--u));
  left: 0;
  right: 0;
  font: 600 calc(17 * var(--u)) / calc(22 * var(--u)) var(--ff-mont);
}

/* ==========================================================================
   UTILITY AREA & SITE INSPECTION
   ========================================================================== */
.utility { margin-top: calc(84.4 * var(--u)); text-align: center; }
.utility .section-sub { margin-top: calc(13.8 * var(--u)); }
.utility__row {
  display: flex;
  align-items: flex-start;
  gap: calc(54 * var(--u));
  margin: calc(32.8 * var(--u)) 0 0 calc(148 * var(--u));
}
.utility__photo {
  width: calc(792 * var(--u));
  aspect-ratio: 792 / 520;
  object-fit: cover;
  border-radius: calc(20 * var(--u));
  box-shadow: var(--shadow);
}
.utility__list {
  width: calc(390 * var(--u));
  min-height: calc(522 * var(--u));
  padding: calc(8.7 * var(--u)) calc(10 * var(--u)) calc(28 * var(--u)) calc(2 * var(--u));
  background: var(--white);
  border-radius: calc(25 * var(--u));
  box-shadow: var(--shadow);
  text-align: left;
}
.utility__list li {
  display: flex;
  align-items: center;
  min-height: calc(47 * var(--u));
  font: 500 calc(14.68 * var(--u)) / calc(17.8 * var(--u)) var(--ff-mont);
  color: var(--text);
}
.utility__list li.is-tall { min-height: calc(66 * var(--u)); }
.utility__list img {
  flex: none;
  width: calc(66 * var(--u));
  height: calc(53 * var(--u));
  margin: calc(-3 * var(--u)) calc(-10.1 * var(--u)) calc(-3 * var(--u)) 0;
}

/* ==========================================================================
   EHS
   ========================================================================== */
.ehs {
  margin-top: calc(114.5 * var(--u));
  padding-bottom: calc(52 * var(--u));
  text-align: center;
}
.ehs .section-title { margin-top: calc(14 * var(--u)); }
.ehs .section-sub { margin-top: calc(9 * var(--u)); }
.ehs__row {
  display: flex;
  justify-content: center;
  gap: calc(67 * var(--u));
  margin-top: calc(35.6 * var(--u));
}
.ehs__img {
  height: calc(385 * var(--u));
  width: auto;
  border-radius: calc(18 * var(--u));
  box-shadow: var(--shadow);
}
.ehs__img--a { width: calc(513 * var(--u)); }
.ehs__img--b { width: calc(520 * var(--u)); }

/* ==========================================================================
   TABLET & MOBILE  (≤ 991px)
   ========================================================================== */
@media (max-width: 991px) {
  .eqa-page { --u: 1px; width: 100%; }
  .br-d { display: none; }

  .eyebrow { font-size: 15px; line-height: 1.4; letter-spacing: .3em; padding-left: .3em; }
  .eyebrow--light { padding-left: 0; }
  .section-title { font-size: clamp(24px, 6.2vw, 36px); line-height: 1.25; }
  .section-sub { font-size: clamp(15px, 3.8vw, 18px); line-height: 1.45; }

  /* Hero */
  .hero { height: auto; display: flex; flex-direction: column; }
  .hero__content { width: auto; padding: 36px 16px 0; }
  .hero__title { font-size: clamp(34px, 9.4vw, 60px); line-height: 1.08; }
  .hero__bar { width: 56px; height: 4px; margin-top: 20px; }
  .hero__text p { font-size: clamp(16px, 4.2vw, 20px); line-height: 1.6; margin-top: 16px; }
  .hero__text p:first-child { margin-top: 24px; }
  .hero__media {
    position: relative;
    left: auto;
    width: min(100%, 560px);
    margin: 12px 0 0 auto;
  }

  /* Clients */
  .delivered { height: auto; padding: 28px 16px 0; }
  .delivered__line { display: none; }
  .delivered__pill {
    position: relative;
    left: auto;
    width: min(100%, 440px);
    height: auto;
    margin: 0 auto;
    padding: 14px 20px 18px;
    border-width: 6px;
    border-radius: 999px;
  }
  .delivered__figure { font-size: clamp(24px, 7vw, 34px); line-height: 1.3; }
  .delivered__caption { margin-top: 4px; font-size: clamp(16px, 4.4vw, 22px); line-height: 1.35; }
  .delivered__grid {
    position: static;
    flex-wrap: wrap;
    justify-content: center;
    gap: 28px 24px;
    margin-top: 28px;
  }
  .client { width: min(100%, 364px); }
  .client--center { margin-top: 0; }
  .client__img { border-radius: 18px; }
  .client__label { width: 75%; font-size: 15px; line-height: 26px; }

  /* Process */
  .process { margin-top: 44px; border-radius: 40px; padding: 40px 16px 44px; }
  .process .section-title { margin-top: 8px; }
  .process__cards { flex-wrap: wrap; gap: 20px; margin-top: 28px; }
  .pcard { --u: min(1px, calc((100vw - 32px) / 386)); }
  @supports (width: 1cqw) { .pcard { --u: min(1px, calc((100cqw - 32px) / 386)); } }

  /* Equipment */
  .equipment { width: auto; margin: 32px 16px 0; padding: 40px 16px; border-radius: 28px; }
  .equipment .section-title { margin-top: 8px; }
  .equipment .section-sub { margin-top: 10px; }
  .equipment__grid {
    --u: min(1px, calc((100vw - 64px) / 358));
    grid-template-columns: repeat(auto-fit, calc(358 * var(--u)));
    gap: 20px;
    margin-top: 28px;
  }
  @supports (width: 1cqw) { .equipment__grid { --u: min(1px, calc((100cqw - 64px) / 358)); } }

  /* Benefits */
  .benefits {
    width: auto;
    height: auto;
    margin: 44px 16px 0;
    padding: 40px 20px 32px;
    border-radius: 0 0 48px 48px;
    background-position: 70% center;
  }
  .benefits__title { margin-top: 10px; font-size: clamp(24px, 6.2vw, 36px); line-height: 1.25; }
  .benefits__text { margin-top: 14px; font-size: clamp(15px, 4vw, 18px); line-height: 1.65; }
  .benefits__cards {
    --u: min(1px, calc((100vw - 72px) / 295.5));
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-top: 28px;
  }
  @supports (width: 1cqw) { .benefits__cards { --u: min(1px, calc((100cqw - 72px) / 295.5)); } }

  /* Utility */
  .utility { margin-top: 48px; padding: 0 16px; }
  .utility .section-sub { margin-top: 8px; }
  .utility__row { flex-direction: column; align-items: center; gap: 24px; margin: 24px 0 0; }
  .utility__photo { width: 100%; max-width: 792px; border-radius: 18px; }
  .utility__list {
    --u: min(1px, calc((100vw - 32px) / 390));
    min-height: 0;
  }
  @supports (width: 1cqw) { .utility__list { --u: min(1px, calc((100cqw - 32px) / 390)); } }

  /* EHS */
  .ehs { margin-top: 52px; padding: 0 16px 44px; }
  .ehs .section-title { margin-top: 8px; }
  .ehs .section-sub { margin-top: 8px; }
  .ehs__row { flex-wrap: wrap; gap: 24px; margin-top: 24px; }
  .ehs__img, .ehs__img--a, .ehs__img--b { width: min(100%, 520px); height: auto; border-radius: 18px; }
}

/* Tablet (600–991px): keep the PDF's side-by-side rows, scaled to fit */
@media (min-width: 600px) and (max-width: 991px) {
  .delivered__grid { flex-wrap: nowrap; gap: 20px; }
  .client { flex: 1 1 0; }
  .client__label { width: 80%; font-size: 13px; line-height: 24px; }

  /* connector lines – same layout as desktop, sized from fixed pill metrics */
  .delivered {
    --pw: clamp(340px, 46vw, 440px);            /* pill width */
    --ph: 150px;                                 /* pill height */
    --pt: 28px;                                  /* section top padding */
    --gp: 48px;                                  /* pill → images gap */
    --c1: calc(16px + (100% - 72px) / 6);        /* centre of 1st / 3rd image */
    padding-top: var(--pt);
  }
  .delivered__pill {
    width: var(--pw);
    height: var(--ph);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 16px;
  }
  .delivered__figure { font-size: clamp(24px, 3.4vw, 34px); }
  .delivered__caption { font-size: clamp(16px, 2.1vw, 20px); }
  .delivered__caption .br-d { display: inline; }
  .delivered__grid { margin-top: var(--gp); }

  .delivered__line { display: block; }
  .delivered__line--left,
  .delivered__line--right {
    top: calc(var(--pt) + 64px);
    width: calc(50% - var(--pw) / 2 - var(--c1) + 4px);
    height: calc(var(--ph) - 64px + var(--gp));
  }
  .delivered__line--left { left: var(--c1); }
  .delivered__line--right { left: auto; right: var(--c1); }
  .delivered__line--left::before { border-top-left-radius: 16px; }
  .delivered__line--right::before { border-top-right-radius: 16px; }
  .delivered__line--center {
    left: calc(50% - 1.25px);
    top: calc(var(--pt) + var(--ph) - 4px);
    height: calc(var(--gp) + 4px);
  }

  .process__cards { flex-wrap: nowrap; }
  .pcard { --u: min(1px, calc((100vw - 72px) / 1158)); }
  @supports (width: 1cqw) { .pcard { --u: min(1px, calc((100cqw - 72px) / 1158)); } }

  .ehs__row { flex-wrap: nowrap; gap: 20px; }
  .ehs__img, .ehs__img--a, .ehs__img--b { width: calc(50% - 10px); }
}

/* Mobile (< 600px): images stack, so a single centre line joins pill and images */
@media (max-width: 599px) {
  .delivered__pill::after {
    content: "";
    position: absolute;
    left: calc(50% - 1.25px);
    top: 100%;
    width: 2.5px;
    height: 34px;                                /* 6px border + 28px gap */
    background: var(--line-green);
  }
}

@media (max-width: 400px) {
  .eyebrow { font-size: 13px; letter-spacing: .22em; padding-left: .22em; }
}

/* Headings never leave a single orphan word on small screens */
@media (max-width: 991px) {
  .section-title, .benefits__title, .hero__title, .section-sub { text-wrap: balance; }
}

/* ==========================================================================
   MOTION & INTERACTION
   All of it is skipped for prefers-reduced-motion; content is never hidden
   unless JS is running (html.js is set in <head>, with a failsafe).
   ========================================================================== */
:root { --ease: cubic-bezier(.22, .61, .36, 1); }

/* Scroll reveal */
.eqa-js [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 26px, 0);
  transition:
    opacity .7s var(--ease) var(--d, 0s),
    transform .7s var(--ease) var(--d, 0s),
    box-shadow .35s var(--ease);
}
.eqa-js [data-reveal].is-visible { opacity: 1; transform: none; }
.eqa-js [data-reveal].is-done { transition-delay: 0s; }

/* hero image fades/settles in instead of sliding up */
.eqa-js .hero__media[data-reveal] { transform: scale(1.03); transition-duration: 1.1s; }
.eqa-js .hero__media[data-reveal].is-visible { transform: none; }
/* underline bar grows from the left */
.eqa-js .hero__bar[data-reveal] { transform: scaleX(0); transform-origin: left center; }
.eqa-js .hero__bar[data-reveal].is-visible { transform: none; }

/* stagger groups */
.hero__title { --d: .05s; }
.hero__bar { --d: .25s; }
.hero__text p:nth-child(1) { --d: .35s; }
.hero__text p:nth-child(2) { --d: .45s; }
.client:nth-child(2) { --d: .12s; }
.client:nth-child(3) { --d: .24s; }
.pcard--b { --d: .12s; }
.pcard--c { --d: .24s; }
.section-title { --d: .08s; }
.section-sub, .benefits__title { --d: .14s; }
.benefits__text { --d: .22s; }
.equipment__grid .eq-card:nth-child(3n+2) { --d: .08s; }
.equipment__grid .eq-card:nth-child(3n) { --d: .16s; }
.bcard:nth-child(2) { --d: .08s; }
.bcard:nth-child(3) { --d: .16s; }
.bcard:nth-child(4) { --d: .24s; }
.utility__list, .ehs__img--b { --d: .12s; }

/* connector lines draw out from the pill */
.eqa-js [data-draw]::before { transition: clip-path .9s var(--ease) .35s; }
.eqa-js .delivered__line--left[data-draw]::before { clip-path: inset(0 0 100% 100%); }
.eqa-js .delivered__line--right[data-draw]::before { clip-path: inset(0 100% 100% 0); }
.eqa-js .delivered__line--center[data-draw]::before { clip-path: inset(0 0 100% 0); }
.eqa-js [data-draw].is-visible::before { clip-path: inset(0 0 0 0); }

.count { font-variant-numeric: tabular-nums; }

/* Hover – only on devices that really hover */
@media (hover: hover) and (pointer: fine) {
  .pcard, .eq-card, .bcard, .client__img, .utility__photo, .utility__list, .ehs__img {
    will-change: transform;
  }
  /* once the reveal has finished, switch to snappy hover transitions */
  .client__img, .utility__photo, .ehs__img, .pcard, .eq-card, .bcard,
  .eqa-js [data-reveal].is-done {
    transition: transform .35s var(--ease), box-shadow .35s var(--ease), opacity .35s var(--ease);
  }
  .pcard:hover, .bcard:hover, .eq-card:hover,
  .eqa-js .pcard.is-done:hover, .eqa-js .bcard.is-done:hover, .eqa-js .eq-card.is-done:hover {
    transform: translate3d(0, calc(-6 * var(--u)), 0);
    box-shadow: var(--shadow-hover);
  }
  .eq-card__img, .bcard__icon, .pcard__icon { transition: transform .45s var(--ease); }
  .eq-card:hover .eq-card__img { transform: translateX(-50%) scale(1.05); }
  .bcard:hover .bcard__icon { transform: translateX(-50%) scale(1.08); }
  .pcard:hover .pcard__icon { transform: rotate(-6deg) scale(1.06); }
  .client:hover .client__img,
  .utility__photo:hover, .eqa-js .utility__photo.is-done:hover,
  .ehs__img:hover, .eqa-js .ehs__img.is-done:hover {
    transform: translate3d(0, calc(-5 * var(--u)), 0);
    box-shadow: var(--shadow-hover);
  }
}

@media (prefers-reduced-motion: reduce) {
  .eqa-js [data-reveal], .eqa-js [data-draw] {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
    transition: none !important;
  }
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; }
}
