/* =========================================================
   Homepage-only redesign (scoped). Does not affect other pages.
   ========================================================= */

.page-home {
  background: #f7f7f8;
}

.page-home .home {
  overflow-x: clip;
}

/* Typography scale — homepage */
.page-home .home-kicker {
  margin: 0 0 0.65rem;
  color: #EC7626;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.35;
}

.page-home .home-section h2 {
  margin: 0 0 0.7rem;
  color: #434242;
  font-size: clamp(1.75rem, 2.6vw, 2.35rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.page-home .home-lead {
  margin: 0;
 
  color: #616161;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.7;
}

.page-home .home-lead--aside {
  max-width: 42ch;
}

/* Section shell */
.page-home .home-section {
  padding: clamp(3.5rem, 6vw, 5.5rem) 0;
}

.page-home .home-section__header {
  margin-bottom: clamp(1.75rem, 3vw, 2.75rem);
}

.page-home .home-section__header--split {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 1.25rem 2.5rem;
  align-items: end;
}

.page-home .home-section__header--center {
  text-align: center;
  margin-bottom: 1.5rem;
}

/* ---------- Hero ---------- */
.page-home .home-hero {
  position: relative;
  background: #1a1a1a;
  isolation: isolate;
}

.page-home .home-hero__media {
  position: relative;
  width: 100%;
  min-height: min(78vh, 720px);
  overflow: hidden;
}

.page-home .home-hero__video {
  display: block;
  width: 100%;
  height: min(78vh, 720px);
  object-fit: cover;
  object-position: center;
  background: #1a1a1a;
}

/* ---------- Products ---------- */
.page-home .home-products {
  background: var(--section-band-1);
  border-top: 1px solid #ececec;
}

.page-home .home-products__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.page-home .home-product-card,
.page-home .home-industry-card {
  position: relative;
  display: block;
  width: 100%;
  text-decoration: none;
  color: inherit;
  transition: transform 0.22s ease;
}

.page-home .home-product-card {
  background: #f0f0f0;
  border-radius: 20px;
  overflow: hidden;
  padding: 1.25rem 1.25rem 2.75rem;
}

.page-home .home-product-card:hover,
.page-home .home-product-card:focus-visible,
.page-home .home-industry-card:hover,
.page-home .home-industry-card:focus-visible {
  transform: translateY(-3px);
}

.page-home .home-product-card:focus-visible,
.page-home .home-industry-card:focus-visible {
  outline: 2px solid #EC7626;
  outline-offset: 3px;
}

.page-home .home-product-card img,
.page-home .home-industry-card img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.page-home .home-industry-card img {
  border-radius: 20px;
}

.page-home .home-product-card__label,
.page-home .home-industry-card__label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.85rem 1rem;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.25;
}

.page-home .home-product-card__label {
  color: #434242;
}

.page-home .home-industry-card__label {
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
}

/* ---------- Industry ---------- */
.page-home .home-industry {
  background: var(--section-band-2);
}

.page-home .home-industry__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}

/* ---------- Clients ---------- */
.page-home .home-clients {
  background: var(--section-band-1);
  border-block: 1px solid #ececec;
  padding-bottom: clamp(2.5rem, 4vw, 3.5rem);
  overflow: hidden;
}

.page-home .home-clients__marquee {
  width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}

.page-home .home-clients__track {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  width: max-content;
  padding: 0.35rem 0;
  animation: homeClientsSlide 40s linear infinite;
}

.page-home .home-clients__logo {
  flex: 0 0 auto;
  width: 260px;
  height: 130px;
  display: grid;
  place-items: center;
}

.page-home .home-clients__logo img {
  max-width: 240px;
  height: 130px;
  width: auto;
  object-fit: contain;
}

@keyframes homeClientsSlide {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Insights / News & Events ---------- */
.page-home .home-insights {
  background: var(--section-band-2);
  border-top: 1px solid #ececec;
}

.page-home .home-insights__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.page-home .home-insights__video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  overflow: hidden;
  background: #1a1a1a;
}

.page-home .home-insights__video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* Reveal motion (homepage) */
.page-home [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
  transition-delay: var(--delay, 0ms);
}

.page-home [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .page-home [data-reveal],
  .page-home .home-product-card,
  .page-home .home-industry-card,
  .page-home .home-industry-card img,
  .page-home .home-clients__logo img {
    transition: none !important;
    animation: none !important;
    transform: none !important;
    opacity: 1 !important;
  }

  .page-home .home-clients__track {
    animation: none;
    flex-wrap: wrap;
    width: auto;
    max-width: 1100px;
    margin: 0 auto;
    justify-content: center;
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 1200px) {
  .page-home .home-industry__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1024px) {
  .page-home .home-products__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-home .home-section__header--split {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .page-home .home-lead--aside {
    max-width: 60ch;
  }

  .page-home .home-hero__media,
  .page-home .home-hero__video {
    min-height: min(68vh, 620px);
    height: min(68vh, 620px);
  }
}

@media (max-width: 768px) {
  .page-home .home-industry__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-home .home-insights__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .page-home .home-products__grid,
  .page-home .home-industry__grid {
    grid-template-columns: 1fr;
  }

  .page-home .home-hero__media,
  .page-home .home-hero__video {
    min-height: min(56vh, 460px);
    height: min(56vh, 460px);
  }

  .page-home .home-section h2 {
    font-size: 1.6rem;
  }

  .page-home .home-lead {
    font-size: 0.95rem;
  }
}
