/* =========================================================
   Starpools — built from Figma "Star pools Homepage"
   Desktop: 1440 frame  ·  Mobile: 402 frame
   ========================================================= */

:root {
  --white: #fcfcfc;
  --black: #0f161d;
  --blue: #0071e3;
  --blue-hover: #0062c4;
  --bg: #f5f5f7;
  --gold: #a37b02;
  --aqua: #06bad4;
  --ocean: #003c70;
  --muted: rgba(15, 22, 29, 0.5);
  --text-soft: rgba(15, 22, 29, 0.6);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Lato", system-ui, sans-serif;
  --pad: 80px;
}

.footer, .detail__text,.detail__phones, input {
    font-family: "Lato", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--black);
  font-family: var(--serif);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }
section { scroll-margin-top: 96px; }

.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;
}

/* ---------- Image crops (exact Figma framing) ----------
   Each .crop clips an image placed at the same offset/size
   it has in Figma, expressed as % of the container so it
   scales responsively. --m* values = mobile frame crop.   */
.crop { position: relative; overflow: hidden; }
.crop > img {
  position: absolute;
  left: var(--l, 0);
  top: var(--t, 0);
  width: var(--w, 100%);
  height: var(--h, 100%);
  max-width: none;
  object-fit: cover;
}
.crop--fill > img { object-fit: fill; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid transparent;
  border-radius: 28px;
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, transform .2s ease, border-color .2s ease;
}
.btn img { width: 24px; height: 24px; flex: none; transition: transform .2s ease; }
.btn:hover img { transform: translateX(3px); }
.btn:focus-visible, .filter:focus-visible, .nav__link:focus-visible,
.social__btn:focus-visible, .nav__toggle:focus-visible {
  outline: 2px solid var(--aqua);
  outline-offset: 3px;
}
.btn--lg { height: 56px; padding: 10px 30px; font-size: 16px; }
.btn--md { height: 44px; padding: 16px; font-size: 14px; }
.btn--sm { height: 36px; padding: 10px 20px; font-size: 14px; }
.btn--primary { background: var(--blue); color: var(--white); }
.btn--primary:hover { background: var(--blue-hover); }
.btn--outline-light { border-color: var(--white); color: var(--white); }
.btn--outline-light:hover { background: rgba(252, 252, 252, 0.14); }
.btn--ghost { color: var(--black); font-family: var(--sans); }
.btn--ghost:hover { color: var(--blue); }

/* ---------- Section headings ---------- */
.section-head { text-align: center; display: flex; flex-direction: column; align-items: center; }
.eyebrow { font-size: 24px; line-height: 1.45; color: var(--gold); font-weight: 400; }
.title { font-size: 44px; line-height: normal; font-weight: 600; color: var(--black); }

/* =========================================================
   NAVIGATION
   ========================================================= */
.nav {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  width: min(1320px, calc(100% - 40px));
  height: 70px;
  display: flex;
  align-items: center;
  padding: 0 20px 0 36px;
  border-radius: 35px;
  background: rgba(252, 252, 252, 0.6);
  -webkit-backdrop-filter: blur(20.75px);
  backdrop-filter: blur(20.75px);
  transition: box-shadow .3s ease, background-color .3s ease;
}
.nav.is-scrolled { background: rgba(252, 252, 252, 0.82); box-shadow: 0 8px 30px rgba(15, 22, 29, 0.08); }
.nav__logo { flex: none; width: 78px; height: 40px; margin-top: 2px; }
.nav__logo-img { width: 100%; height: 100%; }
.nav__menu { display: flex; align-items: center; flex: 1; margin-left: 46px; }
.nav__links { display: flex; gap: 24px; }
.nav__link {
  display: block;
  padding: 10px;
  font: 400 14px/1.45 var(--sans);
  color: var(--muted);
  text-decoration: none;
  transition: color .2s ease;
}
.nav__link:hover { color: var(--black); }
.nav__link.is-active { color: var(--gold); }
.nav__cta { margin-left: auto; width: 133px; }
.nav__toggle {
  display: none;
  margin-left: auto;
  padding: 0;
  width: 24px;
  height: 24px;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav__icon-close { display: none; }

/* =========================================================
   HERO
   ========================================================= */
.hero { position: relative; height: 664px; overflow: hidden; background: var(--white); }
.hero__bg { position: absolute; inset: 0; }
.hero__gradient {
  position: absolute; top: 0; left: 0;
  width: 69.58%; height: 100%;
  background: linear-gradient(to right, rgba(15, 22, 29, 0.2), rgba(68, 99, 131, 0));
}
.hero__inner { position: relative; max-width: 1440px; height: 100%; margin: 0 auto; }
.hero__content { position: absolute; left: 78px; top: 155px; width: 674px; }
.hero__title {
  max-width: 393px;
  font-size: 64px;
  line-height: 60px;
  font-weight: 400;
  color: #101e2f;
}
.hero__title span { color: #0b67c9; }
.hero__sub { max-width: 527px; margin-top: 6px; font-size: 20px; line-height: 1.35; color: #ffffff; font-family: 'lato', Arial, Helvetica, sans-serif;}
.hero__actions { display: flex; gap: 24px; margin-top: 20px; }

/* =========================================================
   CLIENTS
   ========================================================= */
.clients { background: var(--white); padding: 60px 0; overflow: hidden; }
.marquee { max-width: 1280px; margin: 54px auto 0; overflow: hidden; }
.marquee__track { display: flex; width: max-content; animation: marquee 45s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__set { display: flex; align-items: center; height: 60px; }
.client {
  --s: 1;
  position: relative;
  flex: none;
  width: calc(var(--cw) * var(--s));
  height: calc(var(--ch) * var(--s));
  margin-right: 56px;
}
.client:not(.crop) > img { width: 100%; height: 100%; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* =========================================================
   ABOUT
   ========================================================= */
.about { background: var(--bg); }
.about__inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 60px var(--pad);
  display: grid;
  grid-template-columns: 412px 1fr;
  gap: 80px;
}
.about__media { height: 526px; border-radius: 20px; background: rgba(0, 113, 227, 0.06); }
.about__body { margin-top: 38px; }
.about__head { max-width: 383px; display: flex; flex-direction: column; gap: 10px; }
.about__title { line-height: 44px; }
.about__text { margin-top: 24px; font-size: 18px; line-height: 1.45; color: var(--text-soft); }
.about__text p + p { margin-top: 20px; }
.about__btn { margin-top: 40px; }

/* =========================================================
   SERVICES
   ========================================================= */
.services { background: var(--white); }
.services__inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 60px var(--pad) 75px;
  display: flex;
  flex-direction: column;
}
.services__more { display: flex; justify-content: flex-end; margin-top: 10px; }
.services__grid {
  margin-top: 35px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}
.service {
  position: relative;
  aspect-ratio: 290 / 377;
  border-radius: 20px;
  overflow: hidden;
  background: var(--bg);
}
.service__img { position: absolute; inset: 0; }
.service__img img { transition: transform .6s ease; }
.service:hover .service__img img { transform: scale(1.04); }
.service__name {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 53px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  background: rgba(252, 252, 252, 0.92);
  font-size: 20px;
  line-height: 1.45;
  font-weight: 400;
  text-align: center;
}

/* =========================================================
   POOL TYPES
   ========================================================= */
.pools { background: var(--bg); }
.pools__inner { max-width: 1440px; margin: 0 auto; padding: 60px var(--pad); }
.pools__title { max-width: 417px; }
.filters { display: flex; justify-content: center; flex-wrap: wrap; gap: 20px; margin-top: 48px; }
.filter {
  height: 36px;
  padding: 10px 20px;
  border: 1px solid rgba(15, 22, 29, 0.2);
  border-radius: 28px;
  background: transparent;
  font: 400 16px/1 var(--serif);
  color: var(--black);
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.filter:hover { border-color: var(--blue); }
.filter.is-active { background: var(--blue); border-color: var(--blue); color: var(--white); }
.pools__grid {
  margin-top: 60px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.pool {
  height: 250px;
  border-radius: 10px;
  background: rgba(0, 113, 227, 0.1);
  animation: fadeIn .4s ease both;
}
.pool:nth-child(even) { background: var(--white); }
.pool.is-hidden { display: none; }
@keyframes fadeIn { from { opacity: 0; transform: scale(.98); } to { opacity: 1; transform: none; } }

/* =========================================================
   POOL EQUIPMENT
   ========================================================= */
.equipment { background: #fff; }
.equipment__inner { max-width: 1440px; margin: 0 auto; padding: 60px var(--pad); display: flex; flex-direction: column; }
.equipment__title { max-width: 405px; }
.equipment__more { display: flex; justify-content: flex-end; margin-top: -14px; }
.equipment__grid { margin-top: 38px; display: flex; flex-wrap: wrap; gap: 24px; }
.equip {
  position: relative;
  flex: none;
  width: 160px;
  height: 279px;
  border: 1px solid rgba(15, 22, 29, 0.12);
  border-radius: 100px;
  overflow: hidden;
  transition: border-color .2s ease, transform .3s ease;
}
.equip:hover { border-color: var(--blue); transform: translateY(-4px); }
.equip__img {
  position: absolute;
  left: calc(var(--x) - 1px);
  top: calc(var(--y) - 1px);
  width: var(--w);
  height: var(--h);
  max-width: none;
}
.equip__img--flip { transform: scaleX(-1); }
.equip__img--rotate { transform: rotate(90deg); }
.equip__img--cover { object-fit: cover; }
.equip__img.crop > img { left: var(--l); top: var(--t); width: var(--iw); height: var(--ih); }
.equip__name {
  position: absolute;
  top: 211px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 18px;
  line-height: 1.45;
  white-space: nowrap;
  font-family: var(--sans);
  font-size: 14px;
}

/* =========================================================
   CONTACT
   ========================================================= */
.contact { position: relative; overflow: hidden; background: var(--bg); }
.contact__bg { position: absolute; inset: 0; }
.contact__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(89.59deg, rgba(15, 22, 29, 0.8) 0.19%, rgba(15, 22, 29, 0.6) 41.38%, rgba(0, 165, 255, 0.1) 99.8%);
}
.contact__inner {
  position: relative;
  max-width: 1440px;
  margin: 0 auto;
  padding: 60px 85px 60px var(--pad);
  display: grid;
  grid-template-columns: 1fr 623px;
  gap: 40px;
}
.contact__info { padding-top: 20px; color: var(--white); }
.contact__head { max-width: 477px; }
.contact__title { max-width: 405px; color: var(--white); }
.contact__sub { margin-top: 7px; font-size: 18px; line-height: 1.45; font-weight: 300; }
.contact__details {
  margin-top: 58px;
  display: grid;
  grid-template-columns: repeat(2, 280px);
  gap: 70px 40px;
}
.detail { display: flex; gap: 16px; align-items: flex-start; }
.detail__icon { width: 24px; height: 24px; flex: none; }
.detail__title { font-size: 20px; line-height: 1.45; font-weight: 600; color: var(--white); }
.detail__text, .detail__phones { margin-top: 6px; font-size: 16px; line-height: 1.45; color: rgba(252, 252, 252, 0.9); word-break: break-word; }
.detail__text a, .detail__phones a { text-decoration: none; }
.detail__text a:hover, .detail__phones a:hover { text-decoration: underline; }
.detail__phones { display: flex; flex-direction: column; gap: 20px; line-height: 1.25; }
.detail__phones .num { font-family: "Cormorant Infant", var(--serif); }

.form { background: var(--white); border-radius: 20px; padding: 40px; }
.form__title { max-width: 448px; }
.form__grid { margin-top: 48px; display: grid; grid-template-columns: 1fr 1fr; gap: 21px; }
.field { display: block; }
.field--full { grid-column: 1 / -1; }
.field input, .field select, .field textarea {
  width: 100%;
  height: 54px;
  padding: 0 15.5px;
  border: 1px solid rgba(16, 16, 16, 0.12);
  border-radius: 6px;
  background: var(--white);
  font: 400 16px/1.35 var(--sans);
  color: var(--black);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-soft); opacity: 1; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.12);
}
.field select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 48px;
  background: var(--white) url("../assets/chevron-down.svg") no-repeat right 14.5px center / 24px 24px;
  cursor: pointer;
}
.field select:invalid { color: var(--text-soft); }
.field select option { color: var(--black); }
.field textarea { height: 150px; padding: 15.5px 19.5px; border-radius: 10px; resize: vertical; }
.field.is-error input, .field.is-error select { border-color: #d93025; }
.form__status { margin-top: 12px; font-size: 16px; min-height: 0; color: var(--ocean); }
.form__status:empty { display: none; }
.form__status.is-error { color: #d93025; }
.form__submit { margin-top: 30px; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { background: var(--white); }
.footer__inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 60px var(--pad);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 83px;
}
.footer__logo { width: 155px; height: 80px; }
.footer__brand p { max-width: 222px; margin-top: 8px; font-size: 16px; line-height: 1.45; color: var(--muted); }
.footer__heading { display: inline-block; padding: 10px; font-size: 24px; line-height: 1.45; font-weight: 400; color: var(--black); }
.footer__heading--social { padding: 10px 0; }
.footer__links a {
  display: block;
  padding: 10px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--muted);
  text-decoration: none;
  transition: color .2s ease;
  font-family: 'Lato', Arial, Helvetica, sans-serif;
}
.footer__links a:hover { color: var(--blue); }
.social { display: flex; gap: 20px; margin-top: 6px; }
.social__btn {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 28px;
  background: var(--blue);
  transition: background-color .2s ease, transform .2s ease;
}
.social__btn:hover { background: var(--blue-hover); transform: translateY(-2px); }
.social__btn img { width: 24px; height: 24px; }

/* =========================================================
   TABLET  (keeps desktop look, lets grids reflow)
   ========================================================= */
@media (max-width: 1439px) {
  .equipment__grid { justify-content: center; }
}
@media (max-width: 1199px) {
  :root { --pad: 40px; }
  .hero__content { left: 40px; }
  .about__inner { grid-template-columns: 360px 1fr; gap: 48px; }
  .services__grid { gap: 24px; }
  .contact__inner { grid-template-columns: 1fr; padding: 60px var(--pad); }
  .contact__info { padding-top: 0; }
  .footer__inner { grid-template-columns: repeat(2, 1fr); gap: 40px; }
}
@media (max-width: 991px) {
  .hero__content { width: auto; right: 40px; }
  .about__inner { grid-template-columns: 1fr; }
  .about__media { height: auto; aspect-ratio: 412 / 526; max-width: 412px; }
  .about__body { margin-top: 0; }
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .pools__grid { grid-template-columns: repeat(2, 1fr); }
  .nav__links { gap: 4px; }
}

/* =========================================================
   MOBILE  (matches the 402px Figma frame)
   ========================================================= */
@media (max-width: 767px) {
  .crop > img {
    left: var(--ml, var(--l, 0));
    top: var(--mt, var(--t, 0));
    width: var(--mw, var(--w, 100%));
    height: var(--mh, var(--h, 100%));
  }
  .hide-mobile { display: none !important; }

  .eyebrow { font-size: 18px; }
  .title { font-size: 30px; }

  /* Nav */
  .nav {
    top: 0; left: 0; transform: none;
    width: 100%; height: 59px;
    padding: 0 20px;
    border-radius: 0;
  }
  .nav__logo { width: 58px; height: 30px; margin-top: 1px; }
  .nav__toggle { display: block; }
  .nav__menu {
    position: fixed;
    top: 59px; left: 0; right: 0;
    margin: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 8px 20px 24px;
    background: rgba(252, 252, 252, 0.96);
    -webkit-backdrop-filter: blur(20.75px);
    backdrop-filter: blur(20.75px);
    box-shadow: 0 12px 30px rgba(15, 22, 29, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .25s ease, transform .25s ease, visibility .25s;
  }
  .nav.is-open .nav__menu { opacity: 1; visibility: visible; transform: none; }
  .nav.is-open .nav__icon-open { display: none; }
  .nav.is-open .nav__icon-close { display: block; }
  .nav__links { flex-direction: column; gap: 0; }
  .nav__link { padding: 12px 10px; font-size: 16px; text-align: center; }
  .nav__link.is-active { color: var(--aqua); }
  .nav__cta { margin: 0 auto; width: 268px; }

  /* Hero */
  .hero { height: 500px; }
  .hero__gradient {
    top: 59px; width: 100%; height: calc(100% - 59px);
    background: linear-gradient(to right, rgba(15, 22, 29, 0.1), rgba(15, 22, 29, 0));
  }
  .hero__content {
    left: 50%; right: auto; top: 50%;
    width: 334px; max-width: calc(100% - 32px);
    transform: translate(-50%, -50%);
    display: flex; flex-direction: column; align-items: center;
    text-align: center;
  }
  .hero__title { max-width: 264px; font-size: 34px; line-height: normal; }
  .hero__sub { margin-top: 10px; font-size: 18px; }
  .hero__actions { flex-direction: column; gap: 16px; width: 268px; margin-top: 24px; }
  .hero__actions .btn { height: 36px; padding: 10px 20px; font-size: 16px; width: 100%; }

  /* Clients */
  .clients { padding: 30px 0; }
  .marquee { margin: 24px 0 0 16px; }
  .client { --s: 0.88; }

  /* About */
  .about__inner { padding: 40px 16px; gap: 40px; grid-template-columns: 1fr; }
  .about__media { width: 322px; max-width: 100%; height: 240px; aspect-ratio: auto; margin: 0 auto; border-radius: 10px; }
  .about__body { text-align: center; }
  .about__head { max-width: none; gap: 0; }
  .about__title { line-height: normal; }
  .about__text { max-width: 338px; margin: 12px auto 0; font-size: 14px; }
  .about__text p + p { margin-top: 14px; }
  .about__btn { display: none; }

  /* Services */
  .services__inner { padding: 40px 16px; }
  .services__grid {
    order: 2;
    margin: 30px auto 0;
    width: 100%;
    max-width: 360px;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .services__more { order: 3; justify-content: center; margin-top: 30px; }
  .services__more .btn { width: 260px; }
  .service { aspect-ratio: 170 / 200; border-radius: 10px; }
  .service__name { height: 40px; font-size: 14px; }

  /* Pools */
  .pools__inner { padding: 40px 16px; }
  .pools__title { max-width: 259px; }
  .filters { margin-top: 30px; gap: 19px 20px; max-width: 370px; margin-left: auto; margin-right: auto; }
  .filter[data-filter="all"] { order: 0; }
  .filter[data-filter="residential"] { order: 1; }
  .filter[data-filter="sports"] { order: 2; }
  .filter[data-filter="hotels"] { order: 3; }
  .filter[data-filter="schools"] { order: 4; }
  .pools__grid { margin: 30px auto 0; max-width: 370px; gap: 16px; }
  .pool, .pool:nth-child(even) { height: 130px; background: rgba(0, 113, 227, 0.08); }

  /* Equipment */
  .equipment__inner { padding: 40px 18px; }
  .equipment__title { max-width: 245px; }
  .equipment__grid {
    order: 2;
    margin: 30px auto 0;
    display: grid;
    grid-template-columns: repeat(3, 106px);
    gap: 24px;
    justify-content: center;
  }
  .equipment__more { order: 3; justify-content: center; margin-top: 30px; }
  .equipment__more .btn { width: 264px; background: var(--blue); color: var(--white); }
  .equip { width: 106px; height: 175px; }
  .equip--desktop-only { display: none; }
  .equip__img {
    left: calc(var(--mx) - 1px);
    top: calc(var(--my) - 1px);
    width: var(--mw);
    height: var(--mh);
  }
  .equip__name { top: 123px; font-size: 14px; }

  /* Contact */
  .contact__overlay {
    bottom: auto;
    height: 69.2%;
    background: linear-gradient(179.63deg, rgba(15, 22, 29, 0.8) 0.14%, rgba(15, 22, 29, 0.6) 41.37%, rgba(0, 165, 255, 0.1) 99.86%);
  }
  .contact__inner { padding: 40px 16px 60px; gap: 40px; }
  .contact__head { max-width: 274px; margin: 0 auto; text-align: center; }
  .contact__title { max-width: none; }
  .contact__sub { margin-top: 8px; font-size: 14px; font-weight: 400; }
  .contact__details {
    margin-top: 32px;
    padding-left: 2px;
    grid-template-columns: 145px minmax(0, 1fr);
    gap: 30px 16px;
  }
  .detail { gap: 10px; }
  .detail__icon { width: 20px; height: 20px; }
  .detail__title { font-size: 18px; }
  .detail__text, .detail__phones { margin-top: 4px; font-size: 14px; }
  .detail__phones { gap: 10px; }
  .detail__text--addr { line-height: 1.35; }

  .form { border-radius: 14px; padding: 30px 24px 40px; }
  .form__title { max-width: 318px; font-size: 28px; }
  .form__grid { margin-top: 30px; grid-template-columns: 1fr; gap: 16px; }
  .field textarea { height: 170px; }
  .form__submit { margin-top: 36px; }

  /* Footer */
  .footer__inner { padding: 40px 16px; grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .footer__brand { display: flex; flex-direction: column; align-items: center;}
  .footer__logo { width: 117px; height: 60px; }
  .footer__brand p { max-width: 308px; }
  .serif-font{ font-family: 'lato', Arial, Helvetica, sans-serif!important; }
  .footer__heading { display: block; padding: 4px 10px; font-size: 20px; }
  .footer__heading--social { padding: 10px 0; }
  .footer__links a { padding: 8px 10px; }
  .footer__social { display: flex; flex-direction: column; align-items: center; gap: 4px; }
  .social { margin-top: 0; }
  .social__btn { width: 40px; height: 40px; }

}

@media (max-width: 360px) {
  .services__grid { gap: 12px; }
  .equipment__grid { grid-template-columns: repeat(3, 96px); gap: 12px; }
  .contact__details { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee__track { animation: none; }
  .marquee { overflow-x: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ===== Use pre-cropped images as they are ===== */

/* Photos: fill their frame without stretching */
.crop > img,
.equip__img.crop > img {
  left: 0 !important;
  top: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

/* Client logos: show the whole logo, never stretched */
.client > img,
.client.crop > img {
  object-fit: contain !important;
}

/* Equipment images: keep their original shape */
.equip__img {
  object-fit: contain;
}

/* The ladder flip and inlet rotation are already in your exported images */
.equip__img--flip,
.equip__img--rotate {
  transform: none;
}