/* =========================================================
   Yansa — site stylesheet

   1. Tokens          colour, layout and type-scale variables
   2. Base            fonts, reset, element defaults, utilities
   3. Typography      the single source of font-size
   4. Buttons
   5. Layout          navbar, section shell, inner-page heroes
   6. Home            hero, diagnosis, symptoms, quote, why
   7. Solutions       load explorer, problems, solution rows, inaction, results
   8. About           hero decor, statement, measure, values, industries, FAQ
   9. YanQ
   10. Contact
   11. Footer
   12. Dialogs & forms
   13. Motion         scroll reveal and icon animations
   ========================================================= */


/* =========================================================
   1. TOKENS
   ========================================================= */
:root {
  /* Brand */
  --orange: #ff8c40;
  --orange-edge: #f57f2e;
  /* Highlighted words use this green, the "Our Values" colour; orange stays
     for buttons, icons and graphic accents (client rule, 11 Oct) */
  --highlight: #039999;
  --teal: #34b6af;
  --teal-edge: #2aa39c;
  --teal-deep: #006a65;
  --teal-brand: #007f7f;
  --teal-mid: #039999;
  --cyan: #4cc8c0;          /* the YanQ name: light cyan, never orange */
  --petrol: #1a4146;
  --petrol-bright: #167777;

  /* Text */
  --ink: #1a1c16;
  --text: #3d4948;
  --text-on-dark: #f1f1e6;
  --mist: #a9d1d7;

  /* Surfaces and lines */
  --cream: #fafaef;
  --ivory: #fdfbf3;
  --ivory-card: #fffefa;
  --line: #bcc9c7;

  /* Layout */
  --gutter: 10%;
  --nav-height: 89px;
  --inner-hero-height: calc(100vh - var(--nav-height));
  --section-pad-y: 120px;
  --header-gap: 48px;

  /* Home hero scroll animation */
  --hero-runway: 90vh;
  --hero-stage-h: calc(100vh - var(--nav-height));
  --hero-frame-w: 762px;

  /* Type scale (see section 3) */
  --fs-scale: 1;
  --fs-display: 84px;
  --fs-numeral: 76px;
  --fs-h1: 52px;
  --fs-h2: 42px;
  --fs-statement: 34px;
  --fs-h3: 30px;
  --fs-h4: 24px;
  --fs-copy-lg: 20px;
  --fs-lead: 19px;
  --fs-body: 17px;
  --fs-small: 15px;
  --fs-label: 14px;
}

/* Mobile browsers resize 100vh as the address bar shows and hides;
   svh is the stable small-viewport height. */
@supports (height: 100svh) {
  :root {
    --inner-hero-height: calc(100svh - var(--nav-height));
  }
}

@media (max-width: 900px) {
  :root {
    --gutter: 32px;
    --nav-height: 65px;
    --section-pad-y: 88px;
  }
}

@media (max-width: 560px) {
  :root {
    --gutter: 20px;
    --section-pad-y: 64px;
    --header-gap: 32px;
  }
}

@media (max-width: 1100px) {
  :root {
    --fs-display: 64px;
    --fs-numeral: 60px;
    --fs-h1: 44px;
    --fs-h2: 36px;
    --fs-statement: 29px;
    --fs-h3: 26px;
    --fs-h4: 22px;
    --fs-copy-lg: 19px;
  }
}

@media (max-width: 820px) {
  :root {
    --fs-display: 46px;
    --fs-numeral: 48px;
    --fs-h1: 34px;
    --fs-h2: 29px;
    --fs-statement: 23px;
    --fs-h3: 22px;
    --fs-h4: 20px;
    --fs-copy-lg: 18px;
    --fs-lead: 17px;
  }
}

@media (max-width: 560px) {
  :root {
    --fs-display: 36px;
    --fs-numeral: 40px;
    --fs-h1: 29px;
    --fs-h2: 25px;
    --fs-statement: 20px;
    --fs-h3: 20px;
    --fs-h4: 18px;
    --fs-copy-lg: 17px;
    --fs-lead: 16px;
    --fs-body: 16px;
  }
}


/* =========================================================
   2. BASE
   ========================================================= */
@font-face {
  font-family: 'Liberation Sans';
  src: url('../fonts/LiberationSans-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Liberation Sans';
  src: url('../fonts/LiberationSans-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  color: #151515;
  background: var(--ivory);
  line-height: 1.4;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Liberation Sans', Arial, Helvetica, sans-serif;
  font-weight: 400;
}

/* height:auto lets the width/height attributes reserve the right space
   without fixing the rendered height */
img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* Must beat section rules that set display */
[hidden] {
  display: none !important;
}

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

.accent {
  color: var(--highlight, #039999);
}

.accent-gradient {
  background: linear-gradient(90deg, var(--teal-mid), #9e9e9e);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Keeps an in-page target clear of the sticky navbar */
#contact-form,
#faq {
  scroll-margin-top: 110px;
}


/* =========================================================
   3. TYPOGRAPHY
   Every font-size on the site comes from here. Tiers are
   multiplied by --fs-scale where they are used rather than
   where they are declared, so a section can set --fs-scale
   and resize all of its type at once (see the About page).

   Display 84 · H1 52 · H2 42 · Statement 34 · H3 30 · H4 24
   Lead 19 · Body 17 · Small 15 · Label 14
   ========================================================= */

/* Display — the oversized statement opening Home and YanQ */
.yanq-hero-intro .header-placeholder__overlay h1,
.pqs-hero h1,
.diagnosis h2,
.yanq-hero h2 {
  font-size: calc(var(--fs-display) * var(--fs-scale, 1));
  line-height: 1.05;
  letter-spacing: -2px;
}

/* Numeral — the outsized figure in a stat */
.pqs-stat__num {
  font-size: calc(var(--fs-numeral) * var(--fs-scale, 1));
  line-height: 1;
  letter-spacing: -2px;
}

/* H1 — page hero titles, and the two YanQ section headings */
.legal h1,
.hero__heading h1,
.header-placeholder__overlay h1,
.yanq-works h2,
.yanq-delivers h2 {
  font-size: calc(var(--fs-h1) * var(--fs-scale, 1));
  line-height: 1.15;
  letter-spacing: -1px;
}

/* H2 — section headings, including the footer call to action */
.pqs-intro h2,
.pq-entry h2,
.hero__desc h2,
.diagnosis__eyebrow,
.yanq-hero__label,
.symptoms__header h2,
.why__header h2,
.contact-form-col h2,
.about-measure h2,
.industries h2,
.faq__header h2,
.loads-x h2,
.solutions-row h2,
.problems h2,
.inaction h2,
.results h2,
.svc-flow h2,
.footer__cta h2 {
  font-size: calc(var(--fs-h2) * var(--fs-scale, 1));
  line-height: 1.2;
  letter-spacing: -0.5px;
}

/* Statement — pull quotes and standalone claims */
.quote p,
.about-statement p {
  font-size: calc(var(--fs-statement) * var(--fs-scale, 1));
  line-height: 1.4;
  letter-spacing: -0.3px;
}

/* H3 — sub-section headings and figure labels */
.svc-block__name,
.pqs-next h2,
.deliver-stat h3 {
  font-size: calc(var(--fs-h3) * var(--fs-scale, 1));
  line-height: 1.25;
  letter-spacing: -0.3px;
}

/* H4 — card titles */
.legal h2,
.solution-card:not(.solution-card--photo) .solution-card__name,
.industry-panel__title,
.glimpse h3,
.why-card h3,
.symptom-card__title,
.inaction-card__row h3,
.results__title,
.problem-card__text h3,
.loads-x__item h3,
.faq__question,
.svc-step__word,
.yanq-step h3 {
  font-size: calc(var(--fs-h4) * var(--fs-scale, 1));
  line-height: 1.3;
  letter-spacing: -0.2px;
}

/* The rotating statement's copy, a step above a normal lead */
.about-measure p {
  font-size: calc(var(--fs-copy-lg) * var(--fs-scale, 1));
  line-height: 1.5;
}

/* Lead — the paragraph that introduces a section */
.yanq-expect__title,
.pq-entry__lead,
.pqs-lead,
.hero__desc p,
.hero__heading p,
.header-placeholder__overlay p,
.nav-menu__feature-title,
.diagnosis__body,
.symptoms__header p,
.why__header p,
.contact-form-col__sub,
.yanq-works__lead,
.yanq-hero__body,
.pqs-next p,
.solutions-row__inner > p,
.svc-block__text,
.inaction__inner > p,
.results__inner > p,
.results__plus,
.industries > p,
.faq__header p,
.footer__cta p {
  font-size: calc(var(--fs-lead) * var(--fs-scale, 1));
  line-height: 1.6;
}

/* Body — running copy, navigation, controls */
.legal p,
.legal li,
.contact-map__open,
.svc-more,
.svc-detail__list li,
.btn,
.diagnosis__team,
.symptoms__more,
.why-card__go,
.navbar__links a,
.nav-menu__title,
.why-card p,
.symptom-card__detail p,
.deliver-stat p,
.glimpse__go,
.loads-x__load,
.loads-x__item > p,
.loads-x__links a,
.loads-x__note,
.industry-tab,
.industry-panel li,
.industry-cell,
.faq__answer,
.results__desc,
.solution-card__label .plus,
.form-field input,
.form-field textarea,
.form-field select,
.footer__brand p,
.footer__col a {
  font-size: calc(var(--fs-body) * var(--fs-scale, 1));
  line-height: 1.6;
}

/* Small — dense copy inside compact cards */
.yanq-step__tag,
.loads-x__chips li,
.loads-x__seen,
.glimpse p,
.problem-card__text p,
.inaction-card p,
.svc-step__line,
.pqs-stat__label,
.nav-menu__desc,
.nav-menu__feature-line,
.yanq-expect__list p,
.footer__legal small,
.footer__legal-links a,
.svc-ask,
.solution-card__label {
  font-size: calc(var(--fs-small) * var(--fs-scale, 1));
  line-height: 1.55;
}

/* Label — eyebrows, tags, counters, form labels */
.pq-entry__eyebrow,
.nav-menu__eyebrow,
.pqs-eyebrow,
.glimpse__tag,
.loads-x__head,
.loads-x__num,
.loads-x__seen span,
.problem-card__num,
.pqs-pills a,
.pqs-marquee li,
.yanq-step__num,
.svc-block__label,
.svc-step__num,
.deliver-stat__num,
.inaction-card__tag,
.results__num,
.faq__num,
.yanq-expect__label,
.footer__label,
.form-field label {
  font-size: calc(var(--fs-label) * var(--fs-scale, 1));
  line-height: 1.4;
}


/* Navbar fit: with six items on one line, the bar steps down a tier
   between laptop and tablet widths (hamburger menu starts at 768px) */
@media (min-width: 769px) and (max-width: 1100px) {
  .nav-menu__feature-title {
    font-size: calc(var(--fs-body) * var(--fs-scale, 1));
  }

  .navbar__links > a,
  .navbar__links .nav-item__link,
  .navbar__cta {
    font-size: calc(var(--fs-small) * var(--fs-scale, 1));
  }
}

@media (min-width: 769px) and (max-width: 900px) {
  .navbar__links > a,
  .navbar__links .nav-item__link,
  .navbar__cta {
    font-size: calc(var(--fs-label) * var(--fs-scale, 1));
  }
}

/* =========================================================
   4. BUTTONS
   Raised inset highlight and a tinted shadow; lifts on hover,
   presses in on :active.
   ========================================================= */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-weight: 400;
  white-space: nowrap;
  cursor: pointer;
  outline: none;
  transition: box-shadow 0.18s ease, background-color 0.18s ease,
    border-color 0.18s ease, transform 0.08s ease;
}

/* Inner hairline just inside the border */
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 7px;
  pointer-events: none;
}

.btn:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

.btn:disabled,
.btn[aria-disabled="true"] {
  pointer-events: none;
  opacity: 0.64;
}

/* Solid orange */
.btn--orange {
  background: var(--orange);
  border-color: var(--orange-edge);
  color: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3),
    0 2px 5px rgba(196, 92, 20, 0.32);
}

.btn--orange:hover {
  background: #ff9855;
  border-color: var(--orange-edge);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.38),
    0 6px 16px rgba(196, 92, 20, 0.4);
  transform: translateY(-2px);
}

.btn--orange:active {
  background: #ef7c2c;
  box-shadow: inset 0 3px 7px rgba(120, 52, 6, 0.4);
  transform: translateY(1px);
}

/* Outline teal */
.btn--outline-teal {
  background: transparent;
  color: var(--petrol);
  border-color: var(--teal);
  box-shadow: 0 2px 4px rgba(26, 65, 70, 0.1);
}

.btn--outline-teal::before {
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.06);
}

.btn--outline-teal:hover {
  background: rgba(52, 182, 175, 0.12);
  border-color: var(--teal-edge);
  box-shadow: 0 6px 14px rgba(26, 65, 70, 0.16);
  transform: translateY(-2px);
}

.btn--outline-teal:active {
  background: rgba(52, 182, 175, 0.2);
  box-shadow: inset 0 3px 6px rgba(26, 65, 70, 0.18);
  transform: translateY(1px);
}

/* Outline orange */
.btn--outline-orange {
  background: transparent;
  color: var(--orange);
  border-color: var(--orange);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12);
}

.btn--outline-orange::before {
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.06);
}

.btn--outline-orange:hover {
  background: rgba(255, 140, 64, 0.16);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}

.btn--outline-orange:active {
  background: rgba(255, 140, 64, 0.24);
  box-shadow: inset 0 3px 6px rgba(0, 0, 0, 0.22);
  transform: translateY(1px);
}


/* =========================================================
   5. LAYOUT
   ========================================================= */

/* ---------- Navbar ---------- */
.navbar {
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0 var(--gutter);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Slides away on the way down the page (initNavAutoHide). It keeps its space,
   so the page does not shift; keyboard focus inside it always brings it back. */
.navbar.is-hidden {
  transform: translateY(-100%);
}

.navbar.is-hidden:focus-within {
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .navbar {
    transition: none;
  }
}

/* Same inner column as the sections, so the logo and CTA line up with the
   content underneath them. */
.navbar__inner {
  max-width: 1152px;
  width: 100%;
  margin: 0 auto;
  height: calc(var(--nav-height) - 1px); /* the border is the last pixel */
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}

.navbar__logo img {
  height: 26px;
  width: auto;
}

/* One line at every width above the phone menu. The links box spans the
   bar's height, so a drop-down opens flush under the bar and the pointer
   never leaves the item on its way down. */
.navbar__links {
  position: relative;
  display: flex;
  align-items: center;
  align-self: stretch;
  gap: 40px;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.navbar__links a {
  color: var(--text);
  transition: color 0.25s ease;
}

.navbar__links a.is-active,
.navbar__links a:hover,
.navbar__links a:focus-visible {
  color: var(--teal-deep);
}

/* Drop-down item: label link, chevron button, panel */
.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  align-self: stretch;
}

.nav-item__chev {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 32px;
  margin-left: 2px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--text);
  cursor: pointer;
  transition: color 0.25s ease;
}

.nav-item__chev svg {
  display: block;
  transition: transform 0.18s ease;
}

.nav-item.is-open .nav-item__chev,
.nav-item__chev:hover,
.nav-item__chev:focus-visible,
.nav-item__link.is-active + .nav-item__chev {
  color: var(--teal-deep);
}

.nav-item.is-open .nav-item__chev svg {
  transform: rotate(180deg);
}

.nav-item__chev:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 0;
  border-radius: 6px;
}

/* Panel: two zones (a list of rows and one featured tile) on an ivory card.
   It floats ~10px under the bar with a caret on its top edge pointing at the
   trigger; the script sets --menu-x (the shift that keeps it inside the
   window) and --caret-x (where the caret sits). A transparent ::before
   bridges the gap, so the pointer never leaves the item on its way down. */
.nav-menu {
  --menu-x: -16px;
  --caret-x: 40px;
  position: absolute;
  top: calc(100% + 10px);
  left: var(--menu-x);
  z-index: 5;
  width: 588px;
  padding: 8px;
  display: flex;
  gap: 8px;
  background: var(--ivory-card);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 24px 48px rgba(26, 65, 70, 0.14), 0 2px 6px rgba(26, 65, 70, 0.06);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px) scale(0.98);
  transform-origin: var(--caret-x) 0;
  transition: opacity 0.14s ease, transform 0.14s ease, visibility 0s linear 0.14s;
}

.nav-menu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -18px;
  height: 18px;
}

.nav-menu::after {
  content: "";
  position: absolute;
  top: -7px;
  left: calc(var(--caret-x) - 6px);
  width: 12px;
  height: 12px;
  background: var(--ivory-card);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  border-top-left-radius: 3px;
  transform: rotate(45deg);
}

.nav-item.is-open .nav-menu {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.2s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.2s cubic-bezier(0.2, 0.7, 0.2, 1), visibility 0s;
}

/* Rows and tile rise in 30ms apart; closing drops the stagger */
.nav-menu .nav-menu__list a,
.nav-menu .nav-menu__feature {
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.14s ease, transform 0.14s ease;
}

.nav-item.is-open .nav-menu .nav-menu__list a,
.nav-item.is-open .nav-menu .nav-menu__feature {
  opacity: 1;
  transform: none;
  transition: opacity 0.2s cubic-bezier(0.2, 0.7, 0.2, 1) calc(var(--k, 0) * 30ms),
    transform 0.2s cubic-bezier(0.2, 0.7, 0.2, 1) calc(var(--k, 0) * 30ms);
}

.nav-menu__list a:nth-of-type(1) { --k: 1; }
.nav-menu__list a:nth-of-type(2) { --k: 2; }
.nav-menu__list a:nth-of-type(3) { --k: 3; }
.nav-menu__list a:nth-of-type(4) { --k: 4; }
.nav-menu__feature { --k: 2; }

/* Left zone: the rows, with one highlight that slides between them. The
   script sets its translateY and --glow-h (height jumps, never animates). */
.nav-menu__list {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.nav-menu__glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: var(--glow-h, 0px);
  border-radius: 8px;
  background: var(--cream);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.22s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.22s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.nav-menu__glow.is-on {
  opacity: 1;
}

.nav-menu__glow.is-jump {
  transition: opacity 0.22s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.nav-menu .nav-menu__list a {
  position: relative;
  display: flex;
  align-items: flex-start;   /* icon top lines up with the title line; the desc keeps the row height */
  gap: 12px;
  padding: 12px;
  border-radius: 8px;
  color: var(--ink);
  white-space: normal;
}

.nav-menu__icon {
  flex: 0 0 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(52, 182, 175, 0.12);
  color: var(--teal-deep);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-menu__icon svg {
  display: block;
}

.nav-menu__text {
  flex: 1 1 auto;
  min-width: 0;
  padding-right: 18px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-menu__title {
  color: var(--ink);
}

.nav-menu__desc {
  text-wrap: pretty;
  min-height: 2lh;   /* both menus' rows share one height, so the panels match */
  color: var(--text);
}

.nav-menu .nav-menu__list a .nav-menu__go {
  position: absolute;
  right: 12px;
  top: 50%;
  margin-top: -8px;
  color: var(--teal-deep);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-menu .nav-menu__list a:hover .nav-menu__icon,
.nav-menu .nav-menu__list a:focus-visible .nav-menu__icon,
.nav-menu .nav-menu__list a[aria-current="page"] .nav-menu__icon {
  background: var(--teal-deep);
  color: var(--ivory-card);
}

.nav-menu .nav-menu__list a:hover .nav-menu__go,
.nav-menu .nav-menu__list a:focus-visible .nav-menu__go {
  opacity: 1;
  transform: translateX(3px);
}

.nav-menu .nav-menu__list a[aria-current="page"] .nav-menu__title {
  color: var(--teal-deep);
}

.nav-menu a:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: -2px;
}

/* Right zone: one photo tile in the petrol overlay language of the heroes */
.nav-menu .nav-menu__feature {
  position: relative;
  flex: 0 0 220px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  border-radius: 8px;
  background: var(--petrol);
  color: var(--text-on-dark);
  white-space: normal;
}

.nav-menu__feature img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.nav-menu__feature:hover img,
.nav-menu__feature:focus-visible img {
  transform: scale(1.04);
}

.nav-menu__feature::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to top,
    color-mix(in srgb, var(--petrol) 98%, transparent) 0%,
    color-mix(in srgb, var(--petrol) 92%, transparent) 58%,
    color-mix(in srgb, var(--petrol) 0%, transparent) 100%
  );
}

.nav-menu__feature-body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px;
}

.nav-menu__eyebrow {
  color: var(--text-on-dark);
  opacity: 0.75;
}

.nav-menu__feature-title,
.nav-menu__feature-line {
  color: var(--text-on-dark);
}

.nav-menu__feature-go {
  display: inline-block;
  margin-left: 4px;
  vertical-align: -3px;
  color: var(--text-on-dark);
  transition: transform 0.2s ease;
}

.nav-menu__feature:hover .nav-menu__feature-go,
.nav-menu__feature:focus-visible .nav-menu__feature-go {
  transform: translateX(3px);
}

/* Tablet: the tile narrows so the panel clears the window edges */
@media (max-width: 1000px) {
  .nav-menu {
    width: 520px;
  }

  .nav-menu .nav-menu__feature {
    flex-basis: 170px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav-menu,
  .nav-item.is-open .nav-menu,
  .nav-menu .nav-menu__list a,
  .nav-item.is-open .nav-menu .nav-menu__list a,
  .nav-menu .nav-menu__feature,
  .nav-item.is-open .nav-menu .nav-menu__feature,
  .nav-menu__glow,
  .nav-menu__feature img,
  .nav-menu__feature-go,
  .nav-menu .nav-menu__list a .nav-menu__go,
  .nav-item__chev svg {
    transition: none;
  }

  .nav-menu,
  .nav-menu .nav-menu__list a,
  .nav-menu .nav-menu__feature,
  .nav-menu__feature:hover img,
  .nav-menu__feature:focus-visible img,
  .nav-menu__feature:hover .nav-menu__feature-go,
  .nav-menu__feature:focus-visible .nav-menu__feature-go,
  .nav-menu .nav-menu__list a:hover .nav-menu__go,
  .nav-menu .nav-menu__list a:focus-visible .nav-menu__go {
    transform: none;
  }

  .nav-menu .nav-menu__list a,
  .nav-menu .nav-menu__feature {
    opacity: 1;
  }
}

/* Sliding underline; the script sets its width and position */
.navbar__indicator {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--teal-brand);
  opacity: 0;
  pointer-events: none;
  transition:
    transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    width 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.25s ease;
}

.navbar__cta {
  padding: 12px 24px;
}

@media (prefers-reduced-motion: reduce) {
  .navbar__indicator {
    transition: opacity 0.25s ease;
  }
}

/* Menu button: three bars that fold into a cross when open. Only shown
   below 900px, where the links move into a drop-down panel. */
.navbar__toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  margin-right: -10px; /* optical: aligns the bars, not the tap area, to the gutter */
  border: 0;
  background: none;
  color: var(--petrol);
  cursor: pointer;
}

.navbar__toggle-bar,
.navbar__toggle-bar::before,
.navbar__toggle-bar::after {
  position: absolute;
  left: 11px;
  width: 22px;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease;
}

.navbar__toggle-bar {
  top: 21px;
}

.navbar__toggle-bar::before,
.navbar__toggle-bar::after {
  content: "";
  left: 0;
}

.navbar__toggle-bar::before {
  transform: translateY(-7px);
}

.navbar__toggle-bar::after {
  transform: translateY(7px);
}

.navbar.is-open .navbar__toggle-bar {
  background: transparent;
}

.navbar.is-open .navbar__toggle-bar::before {
  transform: rotate(45deg);
}

.navbar.is-open .navbar__toggle-bar::after {
  transform: rotate(-45deg);
}

.navbar__toggle:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
  border-radius: 6px;
}

/* Fitting six items, the chevrons and the CTA on one line: gaps, then the
   bar's side padding, tighten as the window narrows (type steps down a tier
   in section 3). Below 769px the phone menu takes over. */
@media (max-width: 1360px) {
  .navbar__inner {
    gap: 32px;
  }

  .navbar__links {
    gap: 28px;
  }
}

@media (max-width: 1100px) {
  .navbar {
    padding: 0 32px;
  }

  .navbar__inner {
    gap: 20px;
  }

  .navbar__links {
    gap: 18px;
  }

  .navbar__cta {
    padding: 12px 18px;
  }
}

@media (max-width: 1000px) {
  .navbar {
    padding: 0 24px;
  }

  .navbar__inner {
    gap: 16px;
  }

  .navbar__links {
    gap: 14px;
  }

  .nav-item__chev {
    width: 20px;
    margin-left: 0;
  }

  .navbar__cta {
    padding: 10px 14px;
  }
}

@media (max-width: 900px) {
  .navbar {
    padding: 0 20px;
  }

  .navbar__inner {
    gap: 12px;
  }

  .navbar__links {
    gap: 10px;
  }

  .navbar__logo img {
    height: 24px;
  }

  .nav-item__chev {
    width: 16px;
  }

  .navbar__cta {
    padding: 9px 12px;
  }
}

/* Fallback phone menu (js/m/base.js and css/m/base.css replace it): a
   plain drop-down panel with the children listed under their parent */
@media (max-width: 768px) {
  .navbar__inner {
    gap: 12px;
  }

  .navbar__cta {
    margin-left: auto;
    padding: 10px 18px;
  }

  .navbar__toggle {
    display: block;
  }

  .navbar__links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    align-items: stretch;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 0;
    padding: 8px var(--gutter) 20px;
    background: #ffffff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 32px rgba(26, 65, 70, 0.12);
  }

  .navbar.is-open .navbar__links {
    display: flex;
  }

  .navbar__links a {
    padding: 14px 0;
    border-bottom: 1px solid rgba(188, 201, 199, 0.5);
  }

  .navbar__links > a:last-of-type {
    border-bottom: 0;
  }

  .nav-item {
    display: block;
  }

  .nav-item__chev {
    display: none;
  }

  .nav-menu {
    position: static;
    display: block;
    width: auto;
    padding: 0 0 0 16px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none;
  }

  .nav-menu::before,
  .nav-menu::after,
  .nav-menu__glow,
  .nav-menu__icon,
  .nav-menu__desc,
  .nav-menu .nav-menu__go,
  .nav-menu__feature {
    display: none;
  }

  .nav-menu__list {
    display: block;
  }

  .nav-menu .nav-menu__list a {
    display: block;
    padding: 12px 0;
    border-radius: 0;
    opacity: 1;
    transform: none;
    transition: none;
  }

  .nav-menu__text {
    display: inline;
    padding: 0;
  }

  .navbar__indicator {
    display: none;
  }
}

/* The call to action lives in every footer too, so the smallest phones
   drop it from the bar rather than crowd the menu button. */
@media (max-width: 359px) {
  .navbar__cta {
    display: none;
  }

  .navbar__toggle {
    margin-left: auto;
  }
}

/* ---------- Section shell ----------
   Sections centre their content vertically. The min-height is tiered by how
   much each one carries, so a short section never sits in a screen of empty
   space; it is a minimum, so anything taller still grows. */
.diagnosis,
.symptoms,
.quote,
.why,
.contact-hero,
.contact-body,
.yanq-hero-intro,
.yanq-hero,
.yanq-delivers,
.about-hero,
.about-statement,
.about-measure,
.industries,
.faq,
.solution-hero,
.inaction,
.results {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Full screen: large display statements. (Home's Diagnosis, Symptoms and
   Why Yansa sit at their content height with the normal section padding.) */
.yanq-hero {
  min-height: 100vh;
}

/* Content sections: card grids, forms, lists */
.contact-body,
.inaction,
.results,
.faq,
.industries {
  min-height: 80vh;
}

/* Short statements and interstitials */
.about-statement,
.about-measure {
  min-height: 60vh;
}

/* On tablets and phones a section is as tall as its content: a screen-high
   minimum there is mostly empty space around a narrow column. */
@media (max-width: 900px) {
  .diagnosis,
  .yanq-hero,
  .symptoms,
  .why,
  .contact-body,
  .inaction,
  .results,
  .faq,
  .industries,
  .about-statement,
  .about-measure {
    min-height: 0;
  }
}

/* One vertical rhythm on phones, whatever each section uses on desktop */
@media (max-width: 560px) {
  .diagnosis,
  .symptoms,
  .quote,
  .why,
  .inaction,
  .results,
  .about-statement,
  .about-measure,
  .industries,
  .yanq-hero,
  .yanq-delivers,
  .contact-body {
    padding-top: var(--section-pad-y);
    padding-bottom: var(--section-pad-y);
  }

  .faq {
    padding-top: 24px;
    padding-bottom: var(--section-pad-y);
  }
}

/* Centred content columns. width:100% is required: inside a flex-column
   section an auto-margined item would otherwise shrink to its content, and
   every section would land on a different left edge. */
.diagnosis__content,
.symptoms__header,
.symptoms__grid,
.quote__inner,
.why__header,
.why__grid,
.contact-body__inner,
.yanq-hero__inner,
.yanq-delivers__grid,
.industry-tabs,
.faq__inner,
.problems__stack,
.solutions-row__inner,
.inaction__inner,
.results__inner,
.footer__cta,
.footer__bottom {
  width: 100%;
}

/* ---------- Inner-page hero ----------
   About, Solutions, YanQ and Contact open on a full-bleed photo with the
   heading centred over it. */
.contact-hero,
.yanq-hero-intro,
.about-hero,
.solution-hero,
.services-hero {
  position: relative;
  overflow: hidden;
  min-height: var(--inner-hero-height);
  background: var(--ivory);
  text-align: center;
}

.header-placeholder {
  position: relative;
  width: 100%;
  height: var(--inner-hero-height);
  min-height: var(--inner-hero-height);
  overflow: hidden;
  background: #e3e3d8;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.header-placeholder__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 8%;
}

/* Scrim so the type stays readable over any photo */
.header-placeholder__overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 46% 30% at 50% 45%, rgba(4, 25, 23, 0.4) 0%, rgba(4, 25, 23, 0) 100%),
    linear-gradient(
      180deg,
      rgba(4, 25, 23, 0.55) 0%,
      rgba(4, 25, 23, 0.35) 50%,
      rgba(4, 25, 23, 0.55) 100%
    );
}

.header-placeholder__overlay > * {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.header-placeholder__overlay h1 {
  color: #ffffff;
  margin-bottom: 16px;
  font-weight: 600;
  text-shadow: 0 1px 3px rgba(4, 25, 23, 0.7), 0 2px 32px rgba(4, 25, 23, 0.75);
}

.header-placeholder__overlay p {
  color: #ffffff;
  margin: 0 auto;
  text-wrap: balance;
  font-weight: 500;
  text-shadow: 0 1px 3px rgba(4, 25, 23, 0.75), 0 1px 18px rgba(4, 25, 23, 0.7);
}

.contact-hero .header-placeholder__overlay p {
  max-width: 672px;
}

/* Every hero title in regular weight, as on Home */
.header-placeholder__overlay h1 {
  font-weight: 400;
}

/* About title is written "Refining Power" in the markup (screen readers do
   not spell it out) and shown in capitals here */
.about-hero .header-placeholder__overlay h1 {
  text-transform: uppercase;
}

/* Same size on every hero: Home's script shows its title and subline at
   1.5 times the H1 and Lead tiers, so the inner pages match that scale */
@media (min-width: 769px) {
  .about-hero .header-placeholder__overlay,
  .solution-hero .header-placeholder__overlay,
  .services-hero .header-placeholder__overlay,
  .contact-hero .header-placeholder__overlay,
  .yanq-hero-intro .header-placeholder__overlay {
    --fs-scale: 1.5;
  }

  .yanq-hero-intro .header-placeholder__overlay h1 {
    font-size: calc(var(--fs-h1) * var(--fs-scale, 1));
    line-height: 1.15;
    letter-spacing: -1px;
  }

  .header-placeholder__overlay > * {
    max-width: 1100px;
  }
}

/* About, Solution and Contact land their titles where Home's sits: the h1 on the
   middle of the screen (the extra bottom padding equals the navbar above
   the photo), the subline hanging below it, as in the Home hero. */
@media (min-width: 769px) {
  .about-hero .header-placeholder__overlay,
  .solution-hero .header-placeholder__overlay,
  .services-hero .header-placeholder__overlay,
  .contact-hero .header-placeholder__overlay {
    display: grid;
    grid-template-rows: 1fr auto 1fr;
    justify-items: center;
    padding-bottom: calc(40px + var(--nav-height));
  }

  .about-hero .header-placeholder__overlay h1,
  .solution-hero .header-placeholder__overlay h1,
  .services-hero .header-placeholder__overlay h1,
  .contact-hero .header-placeholder__overlay h1 {
    grid-row: 2;
    margin-bottom: 0;
  }

  .about-hero .header-placeholder__overlay p,
  .solution-hero .header-placeholder__overlay p,
  .services-hero .header-placeholder__overlay p,
  .contact-hero .header-placeholder__overlay p {
    grid-row: 3;
    align-self: start;
    margin-top: 16px;
  }
}

@media (max-width: 560px) {
  .header-placeholder__overlay {
    padding: 24px 6%;
  }
}

/* ---------- 404 page ---------- */
.not-found {
  min-height: calc(80vh - var(--nav-height));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--section-pad-y) var(--gutter);
}

.not-found__code {
  color: var(--highlight, #039999);
  font-size: calc(var(--fs-label) * var(--fs-scale, 1));
  letter-spacing: 2.8px;
  margin-bottom: 16px;
}

.not-found h1 {
  color: var(--teal-brand);
  font-size: calc(var(--fs-h2) * var(--fs-scale, 1));
  line-height: 1.2;
  margin-bottom: 16px;
}

.not-found > p:not(.not-found__code) {
  color: var(--text);
  max-width: 560px;
  font-size: calc(var(--fs-lead) * var(--fs-scale, 1));
  line-height: 1.6;
  margin-bottom: 40px;
}

.not-found__links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}


/* =========================================================
   6. HOME
   ========================================================= */

/* ---------- Hero: scroll-driven film reveal ----------
   What is written first IS the settled design: heading, framed media,
   buttons. It stands on its own with no JavaScript, which is also what
   narrow screens and reduced-motion users get.

   The script opts into the animation with .is-scrolly, which pins the stage
   and lifts the media out of its frame so it can be driven from full bleed
   back into it. Because the end state is the plain layout, progress 1 always
   lands on the real design. */
.hero {
  position: relative;
  background: var(--ivory);
}

.hero {
  background: var(--cream);
}

.hero__stage {
  position: relative;
}

/* Plain stack: the film with the heading on it, then the description */
.hero__media {
  position: relative;
  height: 72vh;
  min-height: 420px;
  overflow: hidden;
  background: #1a2a2c;
}

.hero__media img,
.hero__media video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__heading {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  z-index: 2;
  height: 72vh;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 var(--gutter);
  text-align: center;
  color: #ffffff;
  /* Legible over the bright still without bringing back the full overlay the
     client removed: a tight edge shadow plus a wide soft halo */
  text-shadow: 0 1px 3px rgba(4, 25, 23, 0.7), 0 2px 32px rgba(4, 25, 23, 0.75);
  /* A soft dark pool behind the words only, so they read over the brightest
     parts of the picture while its edges stay untouched */
  background: radial-gradient(ellipse 52% 34% at 50% 50%, rgba(4, 25, 23, 0.7) 0%, rgba(4, 25, 23, 0.34) 55%, rgba(4, 25, 23, 0) 100%);
}

.hero__heading h1 {
  margin-bottom: 16px;
  font-weight: 400;
}

.hero__heading p {
  font-weight: 500;
}

.hero__float {
  display: none;
}

.hero__desc {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px var(--gutter) 88px;
  text-align: center;
}

.hero__desc h2 {
  color: var(--ink);
  margin-bottom: 16px;
}

.hero__desc p {
  color: #505050;
  margin-bottom: 32px;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}

/* Animated mode (the script adds .is-scrolly on wide, tall screens). The
   height past the stage is the scroll runway; the script sets every size and
   position below from scroll, so the CSS only holds the resting rules. */
.hero.is-scrolly {
  height: calc(var(--hero-stage-h) + var(--hero-runway));
  /* The scaled heading is wider than the screen: clip the sides only, since
     the still must still reach up over the navbar */
  overflow-x: clip;
}

.hero.is-scrolly .hero__stage {
  position: sticky;
  top: var(--nav-height);
  height: var(--hero-stage-h);
}

/* The film is in front of the photos (they come out from behind it) and
   behind the heading. It reaches up under the navbar so that, once the navbar
   fades, the film is already there and nothing has to move. */
.hero.is-scrolly .hero__media {
  position: absolute;
  z-index: 2;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  will-change: left, top, width, height;
}

/* The heading box covers the whole screen, navbar included, so the title
   sits in the middle of the screen; the script scales it about that centre.
   Three rows keep the h1 itself on the centre line, with the line under it
   hanging below, so About and Solution can land their titles on the same
   point whatever the length of their subline. */
.hero.is-scrolly .hero__heading {
  z-index: 3;
  top: calc(-1 * var(--nav-height));
  height: calc(100% + var(--nav-height));
  min-height: 0;
  display: grid;
  grid-template-rows: 1fr auto 1fr;
  justify-items: center;
  pointer-events: none;
  will-change: transform, opacity;
}

/* The gap moves from under the h1 to over the p, so the margin does not
   pull the title off the centre line */
.hero.is-scrolly .hero__heading h1 {
  grid-row: 2;
  margin-bottom: 0;
}

.hero.is-scrolly .hero__heading p {
  grid-row: 3;
  align-self: start;
  margin-top: 16px;
}

.hero.is-scrolly .hero__float {
  display: block;
  position: absolute;
  left: 0;
  top: 0;
  z-index: 1;
  width: 180px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 14px 34px rgba(26, 65, 70, 0.24);
  will-change: transform, opacity;
}

.hero.is-scrolly .hero__float img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero.is-scrolly .hero__desc {
  position: absolute;
  left: 50%;
  top: 0;
  z-index: 4;
  width: min(820px, 90%);
  margin: 0;
  padding: 0;
  opacity: 0;
  will-change: transform, opacity;
}

@media (max-width: 768px) {
  .hero__desc {
    padding: 48px var(--gutter) 64px;
  }
}

/* ---------- Diagnosis ---------- */
.diagnosis {
  background: var(--petrol-bright);
  position: relative;
  overflow: hidden;
  padding: var(--section-pad-y) var(--gutter);
}

.diagnosis__wave {
  position: absolute;
  right: -120px;
  top: 40%;
  width: 610px;
  height: auto;
  opacity: 0.9;
  pointer-events: none;
}

.diagnosis__content {
  position: relative;
  max-width: 1152px;
  margin: 0 auto;
  z-index: 1;
}

.diagnosis__content > * {
  max-width: 768px;
}

/* Cyan, matching "What is YanQ" (client request 11 Oct) */
.diagnosis__eyebrow {
  color: var(--cyan);
}

.diagnosis h2 {
  color: #ffffff;
  margin-bottom: 24px;
}

.diagnosis__body {
  color: rgba(241, 241, 230, 0.8);
  max-width: 672px;
  margin-bottom: 16px;
}

/* One quiet line of proof between the paragraph and the button; the cool
   mist tint keeps it a step back from the cream copy above it */
.diagnosis__team {
  color: var(--mist);
  max-width: 672px;
  margin-bottom: 40px;
}

@media (max-width: 900px) {
  .diagnosis {
    padding: var(--section-pad-y) var(--gutter);
  }
}

/* ---------- Symptoms ----------
   The script tilts a card toward the cursor; the grid supplies the
   perspective. The detail copy opens on hover, and on :focus-within for the
   keyboard since the card has no control to click. */
.symptoms {
  background: var(--ivory);
  padding: var(--section-pad-y) var(--gutter);
}

.symptoms__header {
  text-align: center;
  max-width: 1152px;
  margin: 0 auto var(--header-gap);
}

.symptoms__header h2 {
  color: var(--petrol);
  margin-bottom: 16px;
}

.symptoms__header p {
  color: #818181;
}

.symptoms__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  max-width: 1152px;
  margin: 0 auto;
  perspective: 1000px;
}

.symptom-card {
  position: relative;
  background: var(--petrol);
  border-radius: 9px;
  padding: 32px;
  /* Tall enough for the drawing, the title and the opened copy (three lines)
     with nothing to grow on hover */
  min-height: 316px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  outline: none;
  transform-style: preserve-3d;
  will-change: transform;
  transition: box-shadow 0.35s ease, border-color 0.35s ease,
    background-color 0.35s ease;
}

.symptom-card:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

.symptom-card:hover,
.symptom-card:focus-within {
  background: #1d4a50;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.32);
  z-index: 3;
}

.symptom-card__body {
  width: 100%;
}

.symptom-card__title {
  color: var(--text-on-dark);
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.symptom-card:hover .symptom-card__title {
  transform: translateX(4px);
}

/* The open max-height stays close to what the copy needs (two lines is
   54px, 110px allows four) so the reveal eases for its whole duration. */
.symptom-card__detail {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(-8px);
  transition: max-height 0.62s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.45s ease,
    transform 0.62s cubic-bezier(0.4, 0, 0.2, 1),
    margin-top 0.62s cubic-bezier(0.4, 0, 0.2, 1);
}

.symptom-card__detail p {
  color: #9fc2c0;
}

.symptom-card:hover .symptom-card__detail,
.symptom-card:focus-within .symptom-card__detail {
  max-height: 110px;
  opacity: 1;
  transform: translateY(0);
  margin-top: 14px;
  transition-delay: 0.08s;
}

/* Phones stack the cards; tablets keep the two columns of the desktop */
@media (max-width: 768px) {
  .symptoms__grid {
    grid-template-columns: 1fr;
  }
}

/* Narrower columns wrap the opened copy to five lines: keep room for it so
   the card still does not grow on hover */
@media (min-width: 769px) and (max-width: 1100px) {
  .symptom-card {
    min-height: 372px;
  }
}

/* Two columns: room for a two-line title (padding and rule 19px plus two
   lines), so both cards in a row have their dividers on one line */
@media (min-width: 769px) and (max-width: 1279px) {
  .symptom-card__title {
    min-height: calc(19px + 2lh);
  }
}

/* Wide screens: all four cards in one row (the Home stays a short scroll).
   The columns are narrow, so the opened copy wraps to more lines: the detail
   gets more room and the card enough height that it still never grows. */
@media (min-width: 1280px) {
  .symptoms__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }

  .symptom-card {
    min-height: 464px;
    padding: 28px;
  }

  .symptom-card:hover .symptom-card__detail,
  .symptom-card:focus-within .symptom-card__detail {
    max-height: 220px;
  }

  /* Room for the longest title (three lines here), so every card's divider
     sits on the same line */
  .symptom-card__title {
    min-height: 113px;
  }
}

@media (min-width: 1280px) and (max-width: 1359px) {
  .symptom-card {
    min-height: 520px;
  }
}

/* From 1440 the row runs 64px past the text column on each side, so the cards
   are wide enough for two-line titles and shorter copy: a shorter card. */
@media (min-width: 1440px) {
  .symptoms__grid {
    width: calc(100% + 128px);
    max-width: none;
    margin-left: -64px;
  }

  .symptom-card {
    min-height: 396px;
  }

  /* The longest title wraps to two lines at this width */
  .symptom-card__title {
    min-height: 81px;
  }
}

/* Touch screens have no hover, so the detail is simply shown */
@media (hover: none) {
  .symptom-card__detail {
    max-height: none;
    opacity: 1;
    transform: none;
    margin-top: 14px;
  }
}

@media (max-width: 560px) {
  .symptoms__grid {
    gap: 16px;
  }

  .symptom-card {
    min-height: 0;
    gap: 28px;
    padding: 24px;
  }
}

/* The link that leads on to the load explorer */
.symptoms__more {
  max-width: 1152px;
  margin: 32px auto 0;
  text-align: center;
  color: #818181;
}

.symptoms__more a {
  color: var(--orange-edge);
  text-decoration: none;
  border-radius: 2px;
}

.symptoms__more-text {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.symptoms__more a:hover .pq-arrow,
.symptoms__more a:focus-visible .pq-arrow {
  transform: translateX(5px);
}

.symptoms__more a:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 4px;
}

/* ----- Symptom drawings -----
   Written FINISHED: with no script, reduced motion or print each drawing
   shows its failure frame. initSymptomArt adds .is-armed (the start frame)
   until the card scrolls into view, then lifts it so the parts play by
   transition (each part carries its own delay); .is-play also starts the
   one-off spark. While the card is hovered the script winds the drawing
   back and plays it again. Only transform, opacity and stroke-dashoffset
   move. Linework is the card's light text colour; teal is what is healthy,
   orange what is failing (palette shared with the YanQ drawings, section 9). */
.sym-art {
  --sym-size: 104px;
  display: block;
  flex: none;
  width: var(--sym-size);
  height: var(--sym-size);
  /* Pulls each drawing's own left margin out, so its linework starts on the
     card's text edge (--sym-pull is that margin as a share of the box) */
  margin-left: calc(var(--sym-size) * var(--sym-pull, 0));
  color: var(--text-on-dark);
}

.sym-breaker { --sym-pull: -0.115; }
.sym-motor { --sym-pull: -0.055; }
.sym-meter { --sym-pull: -0.07; }
.sym-gauge { --sym-pull: -0.115; }

@media (max-width: 560px) {
  .sym-art {
    --sym-size: 96px;
  }
}

/* Paths drawn with pathLength="1" are drawn by dash offset */
.sym-bolt,
.sym-wave,
.sym-merc-cool,
.sym-merc-hot,
.sym-bar,
.sym-arc,
.sym-fall {
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}

/* The start frame: parts unlit and undrawn. Opacity eases out first, so a
   part winds back rather than blinking off. */
.is-armed .sym-bolt,
.is-armed .sym-wave,
.is-armed .sym-merc-cool,
.is-armed .sym-merc-hot,
.is-armed .sym-bar,
.is-armed .sym-arc,
.is-armed .sym-fall {
  stroke-dashoffset: 1;
  opacity: 0;
  transition: opacity 0.25s ease, stroke-dashoffset 0s linear 0.25s;
}

/* Breaker: the lever flips from ON to OFF and a spark leaps */
.sym-lever {
  transform: translateY(15px);
  transition: transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) 0.5s;
}

.sym-lever-on {
  opacity: 0;
  transition: opacity 0.18s ease 0.55s;
}

.sym-lever-off {
  opacity: 1;
  transition: opacity 0.18s ease 0.55s;
}

.sym-bolt {
  transition: stroke-dashoffset 0.4s ease 0.9s, opacity 0s linear 0.9s;
}

.sym-spark {
  opacity: 0;
}

.is-armed .sym-lever {
  transform: none;
  transition: transform 0.35s ease;
}

.is-armed .sym-lever-on {
  opacity: 1;
  transition: opacity 0.2s ease;
}

.is-armed .sym-lever-off {
  opacity: 0;
  transition: opacity 0.2s ease;
}

.is-play .sym-spark {
  animation: sym-spark 0.8s ease-out 0.55s both;
}

@keyframes sym-spark {
  0%   { opacity: 0; transform: translateX(-4px); }
  20%  { opacity: 1; transform: none; }
  55%  { opacity: 0.9; }
  100% { opacity: 0; transform: translateX(3px); }
}

/* Motor: the outline heats to orange, heat rises, the thermometer climbs */
.sym-heat {
  opacity: 1;
  transition: opacity 0.9s ease 0.5s;
}

.sym-wave-1 { transition: stroke-dashoffset 0.9s ease-out 0.35s, opacity 0s linear 0.35s; }
.sym-wave-2 { transition: stroke-dashoffset 0.9s ease-out 0.55s, opacity 0s linear 0.55s; }
.sym-wave-3 { transition: stroke-dashoffset 0.9s ease-out 0.75s, opacity 0s linear 0.75s; }

.sym-merc-cool {
  stroke-width: 3.8;
  transition: stroke-dashoffset 0.6s ease-out 0.2s, opacity 0s linear 0.2s;
}

.sym-merc-hot {
  transition: stroke-dashoffset 0.7s ease-out 0.6s, opacity 0s linear 0.6s;
}

.sym-bulb-cool {
  opacity: 0;
  transition: opacity 0.3s ease 0.6s;
}

.sym-bulb-hot {
  opacity: 1;
  transition: opacity 0.3s ease 0.6s;
}

.is-armed .sym-heat {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.is-armed .sym-bulb-cool {
  opacity: 1;
  transition: opacity 0.25s ease;
}

.is-armed .sym-bulb-hot {
  opacity: 0;
  transition: opacity 0.25s ease;
}

/* Meter: the counter ticks up, the bars climb, the rupee tag pops in */
.sym-roll {
  transform: translateY(-42px);
  transition: transform 1.2s steps(3, end) 0.55s;
}

.sym-bar-1 { transition: stroke-dashoffset 0.5s ease-out 0.45s, opacity 0s linear 0.45s; }
.sym-bar-2 { transition: stroke-dashoffset 0.5s ease-out 0.65s, opacity 0s linear 0.65s; }
.sym-bar-3 { transition: stroke-dashoffset 0.5s ease-out 0.85s, opacity 0s linear 0.85s; }
.sym-bar-4 { transition: stroke-dashoffset 0.5s ease-out 1.05s, opacity 0s linear 1.05s; }

.sym-badge {
  transform-origin: 102px 102px;
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 1.3s, opacity 0.3s ease 1.3s;
}

.is-armed .sym-roll {
  transform: none;
  transition: transform 0.3s steps(3, end);
}

.is-armed .sym-badge {
  opacity: 0;
  transform: scale(0.4);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* Gauge: the arc draws, the needle swings from green down into orange */
.sym-arc-1 { transition: stroke-dashoffset 0.5s ease-out 0s, opacity 0s linear 0s; }
.sym-arc-2 { transition: stroke-dashoffset 0.5s ease-out 0.2s, opacity 0s linear 0.2s; }
.sym-arc-3 { transition: stroke-dashoffset 0.5s ease-out 0.4s, opacity 0s linear 0.4s; }

.sym-needle {
  transform-origin: 60px 72px;
  transform: rotate(-64deg);
  transition: transform 1.3s cubic-bezier(0.3, 1.3, 0.45, 1) 0.7s;
}

.sym-needle-hi {
  opacity: 0;
  transition: opacity 0.25s ease 1.05s;
}

.sym-needle-lo {
  opacity: 1;
  transition: opacity 0.25s ease 1.05s;
}

.sym-fall {
  transition: stroke-dashoffset 0.5s ease-out 1.8s, opacity 0s linear 1.8s;
}

.is-armed .sym-needle {
  transform: rotate(62deg);
  transition: transform 0.4s ease;
}

.is-armed .sym-needle-hi {
  opacity: 1;
  transition: opacity 0.2s ease;
}

.is-armed .sym-needle-lo {
  opacity: 0;
  transition: opacity 0.2s ease;
}

@media (prefers-reduced-motion: reduce) {
  .sym-art,
  .sym-art * {
    transition: none !important;
    animation: none !important;
  }
}

/* ---------- Quote: scroll-driven read-along ----------
   The rail on the left fills like a progress bar and the sentence lights a
   word at a time as it travels up the viewport. Nothing is pinned.

   Written here is the finished state (rail full, every word lit). The script
   opts into the animation with .is-scrolly, so with no JS, reduced motion or
   a narrow screen the quote is a plain block of type. */
.quote {
  background: var(--petrol);
  padding: var(--section-pad-y) var(--gutter);
}

.quote__stage {
  display: flex;
  align-items: center;
}

.quote__inner {
  max-width: 1152px;
  margin: 0 auto;
}

.quote p {
  position: relative;
  max-width: 896px;
  padding-left: 26px;
  color: var(--text-on-dark);
}

/* The rail: a dim track and a bright fill scaled from the top */
.quote p::before,
.quote p::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 2px;
  height: 100%;
  border-radius: 1px;
}

.quote p::before {
  background: rgba(188, 201, 199, 0.2);
}

.quote p::after {
  background: var(--line);
  transform-origin: 50% 0;
  transform: scaleY(var(--quote-rail, 1));
}

.quote__word {
  color: inherit;
}

/* Words switch instantly: a transition would blur lit and unlit words back
   into a gradient. */
.quote.is-scrolly .quote__word {
  color: #6f8b8d;
}

.quote.is-scrolly .quote__word.is-lit {
  color: var(--text-on-dark);
}

/* ---------- Why Yansa ---------- */
.why {
  background: var(--cream);
  padding: var(--section-pad-y) var(--gutter);
}

.why__header {
  max-width: 1152px;
  margin: 0 auto var(--header-gap);
}

.why__header h2 {
  color: var(--ink);
  margin-bottom: 24px;
}

.why__header p {
  max-width: 768px;
  color: #505050;
}

.why__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1152px;
  margin: 0 auto;
}

/* Each card is one link (Measure > YanQ, Solve > Solutions, Support >
   Services). It lifts 4px with a stronger border and shadow on hover and
   keyboard focus, and the arrow in its foot nudges. */
.why-card {
  background: var(--ivory-card);
  border: 1px solid #a6cdd3;
  border-radius: 8px;
  padding: 25px;
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
  will-change: transform;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.35s ease, border-color 0.35s ease,
    background-color 0.35s ease;
}

.why-card:hover,
.why-card:focus-visible {
  transform: translateY(-4px);
  border-color: var(--teal);
  box-shadow: 0 20px 44px rgba(26, 65, 70, 0.2);
}

.why-card:focus-visible {
  outline: 2px solid var(--teal-deep);
  outline-offset: 4px;
}

.why-card__icon {
  width: 48px;
  height: 48px;
  background: #ffffff;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.why-card__icon img {
  width: 28px;
  height: auto;
  transform: scaleY(-1);
}

.why-card h3 {
  position: relative;
  color: var(--ink);
  margin-bottom: 8px;
  padding-bottom: 8px;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Underline that draws out from the left on hover */
.why-card h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(52, 182, 175, 0.55),
    rgba(52, 182, 175, 0.25),
    transparent
  );
  transform: scaleX(0.3);
  transform-origin: left;
  transition: transform 0.4s ease-out;
}

.why-card:hover h3,
.why-card:focus-visible h3 {
  transform: translateX(4px);
}

.why-card:hover h3::after,
.why-card:focus-visible h3::after {
  transform: scaleX(1);
}

.why-card p {
  color: var(--text);
  margin-bottom: 20px;
}

/* The affordance at the card's foot; margin-top:auto lines the three up
   whatever the copy above runs to */
.why-card__go {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--teal-deep);
}

.why-card__arrow {
  display: inline-block;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.why-card:hover .why-card__arrow,
.why-card:focus-visible .why-card__arrow {
  transform: translateX(5px);
}

@media (prefers-reduced-motion: reduce) {
  .why-card:hover,
  .why-card:focus-visible,
  .why-card:hover .why-card__arrow,
  .why-card:focus-visible .why-card__arrow {
    transform: none;
  }
}

@media (max-width: 768px) {
  .why__grid {
    grid-template-columns: 1fr;
  }
}

/* Home on wide screens: four sections a step tighter than the site's 120px
   rhythm, so the page reads as a short, calm scroll */
@media (min-width: 901px) {
  .diagnosis,
  .symptoms,
  .quote,
  .why {
    padding-top: 96px;
    padding-bottom: 96px;
  }
}



/* =========================================================
   7. SOLUTIONS
   ========================================================= */

/* ---------- Load explorer ----------
   Field guide: the eight loads are an index list on the section background
   (one petrol highlight glides to the chosen row), and the chosen load opens
   as one ivory "load sheet" in the Solutions card style, split into a Problem
   pane and a tinted Solution pane. The eight items of each pane share one
   grid cell, so a pane is as tall as its tallest item and picking a load
   never moves the page. The outgoing item fades (200 ms); the incoming one
   fades and rises 8 px (260 ms). The script (initLoadExplorer) places the
   highlight and sets .is-live at the first pick, so nothing animates on
   load. Without the script the first load shows, its row filled in petrol. */
.loads-x {
  background: var(--ivory);
  padding: 80px var(--gutter);
}

.loads-x__inner {
  max-width: 1152px;
  margin: 0 auto;
}

.loads-x h2 {
  color: var(--ink);
  margin-bottom: 40px;
  text-align: center;
}

.loads-x h2 .accent { color: var(--teal); }

/* Column 1 is wide enough for the longest name on one line at 1440 (two lines
   below about 1300, rows stay equal) */
.loads-x__board {
  display: grid;
  grid-template-columns: clamp(300px, 33%, 380px) minmax(0, 1fr);
  gap: 28px;
}

/* The eyebrow: the Services label look, one style for all three columns */
.loads-x__head {
  margin-bottom: 14px;
  color: var(--highlight);
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* Loads: index list. Its eyebrow sits level with the sheet's eyebrows. */
.loads-x__col--loads {
  display: flex;
  flex-direction: column;
  padding-top: 28px;
}

.loads-x__list {
  position: relative;
  flex: 1;
  display: grid;
  grid-template-rows: repeat(8, minmax(52px, 1fr));
}

/* The highlight: positioned by the script (transform, width, height) */
.loads-x__glide {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 0;
  width: 0;
  height: 0;
  border-radius: 10px;
  background: var(--petrol);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    width 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    height 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.loads-x__list.is-glide .loads-x__glide { opacity: 1; }
.loads-x__list.is-snap .loads-x__glide { transition: none; }

.loads-x__load {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 16px;
  align-items: center;
  width: 100%;
  padding: 8px 18px 8px 16px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.2s ease, color 0.25s ease;
}

/* Hairline between rows; it steps aside around the highlight */
.loads-x__load::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--line);
  transition: opacity 0.2s ease;
}

.loads-x__load:last-of-type::after,
.loads-x__load.is-active::after,
.loads-x__load:has(+ .loads-x__load.is-active)::after {
  opacity: 0;
}

.loads-x__num {
  color: color-mix(in srgb, var(--text) 62%, transparent);
  transition: color 0.2s ease;
}

.loads-x__short { display: none; }

.loads-x__go {
  justify-self: end;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.25s ease, transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.loads-x__load:not(.is-active):hover {
  background: color-mix(in srgb, var(--teal) 8%, transparent);
  color: var(--petrol);
}

.loads-x__load:not(.is-active):hover .loads-x__num { color: var(--teal-deep); }

.loads-x__load.is-active {
  color: var(--text-on-dark);
}

.loads-x__load.is-active .loads-x__num {
  color: color-mix(in srgb, var(--text-on-dark) 70%, transparent);
}

.loads-x__load.is-active .loads-x__go {
  opacity: 1;
  transform: none;
}

/* Before the script has placed the highlight the active row paints itself */
.loads-x__list:not(.is-glide) .loads-x__load.is-active {
  background: var(--petrol);
}

.loads-x__load:focus-visible {
  outline: 2px solid var(--teal-deep);
  outline-offset: 2px;
}

/* The load sheet: Problem | Solution */
.loads-x__panel {
  display: grid;
  grid-template-columns: minmax(0, 55fr) minmax(0, 45fr);
  background: var(--ivory-card);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 18px 44px rgba(26, 65, 70, 0.08);
}

.loads-x__col {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 36px 32px;
}

.loads-x__col--fix {
  padding-inline: 32px;
  border-left: 1px solid var(--line);
  border-radius: 0 11px 11px 0;
  background: color-mix(in srgb, var(--teal) 7%, var(--ivory-card));
}

.loads-x__stack {
  flex: 1;
  display: grid;
}

.loads-x__item {
  grid-area: 1 / 1;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0s linear 0.2s;
}

.loads-x__col--fix .loads-x__item {
  display: flex;
  flex-direction: column;
}

.loads-x__item.is-active {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.2s ease;
}

@keyframes lxIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

.loads-x__board.is-live .loads-x__item.is-active {
  animation: lxIn 0.26s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

.loads-x__board.is-live .loads-x__col--fix .loads-x__item.is-active {
  animation-delay: 0.05s;
}

.loads-x__item h3 {
  color: var(--ink);
  margin-bottom: 12px;
}

.loads-x__item > p {
  color: var(--text);
}

/* Seen in: the signature plate (Home symptom-card petrol, line drawing in
   teal) with the label and places beside it */
.loads-x__lead {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 22px;
}

.loads-x__art {
  flex: none;
  display: grid;
  place-items: center;
  width: 132px;
  height: 92px;
  border-radius: 9px;
  background: var(--petrol);
  color: var(--teal);
}

.loads-x__icon {
  display: block;
  height: 40px;
  width: auto;
  overflow: visible;
}

.loads-x__seen {
  color: var(--text);
}

.loads-x__seen span {
  display: block;
  margin-bottom: 4px;
  color: var(--highlight);
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* Quiet hairline tags */
.loads-x__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.loads-x__chips li {
  padding: 4px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
}

/* Solution links: the Solutions page pills, 30px under the body copy. The
   arrow nudges 3px right and the family colour tints the pill on hover and
   focus. */
.loads-x__links {
  display: grid;
  gap: 10px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.loads-x__fam--active  { --chip: var(--teal-deep); }
.loads-x__fam--passive { --chip: var(--highlight); }
.loads-x__fam--hybrid  { --chip: var(--teal); }

.loads-x__links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 46px;
  padding: 8px 14px 8px 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  line-height: 1.4;
  text-wrap: balance;
  background: var(--ivory);
  color: var(--text);
  text-decoration: none;
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.loads-x__links a::after {
  content: "\2192";
  flex: none;
  color: var(--chip);
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.loads-x__links a:hover,
.loads-x__links a:focus-visible {
  border-color: var(--chip);
  background: color-mix(in srgb, var(--chip) 12%, var(--ivory-card));
  color: var(--ink);
}

.loads-x__links a:hover::after,
.loads-x__links a:focus-visible::after {
  transform: translateX(3px);
}

.loads-x__links a:focus-visible {
  outline: 2px solid var(--chip);
  outline-offset: 2px;
}

/* Connector: one petrol node on the divider between the panes. On every
   pick a ring leaves it and the arrow nudges, once. */
.loads-x__link {
  position: absolute;
  left: 0;
  top: 22px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-left: -16px;
  border-radius: 50%;
  background: var(--petrol);
  color: var(--text-on-dark);
  pointer-events: none;
}

.loads-x__link::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1.5px solid var(--teal);
  border-radius: 50%;
  opacity: 0;
}

@keyframes lxRing {
  from { opacity: 0.8; transform: scale(1); }
  to   { opacity: 0; transform: scale(2); }
}

@keyframes lxNudge {
  0%, 100% { transform: translateX(0); }
  40%      { transform: translateX(3px); }
}

.loads-x__board.is-pulse .loads-x__link::after {
  animation: lxRing 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.loads-x__board.is-pulse .loads-x__link svg {
  animation: lxNudge 0.5s ease-in-out both;
}

/* The line under the board: the Home "Which loads cause these?" style */
.loads-x__note {
  max-width: 1152px;
  margin: 32px auto 0;
  text-align: center;
  color: #818181;
}

.loads-x__note a {
  color: var(--orange-edge);
  text-decoration: none;
  border-radius: 2px;
}

.loads-x__note-text {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.loads-x__note a:hover .pq-arrow,
.loads-x__note a:focus-visible .pq-arrow {
  transform: translateX(5px);
}

.loads-x__note a:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 4px;
}

/* Under 1100 px the loads become a 4 x 2 grid of tiles above the sheet, the
   panes stay side by side */
@media (max-width: 1099px) {
  .loads-x__board {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }

  .loads-x__col--loads {
    padding: 0;
  }

  .loads-x__list {
    flex: none;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: none;
    gap: 10px;
  }

  .loads-x__load {
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
    gap: 2px;
    min-height: 76px;
    padding: 12px 14px;
    border: 1px solid var(--line);
  }

  .loads-x__load::after,
  .loads-x__go {
    display: none;
  }

  .loads-x__load.is-active {
    border-color: var(--petrol);
  }

  .loads-x__col {
    padding: 28px 24px 30px;
  }

  /* The connector node covers the first 16 px of this pane: keep the
     eyebrow at least 16 px clear of it */
  .loads-x__col--fix {
    padding-inline: 36px 24px;
  }

  .loads-x__lead {
    gap: 16px;
  }

  .loads-x__art {
    width: 108px;
    height: 80px;
  }

  .loads-x__icon {
    height: 34px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .loads-x__glide,
  .loads-x__load,
  .loads-x__num,
  .loads-x__go,
  .loads-x__item,
  .loads-x__item.is-active {
    transition: none;
  }

  .loads-x__board.is-live .loads-x__item.is-active,
  .loads-x__board.is-pulse .loads-x__link::after,
  .loads-x__board.is-pulse .loads-x__link svg {
    animation: none;
  }
}

/* ---------- The Problems These Loads Create ----------
   Three petrol cards in the Home symptom-card language: the load drawing
   top-left in teal line, the number top-right, a hairline, the title, then
   the copy in muted cream. The section is cream, so the band before it
   (explorer, ivory) and the one after (inaction, ivory) each read as their
   own section. The drawings play once as the cards come into view and again
   on hover (initProblemCards). On phones the cards become a swipe deck
   (css/m/loads.css). */
.problems {
  position: relative;
  padding: 0 var(--gutter);
  background: var(--cream);
  text-align: center;
}

.problems__sticky {
  padding: 80px 0;
}

.problems h2 {
  color: var(--ink);
  margin-bottom: 40px;
}

.problems h2 .accent {
  color: var(--highlight);
}

.problems__stack {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  max-width: 1152px;
  margin: 0 auto;
}

.problem-card {
  position: relative;
  background: var(--petrol);
  border-radius: 9px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 20px;
  padding: 26px 32px 32px;
  text-align: left;
  transition: box-shadow 0.35s ease, background-color 0.35s ease;
}

.problem-card:hover {
  background: #1d4a50;
  box-shadow: 0 20px 44px rgba(26, 65, 70, 0.28);
}

/* The number, top right, quiet (as on the Home deck) */
.problem-card__num {
  position: absolute;
  top: 34px;
  right: 32px;
  color: var(--mist);
  opacity: 0.6;
  letter-spacing: 1.5px;
}

.problem-card__text {
  width: 100%;
}

.problem-card__text h3 {
  color: var(--text-on-dark);
  margin-bottom: 8px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.problem-card__text p {
  color: #9fc2c0;
}

/* The viewBoxes are cropped to each drawing so it fills its box (about the
   size of the Home symptom drawings). --vh is the viewBox height, --h the
   rendered height: strokes are set in rendered px (--sw) so they stay close
   to the Home line weight whatever the scale. */
.problem-card__icon {
  --h: 80;
  --vh: 80;
  order: -1;
  width: auto;
  height: calc(var(--h) * 1px);
  flex-shrink: 0;
  overflow: visible;
}

.problem-card:nth-child(2) .problem-card__icon { --vh: 150; }
.problem-card:nth-child(3) .problem-card__icon { --vh: 134; }

.problem-card__icon [stroke-width="14"] { stroke-width: calc(6px * var(--vh) / var(--h)); }
.problem-card__icon [stroke-width="8"],
.problem-card__icon [stroke-width="7"],
.problem-card__icon [stroke-width="6.5"],
.problem-card__icon [stroke-width="6"] { stroke-width: calc(2.8px * var(--vh) / var(--h)); }
.problem-card__icon [stroke-width="5"],
.problem-card__icon [stroke-width="4.5"] { stroke-width: calc(2.2px * var(--vh) / var(--h)); }
.problem-card__icon [stroke-width="3.5"] { stroke-width: calc(1.5px * var(--vh) / var(--h)); }

/* The drawings were made for orange cards: dark petrol line and a cream
   accent. On petrol they take teal line and a cream accent. */
.problem-card__icon [stroke="#114B47"] { stroke: var(--teal); }
.problem-card__icon [fill="#114B47"]   { fill: var(--teal); }
.problem-card__icon [stroke="#fff4e6"] { stroke: var(--text-on-dark); }

/* Rest pose of the swung vector on Power Factor, which otherwise only comes
   from its keyframe (the draw-in animations are in section 13). */
.problem-card__icon .anim-swing {
  transform: rotate(-38.9deg);
  transform-origin: 85px 150px;
}

.problem-card__icon .anim-tick,
.problem-card__icon .anim-hub,
.problem-card__icon .anim-origin,
.problem-card__icon .anim-phi {
  transform-box: fill-box;
  transform-origin: center;
}

.problem-card__icon .anim-needle { transform-origin: 150px 160px; }
.problem-card__icon .anim-h      { transform-origin: 85px 150px; }

@media (max-width: 900px) {
  .problem-card {
    padding: 22px 24px 24px;
    gap: 16px;
  }

  .problem-card__num {
    top: 26px;
    right: 24px;
  }
}

/* ---------- Active / Passive / Hybrid solution rows ---------- */
.solutions-row {
  background: var(--cream);
  padding: 56px var(--gutter);
}

.solutions-row__inner {
  max-width: 1152px;
  margin: 0 auto;
}

.solutions-row h2 {
  color: var(--ink);
  margin-bottom: 12px;
}

.solutions-row__label--active  { color: var(--teal-deep); }
.solutions-row__label--passive { color: var(--highlight); }
.solutions-row__label--hybrid  { color: var(--teal); }
.solutions-row__label--protection { color: var(--petrol); }

.solutions-row__inner > p {
  color: #8a8a8a;
  max-width: 700px;
  margin-bottom: 32px;
}

/* Every row shows four cards at a time; longer rows scroll sideways.
   The padding keeps the focus ring clear of the scroller's clipping edge,
   and the negative margin pulls the cards back onto the text column. */
.solutions-row__grid {
  --cards-visible: 4;
  --card-gap: 24px;
  display: flex;
  gap: var(--card-gap);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 6px;
  overscroll-behavior-x: contain;
  padding: 6px 6px 14px;
  margin: -6px -6px -14px;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}

.solutions-row__grid > .solution-card {
  flex: 0 0 calc((100% - var(--card-gap) * (var(--cards-visible) - 1)) / var(--cards-visible));
  scroll-snap-align: start;
}

/* Arrows for rows that scroll, added by initSolutionScroll. They sit on
   the heading's line so they read as part of the row's title. */
.solutions-row__inner {
  position: relative;
}

.solutions-row__nav {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  gap: 10px;
}

.solutions-row__nav[hidden] {
  display: none;
}

.solutions-row__arrow {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.solutions-row__arrow--prev svg {
  transform: scaleX(-1);
}

.solutions-row__arrow:hover:not(:disabled) {
  color: var(--orange);
  border-color: var(--orange);
}

.solutions-row__arrow:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

.solutions-row__arrow:disabled {
  opacity: 0.35;
  cursor: default;
}

/* Each card is the button that opens the solution dialog */
.solution-card {
  background: #1c1c1c;
  border-radius: 8px;
  aspect-ratio: 1;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  width: 100%;
  padding: 0;
  border: 0;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.solution-card:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

/* Invisible while its dialog is open, so the panel reads as the card
   having grown rather than as a copy on top of it. */
.solution-card.is-morphing {
  opacity: 0;
  pointer-events: none;
}

.solution-card--photo {
  background: #ffffff;
}

/* Text-only cards (Hybrid panels, Commissioning) until Yansa sends photos:
   the same petrol face the phone layer gives them, name set large */
.solution-card:not(.solution-card--photo) {
  background:
    radial-gradient(320px circle at 85% 8%, rgba(76, 200, 192, 0.22), transparent 70%),
    linear-gradient(165deg, var(--petrol-bright, #167777) -30%, var(--petrol) 48%, #102a2e 100%);
}

.solution-card:not(.solution-card--photo) .solution-card__label {
  background: none;
  padding: 24px;
}

.solution-card--photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Product cut-outs from yansa.in sit whole on white, clear of the label */
.solution-card--product img {
  object-fit: contain;
  padding: 24px 24px 72px;
}

.solution-card__label {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.55);
  color: var(--text-on-dark);
}

.solution-card__label .plus {
  color: var(--orange);
}

.solution-card .plus {
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.solution-card:hover .plus {
  transform: rotate(90deg) scale(1.1);
}

@media (max-width: 900px) {
  .solutions-row__grid {
    --cards-visible: 2;
  }
}

/* Too narrow to share the heading's line: the arrows drop below the intro */
@media (max-width: 600px) {
  .solutions-row__nav {
    position: static;
    justify-content: flex-end;
    margin: -16px 0 16px;
  }
}

/* ---------- What Inaction Costs ----------
   Three full-photo cards at every width (a swipe deck on phones, see
   css/m/loads.css): the photo fills the card, a dark gradient rises from the
   foot to carry the title and copy, and the cost tag is a pill at the top
   left. The gradient is at least 0.72 dark where the copy starts, so the
   cream text keeps AA contrast over any part of the photo. */
.inaction {
  min-height: 0;
  display: block;
  background: var(--ivory);
  padding: 72px var(--gutter);
  text-align: center;
}

.inaction__inner {
  max-width: 1152px;
  margin: 0 auto;
}

.inaction h2 {
  color: var(--ink);
  margin-bottom: 12px;
}

.inaction__inner > p {
  color: var(--text);
  margin-bottom: 32px;
}

.inaction__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  text-align: left;
}

.inaction-card {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 9px;
  background: #143338;
  box-shadow: 0 12px 28px rgba(26, 65, 70, 0.16);
}

.inaction-card__photo {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-color: #2a4d51;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.inaction-card__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(20, 51, 56, 0) 20%,
    rgba(20, 51, 56, 0.74) 48%,
    rgba(20, 51, 56, 0.96) 100%
  );
}

.inaction-card__photo--1 { background-image: url("../images/inaction-bearing.jpg"); }
.inaction-card__photo--2 { background-image: url("../images/inaction-penalties.jpg"); background-position: 30% center; }
.inaction-card__photo--3 { background-image: url("../images/inaction-resonance.jpg"); background-position: 45% center; }

.inaction-card__row {
  padding: 0 24px 8px;
}

.inaction-card__row h3 {
  color: var(--text-on-dark);
}

.inaction-card__tag {
  position: absolute;
  top: 18px;
  left: 18px;
  padding: 6px 12px;
  border: 1px solid rgba(3, 153, 153, 0.55);
  border-radius: 999px;
  color: #ffd2b3;
  background: rgba(20, 51, 56, 0.86);
  white-space: nowrap;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.inaction-card p {
  padding: 0 24px 24px;
  color: rgba(241, 241, 230, 0.88);
}

/* Narrow tablets: the three stay across, a little closer and tighter */
@media (max-width: 900px) {
  .inaction__grid {
    gap: 16px;
  }

  .inaction-card {
    aspect-ratio: 4 / 5;
  }

  .inaction-card__row {
    padding: 0 18px 6px;
  }

  .inaction-card p {
    padding: 0 18px 20px;
  }

  .inaction-card__tag {
    top: 14px;
    left: 14px;
  }
}

/* ---------- Results, Not Claims ----------
   Each row is a button that opens the same dialog as the solution cards,
   in its light "document" skin. */
.results {
  background: var(--cream);
  padding: 90px var(--gutter);
}

.results__inner {
  max-width: 1152px;
  margin: 0 auto;
}

.results h2 {
  color: var(--ink);
  margin-bottom: 12px;
}

.results .accent-teal {
  color: var(--teal-mid);
}

.results__inner > p {
  color: #5c5c5c;
  max-width: 700px;
  margin-bottom: 40px;
}

.results__list {
  border-top: 1px solid #d8d8c8;
  max-width: 1000px;
}

.results__item {
  display: flex;
  align-items: center;
  gap: 24px;
  width: 100%;
  padding: 24px 0;
  border: 0;
  border-bottom: 1px solid #d8d8c8;
  background: none;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.results__item:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

.results__item.is-morphing {
  opacity: 0;
  pointer-events: none;
}

.results__num {
  color: #7ecfc9;
  width: 24px;
  flex-shrink: 0;
}

.results__text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.results__title {
  color: var(--ink);
}

.results__desc {
  color: #8a8a8a;
}

.results__plus {
  color: var(--orange);
  flex-shrink: 0;
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.results__item:hover .results__plus {
  transform: rotate(90deg) scale(1.1);
}


/* ---------- PQ Solved page pieces, and Know Your Loads' "Now see it solved" ----------
   .pq-arrow nudges in links across the site. The ripples and eyebrow of the
   Solutions hero sit here too. */
.pq-arrow {
  display: inline-block;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.pqs-hero__rings span {
  position: absolute;
  border: 1px solid rgba(76, 200, 192, 0.4);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  animation: pq-ring 14s linear infinite;
}

.pqs-hero__rings span:nth-child(2) { animation-delay: 4.6s; }
.pqs-hero__rings span:nth-child(3) { animation-delay: 9.3s; }

@keyframes pq-ring {
  0% { scale: 0.15; opacity: 0.75; }
  100% { scale: 1.25; opacity: 0; }
}

.pqs-eyebrow {
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 20px;
}

/* ----- Know Your Loads: Match the fix to the problem -----
   The last section before the petrol footer, so it is light (a cream band
   with a hairline top, like Solutions' closing band): the copy on the left,
   the four fixes as whole-card links in a 2 x 2 grid of ivory cards on the
   right. The cards are the Home "Why Yansa" cards: they lift 4px with a
   stronger border and shadow on hover and keyboard focus, and the arrow
   nudges. They settle in once with a short stagger as the section comes
   into view (the reveal in initScrollReveal). */
.pq-entry {
  background: var(--cream);
  border-top: 1px solid rgba(188, 201, 199, 0.55);
  padding: 64px var(--gutter);
}

.pq-entry__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.4fr);
  gap: 56px;
  align-items: center;
  max-width: 1152px;
  margin: 0 auto;
}

.pq-entry__eyebrow {
  color: var(--highlight);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.pq-entry h2 {
  color: var(--ink);
  margin-bottom: 16px;
}

.pq-entry__accent {
  color: var(--highlight);
}

.pq-entry__lead {
  color: var(--text);
  max-width: 460px;
  margin-bottom: 28px;
}

.pq-entry__cta:hover .pq-arrow,
.pq-entry__cta:focus-visible .pq-arrow,
.glimpse:hover .pq-arrow,
.glimpse:focus-visible .pq-arrow {
  transform: translateX(5px);
}

.pq-entry__cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.glimpse {
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid #a6cdd3;
  border-radius: 8px;
  background: var(--ivory-card);
  color: inherit;
  text-decoration: none;
  will-change: transform;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.35s ease, border-color 0.35s ease;
}

.glimpse:hover,
.glimpse:focus-visible {
  transform: translateY(-4px);
  border-color: var(--teal);
  box-shadow: 0 20px 44px rgba(26, 65, 70, 0.2);
}

.glimpse:focus-visible {
  outline: 2px solid var(--teal-deep);
  outline-offset: 4px;
}

.glimpse__tag {
  display: block;
  color: var(--teal-deep);
  letter-spacing: 1.4px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.glimpse h3 {
  position: relative;
  color: var(--ink);
  margin-bottom: 8px;
  padding-bottom: 8px;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* The underline draws out from the left on hover, as on the Home cards */
.glimpse h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(52, 182, 175, 0.55),
    rgba(52, 182, 175, 0.25),
    transparent
  );
  transform: scaleX(0.3);
  transform-origin: left;
  transition: transform 0.4s ease-out;
}

.glimpse:hover h3,
.glimpse:focus-visible h3 {
  transform: translateX(4px);
}

.glimpse:hover h3::after,
.glimpse:focus-visible h3::after {
  transform: scaleX(1);
}

.glimpse p {
  color: var(--text);
  margin-bottom: 16px;
}

/* The foot: margin-top:auto lines the four up whatever the copy runs to */
.glimpse__go {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--teal-deep);
}

/* ----- The PQ Solved page ----- */
.pqs-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: var(--inner-hero-height);
  background: var(--petrol);
  /* the foot of the hero is left to the wave */
  padding: 80px var(--gutter) clamp(180px, 26vh, 240px);
  text-align: center;
}

/* A sonar-style grid that fades out toward the edges */
.pqs-hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(169, 209, 215, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(169, 209, 215, 0.1) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 65% at 50% 45%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 65% at 50% 45%, #000 20%, transparent 75%);
}

/* A brighter copy of the grid, shown only round the cursor */
.pqs-hero__glow {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(76, 200, 192, 0.55) 1px, transparent 1px),
    linear-gradient(90deg, rgba(76, 200, 192, 0.55) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(260px circle at var(--hx, 50%) var(--hy, 50%), #000, transparent 70%);
  mask-image: radial-gradient(260px circle at var(--hx, 50%) var(--hy, 50%), #000, transparent 70%);
  opacity: 0;
  transition: opacity 0.9s ease;
  pointer-events: none;
}

.pqs-hero.is-hot .pqs-hero__glow {
  opacity: 1;
}

/* A ring left behind by the cursor: grows and fades, then removes itself */
.pq-ping {
  position: absolute;
  z-index: 0;
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  border: 1px solid rgba(76, 200, 192, 0.7);
  border-radius: 50%;
  pointer-events: none;
  animation: pq-ping 2.4s cubic-bezier(0.25, 0.6, 0.3, 1) forwards;
}

.pq-ping--big {
  animation-duration: 3s;
  border-width: 2px;
}

@keyframes pq-ping {
  to {
    transform: scale(9);
    opacity: 0;
  }
}

.pqs-hero__rings span {
  left: 50%;
  top: 46%;
  width: 1000px;
  aspect-ratio: 1;
  translate: -50% -50%;
}

.pqs-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 880px;
}

.pqs-hero h1 {
  color: var(--text-on-dark);
  margin-bottom: 24px;
}

.pqs-word {
  display: inline-block;
  animation: pqs-rise 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.pqs-word--b {
  color: var(--cyan);
  animation-delay: 0.15s;
}

.pqs-word__dot {
  color: var(--cyan);
}

/* The distorted line that settles into a clean sine (initPqWave). Faded out
   toward both edges like the grid; the dotted copy is the clean sine it is
   settling toward. */
.pqs-wave {
  position: absolute;
  left: 0;
  bottom: clamp(24px, 5vh, 56px);
  width: 100%;
  height: 150px;
  overflow: visible;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
}

.pqs-wave path {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pqs-wave__ref {
  stroke: var(--mist);
  stroke-opacity: 0.22;
  stroke-width: 1.5;
  stroke-dasharray: 1 9;
}

.pqs-wave__glow {
  stroke: url(#pqs-wave-fill);
  stroke-width: 10;
  opacity: 0.14;
}

.pqs-wave__line {
  stroke: url(#pqs-wave-fill);
  stroke-width: 2.5;
}

@keyframes pqs-rise {
  from {
    opacity: 0;
    transform: translateY(0.35em);
    filter: blur(8px);
  }
}

.pqs-lead {
  color: var(--mist);
  max-width: 600px;
  margin: 0 auto 36px;
}

.pqs-hero__ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

/* Marquee: the track holds two copies and slides half its width, so the
   loop is seamless. It stops on hover and under reduced motion. */
.pqs-marquee {
  overflow: hidden;
  background: var(--ink);
  border-block: 1px solid rgba(169, 209, 215, 0.2);
  padding: 18px 0;
}

.pqs-marquee__track {
  display: flex;
  width: max-content;
  animation: pqs-marquee 65s linear infinite;
}

.pqs-marquee:hover .pqs-marquee__track {
  animation-play-state: paused;
}

.pqs-marquee ul {
  display: flex;
  flex: none;
  list-style: none;
  margin: 0;
  padding: 0;
}

.pqs-marquee li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 40px;
  color: var(--text-on-dark);
  white-space: nowrap;
  letter-spacing: 0.4px;
}

.pqs-marquee li b {
  color: var(--cyan);
}

@keyframes pqs-marquee {
  to { transform: translateX(-50%); }
}

/* Sticky jump bar under the navbar */
.nav-hidden .pqs-pills {
  top: 0;
}

.pqs-pills {
  position: sticky;
  top: var(--nav-height);
  transition: top 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
  z-index: 20;
  background: var(--cream);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  padding: 14px var(--gutter);
}

.pqs-pills__inner {
  display: flex;
  gap: 12px;
  max-width: 1152px;
  margin: 0 auto;
}

.pqs-pills a {
  padding: 8px 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  text-decoration: none;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.pqs-pills a:hover {
  border-color: var(--teal);
  color: var(--teal-deep);
}

.pqs-pills a.is-active {
  background: var(--petrol);
  border-color: var(--petrol);
  color: var(--text-on-dark);
}

/* Closing band: the same cream strip as YanQ's next step, with a heading */
.pqs-next {
  background: var(--cream);
  border-top: 1px solid rgba(188, 201, 199, 0.55);
  padding: 72px var(--gutter);
}

.pqs-next__inner {
  max-width: 1152px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px 48px;
  flex-wrap: wrap;
}

.pqs-next h2 {
  color: var(--ink);
  margin-bottom: 8px;
}

.pqs-next p {
  color: var(--text);
  max-width: 640px;
  text-wrap: balance;
}

.pqs-next__buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.pqs .solutions-row {
  scroll-margin-top: calc(var(--nav-height) + 72px);
}

/* A chip lands on its card: the card clears the navbar and the jump bar with
   the row's heading still in sight above it, and a ring marks it for a moment. */
.pqs .solution-card {
  scroll-margin-top: calc(var(--nav-height) + 72px + 175px);
}

.pqs .solution-card:target::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 3px var(--teal);
  pointer-events: none;
  animation: pqs-landed 2.2s ease-out both;
}

@keyframes pqs-landed {
  0%, 40% { opacity: 1; }
  100% { opacity: 0; }
}

@media (max-width: 900px) {
  .pq-entry__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .pq-entry__lead {
    max-width: 560px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pqs-hero__glow {
    transition: none;
  }

  .pqs-hero__rings span,
  .pqs-word,
  .pqs-marquee__track {
    animation: none;
  }

  .pqs .solution-card:target::after {
    animation: none;
  }

  .pqs-hero__rings span {
    opacity: 0.25;
    scale: 0.6;
  }

  .glimpse,
  .glimpse h3,
  .glimpse h3::after,
  .pq-arrow {
    transition: none;
  }

  .glimpse:hover,
  .glimpse:focus-visible,
  .glimpse:hover h3,
  .glimpse:focus-visible h3,
  .glimpse:hover .pq-arrow,
  .glimpse:focus-visible .pq-arrow,
  .pq-entry__cta:hover .pq-arrow,
  .pq-entry__cta:focus-visible .pq-arrow {
    transform: none;
  }
}

/* =========================================================
   7b. SERVICES
   ========================================================= */

/* ---------- Service blocks ----------
   Three wide blocks on one 12-column grid: the photo takes six columns, the
   text five, and the pair swaps sides down the page. Commissioning and AMC
   open their detail list in place (0fr to 1fr rows; the script only toggles
   .is-open). The text column hangs from the photo's top edge so opening a
   block never moves the heading. Without the script the lists simply show. */
.svc {
  background: var(--ivory);
  padding: 56px var(--gutter);
}

.svc__inner {
  max-width: 1152px;
  margin: 0 auto;
  display: grid;
  row-gap: 60px;
}

.svc-block {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
  align-items: start;
  scroll-margin-top: calc(var(--nav-height) + 24px);
}

.svc-block__media {
  grid-column: 1 / span 6;
  grid-row: 1;
  aspect-ratio: 16 / 10;
  border-radius: 8px;
  overflow: hidden;
  background: #e3e3d8;
}

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

#yanq-study .svc-block__media img { object-position: 24% 50%; }
#commissioning .svc-block__media img { object-position: 50% 42%; }
#amc .svc-block__media img { object-position: 50% 38%; }

.svc-block__body {
  grid-column: 8 / span 5;
  grid-row: 1;
  padding-top: 6px;
}

.svc-block:nth-child(even) .svc-block__media { grid-column: 7 / span 6; }
.svc-block:nth-child(even) .svc-block__body { grid-column: 1 / span 5; }

/* "01 ── STUDY": the number in orange, a hairline, the stage in green */
.svc-block__label {
  display: flex;
  align-items: center;
  color: var(--highlight);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 14px;
}

.svc-block__label span {
  color: var(--orange);
  letter-spacing: 1px;
}

.svc-block__label span::after {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1px;
  margin: 0 12px 0 10px;
  vertical-align: middle;
  background: var(--line);
}

.svc-block__name {
  color: var(--ink);
  margin-bottom: 14px;
}

.svc-block__text {
  color: var(--text);
  max-width: 440px;
}

/* Learn More: the same pill as the Solutions chips. The arrow nudges right;
   the chevron on an expander turns over when it opens. */
.svc-more {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  margin-top: 24px;
  padding: 8px 18px 8px 22px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--ivory-card);
  color: var(--ink);
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.svc-more svg {
  flex: none;
  color: var(--teal-deep);
}

.svc-more__arrow {
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.svc-more__chev {
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.svc-more:hover,
.svc-more:focus-visible,
.svc-more[aria-expanded="true"] {
  border-color: var(--teal-deep);
  background: color-mix(in srgb, var(--teal-deep) 9%, var(--ivory-card));
}

.svc-more:hover .svc-more__arrow,
.svc-more:focus-visible .svc-more__arrow {
  transform: translateX(3px);
}

.svc-more[aria-expanded="true"] .svc-more__chev {
  transform: rotate(180deg);
}

.svc-more:focus-visible {
  outline: 2px solid var(--teal-deep);
  outline-offset: 2px;
}

/* Ask link: a quiet text link under Learn More (and its panel), the same
   underlined orange link and arrow as the Home "Know Your Loads" line */
.svc-ask {
  margin-top: 16px;
}

.svc-ask a {
  display: inline-block;
  color: var(--orange-edge);
  text-decoration: none;
  border-radius: 2px;
}

.svc-ask__text {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.svc-ask a:hover .pq-arrow,
.svc-ask a:focus-visible .pq-arrow {
  transform: translateX(5px);
}

.svc-ask a:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 4px;
}

/* The detail panel: one grid row that grows from 0fr to 1fr, so the script
   never measures or animates a height. Closed, it is also out of the
   accessibility tree (visibility waits for the close to finish). */
.svc-detail {
  display: grid;
  grid-template-rows: 1fr;
}

.svc-detail__list {
  min-height: 0;
  overflow: hidden;
  list-style: none;
  margin: 0;
  padding: 0;
}

.svc-detail__list li {
  position: relative;
  margin: 0;
  padding: 12px 0 12px 22px;
  border-top: 1px solid var(--line);
  color: var(--text);
}

.svc-detail__list li:first-child { margin-top: 24px; }
.svc-detail__list li:last-child { border-bottom: 1px solid var(--line); }

.svc-detail__list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 1.15em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal-deep);
}

.svc-detail__list li:nth-child(2) { --i: 1; }
.svc-detail__list li:nth-child(3) { --i: 2; }
.svc-detail__list li:nth-child(4) { --i: 3; }
.svc-detail__list li:nth-child(5) { --i: 4; }

/* Script-driven states: closed until opened; photo and text arrive once */
.js-svc .svc-detail {
  grid-template-rows: 0fr;
  visibility: hidden;
  transition: grid-template-rows 0.5s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 0.5s;
}

.js-svc .svc-block.is-open .svc-detail {
  grid-template-rows: 1fr;
  visibility: visible;
  transition-delay: 0s, 0s;
}

.js-svc .svc-detail__list li {
  opacity: 0;
  transition: opacity 0.18s ease;
}

.js-svc .svc-block.is-open .svc-detail__list li {
  opacity: 1;
  transition: opacity 0.4s ease calc(0.14s + var(--i, 0) * 60ms);
}

.js-svc .svc-block__media img {
  transform: scale(1.04);
  transition: transform 1.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.js-svc .svc-block__body {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease 0.12s, transform 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.12s;
}

.js-svc .svc-block.is-in .svc-block__media img {
  transform: none;
}

.js-svc .svc-block.is-in .svc-block__body {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .js-svc .svc-detail,
  .js-svc .svc-detail__list li,
  .js-svc .svc-block__media img,
  .js-svc .svc-block__body,
  .svc-more,
  .svc-more svg {
    transition: none !important;
  }

  .js-svc .svc-block__media img { transform: none; }
  .js-svc .svc-block__body { opacity: 1; transform: none; }
}

/* Narrower than the 12-column grid can carry: two plain halves */
@media (max-width: 1100px) {
  .svc-block {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 48px;
  }

  .svc-block__media,
  .svc-block__body,
  .svc-block:nth-child(even) .svc-block__body {
    grid-column: 1;
  }

  .svc-block__body,
  .svc-block:nth-child(even) .svc-block__media {
    grid-column: 2;
  }
}


/* ---------- How an engagement runs ----------
   Five numbered nodes on one thin line. In view, the line draws left to
   right in a second (scaleX, linear, so it reaches each node on a beat) and
   each node lights as it arrives. The lit face is a layer fading in over the
   ring, so only opacity and transform ever move. */
.svc-flow {
  background: var(--cream);
  border-top: 1px solid var(--line);
  padding: 48px var(--gutter) 60px;
}

.svc-flow__inner {
  max-width: 1152px;
  margin: 0 auto;
}

.svc-flow h2 {
  color: var(--ink);
  margin-bottom: 40px;
}

.svc-flow h2 .accent { color: var(--highlight); }

.svc-flow__row {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}

/* The track and its fill, between the first and last node centres */
.svc-flow__row::before,
.svc-flow__row::after {
  content: "";
  position: absolute;
  top: 21px;
  left: 10%;
  right: 10%;
  height: 2px;
  border-radius: 1px;
}

.svc-flow__row::before { background: var(--line); }

.svc-flow__row::after {
  background: var(--highlight);
  transform-origin: left center;
}

.svc-step { margin: 0; }

.svc-step a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 0 8px;
  text-align: center;
  color: inherit;
  text-decoration: none;
}

.svc-step__num {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 14px;
  border: 1.5px solid var(--line);
  border-radius: 50%;
  background: var(--cream);
  color: var(--text);
}

/* The lit face: filled disc with the number reversed out of it */
.svc-step__num::before,
.svc-step__num::after {
  content: "";
  position: absolute;
  inset: -1.5px;
  border-radius: 50%;
  opacity: 0;
}

.svc-step__num::before { background: var(--teal-deep); }

.svc-step__num::after {
  content: attr(data-n);
  display: grid;
  place-items: center;
  color: #ffffff;
}

.svc-step__word {
  display: block;
  color: var(--ink);
}

.svc-step__line {
  display: block;
  max-width: 22ch;
  color: var(--text);
}

.svc-step a:hover .svc-step__word,
.svc-step a:focus-visible .svc-step__word {
  color: var(--teal-deep);
}

.svc-step a:focus-visible {
  outline: 2px solid var(--teal-deep);
  outline-offset: 4px;
  border-radius: 8px;
}

/* Without the script: every node already lit and the line complete */
.svc-step__num::before,
.svc-step__num::after { opacity: 1; }

.js-svc .svc-flow__row::after {
  transform: scaleX(0);
  transition: transform 1s linear;
}

.js-svc .svc-step__num::before,
.js-svc .svc-step__num::after {
  opacity: 0;
  transition: opacity 0.3s ease calc(var(--i) * 250ms);
}

.js-svc .svc-step__word,
.js-svc .svc-step__line {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s ease calc(var(--i) * 250ms + 80ms), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1) calc(var(--i) * 250ms + 80ms);
}

.js-svc .svc-flow__row.is-in::after { transform: none; }

.js-svc .svc-flow__row.is-in .svc-step__num::before,
.js-svc .svc-flow__row.is-in .svc-step__num::after { opacity: 1; }

.js-svc .svc-flow__row.is-in .svc-step__word,
.js-svc .svc-flow__row.is-in .svc-step__line {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .js-svc .svc-flow__row::after,
  .js-svc .svc-step__num::before,
  .js-svc .svc-step__num::after,
  .js-svc .svc-step__word,
  .js-svc .svc-step__line {
    transition: none !important;
  }
}

/* ---------- Engagement row: progress on hover and focus ----------
   A second line (the first step's ::before, so no new markup) scales from
   step 1 to the active step; the script writes --to (0 to 4) and marks steps
   .is-active / .is-later. Earlier steps stay lit, later ones go quiet.
   Transform, opacity and colour only. Nothing here changes the row's size.
   Armed by .is-ready, once the draw-in has finished. */
.svc-step:first-child::before {
  content: "";
  position: absolute;
  top: 21px;
  left: 10%;
  right: 10%;
  height: 2px;
  border-radius: 1px;
  background: var(--teal-deep);
  z-index: 1;
  pointer-events: none;
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform var(--svc-t, 240ms) cubic-bezier(0.2, 0.7, 0.2, 1);
}

.svc-flow__row.is-engaged .svc-step:first-child::before {
  transform: scaleX(calc(var(--to, 0) / 4));
}

.svc-step__num {
  transition: transform var(--svc-t, 240ms) cubic-bezier(0.2, 0.7, 0.2, 1);
}

.js-svc .svc-flow__row.is-ready { --svc-t: 240ms; }
.js-svc .svc-flow__row.is-ready.is-engaged { --svc-t: 320ms; }

/* Once the draw-in is done, its staggered delays are dropped */
.js-svc .svc-flow__row.is-ready .svc-step__word,
.js-svc .svc-flow__row.is-ready .svc-step__line {
  transition: opacity var(--svc-t) cubic-bezier(0.2, 0.7, 0.2, 1), transform var(--svc-t) cubic-bezier(0.2, 0.7, 0.2, 1), color var(--svc-t) cubic-bezier(0.2, 0.7, 0.2, 1);
}

.js-svc .svc-flow__row.is-ready .svc-step__num::before,
.js-svc .svc-flow__row.is-ready .svc-step__num::after {
  transition: opacity var(--svc-t) cubic-bezier(0.2, 0.7, 0.2, 1), color var(--svc-t) cubic-bezier(0.2, 0.7, 0.2, 1);
}

.js-svc .svc-flow__row.is-engaged .svc-step.is-later .svc-step__word,
.js-svc .svc-flow__row.is-engaged .svc-step.is-later .svc-step__line {
  opacity: 0.45;
}

.js-svc .svc-flow__row.is-engaged .svc-step.is-later .svc-step__num::before,
.js-svc .svc-flow__row.is-engaged .svc-step.is-later .svc-step__num::after {
  opacity: 0.6;
}

.js-svc .svc-flow__row.is-engaged .svc-step:not(.is-later) .svc-step__num::after {
  color: var(--ivory-card);
}

.js-svc .svc-flow__row.is-engaged .svc-step.is-active .svc-step__num {
  transform: scale(1.08);
}

.js-svc .svc-flow__row.is-engaged .svc-step.is-active .svc-step__line {
  transform: translateY(-2px);
  color: var(--ink);
}

@media (prefers-reduced-motion: reduce) {
  /* Instant, with no scaling or travel: the fill becomes a width, the rest is colour and opacity */
  .svc-step:first-child::before,
  .svc-flow__row.is-engaged .svc-step:first-child::before {
    transform: none;
    right: auto;
    transition: none;
  }

  .svc-step:first-child::before { width: 0; }

  .svc-flow__row.is-engaged .svc-step:first-child::before {
    width: calc(var(--to, 0) * 20%);
  }

  .js-svc .svc-flow__row.is-engaged .svc-step.is-active .svc-step__num,
  .js-svc .svc-flow__row.is-engaged .svc-step.is-active .svc-step__line {
    transform: none;
  }

  .svc-step__num,
  .js-svc .svc-flow__row.is-ready .svc-step__word,
  .js-svc .svc-flow__row.is-ready .svc-step__line,
  .js-svc .svc-flow__row.is-ready .svc-step__num::before,
  .js-svc .svc-flow__row.is-ready .svc-step__num::after {
    transition: none !important;
  }
}

/* Tablet: the lines wrap under their words, keep the nodes apart */
@media (max-width: 900px) {
  .svc-step a { padding: 0 4px; }
}


/* =========================================================
   8. ABOUT
   Everything below the hero reads one step larger; the hero
   stays at 1 so its type and the floating decor keep the
   proportions they were placed to.
   ========================================================= */
.about-statement,
.about-measure,
.industries,
.faq {
  --fs-scale: 1.1;
}

/* ---------- Hero floating decor ----------
   Image wells that drift over the hero photo. The script writes a transform
   on these every frame (idle drift, cursor push, scroll parallax), so
   nothing here may set transform. */
.about-hero__decor {
  position: absolute;
  z-index: 3;
  background-color: #d9d9d9;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 5px;
  overflow: hidden;
  will-change: transform;
}

/* Smaller wells, scattered round the text band but clear of it: the heading and tagline sit in the
   centre band, so nothing here may reach it (the drift and parallax are only
   a few dozen px). Sizes follow the viewport width, same 1.39 ratio. */
.about-hero__decor {
  aspect-ratio: 260 / 187;
}

.about-hero__decor--1 {
  left: 18%;
  top: 18%;
  width: clamp(100px, 10vw, 160px);
  background-image: url('../images/case-01-photo.jpg');
}

.about-hero__decor--2 {
  left: 22%;
  bottom: 10%;
  width: clamp(120px, 12vw, 190px);
  background-image: url('../images/case-02-photo.jpg');
}

.about-hero__decor--3 {
  right: 22%;
  bottom: 13%;
  width: clamp(90px, 8vw, 125px);
  background-image: url('../images/case-03-photo.jpg');
}

.about-hero__decor--4 {
  right: 12%;
  top: 24%;
  width: clamp(140px, 14vw, 225px);
  background-image: url('../images/hero-plant.jpg');
}

/* ---------- Statement (typewriter) ----------
   Every character is in the DOM from the start, just transparent, so the
   layout never shifts and the caret never chases a reflow. */
.about-statement {
  background: var(--ivory);
  padding: 100px var(--gutter);
}

.about-statement__inner {
  width: 100%;
  max-width: 1152px;
  margin: 0 auto;
}

/* Same width as the We Measure copy below, so the two share a left edge */
.about-statement p {
  color: #414141;
  max-width: 741px;
  margin: 0 auto;
}

.about-statement p.tw {
  position: relative;
}

/* The Solution page's team line runs the full content width, edge to edge
   with the sections around it */
.about-statement--wide p {
  max-width: none;
}

.about-statement .teal-text {
  color: var(--teal-mid);
}

/* Solutions: a petrol band, the heading and team line on the left, three
   figures on the right. It contrasts with the cream solution
   rows below, so the move from who we are to what we offer reads at a glance. */
.pqs-intro {
  background: var(--petrol);
  padding: 72px var(--gutter);
}

.pqs-intro__inner {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: center;
  gap: 48px 72px;
}

.pqs-intro h2 {
  --fs-scale: 1;
  color: var(--text-on-dark);
  text-wrap: balance;
  margin-bottom: 28px;
}

.about-statement.pqs-intro p {
  color: var(--text-on-dark);
}

/* On dark, the highlighted words use the light cyan and the caret follows */
.pqs-intro .accent,
.pqs-intro .teal-text {
  color: var(--cyan);
}

.pqs-intro .tw-caret {
  background: var(--cyan);
}

/* The figures: hairline-divided rows, figure left, label right */
.pqs-stats {
  --fs-scale: 1;
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid color-mix(in srgb, var(--text-on-dark) 18%, transparent);
}

.pqs-stats li {
  display: grid;
  grid-template-columns: clamp(112px, 12vw, 170px) minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--text-on-dark) 18%, transparent);
}

.pqs-stat__num {
  color: var(--cyan);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.pqs-stat__label {
  color: var(--text-on-dark);
  text-wrap: balance;
}

/* In-view reveal: armed by the script, so nothing is hidden without it */
.pqs-stats.is-armed li {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: calc(var(--i, 0) * 120ms);
}

.pqs-stats.is-armed.is-in li {
  opacity: 1;
  transform: none;
}

/* Between phone and laptop the figures run in a row under the paragraph */
@media (max-width: 1023px) {
  .pqs-intro__inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .pqs-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 0;
  }

  .pqs-stats li {
    display: block;
    padding: 20px 20px 0 0;
    border-bottom: 0;
    border-top: 1px solid color-mix(in srgb, var(--text-on-dark) 18%, transparent);
    margin-right: 20px;
  }

  .pqs-stats li:last-child {
    margin-right: 0;
  }

  .pqs-stat__label {
    display: block;
    margin-top: 8px;
  }
}

.tw-char {
  opacity: 0;
  transition: opacity 120ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.tw-char.is-in {
  opacity: 1;
}

/* Positioned rather than inline so it glides between characters. Its
   transition matches TW_STEP in script.js, or it falls behind the text. */
.tw-caret {
  position: absolute;
  left: 0;
  top: 0;
  width: 2px;
  height: 1em;
  background: var(--highlight, #039999);
  border-radius: 1px;
  transform: translate(0, 0);
  transition: transform 30ms linear;
  animation: tw-blink 0.7s linear infinite;
  pointer-events: none;
  will-change: transform;
}

/* Wrapping to a new line is a jump, not a glide */
.tw-caret.is-jump {
  transition: none;
}

@keyframes tw-blink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .tw-char {
    opacity: 1;
    transition: none;
  }

  .tw-caret {
    display: none;
  }
}

/* ---------- We Measure. / Solve. / Support. ----------
   The highlighted word's characters roll up out of the orange box while the
   next word rolls in. The section is armed by the script, so nothing is
   hidden if it never runs. */
.about-measure {
  background: var(--petrol);
  text-align: center;
  padding: 100px var(--gutter);
}

/* A flex row so the static word and the clipped rotating box line up on
   their bottom edge (an overflow:hidden box has no usable baseline). */
.about-measure h2 {
  color: #ffffff;
  margin-bottom: 30px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0.24em;
}

.about-measure p {
  color: #f4f4e9;
  letter-spacing: 0.1px;
  max-width: 741px;
  margin: 0 auto;
}

.measure-static {
  line-height: 1.2;
  padding-bottom: 2px;
}

.measure-highlight {
  position: relative;
  isolation: isolate;
  flex: 0 0 auto;
  display: inline-block;
  overflow: hidden;
  line-height: 1.2;
  background: var(--highlight, #039999);
  color: #ffffff;
  padding: 2px 16px;
  border-radius: 5px;
  white-space: nowrap;
  transition: width 0.32s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* The script staggers the characters with an inline transition-delay */
.rotate-char {
  display: inline-block;
  line-height: 1.2;
  opacity: 0;
  transform: translateY(115%);
  transition: transform 0.46s cubic-bezier(0.2, 0.9, 0.24, 1), opacity 0.26s ease;
}

.rotate-char.is-in {
  opacity: 1;
  transform: translateY(0);
}

.rotate-char.is-out {
  opacity: 0;
  transform: translateY(-120%);
  transition-duration: 0.36s, 0.22s;
}

/* Height is set by the script so the paragraph eases between lengths */
.about-measure__copy {
  overflow: hidden;
  transition: height 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.28s ease;
}

/* Entrance: fade up, then the orange box sweeps across like a highlighter */
.about-measure.is-armed h2,
.about-measure.is-armed .about-measure__copy {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1),
    height 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.about-measure.is-armed.is-visible h2,
.about-measure.is-armed.is-visible .about-measure__copy {
  opacity: 1;
  transform: translateY(0);
}

.about-measure.is-armed.is-visible .about-measure__copy {
  transition-delay: 0.18s;
}

.about-measure.is-armed .measure-highlight {
  background: transparent;
}

.about-measure.is-armed .measure-highlight::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--highlight, #039999);
  border-radius: 5px;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.65s cubic-bezier(0.65, 0, 0.35, 1);
}

.about-measure.is-armed.is-visible .measure-highlight::before {
  transform: scaleX(1);
  transition-delay: 0.35s;
}

/* Once rotating, the copy swaps on the faster rotation timing */
.about-measure.is-rotating .about-measure__copy {
  transition: opacity 0.34s ease, transform 0.34s cubic-bezier(0.2, 0.8, 0.2, 1),
    height 0.38s cubic-bezier(0.2, 0.8, 0.2, 1);
  transition-delay: 0s;
}

.about-measure.is-rotating .about-measure__copy.is-swapping {
  opacity: 0;
  transform: translateY(8px);
}

/* ---------- Industries We Serve ---------- */
.industries {
  background: var(--petrol);
  text-align: center;
  padding: 100px var(--gutter);
}

.industries h2 {
  color: #f4f4e9;
  margin-bottom: 12px;
}

.industries > p {
  color: #95c3c3;
  margin-bottom: 48px;
}

/* The tab row follows the primary tab style: a hairline under the row, the
   chosen tab marked by a 2px bar that sits on it. The script (initIndustryTabs)
   adds .is-ready; without it every category is simply shown in turn. */
.industry-tabs {
  max-width: 754px;
  margin: 0 auto;
}

.industry-tabs__list {
  display: none;
}

.industry-tabs.is-ready .industry-tabs__list {
  position: relative;
  display: flex;
  justify-content: center;
  justify-content: safe center;
  gap: 32px;
  border-bottom: 1px solid rgba(244, 244, 233, 0.22);
  overflow-x: auto;
  scrollbar-width: none;
}

.industry-tabs__list::-webkit-scrollbar {
  display: none;
}

.industry-tab {
  flex: none;
  position: relative;
  padding: 0 0 10px;
  background: none;
  border: 0;
  color: #95c3c3;
  font: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.4s ease;
}

/* The bar under the chosen tab: 1px wide, the script scales it to the tab and
   slides it, so only transform changes */
.industry-tabs__bar {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 1px;
  height: 2px;
  background: var(--teal);
  pointer-events: none;
  transform-origin: 0 0;
  transition: transform 0.5s cubic-bezier(0.65, 0, 0.35, 1);
}

.industry-tab:hover {
  color: #f4f4e9;
}

.industry-tab.is-active {
  color: #f4f4e9;
}

.industry-tab:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: -2px;
  border-radius: 2px;
}

.industry-tabs__panels {
  margin-top: 32px;
}

/* No-JS fallback: each category is a card of chips, one under the other */
.industry-panel {
  background: var(--ivory);
  border: 1px solid #2d5a5f;
  border-radius: 10px;
  padding: 36px 32px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
}

.industry-panel + .industry-panel {
  margin-top: 24px;
}

.industry-panel__title {
  color: var(--teal-deep);
  margin-bottom: 20px;
}

.industry-panel ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 0;
  padding: 0;
}

.industry-panel li {
  padding: 12px 22px;
  border: 1px solid #cdd6d1;
  border-radius: 999px;
  background: #ffffff;
  color: var(--ink);
}

/* With the script running, the cards give way to one table. Its hairlines
   are the grid's own gap showing through, so they stay right for any number
   of cells. The script lays the cells out on a six-column track (3 across, or
   2 across on a phone, the last row stretching to fill) and morphs between
   categories: the "+" hub turns, the text turns over, the cells glide. */
.industry-tabs.is-ready .industry-panel {
  display: none;
}

.industry-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  overflow: hidden;
  background: #cdd6d1;
  border: 1px solid #2d5a5f;
  border-radius: 10px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
}

.industry-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 111px;
  padding: 24px;
  background: var(--ivory);
  color: var(--ink);
  text-align: center;
  transform-origin: 0 0;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.industry-cell:hover {
  background: #ffffff;
  color: var(--teal-deep);
}

.industry-cell__text {
  display: inline-block;
}

/* The "+" markers where grid lines cross. The script writes --px/--py (their
   position), --ps (1, or 0 when merged away) and --pr (a half turn more on
   every switch); the transition makes them drift and spin. */
.industry-plus {
  --px: 50%;
  --py: 50%;
  --ps: 0;
  --pr: 0deg;
  position: absolute;
  left: var(--px);
  top: var(--py);
  z-index: 2;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--ivory);
  pointer-events: none;
  transform: translate(-50%, -50%) rotate(var(--pr)) scale(var(--ps));
  transition: left 1.1s cubic-bezier(0.65, 0, 0.35, 1),
    top 1.1s cubic-bezier(0.65, 0, 0.35, 1),
    transform 1.1s cubic-bezier(0.65, 0, 0.35, 1);
}

.industry-plus::before,
.industry-plus::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 2px;
  margin: -1px 0 0 -5px;
  border-radius: 1px;
  background: var(--orange);
}

.industry-plus::after {
  transform: rotate(90deg);
}

@media (prefers-reduced-motion: reduce) {
  .industry-tab,
  .industry-tabs__bar,
  .industry-cell,
  .industry-plus {
    transition: none;
  }
}

/* ---------- FAQ ----------
   The script (initFaq) keeps one question open at a time. Each answer sits in
   a one-row grid that eases from 0fr to 1fr while the plus turns; the answer
   also fades in. With no script every answer simply shows. */
.faq {
  background: var(--ivory);
  padding: 45px var(--gutter) 72px;
}

.faq__inner {
  max-width: 1152px;
  margin: 0 auto;
  display: flex;
  gap: 64px;
  flex-wrap: wrap;
}

.faq__header {
  flex: 1 1 300px;
  max-width: 393px;
}

.faq__header h2 {
  color: #221c1c;
  margin-bottom: 15px;
}

.faq__header p {
  color: #5c5c5c;
}

.faq__list {
  flex: 2 1 500px;
  border-top: 1px solid #ffffff;
}

.faq__item {
  border-bottom: 1px solid #ffffff;
}

.faq__q {
  margin: 0;
}

.faq__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 20px 0;
  background: none;
  border: 0;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.faq__trigger:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
  border-radius: 4px;
}

.faq__num {
  color: #94a3b8;
  margin-right: 16px;
}

.faq__question {
  color: #221c1c;
  flex: 1;
}

/* A plus drawn from two bars; a quarter turn on open lines it up as a cross */
.faq__plus {
  position: relative;
  flex: none;
  width: 20px;
  height: 20px;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.faq__plus::before,
.faq__plus::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 2px;
  margin: -1px 0 0 -7px;
  border-radius: 1px;
  background: var(--teal-deep);
}

.faq__plus::after {
  transform: rotate(90deg);
}

.faq__item.is-open .faq__plus {
  transform: rotate(135deg);
}

.faq__panel-inner {
  min-width: 0;
}

.faq__answer {
  padding: 0 0 20px 46px;
  color: #475569;
  max-width: 604px;
}

/* Inline links in the answers: the same teal as the legal pages */
.faq__answer a {
  color: var(--teal-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.faq.is-ready .faq__panel {
  display: grid;
  grid-template-rows: 0fr;
  visibility: hidden;
  transition: grid-template-rows 0.42s cubic-bezier(0.22, 0.61, 0.36, 1),
    visibility 0s linear 0.42s;
}

.faq.is-ready .faq__panel-inner {
  overflow: hidden;
}

.faq.is-ready .faq__answer {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.faq.is-ready .faq__item.is-open .faq__panel {
  grid-template-rows: 1fr;
  visibility: visible;
  transition: grid-template-rows 0.42s cubic-bezier(0.22, 0.61, 0.36, 1),
    visibility 0s;
}

.faq.is-ready .faq__item.is-open .faq__answer {
  opacity: 1;
  transform: none;
  transition-delay: 0.1s;
}

@media (prefers-reduced-motion: reduce) {
  .faq__plus,
  .faq.is-ready .faq__panel,
  .faq.is-ready .faq__answer {
    transition: none !important;
  }

  .faq.is-ready .faq__answer {
    transform: none;
  }
}

@media (max-width: 900px) {
  .about-hero__decor {
    display: none;
  }

  .about-statement {
    padding: var(--section-pad-y) var(--gutter);
  }
}

@media (max-width: 560px) {
  .industries > p {
    margin-bottom: 32px;
  }

  .industry-tabs.is-ready .industry-tabs__list {
    justify-content: flex-start;
    gap: 24px;
  }

  .industry-panel {
    padding: 28px 16px;
  }

  .industry-cell {
    min-height: 88px;
    padding: 16px 10px;
  }
}


/* =========================================================
   9. YANQ
   ========================================================= */
.yanq-hero {
  background: var(--petrol-bright);
  position: relative;
  overflow: hidden;
  padding: var(--section-pad-y) var(--gutter);
}

.yanq-hero__inner {
  max-width: 1152px;
  margin: 0 auto;
}

.yanq-hero__watermark {
  position: absolute;
  right: -40px;
  top: 50%;
  transform: translateY(-50%);
  width: 300px;
  height: auto;
  opacity: 0.5;
  pointer-events: none;
}

/* Type and spacing mirror the Home diagnosis section: an H2-sized orange
   eyebrow sitting straight on a display heading. */
.yanq-hero__content {
  position: relative;
  z-index: 1;
  max-width: 768px;
}

.yanq-hero__label {
  color: var(--cyan);
}

.yanq-hero h2 .accent {
  color: var(--cyan);
}

/* The page hero leads with the YanQ name itself, then the promise under it */
.yanq-hero-intro h1 .accent {
  color: var(--cyan);
}

/* The subline sits softer than pure white */
.yanq-hero-intro .header-placeholder__overlay p {
  color: rgba(255, 255, 255, 0.86);
}

.yanq-hero h2 {
  color: #f4f4e9;
  margin-bottom: 24px;
}

.yanq-hero__body {
  color: #c5d9d0;
  max-width: 672px;
  margin-bottom: 40px;
}

/* ---------- How YanQ Works ----------
   A plain petrol section: heading, one lead line, then an <ol> of four boxes
   joined by arrows. Each box holds a process drawing (the supplied SVGs, see
   .yanq-diagram below). Written finished: with no JS, or under reduced
   motion, every drawing and arrow shows as it ends. initYanqWorks adds
   .is-armed to hide the parts it will play once, as the row scrolls into
   view; it only ever touches opacity, transform and stroke-dashoffset, so
   nothing moves the layout. Phones are in css/m/yanq.css. */
.yanq-works {
  --works-title: #989898;
  background: var(--petrol);
  padding: var(--section-pad-y) var(--gutter);
}

.yanq-works__inner {
  max-width: 1152px;
  margin: 0 auto;
}

.yanq-works h2 {
  color: var(--works-title);
  margin-bottom: 16px;
}

.yanq-works__lead {
  color: var(--text-on-dark);
  max-width: 896px;
  margin-bottom: 56px;
}

.yanq-q {
  color: var(--cyan);
}

/* Four boxes and the arrows between them. The arrow sits inside its box
   (absolutely placed in the column gap), so the <ol> holds only <li>s and
   the arrow is always centred on its own box. */
.yanq-works__row {
  --works-gap: 40px;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--works-gap);
}

.yanq-step {
  --yanq-anim-surface: color-mix(in srgb, var(--petrol) 94%, #ffffff);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  padding: 20px 18px 24px;
  color: var(--text-on-dark);
  background: var(--yanq-anim-surface);
  border: 1px solid rgba(188, 201, 199, 0.3);
  border-radius: 8px;
}

.yanq-step__num {
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--mist);
  border-bottom: 1px solid rgba(188, 201, 199, 0.5);
  padding-bottom: 3px;
  margin-bottom: 18px;
}

/* The drawing's space is reserved by the box ratio, so nothing shifts when
   it plays. The SVGs keep their viewBox and letterbox inside it. */
.yanq-step__art {
  position: relative;
  width: 100%;
  aspect-ratio: 5 / 4;
  margin-bottom: 18px;
}

.yanq-step__art > svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.yanq-step h3 {
  color: var(--text-on-dark);
  margin-bottom: 6px;
}

.yanq-step__tag {
  color: #c5d9d0;
}

/* The standard's name never breaks across lines */
.yanq-step__tag .nb,
.yanq-expect__list .nb {
  white-space: nowrap;
}

/* The tablet elbow after box 2 exists only in the 2x2 layout */
.yanq-elbow {
  display: none;
}

/* Arrow: a thin line and head, orange, the drawings' stroke weight */
.yanq-arrow {
  position: absolute;
  top: 50%;
  left: calc(100% + 4px);
  width: calc(var(--works-gap) - 8px);
  height: 16px;
  margin-top: -8px;
  overflow: visible;
  color: var(--orange);
  pointer-events: none;
}

/* The play: hidden only while armed, then each box fades in and rises 16px */
.yanq-works.is-armed .yanq-step {
  opacity: 0;
  transform: translateY(16px);
}

.yanq-works.is-armed .yanq-step.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* The supplied process diagrams, recoloured for petrol. Linework is
   currentColor (the box's light text colour); these pick out the rest.
   The Home symptom drawings (.sym-art, section 6) share the same three
   classes, so both sets are drawn in one hand. */
.yanq-diagram .yd-clean,
.sym-art .yd-clean {
  color: var(--teal);          /* the clean, measured signal */
}

.yanq-diagram .yd-raw,
.sym-art .yd-raw {
  color: var(--orange);        /* raw, noisy, distorted input */
}

.yanq-diagram .yd-guide,
.sym-art .yd-guide {
  stroke: var(--mist);         /* dashed guides and card text lines */
  stroke-opacity: 0.55;
}

.yanq-diagram .yd-surface {
  fill: var(--yanq-anim-surface);
}

/* Narrow laptops: the same row, tighter. The longest step name still fits
   its box (Recommendations is about 180px at full size, so a 1280 box with 36px of padding is tight). */
@media (min-width: 1024px) and (max-width: 1319px) {
  .yanq-works__row {
    --works-gap: 32px;
  }

  .yanq-step {
    padding: 18px 14px 22px;
  }

  .yanq-step h3 {
    --fs-scale: 0.8;
  }
}

/* Tablets: two by two. The arrow after box 1 points right; the arrow after
   box 2 points down, through the row gap; box 3's points right again. */
@media (min-width: 769px) and (max-width: 1023px) {
  .yanq-works__row {
    --works-rgap: 56px; /* the elbow's pieces assume 56 */
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: var(--works-rgap);
  }

  /* Box 2 hands over to box 3, which sits at the start of the next row:
     an elbow in the row gap (down, across to box 3's column, down), so no
     arrow crosses a box. Three SVG pieces share the one draw. */
  .yanq-step:nth-child(2) > .yanq-arrow {
    display: none;
  }

  .yanq-elbow {
    display: block;
    position: absolute;
    inset: 0;
    color: var(--orange);
    pointer-events: none;
  }

  .yanq-elbow svg {
    position: absolute;
    overflow: visible;
  }

  .yanq-elbow__down {
    top: 100%;
    left: calc(50% - 2px);
    width: 4px;
    height: 28px;
  }

  .yanq-elbow__across {
    top: calc(100% + 26px);
    left: calc(-1 * (var(--works-gap) + 50%));
    width: calc(100% + var(--works-gap));
    height: 4px;
  }

  .yanq-elbow__in {
    top: calc(100% + 28px);
    left: calc(-1 * (var(--works-gap) + 50%) - 7px);
    width: 14px;
    height: 24px;
  }
}

/* ---------- What YanQ Delivers ---------- */
.yanq-delivers {
  --deliver-card: clamp(112px, 9vw, 160px);
  --deliver-col-gap: clamp(56px, 5vw, 88px);
  background: var(--cream);
  padding: 100px var(--gutter);
}

.yanq-delivers h2 {
  width: 100%;
  max-width: 1152px;
  margin: 0 auto 60px;
  color: var(--ink);
}

/* Two columns; a hairline divides each row, centred on it and short of
   its full height */
.yanq-delivers__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(40px, 6.5vh, 64px) var(--deliver-col-gap);
  max-width: 1152px;
  margin: 0 auto;
}

/* An item: icon card, then number, bar, title and copy */
.deliver-stat {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(24px, 2.5vw, 48px);
}

.deliver-stat:nth-child(odd)::after {
  content: "";
  position: absolute;
  top: 15%;
  bottom: 15%;
  right: calc(var(--deliver-col-gap) / -2);
  width: 1px;
  background: rgba(188, 201, 199, 0.6);
}

.deliver-stat__icon {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--deliver-card);
  aspect-ratio: 1;
  padding: calc(var(--deliver-card) * 0.1);
  background: var(--ivory-card);
  border: 1px solid rgba(188, 201, 199, 0.55);
  border-radius: 8px;
}

.deliver-stat__icon img {
  width: 100%;
  height: auto;
}

.deliver-stat__text {
  min-width: 0;
}

.deliver-stat__num {
  display: block;
  color: var(--text);
  letter-spacing: 0.5px;
}

/* The short teal bar under the number */
.deliver-stat__num::after {
  content: "";
  display: block;
  width: 36px;
  height: 2px;
  margin: 8px 0 16px;
  background: #008484;
}

.deliver-stat h3 {
  color: var(--teal-deep);
  margin-bottom: 10px;
}

.deliver-stat p {
  color: var(--text);
}

/* ---------- What to expect ----------
   A compact row between How YanQ Works and What YanQ Delivers: a small label
   and four short items, each under a hairline. */
.yanq-expect {
  background: var(--ivory);
  padding: 64px var(--gutter);
}

.yanq-expect__inner {
  max-width: 1152px;
  margin: 0 auto;
}

.yanq-expect__label {
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--teal-deep);
  margin-bottom: 28px;
}

.yanq-expect__list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
}

.yanq-expect__list li {
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.yanq-expect__title {
  color: var(--petrol);
  margin-bottom: 6px;
}

.yanq-expect__list p {
  color: var(--text);
  text-wrap: pretty;
}

/* Narrower laptops: a tighter gap so the longest title stays on one line */
@media (min-width: 1024px) and (max-width: 1199px) {
  .yanq-expect__inner {
    margin: 0 -32px;
  }

  .yanq-expect__list {
    gap: 24px;
  }
}

/* Tablet: two by two */
@media (max-width: 1023px) {
  .yanq-expect__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 40px;
  }
}

@media (max-width: 900px) {
  .yanq-hero {
    padding: var(--section-pad-y) var(--gutter);
  }

  .yanq-hero__watermark {
    display: none;
  }

  .yanq-works,
  .yanq-delivers {
    padding: var(--section-pad-y) var(--gutter);
  }

  .yanq-works h2,
  .yanq-delivers h2 {
    margin-bottom: 36px;
  }
}

/* Phones: one column, the card beside its text, no dividers; on the very
   narrowest screens the card sits above the text */
@media (max-width: 768px) {
  .yanq-delivers {
    --deliver-card: 104px;
  }

  .yanq-delivers__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .deliver-stat {
    align-items: flex-start;
    gap: 20px;
  }

  .deliver-stat:nth-child(odd)::after {
    display: none;
  }
}

@media (max-width: 340px) {
  .deliver-stat {
    flex-direction: column;
    gap: 16px;
  }
}


/* =========================================================
   10. CONTACT
   ========================================================= */
.contact-body {
  background: var(--cream);
  padding: 80px var(--gutter);
}

.contact-body__inner {
  max-width: 1152px;
  margin: 0 auto;
  display: flex;
  gap: 80px;
  align-items: stretch;
  flex-wrap: wrap;
}

.contact-map {
  position: relative;
  flex: 1 1 400px;
  min-height: 500px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

/* Live Google Map of the Manesar office; the pill opens it in Maps */
.contact-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  border: 0;
}

.contact-map__open {
  position: absolute;
  left: 16px;
  bottom: 16px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--petrol);
  color: var(--text-on-dark);
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(4, 25, 23, 0.25);
}

.contact-map__open:hover,
.contact-map__open:focus-visible {
  background: var(--teal-deep);
}

.contact-form-col {
  flex: 1 1 400px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-form-col h2 {
  color: #00423f;
  margin-bottom: 8px;
}

.contact-form-col__sub {
  color: var(--text);
  margin-bottom: 40px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-form .btn {
  align-self: flex-start;
  padding: 12px 48px;
  font-weight: bold;
  letter-spacing: 0.7px;
  margin-top: 8px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.form-field label {
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text);
}

.form-field input,
.form-field textarea,
.form-field select {
  background: #ffffff;
  border: 1px solid var(--mist);
  border-radius: 8px;
  padding: 16px 13px;
  font-family: inherit;
  color: #151515;
}

/* The select looks like the inputs; the native arrow gives way to a chevron
   drawn in the site's petrol (same shape as the nav chevron: a turned corner) */
.form-select {
  position: relative;
}

.form-field select {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  padding-right: 44px;
  cursor: pointer;
  text-overflow: ellipsis;
}

/* While nothing is chosen the select reads like the placeholders above it */
.form-field select:has(option[value=""]:checked) {
  color: var(--line);
}

.form-field select option {
  color: #151515;
}

.form-select::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 1.5px solid var(--petrol);
  border-bottom: 1.5px solid var(--petrol);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

.form-field textarea {
  resize: vertical;
  min-height: 120px;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--line);
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--teal);
}

@media (max-width: 900px) {
  .contact-body__inner {
    flex-direction: column;
  }

  .contact-map {
    min-height: 320px;
  }
}


/* ---------- Legal pages (Terms of Use, Privacy Policy) ----------
   One readable column; Terms copy is yansa.in's, word for word */
.legal {
  background: var(--cream);
  padding: calc(var(--nav-height) + 72px) var(--gutter) 112px;
}

.legal__inner {
  max-width: 760px;
  margin: 0 auto;
  color: var(--text);
}

.legal h1 {
  color: var(--ink);
  margin-bottom: 8px;
}

.legal__updated {
  color: var(--teal-deep);
  margin-bottom: 40px;
}

.legal h2 {
  color: var(--ink);
  margin: 40px 0 12px;
}

.legal p,
.legal li {
  margin-bottom: 12px;
  line-height: 1.65;
}

.legal ul {
  padding-left: 22px;
  margin-bottom: 12px;
}

.legal a {
  color: var(--teal-deep);
}

/* =========================================================
   11. FOOTER
   ========================================================= */
.footer {
  background: var(--petrol);
  color: var(--text-on-dark);
}

.footer__cta {
  text-align: center;
  padding: 64px 16px 32px;
  max-width: min(1040px, 94vw);
  margin: 0 auto;
}

/* Fixed box, so the heading never shifts when the script swaps the static
   mark for the animated one. */
.footer__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer__icon img,
.footer__icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.footer__cta h2 {
  margin-bottom: 6px;
}

.footer__cta p {
  color: var(--mist);
  margin-bottom: 20px;
}

.footer__buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.footer__buttons .btn {
  padding: 13px 24px;
  letter-spacing: 0.5px;
}

.footer__bottom {
  max-width: 1152px;
  margin: 0 auto;
  padding: 32px 24px 40px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  flex-wrap: wrap;
}

.footer__brand {
  max-width: 384px;
}

.footer__logo {
  display: block;
  width: fit-content;
  border-radius: 4px;
}

.footer__brand img {
  height: 32px;
  width: auto;
  margin-bottom: 20px;
  filter: brightness(0) invert(1);
}

.footer__brand p {
  color: var(--mist);
  margin-bottom: 16px;
}

.footer__socials {
  display: flex;
  gap: 19px;
  align-items: center;
}

.footer__socials a {
  display: inline-flex;
  padding: 4px;
  margin: -4px;
  border-radius: 6px;
}

.footer__socials a:hover img,
.footer__socials a:focus-visible img {
  opacity: 1;
}

.footer__socials img {
  height: 17px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.footer__links {
  display: flex;
  gap: 96px;
  flex-wrap: wrap;
}

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

/* A small muted label over each group of links */
.footer__label {
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--mist);
  opacity: 0.6;
  margin-bottom: 4px;
}

.footer__col a {
  color: var(--mist);
}

/* The quiet legal row under the brand and the links */
.footer__legal {
  flex: 0 0 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 32px;
  margin-top: -20px;
  padding-top: 18px;
  border-top: 1px solid rgba(169, 209, 215, 0.18);
  color: var(--mist);
}

.footer__legal small {
  opacity: 0.7;
}

.footer__legal-links {
  display: flex;
  gap: 8px 28px;
  flex-wrap: wrap;
}

.footer__legal-links a {
  color: var(--mist);
  opacity: 0.85;
  transition: opacity 0.25s ease, color 0.25s ease;
}

.footer__legal-links a:hover,
.footer__legal-links a:focus-visible {
  opacity: 1;
  color: var(--text-on-dark);
}

@media (max-width: 900px) {
  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Small tablets: the divider and the legal row run the full content width */
@media (min-width: 769px) and (max-width: 900px) {
  .footer__legal {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .footer__cta {
    padding: 48px var(--gutter) 24px;
  }

  .footer__bottom {
    padding: 24px var(--gutter) 40px;
    gap: 32px;
  }

  .footer__links {
    gap: 48px;
  }
}


/* =========================================================
   12. DIALOGS & FORMS
   ========================================================= */

/* ---------- Solution dialog: the card grows into the panel ----------
   The panel is fixed-positioned and its top/left/width/height are animated
   from the card's rect to the resting rect. Geometry rather than a scale
   transform, so nothing inside is ever distorted. */
.sol-dialog {
  position: fixed;
  inset: 0;
  z-index: 200;
}

.sol-dialog__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 26, 28, 0.62);
  opacity: 0;
  transition: opacity 0.42s ease;
}

.sol-dialog.is-open .sol-dialog__backdrop {
  opacity: 1;
}

.sol-dialog__panel {
  position: absolute;
  background: #1c1c1c;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.45);
  transition: top 0.52s cubic-bezier(0.4, 0, 0.2, 1),
    left 0.52s cubic-bezier(0.4, 0, 0.2, 1),
    width 0.52s cubic-bezier(0.4, 0, 0.2, 1),
    height 0.52s cubic-bezier(0.4, 0, 0.2, 1),
    border-radius 0.52s ease;
}

/* The frame is placed before the transition is armed */
.sol-dialog.is-seeding .sol-dialog__panel {
  transition: none;
}

/* flex rather than height:100% so the panel can be measured at height:auto.
   The script pins its width to the resting width for the whole morph, so the
   copy is laid out once instead of re-wrapping every frame. */
.sol-dialog__scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

/* Fixed height: a percentage would collapse during the measuring pass */
.sol-dialog__media {
  position: relative;
  width: 100%;
  height: 340px;
  background: #ffffff;
  flex-shrink: 0;
  overflow: hidden;
}

/* The whole product shows, never cropped: the yansa.in photos are cut-outs
   and screen captures that lose their meaning when zoomed */
.sol-dialog__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 20px;
}

.sol-dialog__media:empty {
  display: none;
}

/* Everything but the frame fades in a beat after the move starts */
.sol-dialog__content {
  padding: 32px 36px 40px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.sol-dialog.is-open .sol-dialog__content {
  opacity: 1;
  transform: none;
  transition-delay: 0.18s;
}

.sol-dialog__title {
  color: var(--text-on-dark);
  margin-bottom: 16px;
}

.sol-dialog__body {
  color: #a9a9a2;
  max-width: 62ch;
}

.sol-dialog__body p + p {
  margin-top: 14px;
}

.sol-dialog__body strong {
  color: var(--text-on-dark);
  font-weight: 400;
}

.sol-dialog__close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(20, 20, 20, 0.72);
  color: var(--text-on-dark);
  font: inherit;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  opacity: 0;
  transition: opacity 0.3s ease, background-color 0.2s ease;
}

.sol-dialog.is-open .sol-dialog__close {
  opacity: 1;
  transition-delay: 0.18s;
}

.sol-dialog__close:hover {
  background: rgba(40, 40, 40, 0.9);
}

.sol-dialog__close:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

/* Light skin for the Results rows */
.sol-dialog__panel--doc {
  background: var(--cream);
}

.sol-dialog__panel--doc .sol-dialog__title {
  color: var(--ink);
}

.sol-dialog__panel--doc .sol-dialog__body {
  color: var(--text);
}

.sol-dialog__panel--doc .sol-dialog__body strong {
  color: var(--ink);
}

.sol-dialog__panel--doc .sol-dialog__close {
  background: rgba(26, 65, 70, 0.12);
  color: var(--ink);
}

.sol-dialog__panel--doc .sol-dialog__close:hover {
  background: rgba(26, 65, 70, 0.2);
}

/* Scroll is locked while a dialog is open; the scrollbar's width is handed
   back as padding (measured by the script) so the page does not shift. */
body.sol-dialog-open {
  overflow: hidden;
  padding-right: var(--sol-scrollbar, 0px);
}

@media (prefers-reduced-motion: reduce) {
  .sol-dialog__panel,
  .sol-dialog__content,
  .sol-dialog__backdrop,
  .sol-dialog__close {
    transition-duration: 0.01s;
    transform: none;
  }
}

@media (max-width: 820px) {
  .sol-dialog__content {
    padding: 24px 22px 32px;
  }

  .sol-dialog__media {
    height: 200px;
  }
}

/* ---------- Brochure dialog ---------- */
.brochure-dialog {
  position: fixed;
  inset: 0;
  margin: auto;
  height: fit-content;
  max-height: calc(100% - 32px);
  width: min(360px, calc(100% - 32px));
  padding: 28px 24px 24px;
  border: 0;
  border-radius: 10px;
  background: var(--ivory);
  box-shadow: 0 20px 50px rgba(4, 25, 23, 0.35);
}

.brochure-dialog::backdrop {
  background: rgba(4, 25, 23, 0.55);
}

.brochure-dialog h2 {
  color: var(--teal-deep);
  font-size: 22px;
  line-height: 1.2;
  margin: 0 0 4px;
}

.brochure-dialog__close {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 32px;
  height: 32px;
  border: 0;
  background: none;
  font-size: 24px;
  line-height: 1;
  color: var(--text);
  cursor: pointer;
  border-radius: 50%;
}

.brochure-dialog__close:hover,
.brochure-dialog__close:focus-visible {
  background: rgba(0, 106, 101, 0.1);
  outline: none;
}

.brochure-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.brochure-form input {
  background: #ffffff;
  border: 1px solid var(--mist);
  border-radius: 8px;
  padding: 11px 12px;
  font-family: inherit;
  font-size: 15px;
  color: #151515;
}

.brochure-form input::placeholder {
  color: #8a9a98;
}

.brochure-form input:focus {
  outline: none;
  border-color: var(--teal);
}

.brochure-form .btn {
  padding: 12px 24px;
  font-weight: bold;
  margin-top: 6px;
}

.brochure-thanks p {
  color: #5c5c5c;
  margin: 8px 0 0;
}

/* iOS zooms the page into any field under 16px */
@media (max-width: 560px) {
  .brochure-form input {
    font-size: 16px;
  }
}

/* ---------- Form feedback (contact + brochure) ---------- */
.form-status {
  margin: 0;
  color: var(--teal-deep);
}

.form-status:empty {
  display: none;
}

.form-status--error {
  color: #b3261e;
}

.contact-form .btn:disabled,
.brochure-form .btn:disabled {
  opacity: 0.6;
  cursor: wait;
}

/* Bot trap: off-screen rather than display:none so naive bots still fill it */
.form-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}


/* =========================================================
   13. MOTION
   ========================================================= */

/* ---------- Scroll reveal ----------
   Elements start a little low and transparent and ease into place the first
   time they reach the viewport. Nothing applies until the script adds
   .js-reveal to <html>, and it strips data-reveal once an element has
   arrived so the element's own hover transforms take over again. */
.js-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(var(--reveal-shift, 24px));
  transition: opacity var(--reveal-dur, 0.7s) cubic-bezier(0.22, 0.61, 0.36, 1),
    transform var(--reveal-dur, 0.7s) cubic-bezier(0.22, 0.61, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

/* For elements whose transform belongs to another script */
.js-reveal [data-reveal="fade"] {
  transform: none;
}

.js-reveal [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .js-reveal [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- Problem card icons: draw-in ----------
   The icons rest fully drawn. On wider screens each card draws its icon once
   as it comes into view, and again on hover (initProblemCards sets and
   restarts [data-play]). On phones the card in view draws its icon
   (css/m/loads.css keys these keyframes to it). The dash length is 1 against
   pathLength 1, so a path at rest is solid. */
@media (prefers-reduced-motion: no-preference) {
  @keyframes pqDraw    { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
  @keyframes pqPopIn   { from { opacity: 0; transform: scale(0.4); } to { opacity: 1; transform: scale(1); } }
  @keyframes pqExtend  { from { transform: scale(0); } to { transform: scale(1); } }
  @keyframes pqFadeIn  { from { opacity: 0; } to { opacity: 1; } }
  @keyframes pqStretch { from { transform: scaleX(0); } to { transform: scaleX(1); } }
  @keyframes pqSwingUp { from { transform: rotate(0deg); } to { transform: rotate(-38.9deg); } }

  .problem-card__icon .anim-draw-wave,
  .problem-card__icon .anim-dial,
  .problem-card__icon .anim-pf-arc {
    stroke-dasharray: 1;
  }
}

@media (min-width: 769px) and (prefers-reduced-motion: no-preference) {
  .problem-card[data-play] .anim-draw-wave { animation: pqDraw 1.6s cubic-bezier(0.35, 0, 0.5, 1) both; }

  .problem-card[data-play] .anim-dial   { animation: pqDraw 1.2s cubic-bezier(0.4, 0, 0.55, 1) both; }
  .problem-card[data-play] .anim-band   { animation: pqFadeIn 0.3s ease-out 1.05s both; }
  .problem-card[data-play] .anim-tick   { animation: pqPopIn 0.25s cubic-bezier(0.3, 1.5, 0.6, 1) both; }
  .problem-card[data-play] .anim-tick-1 { animation-delay: 0.08s; }
  .problem-card[data-play] .anim-tick-2 { animation-delay: 0.34s; }
  .problem-card[data-play] .anim-tick-3 { animation-delay: 0.6s; }
  .problem-card[data-play] .anim-tick-4 { animation-delay: 0.86s; }
  .problem-card[data-play] .anim-tick-5 { animation-delay: 1.1s; }
  .problem-card[data-play] .anim-hub    { animation: pqPopIn 0.3s cubic-bezier(0.3, 1.5, 0.6, 1) both; }
  .problem-card[data-play] .anim-needle { animation: pqExtend 1s cubic-bezier(0.25, 1.15, 0.4, 1) 0.15s both; }

  .problem-card[data-play] .anim-origin { animation: pqPopIn 0.3s cubic-bezier(0.3, 1.5, 0.6, 1) both; }
  .problem-card[data-play] .anim-h      { animation: pqStretch 0.55s cubic-bezier(0.3, 0, 0.4, 1) 0.1s both; }
  .problem-card[data-play] .anim-h-head { animation: pqFadeIn 0.2s ease-out 0.6s both; }
  .problem-card[data-play] .anim-swing  { animation: pqSwingUp 0.5s cubic-bezier(0.35, 0, 0.3, 1.1) 0.7s both; }
  .problem-card[data-play] .anim-d-head { animation: pqFadeIn 0.2s ease-out 1.15s both; }
  .problem-card[data-play] .anim-pf-arc { animation: pqDraw 0.4s ease-out 1.1s both; }
  .problem-card[data-play] .anim-phi    { animation: pqPopIn 0.3s cubic-bezier(0.3, 1.5, 0.6, 1) 1.3s both; }
}

/* ---------- Load drawings: hover and pick ----------
   Each drawing plays a short one-shot animation while its tile is hovered,
   and again on each pick in the load explorer (.is-play), then returns to
   its exact resting state. data-anim sits on the tile, since the small icon
   alone would be a poor hover target. */
@media (prefers-reduced-motion: no-preference) {
  /* Variable Frequency Drives */
  @keyframes vfdTravel {
    from { transform: translateX(0); }
    to   { transform: translateX(-78px); }
  }

  @keyframes vfdBar {
    0%, 100% { transform: scaleY(1); }
    45%, 55% { transform: scaleY(1.1); }
  }

  [data-anim="vfd"]:hover .anim-wave,
  [data-anim="vfd"].is-play .anim-wave {
    animation: vfdTravel 0.9s cubic-bezier(0.4, 0, 0.6, 1);
  }

  [data-anim="vfd"]:hover .anim-bar,
  [data-anim="vfd"].is-play .anim-bar {
    animation: vfdBar 0.9s ease-in-out;
    transform-box: fill-box;
    transform-origin: center;
  }

  [data-anim="vfd"]:hover .anim-bar-b,
  [data-anim="vfd"].is-play .anim-bar-b { animation-delay: 0.08s; }
  [data-anim="vfd"]:hover .anim-bar-c,
  [data-anim="vfd"].is-play .anim-bar-c { animation-delay: 0.16s; }

  /* Switched Mode Power Supplies */
  @keyframes smpsJoin {
    0%, 100% { stroke-width: 16px; }
    45%, 55% { stroke-width: 0px; }
  }

  @keyframes smpsPin {
    0%, 100% { transform: translateX(0); opacity: 1; }
    50%      { transform: translateX(9px); opacity: 0.5; }
  }

  @keyframes smpsBody {
    0%, 100% { transform: scale(1); }
    45%, 55% { transform: scale(1.04); }
  }

  [data-anim="smps"]:hover .anim-gap,
  [data-anim="smps"].is-play .anim-gap {
    animation: smpsJoin 0.9s ease-in-out;
  }

  [data-anim="smps"]:hover .anim-pin,
  [data-anim="smps"].is-play .anim-pin {
    animation: smpsPin 0.9s ease-in-out;
  }

  [data-anim="smps"]:hover .anim-pin-b,
  [data-anim="smps"].is-play .anim-pin-b { animation-delay: 0.1s; }

  [data-anim="smps"]:hover .anim-body,
  [data-anim="smps"].is-play .anim-body {
    animation: smpsBody 0.9s ease-in-out;
    transform-box: fill-box;
    transform-origin: center;
  }

  /* Paint Shops */
  @keyframes paintSpray {
    0%   { transform: translateX(0); opacity: 0.85; }
    55%  { opacity: 1; }
    100% { transform: translateX(14px); opacity: 0; }
  }

  @keyframes paintRecoil {
    0%, 100% { transform: translateX(0); }
    45%, 55% { transform: translateX(-5px); }
  }

  @keyframes paintNozzle {
    0%, 100% { transform: scale(1); opacity: 1; }
    45%, 55% { transform: scaleX(1.25); opacity: 0.6; }
  }

  [data-anim="paint"]:hover .anim-p,
  [data-anim="paint"].is-play .anim-p {
    animation: paintSpray 0.9s ease-out;
  }

  [data-anim="paint"]:hover .anim-p2,
  [data-anim="paint"].is-play .anim-p2 { animation-delay: 0.08s; }
  [data-anim="paint"]:hover .anim-p3,
  [data-anim="paint"].is-play .anim-p3 { animation-delay: 0.16s; }

  [data-anim="paint"]:hover .anim-gun,
  [data-anim="paint"].is-play .anim-gun {
    animation: paintRecoil 0.9s ease-in-out;
  }

  [data-anim="paint"]:hover .anim-nozzle,
  [data-anim="paint"].is-play .anim-nozzle {
    animation: paintNozzle 0.9s ease-in-out;
    transform-box: fill-box;
    transform-origin: left center;
  }

  /* Heavy Switching Loads. The stroke scales with the artwork on purpose:
     non-scaling-stroke at this 0.3x render size filled the icon solid. */
  @keyframes heavyAmp {
    0%, 100% { transform: scaleY(1); }
    35%      { transform: scaleY(1.2); }
    70%      { transform: scaleY(0.84); }
  }

  @keyframes heavyBolt {
    0%, 100% { transform: scale(1); opacity: 1; }
    30%      { transform: scale(1.12); opacity: 0.55; }
    60%      { transform: scale(0.94); opacity: 1; }
  }

  [data-anim="heavy"]:hover .anim-square,
  [data-anim="heavy"].is-play .anim-square {
    animation: heavyAmp 0.9s ease-in-out;
    transform-origin: 0px 90px;
  }

  [data-anim="heavy"]:hover .anim-bolt,
  [data-anim="heavy"].is-play .anim-bolt {
    animation: heavyBolt 0.9s ease-in-out;
    transform-box: fill-box;
    transform-origin: center;
  }

  /* Arc Furnaces */
  @keyframes arcLift {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-10px); }
  }

  @keyframes arcDip {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(4px); }
  }

  @keyframes arcSpark {
    0%, 100% { opacity: 0.25; transform: scale(0.85); }
    50%      { opacity: 1; transform: scale(1.1); }
  }

  @keyframes arcShell {
    0%, 100% { transform: scaleX(1); }
    50%      { transform: scaleX(1.025); }
  }

  [data-anim="arc"]:hover .anim-dome,
  [data-anim="arc"].is-play .anim-dome {
    animation: arcLift 0.9s ease-in-out;
  }

  [data-anim="arc"]:hover .anim-rod,
  [data-anim="arc"].is-play .anim-rod {
    animation: arcDip 0.9s ease-in-out;
  }

  [data-anim="arc"]:hover .anim-rod-mid,
  [data-anim="arc"].is-play .anim-rod-mid { animation-delay: 0.12s; }

  [data-anim="arc"]:hover .anim-spark,
  [data-anim="arc"].is-play .anim-spark {
    animation: arcSpark 0.45s steps(2, end) 2;
    transform-box: fill-box;
    transform-origin: center;
  }

  [data-anim="arc"]:hover .anim-spark-b,
  [data-anim="arc"].is-play .anim-spark-b { animation-delay: 0.17s; }
  [data-anim="arc"]:hover .anim-spark-c,
  [data-anim="arc"].is-play .anim-spark-c { animation-delay: 0.31s; }
  [data-anim="arc"]:hover .anim-spark-d,
  [data-anim="arc"].is-play .anim-spark-d { animation-delay: 0.09s; }

  [data-anim="arc"]:hover .anim-shell,
  [data-anim="arc"].is-play .anim-shell {
    animation: arcShell 0.9s ease-in-out;
    transform-box: fill-box;
    transform-origin: center;
  }
}
