/*
 * ESPO 2.5.1.66 — Homepage final polish
 * Final spacing, media, copy rhythm, responsive and motion layer.
 * Scoped to the translated homepage and loaded after all theme systems.
 */

body:is(.home, .espo-home-context) {
  --espo-home-ivory: #f8f6f0;
  --espo-home-paper: #fcfbf8;
  --espo-home-ink: #101c28;
  --espo-home-muted: #5f6b76;
  --espo-home-blue: #0b6da8;
  --espo-home-gold: #b89143;
  --espo-home-line: rgba(16, 28, 40, .10);
  --espo-home-radius: 1.15rem;
  --espo-home-space: clamp(4.75rem, 7vw, 6.75rem);
  --espo-home-shadow: 0 22px 56px rgba(16, 28, 40, .09);
  overflow-x: clip;
}

body:is(.home, .espo-home-context) .espo-home-final {
  display: flex;
  flex-direction: column;
  background: var(--espo-home-paper);
}

/* --------------------------------------------------------------------------
   Vertical rhythm and section transitions
   -------------------------------------------------------------------------- */
body:is(.home, .espo-home-context) .espo-cohesive-about,
body:is(.home, .espo-home-context) .espo-cohesive-services,
body:is(.home, .espo-home-context) .espo-cohesive-work,
body:is(.home, .espo-home-context) .espo-home-trust,
body:is(.home, .espo-home-context) .espo-home-insights {
  padding-top: var(--espo-home-space) !important;
  padding-bottom: var(--espo-home-space) !important;
}

body:is(.home, .espo-home-context) .espo-sectors-section,
body:is(.home, .espo-home-context) .espo-why-section {
  padding-top: var(--espo-home-space) !important;
  padding-bottom: var(--espo-home-space) !important;
}

body:is(.home, .espo-home-context) .espo-ohec-section > .mx-auto {
  padding-top: clamp(4.5rem, 6.5vw, 6.25rem) !important;
  padding-bottom: clamp(4.5rem, 6.5vw, 6.25rem) !important;
}

body:is(.home, .espo-home-context) :is(
  .espo-cohesive-work,
  .espo-home-trust,
  .espo-home-insights
) {
  border-top: 1px solid rgba(16,28,40,.075);
}

/* Heading and copy measure. */
body:is(.home, .espo-home-context) :is(
  .espo-services-heading,
  .espo-cohesive-work__heading,
  .espo-home-section-heading,
  .espo-why-heading
) {
  margin-bottom: 0;
}

body:is(.home, .espo-home-context) :is(
  .espo-premium-hero__copy,
  .espo-cohesive-about__copy > p,
  .espo-services-intro,
  .espo-sectors-intro,
  .espo-ohec-text,
  .espo-final-cta__copy > p
) {
  color: var(--espo-home-muted);
  max-width: 64ch;
}

body:is(.home, .espo-home-context) .espo-services-heading {
  gap: clamp(2rem, 5vw, 5rem);
}

body:is(.home, .espo-home-context) .espo-services-intro {
  max-width: 48ch;
}

body:is(.home, .espo-home-context) .espo-section-label {
  margin-bottom: .9rem;
}

body:is(.home, .espo-home-context) .espo-section-label > span:first-child {
  width: .42rem;
  height: .42rem;
  border-radius: 999px;
  box-shadow: none;
}

/* --------------------------------------------------------------------------
   Hero: calmer premium movement and better composition
   -------------------------------------------------------------------------- */
body:is(.home, .espo-home-context) .espo-premium-hero__inner {
  gap: clamp(2.5rem, 5vw, 5rem);
}

body:is(.home, .espo-home-context) .espo-premium-hero__copy {
  margin-top: 1.35rem;
  max-width: 55ch;
}

body:is(.home, .espo-home-context) .espo-premium-hero__actions {
  margin-top: 1.75rem;
  gap: .68rem;
}

body:is(.home, .espo-home-context) .espo-premium-hero__visual {
  border-radius: calc(var(--espo-home-radius) + .35rem);
  box-shadow: 0 26px 70px rgba(16,28,40,.12), 0 2px 10px rgba(16,28,40,.05);
  transform: none;
}

body:is(.home, .espo-home-context) .espo-premium-hero__visual:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 30px 76px rgba(16,28,40,.14), 0 3px 12px rgba(16,28,40,.06);
}

body:is(.home, .espo-home-context) .espo-premium-hero__visual::after {
  opacity: .42;
}

body:is(.home, .espo-home-context) .espo-premium-hero__visual:hover::after {
  transform: translateX(520%) rotate(13deg);
}

body:is(.home, .espo-home-context) .espo-premium-hero__visual:hover .espo-premium-hero__image :is(img, video) {
  transform: scale(1.022) !important;
  filter: saturate(1.015) contrast(1.01) !important;
}

body:is(.home, .espo-home-context) .espo-premium-hero__stats {
  box-shadow: 0 16px 40px rgba(16,28,40,.13);
}

/* --------------------------------------------------------------------------
   About image and statistics
   -------------------------------------------------------------------------- */
body:is(.home, .espo-home-context) .espo-cohesive-about {
  gap: clamp(3rem, 6vw, 6.5rem);
}

body:is(.home, .espo-home-context) .espo-cohesive-about__copy > p {
  margin-top: 1.25rem !important;
}

body:is(.home, .espo-home-context) .espo-cohesive-about__stats {
  margin-top: 1.75rem !important;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

body:is(.home, .espo-home-context) .espo-engineering-visual {
  border-radius: calc(var(--espo-home-radius) + .2rem);
  overflow: hidden;
  border: 1px solid rgba(16,28,40,.08);
  background: #eef1f2;
  box-shadow: var(--espo-home-shadow);
}

body:is(.home, .espo-home-context) .espo-engineering-visual img {
  transform: scale(1.002);
  transition: transform .75s cubic-bezier(.22,1,.36,1), filter .5s ease;
}

body:is(.home, .espo-home-context) .espo-engineering-visual:hover img {
  transform: scale(1.022);
  filter: saturate(.98) contrast(1.01);
}

/* --------------------------------------------------------------------------
   Home service cards — canonical component
   Dedicated classes keep homepage cards isolated from Services archive styles.
   -------------------------------------------------------------------------- */
body:is(.home, .espo-home-context) .espo-home-services-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  gap: clamp(.9rem, 1.35vw, 1.15rem);
  margin-top: clamp(2.25rem, 4vw, 3rem);
}

body:is(.home, .espo-home-context) .espo-home-service-item {
  display: flex;
  min-width: 0;
}

body:is(.home, .espo-home-context) .espo-home-service-card {
  position: relative;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
  height: 100%;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  border: 1px solid rgba(16, 28, 40, .09);
  border-radius: var(--espo-home-radius);
  background: #fff;
  box-shadow: 0 10px 30px rgba(16, 28, 40, .05);
  transition: transform .32s ease, border-color .32s ease, box-shadow .32s ease;
}

body:is(.home, .espo-home-context) .espo-home-service-card:hover,
body:is(.home, .espo-home-context) .espo-home-service-card:focus-visible {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--service-accent) 30%, rgba(16, 28, 40, .12));
  box-shadow: 0 20px 46px rgba(16, 28, 40, .095);
  outline: none;
}

body:is(.home, .espo-home-context) .espo-home-service-card:focus-visible {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--service-accent) 22%, transparent), 0 20px 46px rgba(16, 28, 40, .095);
}

body:is(.home, .espo-home-context) .espo-home-service-accent {
  position: absolute;
  z-index: 2;
  top: 0;
  inset-inline-start: 1.2rem;
  width: 2.75rem;
  height: 2px;
  border-radius: 0 0 999px 999px;
  background: var(--service-accent);
  opacity: .82;
  transition: width .32s ease;
}

body:is(.home, .espo-home-context) .espo-home-service-card:hover .espo-home-service-accent,
body:is(.home, .espo-home-context) .espo-home-service-card:focus-visible .espo-home-service-accent {
  width: 4.25rem;
}

body:is(.home, .espo-home-context) .espo-home-service-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #e8edf0;
}

body:is(.home, .espo-home-context) .espo-home-service-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: none;
  transform: scale(1.001);
  transition: transform .65s cubic-bezier(.22, 1, .36, 1);
}

body:is(.home, .espo-home-context) .espo-home-service-card:hover .espo-home-service-media img,
body:is(.home, .espo-home-context) .espo-home-service-card:focus-visible .espo-home-service-media img {
  transform: scale(1.035);
}

body:is(.home, .espo-home-context) .espo-home-service-content {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  padding: 1.05rem 1.1rem 1.15rem;
}

body:is(.home, .espo-home-context) .espo-home-service-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

body:is(.home, .espo-home-context) .espo-home-service-number {
  color: #728091;
  font-size: .72rem;
  font-weight: 760;
  line-height: 1;
  letter-spacing: .16em;
}

body:is(.home, .espo-home-context) .espo-home-service-dot {
  width: .48rem;
  height: .48rem;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--service-accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--service-accent) 8%, transparent);
}

body:is(.home, .espo-home-context) .espo-home-service-title {
  display: -webkit-box;
  min-height: 2.95em;
  margin: .78rem 0 0;
  overflow: hidden;
  color: var(--espo-home-ink, #132130);
  font-size: clamp(1.02rem, 1.08vw, 1.16rem);
  font-weight: 650;
  line-height: 1.36;
  letter-spacing: -.018em;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  text-wrap: balance;
}

body:is(.home, .espo-home-context) .espo-home-service-summary {
  display: -webkit-box;
  min-height: 4.75em;
  margin: .42rem 0 0;
  overflow: hidden;
  color: #667788;
  font-size: .82rem;
  line-height: 1.58;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

body:is(.home, .espo-home-context) .espo-home-service-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .65rem;
  margin-top: auto;
  padding-top: .95rem;
  border-top: 1px solid rgba(19, 33, 48, .08);
  color: var(--espo-home-blue, #0b6da8);
  font-size: .72rem;
  font-weight: 700;
  line-height: 1.35;
}

body:is(.home, .espo-home-context) .espo-home-service-link svg {
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
  transition: transform .28s ease;
}

body:is(.home, .espo-home-context) .espo-home-service-card:hover .espo-home-service-link svg,
body:is(.home, .espo-home-context) .espo-home-service-card:focus-visible .espo-home-service-link svg {
  transform: translate(2px, -2px);
}

html[dir="rtl"] body:is(.home, .espo-home-context) .espo-home-service-card:hover .espo-home-service-link svg,
html[dir="rtl"] body:is(.home, .espo-home-context) .espo-home-service-card:focus-visible .espo-home-service-link svg {
  transform: translate(-2px, -2px);
}

@media (max-width: 1099px) {
  body:is(.home, .espo-home-context) .espo-home-services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 699px) {
  body:is(.home, .espo-home-context) .espo-home-services-grid {
    grid-template-columns: 1fr;
    gap: .9rem;
    margin-top: 1.8rem;
  }

  body:is(.home, .espo-home-context) .espo-home-service-title,
  body:is(.home, .espo-home-context) .espo-home-service-summary {
    min-height: 0;
  }

  body:is(.home, .espo-home-context) .espo-home-service-card:hover {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  body:is(.home, .espo-home-context) .espo-home-service-card,
  body:is(.home, .espo-home-context) .espo-home-service-accent,
  body:is(.home, .espo-home-context) .espo-home-service-media img,
  body:is(.home, .espo-home-context) .espo-home-service-link svg {
    transition: none;
  }

  body:is(.home, .espo-home-context) .espo-home-service-card:hover,
  body:is(.home, .espo-home-context) .espo-home-service-card:focus-visible {
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   Project rail
   -------------------------------------------------------------------------- */
body:is(.home, .espo-home-context) .espo-cohesive-work__rail {
  margin-top: clamp(2.15rem, 4vw, 3rem) !important;
  gap: clamp(1rem, 2vw, 1.4rem) !important;
  padding-bottom: 1.25rem !important;
  scroll-padding-inline: max(1.25rem, calc((100vw - 90rem) / 2 + 2rem));
  scrollbar-width: thin;
  scrollbar-color: rgba(16,28,40,.22) transparent;
}

body:is(.home, .espo-home-context) .espo-cohesive-work__card {
  border-radius: var(--espo-home-radius) !important;
  border: 1px solid rgba(16,28,40,.08) !important;
  background: #fff;
  box-shadow: 0 10px 30px rgba(16,28,40,.045);
}

body:is(.home, .espo-home-context) .espo-cohesive-work__card:hover,
body:is(.home, .espo-home-context) .espo-cohesive-work__card:focus-visible {
  transform: translateY(-3px) !important;
  border-color: rgba(16,28,40,.15) !important;
  box-shadow: 0 22px 48px rgba(16,28,40,.09) !important;
}

body:is(.home, .espo-home-context) .espo-cohesive-work__card > div:first-child {
  border-radius: .82rem;
  background: #eef1f2;
}

body:is(.home, .espo-home-context) .espo-cohesive-work__card:hover img,
body:is(.home, .espo-home-context) .espo-cohesive-work__card:focus-visible img {
  transform: scale(1.025) !important;
}

body:is(.home, .espo-home-context) .espo-project-card-title {
  display: -webkit-box;
  min-height: calc(1.42em * 2);
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

/* --------------------------------------------------------------------------
   Sectors and Why ESPO
   -------------------------------------------------------------------------- */
body:is(.home, .espo-home-context) .espo-sectors-shell {
  gap: clamp(2.75rem, 6vw, 6.5rem);
}

body:is(.home, .espo-home-context) .espo-sectors-intro {
  margin-top: 1.15rem;
  max-width: 50ch;
}

body:is(.home, .espo-home-context) .espo-sector-button {
  min-height: 3.7rem;
}

body:is(.home, .espo-home-context) .espo-sectors-visual {
  border-radius: calc(var(--espo-home-radius) + .15rem);
  box-shadow: 0 24px 62px rgba(16,28,40,.12);
}

body:is(.home, .espo-home-context) .espo-sector-images img {
  transition: opacity .48s ease, transform .75s cubic-bezier(.22,1,.36,1) !important;
}

body:is(.home, .espo-home-context) .espo-sector-images img.is-active {
  transform: scale(1.012);
}

body:is(.home, .espo-home-context) .espo-why-grid {
  gap: clamp(.85rem, 1.5vw, 1.15rem);
}

body:is(.home, .espo-home-context) .espo-why-card {
  border-color: rgba(255,255,255,.09);
  transition: transform .38s cubic-bezier(.22,1,.36,1), border-color .3s ease, background .3s ease !important;
}

body:is(.home, .espo-home-context) .espo-why-card:hover {
  transform: translateY(-3px) !important;
}

body:is(.home, .espo-home-context) .espo-why-card__line {
  height: 2px;
  opacity: .72;
}

body:is(.home, .espo-home-context) .espo-why-card p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

/* --------------------------------------------------------------------------
   Trust and insights
   -------------------------------------------------------------------------- */
body:is(.home, .espo-home-context) .espo-home-client-grid {
  margin-top: 2.25rem !important;
  overflow: hidden;
  border-radius: var(--espo-home-radius);
  border-color: rgba(16,28,40,.09) !important;
  background: rgba(16,28,40,.08) !important;
}

body:is(.home, .espo-home-context) .espo-home-client-card {
  min-height: 7.25rem !important;
  background: rgba(255,255,255,.96) !important;
}

body:is(.home, .espo-home-context) .espo-home-client-card:hover {
  transform: none !important;
  background: var(--espo-home-ivory) !important;
}

body:is(.home, .espo-home-context) .espo-home-client-card img {
  opacity: .68;
  filter: grayscale(1) contrast(.92);
  transition: opacity .35s ease, filter .35s ease, transform .35s ease !important;
}

body:is(.home, .espo-home-context) .espo-home-client-card:hover img {
  opacity: .92;
  filter: grayscale(.2) contrast(.98);
  transform: scale(1.018);
}

body:is(.home, .espo-home-context) .espo-home-insight-grid {
  margin-top: 2.25rem !important;
  gap: clamp(1rem, 2vw, 1.4rem) !important;
}

body:is(.home, .espo-home-context) .espo-home-insight-card {
  border-radius: var(--espo-home-radius) !important;
  overflow: hidden;
  border-color: rgba(16,28,40,.09) !important;
  box-shadow: 0 10px 30px rgba(16,28,40,.04);
}

body:is(.home, .espo-home-context) .espo-home-insight-card:hover {
  transform: translateY(-3px) !important;
  border-color: rgba(16,28,40,.15) !important;
  box-shadow: 0 20px 48px rgba(16,28,40,.085) !important;
}

body:is(.home, .espo-home-context) .espo-home-insight-card img {
  border-radius: .76rem;
  background: #eef1f2;
}

body:is(.home, .espo-home-context) .espo-home-insight-card:hover img {
  transform: scale(1.025) !important;
}

body:is(.home, .espo-home-context) .espo-home-insight-card h3 {
  display: -webkit-box;
  min-height: calc(1.42em * 2);
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

/* --------------------------------------------------------------------------
   OHEC and final CTA
   -------------------------------------------------------------------------- */
body:is(.home, .espo-home-context) .espo-ohec-shell {
  gap: clamp(2.75rem, 6vw, 6.5rem);
}

body:is(.home, .espo-home-context) .espo-ohec-text {
  margin-top: 1.15rem;
  max-width: 54ch;
}

body:is(.home, .espo-home-context) .espo-ohec-image-wrap {
  border-radius: calc(var(--espo-home-radius) + .15rem);
  overflow: hidden;
  box-shadow: 0 24px 62px rgba(77,55,0,.13);
}

body:is(.home, .espo-home-context) .espo-ohec-image {
  transition: transform .75s cubic-bezier(.22,1,.36,1), filter .5s ease;
}

body:is(.home, .espo-home-context) .espo-ohec-visual:hover .espo-ohec-image {
  transform: scale(1.022);
  filter: saturate(.98) contrast(1.01);
}

body:is(.home, .espo-home-context) .espo-final-cta__panel {
  box-shadow: 0 26px 72px rgba(0,0,0,.16);
}

body:is(.home, .espo-home-context) .espo-final-cta__copy > p {
  max-width: 50ch;
}

/* --------------------------------------------------------------------------
   Multilingual and long-label safeguards
   -------------------------------------------------------------------------- */
html:lang(tr) body:is(.home, .espo-home-context) :is(
  .espo-home-service-title,
  .espo-project-card-title,
  .espo-why-card h3,
  .espo-home-insight-card h3,
  .espo-sector-name
) {
  hyphens: auto;
  overflow-wrap: break-word;
}

html:lang(fa) body:is(.home, .espo-home-context) :is(
  .espo-home-service-summary,
  .espo-why-card p
),
html:lang(ar) body:is(.home, .espo-home-context) :is(
  .espo-home-service-summary,
  .espo-why-card p
) {
  line-height: 1.9;
}

body:is(.home, .espo-home-context) .espo-btn {
  max-width: 100%;
}

body:is(.home, .espo-home-context) .espo-btn__content,
body:is(.home, .espo-home-context) .espo-btn {
  text-wrap: pretty;
}

/* --------------------------------------------------------------------------
   Responsive final pass
   -------------------------------------------------------------------------- */
@media (max-width: 1023px) {
  body:is(.home, .espo-home-context) {
    --espo-home-space: clamp(4.1rem, 8vw, 5.25rem);
  }

  body:is(.home, .espo-home-context) .espo-cohesive-about,
  body:is(.home, .espo-home-context) .espo-sectors-shell,
  body:is(.home, .espo-home-context) .espo-ohec-shell {
    gap: 2.75rem;
  }

  body:is(.home, .espo-home-context) .espo-services-heading {
    gap: 1.5rem;
  }

  body:is(.home, .espo-home-context) .espo-services-intro {
    max-width: 62ch;
  }

  body:is(.home, .espo-home-context) .espo-sectors-visual,
  body:is(.home, .espo-home-context) .espo-ohec-image-wrap {
    max-width: 46rem;
    margin-inline: auto;
  }
}

@media (max-width: 767px) {
  body:is(.home, .espo-home-context) {
    --espo-home-space: 4rem;
    --espo-home-radius: 1rem;
  }

  body:is(.home, .espo-home-context) .espo-premium-hero__inner {
    gap: 2rem;
  }

  body:is(.home, .espo-home-context) .espo-premium-hero__copy {
    margin-top: 1.05rem;
  }

  body:is(.home, .espo-home-context) .espo-premium-hero__actions {
    margin-top: 1.4rem;
    gap: .6rem;
  }

  body:is(.home, .espo-home-context) .espo-premium-hero__visual:hover,
  body:is(.home, .espo-home-context) .espo-cohesive-work__card:hover,
  body:is(.home, .espo-home-context) .espo-home-insight-card:hover,
  body:is(.home, .espo-home-context) .espo-why-card:hover {
    transform: none !important;
  }

  body:is(.home, .espo-home-context) .espo-cohesive-about__copy > p {
    margin-top: 1rem !important;
  }

  body:is(.home, .espo-home-context) .espo-cohesive-about__stats {
    margin-top: 1.4rem !important;
  }

  body:is(.home, .espo-home-context) .espo-home-insight-grid,
  body:is(.home, .espo-home-context) .espo-home-client-grid {
    margin-top: 1.8rem !important;
  }

  body:is(.home, .espo-home-context) .espo-project-card-title,
  body:is(.home, .espo-home-context) .espo-why-card p,
  body:is(.home, .espo-home-context) .espo-home-insight-card h3 {
    min-height: 0;
  }

  body:is(.home, .espo-home-context) .espo-project-rail {
    padding-inline: 1.25rem !important;
    scroll-padding-inline: 1.25rem;
  }

  body:is(.home, .espo-home-context) .espo-cohesive-work__card {
    width: min(84vw, 22rem) !important;
  }

  body:is(.home, .espo-home-context) .espo-home-client-card {
    min-height: 6.25rem !important;
    padding: 1rem !important;
  }

  body:is(.home, .espo-home-context) .espo-ohec-actions,
  body:is(.home, .espo-home-context) .espo-final-cta__actions {
    gap: .65rem !important;
  }

  body:is(.home, .espo-home-context) .espo-ohec-actions .espo-btn,
  body:is(.home, .espo-home-context) .espo-final-cta__actions .espo-btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 479px) {
  body:is(.home, .espo-home-context) .espo-premium-hero__actions .espo-btn {
    flex: 1 0 100% !important;
    width: 100%;
  }

  body:is(.home, .espo-home-context) .espo-premium-hero__event-link {
    justify-content: center;
  }

  body:is(.home, .espo-home-context) .espo-cohesive-about__stats {
    gap: 1rem;
  }

  body:is(.home, .espo-home-context) .espo-sector-button {
    min-height: 3.35rem;
  }
}

/* --------------------------------------------------------------------------
   Motion accessibility and animation restraint
   -------------------------------------------------------------------------- */
body:is(.home, .espo-home-context) .reveal.espo-reveal-ready {
  transform: translateY(16px);
  transition-duration: .52s;
}

body:is(.home, .espo-home-context) .reveal.is-visible {
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  body:is(.home, .espo-home-context) .espo-home-final *,
  body:is(.home, .espo-home-context) .espo-home-final *::before,
  body:is(.home, .espo-home-context) .espo-home-final *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  body:is(.home, .espo-home-context) .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}


/* ESPO 2.5.1.101 — Home hero coloured line removal */
body.home .espo-premium-hero__brandline,
body.espo-home-context .espo-premium-hero__brandline { display: none !important; }
body.home .espo-premium-hero__content::before,
body.espo-home-context .espo-premium-hero__content::before { content: none !important; display: none !important; }

/* Homepage project images: preserve original quality */
body:is(.home,.espo-home-context) .espo-project-card img,
body:is(.home,.espo-home-context) .espo-project-card__media img,
body:is(.home,.espo-home-context) .espo-cohesive-work__card img {
  filter: none !important;
  opacity: 1 !important;
  transform: none;
}

body:is(.home,.espo-home-context) .espo-project-card__media::before,
body:is(.home,.espo-home-context) .espo-project-card__media::after,
body:is(.home,.espo-home-context) .espo-cohesive-work__card::before,
body:is(.home,.espo-home-context) .espo-cohesive-work__card::after {
  opacity: 0 !important;
}
