/* =========================================================
   FACILITY SERVICES PAGE  (prefix: fac-)
   Figma frame 89:2 "Website / Facility Services / Desktop"
   ========================================================= */

.fac-eyebrow { font-size: 16px; color: var(--gold-500); letter-spacing: 0; margin-bottom: 26px; }
.fac-eyebrow--light { color: #c9a451; }
.fac-h2 { font-size: clamp(32px, 3.35vw, 48px); line-height: 1.21; font-weight: 700; color: var(--navy-950); }
.fac-body { font-size: clamp(16px, 1.25vw, 18px); line-height: 1.21; color: #4f4f4a; }

.fac-btn--gold { background: var(--gold-500); color: var(--navy-950); min-height: 58px; padding: 0 24px; font-size: 18px; }
.fac-btn--gold:hover { background: #c49a47; }

/* ---------- Hero ---------- */
.fac-hero { position: relative; overflow: hidden; background: var(--navy-950); color: var(--white); min-height: 780px; }
.fac-hero__media { position: absolute; top: 0; right: 0; bottom: 0; width: 47.23%; }
.fac-hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 40% center; }
.fac-hero__media::after { content: ""; position: absolute; inset: 0; background: rgba(5, 15, 23, .28); }
.fac-hero__inner { position: static; padding-block: 92px 80px; }
.fac-hero__content { position: relative; z-index: 1; max-width: 650px; }
.fac-hero__content .fac-eyebrow { margin-bottom: 27px; }
.fac-hero__title { font-size: clamp(40px, 4.17vw, 60px); line-height: 1.21; font-weight: 700; margin-bottom: 14px; }
.fac-hero__lead { max-width: 560px; font-size: clamp(16px, 1.25vw, 18px); line-height: 1.21; color: #d9dee0; margin-bottom: 56px; }
.fac-hero__content .btn { min-width: 260px; }
.fac-hero__tagline { margin: 45px 0 0 8px; font-size: 14px; font-weight: 600; color: #c9a451; text-transform: uppercase; }
.fac-hero__inset {
  position: absolute; z-index: 2; left: calc(50% - 70px); top: 470px;
  width: 360px; height: 250px; border-radius: 28px; overflow: hidden;
}
.fac-hero__inset img { width: 100%; height: 100%; object-fit: cover; }
.fac-hero__num { position: absolute; z-index: 2; right: 45px; bottom: 43px; font-size: 72px; font-weight: 700; line-height: 1.21; }

/* ---------- Professional cleaning mosaic ---------- */
.fac-clean { padding-block: 80px 150px; }
.fac-clean__grid {
  display: grid;
  grid-template-columns: minmax(0, 610fr) minmax(0, 280fr) minmax(0, 330fr);
  grid-template-rows: auto 420px;
  gap: 30px;
}
.fac-clean__intro { grid-column: 1; grid-row: 1; }
.fac-clean__intro .fac-eyebrow { margin-bottom: 26px; }
.fac-clean__intro .fac-h2 { margin-bottom: 23px; }
.fac-clean__intro .fac-body { max-width: 510px; }
.fac-tile { position: relative; margin: 0; border-radius: 28px; overflow: hidden; box-shadow: 0 4px 4px rgba(0, 0, 0, .25); }
.fac-tile img { width: 100%; height: 100%; object-fit: cover; }
.fac-tile--industrial { grid-column: 2; grid-row: 1; height: 250px; margin-top: 50px; }
.fac-tile--floor { grid-column: 3; grid-row: 1; height: 250px; margin-top: 50px; }
.fac-tile--office { grid-column: 1; grid-row: 2; }
.fac-tile--post { grid-column: 2 / 4; grid-row: 2; }
.fac-pill {
  position: absolute; left: 10px; bottom: 23px;
  display: inline-flex; align-items: center; min-height: 46px; padding: 0 28px 0 18px;
  border-radius: 999px; background: var(--navy-950); color: var(--white);
  font-size: 15px; font-weight: 600; line-height: 1.2;
}
.fac-pill--low { left: 30px; bottom: 64px; padding-right: 40px; }

/* ---------- Facility support split ---------- */
.fac-support { display: grid; grid-template-columns: 620px minmax(0, 1fr); min-height: 760px; background: #faf8f2; }
.fac-support__media { position: relative; }
.fac-support__media > img { width: 100%; height: 100%; object-fit: cover; }
.fac-support__block {
  position: absolute; left: 500px; top: 80px; width: 180px; height: 600px;
  background: #d28d24; color: var(--white);
}
.fac-support__block span { position: absolute; left: 40px; top: 35px; font-size: 72px; font-weight: 700; line-height: 1.21; }
.fac-support__content { padding: 90px var(--gutter) 80px 140px; }
.fac-support__content .fac-eyebrow { margin-bottom: 29px; }
.fac-support__content .fac-h2 { margin-bottom: 16px; }
.fac-support__content .fac-body { max-width: 540px; margin-bottom: 49px; }
.fac-support__list { display: flex; flex-direction: column; gap: 10px; margin-left: -14px; }
.fac-support__list li { display: flex; align-items: center; gap: 12px; min-height: 48px; font-size: 18px; font-weight: 600; color: var(--navy-950); }
.fac-support__list img { width: 36px; height: 36px; margin: 6px; flex: none; }

/* ---------- Equipment gallery ---------- */
.fac-equip { background: var(--navy-950); color: var(--white); padding-block: 74px 100px; }
.fac-equip__head { display: grid; grid-template-columns: 480px minmax(0, 620px); gap: 30px; margin-bottom: 50px; }
.fac-equip__head .fac-eyebrow { margin-bottom: 27px; }
.fac-equip__title { color: var(--white); max-width: 460px; }
.fac-equip__text { font-size: clamp(16px, 1.25vw, 18px); line-height: 1.21; color: #d1d6d9; padding-top: 52px; }
.fac-equip__gallery {
  display: grid; grid-template-columns: minmax(0, 480fr) minmax(0, 330fr) minmax(0, 410fr);
  gap: 30px; align-items: end;
}
.fac-equip__img { position: relative; margin: 0; border-radius: 28px; }
.fac-equip__img > img { width: 100%; height: 100%; object-fit: cover; border-radius: 28px; }
.fac-equip__img--a, .fac-equip__img--c { height: 400px; }
.fac-equip__img--b { height: 450px; }
.fac-equip__img--a { z-index: 1; }
.fac-equip__badge {
  position: absolute; right: -120px; bottom: 40px;
  width: 170px; height: 100px; border-radius: 20px;
  display: flex; align-items: center; justify-content: center; text-align: center;
  background: var(--gold-500); color: var(--navy-950);
  font-size: 22px; font-weight: 700; line-height: 1.21; text-transform: uppercase;
}

/* ---------- How it works ---------- */
.fac-how { position: relative; overflow: hidden; padding-block: 70px 70px; }
.fac-how__mark { position: absolute; left: 1px; top: 308px; width: 392px; height: auto; opacity: .07; pointer-events: none; }
.fac-how__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 680px; gap: 40px; }
.fac-how__intro .fac-eyebrow { margin-bottom: 20px; }
.fac-how__title { font-size: clamp(32px, 3.2vw, 46px); margin-bottom: 26px; }
.fac-how__intro .fac-body { max-width: 480px; line-height: 1.0061; }
.fac-how__steps {
  list-style: none; margin: 35px 30px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 200px); gap: 55px 40px;
}
.fac-step {
  display: flex; flex-direction: column; min-height: 190px; padding: 17px 20px 20px;
  background: #faf8f2; border: 1px solid #e3dbc9; border-radius: 24px;
  box-shadow: 0 4px 4px rgba(0, 0, 0, .25);
}
.fac-step__num { font-size: 14px; font-weight: 600; line-height: 1.21; color: var(--gold-500); margin-bottom: 15px; }
.fac-step img { width: 36px; height: 36px; margin: 0 0 24px 2px; }
.fac-step .fac-step__gear { width: 35.5px; height: 35.5px; margin-top: -4px; margin-bottom: 30px; }
.fac-step h3 { font-size: 20px; font-weight: 600; line-height: 1.21; color: var(--navy-950); margin-bottom: 7px; }
.fac-step p { font-size: 14px; line-height: 1.21; color: #4f4f4a; }
.fac-step--dark { background: var(--navy-950); border-color: var(--navy-950); }
.fac-step--dark h3 { color: var(--white); }
.fac-step--dark p { color: #ccd6db; }

/* ---------- Environments ribbon ---------- */
.fac-env { background: #faf8f2; padding-block: 55px 45px; }
.fac-env__grid { display: grid; grid-template-columns: minmax(0, 1fr) 680px; gap: 40px; }
.fac-env .fac-eyebrow { margin-bottom: 25px; }
.fac-env__title { max-width: 570px; font-size: clamp(28px, 2.65vw, 38px); line-height: 1.21; font-weight: 700; color: var(--navy-950); }
.fac-env__ribbon { display: grid; grid-template-columns: repeat(4, minmax(0, 155px)); gap: 20px; justify-content: end; margin-right: -20px; }
.fac-env__ribbon li { height: 310px; border-radius: 22px; overflow: hidden; box-shadow: 0 4px 4px rgba(0, 0, 0, .25); }
.fac-env__ribbon img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- CTA ---------- */
.fac-cta { padding-block: 55px 72px; }
.fac-cta__box {
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  min-height: 243px; padding: 57px 74px 50px 50px;
  background: var(--navy-950); border-radius: 28px; color: var(--white);
}
.fac-cta__eyebrow { font-size: 14px; margin-bottom: 20px; }
.fac-cta__title { font-size: clamp(26px, 2.65vw, 38px); line-height: 1.21; font-weight: 700; }
.fac-cta__btn { flex: none; min-width: 270px; margin-top: 30px; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1280px) {
  .fac-support { grid-template-columns: 46% minmax(0, 1fr); }
  .fac-support__block { left: auto; right: -60px; width: 160px; }
  .fac-support__content { padding-left: 110px; }
  .fac-how__grid, .fac-env__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 600px); }
  .fac-how__steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 24px; margin-right: 0; }
  .fac-env__ribbon { margin-right: 0; grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
  .fac-hero { min-height: 0; }
  .fac-hero__media { width: 42%; }
  .fac-hero__inset { display: none; }
  .fac-hero__content { max-width: 54%; }
  .fac-how__grid, .fac-env__grid { grid-template-columns: 1fr; gap: 40px; }
  .fac-how__mark { display: none; }
  .fac-how__intro .fac-body { line-height: 1.3; }
  .fac-env__ribbon { justify-content: stretch; }
  .fac-equip__head { grid-template-columns: 1fr; gap: 16px; }
  .fac-equip__text { padding-top: 0; max-width: 620px; }
  .fac-equip__badge { right: auto; left: 24px; bottom: 24px; width: 150px; height: 88px; font-size: 19px; }
}
@media (max-width: 960px) {
  .fac-hero__media { position: relative; width: 100%; height: 360px; }
  .fac-hero__inner { padding-block: 48px 56px; }
  .fac-hero__content { max-width: none; }
  .fac-hero__num { top: 270px; bottom: auto; right: var(--gutter); font-size: 56px; }
  .fac-clean { padding-block: 64px 80px; }
  .fac-clean__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; gap: 20px; }
  .fac-clean__intro { grid-column: 1 / -1; margin-bottom: 12px; }
  .fac-tile--industrial, .fac-tile--floor, .fac-tile--office, .fac-tile--post { grid-column: auto; grid-row: auto; margin-top: 0; height: 300px; }
  .fac-pill, .fac-pill--low { left: 16px; bottom: 16px; padding-right: 22px; max-width: calc(100% - 32px); }
  .fac-support { grid-template-columns: 1fr; min-height: 0; }
  .fac-support__media { height: 420px; }
  .fac-support__block { left: auto; right: var(--gutter); top: auto; bottom: -40px; width: 140px; height: 140px; }
  .fac-support__block span { left: 24px; top: 24px; font-size: 56px; }
  .fac-support__content { padding: 80px var(--gutter) 64px; }
  .fac-support__list { margin-left: -8px; }
  .fac-equip { padding-block: 64px 72px; }
  .fac-equip__gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .fac-equip__img--a, .fac-equip__img--b, .fac-equip__img--c { height: 320px; }
  .fac-equip__img--c { grid-column: 1 / -1; }
  .fac-cta__box { flex-direction: column; align-items: flex-start; padding: 40px 32px; }
  .fac-cta__btn { margin-top: 0; }
  .fac-cta__title br { display: none; }
}
@media (max-width: 640px) {
  .fac-clean__grid, .fac-equip__gallery { grid-template-columns: 1fr; }
  .fac-tile--industrial, .fac-tile--floor, .fac-tile--office, .fac-tile--post { height: 240px; }
  .fac-equip__img--a, .fac-equip__img--b, .fac-equip__img--c { height: 260px; grid-column: auto; }
  .fac-how__steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .fac-step { min-height: 0; padding: 16px; }
  .fac-step img { margin-bottom: 16px; }
  .fac-step p { font-size: 15px; }
  .fac-env__ribbon { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .fac-env__ribbon li { height: 240px; }
}
@media (max-width: 480px) {
  .fac-hero__media { height: 280px; }
  .fac-hero__num { top: 196px; font-size: 48px; }
  .fac-hero__title { font-size: clamp(30px, 8.6vw, 36px); }
  .fac-hero__content .btn, .fac-cta__btn { width: 100%; min-width: 0; }
  .fac-support__media { height: 320px; }
  .fac-support__block { width: 110px; height: 110px; }
  .fac-support__block span { left: 18px; top: 18px; font-size: 44px; }
  .fac-support__list li { font-size: 17px; }
  .fac-cta__box { padding: 32px 24px; }
}

/* =========================================================
   MOBILE / TABLET POLISH PASS (≤1180px only)
   ========================================================= */
@media (max-width: 1180px) {
  /* Cleaning mosaic: the 3-col desktop mosaic gets cramped — switch to an intro row + 2x2 tiles */
  .fac-clean { padding-block: 72px 88px; }
  .fac-clean__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; gap: 24px; }
  .fac-clean__intro { grid-column: 1 / -1; margin-bottom: 8px; }
  .fac-tile--industrial, .fac-tile--floor, .fac-tile--office, .fac-tile--post { grid-column: auto; grid-row: auto; margin-top: 0; height: 340px; }
  .fac-pill, .fac-pill--low { left: 16px; bottom: 16px; padding-right: 22px; max-width: calc(100% - 32px); }
}
@media (max-width: 1100px) {
  .fac-how__steps { margin-top: 0; }
  .fac-how__intro .fac-body { max-width: 560px; }
}
@media (max-width: 960px) {
  .fac-hero__tagline { margin-left: 0; margin-top: 32px; }
  .fac-hero__lead { line-height: 1.45; margin-bottom: 36px; }
  .fac-clean { padding-block: 64px 72px; }
  .fac-tile--industrial, .fac-tile--floor, .fac-tile--office, .fac-tile--post { height: 300px; }
  .fac-body, .fac-equip__text { line-height: 1.45; }
  .fac-how { padding-block: 64px; }
  .fac-env { padding-block: 64px; }
  .fac-cta { padding-block: 56px 72px; }
}
/* Tablet portrait: keep the support section side-by-side instead of a tall stacked image */
@media (min-width: 720px) and (max-width: 960px) {
  .fac-support { grid-template-columns: 42% minmax(0, 1fr); }
  .fac-support__media { height: auto; }
  .fac-support__block { left: auto; right: -36px; top: 56px; bottom: auto; width: 96px; height: 200px; }
  .fac-support__block span { left: 16px; top: 16px; font-size: 40px; }
  .fac-support__content { padding: 64px var(--gutter) 64px 72px; }
  .fac-support__list li { font-size: 17px; }
}
@media (max-width: 640px) {
  .fac-hero__inner { padding-block: 40px 56px; }
  .fac-hero__content .fac-eyebrow { margin-bottom: 18px; }
  .fac-eyebrow { font-size: 14px; margin-bottom: 18px; }
  .fac-clean { padding-block: 56px 64px; }
  .fac-clean__grid { grid-template-columns: 1fr; gap: 16px; }
  .fac-clean__intro .fac-eyebrow, .fac-equip__head .fac-eyebrow, .fac-support__content .fac-eyebrow, .fac-how__intro .fac-eyebrow, .fac-env .fac-eyebrow { margin-bottom: 16px; }
  .fac-clean__intro .fac-h2 { margin-bottom: 16px; }
  .fac-h2 { font-size: clamp(28px, 8vw, 32px); }
  .fac-tile { border-radius: 22px; }
  .fac-tile--industrial, .fac-tile--floor, .fac-tile--office, .fac-tile--post { height: 220px; }
  .fac-support__content { padding: 72px var(--gutter) 56px; }
  .fac-support__content .fac-body { margin-bottom: 28px; }
  .fac-equip { padding-block: 56px 64px; }
  .fac-equip__head { margin-bottom: 32px; }
  /* gallery: hero image full width, the other two side by side */
  .fac-equip__gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .fac-equip__img, .fac-equip__img > img { border-radius: 22px; }
  .fac-equip__img--a { grid-column: 1 / -1; height: 240px; }
  .fac-equip__img--b, .fac-equip__img--c { grid-column: auto; height: 190px; }
  .fac-how { padding-block: 56px; }
  .fac-how__grid { gap: 32px; }
  .fac-how__title { margin-bottom: 16px; }
  .fac-step h3 { font-size: 19px; }
  .fac-env { padding-block: 56px; }
  .fac-env__grid { gap: 32px; }
  .fac-env__title { font-size: clamp(24px, 7vw, 28px); }
  .fac-env__ribbon li { height: 200px; }
  .fac-cta { padding-block: 48px 64px; }
  .fac-cta__eyebrow { margin-bottom: 14px; }
}

/* =========================================================
   Motion (v3) — facility services page
   Entrance/loop animation only under prefers-reduced-motion:
   no-preference; with JS off or reduced motion, the final
   state shows.
   ========================================================= */

/* ---------- How it works: a connector snakes through the steps ---------- */
.fac-how__flow { position: relative; --travel: 6s; }
.fac-how__path { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 0; }
.fac-how__path path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.fac-how__line { stroke: #d9c79f; stroke-width: 2; }
.fac-how__dash { stroke: var(--gold-500); stroke-width: 2; stroke-dasharray: 6 10; opacity: 0; }
.fac-how__dot {
  position: absolute; left: 0; top: 0; z-index: 0; width: 10px; height: 10px; border-radius: 50%;
  background: #fff3d6; pointer-events: none; opacity: 0; offset-rotate: 0deg;
  box-shadow: 0 0 0 3px rgba(201, 145, 41, .4), 0 0 16px 5px rgba(201, 145, 41, .6);
}
.fac-step { position: relative; z-index: 1; }
.fac-step__num {
  align-self: flex-start; padding: 2px 8px; margin: -2px 0 13px -8px; border-radius: 999px;
  transition: background-color .3s ease, color .3s ease;
}
.fac-step > :is(img, h3, p, .fac-step__num) { transition: opacity .3s ease, background-color .3s ease, color .3s ease; }
@media (hover: hover) {
  .fac-how__steps:hover .fac-step:not(:hover) > :is(img, h3, p, .fac-step__num) { opacity: .45; }
  .fac-step:hover .fac-step__num { background: var(--gold-500); color: var(--navy-950); }
}
/* Execute gear turns slowly — the step where the work happens */
@keyframes facSpin { to { rotate: 1turn; } }

@media (prefers-reduced-motion: no-preference) {
  .js .fac-how__steps.seq:not(.seq-on) .fac-step { opacity: 0; }
  .js .fac-how__flow:not(:has(.seq-on)) .fac-how__line { stroke-dasharray: 1; stroke-dashoffset: 1; }

  .fac-how__steps.seq-on .fac-step { animation: facCardIn .6s calc(var(--i, 0) * .16s) cubic-bezier(.2,.7,.2,1) backwards; }
  .fac-how__steps.seq-on .fac-step__num { animation: facFlip .55s calc(var(--i, 0) * .16s + .25s) cubic-bezier(.3,1.4,.5,1) backwards, facNumGlow calc(var(--travel) + 1s) calc(2.4s + var(--t, 0s)) linear infinite; }
  .fac-how__steps.seq-on .fac-step img { animation: facIconIn .5s calc(var(--i, 0) * .16s + .35s) cubic-bezier(.3,1.6,.5,1) backwards; }
  .fac-how__flow:has(.seq-on) .fac-how__line { stroke-dasharray: 1; animation: facDraw 1.8s .4s cubic-bezier(.6,0,.3,1) backwards; }
  .fac-how__flow:has(.seq-on) .fac-how__dash { animation: facFadeIn .6s 2.2s forwards, facFlow 1.2s 2.2s linear infinite; }
  .fac-how__flow:has(.seq-on) .fac-how__dot { animation: facTravel calc(var(--travel) + 1s) 2.4s linear infinite; }
}
@keyframes facCardIn { from { opacity: 0; translate: 0 24px; scale: .96; } }
@keyframes facFlip { from { opacity: 0; transform: perspective(300px) rotateX(-90deg); } }
@keyframes facIconIn { from { opacity: 0; scale: .4; } }
@keyframes facDraw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes facFadeIn { to { opacity: .9; } }
@keyframes facFlow { to { stroke-dashoffset: -16; } }
@keyframes facTravel {
  0% { offset-distance: 0%; opacity: 0; } 3% { opacity: 1; }
  83% { opacity: 1; } 85.7% { offset-distance: 100%; opacity: 0; } 100% { offset-distance: 100%; opacity: 0; }
}
/* each number lights up as the dot reaches its card (period = travel + 1s pause) */
@keyframes facNumGlow {
  0% { background-color: rgba(201, 145, 41, 0); box-shadow: 0 0 0 0 rgba(201, 145, 41, 0); }
  2% { background-color: rgba(201, 145, 41, .22); box-shadow: 0 0 0 4px rgba(201, 145, 41, .18); }
  14%, 100% { background-color: rgba(201, 145, 41, 0); box-shadow: 0 0 0 10px rgba(201, 145, 41, 0); }
}
@media (hover: hover) {
  .fac-step:hover .fac-step__num { animation: none; }
}
@media (prefers-reduced-motion: reduce) {
  .fac-how__dash, .fac-how__dot { display: none; }
}

/* ---------- Hero: inset photo floats, the "01" flips in ---------- */
@media (prefers-reduced-motion: no-preference) {
  .fac-hero__inset { box-shadow: 0 18px 40px rgba(0, 0, 0, .35); }
  .fac-hero__num { animation: facFlip .8s .9s cubic-bezier(.3,1.4,.5,1) backwards; }
}
@keyframes facFloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }

/* ---------- Facility support: the gold "02" block grows down from the top ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .fac-support__media.seq:not(.seq-on) .fac-support__block { transform: scaleY(0); }
  .js .fac-support__media.seq:not(.seq-on) .fac-support__block span { opacity: 0; }
  .fac-support__media.seq-on .fac-support__block { transform-origin: top; animation: facGrow 1s .2s cubic-bezier(.7,0,.2,1) backwards; }
  .fac-support__media.seq-on .fac-support__block span { animation: facFlip .7s 1s cubic-bezier(.3,1.4,.5,1) backwards; }
}
@keyframes facGrow { from { transform: scaleY(0); } }

/* ---------- Photos zoom gently inside their rounded frames ---------- */
.fac-tile img, .fac-env__ribbon img { transition: transform .9s cubic-bezier(.2,.7,.2,1), scale 1.6s cubic-bezier(.2,.7,.2,1), clip-path 1.1s cubic-bezier(.7,0,.2,1); }
.fac-pill { transition: transform .35s ease, background-color .3s ease; }
@media (hover: hover) {
  .fac-tile:hover img, .fac-env__ribbon li:hover img { transform: scale(1.07); }
  .fac-tile:hover .fac-pill { transform: translateX(6px); background: #13283a; }
}

/* ---------- Equipment badge bobs, the NS watermark drifts ---------- */
@media (prefers-reduced-motion: no-preference) {
  .fac-equip__badge { animation: facBadge 6s ease-in-out infinite; }
  .fac-how__mark { animation: facDrift 18s ease-in-out infinite; }
}
@keyframes facBadge { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-8px) rotate(-2deg); } }
@keyframes facDrift { 0%, 100% { transform: translate(0, 0) rotate(0deg); } 50% { transform: translate(18px, -14px) rotate(4deg); } }
/* keep the shared image wipe's 1.08 start scale from widening the page on phones */
.fac-support { overflow-x: clip; }

/* ---------- How it works v3.1: every card takes the navy "active" look as the dot reaches it ---------- */
.fac-step { transition: background-color .35s ease, border-color .35s ease, box-shadow .35s ease; }
.fac-step h3, .fac-step p { transition: color .35s ease; }
.fac-step img { transition: filter .35s ease; }
@media (prefers-reduced-motion: no-preference) {
  .fac-how__steps.seq-on .fac-step {
    animation: facCardIn .6s calc(var(--i, 0) * .16s) cubic-bezier(.2,.7,.2,1) backwards,
               facCardLit calc(var(--travel) + 1s) calc(2.4s + var(--t, 0s)) ease-in-out infinite;
  }
  .fac-how__steps.seq-on .fac-step h3 { animation: facTitleLit calc(var(--travel) + 1s) calc(2.4s + var(--t, 0s)) ease-in-out infinite; }
  .fac-how__steps.seq-on .fac-step p { animation: facTextLit calc(var(--travel) + 1s) calc(2.4s + var(--t, 0s)) ease-in-out infinite; }
  .fac-how__steps.seq-on .fac-step img {
    animation: facIconIn .5s calc(var(--i, 0) * .16s + .35s) cubic-bezier(.3,1.6,.5,1) backwards,
               facIconLit calc(var(--travel) + 1s) calc(2.4s + var(--t, 0s)) ease-in-out infinite;
  }
}
@keyframes facCardLit {
  0%, 17%, 100% { background-color: #faf8f2; border-color: #e3dbc9; box-shadow: 0 4px 4px rgba(0,0,0,.25); }
  3%, 13% { background-color: var(--navy-950); border-color: var(--gold-500); box-shadow: 0 0 0 4px rgba(201,145,41,.18), 0 14px 28px rgba(11,22,32,.25); }
}
@keyframes facTitleLit { 0%, 17%, 100% { color: var(--navy-950); } 3%, 13% { color: var(--white); } }
@keyframes facTextLit { 0%, 17%, 100% { color: #4f4f4a; } 3%, 13% { color: #ccd6db; } }
@keyframes facIconLit { 0%, 17%, 100% { filter: none; } 3%, 13% { filter: brightness(0) invert(1); } }
@keyframes facDarkLit {
  0%, 17%, 100% { box-shadow: 0 4px 4px rgba(0,0,0,.25); border-color: var(--navy-950); }
  3%, 13% { box-shadow: 0 0 0 5px rgba(201,145,41,.25), 0 14px 28px rgba(11,22,32,.3); border-color: var(--gold-500); }
}
/* hovering a card shows the same active look */
@media (hover: hover) {
  .fac-step:hover { animation-play-state: paused; background-color: var(--navy-950) !important; border-color: var(--gold-500) !important; }
  .fac-step:hover h3 { color: var(--white) !important; }
  .fac-step:hover p { color: #ccd6db !important; }
  .fac-step:hover img { filter: brightness(0) invert(1) !important; }
}

/* v3.2: the Execute card is cream like the others; it turns navy only while the light passes or on hover */
.fac-step--dark { background: #faf8f2; border-color: #e3dbc9; }
.fac-step--dark h3 { color: var(--navy-950); }
.fac-step--dark p { color: #4f4f4a; }

/* =========================================================
   Compact (v3.2) — tighter vertical rhythm, no artificial heights
   (keeps the v3.1/v3.2 How-it-works rules above intact)
   ========================================================= */
@media (min-width: 961px) {
  .fac-h2, .fac-how__title { font-size: clamp(32px, 3.05vw, 44px); }
}
@media (min-width: 1181px) {
  .fac-hero { min-height: 640px; }
  .fac-hero__inner { padding-block: 80px 72px; }
  .fac-hero__content .fac-eyebrow { margin-bottom: 22px; }
  .fac-hero__lead { margin-bottom: 36px; }
  .fac-hero__tagline { margin-top: 32px; }
  .fac-hero__inset { top: 368px; }

  .fac-clean { padding-block: 72px 72px; }
  .fac-clean__grid { grid-template-rows: auto 360px; gap: 24px; }
  .fac-clean__intro .fac-eyebrow { margin-bottom: 20px; }
  .fac-clean__intro .fac-h2 { margin-bottom: 18px; }
  .fac-tile--industrial, .fac-tile--floor { height: 240px; margin-top: 36px; }
}
@media (min-width: 961px) {
  .fac-support { min-height: 0; }
  .fac-support__block { top: 64px; bottom: 64px; height: auto; }
  .fac-support__content { padding-top: 72px; padding-bottom: 72px; }
  .fac-support__content .fac-eyebrow { margin-bottom: 20px; }
  .fac-support__content .fac-body { margin-bottom: 32px; }
  .fac-support__list { gap: 4px; }
  .fac-support__list li { min-height: 44px; }

  .fac-equip { padding-block: 72px 72px; }
  .fac-equip__head { margin-bottom: 36px; align-items: end; }
  .fac-equip__head .fac-eyebrow { margin-bottom: 20px; }
  .fac-equip__text { padding-top: 0; padding-bottom: 6px; }
  .fac-equip__img--a, .fac-equip__img--c { height: 340px; }
  .fac-equip__img--b { height: 380px; }

  .fac-how { padding-block: 72px 72px; }
  .fac-how__title { margin-bottom: 20px; }
  .fac-step { min-height: 0; }

  .fac-env { padding-block: 64px 64px; }
  .fac-env__ribbon li { height: 280px; }

  .fac-cta { padding-block: 56px 72px; }
  .fac-cta__box { min-height: 0; padding: 44px 64px 44px 50px; }
  .fac-cta__btn { margin-top: 24px; }
}
/* keep the lead clear of the lifted inset photo on small laptops */
@media (min-width: 1181px) and (max-width: 1400px) { .fac-hero__lead { max-width: 470px; } }
